/** * 统一常量导出 * * 使用示例: * import { CHAINS, GAS_LIMITS, ADDRESSES, PROFIT_CONFIG } from '../../core/constants/shared/constants'; * * const chainId = CHAINS.BSC.chainId; * const gasLimit = GAS_LIMITS.NATIVE_TRANSFER; * const wbnb = ADDRESSES.BSC.WBNB; */ export { CHAINS, CHAIN_ID_MAP, getChainById, getChainName, getDefaultRpcUrl, isKnownChain, isBscChain, isXLayerChain, isMonadChain, isEniChain, isRobinhoodChain, getConfirmationTimeout, type ChainKey, type ChainConfig, } from './chains.js'; export { GAS_LIMITS, GAS_CONFIG, V3_FEE_TIERS, calculateGasLimit, getTransferGasLimit, type GasLimitKey, type V3FeeTier, } from './gas.js'; export { QUOTE_CONFIG, QUOTE_V3_FEE_TIERS, getQuoteChainKey, type QuoteConfigChain } from './quote.js'; export { applySlippageBps, reverseSlippageBps } from './slippage.js'; /** Flap 链标识(与 `FlapPortal` 一致,供子路径 `./constants` 使用) */ export type { FlapChain } from '../../domains/flap/portal.js'; export { ZERO_ADDRESS, ZERO_BYTES32, BLOCKRAZOR_BUILDER_EOA, ADDRESSES, getAddress, getWrappedNativeAddress, getMulticall3Address, getFlapPortalAddress, isZeroAddress, isNativeToken, ENI_SPENDERS, getEniSpenders, type ChainAddresses, type AddressKey, } from './addresses.js'; export { PROFIT_CONFIG, setProfitRecipients, getProfitRecipient, getAllProfitRecipients, setProfitRates, getProfitRateBps, calculateProfitAmount, calculateBundleSwapRoundTripProfit, calculateProfitHopGasCost, type ProfitRateKey, type ProfitRateMode, type ProfitRates, TRANSFER_FEE_PER_ADDRESS, setTransferFees, setTransferFeePerAddress, getTransferFeePerAddress, calculateTransferFee, setIroSubscribeFees, setIroSubscribeFeePerAddress, getIroSubscribeFeePerAddress, } from './profit.js';