• Stars
    star
    237
  • Rank 169,885 (Top 4 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Compound Open Price Feed

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.6.6 installed. Additionally for testing, you will need TypeScript installed and will need to build the open-oracle-reporter project by running cd sdk/javascript && yarn.

To fetch dependencies run:

yarn install

To compile everything run:

yarn run compile

To deploy contracts locally, you can run:

yarn run deploy --network development OpenOraclePriceData

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 deploy MyView arg1 arg2 ...

To run tests:

yarn run test

To track deployed contracts in a saddle console:

yarn run console

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: all code contributed to this repository must be licensed under each of 1. MIT, 2. BSD-3, and 3. GPLv3. By contributing code to this repository, you accept that your code is allowed to be released under any or all of these licenses or licenses in substantially similar form to these listed above.

Please submit an issue (or create a pull request) for any issues or contributions to the project. Make sure that all test cases pass, including the integration tests in the root of this project.

More Repositories

1

compound-protocol

The Compound On-Chain Protocol
TypeScript
1,857
star
2

compound-js

A JavaScript SDK for Ethereum and the Compound Protocol.
TypeScript
196
star
3

comet

An efficient money market protocol for Ethereum and compatible chains (aka Compound III, Compound v3).
TypeScript
195
star
4

gateway

An interest-bearing stablecoin bridge between all DeFi chains.
Rust
131
star
5

compound-config

Compound Protocol Configuration for Developers
JavaScript
109
star
6

compound-money-market

Compound v1 Protocol [Copyright 2018 Compound]
JavaScript
100
star
7

palisade

Compound Web3 Front-end
Elm
95
star
8

saddle

Ethereum Smart Contract Saddle
TypeScript
78
star
9

compound-v2-subgraph

TypeScript
37
star
10

sleuth

A new way to query EVM-compatible blockchains
Rust
24
star
11

QuickBorrow

Borrow tokens simply by sending Ether
JavaScript
24
star
12

substrate

Substrate: The platform for blockchain innovators
Rust
22
star
13

autonomous-proposals

Autonomous Proposals v1.0
Solidity
16
star
14

encumber-factory

Solidity
15
star
15

compound-components

A component library for Compound's frontend properties
Elm
14
star
16

encumber_samples

A collection of examples and prototypes around the encumber interface
Solidity
13
star
17

compound-governance

Solidity
12
star
18

token-list

Compound Token List.
11
star
19

comet-extension

Comet Extensions
TypeScript
9
star
20

comet-migrator

Migrate a Position to Compound III from Compound v2, Maker or AAVE
TypeScript
6
star
21

compound-eureka

Eureka Configuration for Compound Test-nets
JavaScript
5
star
22

compound-finance.github.io

5
star
23

circlex

Circle API Client and Emulator
Elixir
5
star
24

etherscan

TypeScript
4
star
25

quest

A scenario language called Quest
JavaScript
3
star
26

polkadot

Polkadot Node Implementation
Rust
2
star
27

quark

Solidity
2
star
28

compound-protocol-lite

Experimental hardhat-based repo
Solidity
2
star
29

cip-pm

Compound Improvement Proposal PM Repository
1
star
30

comet-extension-template

Template for building a Comet Extension
Solidity
1
star
31

grandpa-bridge-gadget

A Bridge Gadget to Grandpa Finality.
Rust
1
star
32

cumulus

Substrate Parachain Framework
Rust
1
star
33

hardhat-cover

A non-invasive (uninstrumented) hardhat coverage plugin
TypeScript
1
star
34

comet-wrapper

Wrapper for Compound III Token that implements ERC-4626 and ERC-7246
Solidity
1
star