Skip to content

Sparkchain⚡ is a decentralized electricity trading architecture built with Solidity smart contracts

Notifications You must be signed in to change notification settings

James-Wirth/sparkchain

Repository files navigation

Sparkchain⚡

Screenshot 2024-12-28 at 22 00 20

Warning!

This project is under active development.

Setup

Prerequisites

  • Python (3.7+)
  • Node.js and NPM
  • Ganache (CLI or UI)
  • Solidarity compiler (solc)

Install Dependencies

Install Python packages:

pip install -r requirements.txt

Deploy Smart Contracts

Clone the repository:

git clone https://github.com/James-Wirth/Sparkchain.git
cd Sparkchain

Run the following bash script to start ganache and deploy the smart contracts (saved to deployment.json):

bash scripts/load_ganache

Technical Overview

1. Blockchain Smart Contracts:

EnergyTrading.sol: A Solidarity-based smart contract for energy trading, managing offers & bids, executing trades, and providing an Automated Market Maker (AMM) for energy pricing.

SPARKToken.sol: An ERC20-based utility token which is used on the exchange.

About

Sparkchain⚡ is a decentralized electricity trading architecture built with Solidity smart contracts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published