TRIPWIRE

How TRIPWIRE works

A wire is one order hung on an event. You fix one swap (what for what, how much, the worst price you accept), deposit the input into a program vault on Solana, and set a trigger. When the trigger is met, the keeper fires that one swap to your wallet. Until then the wire waits armed. You can cancel it at any time.

TRIPWIRE is not an exchange, not a bot that buys news ahead of others, not an AI that manages money and not a prediction market. The one thing that can happen to a deposit is the swap its owner set.

Trigger kinds and who judges them

Triggers are judged off chain by the project's keeper and watchers. A wrong trip still runs only the owner's own swap, inside the owner's worst price.

Odds wire

"YES on this prediction-market question is above (or below) X%." A number compared with a line, with no AI involved. The watcher reads the market's YES price from the server and the wire trips only after three consecutive reads on the far side of the line, so a single spike does not trip it. All three confirming reads come from one read path, and the receipt names that path.

Release wire

A figure from a scheduled release (a rate decision, an inflation print, an earnings figure), read from its fixed official source page and compared with a line. The source page and the extracted number go into the receipt.

Sentence wire

A yes/no sentence about the news, picked by the project and open to everyone. An AI model reads candidate articles from the fixed source list; the wire trips only when two or more different listed sources state the fact. One source can be wrong, so one is never enough. The receipt lists both sources and their times.

What the keeper can and cannot do

The keeper key can call trip on an armed wire, close expired wires (returning the input to the owner) and sweep the burn bucket. It cannot change the output asset, the amount, the destination or the worst price, and it cannot withdraw a deposit.

On every trip the program itself checks:

The admin (the project's dev wallet) can change the config (fee, limits, holding threshold, the keeper key), pause new arming and withdraw the operating bucket only. The fee has a hard cap of 1.00% in the program. A pause stops new wires only: cancel, trip and expiry closing stay open.

Worst price and minimum output

When you arm, you set a worst price: the least output you accept per one unit of input. The app turns it into a minimum output in the output token's base units, from the input that reaches the swap after the fee, rounded up. That minimum is stored in the wire on chain.

If the route cannot deliver the minimum when the trigger is met, the trip transaction fails whole and the wire stays armed and shows "waiting on price". The keeper tries again while the trigger holds. On a large headline other traders move too; the worst price is what bounds your fill.

Cancel and expiry

You can cancel an armed wire at any time. The whole input comes back to your wallet in the same transaction, with no fee, and the wire's rent comes back too.

Every wire has an expiry you choose: 30 days by default, at most 365 days. After the expiry anyone can close the wire (the keeper does it), which returns the input to the owner. Arming and cancelling cost only network fees.

Receipts and fingerprints

Every tripped wire has a public receipt: the trigger text, the sources read and the values seen, the event time, the fire time and the gap between them, the input spent, the fee, the output received against the minimum output, the effective price against the worst price, and the transaction.

The trigger's text stays off chain until its wire trips. Only its SHA-256 fingerprint is stored in the wire on chain. The receipt publishes the body, so anyone can recompute the fingerprint:

See the receipts.

Fee and its split

A wire that trips pays an execution fee of 0.30% of its input, taken in the input asset. Nothing is charged on arming, cancelling or expiry.

Limits at launch

The admin can raise the limits. The live values are read from chain below and on proof.

What is on chain and what is on the server

On chain (Solana program, readable by anyone): the config (admin, keeper key, fee, burn share, limits, holding threshold, the $TRIPWIRE mint); each wire (owner, input mint and amount, output mint, minimum output, trigger fingerprint, trigger kind, expiry); each wire's vault balance; the burn and operating buckets; and the program's events for arm, trip, cancel, expiry and burn.

On the server: the trigger bodies (private until their wire trips), the event list, the source list, the readings the watchers take, the judging of triggers, the receipts' evidence and the daily AI count. Chain state the site shows as settled (armed, tripped, balances) is read from chain.

When the keeper is down

Nothing trips while the keeper is down. Deposits stay in their vaults and cancel works, because cancel is signed by the owner alone. The keeper's state, each watcher's last read and the AI budget are shown on status.

Before mainnet

Before launch every flow runs for real, with stand-in tokens and a stand-in swap pool in place of Jupiter and the stock tokens; odds are the real market values. Records made before launch are marked pre-launch.

Third-party APIs

Live config, read from chain

Reading the live config

Source list

Sentence and release wires are judged only from these sources.

Reading the source list

Rules - TRIPWIRE