createContract
createContract<
TName
,TAbi
,TAddress
,TBytecode
,TDeployedBytecode
,TCode
,THumanReadableAbi
>(__namedParameters
):Contract
<TName
,THumanReadableAbi
,TAddress
,TBytecode
,TDeployedBytecode
,TCode
>
Creates a tevm Contract instance from human readable abi
Type Parameters
• TName extends string
• TAbi extends readonly string
[] | Abi
• TAddress extends undefined
| `0x${string}` = undefined
• TBytecode extends undefined
| `0x${string}` = undefined
• TDeployedBytecode extends undefined
| `0x${string}` = undefined
• TCode extends undefined
| `0x${string}` = undefined
• THumanReadableAbi extends readonly string
[] = TAbi
extends readonly string
[] ? TAbi
<TAbi
> : TAbi
extends Abi
? FormatAbi
<TAbi
<TAbi
>> : never
Parameters
• __namedParameters: CreateContractParams
<TName
, TAbi
, TAddress
, TBytecode
, TDeployedBytecode
, TCode
>
Returns
Contract
<TName
, THumanReadableAbi
, TAddress
, TBytecode
, TDeployedBytecode
, TCode
>