Files
proxmox/docs/11-references/ALL_MAINNET_ROUTING_ENGINE.md
defiQUG bea1903ac9
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
Sync all local changes: docs, config, scripts, submodule refs, verification evidence
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-21 15:46:06 -08:00

56 lines
2.3 KiB
Markdown

# ALL Mainnet Routing Engine — AlltraAdapter & AlltraCustomBridge
Documents how **AlltraAdapter** and **AlltraCustomBridge** fit into the cross-chain routing engine for ALL Mainnet (651940) → Tezos USDtz flows.
## Overview
- **ALL Mainnet** (chainId 651940): EVM blockchain, RPC `https://mainnet-rpc.alltra.global`
- **AlltraAdapter**: Solidity contract bridging 651940 ↔ Ethereum (1)
- **AlltraCustomBridge**: On-chain bridge component used when CCIP/LiFi do not support 651940
## Routing Engine Integration
### Bridge Capability Matrix
The `dbis_core` bridge capability matrix (`bridge-capability-matrix.ts`) includes:
| Provider | Source | Destination | Assets | Status |
|-----------------|------------|-------------|---------------------------|---------|
| AlltraAdapter | 651940 | 1 | USDC, USDT, AUSDC, AUSDT, WETH | active |
| AlltraAdapter | 1 | 651940 | USDC, USDT, WETH | active |
### Route Planner (ALL Mainnet → Tezos USDtz)
The route planner supports `source_chain_id=651940` with this 4-hop path:
1. **ALL_MAINNET SWAP** — source asset → AUSDC (`0xa95EeD79f84E6A0151eaEb9d441F9Ffd50e8e881`) via AlltraDEX / EnhancedSwapRouter
2. **ALL_MAINNET BRIDGE** — AlltraAdapter: AUSDC → USDC on Ethereum
3. **HUB_EVM BRIDGE** — Wrap Protocol (or Allbridge): USDC → Tezos
4. **TEZOS SWAP** — USDC → USDtz via Plenty
### Chain Label Mapping (TRPE / EO)
The Transaction Router + Policy Engine maps chain labels to IDs:
| Label | Chain ID |
|-------------|----------|
| CHAIN138 | 138 |
| ALL_MAINNET | 651940 |
| HUB_EVM | 1 |
| TEZOS | 1729 |
## Contract References
- **AlltraAdapter**: `smom-dbis-138/contracts/bridge/adapters/evm/AlltraAdapter.sol`
- **Chain Registry**: Uses chain type "EVM", identifier "ALL-Mainnet" for 651940
## API Endpoints
- **POST /v1/routes/chain138-to-usdtz** (multi-chain-execution): Accepts `source_chain_id=651940`
- **POST /api/v1/routes/chain138-to-usdtz** (dbis_core): Same
## Related Docs
- [TEZOS_NETWORK_CONFIG_ENV_MATRIX](../07-ccip/TEZOS_NETWORK_CONFIG_ENV_MATRIX.md) — RPC and bridge env vars
- [ALL_MAINNET_MASTER_DOCUMENTATION](../archive/root-cleanup-20260220/ALL_MAINNET_MASTER_DOCUMENTATION.md) — Full ALL Mainnet integration