Variables
Deposit
Deposit: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Deposit
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Deposit, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { amount?: { denom?: string | undefined; amount?: string | undefined; }[]; depositor?: string; proposalId?: number }): Deposit
-
Parameters
-
object: { amount?: { denom?: string | undefined; amount?: string | undefined; }[]; depositor?: string; proposalId?: number }
-
Optional amount?: { denom?: string | undefined; amount?: string | undefined; }[]
-
Optional depositor?: string
-
Optional proposalId?: number
-
toJSON: function
-
Parameters
Returns unknown
DepositParams
DepositParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): DepositParams
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { maxDepositPeriod?: { seconds?: number | undefined; nanos?: number | undefined; }; minDeposit?: { denom?: string | undefined; amount?: string | undefined; }[] }): DepositParams
-
Parameters
-
object: { maxDepositPeriod?: { seconds?: number | undefined; nanos?: number | undefined; }; minDeposit?: { denom?: string | undefined; amount?: string | undefined; }[] }
-
Optional maxDepositPeriod?: { seconds?: number | undefined; nanos?: number | undefined; }
-
Optional minDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]
-
toJSON: function
-
Parameters
Returns unknown
Proposal
Proposal: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Proposal
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Proposal, writer?: Writer): Writer
-
Parameters
Returns 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 submitTime?: Date
-
Optional totalDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]
-
Optional votingEndTime?: Date
-
Optional votingStartTime?: Date
-
toJSON: function
-
Parameters
Returns unknown
TallyParams
TallyParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): TallyParams
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { quorum?: Uint8Array; threshold?: Uint8Array; vetoThreshold?: Uint8Array }): TallyParams
-
Parameters
-
object: { quorum?: Uint8Array; threshold?: Uint8Array; vetoThreshold?: Uint8Array }
-
Optional quorum?: Uint8Array
-
Optional threshold?: Uint8Array
-
Optional vetoThreshold?: Uint8Array
-
toJSON: function
-
Parameters
Returns unknown
TallyResult
TallyResult: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): TallyResult
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { abstain?: string; no?: string; noWithVeto?: string; yes?: string }): TallyResult
-
Parameters
-
object: { abstain?: string; no?: string; noWithVeto?: string; yes?: string }
-
Optional abstain?: string
-
Optional no?: string
-
Optional noWithVeto?: string
-
Optional yes?: string
-
toJSON: function
-
Parameters
Returns unknown
TextProposal
TextProposal: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): TextProposal
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { description?: string; title?: string }): TextProposal
-
Parameters
-
object: { description?: string; title?: string }
-
Optional description?: string
-
Optional title?: string
-
toJSON: function
-
Parameters
Returns unknown
Vote
Vote: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): Vote
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: Vote, writer?: Writer): Writer
-
Parameters
-
message: Vote
-
writer: Writer = ...
Returns Writer
-
fromJSON: function
- fromJSON(object: any): Vote
-
fromPartial: function
- fromPartial(object: { option?: VoteOption; proposalId?: number; voter?: string }): Vote
-
Parameters
-
object: { option?: VoteOption; proposalId?: number; voter?: string }
-
-
Optional proposalId?: number
-
Optional voter?: string
-
toJSON: function
- toJSON(message: Vote): unknown
-
Parameters
Returns unknown
VotingParams
VotingParams: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): VotingParams
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { votingPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } }): VotingParams
-
Parameters
-
object: { votingPeriod?: { seconds?: number | undefined; nanos?: number | undefined; } }
-
Optional votingPeriod?: { seconds?: number | undefined; nanos?: number | undefined; }
-
toJSON: function
-
Parameters
Returns unknown
Const protobufPackage
protobufPackage: "cosmos.gov.v1beta1" = 'cosmos.gov.v1beta1'
Maximum period for Atom holders to deposit on a proposal. Initial value: 2 months.