Git Product home page Git Product logo

bond's Introduction

Bond: An energy data oracle for blockchain smart contracts

Service designed to be a general oracle for reading, parsing and writting energy industry related data to and from the blockchain.

Right now it logs carbon emission and generated power data into certificate of originsmart-contracts.

Deploying on hardware

For a decentralized network infrastructure it is fundamental that every power generating site runs and maintains its own energyweb client. This gives all the participants the ability to be independent and part of the consensus regarding the state of the smart contracts it runs.

To facilitate the deployment and updating of these devices we use a continuous integration and fleet management platform. Right now only Artik 710 is supported.

Requirements

  1. Artik710 development kit board. Buy it on Mouser
  2. Ask EWF Ramp-up team for OS images.
  3. Burn the image using dd or etcher.
  4. Follow the official guide to update the MMC and boot from it.

Running on local environment

  1. Energyweb client installed and running.
  2. Python 3 and dependencies installed. Follow the guide bellow.
  3. With the virtual environment activated run python test.py on the root folder of this repo.

Installing dependencies

Install python 3 and libraries from the os package manager. This is an example using apt but different ones might apply.

sudo apt-get install python3 python-dev python3-dev \
build-essential libssl-dev libffi-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
python-pip -y

Update python 3 in case it is previously installed nut not in the latest version.

sudo apt-get upgrade python3 -y

Upgrade python package manager.

pip install --upgrade pip

Install Virtual Environment python package. Might ask for super user permissions to install it globally.

pip install virtualenv

Create the virtual environment files in the current folder. Best on the root folder of this repo.

virtualenv -p python3 venv

After the virtual environment is created, its files are inside venv folder and are activated via a shell script. Run the command on the same folder the latest step was run.

source venv/bin/activate

Install the project python dependencies listed on requirements.txt into the current virtual environment.

pip install -r requirements.txt

bond's People

Contributors

cerealkill avatar ricmm avatar

Watchers

 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.