Options
All
  • Public
  • Public/Protected
  • All
Menu

Module lib/proto/cosmos/gov/v1beta1/gov

Index

Type aliases

DeepPartial

DeepPartial<T>: T extends Builtin ? T : T extends infer U[] ? DeepPartial<U>[] : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {[ K in keyof T]: DeepPartial<T[K]> } : Partial<T>

Type parameters

  • T

Variables

Deposit

Deposit: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

DepositParams

DepositParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Proposal

Proposal: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • decode: function
    • decode(input: Uint8Array | Reader, length?: number): Proposal
  • encode: function
    • encode(message: Proposal, writer?: Writer): Writer
  • fromJSON: function
  • fromPartial: function
    • fromPartial(object: { content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; depositEndTime?: Date; finalTallyResult?: { yes?: string | undefined; abstain?: string | undefined; no?: string | undefined; noWithVeto?: string | undefined; }; proposalId?: number; status?: ProposalStatus; submitTime?: Date; totalDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]; votingEndTime?: Date; votingStartTime?: Date }): Proposal
    • Parameters

      • object: { content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; depositEndTime?: Date; finalTallyResult?: { yes?: string | undefined; abstain?: string | undefined; no?: string | undefined; noWithVeto?: string | undefined; }; proposalId?: number; status?: ProposalStatus; submitTime?: Date; totalDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]; votingEndTime?: Date; votingStartTime?: Date }
        • Optional content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }
        • Optional depositEndTime?: Date
        • Optional finalTallyResult?: { yes?: string | undefined; abstain?: string | undefined; no?: string | undefined; noWithVeto?: string | undefined; }
        • Optional proposalId?: number
        • Optional status?: ProposalStatus
        • Optional submitTime?: Date
        • Optional totalDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]
        • Optional votingEndTime?: Date
        • Optional votingStartTime?: Date

      Returns Proposal

  • toJSON: function

TallyParams

TallyParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

TallyResult

TallyResult: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

TextProposal

TextProposal: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Vote

Vote: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

VotingParams

VotingParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Const protobufPackage

protobufPackage: "cosmos.gov.v1beta1" = 'cosmos.gov.v1beta1'

Functions

proposalStatusFromJSON

proposalStatusToJSON

voteOptionFromJSON

voteOptionToJSON

Generated using TypeDoc