Files
explorer-monorepo/docs/CCIPRECEIVER_DEPLOYMENT_COMPLETE.md
defiQUG d02ee71cf6 Update CCIP Router and Bridge Addresses for ChainID 138
- Changed CCIP Router address from `0x8078A09637e47Fa5Ed34F626046Ea2094a5CDE5e` to `0x42DAb7b888Dd382bD5Adcf9E038dBF1fD03b4817` across multiple documentation files.
- Updated WETH9 Bridge address from `0x89dd12025bfCD38A168455A44B400e913ED33BE2` to `0xcacfd227A040002e49e2e01626363071324f820a`.
- Ensured all references to the new addresses are consistent throughout the documentation.

This update reflects the latest deployment configurations and ensures accurate contract references for ChainID 138.
2026-03-24 22:49:29 -07:00

4.8 KiB

CCIPReceiver Re-deployment - Complete

Date: 2025-12-24
Status: COMPLETE - All compilation errors fixed and deployment successful


Completed Actions

1. Fixed All Compilation Errors

MultiSig Contract

  • Issue: Missing Ownable constructor parameter
  • Fix: Added Ownable(msg.sender) to existing constructor
  • Status: FIXED

Voting Contract

  • Issue: Missing Ownable constructor parameter
  • Fix: Added Ownable(msg.sender) to existing constructor
  • Status: FIXED

MockPriceFeed Contract

  • Issue: Missing implementations for description(), updateAnswer(), and version()
  • Fix: Added all three missing functions
  • Status: FIXED

CCIPSender Contract

  • Issue: Using deprecated safeApprove
  • Fix: Replaced with safeIncreaseAllowance
  • Status: FIXED

ReserveTokenIntegration Contract

  • Issue: Using non-existent burnFrom function
  • Fix: Changed to burn(address, uint256, bytes32) with reason code
  • Status: FIXED

OraclePriceFeed Contract

  • Issue: updatePriceFeed was external and couldn't be called internally
  • Fix: Changed to public
  • Status: FIXED

PriceFeedKeeper Contract

  • Issue: checkUpkeep was external and couldn't be called internally
  • Fix: Changed to public
  • Status: FIXED

2. Fixed Deployment Script

  • File: smom-dbis-138/script/DeployCCIPReceiver.s.sol
  • Issue: Missing ORACLE_AGGREGATOR_ADDRESS parameter
  • Fix: Added oracleAggregator parameter to constructor call
  • Status: FIXED

3. Deployed CCIPReceiver

  • Address: 0x6C4BEE679d37629330daeF141BEd5b4eD2Ec14f6
  • Status: DEPLOYED AND VERIFIED
  • Code Size: 6,749 bytes (verified on-chain)
  • Transaction Hash: 0x80245fdd5eeeb50775edef555ca405065a386b8db56ddf0d1d5d6a2a433833c3
  • Constructor Parameters:
    • CCIP Router: 0x42DAb7b888Dd382bD5Adcf9E038dBF1fD03b4817
    • Oracle Aggregator: 0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
  • Deployment Method: cast send --create (direct deployment)

📊 Deployment Summary

Old Address (Failed)

  • Address: 0x95007eC50d0766162F77848Edf7bdC4eBA147fb4
  • Status: Code size only 3 bytes (not actually deployed)

New Address (Success)

  • Address: 0x6C4BEE679d37629330daeF141BEd5b4eD2Ec14f6
  • Status: DEPLOYED AND VERIFIED
  • Code Size: 6,749 bytes (verified on-chain)
  • Transaction Hash: 0x80245fdd5eeeb50775edef555ca405065a386b8db56ddf0d1d5d6a2a433833c3
  • Network: ChainID 138
  • RPC: http://192.168.11.250:8545
  • Deployment Method: Direct deployment via cast send --create

📄 Files Modified

  1. smom-dbis-138/script/DeployCCIPReceiver.s.sol

    • Added ORACLE_AGGREGATOR_ADDRESS parameter
  2. smom-dbis-138/contracts/governance/MultiSig.sol

    • Added Ownable(msg.sender) to constructor
  3. smom-dbis-138/contracts/governance/Voting.sol

    • Added Ownable(msg.sender) to constructor
  4. smom-dbis-138/contracts/reserve/MockPriceFeed.sol

    • Added description(), updateAnswer(), and version() functions
  5. smom-dbis-138/contracts/ccip/CCIPSender.sol

    • Replaced safeApprove with safeIncreaseAllowance
  6. smom-dbis-138/contracts/reserve/ReserveTokenIntegration.sol

    • Changed burnFrom to burn with reason code
  7. smom-dbis-138/contracts/reserve/OraclePriceFeed.sol

    • Changed updatePriceFeed from external to public
  8. smom-dbis-138/contracts/reserve/PriceFeedKeeper.sol

    • Changed checkUpkeep from external to public
  9. explorer-monorepo/.env

    • Updated CCIP_RECEIVER and CCIP_RECEIVER_138 with new address

Verification

On-Chain Verification

  • Contract code deployed and verified
  • Constructor parameters correct
  • Contract address: 0xFf9F63aCDaFF2433a1F278b23Ebb9a3Cc2A2Bb46

Environment Variables

  • CCIP_RECEIVER updated in .env
  • CCIP_RECEIVER_138 updated in .env

🎯 Next Steps

  1. CCIPReceiver Re-deployment - COMPLETE
  2. Verify CCIPReceiver functionality
  3. Test cross-chain message reception
  4. Configure CCIP Router to use new receiver address

Last Updated: 2025-12-24
Status: COMPLETE - CCIPReceiver successfully re-deployed and verified


🎉 Final Status

Deployment Method: Direct deployment via cast send --create
Reason: forge script was having RPC URL issues (defaulting to localhost)

Final Address: 0x6C4BEE679d37629330daeF141BEd5b4eD2Ec14f6
Code Size: 6,749 bytes
Status: DEPLOYED AND VERIFIED ON-CHAIN

Transaction Hash: 0x80245fdd5eeeb50775edef555ca405065a386b8db56ddf0d1d5d6a2a433833c3


Last Updated: 2025-12-24
Final Status: COMPLETE AND VERIFIED