301 lines
8.6 KiB
Markdown
301 lines
8.6 KiB
Markdown
# Deployed Contracts Review - Complete Status
|
|
|
|
**Date**: 2025-12-24
|
|
**Purpose**: Comprehensive review of all contracts that are actually deployed vs. missing
|
|
|
|
---
|
|
|
|
## ✅ CONFIRMED DEPLOYED CONTRACTS (ChainID 138)
|
|
|
|
### Core Infrastructure
|
|
|
|
#### 1. LINK Token (MockLinkToken)
|
|
- **Address**: `0xb7721dD53A8c629d9f1Ba31a5819AFe250002b03`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 3,779 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployMockLinkToken.s.sol`)
|
|
|
|
#### 2. CCIP Router
|
|
- **Address**: `0x8078A09637e47Fa5Ed34F626046Ea2094a5CDE5e`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 8,571 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployCCIPRouter.s.sol`)
|
|
|
|
#### 3. CCIP Sender
|
|
- **Address**: `0x105F8A15b819948a89153505762444Ee9f324684`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 10,349 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployCCIPSender.s.sol`)
|
|
|
|
#### 4. CCIPLogger
|
|
- **Address**: `0xF597ABbe5E1544845C6Ba92a6884B4D601ffa334`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 807 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployCCIPLoggerChain138.s.sol`)
|
|
|
|
#### 5. CCIPReceiver
|
|
- **Address**: `0x95007eC50d0766162F77848Edf7bdC4eBA147fb4`
|
|
- **Status**: ⚠️ **DEPLOYED BUT NOT VERIFIED**
|
|
- **Code Size**: 3 bytes (essentially empty)
|
|
- **On-Chain**: ❌ Not confirmed
|
|
- **Issue**: Deployment script reported success, but contract code not on-chain
|
|
- **Action Required**: Re-deployment needed
|
|
|
|
### Bridge Contracts
|
|
|
|
#### 6. CCIPWETH9Bridge (ChainID 138)
|
|
- **Address**: `0x89dd12025bfCD38A168455A44B400e913ED33BE2`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 13,015 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployCCIPWETH9Bridge.s.sol`)
|
|
|
|
#### 7. CCIPWETH10Bridge (ChainID 138)
|
|
- **Address**: `0xe0E93247376aa097dB308B92e6Ba36bA015535D0`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 13,049 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployCCIPWETH10Bridge.s.sol`)
|
|
|
|
### Oracle Contracts
|
|
|
|
#### 8. Oracle Aggregator
|
|
- **Address**: `0x99b3511a2d315a497c8112c1fdd8d508d4b1e506`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 7,957 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployOracle.s.sol`)
|
|
|
|
#### 9. Oracle Proxy
|
|
- **Address**: `0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 1,311 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployOracle.s.sol`)
|
|
- **Purpose**: MetaMask price feed
|
|
|
|
### Pre-Deployed Contracts (Genesis)
|
|
|
|
#### 10. WETH9
|
|
- **Address**: `0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`
|
|
- **Status**: ✅ **PRE-DEPLOYED IN GENESIS**
|
|
- **Code Size**: 6,251 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Note**: No deployment needed - exists from genesis block
|
|
|
|
#### 11. WETH10
|
|
- **Address**: `0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f`
|
|
- **Status**: ✅ **PRE-DEPLOYED IN GENESIS**
|
|
- **Code Size**: 19,953 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Note**: No deployment needed - exists from genesis block
|
|
|
|
#### 12. Multicall
|
|
- **Address**: `0x99b3511a2d315a497c8112c1fdd8d508d4b1e506`
|
|
- **Status**: ✅ **PRE-DEPLOYED IN GENESIS**
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Note**: Same address as Oracle Aggregator (shared address)
|
|
|
|
### Keeper Contracts
|
|
|
|
#### 13. PriceFeedKeeper
|
|
- **Address**: `0xD3AD6831aacB5386B8A25BB8D8176a6C8a026f04`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 10,749 bytes
|
|
- **On-Chain**: ✅ Confirmed
|
|
- **Deployment**: Foundry script (`DeployKeeper.s.sol`)
|
|
|
|
---
|
|
|
|
## ✅ CONFIRMED DEPLOYED CONTRACTS (Ethereum Mainnet)
|
|
|
|
### Bridge Contracts
|
|
|
|
#### 14. CCIPWETH9Bridge (Ethereum Mainnet)
|
|
- **Address**: `0x2A0840e5117683b11682ac46f5CF5621E67269E3`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 13,015 bytes
|
|
- **On-Chain**: ✅ Confirmed (Ethereum Mainnet)
|
|
- **Deployment**: Foundry script (`DeployCCIPWETH9Bridge.s.sol`)
|
|
- **Network**: Ethereum Mainnet (ChainID 1)
|
|
|
|
#### 15. CCIPWETH10Bridge (Ethereum Mainnet)
|
|
- **Address**: `0xb7721dD53A8c629d9f1Ba31a5819AFe250002b03`
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED**
|
|
- **Code Size**: 13,049 bytes
|
|
- **On-Chain**: ✅ Confirmed (Ethereum Mainnet)
|
|
- **Deployment**: Foundry script (`DeployCCIPWETH10Bridge.s.sol`)
|
|
- **Network**: Ethereum Mainnet (ChainID 1)
|
|
- **Note**: Same address as LINK token on ChainID 138 (different networks)
|
|
|
|
### Cross-Chain Contracts
|
|
|
|
#### 16. TransactionMirror (Ethereum Mainnet)
|
|
- **Address**: `0x4CF42c4F1dBa748601b8938be3E7ABD732E87cE9`
|
|
- **Status**: ✅ **DEPLOYED** (from broadcast logs)
|
|
- **Deployment**: Foundry script (`DeployTransactionMirror.s.sol`)
|
|
- **Network**: Ethereum Mainnet (ChainID 1)
|
|
|
|
#### 17. MainnetTether (Ethereum Mainnet)
|
|
- **Address**: `0x15DF1D5BFDD8Aa4b380445D4e3E9B38d34283619`
|
|
- **Status**: ✅ **DEPLOYED** (from broadcast logs)
|
|
- **Deployment**: Foundry script (`DeployMainnetTether.s.sol`)
|
|
- **Network**: Ethereum Mainnet (ChainID 1)
|
|
|
|
---
|
|
|
|
## ❌ CONFIRMED MISSING CONTRACTS
|
|
|
|
### Critical Missing
|
|
|
|
#### 1. CCIPReceiver
|
|
- **Status**: ⚠️ **DEPLOYED BUT NOT VERIFIED**
|
|
- **Address**: `0x95007eC50d0766162F77848Edf7bdC4eBA147fb4`
|
|
- **Issue**: Code size only 3 bytes (not actually deployed)
|
|
- **Priority**: 🔴 **CRITICAL** - Needs re-deployment
|
|
|
|
### Stablecoins
|
|
|
|
#### 3. USDT Token
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 4. USDC Token
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
### Governance
|
|
|
|
#### 5. MultiSig
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 6. Voting
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟢 **LOW**
|
|
|
|
### Reserve System
|
|
|
|
#### 7. ReserveSystem
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 7. PriceFeedKeeper
|
|
- **Status**: ✅ **DEPLOYED AND VERIFIED** (see deployed contracts section)
|
|
- **Address**: `0xD3AD6831aacB5386B8A25BB8D8176a6C8a026f04`
|
|
- **Note**: Already deployed, not missing
|
|
|
|
### eMoney System
|
|
|
|
#### 9. TokenFactory138
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 10. AccountWalletRegistry
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 11. ISO20022Router
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 12. RailEscrowVault
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 13. RailTriggerRegistry
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 14. SettlementOrchestrator
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
### Additional CCIP Contracts
|
|
|
|
#### 15. CCIPMessageValidator
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
#### 16. CCIPRouter (Custom)
|
|
- **Status**: ⚠️ **OPTIONAL** (Using official Chainlink router)
|
|
- **Priority**: 🟢 **LOW**
|
|
|
|
#### 17. CCIPRouterOptimized
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟢 **LOW**
|
|
|
|
### Ethereum Mainnet
|
|
|
|
#### 18. CCIPLogger (Ethereum Mainnet)
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
### Other Networks
|
|
|
|
#### 19-24. CCIP Bridges for Other Chains
|
|
- **Status**: ❌ **NOT DEPLOYED**
|
|
- **Chains**: Cronos (25), BSC (56), Polygon (137), Gnosis (100)
|
|
- **Note**: Some addresses exist in broadcast logs for other chains
|
|
- **Priority**: 🟡 **MEDIUM**
|
|
|
|
### OpenZeppelin Dependencies
|
|
|
|
#### 25. OpenZeppelin Contracts (Library)
|
|
- **Status**: ❌ **NOT INSTALLED**
|
|
- **Required For**: CCIPSender, CCIPRouter, CCIPRouterOptimized, MultiSig, Voting
|
|
- **Priority**: 🔴 **HIGH** - Required for CCIP contracts
|
|
|
|
---
|
|
|
|
## 📊 Summary Statistics
|
|
|
|
### ChainID 138
|
|
- **Deployed**: 13 contracts (12 verified, 1 pending verification)
|
|
- **Pre-Deployed**: 3 contracts (genesis)
|
|
- **Missing**: 20+ contracts
|
|
|
|
### Ethereum Mainnet
|
|
- **Deployed**: 4 contracts (all verified)
|
|
- **Missing**: 3+ contracts
|
|
|
|
### Total
|
|
- **Deployed**: 17 contracts
|
|
- **Missing**: 23+ contracts
|
|
- **OpenZeppelin**: Not installed (required for 5 contracts)
|
|
|
|
---
|
|
|
|
## 🔧 Immediate Actions Required
|
|
|
|
### Critical (Do First)
|
|
1. ⚠️ Re-deploy CCIPReceiver (only missing critical contract)
|
|
2. 🔴 Install OpenZeppelin contracts (required for future deployments)
|
|
|
|
### High Priority
|
|
4. Verify PriceFeedKeeper on-chain
|
|
5. Verify Ethereum Mainnet bridges on-chain
|
|
6. Deploy missing CCIP contracts
|
|
|
|
### Medium Priority
|
|
7. Deploy stablecoins (USDT, USDC)
|
|
8. Deploy governance contracts
|
|
9. Deploy eMoney system contracts
|
|
|
|
---
|
|
|
|
## 📄 References
|
|
|
|
- Deployment Broadcast Logs: `/home/intlc/projects/smom-dbis-138/broadcast/`
|
|
- Contract Addresses: `docs/FINAL_CONTRACT_ADDRESSES.md`
|
|
- Missing Contracts List: `docs/MISSING_CONTRACTS_COMPREHENSIVE_LIST.md`
|
|
|
|
---
|
|
|
|
**Last Updated**: 2025-12-24
|
|
|