InterLayer MEL: Multi-VM Execution Layer
The unified execution fabric coordinating all 7 VMs (EVM, SVM, PolkaVM, Move, CosmWasm, Cairo VM, Candle AI) under shared balances, a common transaction envelope, and atomic multi-call semantics on Gravity Testnet.
Core Components
MEL Scheduler & Router
Routes `MELTx` transactions to VM adapters based on `vm` field and capabilities flags.
VM Adapters
`mel-evm`, `mel-svm`, `mel-polkavm`, `mel-move`, `mel-cosmwasm`, `mel-cairo`, `mel-candle` - bridging layers to each VM runtime with state isolation and gas metering.
Cross-VM Message Bus
Event and call propagation with failure isolation. Atomic bundles guarantee all-or-nothing execution.
Unified Asset & Address Registry
Chain-level registry mapping assets across VMs with SS58 root identity. One address, all VMs.
Gas Normalization
Unified gas weights - per-VM metering translated to chain units for predictable fees.
MEL Transaction Envelope
Every transaction on InterLayer uses the MELTx envelope format:
Virtual Machine Specifications
EVM (Ethereum Virtual Machine)
Deploy existing Ethereum contracts with zero modifications. Full Solidity support including all EIPs up to Shanghai.
SVM (Solana Virtual Machine)
Run Solana programs natively. Full Anchor framework support with account model preserved.
PolkaVM (RISC-V)
Native support for Ink! smart contracts and Substrate pallets compiled to RISC-V.
Move VM
Move resources are stored as on-chain structs with ownership tracked via the unified balance ledger. Call Move modules with the same unified address model used by all other VMs.
CosmWasm
CosmWasm contracts are executed via a dedicated JSON-RPC endpoint. Query execution is supported through runtime API for read-only operations.
Cairo VM (STARK ZK Coprocessor)
Cairo VM acts as an in-block algebraic and zero-knowledge coprocessor over the STARK prime field (felt252). Smart contracts on EVM, Move, or SVM can delegate computationally intensive ZK math directly to Cairo without bridge latency.
Candle AI (Deterministic Neural Inference)
Candle AI provides on-chain deterministic machine learning inference. Evaluates risk scoring, fraud heuristics, and transaction anomaly detection directly inside the block execution pipeline in under 2 milliseconds.
Atomic Bundles
Multi-call bundles can target mixed VMs - either all succeed or none commit. Perfect for complex cross-VM DeFi strategies.