- ALL_MAINNET_CONFIGURATION: bridge_live vs swap inventory pending; CI script paths; remove stale sameChainSwapInventoryPublished:true claims - ALL_MAINNET_VERIFICATION_COMPLETE: separate bridge verification from DEX inventory posture Made-with: Cursor
211 lines
6.3 KiB
Markdown
211 lines
6.3 KiB
Markdown
# ALL Mainnet (651940) Verification Complete
|
||
|
||
**Date**: 2026-01-26
|
||
**Status**: ✅ **VERIFICATION COMPLETE** (bridge + routing flags + USDC below)
|
||
|
||
**2026-04-28 addendum — same-chain DEX inventory:** Bridge verification and `chains.ts` flags below are **orthogonal** to **routable same-chain swap inventory**. Canonical posture lives in **[proxmox]** [`config/allmainnet-non-dodo-protocol-surface.json`](../../../config/allmainnet-non-dodo-protocol-surface.json): until `summary.sameChainSwapInventoryPublished` is **`true`**, treat same-chain DEX routing as **not production-complete** even though this document’s CCIP/LiFi/USDC checks passed. See [`ALL_MAINNET_CONFIGURATION.md`](ALL_MAINNET_CONFIGURATION.md).
|
||
|
||
---
|
||
|
||
## Verification Results
|
||
|
||
### ✅ CCIP Support: NOT SUPPORTED
|
||
|
||
**Verification Date**: 2026-01-26
|
||
**Method**: Checked CCIP Directory - Mainnet
|
||
**URL**: https://docs.chain.link/ccip/directory/mainnet
|
||
|
||
**Result**:
|
||
- ALL Mainnet (651940) is **NOT** listed in CCIP Directory
|
||
- CCIP Directory shows 75 supported networks
|
||
- ALL Mainnet is not among the supported chains
|
||
|
||
**Action Taken**:
|
||
- Updated `chains.ts`: `ccipSupported: false`
|
||
- Routing logic will use `AlltraAdapter` instead of CCIP
|
||
- CCIP bridging disabled for ALL Mainnet
|
||
|
||
---
|
||
|
||
### ✅ LiFi Support: NOT SUPPORTED
|
||
|
||
**Verification Date**: 2026-01-26
|
||
**Method**: Queried LiFi API
|
||
**URL**: https://li.quest/v1/chains
|
||
|
||
**Result**:
|
||
- Queried LiFi API endpoint
|
||
- Searched response for chain ID 651940
|
||
- **NOT FOUND** - ALL Mainnet is not in LiFi's supported chains
|
||
- LiFi supports 100+ chains but 651940 is not included
|
||
|
||
**Action Taken**:
|
||
- Updated `chains.ts`: `lifiSupported: false`
|
||
- Updated `LiFiRoutingService` to check support before routing
|
||
- Added error handling for unsupported chains
|
||
- Routing logic will use alternative mechanisms
|
||
|
||
---
|
||
|
||
### ✅ USDC Deployment: VERIFIED
|
||
|
||
**Verification Date**: 2026-01-26
|
||
**Status**: ✅ **VERIFIED AND CONFIGURED**
|
||
|
||
**Verification Result**:
|
||
- USDC Contract Address: `0xa95EeD79f84E6A0151eaEb9d441F9Ffd50e8e881`
|
||
- Token Name: AUSDC (USDC on ALL Mainnet)
|
||
- Verified on: https://alltra.global
|
||
- Updated in `chains.ts`: ✅ Complete
|
||
|
||
**Action Taken**:
|
||
- ✅ Updated `chains.ts` with USDC address
|
||
- ✅ USDC-based routing enabled
|
||
- ✅ Settlement contracts can use this address
|
||
|
||
---
|
||
|
||
## Configuration Updates
|
||
|
||
### ✅ chains.ts Updated
|
||
|
||
```typescript
|
||
ALL_MAINNET: {
|
||
chainId: 651940,
|
||
selector: '', // CCIP not supported
|
||
confirmations: 12,
|
||
usdcAddress: '0xa95EeD79f84E6A0151eaEb9d441F9Ffd50e8e881', // ✅ VERIFIED: AUSDC
|
||
name: 'ALL Mainnet',
|
||
rpcUrl: 'https://mainnet-rpc.alltra.global',
|
||
explorerUrl: 'https://alltra.global',
|
||
nativeCurrency: {
|
||
name: 'ALL',
|
||
symbol: 'ALL',
|
||
decimals: 18,
|
||
},
|
||
ccipSupported: false, // ✅ VERIFIED: Not in CCIP Directory
|
||
lifiSupported: false, // ✅ VERIFIED: Not in LiFi API
|
||
chainKey: 'all-mainnet',
|
||
displayName: 'ALL Mainnet',
|
||
}
|
||
```
|
||
|
||
### ✅ AlltraAdapter.sol Updated
|
||
|
||
- Chain ID: `9999` → `651940` ✅
|
||
- Chain Type: `"Alltra"` → `"EVM"` ✅
|
||
- Identifier: `"Alltra-Mainnet"` → `"ALL-Mainnet"` ✅
|
||
|
||
### ✅ LiFiRoutingService Updated
|
||
|
||
- Added `isLiFiSupported()` check before routing
|
||
- Throws clear error if LiFi not supported
|
||
- Prevents routing attempts for unsupported chains
|
||
|
||
---
|
||
|
||
## Routing Strategy
|
||
|
||
### Inbound (Public Chain → ALL Mainnet)
|
||
|
||
**Current Flow**:
|
||
1. Payment on public chain (Ethereum, Base, Arbitrum)
|
||
2. LiFi routes to vault (if LiFi supported for source)
|
||
3. Vault receives USDC on public chain
|
||
4. Settlement on ChainID 138 (current architecture)
|
||
5. Bridge to ALL Mainnet via `AlltraAdapter` (if needed)
|
||
|
||
**Note**: Current architecture settles on ChainID 138. If direct settlement on ALL Mainnet is required, use `AlltraAdapter` for the final leg.
|
||
|
||
### Outbound (ALL Mainnet → Public Chain)
|
||
|
||
**Current Flow**:
|
||
1. User initiates withdrawal from ALL Mainnet
|
||
2. Use `AlltraAdapter` to bridge (CCIP not available)
|
||
3. Bridge to destination via CCIP/LiFi if supported
|
||
|
||
**Alternative**: Bridge via ChainID 138 as intermediate:
|
||
- ALL Mainnet → ChainID 138 (via AlltraAdapter)
|
||
- ChainID 138 → Destination (via CCIP)
|
||
|
||
---
|
||
|
||
## Telemetry Labels
|
||
|
||
Standardized labels for metrics:
|
||
|
||
```typescript
|
||
{
|
||
chainId: 651940,
|
||
chainKey: "all-mainnet",
|
||
displayName: "ALL Mainnet",
|
||
chainType: "EVM"
|
||
}
|
||
```
|
||
|
||
---
|
||
|
||
## Files Updated
|
||
|
||
1. ✅ `AlltraAdapter.sol` - Chain ID and type updated
|
||
2. ✅ `chains.ts` - ALL_MAINNET config added with verification results
|
||
3. ✅ `LiFiRoutingService` - Support check added
|
||
4. ✅ `generate-all-adapters.sh` - Documentation updated
|
||
5. ✅ `../archive/status-reports/repo-root-legacy/MULTI_CHAIN_DEPLOYMENT_COMPLETE.md` - Historical status snapshot updated
|
||
6. ✅ `MULTI_CHAIN_DEPLOYMENT_GUIDE.md` - ALL Mainnet section added
|
||
7. ✅ `ALL_MAINNET_CONFIGURATION.md` - Verification checklist created
|
||
8. ✅ `ALL_MAINNET_ROUTING_LOGIC.md` - Routing strategy documented
|
||
9. ✅ `register-all-mainnet.s.sol` - ChainRegistry registration script
|
||
10. ✅ `verify-all-mainnet-usdc.sh` - USDC verification script
|
||
|
||
---
|
||
|
||
## Next Steps
|
||
|
||
### Immediate (Required)
|
||
|
||
1. ✅ **Verify USDC on ALL Mainnet** - COMPLETE
|
||
- USDC Address: `0xa95EeD79f84E6A0151eaEb9d441F9Ffd50e8e881` (AUSDC)
|
||
- Updated in `chains.ts`: ✅ Complete
|
||
|
||
### Short Term
|
||
|
||
2. ⚠️ **Test AlltraAdapter**
|
||
- Deploy adapter to testnet/mainnet
|
||
- Test bridge operations
|
||
- Verify chain ID and identifier
|
||
|
||
3. ⚠️ **Register in ChainRegistry**
|
||
- Run: `forge script scripts/deployment/register-all-mainnet.s.sol --rpc-url <RPC>`
|
||
- Verify registration on-chain
|
||
|
||
4. ⚠️ **Update Routing Services**
|
||
- Ensure routing logic uses `AlltraAdapter` for ALL Mainnet
|
||
- Test inbound/outbound flows
|
||
- Add error handling for unsupported paths
|
||
|
||
### Long Term
|
||
|
||
5. ⚠️ **Monitor CCIP/LiFi Support**
|
||
- Periodically check CCIP Directory for ALL Mainnet
|
||
- Periodically check LiFi API for chain 651940
|
||
- Update configuration if support is added
|
||
|
||
6. ⚠️ **Deploy Vaults**
|
||
- Deploy USDC vault on ALL Mainnet (if USDC available)
|
||
- Configure vault monitoring
|
||
- Set up deposit detection
|
||
|
||
---
|
||
|
||
## Summary
|
||
|
||
✅ **CCIP**: Verified NOT SUPPORTED
|
||
✅ **LiFi**: Verified NOT SUPPORTED
|
||
✅ **USDC**: Verified DEPLOYED - `0xa95EeD79f84E6A0151eaEb9d441F9Ffd50e8e881` (AUSDC)
|
||
✅ **Code Updates**: Complete
|
||
✅ **Documentation**: Complete
|
||
✅ **Routing Logic**: Documented
|
||
|
||
**System is ready for ALL Mainnet integration using `AlltraAdapter` for bridging operations.**
|