UNPKG

@bit-gpt/h402

Version:

BitGPT's 402 open protocol for blockchain-native payments

30 lines 1.12 kB
/** * Well-known token addresses and constants for the h402 project */ // Stablecoin token addresses export const STABLECOIN_ADDRESSES = { USDT_BSC: "0x55d398326f99059ff775485246999027b3197955", USDC_SOLANA: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", }; // Native token addresses (special addresses for native tokens) export const NATIVE_TOKEN_ADDRESSES = { BNB_BSC: "0x0000000000000000000000000000000000000000", // Special address for native BNB SOL_SOLANA: "11111111111111111111111111111111", // System Program ID for native SOL }; // Stablecoin symbols export const STABLECOIN_SYMBOLS = ["USDT", "USDC"]; // All known stablecoin addresses (for easy checking) export const ALL_STABLECOIN_ADDRESSES = Object.values(STABLECOIN_ADDRESSES); /** * Check if a token address is a known stablecoin */ export function isStablecoinAddress(address) { return ALL_STABLECOIN_ADDRESSES.includes(address); } /** * Check if a token symbol is a known stablecoin */ export function isStablecoinSymbol(symbol) { return STABLECOIN_SYMBOLS.includes(symbol.toUpperCase()); } //# sourceMappingURL=tokens.js.map