corewire

Core Mirror live

CoreMirror 0x12F1F78ceE4473A5D667e3A997FD98498B17B4DD holds the latest delivered value for each read, with its HyperCore block and age. Values arrive only from CoreProbe through the inbox, or from CoreWire when a request is answered. Nobody can post a value by hand, the owner included.

Read the mirror

function keyOf(address target, bytes memory data) pure returns (bytes32);
function latest(bytes32 key) view returns (bytes memory value, uint64 hcBlock, uint256 age);
function price(address precompile, uint32 index) view returns (uint64 px, uint64 hcBlock, uint256 age);
function priceFresh(address precompile, uint32 index, uint256 maxAge) view returns (uint64 px);

A key is keccak256(abi.encode(target, data)) of the read on HyperEVM. age counts seconds since the read ran on HyperEVM; a key never delivered returns type(uint256).max. priceFresh reverts with Stale() when the value is missing or older than maxAge. Prices keep the precompile's own scale: perps have 6 minus szDecimals decimals, spot has 8 minus szDecimals.

The public set

ReadPrecompileIndex
Oracle price HYPE, BTC, ETH0x…0807159, 0, 1
Mark price HYPE0x…0806159
Spot HYPE, KNTQ, MONTRA0x…0808107, 334, 1194
HyperCore block0x…0809none
Kinetiq kHYPE to HYPEStakingAccountant 0x9209648Ec9D448EF57116B73A2f081835643dc7AkHYPEToHYPE(1e18)

Freshness

The house relayer refreshes the public set every 30 minutes, and sooner when HyperCore's HYPE oracle price moves 1%. Any answered request refreshes its own keys at once. Anyone can refresh any set of keys by calling CoreProbe.refresh(reads, ticket) on HyperEVM and paying the ticket. A value is only ever replaced by a read from a later HyperEVM block.

The native switch not active yet

When Kinetiq ships its native read precompile, the owner can call proposeNativeRead(adapter) once. The adapter answers read(target, data) synchronously. Anyone can call activateNativeRead() 72 hours later. Before that, anyone can call cancelNativeRead(target, data) for a key whose bridged value landed in the last 10 minutes; if the native answer differs by more than 0.5% or fails, the proposal is cancelled for good. Once active, readNow(target, data) answers inside your own transaction.