$ curl -sO https://precompilisium.xyz/sdk/HyperCoreRead.sol $ curl -sO https://precompilisium.xyz/sdk/HyperCoreWrite.sol $ curl -sO https://precompilisium.xyz/sdk/precompilisium.js $ forge test --fork-url https://rpc.elysium.kinetiq.xyz
Foundry library
HyperCoreRead.sol holds the address constants and typed helpers (markPx, oraclePx, spotPx, bbo, position, spotBalance, l1BlockNumber and the rest) with HyperEVM's structs. HyperCoreWrite.sol encodes limit orders and cancels for sendRawAction.
viem actions
import { createPublicClient, http } from "viem";
import { markPx, bbo, position } from "https://precompilisium.xyz/sdk/precompilisium.js";
const client = createPublicClient({ transport: http("https://rpc.elysium.kinetiq.xyz") });
const px = await markPx(client, 159);Fork tests
Fork Elysium with anvil, deploy the factory and the shims at their mined addresses (the sandbox runs the same transactions), post a value as the house keeper, and call your contract. PriceBand.sol is a working example written for HyperEVM.
MCP server
Point an agent at /mcp (JSON-RPC over HTTP). Tools: list_calls, read (any L1Read call, with HyperEVM's answer next to it) and simulate_order.
{ "mcpServers": { "precompilisium": { "url": "https://precompilisium.xyz/mcp" } } }