Variables
MsgDeposit
MsgDeposit: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): MsgDeposit
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: MsgDeposit, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { amount?: { denom?: string | undefined; amount?: string | undefined; }[]; depositor?: string; proposalId?: number }): MsgDeposit
-
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
MsgDepositResponse
MsgDepositResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
-
toJSON: function
-
Parameters
Returns unknown
MsgSubmitProposal
MsgSubmitProposal: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; initialDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]; proposer?: string }): MsgSubmitProposal
-
Parameters
-
object: { content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }; initialDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]; proposer?: string }
-
Optional content?: { typeUrl?: string | undefined; value?: Uint8Array | undefined; }
-
Optional initialDeposit?: { denom?: string | undefined; amount?: string | undefined; }[]
-
Optional proposer?: string
-
toJSON: function
-
Parameters
Returns unknown
MsgSubmitProposalResponse
MsgSubmitProposalResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
-
Parameters
-
object: { proposalId?: number }
-
Optional proposalId?: number
-
toJSON: function
-
Parameters
Returns unknown
MsgVote
MsgVote: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
- decode(input: Uint8Array | Reader, length?: number): MsgVote
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
- encode(message: MsgVote, writer?: Writer): Writer
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
- fromPartial(object: { option?: VoteOption; proposalId?: number; voter?: string }): MsgVote
-
Parameters
-
object: { option?: VoteOption; proposalId?: number; voter?: string }
-
-
Optional proposalId?: number
-
Optional voter?: string
-
toJSON: function
-
Parameters
Returns unknown
MsgVoteResponse
MsgVoteResponse: { decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }
Type declaration
-
decode: function
-
Parameters
-
input: Uint8Array | Reader
-
Optional length: number
-
encode: function
-
Parameters
Returns Writer
-
fromJSON: function
-
fromPartial: function
-
toJSON: function
-
Parameters
Returns unknown
Const protobufPackage
protobufPackage: "cosmos.gov.v1beta1" = 'cosmos.gov.v1beta1'