import { Any } from "../../../google/protobuf/any"; import { VoteOption, WeightedVoteOption } from "./gov"; import Long from "long"; import { Coin } from "../../base/v1beta1/coin"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "cosmos.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; /** 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; } /** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */ export interface MsgSubmitProposalResponse { /** proposal_id defines the unique id of the proposal. */ proposalId: Long; } /** 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; } /** MsgVoteResponse defines the Msg/Vote response type. */ export interface MsgVoteResponse { } /** * 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: Long; /** voter is the voter address for the proposal. */ voter: string; /** options defines the weighted vote options. */ options: WeightedVoteOption[]; } /** * MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. * * Since: cosmos-sdk 0.43 */ 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 { } 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; fromPartial, never>; initialDeposit?: { denom?: string; amount?: string; }[] & ({ denom?: string; amount?: string; } & { denom?: string; amount?: string; } & Record, never>)[] & Record, never>; proposer?: string; } & Record, never>>(object: I): 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; fromPartial Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); } & Record, never>>(object: I): MsgSubmitProposalResponse; }; 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; fromPartial Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); voter?: string; option?: VoteOption; } & Record, never>>(object: I): 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; fromPartial, never>>(_: I): 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; fromPartial Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); voter?: string; options?: { option?: VoteOption; weight?: string; }[] & ({ option?: VoteOption; weight?: string; } & { option?: VoteOption; weight?: string; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): 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; fromPartial, never>>(_: I): 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; fromPartial Long.Long; and: (other: string | number | Long.Long) => Long.Long; compare: (other: string | number | Long.Long) => number; comp: (other: string | number | Long.Long) => number; divide: (divisor: string | number | Long.Long) => Long.Long; div: (divisor: string | number | Long.Long) => Long.Long; equals: (other: string | number | Long.Long) => boolean; eq: (other: string | number | Long.Long) => boolean; getHighBits: () => number; getHighBitsUnsigned: () => number; getLowBits: () => number; getLowBitsUnsigned: () => number; getNumBitsAbs: () => number; greaterThan: (other: string | number | Long.Long) => boolean; gt: (other: string | number | Long.Long) => boolean; greaterThanOrEqual: (other: string | number | Long.Long) => boolean; gte: (other: string | number | Long.Long) => boolean; isEven: () => boolean; isNegative: () => boolean; isOdd: () => boolean; isPositive: () => boolean; isZero: () => boolean; lessThan: (other: string | number | Long.Long) => boolean; lt: (other: string | number | Long.Long) => boolean; lessThanOrEqual: (other: string | number | Long.Long) => boolean; lte: (other: string | number | Long.Long) => boolean; modulo: (other: string | number | Long.Long) => Long.Long; mod: (other: string | number | Long.Long) => Long.Long; multiply: (multiplier: string | number | Long.Long) => Long.Long; mul: (multiplier: string | number | Long.Long) => Long.Long; negate: () => Long.Long; neg: () => Long.Long; not: () => Long.Long; notEquals: (other: string | number | Long.Long) => boolean; neq: (other: string | number | Long.Long) => boolean; or: (other: string | number | Long.Long) => Long.Long; shiftLeft: (numBits: number | Long.Long) => Long.Long; shl: (numBits: number | Long.Long) => Long.Long; shiftRight: (numBits: number | Long.Long) => Long.Long; shr: (numBits: number | Long.Long) => Long.Long; shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long; shru: (numBits: number | Long.Long) => Long.Long; subtract: (subtrahend: string | number | Long.Long) => Long.Long; sub: (subtrahend: string | number | Long.Long) => Long.Long; toInt: () => number; toNumber: () => number; toBytes: (le?: boolean) => number[]; toBytesLE: () => number[]; toBytesBE: () => number[]; toSigned: () => Long.Long; toString: (radix?: number) => string; toUnsigned: () => Long.Long; xor: (other: string | number | Long.Long) => Long.Long; } & Record, never>); depositor?: string; amount?: { denom?: string; amount?: string; }[] & ({ denom?: string; amount?: string; } & { denom?: string; amount?: string; } & Record, never>)[] & Record, never>; } & Record, never>>(object: I): 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; fromPartial, never>>(_: I): MsgDepositResponse; }; /** 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: Rpc); SubmitProposal(request: MsgSubmitProposal): Promise; Vote(request: MsgVote): Promise; VoteWeighted(request: MsgVoteWeighted): Promise; Deposit(request: MsgDeposit): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {}; //# sourceMappingURL=tx.d.ts.map