name: EventData
description: Wrapper for the actual data that forms part of an Event
Hierarchy
↳ Tuple
↳ EventData
Implements
Indexable
[n: number]: Codec
Constructors
constructor
⊕ new EventData(Types: Array<Constructor>, value: Uint8Array, typeDef: Array<TypeDef>, meta: EventMetadata, section: string, method: string): EventData
Overrides Tuple.constructor
Defined in Event.ts:27
Parameters:
| Name | Type |
|---|---|
| Types | Array<Constructor> |
| value | Uint8Array |
| typeDef | Array<TypeDef> |
| meta | EventMetadata |
| section | string |
| method | string |
Returns: EventData
Accessors
Types
getTypes(): Array<string>
Defined in codec/Tuple.ts:68
description: The types definition of the tuple
Returns: Array<string>
encodedLength
getencodedLength(): number
Inherited from Tuple.encodedLength
Defined in codec/Tuple.ts:59
description: The length of the value when encoded as a Uint8Array
Returns: number
meta
getmeta(): EventMetadata
Defined in Event.ts:41
description: The wrapped EventMetadata
Returns: EventMetadata
method
getmethod(): string
Defined in Event.ts:48
description: The method as a string
Returns: string
section
getsection(): string
Defined in Event.ts:55
description: The section as a string
Returns: string
typeDef
gettypeDef(): Array<TypeDef>
Defined in Event.ts:62
description: The TypeDef for this event
Returns: Array<TypeDef>
Methods
filter
▸ filter(callbackfn: function, thisArg?: any): Array<Codec>
Overrides Array.filter
Defined in codec/Tuple.ts:126
description: Filters the array with the callback
Parameters:
| Name | Type | Description |
|---|---|---|
| callbackfn | function |
The filter function |
Optional thisArg |
any |
The `this` object to apply the result to |
Returns: Array<Codec>
map
▸ map<U>(callbackfn: function, thisArg?: any): Array<U>
Overrides Array.map
Defined in codec/Tuple.ts:135
description: Maps the array with the callback
Type parameters:
U
Parameters:
| Name | Type | Description |
|---|---|---|
| callbackfn | function |
The mapping function |
Optional thisArg |
any |
The `this` onject to apply the result to |
Returns: Array<U>
toArray
▸ toArray(): Array<Codec>
Defined in codec/Tuple.ts:77
description: Converts the Object to an standard JavaScript Array
Returns: Array<Codec>
toHex
▸ toHex(): string
Defined in codec/Tuple.ts:84
description: Returns a hex string representation of the value
Returns: string
toJSON
▸ toJSON(): any
Implementation of Codec.toJSON
Defined in codec/Tuple.ts:91
description: Converts the Object to JSON, typically used for RPC transfers
Returns: any
toString
▸ toString(): string
Implementation of Codec.toString
Overrides Array.toString
Defined in codec/Tuple.ts:100
description: Returns the string representation of the value
Returns: string
toU8a
▸ toU8a(isBare?: undefined | false | true): Uint8Array
Defined in codec/Tuple.ts:109
description: Encodes the value as a Uint8Array as per the parity-codec specifications
Parameters:
| Name | Type | Description | ||
|---|---|---|---|---|
Optional isBare |
undefined |
false |
true |
true when the value has none of the type-specific prefixes (internal) |
Returns: Uint8Array
<Static> with
▸ with(Types: TupleConstructors): Constructor<Tuple>
Defined in codec/Tuple.ts:48
Parameters:
| Name | Type |
|---|---|
| Types | TupleConstructors |
Returns: Constructor<Tuple>