Contracts and addresses

Solidity 0.8.30 with Foundry, in contracts/. Addresses are in contracts/deployments/10143.json (the market), 10143-indexes.json (the index) and 10143-feeds.json (the example feeds). Explorer: testnet.monadexplorer.com.

Verified on Sourcify. All 20 live contracts (the index and its four libraries, the factory, the router, the test dollar, each November series and token, and the six feeds) are verified on Sourcify with both the runtime and the creation code matching: look any address up at sourcify.dev. The list is contracts/deployments/10143-sourcify.json. The status is match rather than exact_match because the build leaves the metadata hash out of the bytecode (bytecode_hash = "none"), so Sourcify matches the code itself.

The price

ContractAddressWhat it does
AgateIndex0x419394b0Edf3d03164a7C06ea525cC1ED0e5Da36stores each writer's hourly readings, computes each day's price, final after 6 h or a countersign; the guardian's veto; the 48 h queue for changes
AgatePriceFeed (example)H100 0xC686...3D98, others in Onchaina Chainlink-style feed per GPU over the index

AgateIndex keeps its storage and cheap views; its logic runs in four linked libraries (IndexReports, IndexDays, IndexViews, IndexAdmin). The CRE writer reports through Chainlink's forwarder (in simulation, the CRE simulation forwarder).

The market

ContractAddressWhat it does
AgateFactory0xEdBE3e696944443bBCe7eb3CD04E626e9396a0b5lists a series per GPU and month and records its Kuru market
AgateRouter0x4F4C14E7421dA83C398e04e4b5CeA2543f903c9cone-call flows: Long, Short, pay me daily, close, roll, with the bound inside the call
AgateDollar (tUSD)0x3A0513b2A19EE92eb3f73Dd06EefEe4D477CbF38the test dollar, 6 decimals, 10,000 per account every 24 hours from its faucet

Each month is an AgateSeries (mint, redeem, pay me daily positions, daily sync, claim, settle) with its AgateToken:

MonthSeriesTokenKuru marketRange
H100 Nov 20260xbc28...c5770x0fbf...ce280xf245...3a9c$1.95 to $8.00
H200 Nov 20260x7b97...c9d40x082a...12770x3704...b70b$2.40 to $9.70
B200 Nov 20260x5bf2...7a520xfe7c...2c7c0x30df...fcd1$3.50 to $14.15

The live list, including months opened later: GET https://agate.elpabl0.xyz/api/v1/markets. A month's terms onchain, H100 November's range in millionths of a dollar:

Shell
cast call 0xbc28e45ede13d0bd61d78f6f3d9f6341b78fc577 \
  "terms()((address,address,address,address,bytes32,bytes32,uint32,uint32,uint8,uint64,uint32,uint64,uint32,uint32,uint32,uint8,uint8,uint8,bool))" \
  --rpc-url https://testnet-rpc.monad.xyz

Its 13th to 16th fields read 1950000, 8000000, 3990000 and 2: the floor ($1.95), the ceiling ($8.00), the fallback start value ($3.99) and the band grade (2, SEEDED). The rule: The monthly market.

Kuru (the order book)

Agate trades on Kuru V1 on Monad testnet (Agate's market maker can also quote Kuru Spot V2 books, and will once Kuru lists the November H100 token there): Router 0x7EFbE105Ca7415dE98F96622173458ac1c054630, MarginAccount 0xd029C2D98ff85D8F64799017fE00a59B1159CE02. Books use a price precision of 10^6 with a $0.01 tick, and sizes in lots of 0.0001 GPU-hour (10^4 per token) with a 1 GPU-hour minimum order (contracts/src/market/MarketTypes.sol). Agate calls Kuru through interfaces that declare only the functions it uses.

Endpoints

Every address Agate serves, in one place:

WhatAddress
The sitehttps://agate.elpabl0.xyz
The apphttps://agate.elpabl0.xyz/app
These docshttps://agate.elpabl0.xyz/docs, as markdown at /docs/raw/<slug>.md, for agents at /llms.txt and /llms-full.txt
Developer APIhttps://agate.elpabl0.xyz/api/v1 (also https://agate-1.tailf06dd7.ts.net/v1)
OpenAPIhttps://agate.elpabl0.xyz/api/v1/openapi.json
MCP serverhttps://agate-1.tailf06dd7.ts.net/mcp
OAuth discoveryhttps://agate-1.tailf06dd7.ts.net/.well-known/oauth-protected-resource/mcp, /.well-known/oauth-authorization-server
Passkey sign-in key (JWKS)https://agate-1.tailf06dd7.ts.net/.well-known/agate-jwks.json
Indexer (GraphQL, public, read-only, POST)https://agate-1.tailf06dd7.ts.net:8443/v1/graphql (fixed), and the hosted copy the app asks first, https://indexer.dev.hyperindex.xyz/<deployment>/v1/graphql (its id changes on each redeploy: Built on)
Monad testnet RPChttps://testnet-rpc.monad.xyz (chain 10143)

agate-1.tailf06dd7.ts.net is Agate's own server, published through Tailscale Funnel. The app does not proxy MCP or OAuth, so AI apps use that address.

Build and test

Shell
cd contracts
forge install --no-git foundry-rs/forge-std@v1.17.0
forge install --no-git OpenZeppelin/openzeppelin-contracts@v5.4.0
forge test                     # fork tests skip without MONAD_FORK_URL

Monad allows 128 KB of runtime code; local chains and tests match it (code_size_limit = 131072).