DeployParams
DeployParams<
TThrowOnFail
,TAbi
,THasConstructor
,TAllArgs
>:Omit
<BaseCallParams
<TThrowOnFail
>,"to"
> &object
&EncodeDeployDataParameters
<TAbi
,THasConstructor
,TAllArgs
>
Defines the parameters used for deploying a contract on TEVM.
This type extends the base call parameters used for typical TEVM calls,
with the addition of deployment-specific settings. By default, createTransaction
is set to true, because deployments result in state changes that need to be mined.
The salt
parameter supports the use of CREATE2, allowing for deterministic address deployment.
Type declaration
salt?
readonly
optional
salt:Hex
An optional CREATE2 salt, if deploying with CREATE2 for a predictable contract address.
Type Parameters
• TThrowOnFail extends boolean
= boolean
Indicates whether the function should throw on failure.
• TAbi extends Abi
| readonly unknown
[] = Abi
The ABI type, typically including constructor definitions.
• THasConstructor = TAbi
extends Abi
? Abi
extends TAbi
? true
: [Extract
<TAbi
[number
], object
>] extends [never
] ? false
: true
: true
Determines whether the ABI includes a constructor.
• TAllArgs = ContractConstructorArgs
<TAbi
>
Types of the constructor arguments for the deployment.