ReadActionCreator
ReadActionCreator<
THumanReadableAbi,TBytecode,TDeployedBytecode,TAddress,TAddressArgs>: { [TFunctionName in ExtractAbiFunctionNames<ParseAbi<THumanReadableAbi>, “pure” | “view”>]: Function & Object & TAddressArgs }
A mapping of view and pure contract methods to action creators
Example
tevm.contract( MyScript.withAddress('0x420...').read.balanceOf('0x1234...'),)Type parameters
• THumanReadableAbi extends readonly string[]
• TBytecode extends Hex | undefined
• TDeployedBytecode extends Hex | undefined
• TAddress extends Address | undefined
• TAddressArgs = TAddress extends undefined ? object : object
Source
read/ReadActionCreator.ts:23