Skip to content

FungibleAssetOrder.ts

This module constructs fungible asset orders for given chains.

Added in v2.0.0

Signature

export declare const CosmosToCosmosIntent: S.Schema<
{
readonly sender: `0x${string}` & Brand<"AddressCosmosZkgm">
readonly receiver: `0x${string}` & Brand<"AddressCosmosZkgm">
readonly baseToken: (`0x${string}` & Brand<"TokenRawDenom">) | "uxion" | "ubbn"
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number & Brand<"ChannelId">
readonly sourceChainId: string & Brand<"UniversalChainId">
},
{
readonly sender: `0x${string}`
readonly receiver: `0x${string}`
readonly baseToken: `0x${string}` | "uxion" | "ubbn"
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number
readonly sourceChainId: string
},
never
>

Source: src/FungibleAssetOrder.ts:256

Added in v2.0.0

Signature

export type CosmosToCosmosIntent = typeof CosmosToCosmosIntent.Type

Source: src/FungibleAssetOrder.ts:273

Added in v2.0.0

Signature

export declare const CosmosToEvmIntent: S.Schema<
{
readonly sender: `0x${string}` & Brand<"AddressCosmosZkgm">
readonly receiver: `0x${string}` & Brand<"CanonicalBytes"> & Brand<"AddressEvmCanonical"> & Brand<"AddressEvmZkgm">
readonly baseToken: (`0x${string}` & Brand<"TokenRawDenom">) | "uxion" | "ubbn"
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number & Brand<"ChannelId">
readonly sourceChainId: string & Brand<"UniversalChainId">
},
{
readonly sender: `0x${string}`
readonly receiver: `0x${string}`
readonly baseToken: `0x${string}` | "uxion" | "ubbn"
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number
readonly sourceChainId: string
},
never
>

Source: src/FungibleAssetOrder.ts:172

Added in v2.0.0

Signature

export type CosmosToEvmIntent = typeof CosmosToEvmIntent.Type

Source: src/FungibleAssetOrder.ts:189

Added in v2.0.0

Signature

export declare const EvmToCosmosIntent: S.Schema<
{
readonly sender: `0x${string}` & Brand<"CanonicalBytes"> & Brand<"AddressEvmCanonical"> & Brand<"AddressEvmZkgm">
readonly receiver: `0x${string}` & Brand<"AddressCosmosZkgm">
readonly baseToken: `0x${string}` & Brand<"TokenRawDenom">
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number & Brand<"ChannelId">
readonly sourceChainId: string & Brand<"UniversalChainId">
},
{ readonly sender: `0x${string}`; readonly receiver: `0x${string}`; readonly baseToken: `0x${string}` } & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number
readonly sourceChainId: string
},
never
>

Source: src/FungibleAssetOrder.ts:105

Added in v2.0.0

Signature

export type EvmToCosmosIntent = typeof EvmToCosmosIntent.Type

Source: src/FungibleAssetOrder.ts:118

Added in v2.0.0

Signature

export declare const EvmToEvmIntent: S.Schema<
{
readonly sender: `0x${string}` & Brand<"CanonicalBytes"> & Brand<"AddressEvmCanonical"> & Brand<"AddressEvmZkgm">
readonly receiver: `0x${string}` & Brand<"CanonicalBytes"> & Brand<"AddressEvmCanonical"> & Brand<"AddressEvmZkgm">
readonly baseToken: `0x${string}` & Brand<"TokenRawDenom">
} & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number & Brand<"ChannelId">
readonly sourceChainId: string & Brand<"UniversalChainId">
},
{ readonly sender: `0x${string}`; readonly receiver: `0x${string}`; readonly baseToken: `0x${string}` } & {
readonly baseAmount: bigint
readonly quoteAmount: bigint
readonly sourceChannelId: number
readonly sourceChainId: string
},
never
>

Source: src/FungibleAssetOrder.ts:37

Added in v2.0.0

Signature

export type EvmToEvmIntent = typeof EvmToEvmIntent.Type

Source: src/FungibleAssetOrder.ts:50

Added in v2.0.0

Creates a fungible asset order from Cosmos to Cosmos

Signature

export declare const cosmosToCosmos: (
intent: CosmosToCosmosIntent
) => Effect.Effect<
Ucs03.FungibleAssetOrder,
TimeoutException | FetchDecodeGraphqlError | Cosmos.QueryContractError,
Cosmos.ClientDestination | Cosmos.ChannelDestination | Cosmos.ClientSource
>

Source: src/FungibleAssetOrder.ts:279

Added in v2.0.0

Creates a fungible asset order from Cosmos to EVM

Signature

export declare const cosmosToEvm: (
intent: CosmosToEvmIntent
) => Effect.Effect<
Ucs03.FungibleAssetOrder,
Evm.ReadContractError | FetchDecodeGraphqlError,
Evm.PublicClientDestination | Evm.ChannelDestination | Cosmos.ClientSource
>

Source: src/FungibleAssetOrder.ts:195

Added in v2.0.0

Creates a fungible asset order from Cosmos to Sui

Signature

export declare const cosmosToSui: (intent: {
sender: AddressCosmosZkgm
receiver: string
baseToken: string
baseAmount: bigint
quoteAmount: bigint
}) => Effect.Effect<
Ucs03.FungibleAssetOrder,
Sui.ReadContractError | TimeoutException | ParseError | Cosmos.QueryContractError,
Sui.PublicClientDestination | Sui.ChannelDestination | Cosmos.ClientSource
>

Source: src/FungibleAssetOrder.ts:380

Added in v2.0.0

Creates a fungible asset order from EVM to Cosmos

Signature

export declare const evmToCosmos: (
intent: EvmToCosmosIntent
) => Effect.Effect<
Ucs03.FungibleAssetOrder,
TimeoutException | Evm.ReadContractError | FetchDecodeGraphqlError | Cosmos.QueryContractError,
Evm.PublicClientSource | Cosmos.ClientDestination | Cosmos.ChannelDestination
>

Source: src/FungibleAssetOrder.ts:124

Added in v2.0.0

Creates a fungible asset order from EVM to EVM.

Signature

export declare const evmToEvm: (
intent: EvmToEvmIntent
) => Effect.Effect<
Ucs03.FungibleAssetOrder,
Evm.ReadContractError | FetchDecodeGraphqlError,
Evm.PublicClientSource | Evm.PublicClientDestination | Evm.ChannelDestination
>

Source: src/FungibleAssetOrder.ts:57

Added in v2.0.0

Creates a fungible asset order from Sui to Cosmos

Signature

export declare const suiToCosmos: (intent: {
sender: string
receiver: AddressCosmosZkgm
baseTokenType: string
baseAmount: bigint
quoteAmount: bigint
}) => Effect.Effect<
Ucs03.FungibleAssetOrder | Effect.Effect<never, Error, never>,
TimeoutException | Sui.ReadCoinError | ParseError | Cosmos.QueryContractError,
Sui.PublicClient | Cosmos.ClientDestination | Cosmos.ChannelDestination
>

Source: src/FungibleAssetOrder.ts:337

Added in v2.0.0