注意: 此页面尚未翻译成中文。以下内容为英文原版。A Fragment which represents an Event.
Extends
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
anonymous | readonly | boolean | Whether this event is anonymous. | - |
inputs | readonly | readonly ParamType [] | The inputs for the fragment. | NamedFragment .inputs |
name | readonly | string | The name of the fragment. | NamedFragment .name |
type | readonly | FragmentType | The type of the fragment. | NamedFragment .type |
Accessors
topicHash
Returns
string
Source
abi/fragments.ts:1277Methods
format()
format
.
Parameters
Parameter | Type |
---|---|
format ? | FormatType |
Returns
string
Overrides
NamedFragment
.format
Source
abi/fragments.ts:1284from()
obj
.
Parameters
Parameter | Type |
---|---|
obj | any |
Returns
EventFragment
Overrides
NamedFragment
.from
Source
abi/fragments.ts:1320getTopicHash()
name
and params
.
Parameters
Parameter | Type |
---|---|
name | string |
params ? | any [] |
Returns
string
Source
abi/fragments.ts:1311isConstructor()
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 an EventFragment.
Parameters
Parameter | Type |
---|---|
value | any |
Returns
value is EventFragment
Source
abi/fragments.ts:1351isFunction()
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