Skip to content

WriteActionCreator

WriteActionCreator<THumanReadableAbi, TBytecode, TDeployedBytecode, TAddress, TAddressArgs>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, "payable" | "nonpayable">]: Function & Object & TAddressArgs }

A mapping of payable and nonpayable contract methods to action creators

Example

tevm.contract(
MyContract.withAddress('0x420...').read.balanceOf('0x1234...'),
)

Type parameters

ParameterDefault
THumanReadableAbi extends readonly string[]-
TBytecode extends Hex | undefined-
TDeployedBytecode extends Hex | undefined-
TAddress extends Address | undefined-
TAddressArgsTAddress extends undefined ? object : object

Source

packages/contract/src/write/WriteActionCreator.ts:23


Generated using typedoc-plugin-markdown and TypeDoc