Skip to content

Token.ts

This module sources {@link Token} data.

Added in v2.0.0

Signature

export type Any = typeof Any.Type

Source: src/Token.ts:181

Added in v2.0.0

Signature

export declare const isNative: (
u: Erc20 | EvmGas | Cw20 | CosmosTokenFactory | CosmosBank | CosmosIbcClassic | SuiCoin
) => Unify<never | ReturnType<LazyArg<boolean> | ((t: SuiCoin) => boolean)>>

Source: src/Token.ts:264

Added in v2.0.0

Signature

export declare const Any: S.Union<
[
typeof Erc20,
typeof EvmGas,
typeof Cw20,
typeof CosmosTokenFactory,
typeof CosmosBank,
typeof CosmosIbcClassic,
typeof SuiCoin
]
>

Source: src/Token.ts:168

Added in v2.0.0

Signature

export declare class CosmosBank

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:150

Signature

export declare class CosmosIbcClassic

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:96

Signature

export declare class CosmosTokenFactory

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:116

Signature

export declare class Cw20

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:133

Signature

export declare class Erc20

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:55

Signature

export declare class EvmGas

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:76

Signature

export declare class SuiCoin

Added in v2.0.0

Signature

[Hash.symbol](): number

Added in v2.0.0

Source: src/Token.ts:17

Signature

export declare const TokenFromString: S.transformOrFail<
typeof S.String,
S.Union<
[
typeof Erc20,
typeof EvmGas,
typeof Cw20,
typeof CosmosTokenFactory,
typeof CosmosBank,
typeof CosmosIbcClassic,
typeof SuiCoin
]
>,
never
>

Source: src/Token.ts:187

Added in v2.0.0

Signature

export declare const AnyFromEncoded: (
rpcType: Chain.RpcType
) => S.transformOrFail<
S.TemplateLiteral<`0x${string}`>,
S.Union<
[
typeof Erc20,
typeof EvmGas,
typeof Cw20,
typeof CosmosTokenFactory,
typeof CosmosBank,
typeof CosmosIbcClassic,
typeof SuiCoin
]
>,
never
>

Source: src/Token.ts:211

Added in v2.0.0

Signature

export declare const normalizeSuiTypeTag: (t: string) => string

Source: src/Token.ts:246

Added in v2.0.0