UNPKG

@cygnus-wealth/wallet-integration-system

Version:

Multi-chain wallet integration system for CygnusWealth

8 lines 597 B
import { Asset, Chain } from '@cygnus-wealth/data-models'; import { WalletBalance, TokenInfo } from '../types'; export declare function createAssetFromToken(token: TokenInfo): Asset; export declare function createWalletBalance(asset: Asset, amount: string, walletAddress: string, chain: Chain, value?: number): WalletBalance; export declare function formatTokenAmount(amount: bigint, decimals: number): string; export declare function parseTokenAmount(amount: string, decimals: number): bigint; export declare function isNativeToken(address: string): boolean; //# sourceMappingURL=mappers.d.ts.map