Skip to content

cli: support deploying different EVM variants#750

Merged
kcsongor merged 5 commits intomainfrom
cli/deployment-flavours
Dec 1, 2025
Merged

cli: support deploying different EVM variants#750
kcsongor merged 5 commits intomainfrom
cli/deployment-flavours

Conversation

@kcsongor
Copy link
Copy Markdown
Contributor

We have a growing list of NTT manager variants (the standard, one without rate limiting, one that wraps WETH, and maybe we'll have more)

To achieve this, we have to do a couple things.

Firstly, we use deploy script in the worktree by default.

The current (as in before this commit) method of overriding the deploy script with the one bundled into the cli was introduced at the very beginning to allow deploying versions that didn't have the updated deploy script available. This was actually already redundant by the time the first NTT release was cut. It's very rigid behaviour because it doesn't allow introducing breaking changes to the deploy script that don't work with older versions of the contract.

So: we simply use the deploy script that's in the work tree.

This allows us to evolve the deploy script over time, such as in the current case where we add support for the different variants.

One problem is that prior to this commit, the deploy scripts at various version releases don't work (for example no currently released version supports non-0 wormhole fees.). So, if the deploy script in the worktree is old (doesn't contain the newly introduced DEPLOY_SCRIPT_VERSION comment), then we override it with a known version that works. Otherwise we just use the worktree version, which will work going forward.

@kcsongor kcsongor force-pushed the cli/deployment-flavours branch from 29d4f57 to 9702d09 Compare November 20, 2025 14:39
evan-gray
evan-gray previously approved these changes Nov 20, 2025
evan-gray
evan-gray previously approved these changes Nov 25, 2025
@kcsongor kcsongor force-pushed the cli/deployment-flavours branch 2 times, most recently from 7f1db9b to 6132fde Compare November 25, 2025 17:12
@kcsongor kcsongor marked this pull request as ready for review November 25, 2025 17:12
We have a growing list of NTT manager variants (the standard, one
without rate limiting, one that wraps WETH, and maybe we'll have more)

To achieve this, we have to do a couple things.

Firstly, we use deploy script in the worktree by default.

The current (as in before this commit) method of overriding the deploy
script with the one bundled into the cli was introduced at the very
beginning to allow deploying versions that didn't have the updated
deploy script available. This was actually already redundant by the time
the first NTT release was cut.  It's very rigid behaviour because it
doesn't allow introducing breaking changes to the deploy script that
don't work with older versions of the contract.

So: we simply use the deploy script that's in the work tree.

This allows us to evolve the deploy script over time, such as in the
current case where we add support for the different variants.

One problem is that prior to this commit, the deploy scripts at various
version releases don't work (for example no currently released version
supports non-0 wormhole fees.). So, if the deploy script in the worktree
is old (doesn't contain the newly introduced DEPLOY_SCRIPT_VERSION
comment), then we override it with a known version that works. Otherwise
we just use the worktree version, which will work going forward.
@kcsongor kcsongor force-pushed the cli/deployment-flavours branch from 6132fde to 4a0e50a Compare December 1, 2025 15:34
@kcsongor kcsongor merged commit 889456e into main Dec 1, 2025
10 of 12 checks passed
@kcsongor kcsongor deleted the cli/deployment-flavours branch December 1, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants