interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
951 lines (950 loc) • 35.3 kB
TypeScript
import { Any, AnyProtoMsg, AnyAmino } from "../../../google/protobuf/any";
import { Coin, CoinAmino } from "../../base/v1beta1/coin";
import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino, Params, ParamsAmino } from "./gov";
import { CommunityPoolSpendProposal, CommunityPoolSpendProposalProtoMsg, CommunityPoolSpendProposalWithDeposit, CommunityPoolSpendProposalWithDepositProtoMsg } from "../../distribution/v1beta1/distribution";
import { TextProposal, TextProposalProtoMsg } from "../v1beta1/gov";
import { ParameterChangeProposal, ParameterChangeProposalProtoMsg } from "../../params/v1beta1/params";
import { SoftwareUpgradeProposal, SoftwareUpgradeProposalProtoMsg, CancelSoftwareUpgradeProposal, CancelSoftwareUpgradeProposalProtoMsg } from "../../upgrade/v1beta1/upgrade";
import { StoreCodeProposal, StoreCodeProposalProtoMsg, InstantiateContractProposal, InstantiateContractProposalProtoMsg, InstantiateContract2Proposal, InstantiateContract2ProposalProtoMsg, MigrateContractProposal, MigrateContractProposalProtoMsg, SudoContractProposal, SudoContractProposalProtoMsg, ExecuteContractProposal, ExecuteContractProposalProtoMsg, UpdateAdminProposal, UpdateAdminProposalProtoMsg, ClearAdminProposal, ClearAdminProposalProtoMsg, PinCodesProposal, PinCodesProposalProtoMsg, UnpinCodesProposal, UnpinCodesProposalProtoMsg, UpdateInstantiateConfigProposal, UpdateInstantiateConfigProposalProtoMsg, StoreAndInstantiateContractProposal, StoreAndInstantiateContractProposalProtoMsg } from "../../../cosmwasm/wasm/v1/proposal_legacy";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
* proposal Content.
* @name MsgSubmitProposal
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposal
*/
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.
*
* Since: cosmos-sdk 0.47
*/
title: string;
/**
* summary is the summary of the proposal
*
* Since: cosmos-sdk 0.47
*/
summary: string;
/**
* expedited defines if the proposal is expedited or not
*
* Since: cosmos-sdk 0.50
*/
expedited: boolean;
}
export interface MsgSubmitProposalProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgSubmitProposal";
value: Uint8Array;
}
/**
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
* proposal Content.
* @name MsgSubmitProposalAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposal
*/
export interface MsgSubmitProposalAmino {
/**
* messages are the arbitrary messages to be executed if proposal passes.
*/
messages: AnyAmino[];
/**
* initial_deposit is the deposit value that must be paid at proposal submission.
*/
initial_deposit: CoinAmino[];
/**
* 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.
*
* Since: cosmos-sdk 0.47
*/
title: string;
/**
* summary is the summary of the proposal
*
* Since: cosmos-sdk 0.47
*/
summary: string;
/**
* expedited defines if the proposal is expedited or not
*
* Since: cosmos-sdk 0.50
*/
expedited: boolean;
}
export interface MsgSubmitProposalAminoMsg {
type: "cosmos-sdk/v1/MsgSubmitProposal";
value: MsgSubmitProposalAmino;
}
/**
* MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
* @name MsgSubmitProposalResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposalResponse
*/
export interface MsgSubmitProposalResponse {
/**
* proposal_id defines the unique id of the proposal.
*/
proposalId: bigint;
}
export interface MsgSubmitProposalResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgSubmitProposalResponse";
value: Uint8Array;
}
/**
* MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
* @name MsgSubmitProposalResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposalResponse
*/
export interface MsgSubmitProposalResponseAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
}
export interface MsgSubmitProposalResponseAminoMsg {
type: "cosmos-sdk/v1/MsgSubmitProposalResponse";
value: MsgSubmitProposalResponseAmino;
}
/**
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
* @name MsgExecLegacyContent
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContent
*/
export interface MsgExecLegacyContent {
/**
* content is the proposal's content.
*/
content?: CommunityPoolSpendProposal | CommunityPoolSpendProposalWithDeposit | TextProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | StoreCodeProposal | InstantiateContractProposal | InstantiateContract2Proposal | MigrateContractProposal | SudoContractProposal | ExecuteContractProposal | UpdateAdminProposal | ClearAdminProposal | PinCodesProposal | UnpinCodesProposal | UpdateInstantiateConfigProposal | StoreAndInstantiateContractProposal | Any | undefined;
/**
* authority must be the gov module address.
*/
authority: string;
}
export interface MsgExecLegacyContentProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContent";
value: Uint8Array;
}
export type MsgExecLegacyContentEncoded = Omit<MsgExecLegacyContent, "content"> & {
/**
* content is the proposal's content.
*/
content?: CommunityPoolSpendProposalProtoMsg | CommunityPoolSpendProposalWithDepositProtoMsg | TextProposalProtoMsg | ParameterChangeProposalProtoMsg | SoftwareUpgradeProposalProtoMsg | CancelSoftwareUpgradeProposalProtoMsg | StoreCodeProposalProtoMsg | InstantiateContractProposalProtoMsg | InstantiateContract2ProposalProtoMsg | MigrateContractProposalProtoMsg | SudoContractProposalProtoMsg | ExecuteContractProposalProtoMsg | UpdateAdminProposalProtoMsg | ClearAdminProposalProtoMsg | PinCodesProposalProtoMsg | UnpinCodesProposalProtoMsg | UpdateInstantiateConfigProposalProtoMsg | StoreAndInstantiateContractProposalProtoMsg | AnyProtoMsg | undefined;
};
/**
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
* @name MsgExecLegacyContentAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContent
*/
export interface MsgExecLegacyContentAmino {
/**
* content is the proposal's content.
*/
content?: AnyAmino;
/**
* authority must be the gov module address.
*/
authority: string;
}
export interface MsgExecLegacyContentAminoMsg {
type: "cosmos-sdk/v1/MsgExecLegacyContent";
value: MsgExecLegacyContentAmino;
}
/**
* MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
* @name MsgExecLegacyContentResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContentResponse
*/
export interface MsgExecLegacyContentResponse {
}
export interface MsgExecLegacyContentResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgExecLegacyContentResponse";
value: Uint8Array;
}
/**
* MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
* @name MsgExecLegacyContentResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContentResponse
*/
export interface MsgExecLegacyContentResponseAmino {
}
export interface MsgExecLegacyContentResponseAminoMsg {
type: "cosmos-sdk/v1/MsgExecLegacyContentResponse";
value: MsgExecLegacyContentResponseAmino;
}
/**
* MsgVote defines a message to cast a vote.
* @name MsgVote
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVote
*/
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;
}
export interface MsgVoteProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgVote";
value: Uint8Array;
}
/**
* MsgVote defines a message to cast a vote.
* @name MsgVoteAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVote
*/
export interface MsgVoteAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
/**
* 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;
}
export interface MsgVoteAminoMsg {
type: "cosmos-sdk/v1/MsgVote";
value: MsgVoteAmino;
}
/**
* MsgVoteResponse defines the Msg/Vote response type.
* @name MsgVoteResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteResponse
*/
export interface MsgVoteResponse {
}
export interface MsgVoteResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgVoteResponse";
value: Uint8Array;
}
/**
* MsgVoteResponse defines the Msg/Vote response type.
* @name MsgVoteResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteResponse
*/
export interface MsgVoteResponseAmino {
}
export interface MsgVoteResponseAminoMsg {
type: "cosmos-sdk/v1/MsgVoteResponse";
value: MsgVoteResponseAmino;
}
/**
* MsgVoteWeighted defines a message to cast a vote.
* @name MsgVoteWeighted
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeighted
*/
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;
}
export interface MsgVoteWeightedProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgVoteWeighted";
value: Uint8Array;
}
/**
* MsgVoteWeighted defines a message to cast a vote.
* @name MsgVoteWeightedAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeighted
*/
export interface MsgVoteWeightedAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
/**
* voter is the voter address for the proposal.
*/
voter: string;
/**
* options defines the weighted vote options.
*/
options: WeightedVoteOptionAmino[];
/**
* metadata is any arbitrary metadata attached to the VoteWeighted.
*/
metadata: string;
}
export interface MsgVoteWeightedAminoMsg {
type: "cosmos-sdk/v1/MsgVoteWeighted";
value: MsgVoteWeightedAmino;
}
/**
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
* @name MsgVoteWeightedResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeightedResponse
*/
export interface MsgVoteWeightedResponse {
}
export interface MsgVoteWeightedResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgVoteWeightedResponse";
value: Uint8Array;
}
/**
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
* @name MsgVoteWeightedResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeightedResponse
*/
export interface MsgVoteWeightedResponseAmino {
}
export interface MsgVoteWeightedResponseAminoMsg {
type: "cosmos-sdk/v1/MsgVoteWeightedResponse";
value: MsgVoteWeightedResponseAmino;
}
/**
* MsgDeposit defines a message to submit a deposit to an existing proposal.
* @name MsgDeposit
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDeposit
*/
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[];
}
export interface MsgDepositProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgDeposit";
value: Uint8Array;
}
/**
* MsgDeposit defines a message to submit a deposit to an existing proposal.
* @name MsgDepositAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDeposit
*/
export interface MsgDepositAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
/**
* depositor defines the deposit addresses from the proposals.
*/
depositor: string;
/**
* amount to be deposited by depositor.
*/
amount: CoinAmino[];
}
export interface MsgDepositAminoMsg {
type: "cosmos-sdk/v1/MsgDeposit";
value: MsgDepositAmino;
}
/**
* MsgDepositResponse defines the Msg/Deposit response type.
* @name MsgDepositResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDepositResponse
*/
export interface MsgDepositResponse {
}
export interface MsgDepositResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgDepositResponse";
value: Uint8Array;
}
/**
* MsgDepositResponse defines the Msg/Deposit response type.
* @name MsgDepositResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDepositResponse
*/
export interface MsgDepositResponseAmino {
}
export interface MsgDepositResponseAminoMsg {
type: "cosmos-sdk/v1/MsgDepositResponse";
value: MsgDepositResponseAmino;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParams
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParams
*/
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;
}
export interface MsgUpdateParamsProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgUpdateParams";
value: Uint8Array;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParamsAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParams
*/
export interface MsgUpdateParamsAmino {
/**
* 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: ParamsAmino;
}
export interface MsgUpdateParamsAminoMsg {
type: "cosmos-sdk/x/gov/v1/MsgUpdateParams";
value: MsgUpdateParamsAmino;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParamsResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponse {
}
export interface MsgUpdateParamsResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgUpdateParamsResponse";
value: Uint8Array;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParamsResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponseAmino {
}
export interface MsgUpdateParamsResponseAminoMsg {
type: "cosmos-sdk/v1/MsgUpdateParamsResponse";
value: MsgUpdateParamsResponseAmino;
}
/**
* MsgCancelProposal is the Msg/CancelProposal request type.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposal
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposal
*/
export interface MsgCancelProposal {
/**
* proposal_id defines the unique id of the proposal.
*/
proposalId: bigint;
/**
* proposer is the account address of the proposer.
*/
proposer: string;
}
export interface MsgCancelProposalProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgCancelProposal";
value: Uint8Array;
}
/**
* MsgCancelProposal is the Msg/CancelProposal request type.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposalAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposal
*/
export interface MsgCancelProposalAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
/**
* proposer is the account address of the proposer.
*/
proposer: string;
}
export interface MsgCancelProposalAminoMsg {
type: "cosmos-sdk/v1/MsgCancelProposal";
value: MsgCancelProposalAmino;
}
/**
* MsgCancelProposalResponse defines the response structure for executing a
* MsgCancelProposal message.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposalResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposalResponse
*/
export interface MsgCancelProposalResponse {
/**
* proposal_id defines the unique id of the proposal.
*/
proposalId: bigint;
/**
* canceled_time is the time when proposal is canceled.
*/
canceledTime: Date;
/**
* canceled_height defines the block height at which the proposal is canceled.
*/
canceledHeight: bigint;
}
export interface MsgCancelProposalResponseProtoMsg {
typeUrl: "/cosmos.gov.v1.MsgCancelProposalResponse";
value: Uint8Array;
}
/**
* MsgCancelProposalResponse defines the response structure for executing a
* MsgCancelProposal message.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposalResponseAmino
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposalResponse
*/
export interface MsgCancelProposalResponseAmino {
/**
* proposal_id defines the unique id of the proposal.
*/
proposal_id: string;
/**
* canceled_time is the time when proposal is canceled.
*/
canceled_time: string;
/**
* canceled_height defines the block height at which the proposal is canceled.
*/
canceled_height: string;
}
export interface MsgCancelProposalResponseAminoMsg {
type: "cosmos-sdk/v1/MsgCancelProposalResponse";
value: MsgCancelProposalResponseAmino;
}
/**
* MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary
* proposal Content.
* @name MsgSubmitProposal
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposal
*/
export declare const MsgSubmitProposal: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSubmitProposal;
isAmino(o: any): o is MsgSubmitProposalAmino;
encode(message: MsgSubmitProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposal;
fromPartial(object: DeepPartial<MsgSubmitProposal>): MsgSubmitProposal;
fromAmino(object: MsgSubmitProposalAmino): MsgSubmitProposal;
toAmino(message: MsgSubmitProposal): MsgSubmitProposalAmino;
fromAminoMsg(object: MsgSubmitProposalAminoMsg): MsgSubmitProposal;
toAminoMsg(message: MsgSubmitProposal): MsgSubmitProposalAminoMsg;
fromProtoMsg(message: MsgSubmitProposalProtoMsg): MsgSubmitProposal;
toProto(message: MsgSubmitProposal): Uint8Array;
toProtoMsg(message: MsgSubmitProposal): MsgSubmitProposalProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgSubmitProposalResponse defines the Msg/SubmitProposal response type.
* @name MsgSubmitProposalResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgSubmitProposalResponse
*/
export declare const MsgSubmitProposalResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgSubmitProposalResponse;
isAmino(o: any): o is MsgSubmitProposalResponseAmino;
encode(message: MsgSubmitProposalResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgSubmitProposalResponse;
fromPartial(object: DeepPartial<MsgSubmitProposalResponse>): MsgSubmitProposalResponse;
fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse;
toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino;
fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse;
toAminoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAminoMsg;
fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse;
toProto(message: MsgSubmitProposalResponse): Uint8Array;
toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgExecLegacyContent is used to wrap the legacy content field into a message.
* This ensures backwards compatibility with v1beta1.MsgSubmitProposal.
* @name MsgExecLegacyContent
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContent
*/
export declare const MsgExecLegacyContent: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgExecLegacyContent;
isAmino(o: any): o is MsgExecLegacyContentAmino;
encode(message: MsgExecLegacyContent, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContent;
fromPartial(object: DeepPartial<MsgExecLegacyContent>): MsgExecLegacyContent;
fromAmino(object: MsgExecLegacyContentAmino): MsgExecLegacyContent;
toAmino(message: MsgExecLegacyContent): MsgExecLegacyContentAmino;
fromAminoMsg(object: MsgExecLegacyContentAminoMsg): MsgExecLegacyContent;
toAminoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentAminoMsg;
fromProtoMsg(message: MsgExecLegacyContentProtoMsg): MsgExecLegacyContent;
toProto(message: MsgExecLegacyContent): Uint8Array;
toProtoMsg(message: MsgExecLegacyContent): MsgExecLegacyContentProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgExecLegacyContentResponse defines the Msg/ExecLegacyContent response type.
* @name MsgExecLegacyContentResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgExecLegacyContentResponse
*/
export declare const MsgExecLegacyContentResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgExecLegacyContentResponse;
isAmino(o: any): o is MsgExecLegacyContentResponseAmino;
encode(_: MsgExecLegacyContentResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgExecLegacyContentResponse;
fromPartial(_: DeepPartial<MsgExecLegacyContentResponse>): MsgExecLegacyContentResponse;
fromAmino(_: MsgExecLegacyContentResponseAmino): MsgExecLegacyContentResponse;
toAmino(_: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAmino;
fromAminoMsg(object: MsgExecLegacyContentResponseAminoMsg): MsgExecLegacyContentResponse;
toAminoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseAminoMsg;
fromProtoMsg(message: MsgExecLegacyContentResponseProtoMsg): MsgExecLegacyContentResponse;
toProto(message: MsgExecLegacyContentResponse): Uint8Array;
toProtoMsg(message: MsgExecLegacyContentResponse): MsgExecLegacyContentResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgVote defines a message to cast a vote.
* @name MsgVote
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVote
*/
export declare const MsgVote: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgVote;
isAmino(o: any): o is MsgVoteAmino;
encode(message: MsgVote, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgVote;
fromPartial(object: DeepPartial<MsgVote>): MsgVote;
fromAmino(object: MsgVoteAmino): MsgVote;
toAmino(message: MsgVote): MsgVoteAmino;
fromAminoMsg(object: MsgVoteAminoMsg): MsgVote;
toAminoMsg(message: MsgVote): MsgVoteAminoMsg;
fromProtoMsg(message: MsgVoteProtoMsg): MsgVote;
toProto(message: MsgVote): Uint8Array;
toProtoMsg(message: MsgVote): MsgVoteProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgVoteResponse defines the Msg/Vote response type.
* @name MsgVoteResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteResponse
*/
export declare const MsgVoteResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgVoteResponse;
isAmino(o: any): o is MsgVoteResponseAmino;
encode(_: MsgVoteResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteResponse;
fromPartial(_: DeepPartial<MsgVoteResponse>): MsgVoteResponse;
fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse;
toAmino(_: MsgVoteResponse): MsgVoteResponseAmino;
fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse;
toAminoMsg(message: MsgVoteResponse): MsgVoteResponseAminoMsg;
fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse;
toProto(message: MsgVoteResponse): Uint8Array;
toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgVoteWeighted defines a message to cast a vote.
* @name MsgVoteWeighted
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeighted
*/
export declare const MsgVoteWeighted: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgVoteWeighted;
isAmino(o: any): o is MsgVoteWeightedAmino;
encode(message: MsgVoteWeighted, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeighted;
fromPartial(object: DeepPartial<MsgVoteWeighted>): MsgVoteWeighted;
fromAmino(object: MsgVoteWeightedAmino): MsgVoteWeighted;
toAmino(message: MsgVoteWeighted): MsgVoteWeightedAmino;
fromAminoMsg(object: MsgVoteWeightedAminoMsg): MsgVoteWeighted;
toAminoMsg(message: MsgVoteWeighted): MsgVoteWeightedAminoMsg;
fromProtoMsg(message: MsgVoteWeightedProtoMsg): MsgVoteWeighted;
toProto(message: MsgVoteWeighted): Uint8Array;
toProtoMsg(message: MsgVoteWeighted): MsgVoteWeightedProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgVoteWeightedResponse defines the Msg/VoteWeighted response type.
* @name MsgVoteWeightedResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgVoteWeightedResponse
*/
export declare const MsgVoteWeightedResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgVoteWeightedResponse;
isAmino(o: any): o is MsgVoteWeightedResponseAmino;
encode(_: MsgVoteWeightedResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgVoteWeightedResponse;
fromPartial(_: DeepPartial<MsgVoteWeightedResponse>): MsgVoteWeightedResponse;
fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse;
toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino;
fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse;
toAminoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseAminoMsg;
fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse;
toProto(message: MsgVoteWeightedResponse): Uint8Array;
toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgDeposit defines a message to submit a deposit to an existing proposal.
* @name MsgDeposit
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDeposit
*/
export declare const MsgDeposit: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgDeposit;
isAmino(o: any): o is MsgDepositAmino;
encode(message: MsgDeposit, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgDeposit;
fromPartial(object: DeepPartial<MsgDeposit>): MsgDeposit;
fromAmino(object: MsgDepositAmino): MsgDeposit;
toAmino(message: MsgDeposit): MsgDepositAmino;
fromAminoMsg(object: MsgDepositAminoMsg): MsgDeposit;
toAminoMsg(message: MsgDeposit): MsgDepositAminoMsg;
fromProtoMsg(message: MsgDepositProtoMsg): MsgDeposit;
toProto(message: MsgDeposit): Uint8Array;
toProtoMsg(message: MsgDeposit): MsgDepositProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgDepositResponse defines the Msg/Deposit response type.
* @name MsgDepositResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgDepositResponse
*/
export declare const MsgDepositResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgDepositResponse;
isAmino(o: any): o is MsgDepositResponseAmino;
encode(_: MsgDepositResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositResponse;
fromPartial(_: DeepPartial<MsgDepositResponse>): MsgDepositResponse;
fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse;
toAmino(_: MsgDepositResponse): MsgDepositResponseAmino;
fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse;
toAminoMsg(message: MsgDepositResponse): MsgDepositResponseAminoMsg;
fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse;
toProto(message: MsgDepositResponse): Uint8Array;
toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParams
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParams
*/
export declare const MsgUpdateParams: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParams;
isAmino(o: any): o is MsgUpdateParamsAmino;
encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams;
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams;
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino;
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams;
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg;
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams;
toProto(message: MsgUpdateParams): Uint8Array;
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
*
* Since: cosmos-sdk 0.47
* @name MsgUpdateParamsResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgUpdateParamsResponse
*/
export declare const MsgUpdateParamsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParamsResponse;
isAmino(o: any): o is MsgUpdateParamsResponseAmino;
encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse;
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse;
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino;
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse;
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg;
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse;
toProto(message: MsgUpdateParamsResponse): Uint8Array;
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgCancelProposal is the Msg/CancelProposal request type.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposal
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposal
*/
export declare const MsgCancelProposal: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgCancelProposal;
isAmino(o: any): o is MsgCancelProposalAmino;
encode(message: MsgCancelProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposal;
fromPartial(object: DeepPartial<MsgCancelProposal>): MsgCancelProposal;
fromAmino(object: MsgCancelProposalAmino): MsgCancelProposal;
toAmino(message: MsgCancelProposal): MsgCancelProposalAmino;
fromAminoMsg(object: MsgCancelProposalAminoMsg): MsgCancelProposal;
toAminoMsg(message: MsgCancelProposal): MsgCancelProposalAminoMsg;
fromProtoMsg(message: MsgCancelProposalProtoMsg): MsgCancelProposal;
toProto(message: MsgCancelProposal): Uint8Array;
toProtoMsg(message: MsgCancelProposal): MsgCancelProposalProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgCancelProposalResponse defines the response structure for executing a
* MsgCancelProposal message.
*
* Since: cosmos-sdk 0.50
* @name MsgCancelProposalResponse
* @package cosmos.gov.v1
* @see proto type: cosmos.gov.v1.MsgCancelProposalResponse
*/
export declare const MsgCancelProposalResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgCancelProposalResponse;
isAmino(o: any): o is MsgCancelProposalResponseAmino;
encode(message: MsgCancelProposalResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelProposalResponse;
fromPartial(object: DeepPartial<MsgCancelProposalResponse>): MsgCancelProposalResponse;
fromAmino(object: MsgCancelProposalResponseAmino): MsgCancelProposalResponse;
toAmino(message: MsgCancelProposalResponse): MsgCancelProposalResponseAmino;
fromAminoMsg(object: MsgCancelProposalResponseAminoMsg): MsgCancelProposalResponse;
toAminoMsg(message: MsgCancelProposalResponse): MsgCancelProposalResponseAminoMsg;
fromProtoMsg(message: MsgCancelProposalResponseProtoMsg): MsgCancelProposalResponse;
toProto(message: MsgCancelProposalResponse): Uint8Array;
toProtoMsg(message: MsgCancelProposalResponse): MsgCancelProposalResponseProtoMsg;
registerTypeUrl(): void;
};