import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; import { Coin } from "../../base/v1beta1/coin"; 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 { } /** * MsgWithdrawValidatorCommission withdraws the full commission to the validator * address. */ export interface MsgWithdrawValidatorCommission { validatorAddress: string; } /** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */ export interface MsgWithdrawValidatorCommissionResponse { } /** * 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 { } export declare const MsgSetWithdrawAddress: { encode(message: MsgSetWithdrawAddress, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSetWithdrawAddress; fromJSON(object: any): MsgSetWithdrawAddress; toJSON(message: MsgSetWithdrawAddress): unknown; create]: never; }>(base?: I | undefined): MsgSetWithdrawAddress; fromPartial]: never; }>(object: I_1): MsgSetWithdrawAddress; }; export declare const MsgSetWithdrawAddressResponse: { encode(_: MsgSetWithdrawAddressResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgSetWithdrawAddressResponse; fromJSON(_: any): MsgSetWithdrawAddressResponse; toJSON(_: MsgSetWithdrawAddressResponse): unknown; create]: never; }>(base?: I | undefined): MsgSetWithdrawAddressResponse; fromPartial]: never; }>(_: I_1): MsgSetWithdrawAddressResponse; }; export declare const MsgWithdrawDelegatorReward: { encode(message: MsgWithdrawDelegatorReward, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgWithdrawDelegatorReward; fromJSON(object: any): MsgWithdrawDelegatorReward; toJSON(message: MsgWithdrawDelegatorReward): unknown; create]: never; }>(base?: I | undefined): MsgWithdrawDelegatorReward; fromPartial]: never; }>(object: I_1): MsgWithdrawDelegatorReward; }; export declare const MsgWithdrawDelegatorRewardResponse: { encode(_: MsgWithdrawDelegatorRewardResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgWithdrawDelegatorRewardResponse; fromJSON(_: any): MsgWithdrawDelegatorRewardResponse; toJSON(_: MsgWithdrawDelegatorRewardResponse): unknown; create]: never; }>(base?: I | undefined): MsgWithdrawDelegatorRewardResponse; fromPartial]: never; }>(_: I_1): MsgWithdrawDelegatorRewardResponse; }; export declare const MsgWithdrawValidatorCommission: { encode(message: MsgWithdrawValidatorCommission, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgWithdrawValidatorCommission; fromJSON(object: any): MsgWithdrawValidatorCommission; toJSON(message: MsgWithdrawValidatorCommission): unknown; create]: never; }>(base?: I | undefined): MsgWithdrawValidatorCommission; fromPartial]: never; }>(object: I_1): MsgWithdrawValidatorCommission; }; export declare const MsgWithdrawValidatorCommissionResponse: { encode(_: MsgWithdrawValidatorCommissionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgWithdrawValidatorCommissionResponse; fromJSON(_: any): MsgWithdrawValidatorCommissionResponse; toJSON(_: MsgWithdrawValidatorCommissionResponse): unknown; create]: never; }>(base?: I | undefined): MsgWithdrawValidatorCommissionResponse; fromPartial]: never; }>(_: I_1): MsgWithdrawValidatorCommissionResponse; }; export declare const MsgFundCommunityPool: { encode(message: MsgFundCommunityPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgFundCommunityPool; fromJSON(object: any): MsgFundCommunityPool; toJSON(message: MsgFundCommunityPool): unknown; create]: never; })[] & { [K_1 in Exclude]: never; }) | undefined; depositor?: string | undefined; } & { [K_2 in Exclude]: never; }>(base?: I | undefined): MsgFundCommunityPool; fromPartial]: never; })[] & { [K_4 in Exclude]: never; }) | undefined; depositor?: string | undefined; } & { [K_5 in Exclude]: never; }>(object: I_1): MsgFundCommunityPool; }; export declare const MsgFundCommunityPoolResponse: { encode(_: MsgFundCommunityPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgFundCommunityPoolResponse; fromJSON(_: any): MsgFundCommunityPoolResponse; toJSON(_: MsgFundCommunityPoolResponse): unknown; create]: never; }>(base?: I | undefined): MsgFundCommunityPoolResponse; fromPartial]: never; }>(_: I_1): MsgFundCommunityPoolResponse; }; /** 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. */ FundCommunityPool(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; } 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; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare 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; } declare var tsProtoGlobalThis: any; 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; } & { [K in Exclude>]: never; }; export declare class GrpcWebError extends tsProtoGlobalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};