import { Coin } from "../../base/v1beta1/coin"; import { Timestamp } from "../../../google/protobuf/timestamp"; import { Params } from "./types"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.protocolpool.v1"; /** * MsgFundCommunityPool allows an account to directly * fund the community pool. */ export interface MsgFundCommunityPool { depositor: string; amount: Coin[]; } /** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ export interface MsgFundCommunityPoolResponse { } /** * MsgCommunityPoolSpend defines a message for sending tokens from the community * pool to another account. This message is typically executed via a governance * proposal with the governance module being the executing authority. */ export interface MsgCommunityPoolSpend { /** Authority is the address that controls the module (defaults to x/gov unless overwritten). */ authority: string; recipient: string; amount: Coin[]; } /** * MsgCommunityPoolSpendResponse defines the response to executing a * MsgCommunityPoolSpend message. */ export interface MsgCommunityPoolSpendResponse { } /** MsgCreateContinuousFund defines a message for adding continuous funds. */ export interface MsgCreateContinuousFund { /** Authority is the address that controls the module (defaults to x/gov unless overwritten). */ authority: string; /** Recipient address of the account receiving funds. */ recipient: string; /** Percentage is the percentage of funds to be allocated from Community pool. */ percentage: string; /** Optional, if expiry is set, removes the state object when expired. */ expiry?: Timestamp; } /** * MsgCreateContinuousFundResponse defines the response to executing a * MsgCreateContinuousFund message. */ export interface MsgCreateContinuousFundResponse { } /** MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient. */ export interface MsgCancelContinuousFund { /** Authority is the account address of authority. */ authority: string; /** Recipient is the account address string of the recipient whose funds are to be cancelled. */ recipient: string; } /** * MsgCancelContinuousFundResponse defines the response to executing a * MsgCancelContinuousFund message. */ export interface MsgCancelContinuousFundResponse { /** CanceledTime is the canceled time. */ canceledTime: Timestamp; /** CanceledHeight defines the canceled block height. */ canceledHeight: bigint; /** Recipient is the account address string of the recipient whose funds are cancelled. */ recipient: string; } /** 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/protocolpool parameters to update. * * NOTE: All parameters must be supplied. */ params: Params; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } export declare const MsgFundCommunityPool: { typeUrl: string; encode(message: MsgFundCommunityPool, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPool; fromJSON(object: any): MsgFundCommunityPool; toJSON(message: MsgFundCommunityPool): JsonSafe; fromPartial, I>>(object: I): MsgFundCommunityPool; }; export declare const MsgFundCommunityPoolResponse: { typeUrl: string; encode(_: MsgFundCommunityPoolResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; fromJSON(_: any): MsgFundCommunityPoolResponse; toJSON(_: MsgFundCommunityPoolResponse): JsonSafe; fromPartial, I>>(_: I): MsgFundCommunityPoolResponse; }; export declare const MsgCommunityPoolSpend: { typeUrl: string; encode(message: MsgCommunityPoolSpend, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpend; fromJSON(object: any): MsgCommunityPoolSpend; toJSON(message: MsgCommunityPoolSpend): JsonSafe; fromPartial, I>>(object: I): MsgCommunityPoolSpend; }; export declare const MsgCommunityPoolSpendResponse: { typeUrl: string; encode(_: MsgCommunityPoolSpendResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCommunityPoolSpendResponse; fromJSON(_: any): MsgCommunityPoolSpendResponse; toJSON(_: MsgCommunityPoolSpendResponse): JsonSafe; fromPartial, I>>(_: I): MsgCommunityPoolSpendResponse; }; export declare const MsgCreateContinuousFund: { typeUrl: string; encode(message: MsgCreateContinuousFund, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateContinuousFund; fromJSON(object: any): MsgCreateContinuousFund; toJSON(message: MsgCreateContinuousFund): JsonSafe; fromPartial, I>>(object: I): MsgCreateContinuousFund; }; export declare const MsgCreateContinuousFundResponse: { typeUrl: string; encode(_: MsgCreateContinuousFundResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCreateContinuousFundResponse; fromJSON(_: any): MsgCreateContinuousFundResponse; toJSON(_: MsgCreateContinuousFundResponse): JsonSafe; fromPartial, I>>(_: I): MsgCreateContinuousFundResponse; }; export declare const MsgCancelContinuousFund: { typeUrl: string; encode(message: MsgCancelContinuousFund, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelContinuousFund; fromJSON(object: any): MsgCancelContinuousFund; toJSON(message: MsgCancelContinuousFund): JsonSafe; fromPartial, I>>(object: I): MsgCancelContinuousFund; }; export declare const MsgCancelContinuousFundResponse: { typeUrl: string; encode(message: MsgCancelContinuousFundResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgCancelContinuousFundResponse; fromJSON(object: any): MsgCancelContinuousFundResponse; toJSON(message: MsgCancelContinuousFundResponse): JsonSafe; fromPartial, I>>(object: I): MsgCancelContinuousFundResponse; }; export declare const MsgUpdateParams: { typeUrl: string; encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): JsonSafe; fromPartial, I>>(object: I): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { typeUrl: string; encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): JsonSafe; fromPartial, I>>(_: I): MsgUpdateParamsResponse; }; /** Msg defines the pool Msg service. */ export interface Msg { /** * FundCommunityPool defines a method to allow an account to directly * fund the community pool. */ FundCommunityPool(request: MsgFundCommunityPool): Promise; /** * CommunityPoolSpend defines a governance operation for sending tokens from * the community pool in the x/protocolpool module to another account, which * could be the governance module itself. The authority is defined in the * keeper. */ CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise; /** * CreateContinuousFund defines a method to distribute a percentage of funds to an address continuously. * This ContinuousFund can be indefinite or run until a given expiry time. * Funds come from validator block rewards from x/distribution, but may also come from * any user who funds the ProtocolPoolEscrow module account directly through x/bank. */ CreateContinuousFund(request: MsgCreateContinuousFund): Promise; /** CancelContinuousFund defines a method for cancelling continuous fund. */ CancelContinuousFund(request: MsgCancelContinuousFund): Promise; /** * UpdateParams defines a governance operation for updating the x/protocolpool module parameters. * The authority is defined in the keeper. */ UpdateParams(request: MsgUpdateParams): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); FundCommunityPool(request: MsgFundCommunityPool): Promise; CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise; CreateContinuousFund(request: MsgCreateContinuousFund): Promise; CancelContinuousFund(request: MsgCancelContinuousFund): Promise; UpdateParams(request: MsgUpdateParams): Promise; }