# CCIP Contracts - Complete .env Update

**Date**: 2025-12-24  
**Purpose**: Comprehensive update of all CCIP contracts across all blockchain networks to .env files

---

## 📋 Supported Networks

| Network | Chain ID | Chain Selector | Explorer |
|---------|----------|---------------|----------|
| **ChainID 138** | 138 | `866240039685049171407962509760789466724431933144813155647626` | Blockscout: https://explorer.d-bis.org |
| **Ethereum Mainnet** | 1 | `5009297550715157269` | Etherscan: https://etherscan.io |
| **BSC** | 56 | `11344663589394136015` | BSCScan: https://bscscan.com |
| **Polygon** | 137 | `4051577828743386545` | PolygonScan: https://polygonscan.com |
| **Avalanche** | 43114 | `6433500567565415381` | Snowtrace: https://snowtrace.io |
| **Base** | 8453 | `15971525489660198786` | BaseScan: https://basescan.org |
| **Arbitrum** | 42161 | `4949039107694359620` | Arbiscan: https://arbiscan.io |
| **Optimism** | 10 | `3734403246176062136` | Optimistic Etherscan: https://optimistic.etherscan.io |
| **Cronos** | 25 | TBD | CronosScan: https://cronoscan.com |
| **Gnosis** | 100 | TBD | GnosisScan: https://gnosisscan.io |

---

## 🔗 Official Chainlink CCIP Router Addresses

| Network | Chain ID | CCIP Router Address | LINK Token Address |
|---------|----------|---------------------|-------------------|
| **Ethereum Mainnet** | 1 | `0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D` | `0x514910771AF9Ca656af840dff83E8264EcF986CA` |
| **Polygon** | 137 | `0x3C3D92629A02a8D95D5CB9650fe49C3544f69B43` | `0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39` |
| **Avalanche** | 43114 | `0xF694E193200268f9a4868e4Aa017A0118C9a8177` | `0x5947BB275c521040051E823857d752Cac58008AD` |
| **Arbitrum** | 42161 | `0x1619DE6B6B20eD217a58d00f37B9d47C7663feca` | `0xf97f4df75117a78c1A5a0DBb814Af92458539FB4` |
| **Optimism** | 10 | `0x261c05167db67Be2E2dc4a347C4E6B000C677852` | `0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6` |
| **Base** | 8453 | `0xcc22AB6F94F1aBB4de9CCF9046f7a0AD1Ce4d716` | `0x88Fb150BDc53A65fe94Dea0c9Ba0e666F144f907` |
| **BSC** | 56 | `0xE1053aE1857476f36F3bAdEe8D26609d1887a44A` | `0x404460C6A5EdE2D891e8297795264fDe62ADBB75` |
| **Cronos** | 25 | TBD (CCIP not yet available) | TBD |
| **Gnosis** | 100 | TBD (CCIP not yet available) | TBD |
| **ChainID 138** | 138 | `0x42DAb7b888Dd382bD5Adcf9E038dBF1fD03b4817` (Custom) | `0x514910771AF9Ca656af840dff83E8264EcF986CA` (Canonical) |

---

## 📝 Complete .env Update

### ChainID 138 (Source Chain)

```bash
# ChainID 138 - CCIP Infrastructure
CHAIN_ID_138=138
RPC_URL_138=http://192.168.11.250:8545
RPC_URL_138_ALT=https://rpc-core.d-bis.org
EXPLORER_138=https://explorer.d-bis.org

# CCIP Router (Custom Deployment)
CCIP_ROUTER_138=0x42DAb7b888Dd382bD5Adcf9E038dBF1fD03b4817

# CCIP Contracts
CCIP_SENDER_138=0x105F8A15b819948a89153505762444Ee9f324684
CCIP_RECEIVER_138=0x95007eC50d0766162F77848Edf7bdC4eBA147fb4
CCIP_LOGGER_138=0xF597ABbe5E1544845C6Ba92a6884B4D601ffa334

# CCIP Bridges
CCIPWETH9_BRIDGE_138=0xcacfd227A040002e49e2e01626363071324f820a
CCIPWETH10_BRIDGE_138=0xe0E93247376aa097dB308B92e6Ba36bA015535D0

# LINK Token (Canonical Ethereum Mainnet Address)
LINK_TOKEN_138=0x514910771AF9Ca656af840dff83E8264EcF986CA
CCIP_CHAIN138_FEE_TOKEN=0x514910771AF9Ca656af840dff83E8264EcF986CA

# WETH Contracts (Pre-deployed in Genesis)
WETH9_138=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
WETH10_138=0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f
```

### Ethereum Mainnet

```bash
# Ethereum Mainnet - CCIP Infrastructure
CHAIN_ID_MAINNET=1
RPC_URL_MAINNET=https://eth.llamarpc.com
EXPLORER_MAINNET=https://etherscan.io

# Official Chainlink CCIP Router
CCIP_ROUTER_MAINNET=0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D

# CCIP Bridges
CCIPWETH9_BRIDGE_MAINNET=0x3304b747E565a97ec8AC220b0B6A1f6ffDB837e6
CCIPWETH10_BRIDGE_MAINNET=0x04E1e22B0D41e99f4275bd40A50480219bc9A223

# Alternative Mainnet Bridge Addresses (from broadcast logs)
CCIPWETH9_BRIDGE_MAINNET_ALT=0x2A0840e5117683b11682ac46f5CF5621E67269E3
CCIPWETH10_BRIDGE_MAINNET_ALT=0xb7721dD53A8c629d9f1Ba31a5819AFe250002b03

# LINK Token (Official)
LINK_TOKEN_MAINNET=0x514910771AF9Ca656af840dff83E8264EcF986CA

# WETH Contracts (Canonical)
WETH9_MAINNET=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
WETH10_MAINNET=0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f

# Other Mainnet Contracts
TRANSACTION_MIRROR_MAINNET=0x4CF42c4F1dBa748601b8938be3E7ABD732E87cE9
MAINNET_TETHER_MAINNET=0x15DF1D5BFDD8Aa4b380445D4e3E9B38d34283619
```

### BSC (Binance Smart Chain)

```bash
# BSC - CCIP Infrastructure
CHAIN_ID_BSC=56
RPC_URL_BSC=https://bsc-dataseed1.binance.org
EXPLORER_BSC=https://bscscan.com

# Official Chainlink CCIP Router
CCIP_ROUTER_BSC=0xE1053aE1857476f36F3bAdEe8D26609d1887a44A

# CCIP Bridges
CCIPWETH9_BRIDGE_BSC=0x8078a09637e47fa5ed34f626046ea2094a5cde5e
CCIPWETH10_BRIDGE_BSC=0x105f8a15b819948a89153505762444ee9f324684

# LINK Token (Official)
LINK_TOKEN_BSC=0x404460C6A5EdE2D891e8297795264fDe62ADBB75

# WETH Contracts
WETH9_BSC=0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
WETH10_BSC=0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6
```

### Polygon

```bash
# Polygon - CCIP Infrastructure
CHAIN_ID_POLYGON=137
RPC_URL_POLYGON=https://polygon-rpc.com
EXPLORER_POLYGON=https://polygonscan.com

# Official Chainlink CCIP Router
CCIP_ROUTER_POLYGON=0x3C3D92629A02a8D95D5CB9650fe49C3544f69B43

# CCIP Bridges
CCIPWETH9_BRIDGE_POLYGON=0xa780ef19a041745d353c9432f2a7f5a241335ffe
CCIPWETH10_BRIDGE_POLYGON=0xdab0591e5e89295ffad75a71dcfc30c5625c4fa2

# LINK Token (Official)
LINK_TOKEN_POLYGON=0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39

# WETH Contracts
WETH9_POLYGON=0xe0e93247376aa097db308b92e6ba36ba015535d0
WETH10_POLYGON=0xab57bf30f1354ca0590af22d8974c7f24db2dbd7
```

### Avalanche

```bash
# Avalanche - CCIP Infrastructure
CHAIN_ID_AVALANCHE=43114
RPC_URL_AVALANCHE=https://api.avax.network/ext/bc/C/rpc
EXPLORER_AVALANCHE=https://snowtrace.io

# Official Chainlink CCIP Router
CCIP_ROUTER_AVALANCHE=0xF694E193200268f9a4868e4Aa017A0118C9a8177

# CCIP Bridges
CCIPWETH9_BRIDGE_AVALANCHE=0x8078a09637e47fa5ed34f626046ea2094a5cde5e
CCIPWETH10_BRIDGE_AVALANCHE=0x105f8a15b819948a89153505762444ee9f324684

# LINK Token (Official)
LINK_TOKEN_AVALANCHE=0x5947BB275c521040051E823857d752Cac58008AD

# WETH Contracts
WETH9_AVALANCHE=0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
WETH10_AVALANCHE=0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6
```

### Base

```bash
# Base - CCIP Infrastructure
CHAIN_ID_BASE=8453
RPC_URL_BASE=https://mainnet.base.org
EXPLORER_BASE=https://basescan.org

# Official Chainlink CCIP Router
CCIP_ROUTER_BASE=0xcc22AB6F94F1aBB4de9CCF9046f7a0AD1Ce4d716

# CCIP Bridges
CCIPWETH9_BRIDGE_BASE=0x8078a09637e47fa5ed34f626046ea2094a5cde5e
CCIPWETH10_BRIDGE_BASE=0x105f8a15b819948a89153505762444ee9f324684

# LINK Token (Official)
LINK_TOKEN_BASE=0x88Fb150BDc53A65fe94Dea0c9Ba0e666F144f907

# WETH Contracts
WETH9_BASE=0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
WETH10_BASE=0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6
```

### Arbitrum

```bash
# Arbitrum - CCIP Infrastructure
CHAIN_ID_ARBITRUM=42161
RPC_URL_ARBITRUM=https://arb1.arbitrum.io/rpc
EXPLORER_ARBITRUM=https://arbiscan.io

# Official Chainlink CCIP Router
CCIP_ROUTER_ARBITRUM=0x1619DE6B6B20eD217a58d00f37B9d47C7663feca

# CCIP Bridges
CCIPWETH9_BRIDGE_ARBITRUM=0x8078a09637e47fa5ed34f626046ea2094a5cde5e
CCIPWETH10_BRIDGE_ARBITRUM=0x105f8a15b819948a89153505762444ee9f324684

# LINK Token (Official)
LINK_TOKEN_ARBITRUM=0xf97f4df75117a78c1A5a0DBb814Af92458539FB4

# WETH Contracts
WETH9_ARBITRUM=0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
WETH10_ARBITRUM=0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6
```

### Optimism

```bash
# Optimism - CCIP Infrastructure
CHAIN_ID_OPTIMISM=10
RPC_URL_OPTIMISM=https://mainnet.optimism.io
EXPLORER_OPTIMISM=https://optimistic.etherscan.io

# Official Chainlink CCIP Router
CCIP_ROUTER_OPTIMISM=0x261c05167db67Be2E2dc4a347C4E6B000C677852

# CCIP Bridges
CCIPWETH9_BRIDGE_OPTIMISM=0x8078a09637e47fa5ed34f626046ea2094a5cde5e
CCIPWETH10_BRIDGE_OPTIMISM=0x105f8a15b819948a89153505762444ee9f324684

# LINK Token (Official)
LINK_TOKEN_OPTIMISM=0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6

# WETH Contracts
WETH9_OPTIMISM=0x99b3511a2d315a497c8112c1fdd8d508d4b1e506
WETH10_OPTIMISM=0x3304b747e565a97ec8ac220b0b6a1f6ffdb837e6
```

### Cronos (Placeholder - CCIP Not Yet Available)

```bash
# Cronos - CCIP Infrastructure (Placeholder)
CHAIN_ID_CRONOS=25
RPC_URL_CRONOS=https://evm.cronos.org
EXPLORER_CRONOS=https://cronoscan.com

# CCIP Router (TBD - CCIP not yet available on Cronos)
# CCIP_ROUTER_CRONOS=TBD

# LINK Token (TBD)
# LINK_TOKEN_CRONOS=TBD
```

### Gnosis (Placeholder - CCIP Not Yet Available)

```bash
# Gnosis - CCIP Infrastructure (Placeholder)
CHAIN_ID_GNOSIS=100
RPC_URL_GNOSIS=https://rpc.gnosischain.com
EXPLORER_GNOSIS=https://gnosisscan.io

# CCIP Router (TBD - CCIP not yet available on Gnosis)
# CCIP_ROUTER_GNOSIS=TBD

# LINK Token (TBD)
# LINK_TOKEN_GNOSIS=TBD
```

---

## 🔗 Chain Selectors

```bash
# Chain Selectors for CCIP
CHAIN_SELECTOR_138=866240039685049171407962509760789466724431933144813155647626
CHAIN_SELECTOR_MAINNET=5009297550715157269
CHAIN_SELECTOR_BSC=11344663589394136015
CHAIN_SELECTOR_POLYGON=4051577828743386545
CHAIN_SELECTOR_AVALANCHE=6433500567565415381
CHAIN_SELECTOR_BASE=15971525489660198786
CHAIN_SELECTOR_ARBITRUM=4949039107694359620
CHAIN_SELECTOR_OPTIMISM=3734403246176062136
CHAIN_SELECTOR_CRONOS=TBD
CHAIN_SELECTOR_GNOSIS=TBD
```

---

## 📊 Summary

### Deployed Contracts by Network

| Network | CCIP Router | CCIP Sender | CCIP Receiver | CCIP Logger | WETH9 Bridge | WETH10 Bridge |
|---------|-------------|-------------|---------------|-------------|--------------|---------------|
| **ChainID 138** | ✅ Custom | ✅ | ⚠️ Needs Re-deploy | ✅ | ✅ | ✅ |
| **Ethereum Mainnet** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **BSC** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Polygon** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Avalanche** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Base** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Arbitrum** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Optimism** | ✅ Official | ❌ | ❌ | ❌ | ✅ | ✅ |
| **Cronos** | ❌ Not Available | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Gnosis** | ❌ Not Available | ❌ | ❌ | ❌ | ❌ | ❌ |

---

**Last Updated**: 2025-12-24  
**Status**: Complete .env template ready for update
