Class: AbiParser2
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:13
Abi parser interface
Implements
Constructors
Constructor
new AbiParser2(
abi,parsingStrategy?):AbiParser2
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:18
Parameters
abi
parsingStrategy?
Returns
AbiParser2
Properties
abi
abi:
Abi
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:14
parsingStrategy
parsingStrategy:
ParsingStrategy
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:16
Methods
getRequestParser()
getRequestParser(
abiType): (val) =>any
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:23
Get request parser for the given abi type
Parameters
abiType
string
AbiEntryType
Returns
Parser function
(val) => any
Implementation of
AbiParserInterface.getRequestParser
getResponseParser()
getResponseParser(
abiType): (responseIterator) =>any
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:30
Get response parser for the given abi type
Parameters
abiType
string
AbiEntryType
Returns
Parser function
(responseIterator) => any
Implementation of
AbiParserInterface.getResponseParser
methodInputsLength()
methodInputsLength(
abiMethod):number
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:42
abi method inputs length
Parameters
abiMethod
FunctionAbi
Returns
number
number
Implementation of
AbiParserInterface.methodInputsLength
getMethod()
getMethod(
name):FunctionAbi|undefined
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:51
get method definition from abi
Parameters
name
string
string
Returns
FunctionAbi | undefined
FunctionAbi | undefined
Implementation of
getLegacyFormat()
getLegacyFormat():
Abi
Defined in: src/utils/calldata/parser/parser-2.0.0.ts:62
Get Abi in legacy format
Returns
Abi