Giter VIP home page Giter VIP logo

ducor-eth's Introduction

Ducor-eth: info providing oracles in Ethereum

ducor-eth's People

Contributors

alerdenisov avatar sindbag avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ducor-eth's Issues

ETH smart contract

Master contract

  1. Data Update Event data structure:
  • data type hash (256bit) โ€” unique identifier of the data provider
  • receiving contract address
  1. Method requestData()
  • should dispatch a Data Update Event for oracles to process.

Consumer contract

  1. Private method check_data_age()
  • should check whether the data is up to date or not.
  • should throw if data is antique.
  • data is considered outdated after a specified timeout in seconds or blocks. Oudated data should be updated immediately (in the same transaction).
  • data is considered antique after a specified timeout in seconds or blocks. Antique data prevents contract from processing any more transactions until it's manually updated.
  • timeout should be configurable in the contract variable.
  1. Private method request_data()
  • should request new data from the Master contract.
  • should be called automatically when the data is outdated (check_data_age() returns truthy value).
  1. Public method request_data_manually()
  • can be called only if data is outdated or antique (tested by check_data_age()).
  • calls request_data() internally.
  1. Restricted method update_data()
  • can be called only by Ducatur Oracle.
  • updates data in the contract.

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.