Zero Gravity (0G)
How Aquarius maps onto 0G infrastructure—chain routing, data availability, AI inference, verifiability, and on-chain vault—versus roadmap and Chainlink CRE.
0G (Zero Gravity) is a decentralized AI and chain ecosystem (0G documentation)—chain, scalable data availability for AI-scale payloads, and decentralized compute/serving. Aquarius integrates along that story through ZG (ZG_* configuration), a ZG pipeline for commitment- and inference-aware flows, and a vault gateway with advisory routing (including logical 0G chain). The sections below follow that infrastructure narrative and separate what ships in this repo from planned next steps. This stack is complementary to Chainlink CRE; Aquarius does not custody user private keys.
For the full stack diagram, see System Overview.
Maps the 0G chain / multi-chain angle to Aquarius.
apps/api/src/services/vault-gateway/ exposes GET /api/v1/vault-gateway/manifest (layers and registered chains) and GET /api/v1/vault-gateway/routing?chain=&asset= (buffer vs yield sleeves, strategy kinds). Responses include logical og_chain (aliases 0g, og, galileo in query). Advisory only; does not move funds or perform delegation.AquariusPerChainVault yet.Aligns with 0G Storage / DA—large, attestable data off the hot settlement path.
ZG_STORAGE_BRIDGE_URL: the ZG pipeline can POST commitment metadata and payload to your bridge or uploader (e.g. a future 0G Storage–aligned worker). Controlled hook, not an in-process 0G Storage SDK.Aligns with 0G compute / serving—model and inference scaled as infrastructure.
The ZG prefix (ZG_*) names the server pipeline at apps/api/src/integrations/zg/.
| Capability | Description |
|---|---|
| Commitment | SHA-256 over canonical JSON (0x… hex), stable for auditing |
| Modes | mock (no outbound calls), live (optional inference), off (503) |
| Optional inference | OpenAI-compatible POST …/v1/chat/completions when ZG_INFERENCE_BASE_URL is set |
| Optional storage bridge | ZG_STORAGE_BRIDGE_URL — POST commitment + payload to your uploader |
Route: POST /api/v1/zg/pipeline — see API Reference.
Config: apps/api/src/integrations/zg/config.ts.
Aligns with verifiable intelligence—outputs that can be traced without blind trust.
integrations/zg/commitment.ts and pipeline.ts — stable hex fingerprint for auditing.Aquarius’s EVM shell for per-chain vault logic.
contracts/src/vaults/AquariusPerChainVault.sol — ERC-20 share vault; deploy per chain with deploymentChainId and chainKey. StakingPort in apps/api/src/protocols/aave/vaults/application/ports/vault.port.ts for future yield/staking wiring. Deploy notes: contracts/src/vaults/README.md.| Layer | CRE | ZG pipeline |
|---|---|---|
| Role | Orchestration, DON workflows, confidential dispatch | Optional AI-scale commitment + inference + bridge hook |
| Trust | Consensus-oriented workflow semantics | Server-side advisory; validate all inputs |
Division of responsibility: Chainlink CRE remains the primary orchestration path for mitigation. The ZG pipeline and vault gateway complement CRE without replacing escalation and execution routing.
AquariusPerChainVault without a separate audited strategy moduleapps/api/src/integrations/zg/config.ts — e.g. ZG_PIPELINE_MODE, ZG_INFERENCE_BASE_URL, ZG_STORAGE_BRIDGE_URL