@bandprotocol/bandchain.js
Version:
TypeScript library for Cosmos SDK and BandChain
28 lines (27 loc) • 1.64 kB
TypeScript
import { Rpc } from "../../../helpers";
import { MsgSubmitProposal, MsgSubmitProposalResponse, MsgExecLegacyContent, MsgExecLegacyContentResponse, MsgVote, MsgVoteResponse, MsgVoteWeighted, MsgVoteWeightedResponse, MsgDeposit, MsgDepositResponse } from "./tx";
/** Msg defines the gov Msg service. */
export interface Msg {
/** SubmitProposal defines a method to create new proposal given a content. */
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
/**
* ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
* to execute a legacy content-based proposal.
*/
execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
/** Vote defines a method to add a vote on a specific proposal. */
vote(request: MsgVote): Promise<MsgVoteResponse>;
/** VoteWeighted defines a method to add a weighted vote on a specific proposal. */
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
/** Deposit defines a method to add deposit on a specific proposal. */
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: Rpc);
submitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
execLegacyContent(request: MsgExecLegacyContent): Promise<MsgExecLegacyContentResponse>;
vote(request: MsgVote): Promise<MsgVoteResponse>;
voteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
}