ContractFunction class sealed

Implemented types
Implementers

Constructors

ContractFunction.fromJson(Map json)
factory

Properties

function String
no setter
functionSelector Uint8List
no setter
functionSelectorHex String
no setter
hashCode int
The hash code for this object.
no setterinherited
isExternal bool
no setter
isLocal bool
no setter
name String
final
outputTypes List<FunctionParam>?
finalinherited
parameters List<FunctionParam>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateMutability StateMutability?
finalinherited

Methods

addValues({required List values}) ContractFunctionWithValues
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Json
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

decode({required Uint8List data, required ContractFunction function}) ContractFunctionWithValues
Try to decode the raw data using the function and return the decoded function If the decoding of the data with information from the function fails a NotDecodableContractFunction is returned
decodeRaw({required Uint8List data, required Map<String, String> functionMap}) ContractFunctionWithValues
Try to decode the raw data using the abiList and return the decoded function If the function is not found, return null
decodeRawWithFetch({required Uint8List data, Map<String, String>? functionMap, bool openChain = true, bool fourByte = true}) Future<ContractFunctionWithValues>
Try to decode the raw data using the abiList If the function is not found locally it will try to fetch the function from an external source (4byte.directory) If the function is not found, return null If a local function is found, return a LocalContractFunctionWithValues If an external function is found, return a ExternalContractFunctionWithValues
fromTextSignature({required String textSignature}) ExternalContractFunction?