UNPKG

@wormhole-foundation/sdk-connect

Version:

The core package for the Connect SDK, used in conjunction with 1 or more of the chain packages

13 lines 677 B
import type { Chain, Network } from "@wormhole-foundation/sdk-base"; import { type TokenSymbol } from "@wormhole-foundation/sdk-base"; import type { ChainContext, TokenId } from "@wormhole-foundation/sdk-definitions"; export interface TokenDetails { id: TokenId; decimals: number; symbol?: TokenSymbol; wrapped?: TokenId; } export declare function uniqueTokens<C extends Chain>(tokens: TokenId<C>[]): TokenId<C>[]; export declare function tokenAddresses(tokens: TokenId[]): string[]; export declare function getTokenDetails<N extends Network>(chain: ChainContext<N>, token: TokenId, decimals?: number): Promise<TokenDetails>; //# sourceMappingURL=token.d.ts.map