name: Phase

description: An EnumType that indicates the specific phase where the EventRecord was generated

Hierarchy

↳ EnumType<ApplyExtrinsic | Finalization>

↳ Phase

Implements

Constructors

constructor

⊕ new Phase(value: any, index?: undefined | number): Phase

Overrides EnumType.constructor

Defined in EventRecord.ts:32

Parameters:

Name Type
value any
Optional index undefined number

Returns: Phase


Accessors

asApplyExtrinsic

getasApplyExtrinsic(): ApplyExtrinsic

Defined in EventRecord.ts:43

description: Returns the item as a ApplyExtrinsic

Returns: ApplyExtrinsic


asFinalization

getasFinalization(): Finalization

Defined in EventRecord.ts:50

description: Returns the item as a Finalization

Returns: Finalization


encodedLength

getencodedLength(): number

Inherited from EnumType.encodedLength

Defined in codec/EnumType.ts:97

description: The length of the value when encoded as a Uint8Array

Returns: number


isNone

getisNone(): boolean

Inherited from EnumType.isNone

Defined in codec/EnumType.ts:104

description: Checks if the Enum points to a Null type

Returns: boolean


isNull

getisNull(): boolean

Inherited from EnumType.isNull

Defined in codec/EnumType.ts:111

description: Checks if the Enum points to a Null type (deprecated, use isNone)

Returns: boolean


type

gettype(): string

Inherited from EnumType.type

Defined in codec/EnumType.ts:118

description: The name of the type this enum value represents

Returns: string


value

getvalue(): Codec

Inherited from EnumType.value

Defined in codec/EnumType.ts:125

description: The value of the enum

Returns: Codec


Methods

toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from EnumType.toHex

Defined in codec/EnumType.ts:132

description: Returns a hex string representation of the value

Returns: string


toJSON

▸ toJSON(): any

Implementation of Codec.toJSON

Inherited from EnumType.toJSON

Defined in codec/EnumType.ts:139

description: Converts the Object to JSON, typically used for RPC transfers

Returns: any


toNumber

▸ toNumber(): number

Inherited from EnumType.toNumber

Defined in codec/EnumType.ts:146

description: Returns the number representation for the value

Returns: number


toString

▸ toString(): string

Implementation of Codec.toString

Inherited from EnumType.toString

Defined in codec/EnumType.ts:153

description: Returns the string representation of the value

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Inherited from EnumType.toU8a

Defined in codec/EnumType.ts:161

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


results matching ""

    No results matching ""