import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { Coin } from "../../base/v1beta1/coin"; import { Params } from "./distribution"; 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 | undefined; } /** * 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: { encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddress; fromJSON(object: any): MsgSetWithdrawAddress; toJSON(message: MsgSetWithdrawAddress): unknown; create(base?: DeepPartial): MsgSetWithdrawAddress; fromPartial(object: DeepPartial): MsgSetWithdrawAddress; }; export declare const MsgSetWithdrawAddressResponse: { encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetWithdrawAddressResponse; fromJSON(_: any): MsgSetWithdrawAddressResponse; toJSON(_: MsgSetWithdrawAddressResponse): unknown; create(base?: DeepPartial): MsgSetWithdrawAddressResponse; fromPartial(_: DeepPartial): MsgSetWithdrawAddressResponse; }; export declare const MsgWithdrawDelegatorReward: { encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorReward; fromJSON(object: any): MsgWithdrawDelegatorReward; toJSON(message: MsgWithdrawDelegatorReward): unknown; create(base?: DeepPartial): MsgWithdrawDelegatorReward; fromPartial(object: DeepPartial): MsgWithdrawDelegatorReward; }; export declare const MsgWithdrawDelegatorRewardResponse: { encode(message: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawDelegatorRewardResponse; fromJSON(object: any): MsgWithdrawDelegatorRewardResponse; toJSON(message: MsgWithdrawDelegatorRewardResponse): unknown; create(base?: DeepPartial): MsgWithdrawDelegatorRewardResponse; fromPartial(object: DeepPartial): MsgWithdrawDelegatorRewardResponse; }; export declare const MsgWithdrawValidatorCommission: { encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommission; fromJSON(object: any): MsgWithdrawValidatorCommission; toJSON(message: MsgWithdrawValidatorCommission): unknown; create(base?: DeepPartial): MsgWithdrawValidatorCommission; fromPartial(object: DeepPartial): MsgWithdrawValidatorCommission; }; export declare const MsgWithdrawValidatorCommissionResponse: { encode(message: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawValidatorCommissionResponse; fromJSON(object: any): MsgWithdrawValidatorCommissionResponse; toJSON(message: MsgWithdrawValidatorCommissionResponse): unknown; create(base?: DeepPartial): MsgWithdrawValidatorCommissionResponse; fromPartial(object: DeepPartial): MsgWithdrawValidatorCommissionResponse; }; export declare const MsgFundCommunityPool: { encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPool; fromJSON(object: any): MsgFundCommunityPool; toJSON(message: MsgFundCommunityPool): unknown; create(base?: DeepPartial): MsgFundCommunityPool; fromPartial(object: DeepPartial): MsgFundCommunityPool; }; export declare const MsgFundCommunityPoolResponse: { encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundCommunityPoolResponse; fromJSON(_: any): MsgFundCommunityPoolResponse; toJSON(_: MsgFundCommunityPoolResponse): unknown; create(base?: DeepPartial): MsgFundCommunityPoolResponse; fromPartial(_: DeepPartial): MsgFundCommunityPoolResponse; }; export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; export declare const MsgCommunityPoolSpend: { encode(message: MsgCommunityPoolSpend, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCommunityPoolSpend; fromJSON(object: any): MsgCommunityPoolSpend; toJSON(message: MsgCommunityPoolSpend): unknown; create(base?: DeepPartial): MsgCommunityPoolSpend; fromPartial(object: DeepPartial): MsgCommunityPoolSpend; }; export declare const MsgCommunityPoolSpendResponse: { encode(_: MsgCommunityPoolSpendResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCommunityPoolSpendResponse; fromJSON(_: any): MsgCommunityPoolSpendResponse; toJSON(_: MsgCommunityPoolSpendResponse): unknown; create(base?: DeepPartial): MsgCommunityPoolSpendResponse; fromPartial(_: DeepPartial): MsgCommunityPoolSpendResponse; }; export declare const MsgDepositValidatorRewardsPool: { encode(message: MsgDepositValidatorRewardsPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositValidatorRewardsPool; fromJSON(object: any): MsgDepositValidatorRewardsPool; toJSON(message: MsgDepositValidatorRewardsPool): unknown; create(base?: DeepPartial): MsgDepositValidatorRewardsPool; fromPartial(object: DeepPartial): MsgDepositValidatorRewardsPool; }; export declare const MsgDepositValidatorRewardsPoolResponse: { encode(_: MsgDepositValidatorRewardsPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDepositValidatorRewardsPoolResponse; fromJSON(_: any): MsgDepositValidatorRewardsPoolResponse; toJSON(_: MsgDepositValidatorRewardsPoolResponse): unknown; create(base?: DeepPartial): MsgDepositValidatorRewardsPoolResponse; fromPartial(_: DeepPartial): 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: DeepPartial, metadata?: grpc.Metadata): Promise; /** * WithdrawDelegatorReward defines a method to withdraw rewards of delegator * from a single validator. */ WithdrawDelegatorReward(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * WithdrawValidatorCommission defines a method to withdraw the * full commission to the validator address. */ WithdrawValidatorCommission(request: DeepPartial, metadata?: grpc.Metadata): 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: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpdateParams defines a governance operation for updating the x/distribution * module parameters. The authority is defined in the keeper. */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): 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: DeepPartial, metadata?: grpc.Metadata): Promise; /** * DepositValidatorRewardsPool defines a method to provide additional rewards * to delegators to a specific validator. */ DepositValidatorRewardsPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); SetWithdrawAddress(request: DeepPartial, metadata?: grpc.Metadata): Promise; WithdrawDelegatorReward(request: DeepPartial, metadata?: grpc.Metadata): Promise; WithdrawValidatorCommission(request: DeepPartial, metadata?: grpc.Metadata): Promise; FundCommunityPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; CommunityPoolSpend(request: DeepPartial, metadata?: grpc.Metadata): Promise; DepositValidatorRewardsPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgSetWithdrawAddressDesc: UnaryMethodDefinitionish; export declare const MsgWithdrawDelegatorRewardDesc: UnaryMethodDefinitionish; export declare const MsgWithdrawValidatorCommissionDesc: UnaryMethodDefinitionish; export declare const MsgFundCommunityPoolDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: UnaryMethodDefinitionish; export declare const MsgCommunityPoolSpendDesc: UnaryMethodDefinitionish; export declare const MsgDepositValidatorRewardsPoolDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};