A Fragment which represents an Event.
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 |
The Event topic hash.
string
Returns a string representation of this event as format
.
Parameter | Type |
---|---|
format ? | FormatType |
string
Returns a new EventFragment for obj
.
Parameter | Type |
---|---|
obj | any |
Return the topic hash for an event with name
and params
.
Parameter | Type |
---|---|
name | string |
params ? | any [] |
string
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true
and provides a type guard if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment
A Fragment which represents an Event.
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 |
The Event topic hash.
string
Returns a string representation of this event as format
.
Parameter | Type |
---|---|
format ? | FormatType |
string
Returns a new EventFragment for obj
.
Parameter | Type |
---|---|
obj | any |
Return the topic hash for an event with name
and params
.
Parameter | Type |
---|---|
name | string |
params ? | any [] |
string
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true
and provides a type guard if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment