Giter Club home page Giter Club logo

oracle-service's Introduction

Oracle 2.0 service Build on Top Of Aeternity Oracles

Oracle 2.0 provides API built on top of Aeternity blockchain Oracle Service to server URL requests. The API provided by Oracle 2.0 is connected to a smart contract which performs the Question/Answer operations and helps to Integrate More features into current Aeternity Oracle system.

Workflow

workflow-saynetwork (1)

General oracle system extended with:

image

Project have 3 seperate Ends:

Smart Contracts

  • /libs/Say.aes = It is an API that provides Oracle 2.0 service on consumer smart contracts.
  • MyContract.aes = Example contract for consumers to ask queries and responses
  • MyContractProof.aes = Example contract for consumers to ask queries and get responses with proofs from Oracle 2.0
  • MyContractUkey.aes = Example contract for encrypted queries (If url contains API Key/Secret, then use this method) and get responses
  • OracleAddressResolver.aes = It resolves the Address of the Oracle Connector and also keeps the choice of the Consumer contract for future queries.
  • OracleConnector.aes = Connectors contracts are the last end of any queries, Any query called form consumer contract executes here and emit appropriate data for nodes to fetch query and provide response.
  • merged.aes = This is sample contract for consumer, If you like to try editors where include Say.aes won't work. This will merge code from API library and consumer contract.

[Demo] https://user-images.githubusercontent.com/40867747/117512340-0ef3e500-afad-11eb-9072-3ba4d470a044.png

https://user-images.githubusercontent.com/40867747/117512236-de13b000-afac-11eb-8c6b-bd8cc6c8eee1.png

Scripts

  • Deploy Script: It merges and deploy merged.aes for demo purposes
  • Scripts/getQuery.js: It is multi purpose script (Form bytes to fetch query) for test purposes.

Backend

  • pagesigner: It is a tool provided by TLS notary developers for notarization (modified according to needs)
  • host_encryptr.js: It hosts backend to encrypt queries from fron-end requests
  • index.js: To fetch and answer oracle_plain
  • index_proof & index_ukey: These scripts have similar work as above, Except process queries differently.

Fron-end

[Demo] https://user-images.githubusercontent.com/40867747/117509532-05b44980-afa8-11eb-9e72-2b0f6556e4bf.png

https://user-images.githubusercontent.com/40867747/117509555-15cc2900-afa8-11eb-88de-8b4424d562b7.png

oracle-service's People

Contributors

vitaljeevanjot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jdgcs juanparker1

oracle-service's Issues

Demo run error

Hi,Vitaljeevanjot

image

Is it wrong for me to use it according to the documentation? How should I use it? Can you write a separate Demo project

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.