UNPKG

@bit-gpt/h402

Version:

BitGPT's 402 open protocol for blockchain-native payments

25 lines 1.21 kB
/** * Well-known token addresses and constants for the h402 project */ export declare const STABLECOIN_ADDRESSES: { readonly USDT_BSC: "0x55d398326f99059ff775485246999027b3197955"; readonly USDC_SOLANA: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"; }; export declare const NATIVE_TOKEN_ADDRESSES: { readonly BNB_BSC: "0x0000000000000000000000000000000000000000"; readonly SOL_SOLANA: "11111111111111111111111111111111"; }; export declare const STABLECOIN_SYMBOLS: readonly ["USDT", "USDC"]; export declare const ALL_STABLECOIN_ADDRESSES: ("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | "0x55d398326f99059ff775485246999027b3197955")[]; export type StablecoinAddress = typeof STABLECOIN_ADDRESSES[keyof typeof STABLECOIN_ADDRESSES]; export type NativeTokenAddress = typeof NATIVE_TOKEN_ADDRESSES[keyof typeof NATIVE_TOKEN_ADDRESSES]; export type StablecoinSymbol = typeof STABLECOIN_SYMBOLS[number]; /** * Check if a token address is a known stablecoin */ export declare function isStablecoinAddress(address: string): boolean; /** * Check if a token symbol is a known stablecoin */ export declare function isStablecoinSymbol(symbol: string): boolean; //# sourceMappingURL=tokens.d.ts.map