참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.A Fragment which represents a method.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
inputs | readonly | readonly ParamType[] | The inputs for the fragment. | Fragment.inputs |
payable | readonly | boolean | If the function can be sent value during invocation. | - |
type | readonly | FragmentType | The type of the fragment. | Fragment.type |
Methods
format()
format.
Parameters
| Parameter | Type |
|---|---|
format? | FormatType |
Returns
string
Overrides
Fragment.format
Source
abi/fragments.ts:1479from()
obj.
Parameters
| Parameter | Type |
|---|---|
obj | any |
Returns
FallbackFragment
Overrides
Fragment.from
Source
abi/fragments.ts:1493isConstructor()
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:1136isFragment()
true and provides a type guard if value is a FallbackFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is FallbackFragment
Source
abi/fragments.ts:1574isFunction()
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
