import { Any, AnyAmino } from "../../../google/protobuf/any"; import { Coin, CoinAmino } from "../../../cosmos/base/v1beta1/coin"; import { VoteOption, WeightedVoteOption, WeightedVoteOptionAmino } from "./gov"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { TxRpc } from "../../../types"; export declare const protobufPackage = "atomone.gov.v1beta1"; /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposal { /** content is the proposal's content. */ content?: Any | undefined; /** * 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; } export interface MsgSubmitProposalProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgSubmitProposal"; value: Uint8Array; } /** * MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary * proposal Content. */ export interface MsgSubmitProposalAmino { /** content is the proposal's content. */ content?: AnyAmino | undefined; /** * 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; } export interface MsgSubmitProposalAminoMsg { type: "atomone/MsgSubmitProposal"; value: MsgSubmitProposalAmino; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; } export interface MsgSubmitProposalResponseProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgSubmitProposalResponse"; value: Uint8Array; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponseAmino { /** proposal_id defines the unique id of the proposal. */ proposal_id: string; } export interface MsgSubmitProposalResponseAminoMsg { type: "/atomone.gov.v1beta1.MsgSubmitProposalResponse"; value: MsgSubmitProposalResponseAmino; } /** 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; } export interface MsgVoteProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgVote"; value: Uint8Array; } /** MsgVote defines a message to cast a vote. */ 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; } export interface MsgVoteAminoMsg { type: "atomone/MsgVote"; value: MsgVoteAmino; } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse { } export interface MsgVoteResponseProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgVoteResponse"; value: Uint8Array; } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponseAmino { } export interface MsgVoteResponseAminoMsg { type: "/atomone.gov.v1beta1.MsgVoteResponse"; value: MsgVoteResponseAmino; } /** * MsgVoteWeighted defines a message to cast a vote. * * Since: cosmos-sdk 0.43 */ 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[]; } export interface MsgVoteWeightedProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgVoteWeighted"; value: Uint8Array; } /** * MsgVoteWeighted defines a message to cast a vote. * * Since: cosmos-sdk 0.43 */ 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[]; } export interface MsgVoteWeightedAminoMsg { type: "atomone/MsgVoteWeighted"; value: MsgVoteWeightedAmino; } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedResponse { } export interface MsgVoteWeightedResponseProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgVoteWeightedResponse"; value: Uint8Array; } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 */ export interface MsgVoteWeightedResponseAmino { } export interface MsgVoteWeightedResponseAminoMsg { type: "/atomone.gov.v1beta1.MsgVoteWeightedResponse"; value: MsgVoteWeightedResponseAmino; } /** 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[]; } export interface MsgDepositProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgDeposit"; value: Uint8Array; } /** MsgDeposit defines a message to submit a deposit to an existing proposal. */ 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: "atomone/MsgDeposit"; value: MsgDepositAmino; } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponse { } export interface MsgDepositResponseProtoMsg { typeUrl: "/atomone.gov.v1beta1.MsgDepositResponse"; value: Uint8Array; } /** MsgDepositResponse defines the Msg/Deposit response type. */ export interface MsgDepositResponseAmino { } export interface MsgDepositResponseAminoMsg { type: "/atomone.gov.v1beta1.MsgDepositResponse"; value: MsgDepositResponseAmino; } 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(object: Partial): 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; }; 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(object: Partial): MsgSubmitProposalResponse; fromAmino(object: MsgSubmitProposalResponseAmino): MsgSubmitProposalResponse; toAmino(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseAmino; fromAminoMsg(object: MsgSubmitProposalResponseAminoMsg): MsgSubmitProposalResponse; fromProtoMsg(message: MsgSubmitProposalResponseProtoMsg): MsgSubmitProposalResponse; toProto(message: MsgSubmitProposalResponse): Uint8Array; toProtoMsg(message: MsgSubmitProposalResponse): MsgSubmitProposalResponseProtoMsg; }; 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(object: Partial): 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; }; 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(_: Partial): MsgVoteResponse; fromAmino(_: MsgVoteResponseAmino): MsgVoteResponse; toAmino(_: MsgVoteResponse): MsgVoteResponseAmino; fromAminoMsg(object: MsgVoteResponseAminoMsg): MsgVoteResponse; fromProtoMsg(message: MsgVoteResponseProtoMsg): MsgVoteResponse; toProto(message: MsgVoteResponse): Uint8Array; toProtoMsg(message: MsgVoteResponse): MsgVoteResponseProtoMsg; }; 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(object: Partial): 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; }; 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(_: Partial): MsgVoteWeightedResponse; fromAmino(_: MsgVoteWeightedResponseAmino): MsgVoteWeightedResponse; toAmino(_: MsgVoteWeightedResponse): MsgVoteWeightedResponseAmino; fromAminoMsg(object: MsgVoteWeightedResponseAminoMsg): MsgVoteWeightedResponse; fromProtoMsg(message: MsgVoteWeightedResponseProtoMsg): MsgVoteWeightedResponse; toProto(message: MsgVoteWeightedResponse): Uint8Array; toProtoMsg(message: MsgVoteWeightedResponse): MsgVoteWeightedResponseProtoMsg; }; 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(object: Partial): 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; }; 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(_: Partial): MsgDepositResponse; fromAmino(_: MsgDepositResponseAmino): MsgDepositResponse; toAmino(_: MsgDepositResponse): MsgDepositResponseAmino; fromAminoMsg(object: MsgDepositResponseAminoMsg): MsgDepositResponse; fromProtoMsg(message: MsgDepositResponseProtoMsg): MsgDepositResponse; toProto(message: MsgDepositResponse): Uint8Array; toProtoMsg(message: MsgDepositResponse): MsgDepositResponseProtoMsg; }; /** 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; }