GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - chronicleprotocol/OracleReader-Example

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
lib
lib
 
 
script
script
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
README.md
README.md
 
 
foundry.toml
foundry.toml
 
 

Repository files navigation

Oracle Reader Example

Chronicle Protocol's oracles bridge the gap between blockchains and real-world by reliably providing up-to-date verifiable data onchain.

This repository contains an example Solidity contract showing how Chronicle Protocol's oracle contract, Scribe, can be read.

The OracleReader Contract

The OracleReader contract in src/OracleReader.sol reads the current value and its respective age provided by the Chronicle Protocol ETH/USD oracle on the Sepolia testnet.

You can find a list of supported oracles here.

Every Chronicle Protocol implements the IChronicle interface, a standard interface for reading oracles.

Via OracleReader's public read() function everyone is able to read the oracle's current value and age from the contract.

Deployment

To deploy the OracleReader via Foundry take a look at the script in script/OracleReaderScript.s.sol.

In order to deploy, you'll need to have a Sepolia RPC URL and a private key with some ETH.

$ forge script --broadcast --rpc-url <RPC_URL> --private-key <PRIVATE_KEY> --sig $(cast calldata "deploy()") -vvv script/OracleReader.s.sol:OracleReaderScript

Note to not forget to substitute <RPC_URL> and <PRIVATE_KEY> with your respective values.

About

No description, website, or topics provided.

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.