Monk Data Oracles
About
Monk Data Oracles are offchain nodes that index and store blockchain events and Monk-related information. These oracles serve as efficient data providers for Player Pool proposals by computing complex operations (e.g., wager race leaderboard sorting) offchain and then delivering those results onchain.
Consuming from Monk Data Oracles
Currently, proposal contracts must be whitelisted to use the Monk Data Oracles. If you'd like to whitelist your deployed proposal contract, then publish & verify the source code on BaseScan and open a support ticket in our Discord.
Inherit the
MonkOracleConsumerBase
contract
Override the
_fullfillRequest
method with Player Pool processing logic
Pass in the correct Proposal Launchpad contract address when deploying
Coming Soon: Onchain Data Query Language
Developers will be able to query from the Monk Data Oracles directly from their custom proposal contracts without requiring a whitelist or special configuration. The query system will enable developers to build more intricate and innovative Player Pool proposals.
With this capability, developers can create proposals such as:
Wager races that combine offchain and onchain wager data
Advanced lottery systems (e.g., entry via gifted bets)
Player rakeback based on site-wide loss data
…or anything else that comes to mind
Last updated