Oracle & VRF Integration
Redstone Pull-model Oracle
How it works
Integration — Keeper script
const { WrapperBuilder } = require("@redstone-finance/evm-connector");
const { ethers } = require("hardhat");
const contract = await ethers.getContractAt("EventlyMarkets", MARKETS_ADDRESS);
const wrapped = WrapperBuilder
.wrap(contract)
.usingDataService({
dataServiceId: "redstone-primary-prod",
uniqueSignersCount: 3,
dataFeeds: [feedId], // e.g. "ETH"
});
await wrapped.resolveMarketWithOracle(marketId, evidenceHash);Authorized signers
Encoding price feed IDs
Strike price precision
Value
Encoded
Drand BLS12-381 VRF (MegaETH Native)
Interface
Winner derivation
Admin setup
Fetching a Drand proof (off-chain)
Events
Event
When emitted
Last updated
Was this helpful?

