Abstract Class: AbiParserInterface
Defined in: src/utils/calldata/parser/interface.ts:6
Abi parser interface
Constructors
Constructor
new AbiParserInterface():
AbiParserInterface
Returns
AbiParserInterface
Methods
methodInputsLength()
abstractmethodInputsLength(abiMethod):number
Defined in: src/utils/calldata/parser/interface.ts:12
Helper to calculate inputs length from abi
Parameters
abiMethod
FunctionAbi
Returns
number
number
getMethod()
abstractgetMethod(name):FunctionAbi|undefined
Defined in: src/utils/calldata/parser/interface.ts:19
get method definition from abi
Parameters
name
string
string
Returns
FunctionAbi | undefined
FunctionAbi | undefined
getLegacyFormat()
abstractgetLegacyFormat():Abi
Defined in: src/utils/calldata/parser/interface.ts:25
Return Abi in legacy format
Returns
Abi
getRequestParser()
abstractgetRequestParser(abiType): (val) =>any
Defined in: src/utils/calldata/parser/interface.ts:32
Get request parser for the given abi type
Parameters
abiType
string
AbiEntryType
Returns
Parser function
(val) => any
getResponseParser()
abstractgetResponseParser(abiType): (responseIterator) =>any
Defined in: src/utils/calldata/parser/interface.ts:39
Get response parser for the given abi type
Parameters
abiType
string
AbiEntryType
Returns
Parser function
(responseIterator) => any