Giter Site home page Giter Site logo

data-feed's Introduction

Cryptocompare Melonport Module: Pricefeed

This repository contains the source code of the CryptoCompare price feed smart contract designed to work as a module for the Melonport's Melon protocol.

The contract is now live on Kovan: https://kovan.etherscan.io/address/0xAA959664FE49c5734748d80d11805c3909d9B147

It continuously fetches data from the CryptoCompare WebAPIs through Oraclize to provide on-chain references of the BTC, EUR, REP, MLN exchange rates against ETH. Compared to the existing Oraclize module, you get the benefit of having the data aggregated over all the trading exchanges. It would be a lot more expensive and harder to keep up to date if you had to aggregate the data on-chain. Also, it includes price information for more pairs and is easily extendable to fetch a lot more information if needed.

Prices are being updated every 5 minutes. Our contract leverages the new Oraclize Native Proof, which enables us to sign the data provided through our WebAPIs using the HTTP Signatures specifications. The smart contract can then verify the signature over the data using the data source public key, which is stored in the contract. If the signature verifies, the data can be consumed and the prices are updated. We have done this because it allows us to guarantee the integrity of the data and confidently use it in the smart contract.

The contract was designed by following the template interface proposed by the Melonport team. Compatibility with the Melon protocol is guaranteed.

This module would not have been possible without the amazing support we received from the Oraclize & Melonport teams!

data-feed's People

Contributors

vcealicu avatar retotrinkler avatar

Watchers

James Cloos avatar hejnal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.