{"_id":"@arks-labs/config","name":"@arks-labs/config","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@arks-labs/config","version":"0.1.0","description":"Shared protocol configuration for Cygnus ecosystem — chains, contracts, tokens, and environment helpers","main":"dist/index.js","module":"dist/index.mjs","scripts":{"build":"tsup src/index.ts --format cjs,esm --no-dts"},"keywords":["arks","cygnus","config","defi","base","multichain"],"author":{"name":"ARKS Labs"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/arks-labs/config.git"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"engines":{"node":">=18"},"_id":"@arks-labs/config@0.1.0","bugs":{"url":"https://github.com/arks-labs/config/issues"},"homepage":"https://github.com/arks-labs/config#readme","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-mVdmqLC3lgCjgcJUA2HSWiC838J3ozahkyH59WkR5EvZuQVGHV+FdrfP/wS82ZUvQe0wJjvjwUXTtTI3SNsvOw==","shasum":"858a4cf14d5316e8b89815cf69c8423126811b8e","tarball":"https://registry.npmjs.org/@arks-labs/config/-/config-0.1.0.tgz","fileCount":5,"unpackedSize":15325,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE7HG7QgEs5uIGSytgyvwf6cZj5YOkgqGe3rc82AOZZnAiAVwR/FUOTeIO0G5eaeG+z30LYM8M3wnUqB4qpwwT0SWw=="}]},"_npmUser":{"name":"awugochogabriel","email":"awugochogabriel@gmail.com"},"directories":{},"maintainers":[{"name":"awugochogabriel","email":"awugochogabriel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/config_0.1.0_1786448762052_0.988170948950619"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-11T11:46:01.853Z","0.1.0":"2026-08-11T11:46:02.215Z","modified":"2026-08-11T11:46:02.547Z"},"maintainers":[{"name":"awugochogabriel","email":"awugochogabriel@gmail.com"}],"description":"Shared protocol configuration for Cygnus ecosystem — chains, contracts, tokens, and environment helpers","homepage":"https://github.com/arks-labs/config#readme","keywords":["arks","cygnus","config","defi","base","multichain"],"repository":{"type":"git","url":"git+https://github.com/arks-labs/config.git"},"author":{"name":"ARKS Labs"},"bugs":{"url":"https://github.com/arks-labs/config/issues"},"license":"MIT","readme":"# @arks-labs/config\n\nShared protocol configuration for the Cygnus ecosystem. Single source of truth for chains, contracts, tokens, RPCs, and subgraphs.\n\n## Installation\n\n```bash\nnpm install @arks-labs/config\n```\n\n## Usage\n\n```typescript\nimport { chains, contracts, tokens, rpcs, env } from '@arks-labs/config'\n\n// Chain definitions\nconsole.log(chains.base.id)          // 8453\nconsole.log(chains.base.blockExplorer) // https://basescan.org\n\n// Contract addresses by chain\nconst baseContracts = getContracts(8453)\nconsole.log(baseContracts.cgUSD)     // 0xCa72...\n\n// Token metadata\nconst cgUSD = getToken('cgUSD')\nconsole.log(cgUSD.decimals)          // 6\nconsole.log(cgUSD.isRebasing)        // true\n\n// RPC endpoints with fallbacks\nconst rpcUrl = getRpcUrl(8453)       // https://mainnet.base.org\nconst fallbacks = getFallbackRpcs(8453) // [https://mainnet.base.org, ...]\n\n// Subgraph URLs\nconst url = getSubgraphUrl('bsc-vault')\n\n// Environment helpers\nconst key = env.alchemyKey()\nconst isProd = env.isProduction()\n```\n\n## Supported Chains\n\n| Chain | ID | Status |\n|-------|-----|--------|\n| Base | 8453 | Primary |\n| Ethereum | 1 | Supported |\n| Arbitrum | 42161 | Supported |\n| Optimism | 10 | Supported |\n| Polygon | 137 | Supported |\n| BNB Chain | 56 | Supported |\n| Base Sepolia | 84532 | Testnet |\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-acefaa832fd2d9cf7ac5713a0a063971"}