Coder Social home page Coder Social logo

maede97 / minusminusenergy Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 4.0 69.28 MB

BETH19 - EnergyCH Challenge

License: Other

C++ 20.24% JavaScript 71.21% CSS 4.58% Python 1.25% Shell 0.33% CMake 0.09% Pug 0.47% Solidity 1.82%
blockchain energy ethereum swissenergy

minusminusenergy's Introduction

maede97 - Matthias Hüppi

Hi and welcome to my Github page!

I am a former student Msc. RW/CSE ETH Zurich living in switzerland.

Selected Projects

maede97 Github Stats

minusminusenergy's People

Contributors

maede97 avatar manuel5975p avatar marielouiseachart avatar xeratec avatar yniederm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

minusminusenergy's Issues

Voting system as reward

Implement a voting system that takes into account how many tokens a certain consumer has contributed to the total amount.

  • More contributions = more voting weight
  • some form of entry mask to bring new project ideas to the table

Bill Contract: payBill(uint toFond)

The payBill() function has a bug and reverts sometimes.

Error somewhere here:

// Check for open bill
require(this.hasBill(msg.sender),"sender needs bill");

uint tokenAmount = _tokenContract.balanceOf(msg.sender);

// Check for sufficant tokens
require(toFond <= tokenAmount,"enough tokens to give to fond");

// Check for sufficant ehter
require(msg.value+toFond <= openBills[msg.sender].amount,"not sufficient ether");

// Reduce bill with tokens
openBills[msg.sender].amount -= tokenAmount-toFond;
_tokenContract.useToken(msg.sender);

// Pay ether to issuer
//openBills[msg.sender].issuer.transfer(openBills[msg.sender].amount);
//openBills[msg.sender].amount -= msg.value;
openBills[msg.sender].amount = 0;

// Pay ether to fond
_fondContract.invest.value(toFond)(msg.sender);

Mark after "BETH Friday" Contend

  • Add Infos to Readme
    • Short List with additional features added after the hackathon (Angular Frontend, Bugfix (SmartContracts & JS Frontend)
    • BETH Firday Code Version (without Report):
      Tag alpha-1.0.0
  • Add comment to Bill SmartContract

clean up documentation

write fully documented README.md to simplify report writing after the hackathon.
Ideas:

  • what components do we have?
  • what does X do?
  • how does X do its job?

Frontend | Visualize saved energy

Implement a visualization that shows the consumer how much energy he saved.
This can be accomplished using relatable comparisons.

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.