Giter VIP home page Giter VIP logo

ocatak / traderes-bc-portal Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 89.09 MB

TradeRES EU Project: A pioneering Ethereum-based blockchain framework for facilitating secure and efficient energy trading. This repository houses the smart contracts for the EnergyToken and EnergyExchange platforms, enabling the production, consumption, and trading of renewable energy tokens. Explore the future of decentralized energy markets.

Home Page: https://traderes.eu

Solidity 21.83% JavaScript 11.25% Python 66.77% Shell 0.16%
blockchain crypto-tokens daap decentralized-applications energy-market energy-trading erc20 ethereum ethereum-blockchain green-energy

traderes-bc-portal's Introduction

TradeRES EU Blockchain Project

Introduction

The TradeRES EU Blockchain Project is designed to revolutionize the energy sector by enabling secure, transparent, and efficient energy trading. Utilizing Ethereum blockchain technology, this project introduces two main smart contracts: EnergyExchange and EnergyToken. These contracts facilitate the production, consumption, and trading of energy tokens within a decentralized framework, promoting renewable energy usage and accessibility.

Features

  • EnergyToken Contract: Represents a digital token that mimics units of energy. The token is ERC-20 compliant, making it easily transferable and standardized across the Ethereum network.
  • EnergyExchange Contract: Acts as the marketplace for energy tokens, allowing users to produce, consume, and trade energy tokens. It ensures secure transactions and maintains an accurate ledger of energy credits and debts.

Installation

To get started with the TradeRES EU Blockchain Project, follow these steps:

  1. Install Node.js and npm: Ensure you have Node.js and npm installed on your system. Visit Node.js for installation instructions.

  2. Install Truffle: Truffle is a development environment, testing framework, and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM). Install Truffle globally using npm:

    npm install -g truffle
  3. Clone the Repository: Clone this repository to your local machine:

    git clone https://github.com/ocatak/TradeRES-BC-Portal
  4. Install Dependencies: Navigate to the cloned repository folder and install the required npm packages:

    npm install

Usage

Compiling Contracts

Compile the smart contracts using Truffle:

truffle compile

Deploying Contracts

Deploy the contracts to an Ethereum testnet (e.g., Rinkeby) using Truffle. Ensure you have a .env file with your Ethereum node URL and private key:

truffle migrate --network rinkeby

Interacting with Contracts

Interact with the contracts through the Truffle console or by integrating them into a web application using web3.js or ethers.js.

Example of producing energy tokens:

const energyExchange = await EnergyExchange.deployed();
energyExchange.produceEnergy(100, Date.now(), /* hour */);

Contributing

Contributions to the TradeRES EU Blockchain Project are welcome! Here's how you can contribute:

  • Reporting Bugs: Open an issue describing the bug and how to reproduce it.
  • Suggesting Enhancements: Open an issue with your suggestions for improvements.
  • Pull Requests: For substantial changes, please open an issue first to discuss what you would like to change. Ensure to update tests as appropriate.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgements

  • Ethereum and the Solidity language for enabling decentralized application development.
  • The TradeRES EU project team and all contributors.

traderes-bc-portal's People

Contributors

ocatak avatar

Stargazers

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