@malda-protocol/protocol-config
Version:
Centralized contract addresses, constants, and token configurations for Malda Protocol
21 lines (20 loc) • 969 B
JavaScript
// Main package exports
export * from './shared/index.js';
export * as production from './production/index.js';
export * as testnet from './testnet/index.js';
// Export ABIs
export * as abis from './abis/index.js';
// Re-export validation schemas
export { schemas, ProtocolConfigSchema, TokenSchema } from './shared/types.js';
// Re-export chain objects and constants
export { PRODUCTION_CHAINS, TESTNET_CHAINS, ALL_CHAINS } from './shared/types.js';
// Re-export utility functions
export {
// Chain ID operations
isMarketSupportedOnChain, getMarketsForChain, getUnderlyingAddress,
// Chain object operations (primary API)
isMarketSupportedOnChainObject, getMarketsForChainObject, getSupportedChainsForMarket, getUnderlyingAddressForChain, findChainById,
// Utility functions
createTokensFromConfig,
// Wagmi chain utilities
getNativeCurrencySymbol, getRpcUrl, getBlockExplorerUrl, isTestnetChain, getProductionChains, getTestnetChains, } from './shared/utils.js';