참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.An abstract class to represent An individual fragment from a parse ABI.
Extended by
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
inputs | readonly | readonly ParamType[] | The inputs for the fragment. |
type | readonly | FragmentType | The type of the fragment. |
Methods
format()
format.
Parameters
| Parameter | Type |
|---|---|
format? | FormatType |
Returns
string
Source
abi/fragments.ts:1055from()
obj, wich can be any supported ABI frgament type.
Parameters
| Parameter | Type |
|---|---|
obj | any |
Returns
Fragment
Source
abi/fragments.ts:1060isConstructor()
value is a ConstructorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ConstructorFragment
Source
abi/fragments.ts:1122isError()
value is an ErrorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ErrorFragment
Source
abi/fragments.ts:1129isEvent()
value is an EventFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is EventFragment
Source
abi/fragments.ts:1136isFunction()
value is a FunctionFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is FunctionFragment
Source
abi/fragments.ts:1143isStruct()
value is a StructFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is StructFragment
