import { Any } from "../../../google/protobuf/any"; import { Coin } from "../../base/v1beta1/coin"; import { VoteOption, WeightedVoteOption, Params } from "./gov"; import { Timestamp } from "../../../google/protobuf/timestamp"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.gov.v1"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposal { /** messages are the arbitrary messages to be executed if proposal passes. */ messages: Any[]; /** initial_deposit is the deposit value that must be paid at proposal submission. */ initialDeposit: Coin[]; /** proposer is the account address of the proposer. */ proposer: string; /** metadata is any arbitrary metadata attached to the proposal. */ metadata: string; /** title is the title of the proposal. */ title: string; /** summary is the summary of the proposal */ summary: string; /** expedited defines if the proposal is expedited or not */ expedited: boolean; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } /** * MsgExecLegacyContent is used to wrap the legacy content field into a message. * This ensures backwards compatibility with v1beta1.MsgSubmitProposal. */ export interface MsgExecLegacyContent { /** content is the proposal's content. */ content?: Any; /** authority must be the gov module address. */ authority: string; } /** MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type. */ export interface MsgExecLegacyContentResponse { } /** MsgVote defines a message to cast a vote. */ export interface MsgVote { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** voter is the voter address for the proposal. */ voter: string; /** option defines the vote option. */ option: VoteOption; /** metadata is any arbitrary metadata attached to the Vote. */ metadata: string; } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse { } /** MsgVoteWeighted defines a message to cast a vote. */ export interface MsgVoteWeighted { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** voter is the voter address for the proposal. */ voter: string; /** options defines the weighted vote options. */ options: WeightedVoteOption[]; /** metadata is any arbitrary metadata attached to the VoteWeighted. */ metadata: string; } /** MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. */ export interface MsgVoteWeightedResponse { } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ export interface MsgDeposit { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** amount to be deposited by depositor. */ amount: Coin[]; } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponse { } /** MsgUpdateParams is the Msg/UpdateParams request type. */ export interface MsgUpdateParams { /** authority is the address that controls the module (defaults to x/gov unless overwritten). */ authority: string; /** * params defines the x/gov parameters to update. * * NOTE: All parameters must be supplied. */ params: Params; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } /** MsgCancelProposal is the Msg/CancelProposal request type. */ export interface MsgCancelProposal { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** proposer is the account address of the proposer. */ proposer: string; } /** * MsgCancelProposalResponse defines the response structure for executing a * MsgCancelProposal message. */ export interface MsgCancelProposalResponse { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** canceled_time is the time when proposal is canceled. */ canceledTime: Timestamp; /** canceled_height defines the block height at which the proposal is canceled. */ canceledHeight: bigint; } 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): JsonSafe; fromPartial, I>>(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): JsonSafe; fromPartial, I>>(object: I): MsgSubmitProposalResponse; }; export declare const MsgExecLegacyContent: { typeUrl: string; encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent; fromJSON(object: any): MsgExecLegacyContent; toJSON(message: MsgExecLegacyContent): JsonSafe; fromPartial, I>>(object: I): MsgExecLegacyContent; }; export declare const MsgExecLegacyContentResponse: { typeUrl: string; encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse; fromJSON(_: any): MsgExecLegacyContentResponse; toJSON(_: MsgExecLegacyContentResponse): JsonSafe; fromPartial, I>>(_: I): MsgExecLegacyContentResponse; }; 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): JsonSafe; fromPartial, I>>(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): JsonSafe; fromPartial, I>>(_: 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): JsonSafe; fromPartial, I>>(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): JsonSafe; fromPartial, I>>(_: 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): JsonSafe; fromPartial, I>>(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): JsonSafe; fromPartial, I>>(_: I): MsgDepositResponse; }; export declare const MsgUpdateParams: { typeUrl: string; encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): JsonSafe; fromPartial, I>>(object: I): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { typeUrl: string; encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): JsonSafe; fromPartial, I>>(_: I): MsgUpdateParamsResponse; }; export declare const MsgCancelProposal: { typeUrl: string; encode(message: MsgCancelProposal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposal; fromJSON(object: any): MsgCancelProposal; toJSON(message: MsgCancelProposal): JsonSafe; fromPartial, I>>(object: I): MsgCancelProposal; }; export declare const MsgCancelProposalResponse: { typeUrl: string; encode(message: MsgCancelProposalResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposalResponse; fromJSON(object: any): MsgCancelProposalResponse; toJSON(message: MsgCancelProposalResponse): JsonSafe; fromPartial, I>>(object: I): MsgCancelProposalResponse; }; /** Msg defines the gov Msg service. */ export interface Msg { /** SubmitProposal defines a method to create new proposal given the messages. */ SubmitProposal(request: MsgSubmitProposal): Promise; /** * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal * to execute a legacy content-based proposal. */ ExecLegacyContent(request: MsgExecLegacyContent): 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. */ VoteWeighted(request: MsgVoteWeighted): Promise; /** Deposit defines a method to add deposit on a specific proposal. */ Deposit(request: MsgDeposit): Promise; /** * UpdateParams defines a governance operation for updating the x/gov module * parameters. The authority is defined in the keeper. */ UpdateParams(request: MsgUpdateParams): Promise; /** CancelProposal defines a method to cancel governance proposal */ CancelProposal(request: MsgCancelProposal): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); SubmitProposal(request: MsgSubmitProposal): Promise; ExecLegacyContent(request: MsgExecLegacyContent): Promise; Vote(request: MsgVote): Promise; VoteWeighted(request: MsgVoteWeighted): Promise; Deposit(request: MsgDeposit): Promise; UpdateParams(request: MsgUpdateParams): Promise; CancelProposal(request: MsgCancelProposal): Promise; }