import { grpc } from "@injectivelabs/grpc-web"; import _m0 from "protobufjs/minimal.js"; import { PacketId } from "../../../core/channel/v1/channel"; import { Fee, PacketFee } from "./fee"; export declare const protobufPackage = "ibc.applications.fee.v1"; /** MsgRegisterPayee defines the request type for the RegisterPayee rpc */ export interface MsgRegisterPayee { /** unique port identifier */ portId: string; /** unique channel identifier */ channelId: string; /** the relayer address */ relayer: string; /** the payee address */ payee: string; } /** MsgRegisterPayeeResponse defines the response type for the RegisterPayee rpc */ export interface MsgRegisterPayeeResponse { } /** MsgRegisterCounterpartyPayee defines the request type for the RegisterCounterpartyPayee rpc */ export interface MsgRegisterCounterpartyPayee { /** unique port identifier */ portId: string; /** unique channel identifier */ channelId: string; /** the relayer address */ relayer: string; /** the counterparty payee address */ counterpartyPayee: string; } /** MsgRegisterCounterpartyPayeeResponse defines the response type for the RegisterCounterpartyPayee rpc */ export interface MsgRegisterCounterpartyPayeeResponse { } /** * MsgPayPacketFee defines the request type for the PayPacketFee rpc * This Msg can be used to pay for a packet at the next sequence send & should be combined with the Msg that will be * paid for */ export interface MsgPayPacketFee { /** fee encapsulates the recv, ack and timeout fees associated with an IBC packet */ fee: Fee | undefined; /** the source port unique identifier */ sourcePortId: string; /** the source channel unique identifer */ sourceChannelId: string; /** account address to refund fee if necessary */ signer: string; /** optional list of relayers permitted to the receive packet fees */ relayers: string[]; } /** MsgPayPacketFeeResponse defines the response type for the PayPacketFee rpc */ export interface MsgPayPacketFeeResponse { } /** * MsgPayPacketFeeAsync defines the request type for the PayPacketFeeAsync rpc * This Msg can be used to pay for a packet at a specified sequence (instead of the next sequence send) */ export interface MsgPayPacketFeeAsync { /** unique packet identifier comprised of the channel ID, port ID and sequence */ packetId: PacketId | undefined; /** the packet fee associated with a particular IBC packet */ packetFee: PacketFee | undefined; } /** MsgPayPacketFeeAsyncResponse defines the response type for the PayPacketFeeAsync rpc */ export interface MsgPayPacketFeeAsyncResponse { } export declare const MsgRegisterPayee: { encode(message: MsgRegisterPayee, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterPayee; fromJSON(object: any): MsgRegisterPayee; toJSON(message: MsgRegisterPayee): unknown; create(base?: DeepPartial): MsgRegisterPayee; fromPartial(object: DeepPartial): MsgRegisterPayee; }; export declare const MsgRegisterPayeeResponse: { encode(_: MsgRegisterPayeeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterPayeeResponse; fromJSON(_: any): MsgRegisterPayeeResponse; toJSON(_: MsgRegisterPayeeResponse): unknown; create(base?: DeepPartial): MsgRegisterPayeeResponse; fromPartial(_: DeepPartial): MsgRegisterPayeeResponse; }; export declare const MsgRegisterCounterpartyPayee: { encode(message: MsgRegisterCounterpartyPayee, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterCounterpartyPayee; fromJSON(object: any): MsgRegisterCounterpartyPayee; toJSON(message: MsgRegisterCounterpartyPayee): unknown; create(base?: DeepPartial): MsgRegisterCounterpartyPayee; fromPartial(object: DeepPartial): MsgRegisterCounterpartyPayee; }; export declare const MsgRegisterCounterpartyPayeeResponse: { encode(_: MsgRegisterCounterpartyPayeeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgRegisterCounterpartyPayeeResponse; fromJSON(_: any): MsgRegisterCounterpartyPayeeResponse; toJSON(_: MsgRegisterCounterpartyPayeeResponse): unknown; create(base?: DeepPartial): MsgRegisterCounterpartyPayeeResponse; fromPartial(_: DeepPartial): MsgRegisterCounterpartyPayeeResponse; }; export declare const MsgPayPacketFee: { encode(message: MsgPayPacketFee, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPayPacketFee; fromJSON(object: any): MsgPayPacketFee; toJSON(message: MsgPayPacketFee): unknown; create(base?: DeepPartial): MsgPayPacketFee; fromPartial(object: DeepPartial): MsgPayPacketFee; }; export declare const MsgPayPacketFeeResponse: { encode(_: MsgPayPacketFeeResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPayPacketFeeResponse; fromJSON(_: any): MsgPayPacketFeeResponse; toJSON(_: MsgPayPacketFeeResponse): unknown; create(base?: DeepPartial): MsgPayPacketFeeResponse; fromPartial(_: DeepPartial): MsgPayPacketFeeResponse; }; export declare const MsgPayPacketFeeAsync: { encode(message: MsgPayPacketFeeAsync, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPayPacketFeeAsync; fromJSON(object: any): MsgPayPacketFeeAsync; toJSON(message: MsgPayPacketFeeAsync): unknown; create(base?: DeepPartial): MsgPayPacketFeeAsync; fromPartial(object: DeepPartial): MsgPayPacketFeeAsync; }; export declare const MsgPayPacketFeeAsyncResponse: { encode(_: MsgPayPacketFeeAsyncResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgPayPacketFeeAsyncResponse; fromJSON(_: any): MsgPayPacketFeeAsyncResponse; toJSON(_: MsgPayPacketFeeAsyncResponse): unknown; create(base?: DeepPartial): MsgPayPacketFeeAsyncResponse; fromPartial(_: DeepPartial): MsgPayPacketFeeAsyncResponse; }; /** Msg defines the ICS29 Msg service. */ export interface Msg { /** * RegisterPayee defines a rpc handler method for MsgRegisterPayee * RegisterPayee is called by the relayer on each channelEnd and allows them to set an optional * payee to which reverse and timeout relayer packet fees will be paid out. The payee should be registered on * the source chain from which packets originate as this is where fee distribution takes place. This function may be * called more than once by a relayer, in which case, the latest payee is always used. */ RegisterPayee(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * RegisterCounterpartyPayee defines a rpc handler method for MsgRegisterCounterpartyPayee * RegisterCounterpartyPayee is called by the relayer on each channelEnd and allows them to specify the counterparty * payee address before relaying. This ensures they will be properly compensated for forward relaying since * the destination chain must include the registered counterparty payee address in the acknowledgement. This function * may be called more than once by a relayer, in which case, the latest counterparty payee address is always used. */ RegisterCounterpartyPayee(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * PayPacketFee defines a rpc handler method for MsgPayPacketFee * PayPacketFee is an open callback that may be called by any module/user that wishes to escrow funds in order to * incentivize the relaying of the packet at the next sequence * NOTE: This method is intended to be used within a multi msg transaction, where the subsequent msg that follows * initiates the lifecycle of the incentivized packet */ PayPacketFee(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * PayPacketFeeAsync defines a rpc handler method for MsgPayPacketFeeAsync * PayPacketFeeAsync is an open callback that may be called by any module/user that wishes to escrow funds in order to * incentivize the relaying of a known packet (i.e. at a particular sequence) */ PayPacketFeeAsync(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); RegisterPayee(request: DeepPartial, metadata?: grpc.Metadata): Promise; RegisterCounterpartyPayee(request: DeepPartial, metadata?: grpc.Metadata): Promise; PayPacketFee(request: DeepPartial, metadata?: grpc.Metadata): Promise; PayPacketFeeAsync(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgRegisterPayeeDesc: UnaryMethodDefinitionish; export declare const MsgRegisterCounterpartyPayeeDesc: UnaryMethodDefinitionish; export declare const MsgPayPacketFeeDesc: UnaryMethodDefinitionish; export declare const MsgPayPacketFeeAsyncDesc: 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; } declare var tsProtoGlobalThis: any; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends tsProtoGlobalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};