intel.onchainwatcher
ExistingWatches on-chain state changes on Polygon and Ethereum: balances, supply, contract events. Push-based.
I/O in: RPC subscriptions · out: state-delta events
Plan › Intelligence layer · Crypto decision-making
Polymarket crypto markets (BTC-above-$X, ETH staked exceeds N, token launches by date, exploit larger than $X) settle on observable on-chain truths. That means we can model their fair value directly from feeds the rest of the market is slow to integrate. This page shows the bots we already have, the new valuator bots we’re adding, and the flow that turns them into a buy/sell decision.
01 · how it fits together
External feeds feed existing sensors. Existing sensors fan into the new crypto valuators. Valuators converge on the shared combiners (fairvalueengine → edgeranker → disagreementscorer). The combined Signal goes to Strategy, then Risk, then Execution. Every action emits an AuditEnvelope with the canonical builderCode.
02 · sensors we already specced
These are already specified at docs-complete and feed the new valuators below. They are the ground truth layer — they do not decide anything by themselves.
Watches on-chain state changes on Polygon and Ethereum: balances, supply, contract events. Push-based.
I/O in: RPC subscriptions · out: state-delta events
Subscribes to oracle feeds (Chainlink, Pyth) and emits when a feed updates, deviates, or stops heart-beating.
I/O in: oracle contracts · out: oracle-update events
Tags wallets as exchange, MM, project treasury, whale, retail. Emits attributed flow events when classified wallets move funds.
I/O in: tx stream + wallet labels · out: classified flow events
Generic statistical anomaly detector on any time series (book pressure, on-chain flows, price). Emits when a series deviates beyond N-sigma.
I/O in: any time-series · out: anomaly events
Decomposes Polymarket book and trade flow into pressure, imbalance, sweep events.
I/O in: Polymarket book + fills · out: flow features
Parses each market’s resolution rules text into a structured object: source, trigger condition, resolution time, oracle path.
I/O in: market metadata · out: parsed resolution rule
Tracks each market through its resolution lifecycle. Emits when resolution conditions are partially or fully met.
I/O in: parsed rule + live data · out: resolution-progress events
03 · new bots to build
Each new bot turns sensor output and external feeds into a Signal with a real fair-value or expected-edge number. They write to the locked Signal schema; nothing about the execution path changes.
Prices “BTC above $X by date Y”-style markets. Black-Scholes on the underlying, calibrated to the exact oracle path the market settles against. Pulls spot from Pyth, IV from Deribit, time-to-resolution from the parsed rule.
I/O in: oracle path, spot, IV, time-to-resolution · out: Signal{score_type='fair_value'} with confidence interval
Links each Polymarket market to its actual on-chain oracle (Chainlink address, heartbeat, decimals, chain). Verifies the oracle is on the trusted allowlist. Required for crypto_price_fairvalue to model the right thing.
I/O in: market metadata + trusted oracle registry · out: Signal{score_type='custom', oracle_address, oracle_chain, heartbeat}
For “X exceeds N by date Y” markets (total staked ETH, DEX volume, bridge TVL, NFT mints). Reads the on-chain metric, extrapolates with confidence interval, accounts for seasonality.
I/O in: on-chain metric history + trajectory · out: Signal{score_type='fair_value', trajectory_breakdown}
For “token X launches by date Y” markets. Combines GitHub release activity, dev wallet behaviour, audit status, Discord/Twitter velocity into a logistic model.
I/O in: GitHub + wallet flow + social signals · out: Signal{score_type='fair_value', signal_breakdown}
For “hack > $X by date Y” markets. Real-time classifier ingesting Forta alerts, anomalous outflows from known protocol wallets, bridge irregularities, Twitter chatter velocity.
I/O in: Forta + outflow anomalies + social velocity · out: two Signals (active-suspected + window-of-market)
Classifies the current crypto regime: risk_on / risk_off / deleveraging / low_vol / blow_off. Feeds into Strategy sizing and Risk caps.
I/O in: funding, basis, BTC dominance, stable supply · out: Signal{score_type='custom', regime}
Maintains a calendar of crypto-specific catalysts: FOMC, ETF deadlines, mainnet launches, token unlocks, CPI. Reports time-to-next-catalyst and severity.
I/O in: external calendars + on-chain unlock schedules · out: Signal{score_type='custom', next_catalyst_at, severity}
04 · cross-vertical infrastructure
Built once. Consumed by every vertical. Same contract: Signal in, Signal out, audited every step.
Generic combiner that takes vertical-specific valuator Signals and emits the final fair-value Signal. Records source weights and a decomposition so the audit trail shows which inputs drove the number.
I/O in: all fair_value Signals · out: Signal{score_type='fair_value', decomposition}
Generic. Takes a fair_value Signal plus current book, fees, slippage estimate, and time-to-resolution; outputs an expected-edge Signal. Below a configurable threshold, no trade.
I/O in: fair_value + book + fees · out: Signal{score_type='expected_edge', breakdown}
Generic. Quantifies how much valuators disagree on the same market. High disagreement → reduce size; very high → Risk hard-block.
I/O in: all fair_value Signals · out: Signal{score_type='confidence'}
On approval, each bot gets a full spec (the same 27-field shape every other bot has), a fixture pack, and an entry in the build order. Until then, this page is the contract.