Skip to content
The Compound Open Oracle
JavaScript TypeScript Solidity Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.build Bump up Dependencies (#31) Dec 10, 2019
.circleci Bump up Dependencies (#31) Dec 10, 2019
.github
contracts Bump up Dependencies (#31) Dec 10, 2019
poster Coburn/fix integration test (#32) Dec 13, 2019
script Bump up Dependencies (#31) Dec 10, 2019
sdk/javascript Coburn/fix integration test (#32) Dec 13, 2019
tests Coburn/fix integration test (#32) Dec 13, 2019
.gitattributes Add Git Attributes for Syntax Highlighting Dec 9, 2019
.gitignore Bump up Dependencies (#31) Dec 10, 2019
.soliumrc.json Initial commit Jun 6, 2019
Dockerfile Bump up Dependencies (#31) Dec 10, 2019
LICENSE Initial commit Jun 6, 2019
README.md README -> solc v0.5.10 and drop solcjs instructions Jun 28, 2019
docker-compose.yml
jest.config.js Add Saddle, the Best Darn Ethereum Framework. Jun 23, 2019
package.json Coburn/fix integration test (#32) Dec 13, 2019
saddle.config.js Coburn/fix integration test (#32) Dec 13, 2019
yarn.lock Coburn/fix integration test (#32) Dec 13, 2019

README.md

Open Oracle

The Open Oracle is a standard and SDK allowing reporters to sign key-value pairs (e.g. a price feed) that interested users can post to the blockchain. The system has a built-in view system that allows clients to easily share data and build aggregates (e.g. the median price from several sources).

Contracts

First, you will need solc 0.5.10 installed. Additionally, you will need TypeScript installed and will need to build the project by running tsc.

To compile everything run:

yarn run compile

To compile just the contracts run:

yarn run saddle:compile

To deploy the Open Oracle locally, you can run:

yarn run saddle:deploy --network development Oracle

Note: you will need to be running an Ethereum node locally in order for this to work. E.g., start ganache-cli in another shell.

You can add a view in MyView.sol and run (default is network=development):

yarn run saddle:deploy MyView arg1 arg2 ...

To run tests:

yarn run test

Reporter SDK

This repository contains a set of SDKs for reporters to easily sign "reporter" data in any supported languages. We currently support the following languages:

Poster

The poster is a simple application that reads from a given feed (or set of feeds) and posts...

Contributing

Note: the code in this repository is held under the MIT license. Any contributors must agree to release contributed code under this same license. Please submit an issue (or create a pull request) for any issues or contributions to the project.

You can’t perform that action at this time.