Skip to main content
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
Each input and output of a Fragment is an Array of ParamType.

Properties

Methods

format()

Return a string representation of this type. For example, sighash" => "(uint256,address)" "minimal" => "tuple(uint256,address) indexed" "full" => "tuple(uint256 foo, address bar) indexed baz"

Parameters

Returns

string The formatted type.

Source

abi/fragments.ts:707

isArray()

This provides a type guard ensuring that arrayChildren and arrayLength are non-null.

Returns

this is ParamType & Object True if this is an Array type.

Source

abi/fragments.ts:768

isIndexable()

This provides a type guard ensuring that indexed is non-null.

Returns

this is ParamType & Object True if this is an Indexable type.

Source

abi/fragments.ts:786

isTuple()

This provides a type guard ensuring that components is non-null.

Returns

this is ParamType & Object True if this is a Tuple type.

Source

abi/fragments.ts:777

walk()

Walks the ParamType with value, calling process on each type, destructing the value recursively.

Parameters

Returns

any

Source

abi/fragments.ts:793

walkAsync()

Walks the ParamType with value, asynchronously calling process on each type, destructing the value recursively. This can be used to resolve ENS naes by walking and resolving each "address" type.

Parameters

Returns

Promise<any>

Source

abi/fragments.ts:903

from()

Creates a new ParamType for obj. If allowIndexed then the indexed keyword is permitted, otherwise the indexed keyword will throw an error.

Parameters

Returns

ParamType

Source

abi/fragments.ts:920

isParamType()

Returns true if value is a ParamType.

Parameters

Returns

value is ParamType

Source

abi/fragments.ts:1015