참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.A Fragment which represents a method.
Extends
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
constant | readonly | boolean | If the function is constant (e.g. pure or view functions). | - |
gas | readonly | null | bigint | The recommended gas limit to send when calling this function. | - |
inputs | readonly | readonly ParamType[] | The inputs for the fragment. | NamedFragment.inputs |
name | readonly | string | The name of the fragment. | NamedFragment.name |
outputs | readonly | readonly ParamType[] | The returned types for the result of calling this function. | - |
payable | readonly | boolean | If the function can be sent value during invocation. | - |
stateMutability | readonly | "payable" | "nonpayable" | "view" | "pure" | The state mutability (e.g. payable, nonpayable, view or pure) | - |
type | readonly | FragmentType | The type of the fragment. | NamedFragment.type |
Accessors
selector
Returns
string
Source
abi/fragments.ts:1632Methods
format()
format.
Parameters
| Parameter | Type |
|---|---|
format? | FormatType |
Returns
string
Overrides
NamedFragment.format
Source
abi/fragments.ts:1639from()
obj.
Parameters
| Parameter | Type |
|---|---|
obj | any |
Returns
FunctionFragment
Overrides
NamedFragment.from
Source
abi/fragments.ts:1693getSelector()
name and params.
Parameters
| Parameter | Type |
|---|---|
name | string |
params? | any[] |
Returns
string
Source
abi/fragments.ts:1684isConstructor()
value is a ConstructorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ConstructorFragment
Inherited from
NamedFragment.isConstructor
Source
abi/fragments.ts:1122isError()
value is an ErrorFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is ErrorFragment
Inherited from
NamedFragment.isError
Source
abi/fragments.ts:1129isEvent()
value is an EventFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is EventFragment
Inherited from
NamedFragment.isEvent
Source
abi/fragments.ts:1136isFragment()
true and provides a type guard if value is a FunctionFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is FunctionFragment
Source
abi/fragments.ts:1756isFunction()
value is a FunctionFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is FunctionFragment
Inherited from
NamedFragment.isFunction
Source
abi/fragments.ts:1143isStruct()
value is a StructFragment.
Parameters
| Parameter | Type |
|---|---|
value | any |
Returns
value is StructFragment
Inherited from
NamedFragment.isStruct
