Files
proxmox/docs/11-references/SMART_CONTRACTS_INVENTORY_ALL_CHAINS.md
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

138 lines
9.1 KiB
Markdown

# Smart Contracts — Full Inventory (All Chains, All Projects)
**Last updated:** 2026-02-11
**Scope:** All smart contracts across all chains, projects, modules, and submodules — deployed and not deployed.
---
## Chains and projects covered
| Chain ID | Name | Explorer / RPC | Projects |
|----------|------|----------------|----------|
| **138** | SMOM-DBIS-138 | explorer.d-bis.org, rpc-core.d-bis.org | smom-dbis-138, alltra-lifi-settlement, token-aggregation, explorer, metamask-integration, dbis_core |
| **1** | Ethereum Mainnet | etherscan.io | smom-dbis-138 (CCIP, WETH bridges), env.mainnet.example |
| **651940** | ALL Mainnet | alltra.global | alltra-lifi-settlement, dbis_core, token-lists |
| **25, 56, 137, 100, 43114, 8453, 42161, 10** | Cronos, BSC, Polygon, Gnosis, Avalanche, Base, Arbitrum, Optimism | — | smom-dbis-138 DeployAll.s.sol |
| **1729** | Tezos | — | dbis_core (USDtz allowlist; KT1, not EVM) |
| **GRU** | (Diamond / eMoney) | — | gru-docs (GrcDiamond, facets — reference) |
---
## 1. Chain 138 — Deployed
| Contract | Address | Project |
|----------|---------|---------|
| WETH9, WETH10, Multicall | Genesis: 0xC02a..., 0xf4BB..., 0x99b3... | smom-dbis-138 |
| Oracle Aggregator, Oracle Proxy | 0x99b3..., 0x3304b7... | smom-dbis-138 |
| CCIP Router, CCIP Sender | 0x8078A0..., 0x105F8A... | smom-dbis-138 |
| CCIPWETH9Bridge, CCIPWETH10Bridge | 0x971cD9..., 0xe0E932... | smom-dbis-138 |
| LINK, cUSDT, cUSDC | 0xb772..., 0x93E6..., 0xf222... | smom-dbis-138 |
| TokenRegistry, TokenFactory | 0x91Efe..., 0xEBFb5C... | smom-dbis-138 |
| Price Feed Keeper | 0xD3AD68... | smom-dbis-138 |
| ComplianceRegistry, BridgeVault, FeeCollector | 0xbc54..., 0x3188..., 0xF782... | smom-dbis-138 (.env) |
| DebtRegistry, PolicyManager, TokenImplementation | 0x95BC..., 0x0C4F..., 0x0059... | smom-dbis-138 (.env) |
| MerchantSettlementRegistry, WithdrawalEscrow | 0x16D9A2..., 0xe77cb2... | alltra-lifi-settlement |
| UniversalAssetRegistry, GovernanceController | 0xAEE4b7..., 0xA6891D... | smom-dbis-138 (phased core 2026-02-11) |
| UniversalCCIPBridge, BridgeOrchestrator | 0xCd42e8..., 0x89aB42... | smom-dbis-138 (phased core 2026-02-11) |
**Deprecated (Chain 138):** CCIPWETH9Bridge at `0x89dd...` — do not use; use `0x971cD9D156f193df8051E48043C476e53ECd4693`.
---
## 2. Chain 138 — Not deployed (scripts exist)
| Category | Contracts | Script / location |
|----------|-----------|-------------------|
| Trustless bridge | LOCKBOX138, INBOX_ETH, BOND_MANAGER, CHALLENGE_MANAGER, LIQUIDITY_POOL, SWAP_ROUTER, BRIDGE_SWAP_COORDINATOR, MULTISIG | config/production/.env.production.example (0x0); script/bridge/trustless/*.s.sol |
| Phased core | UniversalAssetRegistry, GovernanceController, UniversalCCIPBridge, BridgeOrchestrator | **Deployed 2026-02-11** (0xAEE4b7..., 0xA6891D..., 0xCd42e8..., 0x89aB42...). Scripts: 01_DeployCore.s.sol, 02_DeployBridges.s.sol. |
| CREATE2 | CREATE2Factory, MirrorRegistry, AlltraAdapter, UniversalCCIPBridge (impl+proxy) | script/deploy/DeployDeterministicCore.s.sol |
| Vault / reserve | VaultSystem, ReserveSystem, StablecoinReserveVault, Keeper | script/deploy/vault/*.s.sol, script/reserve/*.s.sol |
| Tokens / DEX | CompliantFiatTokens, ISO4217W, DodoPMM, EnhancedSwapRouter | script/deploy/DeployCompliantFiatTokens.s.sol, iso4217w/*, dex/*, bridge/trustless/*.s.sol |
| eMoney / smart accounts | eMoney Chain138, SmartAccountsKit, AccountWalletRegistryExtended | script/emoney/*.s.sol, script/smart-accounts/*.s.sol |
| Other | TransactionMirror, MirrorManager, AddressMapper, StateChannelManager, PaymentChannelManager, CCIPRelay, TwoWayBridge, CCIPReceiver, Voting, MultiSig, EtherlinkRelayReceiver, Migration | script/*.s.sol, script/deploy/05_*.s.sol |
| Firefly | (auto-deployed) | VMID 6200; addresses not in repo |
---
## 3. Ethereum Mainnet (Chain 1)
**Referenced (external or config):** CCIP Router 0x8022..., LINK 0x5149..., WETH9/10 0xC02a.../0xf4BB..., CCIPWETH9/10Bridge 0x3304.../0x8078..., CCIP Relay Router/Bridge in .env. **CCIP Sender 0x105F8A... is empty on mainnet** — use on Chain 138 only.
**Not deployed by repo:** CCIPLoggerMainnet, CCIPSenderMainnet, CCIPReceiverMainnet; WETH bridges via DeployAll if desired.
---
## 4. ALL Mainnet (651940)
**Tokens (documented; not deployed by repo):** AUSDT 0x015B..., USDT 0x66D8..., AUSDC 0xa95E..., WETH 0x798F..., WALL 0x2da2..., HYDX, HYBX, CHT, AUDA — see [ALL_MAINNET_TOKEN_ADDRESSES](ALL_MAINNET_TOKEN_ADDRESSES.md). Used by alltra-lifi-settlement, dbis_core allowlist.
---
## 5. Multichain (56, 137, 43114, 8453, 42161, 10, 25, 100)
**smom-dbis-138:** `script/DeployAll.s.sol` deploys WETH9, WETH10, CCIPWETH9Bridge, CCIPWETH10Bridge per chain. Chain 138 not in DeployAll — use DeployCCIPWETH9Bridge + shell script for 138.
---
## 6. Tezos (1729) — non-EVM
**dbis_core allowlist:** USDtz KT1T87Qbp..., KT1LN4LPSq... (FA1.2). No EVM deployment in repo.
---
## 7. GRU / eMoney (gru-docs)
**Reference only:** GrcDiamond.sol, facets (Pause, Access, Bond, Monetary, Compliance, Governance, Index, Audit, Triangulation, OracleAggregator). No deployment scripts in repo.
---
## 8. Projects summary
| Project | Chains | Deployed | Scripts |
|---------|--------|----------|---------|
| smom-dbis-138 | 138, 1, multichain | 26 on 138; mainnet refs | 70+ Deploy*.s.sol in script/ and script/deploy/ |
| alltra-lifi-settlement | 138 | 2 (MerchantSettlementRegistry, WithdrawalEscrow) | 2 deploy scripts |
| config/production | 138, 1 | 0 (placeholders) | .env.production.example |
| token-lists | 138, 651940, 1 | 0 | Token list JSONs only |
| dbis_core | 138, 651940, 1729 | 0 | Allowlists (tokens, DEX, bridges) |
| metamask-integration | 138 | 0 | Uses 138 RPC/explorer |
| explorer-monorepo | 138 | 0 | Frontend/deploy scripts; no contract deploy |
| gru-docs | — | 0 | GrcDiamond + facets (reference) |
| OMNIS, the-order | — | 0 | No EVM contract refs in scanned files |
---
## 9. Deployment script index (smom-dbis-138)
- **Core:** 01_DeployCore.s.sol, 02_DeployBridges.s.sol, 05_MigrateExistingAssets.s.sol, DeployDeterministicCore.s.sol
- **CCIP:** DeployCCIPRouter, DeployCCIPSender, DeployCCIPReceiver, DeployCCIPRelay, DeployTwoWayBridge, DeployCCIPWETH9Bridge, DeployCCIPWETH10Bridge, DeployCCIPLogger*, Deploy*Mainnet
- **Bridge:** deploy/bridge/DeployWETHBridges, DeployEtherlinkRelayReceiver, bridge/trustless/* (TrustlessBridge, CompleteSystem, EnhancedSwapRouter, etc.), DeployBridgeIntegrations
- **Tokens:** DeployCompliantUSDC, DeployCompliantUSDT, DeployCompliantFiatTokens, DeployTokenRegistry, DeployLinkToCanonicalAddress, DeployMockLinkToken, DeployMainnetTether
- **Governance:** DeployVoting, DeployMultiSig, DeployFeeCollector, DeployComplianceRegistry
- **Oracle/WETH:** DeployOracle, DeployMulticall, DeployWETH*, DeployWETH9*, DeployWETH10*
- **Vault/Reserve:** deploy/vault/DeployVaultSystem, reserve/DeployReserveSystem, DeployStablecoinReserveVault, DeployKeeper
- **eMoney:** emoney/Deploy.s.sol, DeployChain138.s.sol
- **Smart accounts:** smart-accounts/DeploySmartAccountsKit, DeployAccountWalletRegistryExtended
- **Other:** DeployTransactionMirror, DeployMirrorManager, DeployAddressMapper, DeployGenericStateChannelManager, DeployPaymentChannelManager, deploy/iso4217w/*, deploy/dex/DeployDODOPMMIntegration, deploy/chains/DeployAllAdapters, DeployAll.s.sol
---
## 10. Next steps
**Single checklist (all items):** [CONTRACT_NEXT_STEPS_LIST](CONTRACT_NEXT_STEPS_LIST.md).
**Full detail and recommendations:** [CONTRACT_NEXT_STEPS_AND_RECOMMENDATIONS_COMPLETE](CONTRACT_NEXT_STEPS_AND_RECOMMENDATIONS_COMPLETE.md).
Summary:
1. **Chain 138:** Confirm all 26 deployed addresses on explorer.d-bis.org; run `./scripts/verify/check-contracts-on-chain-138.sh` and Blockscout verification; .env reconciled (one entry per variable).
2. **Deprecated:** Use CCIPWETH9Bridge `0x971c...` only; do not use `0x89dd...`.
3. **Phased core (138):** **Deployed 2026-02-11.** Addresses in CONTRACT_ADDRESSES_REFERENCE. To redeploy: run 01_DeployCore then 02_DeployBridges; set and document env.
4. **Trustless bridge:** Deploy from script/bridge/trustless/ when needed; update config/production placeholders.
5. **Mainnet/multichain:** Use DeployAll or chain-specific scripts; document addresses per chain.
6. **ALL Mainnet:** Use documented token addresses only; no deploy in repo.
7. **Keep docs updated:** CONTRACT_ADDRESSES_REFERENCE, CONTRACT_INVENTORY_AND_VERIFICATION, this file.
---
**See also:** [CONTRACT_NEXT_STEPS_LIST](CONTRACT_NEXT_STEPS_LIST.md) | [OPERATOR_ACTIONS](OPERATOR_ACTIONS.md) | [CONTRACT_NEXT_STEPS_AND_RECOMMENDATIONS_COMPLETE](CONTRACT_NEXT_STEPS_AND_RECOMMENDATIONS_COMPLETE.md) | [CONTRACT_ADDRESSES_REFERENCE](CONTRACT_ADDRESSES_REFERENCE.md) | [CONTRACT_INVENTORY_AND_VERIFICATION](CONTRACT_INVENTORY_AND_VERIFICATION.md) | [CONTRACTS_TO_DEPLOY](CONTRACTS_TO_DEPLOY.md) | [SMART_CONTRACTS_INVENTORY_SIMPLE](SMART_CONTRACTS_INVENTORY_SIMPLE.md) | [CHAIN138_TOKEN_ADDRESSES](CHAIN138_TOKEN_ADDRESSES.md) | [ALL_MAINNET_TOKEN_ADDRESSES](ALL_MAINNET_TOKEN_ADDRESSES.md). **Channel managers (PaymentChannelManager, GenericStateChannelManager):** deploy scripts and full docs in smom-dbis-138 `docs/channels/` and `docs/deployment/PAYMENT_CHANNELS_DEPLOYMENT.md`.