DeployParams
DeployParams<
TThrowOnFail
,TAbi
,THasConstructor
,TAllArgs
>:Omit
<BaseCallParams
<TThrowOnFail
>,"to"
> &object
&EncodeDeployDataParameters
<TAbi
,THasConstructor
,TAllArgs
>
Wraps tevm_call to deploy a contract
Unlike most call actions createTransaction
defaults to true
Type declaration
salt?
optional
readonly
salt:Hex
An optional CREATE2 salt.
Type parameters
• TThrowOnFail extends boolean
= boolean
• TAbi extends Abi
| readonly unknown
[] = Abi
• THasConstructor = TAbi
extends Abi
? Abi
extends TAbi
? true
: [Extract
<TAbi
[number
], object
>] extends [never
] ? false
: true
: true
• TAllArgs = ContractConstructorArgs
<TAbi
>
Source
packages/actions/src/Deploy/DeployParams.ts:9