-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(script): support custom create2 deployer (#9278)
* script: add --create2-deployer Signed-off-by: jsvisa <[email protected]> * script: add create2 deployer Signed-off-by: jsvisa <[email protected]> * evm/constants: add get_create2_deployer from env or default Signed-off-by: jsvisa <[email protected]> * evm/core: use env's create2 Signed-off-by: jsvisa <[email protected]> * script: fetch create2_deployer from env or default Signed-off-by: jsvisa <[email protected]> * fmt Signed-off-by: jsvisa <[email protected]> * docs Signed-off-by: jsvisa <[email protected]> * evm/constants: use sync::LazyLock Signed-off-by: jsvisa <[email protected]> * evm/inspector: add fn create2_deployer Signed-off-by: jsvisa <[email protected]> * config: add create2_deployer Signed-off-by: jsvisa <[email protected]> * evm/inpector: set create2 deployer Signed-off-by: jsvisa <[email protected]> * evm-opts: add create2_deployer Signed-off-by: jsvisa <[email protected]> * script: pass deployer2-creater from cli or config Signed-off-by: jsvisa <[email protected]> * script: use create2 address to fill tx meta Signed-off-by: jsvisa <[email protected]> * config: create2 address ,no Option Signed-off-by: jsvisa <[email protected]> * script/runner: set inspector.create2_deployer with evm_opts Signed-off-by: jsvisa <[email protected]> * clippy Signed-off-by: jsvisa <[email protected]> * doc typo Signed-off-by: jsvisa <[email protected]> * fix/evm-opts: default value of create2_deployer Signed-off-by: jsvisa <[email protected]> * evm/core: no need to extract create2 deployer from env Signed-off-by: jsvisa <[email protected]> * evm/core: implement Default for EvmOpts.create2_deployer Signed-off-by: jsvisa <[email protected]> * evm/core: use constants::DEFAULT create2 deployer Signed-off-by: jsvisa <[email protected]> * evm/core: output create2 deployer Signed-off-by: jsvisa <[email protected]> unit test Signed-off-by: jsvisa <[email protected]> * evm/evm: set create2 deployer for trace and stack Signed-off-by: jsvisa <[email protected]> * cast/{run,call}: set create2 deployer Signed-off-by: jsvisa <[email protected]> * forge/runner: set create2 deployer Signed-off-by: jsvisa <[email protected]> * script: set create2 deployer for stack Signed-off-by: jsvisa <[email protected]> * verify: set create2 deployer Signed-off-by: jsvisa <[email protected]> * clipy Signed-off-by: jsvisa <[email protected]> * fmt Signed-off-by: jsvisa <[email protected]> * script: use executor's create2 deployer Signed-off-by: jsvisa <[email protected]> * script: wrap create2_deployer inside executor Signed-off-by: jsvisa <[email protected]> * script: add custom create2 test Signed-off-by: jsvisa <[email protected]> * script: add nonexist create2 Signed-off-by: jsvisa <[email protected]> * all: set EvmOpts.create2_deployer Signed-off-by: jsvisa <[email protected]> * script: no need to pass create2_deployer in fill_metadata Signed-off-by: jsvisa <[email protected]> * evm/executor: duplicate set create2's deployer address Signed-off-by: jsvisa <[email protected]> * evm: check create2 codehash Signed-off-by: jsvisa <[email protected]> * tests/script: test with notmatched create2 deployer Signed-off-by: jsvisa <[email protected]> * clipy Signed-off-by: jsvisa <[email protected]> * evm: skip serialize create2_deployer if none Signed-off-by: jsvisa <[email protected]> * test: add test of deployer2 address Signed-off-by: jsvisa <[email protected]> * Update crates/script/src/lib.rs --------- Signed-off-by: jsvisa <[email protected]> Co-authored-by: Arsenii Kulikov <[email protected]>
- Loading branch information
Showing
23 changed files
with
281 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.