@cygnus-dao/core
v1.0.0
Published
Cygnus DAO core protocol types, ABIs, and deployment addresses for cgUSD, wcgUSD, and CGN on Base
Maintainers
Readme
@cygnus-dao/core
Core protocol ABIs and deployment addresses for Cygnus DAO on Base.
TypeScript-first package with deployment addresses and contract ABIs for cgUSD, wcgUSD, and CGN.
Installation
npm install @cygnus-dao/coreUsage
import { createPublicClient, http } from 'viem'
import { base } from 'viem/chains'
import { cgUsdAbi, wcgUsdAbi, cgnAbi, getDeployment } from '@cygnus-dao/core'
// Get deployment addresses
const deployment = getDeployment(8453)
console.log(deployment.cgUSD) // 0xCa72827a3D211CfD8F6b00Ac98824872b72CAb49
console.log(deployment.wcgUSD) // 0x5AE84075F0E34946821A8015dAB5299A00992721
// Use with viem
const client = createPublicClient({ chain: base, transport: http() })
const supply = await client.readContract({
address: deployment.cgUSD,
abi: cgUsdAbi,
functionName: 'totalSupply',
})Contracts
| Contract | Address (Base) | Decimals | Type |
|----------|---------------|----------|------|
| cgUSD | 0xCa72827a3D211CfD8F6b00Ac98824872b72CAb49 | 6 | Rebasing stablecoin |
| wcgUSD | 0x5AE84075F0E34946821A8015dAB5299A00992721 | 6 | Wrapped (non-rebasing) |
| CGN | 0x2e6c4bd1c947e195645d2b920b827498cfaa6766 | 18 | Governance token |
ABIs
- cgUsdAbi — Full CgUSD ABI (ERC-20 + shares + vault + rebase events)
- wcgUsdAbi — WstToken ABI (wrap/unwrap + EIP-2612 permit)
- cgnAbi — CGN governance token (standard ERC-20 interface)
- erc20Abi — Standard ERC-20 interface
cgUSD and wcgUSD ABIs sourced from BaseScan verified contracts. cgnAbi provides the standard ERC-20 interface for the CGN proxy contract.
License
MIT
