注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。An abstract class to represent An individual fragment which has a name from a parse ABI.
Extends
Extended by
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
inputs | readonly | readonly ParamType[] | The inputs for the fragment. | Fragment.inputs |
name | readonly | string | The name of the fragment. | - |
type | readonly | FragmentType | The type of the fragment. | Fragment.type |
Methods
format()
format.
Parameters
| Parameter | Type |
|---|---|
format? | FormatType |
Returns
string
Inherited from
Fragment.format
Source
abi/fragments.ts:1055from()
obj, wich can be any supported ABI frgament type.
Parameters
| Parameter | Type |
|---|---|
obj | any |
Returns
Fragment
Inherited from
Fragment.from
Source
abi/fragments.ts:1060isConstructor()
value is a ConstructorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ConstructorFragment
Inherited from
Fragment.isConstructor
Source
abi/fragments.ts:1122isError()
value is an ErrorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ErrorFragment
Inherited from
Fragment.isError
Source
abi/fragments.ts:1129isEvent()
value is an EventFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is EventFragment
Inherited from
Fragment.isEvent
Source
abi/fragments.ts:1136isFunction()
value is a FunctionFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is FunctionFragment
Inherited from
Fragment.isFunction
Source
abi/fragments.ts:1143isStruct()
value is a StructFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is StructFragment
Inherited from
Fragment.isStruct
