Deployer
Inherits: Auth
State Variables
isDeployer
Functions
constructor
deployContract
Deploy some contract to a deterministic address.
Should be of form: "ContractName Version 0.0" Where the numbers after version are VERSION . SUBVERSION
Parameters
Name | Type | Description |
---|---|---|
|
| string used to derive salt for deployment |
|
| the contract creation code to deploy - can be obtained by calling type(contractName).creationCode |
|
| the contract constructor arguments if any - must be of form abi.encode(arg1, arg2, ...) |
|
| non zero if constructor needs to be payable |
getAddress
convertNameToBytes32
Events
ContractDeployed
Emitted on deployContract
calls.
Parameters
Name | Type | Description |
---|---|---|
|
| string name used to derive salt for deployment |
|
| the newly deployed contract address |
|
| keccak256 hash of the creation code - useful to determine creation code is the same across multiple chains |