Skip to content

Latest commit

 

History

History
240 lines (121 loc) · 3.97 KB

File metadata and controls

240 lines (121 loc) · 3.97 KB

@cyberchain/smart-contract-wrapper


@cyberchain/smart-contract-wrapper / StructFragment

Class: StructFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:429

A Fragment which represents a structure.

Extends

Properties

inputs

readonly inputs: readonly ParamType[]

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:213

The inputs for the fragment.

Inherited from

NamedFragment.inputs


name

readonly name: string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:256

The name of the fragment.

Inherited from

NamedFragment.name


type

readonly type: FragmentType

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:209

The type of the fragment.

Inherited from

NamedFragment.type

Methods

format()

format(): string

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:437

Returns a string representation of this struct as %%format%%.

Returns

string

Overrides

NamedFragment.format


from()

static from(obj): StructFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:441

Returns a new StructFragment for %%obj%%.

Parameters

obj

any

Returns

StructFragment

Overrides

NamedFragment.from


isConstructor()

static isConstructor(value): value is ConstructorFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:230

Returns true if %%value%% is a [[ConstructorFragment]].

Parameters

value

any

Returns

value is ConstructorFragment

Inherited from

NamedFragment.isConstructor


isError()

static isError(value): value is ErrorFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:234

Returns true if %%value%% is an [[ErrorFragment]].

Parameters

value

any

Returns

value is ErrorFragment

Inherited from

NamedFragment.isError


isEvent()

static isEvent(value): value is EventFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:238

Returns true if %%value%% is an [[EventFragment]].

Parameters

value

any

Returns

value is EventFragment

Inherited from

NamedFragment.isEvent


isFragment()

static isFragment(value): value is FunctionFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:446

Returns true and provides a type guard if %%value%% is a StructFragment.

Parameters

value

any

Returns

value is FunctionFragment


isFunction()

static isFunction(value): value is FunctionFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:242

Returns true if %%value%% is a [[FunctionFragment]].

Parameters

value

any

Returns

value is FunctionFragment

Inherited from

NamedFragment.isFunction


isStruct()

static isStruct(value): value is StructFragment

Defined in: node_modules/@asanrom/ethers-abi/dist/abi/fragments.d.ts:246

Returns true if %%value%% is a [[StructFragment]].

Parameters

value

any

Returns

value is StructFragment

Inherited from

NamedFragment.isStruct