Vote: {
    decode(input: Uint8Array | Reader, length?: number): Vote;
    encode(message: Vote, writer?: Writer): Writer;
    fromJSON(object: any): Vote;
    fromPartial<I>(object: I): Vote;
    toJSON(message: Vote): unknown;
}

Type declaration

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • Type Parameters

      • I extends {
            metadata?: string;
            options?: ({ option?: VoteOption | undefined; weight?: string | undefined; })[];
            proposalId?: number;
            voter?: string;
        } & {
            metadata?: string;
            options?: {
                option?: VoteOption;
                weight?: string;
            }[] & ({
                option?: VoteOption;
                weight?: string;
            } & ({ option?: VoteOption | undefined; weight?: string | undefined; }) & { [ K in string | number | symbol]: never })[] & { [ K in string | symbol]: never };
            proposalId?: number;
            voter?: string;
        } & { [ K in string | number | symbol]: never }

      Parameters

      • object: I

      Returns Vote

  • toJSON:function

Generated using TypeDoc