import { Coin } from "../../base/v1beta1/coin"; import { Params } from "./distribution"; import { BinaryReader, BinaryWriter } from "../../../binary"; import { DeepPartial, Exact, Rpc } from "../../../helpers"; import { JsonSafe } from "../../../json-safe"; export declare const protobufPackage = "cosmos.distribution.v1beta1"; /** * MsgSetWithdrawAddress sets the withdraw address for * a delegator (or validator self-delegation). */ export interface MsgSetWithdrawAddress { delegatorAddress: string; withdrawAddress: string; } /** * MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response * type. */ export interface MsgSetWithdrawAddressResponse { } /** * MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator * from a single validator. */ export interface MsgWithdrawDelegatorReward { delegatorAddress: string; validatorAddress: string; } /** * MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward * response type. */ export interface MsgWithdrawDelegatorRewardResponse { amount: Coin[]; } /** * MsgWithdrawValidatorCommission withdraws the full commission to the validator * address. */ export interface MsgWithdrawValidatorCommission { validatorAddress: string; } /** * MsgWithdrawValidatorCommissionResponse defines the * Msg/WithdrawValidatorCommission response type. */ export interface MsgWithdrawValidatorCommissionResponse { amount: Coin[]; } /** * MsgFundCommunityPool allows an account to directly * fund the community pool. */ export interface MsgFundCommunityPool { amount: Coin[]; depositor: string; } /** MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. */ export interface MsgFundCommunityPoolResponse { } /** 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/distribution parameters to update. * * NOTE: All parameters must be supplied. */ params: Params; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } /** * 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 { } /** * DepositValidatorRewardsPool defines the request structure to provide * additional rewards to delegators from a specific validator. */ export interface MsgDepositValidatorRewardsPool { depositor: string; validatorAddress: string; amount: Coin[]; } /** * MsgDepositValidatorRewardsPoolResponse defines the response to executing a * MsgDepositValidatorRewardsPool message. */ export interface MsgDepositValidatorRewardsPoolResponse { } export declare const MsgSetWithdrawAddress: { typeUrl: string; encode(message: MsgSetWithdrawAddress, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddress; fromJSON(object: any): MsgSetWithdrawAddress; toJSON(message: MsgSetWithdrawAddress): JsonSafe; fromPartial, I>>(object: I): MsgSetWithdrawAddress; }; export declare const MsgSetWithdrawAddressResponse: { typeUrl: string; encode(_: MsgSetWithdrawAddressResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; fromJSON(_: any): MsgSetWithdrawAddressResponse; toJSON(_: MsgSetWithdrawAddressResponse): JsonSafe; fromPartial, I>>(_: I): MsgSetWithdrawAddressResponse; }; export declare const MsgWithdrawDelegatorReward: { typeUrl: string; encode(message: MsgWithdrawDelegatorReward, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; fromJSON(object: any): MsgWithdrawDelegatorReward; toJSON(message: MsgWithdrawDelegatorReward): JsonSafe; fromPartial, I>>(object: I): MsgWithdrawDelegatorReward; }; export declare const MsgWithdrawDelegatorRewardResponse: { typeUrl: string; encode(message: MsgWithdrawDelegatorRewardResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; fromJSON(object: any): MsgWithdrawDelegatorRewardResponse; toJSON(message: MsgWithdrawDelegatorRewardResponse): JsonSafe; fromPartial, I>>(object: I): MsgWithdrawDelegatorRewardResponse; }; export declare const MsgWithdrawValidatorCommission: { typeUrl: string; encode(message: MsgWithdrawValidatorCommission, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; fromJSON(object: any): MsgWithdrawValidatorCommission; toJSON(message: MsgWithdrawValidatorCommission): JsonSafe; fromPartial, I>>(object: I): MsgWithdrawValidatorCommission; }; export declare const MsgWithdrawValidatorCommissionResponse: { typeUrl: string; encode(message: MsgWithdrawValidatorCommissionResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; fromJSON(object: any): MsgWithdrawValidatorCommissionResponse; toJSON(message: MsgWithdrawValidatorCommissionResponse): JsonSafe; fromPartial, I>>(object: I): MsgWithdrawValidatorCommissionResponse; }; 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 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; }; 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 MsgDepositValidatorRewardsPool: { typeUrl: string; encode(message: MsgDepositValidatorRewardsPool, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPool; fromJSON(object: any): MsgDepositValidatorRewardsPool; toJSON(message: MsgDepositValidatorRewardsPool): JsonSafe; fromPartial, I>>(object: I): MsgDepositValidatorRewardsPool; }; export declare const MsgDepositValidatorRewardsPoolResponse: { typeUrl: string; encode(_: MsgDepositValidatorRewardsPoolResponse, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): MsgDepositValidatorRewardsPoolResponse; fromJSON(_: any): MsgDepositValidatorRewardsPoolResponse; toJSON(_: MsgDepositValidatorRewardsPoolResponse): JsonSafe; fromPartial, I>>(_: I): MsgDepositValidatorRewardsPoolResponse; }; /** Msg defines the distribution Msg service. */ export interface Msg { /** * SetWithdrawAddress defines a method to change the withdraw address * for a delegator (or validator self-delegation). */ SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise; /** * WithdrawDelegatorReward defines a method to withdraw rewards of delegator * from a single validator. */ WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; /** * WithdrawValidatorCommission defines a method to withdraw the * full commission to the validator address. */ WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; /** * FundCommunityPool defines a method to allow an account to directly * fund the community pool. * * WARNING: This method will fail if an external community pool is used. */ FundCommunityPool(request: MsgFundCommunityPool): Promise; /** * UpdateParams defines a governance operation for updating the x/distribution * module parameters. The authority is defined in the keeper. */ UpdateParams(request: MsgUpdateParams): Promise; /** * CommunityPoolSpend defines a governance operation for sending tokens from * the community pool in the x/distribution module to another account, which * could be the governance module itself. The authority is defined in the * keeper. * * WARNING: This method will fail if an external community pool is used. */ CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise; /** * DepositValidatorRewardsPool defines a method to provide additional rewards * to delegators to a specific validator. */ DepositValidatorRewardsPool(request: MsgDepositValidatorRewardsPool): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise; WithdrawDelegatorReward(request: MsgWithdrawDelegatorReward): Promise; WithdrawValidatorCommission(request: MsgWithdrawValidatorCommission): Promise; FundCommunityPool(request: MsgFundCommunityPool): Promise; UpdateParams(request: MsgUpdateParams): Promise; CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise; DepositValidatorRewardsPool(request: MsgDepositValidatorRewardsPool): Promise; }