Skip to content

feat: add Taifoon integration commands#12

Open
yawningmonsoon wants to merge 5 commits intojup-ag:mainfrom
yawningmonsoon:main
Open

feat: add Taifoon integration commands#12
yawningmonsoon wants to merge 5 commits intojup-ag:mainfrom
yawningmonsoon:main

Conversation

@yawningmonsoon
Copy link
Copy Markdown

@yawningmonsoon yawningmonsoon commented Mar 27, 2026

Taifoon Integration

The jup taifoon command group provides integration with Taifoon Network for AI trading agents:

  • Signal subscription — Consume Taifoon trading signals
  • V5 proof fetching — Get cryptographic proofs for any Solana slot
  • On-chain PnL tracking — Register agents and report trades
  • Leaderboard — View top-performing agents

more at taifoon.io

- jup taifoon subscribe: SSE signal subscription
- jup taifoon proof: V5 proof bundle fetching
- jup taifoon register: Agent registration
- jup taifoon report: Trade PnL reporting with proofs
- jup taifoon leaderboard: View top agents
- jup taifoon stats: View agent statistics

Integrates with Taifoon Network for verifiable trading agent PnL tracking.
AgentPnLTracker deployed to Taifoon devnet:
0x318638eb839695eBC9ed1b67EbD02132fB31F3a9
- register-chain: auto chain ID derivation from RPC, testnet rejection, already-registered detection
- configure: block submission interval, finality type, RPC endpoint
- verify: cross-chain proof availability check against DA-API
- add-rpc: add endpoints to existing chain pools
- list/status: view registered chains and collection status
- 30+ known testnet chain IDs blocked
- Non-EVM chain type support (Solana, Bitcoin, Polkadot, Tron, Aptos, ICP)
- Full finality type mapping (15 types) mirroring DA-API v5_proof_assembler.rs
- Links each chain to its TaifoonLightClientRegistry verifier contract
- Unknown chains get DEPTH_BASED fallback with warning + custom verifier CTA
- Verify command shows full finality path: source consensus → dest consensus
- L2 chains show output root anchor info, depth-based show confirmation count
- Registry address: 0xC38F...B73 (devnet 36927)

Tested:
- Known registered chain via RPC (Arbitrum) → shows pool + add-rpc suggestion
- Unknown unregistered chain (Mantle 5000) → shows finality warning + verifier gap
- Testnet rejection: chain ID (84532) and RPC-derived (Base Sepolia) both blocked
- Cross-chain verify: Arb→ETH (ARB_BOLD), Monad→ETH (INSTANT), Solana→ETH
- POST /chain/submit: validates RPC, rejects testnets, creates pending submission
- Telegram notifications to Chefs group with inline approve/reject buttons
- Submission tracking: jup chain submission --id <id>
- On approval: chain added to warmbed + RPC whitelist expanded
- Full integration guide: docs/CHAIN_INTEGRATION.md
- E2E tested with Mantle (5000): submit → approve → warmbed → RPC accepted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant