@oracle-agent/oracle 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +525 -13
- package/SECURITY.md +114 -0
- package/SETUP.md +319 -0
- package/artifacts/inscription/oracle-was-here-preview.png +0 -0
- package/artifacts/inscription/oracle-was-here.svg +1 -0
- package/artifacts/specialist-packs/oracle-full-crypto.json +298 -0
- package/dist/action-receipts.mjs +1 -0
- package/dist/action-semantics.mjs +1 -0
- package/dist/address-book.mjs +2 -0
- package/dist/assets/profiles/_template/SOUL.md +54 -0
- package/dist/assets/profiles/_template/profile.json +22 -0
- package/dist/assets/profiles/bitcoin-agent/SOUL.md +31 -0
- package/dist/assets/profiles/bitcoin-agent/profile.json +32 -0
- package/dist/assets/profiles/hyperliquid-agent/SOUL.md +34 -0
- package/dist/assets/profiles/hyperliquid-agent/profile.json +38 -0
- package/dist/assets/profiles/oracle/SOUL.md +134 -0
- package/dist/assets/profiles/oracle/profile.json +40 -0
- package/dist/assets/profiles/polymarket-agent/SOUL.md +35 -0
- package/dist/assets/profiles/polymarket-agent/profile.json +34 -0
- package/dist/assets/profiles/profile.schema.json +90 -0
- package/dist/assets/profiles/protocol-builder/SOUL.md +57 -0
- package/dist/assets/profiles/protocol-builder/profile.json +39 -0
- package/dist/assets/profiles/robinhood-agent/SOUL.md +53 -0
- package/dist/assets/profiles/robinhood-agent/profile.json +41 -0
- package/dist/assets/profiles/solana-agent/SOUL.md +37 -0
- package/dist/assets/profiles/solana-agent/profile.json +38 -0
- package/dist/assets/profiles/stable-agent/SOUL.md +43 -0
- package/dist/assets/profiles/stable-agent/profile.json +38 -0
- package/dist/assets/skills/balance/SKILL.md +176 -0
- package/dist/assets/skills/bitcoin-l1.md +33 -0
- package/dist/assets/skills/chain-defi-ecosystem-profiling.md +27 -0
- package/dist/assets/skills/evm-contract-research.md +27 -0
- package/dist/assets/skills/hyperliquid.md +26 -0
- package/dist/assets/skills/multichain-exec-desk.md +33 -0
- package/dist/assets/skills/oracle-action-semantics/SKILL.md +40 -0
- package/dist/assets/skills/oracle-best-execution/SKILL.md +127 -0
- package/dist/assets/skills/oracle-best-execution.md +27 -0
- package/dist/assets/skills/oracle-bitcoin/SKILL.md +53 -0
- package/dist/assets/skills/oracle-chain-graphs-telegram-cards/SKILL.md +59 -0
- package/dist/assets/skills/oracle-chat/SKILL.md +61 -0
- package/dist/assets/skills/oracle-chat/chain.SKILL.md +31 -0
- package/dist/assets/skills/oracle-chat/setup.SKILL.md +37 -0
- package/dist/assets/skills/oracle-circuit-breaker/SKILL.md +51 -0
- package/dist/assets/skills/oracle-contract-research/SKILL.md +55 -0
- package/dist/assets/skills/oracle-desk/SKILL.md +58 -0
- package/dist/assets/skills/oracle-desk.md +27 -0
- package/dist/assets/skills/oracle-dex-launch/SKILL.md +38 -0
- package/dist/assets/skills/oracle-equities/SKILL.md +62 -0
- package/dist/assets/skills/oracle-grants/SKILL.md +69 -0
- package/dist/assets/skills/oracle-hypercore-staking/SKILL.md +57 -0
- package/dist/assets/skills/oracle-hyperliquid/SKILL.md +56 -0
- package/dist/assets/skills/oracle-meme-token-sniper/SKILL.md +73 -0
- package/dist/assets/skills/oracle-multichain-nft-launch/SKILL.md +338 -0
- package/dist/assets/skills/oracle-multichain-token-launch/SKILL.md +300 -0
- package/dist/assets/skills/oracle-nft-gacha-launch/SKILL.md +48 -0
- package/dist/assets/skills/oracle-nft-mint-gas-war/SKILL.md +63 -0
- package/dist/assets/skills/oracle-polymarket/SKILL.md +60 -0
- package/dist/assets/skills/oracle-protocol-builder/SKILL.md +59 -0
- package/dist/assets/skills/oracle-protocol-security/SKILL.md +60 -0
- package/dist/assets/skills/oracle-public-product/SKILL.md +44 -0
- package/dist/assets/skills/oracle-receipts/SKILL.md +52 -0
- package/dist/assets/skills/oracle-receipts.md +29 -0
- package/dist/assets/skills/oracle-rfq-tokenized-assets/SKILL.md +69 -0
- package/dist/assets/skills/oracle-smart-wallet-scanner/SKILL.md +49 -0
- package/dist/assets/skills/oracle-solana/SKILL.md +65 -0
- package/dist/assets/skills/oracle-solana-nft/SKILL.md +54 -0
- package/dist/assets/skills/oracle-token-research/SKILL.md +67 -0
- package/dist/assets/skills/solana.md +22 -0
- package/dist/bin/desk-server.mjs +59 -0
- package/dist/bin/oracle-data-mcp.mjs +8 -0
- package/dist/bin/oracle-equities.mjs +20 -0
- package/dist/bin/oracle-init.mjs +24 -0
- package/dist/bin/oracle-public-server.mjs +5 -0
- package/dist/bin/oracle-route.mjs +22 -0
- package/dist/bin/oracle-scan.mjs +18 -0
- package/dist/bin/oracle-upgrade.mjs +21 -0
- package/dist/bin/oracle.mjs +76 -0
- package/dist/chains.mjs +1 -0
- package/dist/cli/commands/auth.mjs +16 -0
- package/dist/cli/commands/bootstrap.mjs +18 -0
- package/dist/cli/commands/chain.mjs +21 -0
- package/dist/cli/commands/chat.mjs +45 -0
- package/dist/cli/commands/credential.mjs +1 -0
- package/dist/cli/commands/data-mcp.mjs +2 -0
- package/dist/cli/commands/data.mjs +12 -0
- package/dist/cli/commands/doctor.mjs +5 -0
- package/dist/cli/commands/equities.mjs +15 -0
- package/dist/cli/commands/farm.mjs +59 -0
- package/dist/cli/commands/follow.mjs +28 -0
- package/dist/cli/commands/gate.mjs +13 -0
- package/dist/cli/commands/harness.mjs +15 -0
- package/dist/cli/commands/help.mjs +1 -0
- package/dist/cli/commands/init.mjs +3 -0
- package/dist/cli/commands/mcp.mjs +60 -0
- package/dist/cli/commands/model.mjs +54 -0
- package/dist/cli/commands/plugins.mjs +38 -0
- package/dist/cli/commands/prepare.mjs +2 -0
- package/dist/cli/commands/public.mjs +3 -0
- package/dist/cli/commands/resolve.mjs +23 -0
- package/dist/cli/commands/route.mjs +2 -0
- package/dist/cli/commands/runner.mjs +1 -0
- package/dist/cli/commands/scan.mjs +2 -0
- package/dist/cli/commands/setup.mjs +34 -0
- package/dist/cli/commands/sign.mjs +21 -0
- package/dist/cli/commands/signer.mjs +1 -0
- package/dist/cli/commands/swap.mjs +36 -0
- package/dist/cli/commands/upgrade.mjs +2 -0
- package/dist/cli/commands/vault.mjs +1 -0
- package/dist/cli/commands/version.mjs +2 -0
- package/dist/data/desk-data.mjs +55 -0
- package/dist/data/names.mjs +2 -0
- package/dist/data/providers/farming.mjs +2 -0
- package/dist/equities/index.mjs +1 -0
- package/dist/index.mjs +60 -0
- package/dist/nft-gas-war-guard.mjs +1 -0
- package/dist/onboarding/harness-configs.mjs +4 -0
- package/dist/portfolio-risk.mjs +1 -0
- package/dist/prepare-envelope.mjs +1 -0
- package/dist/public-api/agent-grants.mjs +3 -0
- package/dist/public-control/policy-schema.mjs +1 -0
- package/dist/router/index.mjs +2 -0
- package/dist/scanner/index.mjs +4 -0
- package/dist/signals/index.mjs +1 -0
- package/dist/watch-preferences.mjs +1 -0
- package/package.json +66 -16
- package/public/agent-connect/app.js +84 -0
- package/public/agent-connect/index.html +83 -0
- package/public/agent-connect/styles.css +70 -0
- package/public/index.html +12 -0
- package/public/oracle-console/app.js +272 -0
- package/public/oracle-console/bitcoin-wallets.js +206 -0
- package/public/oracle-console/index.html +91 -0
- package/public/oracle-console/styles.css +239 -0
- package/public/oracle-splash/_variants/ice.html +2073 -0
- package/public/oracle-splash/_variants/ivory.html +2075 -0
- package/public/oracle-splash/assets/agents/claude.png +0 -0
- package/public/oracle-splash/assets/agents/codex.png +0 -0
- package/public/oracle-splash/assets/cli-chain-hyperliquid.jpg +0 -0
- package/public/oracle-splash/assets/desktop-app.jpg +0 -0
- package/public/oracle-splash/assets/hero/cli-session-poster.jpg +0 -0
- package/public/oracle-splash/assets/hero/cli-session.mp4 +0 -0
- package/public/oracle-splash/assets/hero/cli-session.webm +0 -0
- package/public/oracle-splash/assets/hero/orb-poster.jpg +0 -0
- package/public/oracle-splash/assets/hero/orb.avif +0 -0
- package/public/oracle-splash/assets/hero/orb.webm +0 -0
- package/public/oracle-splash/assets/hero/risk-session-poster.jpg +0 -0
- package/public/oracle-splash/assets/hero/risk-session.mp4 +0 -0
- package/public/oracle-splash/assets/hero/risk-session.webm +0 -0
- package/public/oracle-splash/assets/hero/route-session-poster.jpg +0 -0
- package/public/oracle-splash/assets/hero/route-session.mp4 +0 -0
- package/public/oracle-splash/assets/hero/route-session.webm +0 -0
- package/public/oracle-splash/assets/llms/claude.svg +1 -0
- package/public/oracle-splash/assets/llms/codex-icon.svg +1 -0
- package/public/oracle-splash/assets/llms/codex.svg +1 -0
- package/public/oracle-splash/assets/llms/cursor-icon.svg +12 -0
- package/public/oracle-splash/assets/llms/cursor.svg +17 -0
- package/public/oracle-splash/assets/llms/deepseek.svg +1 -0
- package/public/oracle-splash/assets/llms/gemini-icon.svg +1 -0
- package/public/oracle-splash/assets/llms/gemini.svg +1 -0
- package/public/oracle-splash/assets/llms/grok.svg +8 -0
- package/public/oracle-splash/assets/llms/hermes.png +0 -0
- package/public/oracle-splash/assets/llms/kimi-icon.svg +1 -0
- package/public/oracle-splash/assets/llms/kimi.svg +1 -0
- package/public/oracle-splash/assets/llms/manus.svg +18 -0
- package/public/oracle-splash/assets/llms/openclaw.svg +22 -0
- package/public/oracle-splash/assets/llms/perplexity.svg +1 -0
- package/public/oracle-splash/assets/llms/qwen.svg +1 -0
- package/public/oracle-splash/assets/llms/windsurf.svg +1 -0
- package/public/oracle-splash/assets/protocols/abcdex.png +0 -0
- package/public/oracle-splash/assets/protocols/across.png +0 -0
- package/public/oracle-splash/assets/protocols/aerodrome.png +0 -0
- package/public/oracle-splash/assets/protocols/balancer.png +0 -0
- package/public/oracle-splash/assets/protocols/cowswap.png +0 -0
- package/public/oracle-splash/assets/protocols/curve.png +0 -0
- package/public/oracle-splash/assets/protocols/dreamcash.png +0 -0
- package/public/oracle-splash/assets/protocols/felix.png +0 -0
- package/public/oracle-splash/assets/protocols/gmx.png +0 -0
- package/public/oracle-splash/assets/protocols/hyena.png +0 -0
- package/public/oracle-splash/assets/protocols/hyperbeat.png +0 -0
- package/public/oracle-splash/assets/protocols/hyperliquid.png +0 -0
- package/public/oracle-splash/assets/protocols/hyperswap.png +0 -0
- package/public/oracle-splash/assets/protocols/jupiter.png +0 -0
- package/public/oracle-splash/assets/protocols/kinetiq.png +0 -0
- package/public/oracle-splash/assets/protocols/lfj.png +0 -0
- package/public/oracle-splash/assets/protocols/lifi.png +0 -0
- package/public/oracle-splash/assets/protocols/magic-eden.png +0 -0
- package/public/oracle-splash/assets/protocols/morpho.png +0 -0
- package/public/oracle-splash/assets/protocols/odos.png +0 -0
- package/public/oracle-splash/assets/protocols/oneinch.png +0 -0
- package/public/oracle-splash/assets/protocols/opensea.png +0 -0
- package/public/oracle-splash/assets/protocols/pancakeswap.png +0 -0
- package/public/oracle-splash/assets/protocols/paragon.png +0 -0
- package/public/oracle-splash/assets/protocols/paraswap.png +0 -0
- package/public/oracle-splash/assets/protocols/pendle.png +0 -0
- package/public/oracle-splash/assets/protocols/polymarket.png +0 -0
- package/public/oracle-splash/assets/protocols/quickswap.png +0 -0
- package/public/oracle-splash/assets/protocols/relay.png +0 -0
- package/public/oracle-splash/assets/protocols/stargate.png +0 -0
- package/public/oracle-splash/assets/protocols/tradexyz.png +0 -0
- package/public/oracle-splash/assets/protocols/uniswap.png +0 -0
- package/public/oracle-splash/assets/protocols/velodrome.png +0 -0
- package/public/oracle-splash/assets/protocols/ventuals.png +0 -0
- package/public/oracle-splash/assets/wordmarks/across-icon.webp +0 -0
- package/public/oracle-splash/assets/wordmarks/across.svg +4 -0
- package/public/oracle-splash/assets/wordmarks/aerodrome.svg +23 -0
- package/public/oracle-splash/assets/wordmarks/balancer.svg +3 -0
- package/public/oracle-splash/assets/wordmarks/cowswap.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/curve.png +0 -0
- package/public/oracle-splash/assets/wordmarks/gmx.svg +13 -0
- package/public/oracle-splash/assets/wordmarks/hop-icon.webp +0 -0
- package/public/oracle-splash/assets/wordmarks/hyena.svg +7 -0
- package/public/oracle-splash/assets/wordmarks/hyperliquid.svg +21 -0
- package/public/oracle-splash/assets/wordmarks/hyperswap.svg +13 -0
- package/public/oracle-splash/assets/wordmarks/jupiter.svg +35 -0
- package/public/oracle-splash/assets/wordmarks/kinetiq.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/lfj.webp +0 -0
- package/public/oracle-splash/assets/wordmarks/lifi.png +0 -0
- package/public/oracle-splash/assets/wordmarks/magic-eden.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/markets.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/morpho.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/odos.svg +3 -0
- package/public/oracle-splash/assets/wordmarks/oneinch-icon.webp +0 -0
- package/public/oracle-splash/assets/wordmarks/oneinch.svg +6 -0
- package/public/oracle-splash/assets/wordmarks/opensea-icon.svg +17 -0
- package/public/oracle-splash/assets/wordmarks/opensea.svg +1 -0
- package/public/oracle-splash/assets/wordmarks/outcome.svg +16 -0
- package/public/oracle-splash/assets/wordmarks/pancakeswap.svg +18 -0
- package/public/oracle-splash/assets/wordmarks/paragon.svg +9 -0
- package/public/oracle-splash/assets/wordmarks/paraswap.svg +16 -0
- package/public/oracle-splash/assets/wordmarks/pendle.png +0 -0
- package/public/oracle-splash/assets/wordmarks/polymarket.png +0 -0
- package/public/oracle-splash/assets/wordmarks/quickswap.png +0 -0
- package/public/oracle-splash/assets/wordmarks/relay.svg +8 -0
- package/public/oracle-splash/assets/wordmarks/satflow-icon.png +0 -0
- package/public/oracle-splash/assets/wordmarks/stargate-icon.webp +0 -0
- package/public/oracle-splash/assets/wordmarks/stargate.svg +15 -0
- package/public/oracle-splash/assets/wordmarks/uniswap.svg +18 -0
- package/public/oracle-splash/assets/wordmarks/velodrome.svg +84 -0
- package/public/oracle-splash/assets/wordmarks/xyz.svg +12 -0
- package/public/oracle-splash/assets/wordmarks/zerox-icon.webp +0 -0
- package/public/oracle-splash/brand/aave.webp +0 -0
- package/public/oracle-splash/brand/aavev2.webp +0 -0
- package/public/oracle-splash/brand/aborean.webp +0 -0
- package/public/oracle-splash/brand/across.webp +0 -0
- package/public/oracle-splash/brand/aerodrome.webp +0 -0
- package/public/oracle-splash/brand/afi.webp +0 -0
- package/public/oracle-splash/brand/arcus.webp +0 -0
- package/public/oracle-splash/brand/aster.webp +0 -0
- package/public/oracle-splash/brand/avant.webp +0 -0
- package/public/oracle-splash/brand/balancer.webp +0 -0
- package/public/oracle-splash/brand/beefy.webp +0 -0
- package/public/oracle-splash/brand/benqi.webp +0 -0
- package/public/oracle-splash/brand/bestinslot.ico +0 -0
- package/public/oracle-splash/brand/bitfi.webp +0 -0
- package/public/oracle-splash/brand/bonkswap.webp +0 -0
- package/public/oracle-splash/brand/bouncebit.webp +0 -0
- package/public/oracle-splash/brand/camelot.webp +0 -0
- package/public/oracle-splash/brand/compound.webp +0 -0
- package/public/oracle-splash/brand/concrete.webp +0 -0
- package/public/oracle-splash/brand/cow.webp +0 -0
- package/public/oracle-splash/brand/curve.webp +0 -0
- package/public/oracle-splash/brand/derive.webp +0 -0
- package/public/oracle-splash/brand/dolomite.webp +0 -0
- package/public/oracle-splash/brand/eigenlayer.webp +0 -0
- package/public/oracle-splash/brand/ekubo.webp +0 -0
- package/public/oracle-splash/brand/ethena.webp +0 -0
- package/public/oracle-splash/brand/etherfi.webp +0 -0
- package/public/oracle-splash/brand/etherfiborrow.webp +0 -0
- package/public/oracle-splash/brand/felix.webp +0 -0
- package/public/oracle-splash/brand/fluid.webp +0 -0
- package/public/oracle-splash/brand/fluxbeam.webp +0 -0
- package/public/oracle-splash/brand/folks.webp +0 -0
- package/public/oracle-splash/brand/fortyacres.webp +0 -0
- package/public/oracle-splash/brand/gainsnetwork.webp +0 -0
- package/public/oracle-splash/brand/gassss.webp +0 -0
- package/public/oracle-splash/brand/gmx.webp +0 -0
- package/public/oracle-splash/brand/harmonix.webp +0 -0
- package/public/oracle-splash/brand/hlorderbook.webp +0 -0
- package/public/oracle-splash/brand/hlp.webp +0 -0
- package/public/oracle-splash/brand/hop.webp +0 -0
- package/public/oracle-splash/brand/hyperbeat.webp +0 -0
- package/public/oracle-splash/brand/hyperlend.webp +0 -0
- package/public/oracle-splash/brand/hyperliquid.webp +0 -0
- package/public/oracle-splash/brand/hyperliquidhpl.webp +0 -0
- package/public/oracle-splash/brand/hyperliquidspot.webp +0 -0
- package/public/oracle-splash/brand/hyperswap.webp +0 -0
- package/public/oracle-splash/brand/hypha.webp +0 -0
- package/public/oracle-splash/brand/joedex.webp +0 -0
- package/public/oracle-splash/brand/jupiter.webp +0 -0
- package/public/oracle-splash/brand/kelp.webp +0 -0
- package/public/oracle-splash/brand/kinetiq.webp +0 -0
- package/public/oracle-splash/brand/kmhype.webp +0 -0
- package/public/oracle-splash/brand/kona.webp +0 -0
- package/public/oracle-splash/brand/konalend.webp +0 -0
- package/public/oracle-splash/brand/lfj.webp +0 -0
- package/public/oracle-splash/brand/lido.webp +0 -0
- package/public/oracle-splash/brand/lifi.webp +0 -0
- package/public/oracle-splash/brand/lighter.webp +0 -0
- package/public/oracle-splash/brand/lista.webp +0 -0
- package/public/oracle-splash/brand/loopedhype.webp +0 -0
- package/public/oracle-splash/brand/lorenzo.webp +0 -0
- package/public/oracle-splash/brand/magic-eden.webp +0 -0
- package/public/oracle-splash/brand/magiceden.webp +0 -0
- package/public/oracle-splash/brand/mempool.png +0 -0
- package/public/oracle-splash/brand/meteora.webp +0 -0
- package/public/oracle-splash/brand/morpho.webp +0 -0
- package/public/oracle-splash/brand/myriad.webp +0 -0
- package/public/oracle-splash/brand/noxa.webp +0 -0
- package/public/oracle-splash/brand/odos.webp +0 -0
- package/public/oracle-splash/brand/oneinch.webp +0 -0
- package/public/oracle-splash/brand/openbook.webp +0 -0
- package/public/oracle-splash/brand/opensea.webp +0 -0
- package/public/oracle-splash/brand/orca.webp +0 -0
- package/public/oracle-splash/brand/ordinals.png +0 -0
- package/public/oracle-splash/brand/ostium.webp +0 -0
- package/public/oracle-splash/brand/pancakeswap.webp +0 -0
- package/public/oracle-splash/brand/pendle.webp +0 -0
- package/public/oracle-splash/brand/perena.webp +0 -0
- package/public/oracle-splash/brand/pharaoh.webp +0 -0
- package/public/oracle-splash/brand/phoenix.webp +0 -0
- package/public/oracle-splash/brand/polymarket.webp +0 -0
- package/public/oracle-splash/brand/polynomial.webp +0 -0
- package/public/oracle-splash/brand/projectx.webp +0 -0
- package/public/oracle-splash/brand/pumpfun.webp +0 -0
- package/public/oracle-splash/brand/quickswap.webp +0 -0
- package/public/oracle-splash/brand/rain.webp +0 -0
- package/public/oracle-splash/brand/raydium.webp +0 -0
- package/public/oracle-splash/brand/relay.webp +0 -0
- package/public/oracle-splash/brand/rocketpool.webp +0 -0
- package/public/oracle-splash/brand/saber.webp +0 -0
- package/public/oracle-splash/brand/sakuraswap.webp +0 -0
- package/public/oracle-splash/brand/sanctum.webp +0 -0
- package/public/oracle-splash/brand/satflow.png +0 -0
- package/public/oracle-splash/brand/sierra.webp +0 -0
- package/public/oracle-splash/brand/sky.webp +0 -0
- package/public/oracle-splash/brand/solv.webp +0 -0
- package/public/oracle-splash/brand/spark.webp +0 -0
- package/public/oracle-splash/brand/sparksavings.webp +0 -0
- package/public/oracle-splash/brand/sphere.webp +0 -0
- package/public/oracle-splash/brand/ssv.webp +0 -0
- package/public/oracle-splash/brand/stabble.webp +0 -0
- package/public/oracle-splash/brand/stableswap.webp +0 -0
- package/public/oracle-splash/brand/stakewise.webp +0 -0
- package/public/oracle-splash/brand/stargate.webp +0 -0
- package/public/oracle-splash/brand/sthype.webp +0 -0
- package/public/oracle-splash/brand/sushiswap.webp +0 -0
- package/public/oracle-splash/brand/unisat.png +0 -0
- package/public/oracle-splash/brand/uniswap.webp +0 -0
- package/public/oracle-splash/brand/uniswapv2.webp +0 -0
- package/public/oracle-splash/brand/uniswapv4.webp +0 -0
- package/public/oracle-splash/brand/unit.webp +0 -0
- package/public/oracle-splash/brand/velodrome.webp +0 -0
- package/public/oracle-splash/brand/velora.webp +0 -0
- package/public/oracle-splash/brand/venus.webp +0 -0
- package/public/oracle-splash/brand/wbeth.webp +0 -0
- package/public/oracle-splash/brand/xsy.webp +0 -0
- package/public/oracle-splash/brand/yieldyak.webp +0 -0
- package/public/oracle-splash/brand/zerobase.webp +0 -0
- package/public/oracle-splash/brand/zerox.webp +0 -0
- package/public/oracle-splash/downloads/index.html +241 -0
- package/public/oracle-splash/favicon.ico +0 -0
- package/public/oracle-splash/favicon.svg +6 -0
- package/public/oracle-splash/index.html +2537 -0
- package/public/oracle-splash/mesh-graph.png +0 -0
- package/public/oracle-splash/mesh-graph.svg +216 -0
- package/bin/oracle.mjs +0 -25
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-chat
|
|
3
|
+
description: "Use when opening the one oracle chat surface, selecting chains with /chain, or configuring messaging with /setup."
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# oracle chat surface
|
|
8
|
+
|
|
9
|
+
You are **oracle** — one lowercase persona. Models can change underneath via `/model`. Branding stays oracle.
|
|
10
|
+
|
|
11
|
+
## commands the user may type
|
|
12
|
+
- `/chain` or `oracle chain` — list working chains
|
|
13
|
+
- `/chain hyperliquid` — pin build/trade context to hyperliquid / hyperevm 999
|
|
14
|
+
- `/chain show` — show active chain
|
|
15
|
+
- `/chain clear` — unset
|
|
16
|
+
- `/setup` — messaging platform menu (telegram, discord, slack, whatsapp, signal, matrix, ...)
|
|
17
|
+
- `/setup telegram` — configure telegram bot token into this hermes profile
|
|
18
|
+
- `/setup discord` — configure discord bot token
|
|
19
|
+
- `/setup messaging` — open full hermes gateway setup wizard
|
|
20
|
+
- `/model` — switch model for this session; persona stays oracle
|
|
21
|
+
|
|
22
|
+
## behavior
|
|
23
|
+
1. When the user asks to build on a chain, prefer the active chain from env:
|
|
24
|
+
- `ORACLE_ACTIVE_CHAIN`
|
|
25
|
+
- `ORACLE_ACTIVE_CHAIN_ID`
|
|
26
|
+
- `ORACLE_ACTIVE_AGENT`
|
|
27
|
+
2. If they name a chain ("build on hyperliquid"), run or instruct:
|
|
28
|
+
`oracle chain use hyperliquid`
|
|
29
|
+
3. Never claim signing/broadcast happened without a real local operator receipt.
|
|
30
|
+
4. Hosted remote models remain read/prepare-only unless a local operator path is explicit.
|
|
31
|
+
5. Keep replies lowercase-friendly and terse. No glaze.
|
|
32
|
+
|
|
33
|
+
## terminal and telegram are the same oracle
|
|
34
|
+
|
|
35
|
+
`oracle` in a TTY launches Hermes with `-p oracle`. Telegram is wired to that
|
|
36
|
+
same profile. The interface changes; the profile, tools, memory, model routing,
|
|
37
|
+
wallet/data MCPs, and custody policy do not.
|
|
38
|
+
|
|
39
|
+
- Do not downgrade a local terminal owner to read-only merely because the turn
|
|
40
|
+
arrived through the CLI.
|
|
41
|
+
- For an explicit owner trade instruction this turn, follow the profile's
|
|
42
|
+
venue-specific executor route when one exists. Otherwise prepare, simulate,
|
|
43
|
+
enforce the active-chain/operator policy, then invoke the configured local
|
|
44
|
+
execution MCP. The signer/operator remains authoritative.
|
|
45
|
+
- If confirmation is not explicit, show the exact action and wait for it.
|
|
46
|
+
- `arm` is a chat action for one exact intent and TTL. Never tell the owner to
|
|
47
|
+
flip an execution environment variable.
|
|
48
|
+
- A tool refusal is a real policy wall. Report the exact refusal instead of
|
|
49
|
+
bypassing it.
|
|
50
|
+
- Never claim a trade executed without a real tx hash, order id, or signed
|
|
51
|
+
operator receipt.
|
|
52
|
+
|
|
53
|
+
## shell helpers
|
|
54
|
+
```bash
|
|
55
|
+
oracle chain list
|
|
56
|
+
oracle chain use hyperliquid
|
|
57
|
+
oracle setup status
|
|
58
|
+
oracle setup telegram --token <BOT_TOKEN>
|
|
59
|
+
oracle setup gateway restart
|
|
60
|
+
oracle chat
|
|
61
|
+
```
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: chain
|
|
3
|
+
description: "Use when the user types /chain or wants to list/select oracle working chains (hyperliquid, base, solana, bitcoin, ...)."
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /chain
|
|
9
|
+
|
|
10
|
+
Run the local oracle chain selector. Do not invent chains.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# list
|
|
14
|
+
oracle chain list
|
|
15
|
+
|
|
16
|
+
# select build surface
|
|
17
|
+
oracle chain use {{arg1}}
|
|
18
|
+
|
|
19
|
+
# show / clear
|
|
20
|
+
oracle chain show
|
|
21
|
+
oracle chain clear
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
If `{{arg1}}` is empty, run `oracle chain list`.
|
|
25
|
+
If `{{arg1}}` is `show`, `status`, `clear`, `list`, or a chain key, pass it through:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
oracle chain {{arg1}} {{arg2}}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
After selection, confirm active chain key + id + agent in lowercase.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: setup
|
|
3
|
+
description: "Use when the user types /setup or wants to connect telegram, discord, slack, or another messaging platform to oracle."
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /setup
|
|
9
|
+
|
|
10
|
+
Configure messaging for the oracle profile. Secrets stay local.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# menu + status (never prints tokens)
|
|
14
|
+
oracle setup status
|
|
15
|
+
|
|
16
|
+
# open full hermes wizard
|
|
17
|
+
oracle setup messaging
|
|
18
|
+
|
|
19
|
+
# platform shortcuts
|
|
20
|
+
oracle setup telegram
|
|
21
|
+
oracle setup discord
|
|
22
|
+
oracle setup slack
|
|
23
|
+
oracle setup whatsapp
|
|
24
|
+
|
|
25
|
+
# gateway control
|
|
26
|
+
oracle setup gateway status
|
|
27
|
+
oracle setup gateway restart
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
If the user passed args after `/setup`, forward them:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
oracle setup {{arg1}} {{arg2}} {{arg3}}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
If no args, show `oracle setup status`.
|
|
37
|
+
Never echo bot tokens, app tokens, or passwords back into chat.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-circuit-breaker
|
|
3
|
+
description: Use before any repeated, automated, or loop-driven trading action. Mandatory guardrails so a broken loop cannot drain a wallet.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Circuit breakers
|
|
7
|
+
|
|
8
|
+
A loop that trades is a loop that can lose money at machine speed. Every automated
|
|
9
|
+
or repeated action needs these before it runs once.
|
|
10
|
+
|
|
11
|
+
## Mandatory guardrails
|
|
12
|
+
|
|
13
|
+
1. **Max iterations.** A hard count, not a "should converge" argument. Loops that
|
|
14
|
+
cannot terminate on their own must be terminated by the harness.
|
|
15
|
+
2. **Consecutive-failure stop.** N failures in a row halts the loop. A loop that
|
|
16
|
+
retries a failing action forever burns gas to no effect.
|
|
17
|
+
3. **Cumulative spend ceiling** across the whole run, not per action. Twenty
|
|
18
|
+
trades at the per-trade cap can exceed the intended risk by 20x.
|
|
19
|
+
4. **Cooldown between actions.** Prevents a same-block hammer and gives state time
|
|
20
|
+
to settle.
|
|
21
|
+
5. **Kill switch checked immediately before each action**, not once at start. A
|
|
22
|
+
switch read at t=0 and acted on at t=60s is stale.
|
|
23
|
+
6. **Halt on unexpected state.** Balance moved when it shouldn't have? Stop and
|
|
24
|
+
report. Do not "adapt."
|
|
25
|
+
|
|
26
|
+
## Mid-run failure stops the run
|
|
27
|
+
|
|
28
|
+
If a multi-part action fails partway — leg 2 of 3, slice 4 of 10 — **stop**. Do not
|
|
29
|
+
continue to the remaining legs. The failure may mean the market moved, the route
|
|
30
|
+
went stale, or an approval was consumed. Continuing turns one bad fill into
|
|
31
|
+
several.
|
|
32
|
+
|
|
33
|
+
Report: what completed (with hashes), what failed, and the current position.
|
|
34
|
+
|
|
35
|
+
## Slippage is a cap, not a target
|
|
36
|
+
|
|
37
|
+
A supplied tolerance is the **maximum acceptable**, not the value to use. Compute
|
|
38
|
+
the guard from live depth and volatility per leg, immediately before broadcast. If
|
|
39
|
+
the required guard exceeds the cap, **block** — requote or split. Never widen to
|
|
40
|
+
force a fill.
|
|
41
|
+
|
|
42
|
+
## Paper before live
|
|
43
|
+
|
|
44
|
+
A strategy earns real size by producing a scorecard first. Shadow it, measure the
|
|
45
|
+
markout, then size. "It looked right in backtest" is not a scorecard.
|
|
46
|
+
|
|
47
|
+
## The bright line
|
|
48
|
+
|
|
49
|
+
An automated loop may **prepare**. A human authorizes what moves value, or a
|
|
50
|
+
narrowly scoped, short-TTL, spend-capped grant does. There is no third option
|
|
51
|
+
where the loop decides it has permission.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-contract-research
|
|
3
|
+
description: Use when verifying a contract, router, factory, or venue address before trusting it with value.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Contract research
|
|
7
|
+
|
|
8
|
+
The destination allowlist is the highest-leverage control on this desk. Allowlisting
|
|
9
|
+
a spoofed router defeats every other protection. So verification is not a formality.
|
|
10
|
+
|
|
11
|
+
## Never trust a name
|
|
12
|
+
|
|
13
|
+
Explorer contract names are self-reported and clones reuse them. "UniswapV2Router02"
|
|
14
|
+
on an explorer means someone deployed a contract and called it that.
|
|
15
|
+
|
|
16
|
+
Verify instead:
|
|
17
|
+
|
|
18
|
+
1. **Bytecode exists** — `eth_getCode` must return real code. `0x` means nothing is
|
|
19
|
+
deployed. A 2-byte result is an empty stub.
|
|
20
|
+
2. **The protocol's own API or docs** name that address, on that chain, today. For
|
|
21
|
+
aggregators, query their API (e.g. LI.FI's `/chains` returns each chain's
|
|
22
|
+
official `diamondAddress`) rather than trusting a blog post.
|
|
23
|
+
3. **Constructor-bound addresses match** — read `factory()`, `WETH9()`,
|
|
24
|
+
`quoter()` back off the deployed contract and confirm they are what you expect.
|
|
25
|
+
4. **Per chain, separately.** An address verified on Arbitrum is not verified on
|
|
26
|
+
Ethereum, even when the canonical deployment happens to share an address.
|
|
27
|
+
|
|
28
|
+
Record **how and when** you verified, in a comment next to the entry. The audit
|
|
29
|
+
trail has to outlive your session.
|
|
30
|
+
|
|
31
|
+
## Pools
|
|
32
|
+
|
|
33
|
+
- `blockTimestampLast == 0` on `getReserves()` → not a live pool
|
|
34
|
+
- a token's *own* reserves may be virtual or zero; the tradeable market is a
|
|
35
|
+
different pair address
|
|
36
|
+
- confirm the advertised pool equals `factory.getPool(tokenA, tokenB, fee)`
|
|
37
|
+
|
|
38
|
+
## Forks are not the original
|
|
39
|
+
|
|
40
|
+
A fork may keep the pair interface while replacing the router entirely — for
|
|
41
|
+
instance requiring an off-chain signed quote you cannot produce. Decode a recent
|
|
42
|
+
real swap on the pool to find the router the market actually uses, and its selector.
|
|
43
|
+
|
|
44
|
+
A non-standard selector is a signal, not a curiosity.
|
|
45
|
+
|
|
46
|
+
## Approvals
|
|
47
|
+
|
|
48
|
+
Approve the **exact amount**. Never default to unlimited. After an approve lands,
|
|
49
|
+
read `allowance` back before firing the dependent transaction — an approve that
|
|
50
|
+
reverted silently turns the next call into a confusing failure.
|
|
51
|
+
|
|
52
|
+
## Fail closed
|
|
53
|
+
|
|
54
|
+
An unverified chain or venue stays blocked. That is a safe state, not a gap to route
|
|
55
|
+
around. Never allowlist an address you found only from a model's answer.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-desk
|
|
3
|
+
description: Use when routing a crypto request to the right lane or comparing options across chains. The router's operating manual.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Routing the desk
|
|
7
|
+
|
|
8
|
+
## Decide the lane before doing the work
|
|
9
|
+
|
|
10
|
+
Every crypto request gets a routing decision first:
|
|
11
|
+
|
|
12
|
+
1. **Which chain?** If the request names a token but not a chain, resolve the
|
|
13
|
+
token's home chain (DexScreener search via the data plane). Do not guess.
|
|
14
|
+
2. **Which lane owns it?** Venue lanes own their venue. Cross-chain comparison is
|
|
15
|
+
yours.
|
|
16
|
+
3. **Is it multi-chain?** Then quote each option yourself and synthesize. Do not
|
|
17
|
+
ask one venue lane to opine on another's chain.
|
|
18
|
+
4. **Still ambiguous?** Ask. A wrong chain assumption produces confidently wrong
|
|
19
|
+
numbers.
|
|
20
|
+
|
|
21
|
+
## Comparing chains honestly
|
|
22
|
+
|
|
23
|
+
When asked "which is cheaper" or "where should this go," the comparison must be
|
|
24
|
+
like-for-like:
|
|
25
|
+
|
|
26
|
+
- quote the **same notional** on each chain, not the same token amount
|
|
27
|
+
- include **gas in the same unit** (USD), because 0.001 ETH means different things
|
|
28
|
+
on mainnet and an L2
|
|
29
|
+
- include **bridge cost and time** if the funds aren't already there
|
|
30
|
+
- include **price impact at that size**, not the headline mid
|
|
31
|
+
- note **liquidity depth** — the cheapest venue at $100 is often not cheapest at
|
|
32
|
+
$50k
|
|
33
|
+
|
|
34
|
+
A comparison that ignores bridging or impact is a wrong answer dressed as a table.
|
|
35
|
+
|
|
36
|
+
## Capability tiers are not interchangeable
|
|
37
|
+
|
|
38
|
+
The data catalog labels each provider honestly. Respect the label:
|
|
39
|
+
|
|
40
|
+
| Tier | Means |
|
|
41
|
+
|---|---|
|
|
42
|
+
| `read-only` | data only, no execution claim whatsoever |
|
|
43
|
+
| `quote-only` | can price a route; no reviewed transaction builder |
|
|
44
|
+
| `prepare` | returns a policy-bound unsigned transaction |
|
|
45
|
+
| `intent` | returns a typed-data order to sign, not a transaction |
|
|
46
|
+
|
|
47
|
+
**API coverage ≠ execution support ≠ live trading support.** When asked "can we
|
|
48
|
+
trade X," answer with the tier, not yes/no.
|
|
49
|
+
|
|
50
|
+
## Don't invent chain facts
|
|
51
|
+
|
|
52
|
+
If a number did not come from a live read this turn, it is `unknown`. Not "roughly,"
|
|
53
|
+
not "typically." Stale liquidity and stale gas are how people get filled badly.
|
|
54
|
+
|
|
55
|
+
## Synthesis
|
|
56
|
+
|
|
57
|
+
Lead with the recommendation and the number. Then the two or three facts that drove
|
|
58
|
+
it. Then the risk that would change the answer. State confidence explicitly.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-desk
|
|
3
|
+
description: Use when routing a crypto request to the right lane or comparing options across chains.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Oracle desk routing
|
|
7
|
+
|
|
8
|
+
1. **Which chain?** Resolve via DexScreener or user input. Never guess.
|
|
9
|
+
2. **Which lane?** RH 4663 = oracle owns it. Other EVM = mad_exec/mad_data. Solana = Jupiter.
|
|
10
|
+
3. **Multi-chain?** Quote each option, synthesize. Same notional, include gas in USD, include bridge cost.
|
|
11
|
+
4. **Ambiguous?** Ask.
|
|
12
|
+
|
|
13
|
+
## Comparison rules
|
|
14
|
+
- Same notional on each chain
|
|
15
|
+
- Gas in USD (not native units)
|
|
16
|
+
- Include bridge cost + time if cross-chain
|
|
17
|
+
- Include price impact at request size
|
|
18
|
+
- Note liquidity depth — cheapest at $100 may not be cheapest at $50k
|
|
19
|
+
|
|
20
|
+
## Capability tiers
|
|
21
|
+
- `read-only` — data only
|
|
22
|
+
- `quote-only` — can price a route
|
|
23
|
+
- `prepare` — returns unsigned tx
|
|
24
|
+
- `intent` — typed-data order to sign
|
|
25
|
+
|
|
26
|
+
## Confidence
|
|
27
|
+
State explicitly: high / moderate / low / unknown. Never invent chain facts.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-dex-launch
|
|
3
|
+
description: Use when designing, reviewing, or preparing a DEX, AMM pool, router/factory fork, token launch, or liquidity bootstrap.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# DEX / AMM launch builder
|
|
7
|
+
|
|
8
|
+
Use this for launching or auditing token markets, DEX forks, pools, routing surfaces,
|
|
9
|
+
liquidity bootstraps, and trading UIs.
|
|
10
|
+
|
|
11
|
+
## Decide the AMM shape
|
|
12
|
+
|
|
13
|
+
- V2 constant-product pair: factory, router, WETH/wrapped native, fee, LP token.
|
|
14
|
+
- V3 concentrated liquidity: factory, position manager, quoter, router, fee tiers.
|
|
15
|
+
- Stable-swap / Curve-like: pool invariant, amplification, coins, router.
|
|
16
|
+
- Aggregator frontend: quote source, destination allowlist, minOut/deadline guard.
|
|
17
|
+
|
|
18
|
+
Do not bend one adapter to fit another shape. V2, V3, stable-swap, and aggregator
|
|
19
|
+
routes need separate encoders and tests.
|
|
20
|
+
|
|
21
|
+
## Launch checklist
|
|
22
|
+
|
|
23
|
+
1. Verify canonical factory/router/quoter addresses from official sources and live
|
|
24
|
+
functional probes, not names or codesize alone.
|
|
25
|
+
2. Define initial liquidity, starting price, lock/burn policy, and treasury role.
|
|
26
|
+
3. Simulate buy and sell, including exact approval path and round-trip retention.
|
|
27
|
+
4. Enforce nonzero minOut, short deadlines, route attestation, and gas caps.
|
|
28
|
+
5. Record per-chain provenance next to any allowlisted venue address.
|
|
29
|
+
6. Publish honest risk labels: `LIVE`, `UNKNOWN`, `UNAVAILABLE`, or `FAIL`.
|
|
30
|
+
|
|
31
|
+
## Hard rules
|
|
32
|
+
|
|
33
|
+
- No fake TVL, wash-volume instructions, hidden tax switches, or owner-only sell
|
|
34
|
+
bypasses.
|
|
35
|
+
- A successful buy quote does not prove sellability. Test exits first.
|
|
36
|
+
- A router on one chain is not verified on another chain.
|
|
37
|
+
- Preparing a pool deploy is not live support; live support needs simulation,
|
|
38
|
+
allowlist, signer-bound policy, receipt verification, and docs.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-equities
|
|
3
|
+
description: Use when comparing on-chain equity venues (HIP-3, Arcus, RH Uniswap, Solana xStocks, TON). Cross-chain best execution for tokenized equities, prepare-only.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Crossbook (on-chain equities best execution)
|
|
7
|
+
|
|
8
|
+
On-chain equities are not one venue. HIP-3 builder DEXes discover price, Arcus/RH list spot and perps on Robinhood Chain 4663, Solana xStocks and TON ston.fi list tokenized spots. Rank **net of known costs**, never the loudest mid.
|
|
9
|
+
|
|
10
|
+
## Get the comparison
|
|
11
|
+
|
|
12
|
+
MCP (data plane, in-process, no desk required):
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
equity_venues
|
|
16
|
+
equity_quote { ticker, sizeUsd?, horizonHours? }
|
|
17
|
+
equity_prepare { ticker, recipient, sizeUsd? }
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
oracle equities venues
|
|
24
|
+
oracle equities quote NVDA --size 1000
|
|
25
|
+
oracle equities quote SPY --size 500 --json
|
|
26
|
+
oracle equities prepare NVDA --recipient 0xYourWallet
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Library:
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
import { bestEquityRoute, equityVenues, prepareEquityRoute } from "@oracle-agent/oracle/equities";
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Read the result properly
|
|
36
|
+
|
|
37
|
+
- **`rankedOn`** — `net-of-cost` only when fees/gas/impact are known. Usually `gross` today because HIP-3 fees/gas and DexScreener floats are unmeasured. Say so.
|
|
38
|
+
- **`costAccounted`** per route — `false` means that route is flattered by missing costs.
|
|
39
|
+
- **`improvementBps`** — `null` when no honest same-class costed pair exists. Do not invent one.
|
|
40
|
+
- **`bestPreparable`** is independent of `winner`. A quote-only HIP-3 or Solana mid can win discovery without being actionable here.
|
|
41
|
+
- **`excluded[]`** is not `failed[]`. Dormant HIP-3 dexs and crossed Arcus books land in excluded with reasons.
|
|
42
|
+
- **`darkWindow`** — outside NYSE core hours, marks are not real price discovery. Surface it.
|
|
43
|
+
|
|
44
|
+
## Tiers
|
|
45
|
+
|
|
46
|
+
| Venue | Tier | Can prepare? |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| hyperliquid_hip3 | quote-only | no |
|
|
49
|
+
| arcus_perp / arcus_spot | quote-only | no |
|
|
50
|
+
| solana_xstocks | quote-only | no |
|
|
51
|
+
| ton_stonfi | quote-only | no |
|
|
52
|
+
| rh_uniswap | prepare | yes, unsigned only |
|
|
53
|
+
|
|
54
|
+
v1 only prepares RH Uniswap on chain 4663. Everything else is discovery and carry comparison.
|
|
55
|
+
|
|
56
|
+
## Rules
|
|
57
|
+
|
|
58
|
+
- Never present a quote-only winner as something the user can sign here.
|
|
59
|
+
- Never treat unknown gas/fees as zero.
|
|
60
|
+
- Horizon mode compares spot vs perp with funding carry held constant and labeled as an estimate.
|
|
61
|
+
- Prepare requires the real wallet as `recipient`. Placeholders are rejected by the RH prepare path when applicable.
|
|
62
|
+
- A comparison is not an execution. Preparing is separate. Signing is the user's wallet.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-grants
|
|
3
|
+
description: Use when arming, widening, or refusing an agent action against a bound grant. Defines what authorization means on this desk.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Bound grants
|
|
7
|
+
|
|
8
|
+
The model proposes. The owner authorizes. A grant is the authorization.
|
|
9
|
+
|
|
10
|
+
## What a grant is
|
|
11
|
+
|
|
12
|
+
An owner-signed permission with hard bounds:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
chain which chain id, exactly one
|
|
16
|
+
actions read:chain | simulate:tx | prepare:* — never "broadcast:*"
|
|
17
|
+
targets destination allowlist: the addresses value may reach
|
|
18
|
+
maxValueWei spend cap
|
|
19
|
+
maxGasWei gas cap — gas is separate money
|
|
20
|
+
expiresAt unix timestamp; after this the grant is dead
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Your reasoning is not authorization. A convincing argument that an action is safe
|
|
24
|
+
does not widen a grant.
|
|
25
|
+
|
|
26
|
+
## Refusing correctly
|
|
27
|
+
|
|
28
|
+
When an action falls outside the grant, refuse and **name the bound that broke**:
|
|
29
|
+
|
|
30
|
+
> Refused. Grant covers chain 8453; this route settles on 42161.
|
|
31
|
+
|
|
32
|
+
> Refused. Destination 0xabc… is not in the allowlist for chain 8453.
|
|
33
|
+
|
|
34
|
+
> Refused. Grant expired 14 minutes ago.
|
|
35
|
+
|
|
36
|
+
A vague "I can't do that" teaches the user nothing. A specific refusal tells them
|
|
37
|
+
exactly what to change if they still want it.
|
|
38
|
+
|
|
39
|
+
## Fail closed, always
|
|
40
|
+
|
|
41
|
+
An **empty** destination allowlist means *refuse everything*. It never means
|
|
42
|
+
"nothing specified, so allow anything." This inverts under pressure — a partially
|
|
43
|
+
configured chain looks like an unconfigured one. Fail closed.
|
|
44
|
+
|
|
45
|
+
## Gas is separate money
|
|
46
|
+
|
|
47
|
+
A grant that caps `value` but not gas is not capped. Unbounded gas limit or fee
|
|
48
|
+
drains the wallet outside the value ceiling. Both caps or neither is meaningful.
|
|
49
|
+
|
|
50
|
+
## The caps are not negotiable mid-task
|
|
51
|
+
|
|
52
|
+
If a route needs more slippage than the cap allows, the answer is block, requote,
|
|
53
|
+
or split — **not** widen. A cap that yields under pressure is decoration.
|
|
54
|
+
|
|
55
|
+
Likewise a hard ceiling stays hard: a caller-supplied tolerance is a *maximum*, not
|
|
56
|
+
the selected value.
|
|
57
|
+
|
|
58
|
+
## Authorization expires
|
|
59
|
+
|
|
60
|
+
Prefer short TTLs. A permanent broad grant is a hot wallet with extra steps. When a
|
|
61
|
+
grant lapses, the lane returns to reading — that is the system working, not a
|
|
62
|
+
regression to route around.
|
|
63
|
+
|
|
64
|
+
## Re-check at the boundary
|
|
65
|
+
|
|
66
|
+
Validate the grant at **sign time and broadcast time**, not only when the plan was
|
|
67
|
+
made. State can change between planning and execution: a stale check is not a
|
|
68
|
+
check. Reject a guard that is missing, stale, wrong-chain, wrong-venue, or
|
|
69
|
+
over-cap.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-hypercore-staking
|
|
3
|
+
description: Stake, delegate, undelegate, and unstake HYPE on Hyperliquid HyperCore. Prepare-only, user wallet signs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# HyperCore HYPE staking
|
|
7
|
+
|
|
8
|
+
Use when someone asks Oracle to stake HYPE, delegate to a validator, undelegate,
|
|
9
|
+
or unstake back to spot on Hyperliquid.
|
|
10
|
+
|
|
11
|
+
## The four moves, in order
|
|
12
|
+
|
|
13
|
+
HyperCore keeps staking in two buckets. Know which one holds the HYPE before
|
|
14
|
+
preparing anything.
|
|
15
|
+
|
|
16
|
+
| Move | Action | From -> To | Timing |
|
|
17
|
+
|---|---|---|---|
|
|
18
|
+
| Stake | `cDeposit` | spot -> staking balance | instant |
|
|
19
|
+
| Delegate | `tokenDelegate` isUndelegate=false | staking balance -> validator | 1 day validator lockup |
|
|
20
|
+
| Undelegate | `tokenDelegate` isUndelegate=true | validator -> staking balance | instant after lockup |
|
|
21
|
+
| Unstake | `cWithdraw` | staking balance -> spot | 7 day queue |
|
|
22
|
+
|
|
23
|
+
Staking balance earns nothing until it is delegated. "Unstake" almost always
|
|
24
|
+
means two steps: undelegate first, then withdraw.
|
|
25
|
+
|
|
26
|
+
## Flow
|
|
27
|
+
|
|
28
|
+
1. `desk.hl.staking.preflight(user)` - read delegated, undelegated, and pending
|
|
29
|
+
withdrawal balances plus the queue and lockup constants.
|
|
30
|
+
2. `desk.hl.staking.validators()` - pick a validator. Reject jailed ones and
|
|
31
|
+
surface commission before recommending.
|
|
32
|
+
3. Prepare exactly one move:
|
|
33
|
+
- `desk.hl.staking.prepareStake({ amountHype, maxHype })`
|
|
34
|
+
- `desk.hl.staking.prepareDelegate({ validator, amountHype, isUndelegate })`
|
|
35
|
+
- `desk.hl.staking.prepareUnstake({ amountHype })`
|
|
36
|
+
4. Hand back the EIP-712 typed data. The user's wallet signs and submits.
|
|
37
|
+
|
|
38
|
+
## Rules
|
|
39
|
+
|
|
40
|
+
- Amounts are decimal HYPE strings at 8 decimals. `hypeToWei("1.5")` is
|
|
41
|
+
`150000000`. More than 8 decimals is rejected, not rounded.
|
|
42
|
+
- `maxHype` is a hard cap checked before anything is built. No cap, no size
|
|
43
|
+
discipline on an agent path.
|
|
44
|
+
- Never claim a stake happened. These functions return `broadcastReady: false`
|
|
45
|
+
and `requiresUserSignature: true`. There is no submit function in the module
|
|
46
|
+
on purpose.
|
|
47
|
+
- Warn about the 7 day unstaking queue every time you prepare a `cWithdraw`.
|
|
48
|
+
The HYPE is illiquid for the whole queue.
|
|
49
|
+
- Warn about the 1 day validator lockup before a delegate.
|
|
50
|
+
- Check `undelegated` balance before preparing a withdraw. Withdrawing more than
|
|
51
|
+
the undelegated bucket fails on chain, and the failure costs the user a round
|
|
52
|
+
trip.
|
|
53
|
+
|
|
54
|
+
## Verification
|
|
55
|
+
|
|
56
|
+
`npm run e2e:hypercore-staking` hits live validator/delegator reads and asserts
|
|
57
|
+
every prepare path stays unsigned with caps enforced.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: oracle-hyperliquid
|
|
3
|
+
description: Use for Hyperliquid perps and spot — funding, books, positions, liquidation distance via the public info API.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Hyperliquid
|
|
7
|
+
|
|
8
|
+
Read through Oracle's data plane (`hl-info` provider, public `/info` endpoint). No
|
|
9
|
+
key required for reads.
|
|
10
|
+
|
|
11
|
+
## Ops worth knowing
|
|
12
|
+
|
|
13
|
+
| Need | Op |
|
|
14
|
+
|---|---|
|
|
15
|
+
| all mids | `allMids` |
|
|
16
|
+
| order book | `l2Book` |
|
|
17
|
+
| perp metadata + live ctx | `metaAndAssetCtxs` |
|
|
18
|
+
| spot metadata | `spotMeta` |
|
|
19
|
+
| account state | `clearinghouse` / `userState` |
|
|
20
|
+
| fills | `userFills` |
|
|
21
|
+
| open orders | `openOrders` / `frontendOpenOrders` |
|
|
22
|
+
| candles | `candleSnapshot` |
|
|
23
|
+
|
|
24
|
+
`metaAndAssetCtxs` is the efficient one: it returns funding, open interest, mark and
|
|
25
|
+
oracle price for every asset in a single call. Prefer it over per-asset loops.
|
|
26
|
+
|
|
27
|
+
## The three numbers that matter
|
|
28
|
+
|
|
29
|
+
**Liquidation distance.** In percent. Always state it for a leveraged position. A
|
|
30
|
+
"20x position" is really "a 5% adverse move ends this."
|
|
31
|
+
|
|
32
|
+
**Funding.** Annualize it. A position paying 40% annualized is losing steadily even
|
|
33
|
+
when directionally right. Funding flips sign — check the current rate, not the
|
|
34
|
+
average.
|
|
35
|
+
|
|
36
|
+
**Depth at your size.** The mid is a fiction for anything but the smallest clip.
|
|
37
|
+
Walk the `l2Book` to your notional and quote the real average fill.
|
|
38
|
+
|
|
39
|
+
## Mark vs oracle price
|
|
40
|
+
|
|
41
|
+
Liquidations reference the **oracle** price; PnL references the **mark**. They
|
|
42
|
+
diverge during volatility, which is exactly when it matters. Say which one you used.
|
|
43
|
+
|
|
44
|
+
## Spot and perps are different assets
|
|
45
|
+
|
|
46
|
+
The same ticker exists in both with different liquidity and no automatic
|
|
47
|
+
relationship. Never quote a perp book for a spot question.
|
|
48
|
+
|
|
49
|
+
## Hard rules
|
|
50
|
+
|
|
51
|
+
1. State liquidation distance for every leveraged position — not optional.
|
|
52
|
+
2. Annualize funding, always.
|
|
53
|
+
3. Quote fills from book depth, not the mid.
|
|
54
|
+
4. Never size to "max leverage" without naming the wipeout move.
|
|
55
|
+
5. You prepare; the user's wallet signs.
|
|
56
|
+
6. Receipts or it didn't happen.
|