mirror of
https://github.com/luxfi/oracle.git
synced 2026-10-30 15:23:21 +00:00
main
Modules declare go 1.27.1 and the build images follow. go fix applied the modernizers; omitzero is not applied, since it changes what the JSON says. Co-authored-by: Hanzo Dev <[email protected]>
Lux Oracle
License: AGPL-3.0-only
This repository contains the UMA-derived Optimistic Oracle and registry contracts for the Lux prediction market ecosystem.
Why AGPL?
These contracts are derived from UMA Protocol's Optimistic Oracle which is licensed under AGPL-3.0. To comply with the copyleft requirements, this code is maintained in a separate repository and imported as a library by other Lux projects.
Contracts
Prediction Oracle (contracts/prediction/)
Oracle.sol- Optimistic Oracle with assert-dispute-settle patternIOracle.sol- Oracle interface with callbacks
Registry (contracts/registry/)
Finder.sol- Service locator for ecosystem contractsStore.sol- Fee management and final feesIdentifierWhitelist.sol- Supported query identifiers
Usage
Add as a git submodule or forge dependency:
forge install luxfi/oracle
Then import:
import "@luxfi/oracle/prediction/Oracle.sol";
import "@luxfi/oracle/registry/Finder.sol";
Related
- Lux Standard (
@luxfi/contracts) - MIT-licensed contracts that use this lib - UMA Protocol - Original source of the Optimistic Oracle design
Description
Blockchain oracle which trustlessly records any verifiable data on the blockchain.
45 MiB
Languages
Go
58.7%
Solidity
41.3%