import { BinaryReader, BinaryWriter } from '../../../../binary.js'; import { type JsonSafe } from '../../../../json-safe.js'; /** * Token defines a struct which represents a token to be transferred. * @name Token * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Token */ export interface Token { /** * the token denomination */ denom: Denom; /** * the token amount to be transferred */ amount: string; } export interface TokenProtoMsg { typeUrl: '/ibc.applications.transfer.v1.Token'; value: Uint8Array; } /** * Token defines a struct which represents a token to be transferred. * @name TokenSDKType * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Token */ export interface TokenSDKType { denom: DenomSDKType; amount: string; } /** * Denom holds the base denom of a Token and a trace of the chains it was sent through. * @name Denom * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Denom */ export interface Denom { /** * the base token denomination */ base: string; /** * the trace of the token */ trace: Hop[]; } export interface DenomProtoMsg { typeUrl: '/ibc.applications.transfer.v1.Denom'; value: Uint8Array; } /** * Denom holds the base denom of a Token and a trace of the chains it was sent through. * @name DenomSDKType * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Denom */ export interface DenomSDKType { base: string; trace: HopSDKType[]; } /** * Hop defines a port ID, channel ID pair specifying a unique "hop" in a trace * @name Hop * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Hop */ export interface Hop { portId: string; channelId: string; } export interface HopProtoMsg { typeUrl: '/ibc.applications.transfer.v1.Hop'; value: Uint8Array; } /** * Hop defines a port ID, channel ID pair specifying a unique "hop" in a trace * @name HopSDKType * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Hop */ export interface HopSDKType { port_id: string; channel_id: string; } /** * Token defines a struct which represents a token to be transferred. * @name Token * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Token */ export declare const Token: { typeUrl: "/ibc.applications.transfer.v1.Token"; aminoType: "cosmos-sdk/Token"; is(o: any): o is Token; isSDK(o: any): o is TokenSDKType; encode(message: Token, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Token; fromJSON(object: any): Token; toJSON(message: Token): JsonSafe; fromPartial(object: Partial): Token; fromProtoMsg(message: TokenProtoMsg): Token; toProto(message: Token): Uint8Array; toProtoMsg(message: Token): TokenProtoMsg; }; /** * Denom holds the base denom of a Token and a trace of the chains it was sent through. * @name Denom * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Denom */ export declare const Denom: { typeUrl: "/ibc.applications.transfer.v1.Denom"; aminoType: "cosmos-sdk/Denom"; is(o: any): o is Denom; isSDK(o: any): o is DenomSDKType; encode(message: Denom, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Denom; fromJSON(object: any): Denom; toJSON(message: Denom): JsonSafe; fromPartial(object: Partial): Denom; fromProtoMsg(message: DenomProtoMsg): Denom; toProto(message: Denom): Uint8Array; toProtoMsg(message: Denom): DenomProtoMsg; }; /** * Hop defines a port ID, channel ID pair specifying a unique "hop" in a trace * @name Hop * @package ibc.applications.transfer.v1 * @see proto type: ibc.applications.transfer.v1.Hop */ export declare const Hop: { typeUrl: "/ibc.applications.transfer.v1.Hop"; aminoType: "cosmos-sdk/Hop"; is(o: any): o is Hop; isSDK(o: any): o is HopSDKType; encode(message: Hop, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Hop; fromJSON(object: any): Hop; toJSON(message: Hop): JsonSafe; fromPartial(object: Partial): Hop; fromProtoMsg(message: HopProtoMsg): Hop; toProto(message: Hop): Uint8Array; toProtoMsg(message: Hop): HopProtoMsg; }; //# sourceMappingURL=token.d.ts.map