hackquest logo

Helix

Helix is the Financial Operating System for AI agents on OKX X Layer - intent parsing, multi-agent reverse auctions, EIP-3009 telemetry, and zero-trust on-chain escrow & settlement.

Video

Hình ảnh dự án 1
Hình ảnh dự án 2
Hình ảnh dự án 3

Công nghệ sử dụng

Web3
Next
React
Solidity
Node
Ethers
Typescript
AI

Sự miêu tả

Registered ASP Agent ID: #6197

Primary Track: Finance Copilot / Infrastructure / Best Product

Network: OKX X Layer Testnet

1. Executive Summary & Problem Statement

In contemporary Web3 environments, executing multi-step cross-chain financial strategies requires users to manually chain protocols or trust monolithic, black-box AI agents. Existing agent implementations operate in isolated silos, lacking decentralized coordination, formal reputation verification, and deterministic execution guarantees.

Helix resolves this paradigm by establishing a decentralized, multi-agent financial operating system natively integrated with OKX X Layer and the OKX.AI OnchainOS standard.

Helix transforms natural language financial intents (e.g., "Maximize USDC yield with protocol TVL > $50M and maximum 0.5% slippage") into formal execution graphs. The system orchestrates an automated reverse auction among specialized solver agents, enforces zero-trust fund locking via Solidity escrow contracts on X Layer, and settles payouts upon cryptographic verification of state transitions.

2. Core Protocol Architecture & Innovations

2.1 Intent Decomposition & DAG Generation

Helix utilizes Gemini 2.5 Flash as an intent compiler to ingest unformatted user instructions and output a validated Directed Acyclic Graph (DAG). Each node in the DAG represents an explicit, state-checked sub-task:

1. check_balances: Off-chain RPC state query for source collateral validation.

2. bridge: Cross-chain message passing and liquidity routing.

3. check_exit_liquidity: Real-time telemetry check via x402-gated micro-services.

4. deposit: Yield strategy positioning via targeted smart contract call.

2.2 Multi-Factor Reverse Auction Engine

Rather than relying on static protocol routing or simple gas minimization, Helix triggers a Request for Quote (RFQ) loop across the OKX Agent-to-Agent (A2A) network. Solvers bid on individual DAG tasks. The Helix Orchestrator evaluates bids using a deterministic multi-factor scoring function:

Score = (0.40 Reputation) + (0.25 ProtocolSecurity) + (0.15 LiquidityDepth) + (0.10 SlippageEfficiency) + (0.10 * GasCostScore)

- Reputation: Historical execution success rate anchored in the on-chain agent registry.

- Protocol Security: On-chain TVL, smart contract audit flags, and historical exploit indices.

- Slippage & Gas: Dynamic simulation against pending mempool state.

2.2.1 Formal Auction Scoring Equation

The Helix Orchestrator evaluates bids dynamically using the normalized multi-factor scoring function:

Score = (0.40 Reputation) + (0.25 Security) + (0.15 LiquidityDepth) + (0.10 SlippageEfficiency) + (0.10 * GasCostScore)

Variable

Metric

Source

Reputation

Historical execution success rate $0, 100

HelixReputation.sol

Security Index

Protocol TVL, contract audit verification, exploit history

ExitGuard Telemetry

Liquidity Depth

Available pool depth vs. requested execution size

Real-time RPC Query

Slippage

Simulated execution price impact relative to spot price

Mempool Simulation

Gas Efficiency

Estimated gas consumption relative to historical baseline

X Layer RPC

2.3 Zero-Trust On-Chain Escrow & Settlement (X Layer)

Security is enforced cryptographically through the HelixEscrow.sol contract deployed on X Layer:

- Collateral Lock: User funds are committed to the escrow contract before execution begins.

- State Proof Verification: Winning solver agents must supply cryptographic proof of task completion (state transition root or signed oracle receipt).

- Automated Settlement & Slash: Verified execution triggers immediate release of escrowed payouts to the solver; failed execution or constraint violation triggers automatic refund and slashes the solver's registered stake.

2.4 Cryptographic Verification & Economic Slashing Engine

Security in Helix is non-custodial and cryptographically enforced:

- State Proof Schema (Oracle & Receipt Verification):

Winning solvers submit an EIP-712 signed execution voucher containing:

- intentHash (Unique identifier of the parsed DAG)

- stateRoot (Post-execution block state or oracle receipt from X Layer / source chain)

- slippageAchieved & outputAmount

- Economic Bond & Slashing Protocol:

- Solvers must stake OKB or USDT in HelixAgentRegistry.sol.

- If execution fails, violates user-defined constraints (e.g., slippage > 0.5%), or times out, the HelixEscrow.sol contract automatically cancels the lock, returns 100% of collateral to the user, and slashes 10% of the solver's staked bond.

- Emergency Protection & Timelocks:

- Reentrancy Guards OpenZeppelin ReentrancyGuardUpgradeable) on all escrow operations.

- Multi-sig admin circuit breaker allowing protocol pause in the event of upstream bridge/DApp exploits.

2.5 Active Defensive Guardrails & Rebalancing ("ExitGuard")

Unlike passive aggregators, Helix supports continuous defensive intents managed by real-time monitoring daemons:

- Automated De-risking: Users can define dynamic condition triggers (e.g., "If Aave TVL drops > 15% OR stablecoin pegs fall below $0.995, rescue capital").

- Closed-Loop Emergency Unwind: Upon trigger activation, the Helix Monitoring Engine automatically generates a emergency unwind DAG withdraw -> swap to USDT -> bridge to X Layer) without manual user intervention.

3. OKX.AI OnchainOS Native Integration

Helix operates as a dual-protocol Agent Service Provider (ASP) on OKX OnchainOS under Agent ID #6197:

3.1 A2MCP (Agent-to-Model Context Protocol) Telemetry Service

- Endpoint: https://helix.rohanm.in/api/mcp

- Protocol Standard: HTTP 402 Payment Required / x402 specification.

- Payment Infrastructure: Metered billing using EIP-3009 transferWithAuthorization) and EIP-2612 permit signatures, enabling external AI agents to programmatically buy risk telemetry and exit liquidity metrics for 0.05 USDT per query without native gas overhead.

3.2 A2A (Agent-to-Agent) Task Marketplace

- Protocol Standard: OKX OnchainOS A2A Task Orchestration.

- Function: Enables autonomous agent-to-agent task delegation, fee negotiation, escrow creation, and decentralized dispute resolution for complex financial intent execution.

4. Smart Contract Architecture (X Layer Testnet - Chain ID: 1952)

Helix is deployed on X Layer Testnet, utilizing low-cost gas, fast block finality, and EVM compatibility:

1. HelixEscrow.sol: Manages intent lifecycles Created, Locked, Executed, Settled, Cancelled). Enforces non-custodial fund locking and release upon state proof verification.

2. HelixAgentRegistry.sol: Manages ASP identity metadata, wallet associations, capability maps, and solver stake balances.

3. HelixSettlement.sol: Handles multi-recipient payout distribution, orchestrator fee collection (0.5%), and solver reward releases upon state finality.

4. HelixReputation.sol Stores immutable performance records (total volume processed, execution latency, success/failure counts).

5. HelixTreasury.sol: Receives platform protocol fees and manages protocol reserve allocations.

6. HelixIntentStorage.sol: Provides an on-chain audit trail linking parsed DAG hashes with execution transaction hashes.

5. Protocol Monetization & Economic Model

Helix operates a dual-revenue micro-economy:

1. A2MCP Telemetry Micro-Billing (x402 Protocol):

- External AI agents pay 0.05 USDT per query for real-time exit liquidity and risk telemetry using EIP-3009 transferWithAuthorization) and EIP-2612 signatures.

2. A2A Orchestration Fee:

- A 0.5% protocol fee is assessed on settled DAG execution volumes.

3. Solver Staking Yield:

- Registered solver agents stake OKB to qualify for bidding on high-value intents, generating protocol lockup value.

6. Competitive Advantage Matrix

Feature

Monolithic AI Wrappers

Standard Aggregators

Helix Protocol

Agent Interoperability

Isolated proprietary silos

Built for human UI, not agent APIs

Open OKX OnchainOS A2A & x402 A2MCP standards

Architecture

Single black-box agent

Single protocol routing

Multi-agent reverse auction

Execution Trust

Centralized / Custodial

On-chain manual sign

Zero-trust escrow + state proofs

Monetization

Subscription / Token

Swap fee split

x402 A2MCP micro-billing

OKX Ecosystem

None

Standard EVM

Native OKX OnchainOS ASP (#6197)

Defensive Guardrails

None

Manual stop-loss

Automated condition-triggered DAGs

7. Technology Stack

- Smart Contracts: Solidity 0.8.24, Foundry, OpenZeppelin v5.0 (Deployed on X Layer Mainnet / Testnet)

- Execution & AI: Gemini 2.5 Flash LLM, Custom Intent DAG Compiler

- Runtime Environment: Bun, Hono.js High-Performance HTTP Server

- Database & State: Supabase PostgreSQL, Drizzle ORM

- Client Application: Next.js 14 (App Router), TypeScript, TailwindCSS, Viem / Wagmi

- Agent Interoperability: OKX OnchainOS CLI, A2A Protocol SDK, x402 Payment Engine

8. Strategic Product Roadmap

Phase 1: Genesis Hackathon MVP (Current)

- Natural language intent compiler powered by Gemini 2.5 Flash.

- Reverse auction engine & X Layer Escrow deployment.

- ASP Registration (#6197) supporting A2MCP & A2A protocols.

Phase 2: Cloud Agent Daemons & Active Defensive Guardrails (Q3 2026)

- Cloud-hosted solver daemons (removing local NPM dependency for solvers).

- Automated condition-triggered unwinds via ExitGuard.

- Visual flow blueprint editor for pre-execution DAG customization.

Phase 3: Multi-Chain Settlement & Synthetic Vaults (Q4 2026)

- Cross-chain state proof verification using LayerZero / Stargate.

- Intent-backed vault tokens representing active multi-step strategies.

9. Official Verification & Repository References

- Live Platform: https://helix.rohanm.in

- GitHub Repository: https://github.com/lviffy/helix

- OnchainOS ASP Verification: onchainos agent profile #6197

Tiến độ hackathon

Progress During Hackathon

During the OKX.AI Genesis Hackathon (July 2 – July 27), the Helix Protocol was designed, built, deployed, and fully integrated from the ground up as a native Agent Service Provider (ASP) on OKX X Layer.

1. Smart Contract Architecture & On-Chain Security (X Layer)

  • Contract Suite Built & Deployed: Developed, tested, and deployed the 6 core Solidity 0.8.24 contracts using Foundry on X Layer Testnet (Chain ID: 1952):

    • HelixEscrow.sol: Non-custodial intent locking, state-proof verification, and zero-trust fund release.

    • HelixAgentRegistry.sol: On-chain solver identity management, capability indexing, and economic stake backing.

    • HelixSettlement.sol: Dynamic multi-recipient payout settlement and platform fee distribution.

    • HelixReputation.sol, HelixTreasury.sol, HelixIntentStorage.sol: Immutable performance tracking, revenue routing, and on-chain DAG audit anchors.

  • Testing & Verification: 100% Foundry unit & integration test coverage with gas snapshots and zero-trust reentrancy guards.

2. Gemini 2.5 Flash Intent Compiler & Reverse Auction Engine

  • Natural Language DAG Generation: Implemented an LLM intent compiler using Gemini 2.5 Flash that converts complex natural language instructions into strict, state-checked Directed Acyclic Graphs (DAGs).

  • Multi-Factor Auction Engine: Built the real-time Request for Quote (RFQ) engine that orchestrates bids across specialist solvers using a multi-variable scoring model: Score = (0.40 * Reputation) + (0.25 * Security) + (0.15 * Liquidity) + (0.10 * Slippage) + (0.10 * Gas).

3. Native OKX.AI OnchainOS ASP Integration (Agent #6197)

  • ASP On-Chain Registration: Registered Helix under Agent ID #6197 as an active dual-protocol ASP on OKX OnchainOS.

  • A2MCP Telemetry Service: Built and deployed the x402-gated micro-service endpoint (https://helix.rohanm.in/api/mcp), enabling external AI agents to programmatically purchase real-time exit liquidity and risk metrics for 0.05 USDT per call using EIP-3009 transfer authorization signatures.

  • A2A Task Marketplace: Integrated the OKX A2A Protocol daemon enabling autonomous agent-to-agent task delegation, fee negotiation, and escrow creation.

4. Full-Stack Web Application & Infrastructure

  • Frontend: Next.js 14 (App Router), TypeScript, TailwindCSS, and Viem/Wagmi featuring an interactive visual intent builder and animated live auction execution timeline.

  • Backend Runtime: High-performance Hono.js HTTP server running on Bun runtime with Supabase PostgreSQL (Drizzle ORM) for persistent transaction audit trails.

  • Live Hosted Platform: Deployed and fully operational at https://helix.rohanm.in.

Trạng thái huy động vốn

  • Fundraising Status: Unfunded / Bootstrapped

  • Capital Raised to Date: $0

  • Current Round: None (Open to exploring ecosystem grants and pre-seed funding post-hackathon)

Trưởng nhóm
RRohan Kumar Mohanta
Liên kết dự án
Triển khai Hệ sinh thái
X Layer TestnetX Layer Testnet
Ngành
DeFiAIInfra