Skip to main content
Version: 10.8.0

Class: AbiParser1

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:6

Abi parser interface

Implements​

Constructors​

Constructor​

new AbiParser1(abi, parsingStrategy?): AbiParser1

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:11

Parameters​

abi​

Abi

parsingStrategy?​

ParsingStrategy

Returns​

AbiParser1

Properties​

abi​

abi: Abi

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:7


parsingStrategy​

parsingStrategy: ParsingStrategy

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:9

Methods​

getRequestParser()​

getRequestParser(abiType): (val) => any

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:18

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-0-1.1.0.ts:25

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-0-1.1.0.ts:38

abi method inputs length without '_len' inputs cairo 0 reducer

Parameters​

abiMethod​

FunctionAbi

FunctionAbi

Returns​

number

number

Implementation of​

AbiParserInterface.methodInputsLength


getMethod()​

getMethod(name): FunctionAbi | undefined

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:47

get method definition from abi

Parameters​

name​

string

string

Returns​

FunctionAbi | undefined

FunctionAbi | undefined

Implementation of​

AbiParserInterface.getMethod


getLegacyFormat()​

getLegacyFormat(): Abi

Defined in: src/utils/calldata/parser/parser-0-1.1.0.ts:55

Get Abi in legacy format

Returns​

Abi

Abi

Implementation of​

AbiParserInterface.getLegacyFormat