An abstract class to represent An individual fragment from a parse ABI.

Extended by

Properties

PropertyModifierTypeDescription
inputsreadonlyreadonly ParamType[]The inputs for the fragment.
typereadonlyFragmentTypeThe type of the fragment.

Methods

format()

abstract format(format?): string

Returns a string representation of this fragment as format.

Parameters

ParameterType
format?FormatType

Returns

string

Source

abi/fragments.ts:1055


from()

static from(obj): Fragment

Creates a new Fragment for obj, wich can be any supported ABI frgament type.

Parameters

ParameterType
objany

Returns

Fragment

Source

abi/fragments.ts:1060


isConstructor()

static isConstructor(value): value is ConstructorFragment

Returns true if value is a ConstructorFragment.

Parameters

ParameterType
valueany

Returns

value is ConstructorFragment

Source

abi/fragments.ts:1122


isError()

static isError(value): value is ErrorFragment

Returns true if value is an ErrorFragment.

Parameters

ParameterType
valueany

Returns

value is ErrorFragment

Source

abi/fragments.ts:1129


isEvent()

static isEvent(value): value is EventFragment

Returns true if value is an EventFragment.

Parameters

ParameterType
valueany

Returns

value is EventFragment

Source

abi/fragments.ts:1136


isFunction()

static isFunction(value): value is FunctionFragment

Returns true if value is a FunctionFragment.

Parameters

ParameterType
valueany

Returns

value is FunctionFragment

Source

abi/fragments.ts:1143


isStruct()

static isStruct(value): value is StructFragment

Returns true if value is a StructFragment.

Parameters

ParameterType
valueany

Returns

value is StructFragment

Source

abi/fragments.ts:1150