Skip to content

WriteActionCreator

WriteActionCreator<THumanReadableAbi, TAddress, TCode, TAddressArgs>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, “payable” | “nonpayable”>]: Function & Object & (TCode extends undefined ? Object : Object) & TAddressArgs }

A mapping of payable and nonpayable contract methods to action creators

Example

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

Type Parameters

THumanReadableAbi extends readonly string[]

TAddress extends Address | undefined

TCode extends Hex | undefined

TAddressArgs = TAddress extends undefined ? object : object

Defined in

write/WriteActionCreator.ts:23