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 "./types"; 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: Date | undefined; } /** * 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: Date | undefined; /** CanceledHeight defines the canceled block height. */ canceledHeight: Long; /** 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 | undefined; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. */ export interface MsgUpdateParamsResponse { } 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 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 MsgCreateContinuousFund: { encode(message: MsgCreateContinuousFund, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateContinuousFund; fromJSON(object: any): MsgCreateContinuousFund; toJSON(message: MsgCreateContinuousFund): unknown; create(base?: DeepPartial): MsgCreateContinuousFund; fromPartial(object: DeepPartial): MsgCreateContinuousFund; }; export declare const MsgCreateContinuousFundResponse: { encode(_: MsgCreateContinuousFundResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateContinuousFundResponse; fromJSON(_: any): MsgCreateContinuousFundResponse; toJSON(_: MsgCreateContinuousFundResponse): unknown; create(base?: DeepPartial): MsgCreateContinuousFundResponse; fromPartial(_: DeepPartial): MsgCreateContinuousFundResponse; }; export declare const MsgCancelContinuousFund: { encode(message: MsgCancelContinuousFund, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelContinuousFund; fromJSON(object: any): MsgCancelContinuousFund; toJSON(message: MsgCancelContinuousFund): unknown; create(base?: DeepPartial): MsgCancelContinuousFund; fromPartial(object: DeepPartial): MsgCancelContinuousFund; }; export declare const MsgCancelContinuousFundResponse: { encode(message: MsgCancelContinuousFundResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCancelContinuousFundResponse; fromJSON(object: any): MsgCancelContinuousFundResponse; toJSON(message: MsgCancelContinuousFundResponse): unknown; create(base?: DeepPartial): MsgCancelContinuousFundResponse; fromPartial(object: DeepPartial): MsgCancelContinuousFundResponse; }; 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; }; /** 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: DeepPartial, metadata?: grpc.Metadata): 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: DeepPartial, metadata?: grpc.Metadata): 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: DeepPartial, metadata?: grpc.Metadata): Promise; /** CancelContinuousFund defines a method for cancelling continuous fund. */ CancelContinuousFund(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * UpdateParams defines a governance operation for updating the x/protocolpool module parameters. * The authority is defined in the keeper. */ UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); FundCommunityPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; CommunityPoolSpend(request: DeepPartial, metadata?: grpc.Metadata): Promise; CreateContinuousFund(request: DeepPartial, metadata?: grpc.Metadata): Promise; CancelContinuousFund(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgFundCommunityPoolDesc: UnaryMethodDefinitionish; export declare const MsgCommunityPoolSpendDesc: UnaryMethodDefinitionish; export declare const MsgCreateContinuousFundDesc: UnaryMethodDefinitionish; export declare const MsgCancelContinuousFundDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: 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 {};