Skip to content

OmenOracle/contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Integration Examples

Ready-to-use smart contract examples for integrating with the BON Oracle.

⚠️ This is a blockchain oracle service. Integration is via smart contract ONLY. All questions must be asked through the smart contract (0.01 BNB fee per question).


πŸ“ What's Included

Smart Contract Examples

All examples are in /examples/contracts/:

  • IAIOracle.sol - Oracle interface (copy this to your project)
  • SimplePredictionMarket.sol - Full prediction market with betting
  • FlightInsurance.sol - Automated flight insurance claims
  • PriceConsumer.sol - Simple price oracle usage pattern

🎯 Quick Start

1. Copy the interface to your project:

2. Import and use in your contract:

3. Deploy & test on BNB Testnet!


πŸ’‘ Example Use Cases

Example File Description
Prediction Market SimplePredictionMarket.sol Users bet YES/NO on any question, oracle resolves the outcome
Flight Insurance FlightInsurance.sol Automated insurance payouts based on flight delays
Price Oracle PriceConsumer.sol Request real-time prices for any asset

Happy Building! πŸŽ‰

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published