A Fragment which represents a method.

Extends

Properties

PropertyModifierTypeDescriptionInherited from
inputsreadonlyreadonly ParamType[]The inputs for the fragment.Fragment.inputs
payablereadonlybooleanIf the function can be sent value during invocation.-
typereadonlyFragmentTypeThe type of the fragment.Fragment.type

Methods

format()

format(format?): string

Returns a string representation of this fallback as format.

Parameters

ParameterType
format?FormatType

Returns

string

Overrides

Fragment.format

Source

abi/fragments.ts:1479


from()

static from(obj): FallbackFragment

Returns a new FallbackFragment for obj.

Parameters

ParameterType
objany

Returns

FallbackFragment

Overrides

Fragment.from

Source

abi/fragments.ts:1493


isConstructor()

static isConstructor(value): value is ConstructorFragment

Returns true if value is a ConstructorFragment.

Parameters

ParameterType
valueany

Returns

value is ConstructorFragment

Inherited from

Fragment.isConstructor

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

Inherited from

Fragment.isError

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

Inherited from

Fragment.isEvent

Source

abi/fragments.ts:1136


isFragment()

static isFragment(value): value is FallbackFragment

Returns true and provides a type guard if value is a FallbackFragment.

Parameters

ParameterType
valueany

Returns

value is FallbackFragment

Source

abi/fragments.ts:1574


isFunction()

static isFunction(value): value is FunctionFragment

Returns true if value is a FunctionFragment.

Parameters

ParameterType
valueany

Returns

value is FunctionFragment

Inherited from

Fragment.isFunction

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

Inherited from

Fragment.isStruct

Source

abi/fragments.ts:1150