import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../google/protobuf/any"; import { Coin } from "../../base/v1beta1/coin"; import { Params, VoteOption, WeightedVoteOption } from "./gov"; 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: Long; } /** * 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 | undefined; /** 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: Long; /** 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: Long; /** 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: Long; /** 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 | undefined; } /** * 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: Long; /** 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: Long; /** canceled_time is the time when proposal is canceled. */ canceledTime: Date | undefined; /** canceled_height defines the block height at which the proposal is canceled. */ canceledHeight: Long; } export declare const MsgSubmitProposal: { encode(message: MsgSubmitProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposal; fromJSON(object: any): MsgSubmitProposal; toJSON(message: MsgSubmitProposal): unknown; create(base?: DeepPartial): MsgSubmitProposal; fromPartial(object: DeepPartial): MsgSubmitProposal; }; export declare const MsgSubmitProposalResponse: { encode(message: MsgSubmitProposalResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSubmitProposalResponse; fromJSON(object: any): MsgSubmitProposalResponse; toJSON(message: MsgSubmitProposalResponse): unknown; create(base?: DeepPartial): MsgSubmitProposalResponse; fromPartial(object: DeepPartial): MsgSubmitProposalResponse; }; export declare const MsgExecLegacyContent: { encode(message: MsgExecLegacyContent, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContent; fromJSON(object: any): MsgExecLegacyContent; toJSON(message: MsgExecLegacyContent): unknown; create(base?: DeepPartial): MsgExecLegacyContent; fromPartial(object: DeepPartial): MsgExecLegacyContent; }; export declare const MsgExecLegacyContentResponse: { encode(_: MsgExecLegacyContentResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgExecLegacyContentResponse; fromJSON(_: any): MsgExecLegacyContentResponse; toJSON(_: MsgExecLegacyContentResponse): unknown; create(base?: DeepPartial): MsgExecLegacyContentResponse; fromPartial(_: DeepPartial): MsgExecLegacyContentResponse; }; export declare const MsgVote: { encode(message: MsgVote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgVote; fromJSON(object: any): MsgVote; toJSON(message: MsgVote): unknown; create(base?: DeepPartial): MsgVote; fromPartial(object: DeepPartial): MsgVote; }; export declare const MsgVoteResponse: { encode(_: MsgVoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteResponse; fromJSON(_: any): MsgVoteResponse; toJSON(_: MsgVoteResponse): unknown; create(base?: DeepPartial): MsgVoteResponse; fromPartial(_: DeepPartial): MsgVoteResponse; }; export declare const MsgVoteWeighted: { encode(message: MsgVoteWeighted, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeighted; fromJSON(object: any): MsgVoteWeighted; toJSON(message: MsgVoteWeighted): unknown; create(base?: DeepPartial): MsgVoteWeighted; fromPartial(object: DeepPartial): MsgVoteWeighted; }; export declare const MsgVoteWeightedResponse: { encode(_: MsgVoteWeightedResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgVoteWeightedResponse; fromJSON(_: any): MsgVoteWeightedResponse; toJSON(_: MsgVoteWeightedResponse): unknown; create(base?: DeepPartial): MsgVoteWeightedResponse; fromPartial(_: DeepPartial): MsgVoteWeightedResponse; }; export declare const MsgDeposit: { encode(message: MsgDeposit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDeposit; fromJSON(object: any): MsgDeposit; toJSON(message: MsgDeposit): unknown; create(base?: DeepPartial): MsgDeposit; fromPartial(object: DeepPartial): MsgDeposit; }; export declare const MsgDepositResponse: { encode(_: MsgDepositResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositResponse; fromJSON(_: any): MsgDepositResponse; toJSON(_: MsgDepositResponse): unknown; create(base?: DeepPartial): MsgDepositResponse; fromPartial(_: DeepPartial): MsgDepositResponse; }; export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; export declare const MsgCancelProposal: { encode(message: MsgCancelProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelProposal; fromJSON(object: any): MsgCancelProposal; toJSON(message: MsgCancelProposal): unknown; create(base?: DeepPartial): MsgCancelProposal; fromPartial(object: DeepPartial): MsgCancelProposal; }; export declare const MsgCancelProposalResponse: { encode(message: MsgCancelProposalResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelProposalResponse; fromJSON(object: any): MsgCancelProposalResponse; toJSON(message: MsgCancelProposalResponse): unknown; create(base?: DeepPartial): MsgCancelProposalResponse; fromPartial(object: DeepPartial): MsgCancelProposalResponse; }; /** Msg defines the gov Msg service. */ export interface Msg { /** SubmitProposal defines a method to create new proposal given the messages. */ SubmitProposal(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal * to execute a legacy content-based proposal. */ ExecLegacyContent(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Vote defines a method to add a vote on a specific proposal. */ Vote(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** VoteWeighted defines a method to add a weighted vote on a specific proposal. */ VoteWeighted(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Deposit defines a method to add deposit on a specific proposal. */ Deposit(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpdateParams defines a governance operation for updating the x/gov module * parameters. The authority is defined in the keeper. */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** CancelProposal defines a method to cancel governance proposal */ CancelProposal(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); SubmitProposal(request: DeepPartial, metadata?: grpc.Metadata): Promise; ExecLegacyContent(request: DeepPartial, metadata?: grpc.Metadata): Promise; Vote(request: DeepPartial, metadata?: grpc.Metadata): Promise; VoteWeighted(request: DeepPartial, metadata?: grpc.Metadata): Promise; Deposit(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; CancelProposal(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgSubmitProposalDesc: UnaryMethodDefinitionish; export declare const MsgExecLegacyContentDesc: UnaryMethodDefinitionish; export declare const MsgVoteDesc: UnaryMethodDefinitionish; export declare const MsgVoteWeightedDesc: UnaryMethodDefinitionish; export declare const MsgDepositDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: UnaryMethodDefinitionish; export declare const MsgCancelProposalDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};