Giter Club home page Giter Club logo

oracle-lightnode's Introduction

LibreBank Logo

LibreBank Oracle Lightnode

LibreBank Lightnode - oracle node used to fetch and push ETH rates to LibreBank emission & exchanger contracts.

Requirements

  1. NodeJS v. 7.4+ (https://nodejs.org/en/)
  2. Build essentials package to your OS (needed for building some deps) For Debian-based linux you need intall build-essential package by apt. For Windows: latest Visual Studio C++ compiler.
  3. Any Ethereum node with WebSocket supports. We prefer geth (https://github.com/ethereum/go-ethereum/wiki/geth).
  4. Some Ether used to push data to smart-contract.
  5. MongoDB 3.0.12+

Getting Started

  1. Simple clone this repo and install deps using npm
git clone --recursive https://github.com/LibreCash/oracle-lightnode
cd oracle-lightnode
npm install
  1. Configurate. Change configuration params at config/default.json file.

  2. Run ETH node in Websocket RPC mode. For geth you can use this command

For Mainnet:

geth --ws --wsapi db,eth,net,web3,personal --wsorigins *

For Rinkeby testnet:

geth --rinkeby --ws --wsapi db,eth,net,web3,personal --wsorigins *
  1. Run node

Run node

LightNode startup

node cli/lightnode-cli.js

Configuring

After installation procedure you need to configure some parameters in config/config.json.

Documentation

Project documentation located at docs subfolder.

Contiributing

If you want to help us get better - create issue and PR.

License

Code released under the GPL licence.

oracle-lightnode's People

Contributors

decodedbrain avatar neo-crypt avatar

Watchers

James Cloos avatar  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.