Technical Documentation

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.

QueueProtocolConcurrencyPriority
cypher:governanceCYPHER2Critical
cypher:treasuryCYPHER1Critical
cypher:syncCYPHER5High
magma:narrativeMAGMA8High
magma:scoringMAGMA10High
magma:defiMAGMA3Medium
magma:socialMAGMA4Medium
origin:ideasORIGIN6High
origin:ipORIGIN2Medium
origin:marketORIGIN3Medium
spacecraft:narrativeSPACECRAFT6High
spacecraft:bridgeSPACECRAFT2Critical
spacecraft:socialSPACECRAFT4Medium
riptide:oceanRIPTIDE5High
riptide:narrativeRIPTIDE6High
riptide:socialRIPTIDE3Medium

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.

FeedChainUsed By
SOL/USDSolanaMAGMA scoring, DeFi yield display, $CYPH aggregation
ETH/USDEVMORIGIN market cap, CYPHER bridge TVL, $CYPH aggregation
EGLD/USDMultiversXSPACECRAFT narrative scoring, bridge volume, $CYPH aggregation
SUI/USDSuiRIPTIDE 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.

NCM Primitive →Whitepaper