Quickstart
1. Pick the reads
Open the Builder and select the HyperCore data your contract needs, for example oraclePx and bbo. Fill the arguments (perp index 0 is BTC, 1 is ETH, 159 is HYPE).
2. Copy the library
The Builder writes ProtosRead.sol, a library with the same function names and structs as HyperEVM's L1Read, pointing at the soft precompile addresses.
uint64 px = ProtosRead.oraclePx(0); // BTC, 6 - szDecimals = 1 decimal
ProtosRead.Bbo memory b = ProtosRead.bbo(0); // best bid and ask3. Check freshness
require(ISoftPrecompile(ProtosRead.ORACLE_PX).isFresh(abi.encode(uint32(0)), 60), "stale");4. Test on a fork
The generated Foundry test forks Elysium mainnet. Where a soft precompile is not deployed yet, it installs the exact bytes HyperEVM returned when the test was generated, with vm.etch and vm.mockCall, so your assertions run on real data.
forge test --match-contract ProtosReadForkTest -vv5. Keep it fresh
Call request(id, input) on the hub from Elysium (HYPE or USDC), or call push on the reader from HyperEVM and pay the ticket yourself. See Canonical path.