Product
Precompiles
| HyperEVM | Elysium soft precompile | Read | Last value | Age | |
|---|---|---|---|---|---|
| 0x0800 | 0x70810bE0…000800 | position Perp position | on request | ||
| 0x0801 | 0xc29f70c5…000801 | spotBalance Spot balance | on request | ||
| 0x0802 | 0xa9f54d1a…000802 | userVaultEquity Vault equity | on request | ||
| 0x0803 | 0x8Ce27817…000803 | withdrawable Withdrawable | on request | ||
| 0x0804 | 0xB38E1F18…000804 | delegations Delegations | on request | ||
| 0x0805 | 0x25e91127…000805 | delegatorSummary Delegator summary | on request | ||
| 0x0806 | 0xE68C9fBC…000806 | markPx Mark price | on request | ||
| 0x0807 | 0x76eF0814…000807 | oraclePx Oracle price | on request | ||
| 0x0808 | 0xDc2C2fCc…000808 | spotPx Spot price | on request | ||
| 0x0809 | 0x98D4F2ae…000809 | l1BlockNumber HyperCore block | on request | ||
| 0x080a | 0x2699b1Fa…00080A | perpAssetInfo Perp asset info | on request | ||
| 0x080b | 0x6F56b41F…00080b | spotInfo Spot pair info | on request | ||
| 0x080c | 0x94Ac941C…00080C | tokenInfo Token info | on request | ||
| 0x080d | 0xa263BE59…00080D | tokenSupply Token supply | on request | ||
| 0x080e | 0xE57448d9…00080e | bbo Best bid and offer | on request | ||
| 0x080f | 0x33A73Ed7…00080F | accountMarginSummary Account margin | on request | ||
| 0x0810 | 0x45fFA5e4…000810 | coreUserExists Core user exists | on request | ||
| 0x0811 | 0x64feB3D7…000811 | borrowLendUserState Lending position | on request | ||
| 0x0812 | 0x51001f40…000812 | borrowLendReserveState Lending reserve | on request | ||
| 0x0813 | 0x4DbbEf1F…000813 | position2 Perp position (any dex) | on request |
Request an update
One canonical update reads up to sixteen precompiles on HyperEVM and writes them on Elysium in a single retryable ticket.
quoting…
From Elysium, in HYPE or USDC
Contracts and wallets on Elysium call request(id, input) on the hub. The keeper picks the request up and runs the canonical update; the fee goes to the fee vault.
Fee …, paid on Elysium to the hub. The next keeper round pushes it through the canonical path.
hub.request{value: fee}(0x0807, abi.encode(uint32(0)));
// or in USDC, after approve(hub, fee)
hub.requestUsdc(0x0807, abi.encode(uint32(0)));
// read it back with its blocks
(uint64 hyperBlock, uint64 hyperTs, uint64 coreBlock, uint64 at)
= ISoftPrecompile(ORACLE_PX).meta(abi.encode(uint32(0)));