Quickstart
Docs

Quickstart

Write a line, watch it evaluate live, then register it on the venue its actions run on.

Two venues

Every strategy runs on one venue, picked by its actions. Swaps and sends run on Elysium through the StrategyRegistry. Orders, closes, reductions and TWAPs run on HyperCore through your own CoreExecutor on HyperEVM. A notify webhook joins either.

Elysium actions
  1. Write and compile in the app
  2. Set limits and the HYPE escrow
  3. Sign register on Elysium
  4. Bonded keepers fire it; you can withdraw or kill any time
HyperCore actions
  1. Create your executor on HyperEVM
  2. Fund its HyperCore account with USDC
  3. Sign enable(code, limits)
  4. Allowlist the keeper you trust with setKeeper
The two paths. The compiler tells you which one a line takes.

Write and preview

  1. Open the app and type a line, for example if HYPE.funding < 0 then close HYPE.
  2. The live preview evaluates the condition against HyperCore as you type: every value it reads, ticking about four times a second, and whether it is true right now. A syntax error points at the exact column.
  3. Compile. You get the bytecode, its hash, the slots the keeper will fill and the venue. Nothing is sent yet.

Register on Elysium

  1. Connect an injected wallet. The app adds Elysium (99901) if your wallet does not have it.
  2. Set the limits: expiry, maximum fires, cooldown in seconds, maximum staleness (1 to 120 seconds) and the keeper fee per fire in HYPE.
  3. Set the escrow in HYPE. Each fire spends the swap or send amount, the keeper fee and the protocol fee from it; the app shows the cost of one fire.
  4. Sign register(code, limits) with the escrow as the value. Your strategy id comes from the Registered event.

Swaps route through the KNTQ/WHYPE Uniswap v4 pool on Elysium today. Native HYPE is wrapped when it goes in.

Run on HyperCore

HyperCore actions need your own executor, funded with USDC on HyperCore (in perp margin; HyperCore's minimum order value is 10 USDC). The executor's address is its own HyperCore account: orders it sends through CoreWriter trade the USDC you moved there, and nothing else.

  1. On HyperEVM (999), call create(yourAddress) on the ExecutorFactory. It deploys a minimal clone owned by you alone.
  2. Send USDC to the executor's address on HyperCore, and a little HYPE to the executor on HyperEVM if you pay keeper fees.
  3. Call enable(code, limits) on your executor. Limits add maxNotionalUsd, which caps the order notional plus TWAP total of each fire.
  4. Call setKeeper(keeper, true) for the keeper that fires it. The house keeper is 0x194A701A9523a6B5F0D2aCba06E41F48BF600bbB; it finds your executor and its enabled strategies on its own. The app does all four steps for you.
// HyperEVM, from your wallet
ExecutorFactory.create(you)                  -> executor
executor.enable(code, (expiry, maxFires, cooldown, maxStaleness, maxNotionalUsd, keeperFee))
executor.setKeeper(keeper, true)
// HyperCore: move USDC to the executor's address

On HyperEVM the chain checks the MARK and ORACLE values the keeper submits against the live read precompiles, in the same transaction, and order prices always come from the live mark. Other values are attested by the keeper, which is why your executor only accepts keepers you allowlist.

Manage and stop

  • Elysium: anyone can deposit to top up; only you can withdraw or kill. Both work while firing is paused.
  • HyperCore: disable(codeHash) stops a strategy; withdraw, sweep and coreAction move your funds out. Only you can call them.
  • The app lists your strategies from the chain's Registered events, with their status, escrow and every fire.