create2
create2
Usage: create2 [alias] --network <network> --salt <salt> [options]
deploys a new upgradeable contract instance using CREATE2 at a predetermined address given a numeric <salt> and a <from> address. Provide the <alias> you added your contract with, or <package>/<alias> to create a contract from a linked package. A <signature> can be provided to derive the deployment address from a signer different to the <from> address. Warning: support for this feature is experimental.
- Options:
--salt <salt>
salt used to determine the deployment address (required)--query [sender]
do not create the contract and just return the deployment address, optionally specifying the sender used to derive the deployment address (defaults to 'from')--init [function]
initialization function to call after creating contract (defaults to 'initialize', skips initialization if not set)--args <arg1, arg2, ...>
arguments to the initialization function--admin <admin>
admin of the proxy (uses the project's proxy admin if not set)--signature <signature>
signature of the request, uses the signer to derive the deployment address (uses the sender to derive deployment address if not set)--force
force creation even if contracts have local modifications-n, --network <network>
network to be used-f, --from <from>
specify transaction sender address--timeout <timeout>
timeout in seconds for each blockchain transaction (defaults to 600s)