Pre-extracted frontend ABIs are available in frontend/src/lib/contracts/abis/.
Contract Addresses
Deploy scripts print all addresses as JSON to stdout. After deployment, save this output and use it to configure your application. See Deployments for currently deployed addresses.
// Anyone can trigger (keepers do this automatically)
batchAuction.clearBatch(orderBookMarketId);
redemption.redeem(factoryMarketId, tokenAmount);
// Get full market metadata (factoryMarketId)
(bytes32 priceId, int64 strikePrice, uint256 expiryTime, uint256 creationBond,
address creator, MarketState state, bool outcomeYes, int64 settlementPrice,
uint256 orderBookMarketId) = factory.marketMeta(factoryMarketId);
// Get batch result (orderBookMarketId)
BatchResult memory result = batchAuction.getBatchResult(orderBookMarketId, batchId);
# Get price update for BTC/USD
curl "https://hermes.pyth.network/v2/updates/price/latest?ids[]=0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"