Docs &
References
Technical documentation for the ExiDante NCM stack. This covers the BullMQ agent system, social integration, Pyth oracle usage, smart contract interfaces, and per-protocol development guides. All protocols are in active development — this documentation is a living document.
Architecture
Overview
The ExiDante stack is a multi-protocol monorepo. Each protocol (CYPHER, ORIGIN, MAGMA, SPACECRAFT, RIPTIDE) runs as a set of BullMQ workers in a shared Redis namespace. All protocols share: the @cypher/bullmq-central package, the @cypher/social-publisher package, and the Pyth Hermes price feed connection.
Monorepo structure: packages/ (shared libs) · services/ (per-protocol agents) · apps/ (web apps) · contracts/ (on-chain programs)
BullMQ
Agent System
All background processing is handled via BullMQ workers connected to a single Redis 7.x instance. 16 queues total across 5 protocols. Bull Board admin UI runs on port 3001.
| Queue | Protocol | Concurrency | Priority |
|---|---|---|---|
cypher:governance | CYPHER | 2 | Critical |
cypher:treasury | CYPHER | 1 | Critical |
cypher:sync | CYPHER | 5 | High |
magma:narrative | MAGMA | 8 | High |
magma:scoring | MAGMA | 10 | High |
magma:defi | MAGMA | 3 | Medium |
magma:social | MAGMA | 4 | Medium |
origin:ideas | ORIGIN | 6 | High |
origin:ip | ORIGIN | 2 | Medium |
origin:market | ORIGIN | 3 | Medium |
spacecraft:narrative | SPACECRAFT | 6 | High |
spacecraft:bridge | SPACECRAFT | 2 | Critical |
spacecraft:social | SPACECRAFT | 4 | Medium |
riptide:ocean | RIPTIDE | 5 | High |
riptide:narrative | RIPTIDE | 6 | High |
riptide:social | RIPTIDE | 3 | Medium |
Pyth Oracle
Integration
All price data uses Pyth Network pull oracles via the Hermes REST API:
https://hermes.pyth.network/v2/updates/price/latest
Prices are fetched every 30 seconds, cached in Redis with 60s TTL, and used for: narrative backing USD conversion, outcome validation, DeFi position valuation, cross-chain $CYPH price aggregation.
| Feed | Chain | Used By |
|---|---|---|
| SOL/USD | Solana | MAGMA scoring, DeFi yield display, $CYPH aggregation |
| ETH/USD | EVM | ORIGIN market cap, CYPHER bridge TVL, $CYPH aggregation |
| EGLD/USD | MultiversX | SPACECRAFT narrative scoring, bridge volume, $CYPH aggregation |
| SUI/USD | Sui | RIPTIDE scoring, Cetus LP valuation, anomaly detection |
Social
Integration
The @cypher/social-publisher package provides unified posting across 4 platforms. All social publishing is queue-driven through BullMQ social workers.
- X (Twitter API v2) — 5 protocol accounts, OAuth 2.0. Narrative publishes, validation reveals, DeFi alerts, daily digest thread.
- Telegram (Grammy.js) — 5 protocol bots, webhook mode. Price alerts, narrative cards with inline keyboards, bridge status, grants countdown.
- Discord (discord.js v14) — One CYPHER server, per-protocol channels, webhooks. Slash commands: /price, /narrative, /defi, /stats, /bridge, /governance.
- Grok AI (xAI API) — Outcome validation via web search, IP prior art search for ORIGIN, MultiversX news monitoring for SPACECRAFT.
Per-Protocol
Guides
- CYPHER — Cross-chain governance sync, $CYPH treasury, 5-chain price aggregation.
- MAGMA — Solana Mobile Wallet Adapter, SKR staking, Orca/Raydium/Jito DeFi.
- ORIGIN — pgvector dedup, ERC-8004 mint, Story Protocol IP.
- SPACECRAFT — @multiversx/sdk-core, bridge monitoring, EGLD state sync.
- RIPTIDE — @mysten/sui, Cetus CLMM, DeepBook, grants tracker.
Smart Contract
Addresses
Beta notice: All contracts are currently deployed on testnets. Mainnet addresses will be published after audit completion. Do not send funds to testnet addresses.