interface Vote {
    asAye: Balance;
    asNay: Balance;
    createdAtHash?: IU8a;
    initialU8aLength?: number;
    isAye: boolean;
    isNay: boolean;
    isStorageFallback?: boolean;
    registry: Registry;
    type: "Aye" | "Nay";
    get defIndexes(): number[];
    get defKeys(): string[];
    get encodedLength(): number;
    get hash(): IU8a;
    get index(): number;
    get inner(): Codec;
    get isBasic(): boolean;
    get isEmpty(): boolean;
    get isNone(): boolean;
    get value(): Codec;
    _toRawStruct(): string[] | Record<string, string | number>;
    eq(other?): boolean;
    inspect(): Inspect;
    toHex(): `0x${string}`;
    toHuman(isExtended?): AnyJson;
    toJSON(): AnyJson;
    toNumber(): number;
    toPrimitive(): AnyJson;
    toRawType(): string;
    toString(): string;
    toU8a(isBare?): Uint8Array;
}

Hierarchy

  • Enum
    • Vote

Properties

asAye: Balance
asNay: Balance
createdAtHash?: IU8a
initialU8aLength?: number
isAye: boolean
isNay: boolean
isStorageFallback?: boolean
registry: Registry
type: "Aye" | "Nay"

Accessors

  • get defIndexes(): number[]
  • Returns number[]

    Description

    The available keys for this enum

  • get defKeys(): string[]
  • Returns string[]

    Description

    The available keys for this enum

  • get encodedLength(): number
  • Returns number

    Description

    The length of the value when encoded as a Uint8Array

  • get hash(): IU8a
  • Returns IU8a

    Description

    returns a hash of the contents

  • get index(): number
  • Returns number

    Description

    The index of the enum value

  • get inner(): Codec
  • Returns Codec

    Description

    The value of the enum

  • get isBasic(): boolean
  • Returns boolean

    Description

    true if this is a basic enum (no values)

  • get isEmpty(): boolean
  • Returns boolean

    Description

    Checks if the value is an empty value

  • get isNone(): boolean
  • Returns boolean

    Description

    Checks if the Enum points to a [[Null]] type

  • get value(): Codec
  • Returns Codec

    Description

    The value of the enum

Methods

  • Returns string[] | Record<string, string | number>

    Description

    Returns a raw struct representation of the enum types

  • Parameters

    • Optional other: unknown

    Returns boolean

    Description

    Compares the value of the input to see if there is a match

  • Returns Inspect

    Description

    Returns a breakdown of the hex encoding for this Codec

  • Returns `0x${string}`

    Description

    Returns a hex string representation of the value

  • Parameters

    • Optional isExtended: boolean

    Returns AnyJson

    Description

    Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information

  • Returns AnyJson

    Description

    Converts the Object to JSON, typically used for RPC transfers

  • Returns number

    Description

    Returns the number representation for the value

  • Returns AnyJson

    Description

    Converts the value in a best-fit primitive form

  • Returns string

    Description

    Returns the base runtime type name for this instance

  • Returns string

    Description

    Returns the string representation of the value

  • Parameters

    • Optional isBare: boolean

      true when the value has none of the type-specific prefixes (internal)

    Returns Uint8Array

    Description

    Encodes the value as a Uint8Array as per the SCALE specifications

Generated using TypeDoc