Giter Site home page Giter Site logo

cleancoindev / fantom-oracle-pricefeed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fantom-foundation/fantom-oracle-pricefeed

0.0 1.0 0.0 54 KB

Solidity smart contract implementing simplified price feeds oracle for Fantom Opera network.

License: MIT License

JavaScript 21.53% Solidity 78.47%

fantom-oracle-pricefeed's Introduction

Fantom Oracle Price Feed Contract

The repository contains Solidity smart contract implementing simplified price feeds oracle for Fantom Opera network.

A deployed smart contract offers price exachange pair values indexed and identified by exchange symbols. The actual price is fed into the contract from an external off-chain data source. The backend service implementing this function is available on the foundation GitHub as the Fantom Oracle Backend.

Contract compilation

  1. Install appropriate Solidity compiler. The contract expects Solidity version to be from the branch 0.5.0. The latest available Solidity compiler of this branch is the Solidity Version 0.5.17.

  2. Compile the contract for deployment.

    solc -o ./build --optimize --optimize-runs=200 --abi --bin ./contract/PriceOracle.sol

  3. Deploy compiled binary file ./build/FantomBallot.bin into the blockchain.

  4. Use generated ABI file ./build/FantomBallot.abi to interact with the contract.

A simple deployment script supported by Web3 library is available in the deployment folder. Use NPM to install dependecies using npm install and node.js to run the deployment script. Please make sure to set internal variables to your liking.

fantom-oracle-pricefeed's People

Contributors

jirkamalek avatar

Watchers

 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.