UNPKG

@shogun-sdk/money-legos

Version:

Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.

97 lines 3.95 kB
export declare const ETHEREUM_NETWORK = "ethereum"; export declare const BASE_NETWORK = "base"; export declare const ARBITRUM_NETWORK = "arbitrum"; export declare const SOLANA_NETWORK = "solana"; export declare const BSC_NETWORK = "bsc"; export declare const BERACHAIN_NETWORK = "berachain"; export declare const SONIC_NETWORK = "sonic"; export declare const AVALANCHE_NETWORK = "avalanche"; export declare const POLYGON_NETWORK = "polygon"; export declare const HYPEREVM_NETWORK = "hyperevm"; export declare const ETHEREUM_CHAIN_ID = 1; export declare const ARBITRUM_CHAIN_ID = 42161; export declare const BASE_CHAIN_ID = 8453; export declare const BSC_CHAIN_ID = 56; export declare const BERA_CHAIN_ID = 80094; export declare const SOLANA_CHAIN_ID = 7565164; export declare const SONIC_CHAIN_ID = 146; export declare const AVALANCHE_CHAIN_ID = 43114; export declare const POLYGON_CHAIN_ID = 137; export declare const HYPEREVM_CHAIN_ID = 999; export declare const SupportedChainIds: readonly [1, 8453, 42161, 56, 80094, 7565164, 146, 43114, 137, 999]; export declare const getSupportedChains: () => readonly [1, 8453, 42161, 56, 80094, 7565164, 146, 43114, 137, 999]; export type SupportedChainId = (typeof SupportedChainIds)[number]; export declare const SOLANA_BRIDGE_FEE_TOKEN = "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"; export interface ChainConfig { id: number; name: string; icon: string; isEVM: boolean; nativeCurrency?: { name: string; symbol: string; decimals: number; }; wrapped?: string; symbol: string; decimals: number; tokenAddress: string; } export declare const NetworkById: Record<number, SupportedNetwork>; export declare const SupportedNetworks: readonly ["ethereum", "base", "arbitrum", "solana", "bsc", "berachain", "sonic", "avalanche", "polygon", "hyperevm"]; export declare const NetworkIds: number[]; export type NetworkId = (typeof NetworkIds)[number]; export declare enum Networks { ETHEREUM = 1, ARBITRUM = 42161, BASE = 8453, BSC = 56, SOLANA = 7565164, BERACHAIN = 80094, SONIC = 146, AVALANCHE = 43114, POLYGON = 137, HYPEREVM = 999 } export type SupportedNetwork = (typeof SupportedNetworks)[number]; export declare enum CodexNetworks { ETHEREUM = 1, ARBITRUM = 42161, BASE = 8453, BSC = 56, SOLANA = 1399811149, BERACHAIN = 80094, SONIC = 146, AVALANCHE = 43114, POLYGON = 137, HYPEREVM = 999 } export declare const getNetworkId: (network: SupportedNetwork) => number[]; export declare const NATIVE_CURRENCY_EMV: { name: string; symbol: string; decimals: number; }; export declare const init: (config?: { rpcUrls?: Record<number, string[]>; }) => void; export declare const getRpcUrls: () => Record<number, { rpc: string[]; }>; export declare const CHAIN_CONFIGS: ChainConfig[]; export declare const SUPPORTED_CHAIN_IDS: number[]; export declare const EVM_CHAIN_IDS: number[]; export declare const NON_EVM_CHAIN_IDS: number[]; export declare const CHAIN_MAP: Record<number, ChainConfig>; export declare const CHAIN_MAP_BY_NETWORK: Record<SupportedNetwork, ChainConfig>; export declare const isEVMNetwork: (network: string) => boolean; export declare const isEVMChain: (chainId: number) => boolean; export declare const isEVMChainExcludingBera: (chainId: number) => boolean; export declare const isBeraChain: (chainId: number) => chainId is 80094; export declare const isSolanaChain: (chainId: number) => boolean; export declare const getChainConfig: (chainId: number) => ChainConfig | undefined; export declare const WRAPPED_NATIVE_ADDRESSES: string[]; export declare const isWrappedNativeAddress: (tokenAddress: string) => boolean; export declare const getWrappedNativeTokenByChainId: (chainId: SupportedChainId) => string | undefined; export declare const isNativeAddress: (tokenAddress: string) => boolean; //# sourceMappingURL=chains.d.ts.map