import { Any, AnySDKType } from "../../../google/protobuf/any"; import { Coin, CoinSDKType } from "../../../cosmos/base/v1beta1/coin"; import { VoteOption, WeightedVoteOption, WeightedVoteOptionSDKType } from "./gov"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; export declare const protobufPackage = "govgen.gov.v1beta1"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposal { content?: Any | undefined; initialDeposit: Coin[]; proposer: string; } /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposalSDKType { content?: AnySDKType | undefined; initial_deposit: CoinSDKType[]; proposer: string; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { proposalId: bigint; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseSDKType { proposal_id: bigint; } /** MsgVote defines a message to cast a vote. */ export interface MsgVote { proposalId: bigint; voter: string; option: VoteOption; } /** MsgVote defines a message to cast a vote. */ export interface MsgVoteSDKType { proposal_id: bigint; voter: string; option: VoteOption; } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse { } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponseSDKType { } /** * MsgVoteWeighted defines a message to cast a vote. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeighted { proposalId: bigint; voter: string; options: WeightedVoteOption[]; } /** * MsgVoteWeighted defines a message to cast a vote. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedSDKType { proposal_id: bigint; voter: string; options: WeightedVoteOptionSDKType[]; } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedResponse { } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedResponseSDKType { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDeposit { proposalId: bigint; depositor: string; amount: Coin[]; } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDepositSDKType { proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponse { } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponseSDKType { } export declare const MsgSubmitProposal: { typeUrl: string; encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal; fromJSON(object: any): MsgSubmitProposal; toJSON(message: MsgSubmitProposal): unknown; fromPartial & { content?: Any & { typeUrl: string; value: Uint8Array; } & Record, never>; initialDeposit?: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; proposer?: string; } & Record, never>>(object: I): MsgSubmitProposal; }; export declare const MsgSubmitProposalResponse: { typeUrl: string; encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse; fromJSON(object: any): MsgSubmitProposalResponse; toJSON(message: MsgSubmitProposalResponse): unknown; fromPartial & { proposalId?: bigint; } & Record, never>>(object: I): MsgSubmitProposalResponse; }; export declare const MsgVote: { typeUrl: string; encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVote; fromJSON(object: any): MsgVote; toJSON(message: MsgVote): unknown; fromPartial & { proposalId?: bigint; voter?: string; option?: VoteOption; } & Record, never>>(object: I): MsgVote; }; export declare const MsgVoteResponse: { typeUrl: string; encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse; fromJSON(_: any): MsgVoteResponse; toJSON(_: MsgVoteResponse): unknown; fromPartial & {} & Record, never>>(_: I): MsgVoteResponse; }; export declare const MsgVoteWeighted: { typeUrl: string; encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted; fromJSON(object: any): MsgVoteWeighted; toJSON(message: MsgVoteWeighted): unknown; fromPartial & { proposalId?: bigint; voter?: string; options?: WeightedVoteOption[] & (WeightedVoteOption & { option: VoteOption; weight: string; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): MsgVoteWeighted; }; export declare const MsgVoteWeightedResponse: { typeUrl: string; encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse; fromJSON(_: any): MsgVoteWeightedResponse; toJSON(_: MsgVoteWeightedResponse): unknown; fromPartial & {} & Record, never>>(_: I): MsgVoteWeightedResponse; }; export declare const MsgDeposit: { typeUrl: string; encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit; fromJSON(object: any): MsgDeposit; toJSON(message: MsgDeposit): unknown; fromPartial & { proposalId?: bigint; depositor?: string; amount?: Coin[] & (Coin & { denom: string; amount: string; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): MsgDeposit; }; export declare const MsgDepositResponse: { typeUrl: string; encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse; fromJSON(_: any): MsgDepositResponse; toJSON(_: MsgDepositResponse): unknown; fromPartial & {} & Record, never>>(_: I): MsgDepositResponse; }; /** Msg defines the bank Msg service. */ export interface Msg { /** SubmitProposal defines a method to create new proposal given a content. */ SubmitProposal(request: MsgSubmitProposal): Promise; /** Vote defines a method to add a vote on a specific proposal. */ Vote(request: MsgVote): Promise; /** * VoteWeighted defines a method to add a weighted vote on a specific proposal. * * Since: cosmos-sdk 0.43 */ VoteWeighted(request: MsgVoteWeighted): Promise; /** Deposit defines a method to add deposit on a specific proposal. */ Deposit(request: MsgDeposit): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: TxRpc); SubmitProposal(request: MsgSubmitProposal): Promise; Vote(request: MsgVote): Promise; VoteWeighted(request: MsgVoteWeighted): Promise; Deposit(request: MsgDeposit): Promise; }