Ellariel / mosaik-eth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mosaik demo running an Ethereum node

Goals:

  • Explore Mosaik's API(compare to the FMI standard)
  • Run an Ethereum network and interface with it in Python
  • Test research ideas around decentralized grid controls and energy market

Ethereum

Dependencies: testrpc, truffle

  • $ testrpc
  • $ rm build/contracts/Market.json & truffle compile & truffle migrate --reset

Note: after deploying your contract on multiple testrpc networks you might want to remove "contracts/Market.json". The "network" field seems to accumulate network ids. The file will be rebuild/reset next time you compile and migrate.

Mosaik

Dependencies: running python 3 and requirements.txt

  • $ python demo.py
  • open your browser at 0.0.0.0:8000
  • $ c (press c and enter to continue the simulation)
  • A few jupyter notebooks allow you to explore transactions on the blockchain

About

License:GNU Lesser General Public License v2.1


Languages

Language:Python 95.0%Language:Jupyter Notebook 4.0%Language:C 0.4%Language:C++ 0.1%Language:HTML 0.1%Language:Solidity 0.1%Language:JavaScript 0.1%Language:TeX 0.0%Language:PowerShell 0.0%Language:Fortran 0.0%Language:CSS 0.0%Language:MATLAB 0.0%Language:Smarty 0.0%Language:Classic ASP 0.0%Language:XSLT 0.0%Language:Batchfile 0.0%Language:VBScript 0.0%Language:Makefile 0.0%