An open API service indexing awesome lists of open source software.

https://github.com/bereket-g/erc20-off-chain-transaction-using-state-channel

This is a standard ERC-20 token with support to settle receipt transaction between two parties off chain before committed.
https://github.com/bereket-g/erc20-off-chain-transaction-using-state-channel

Last synced: 2 months ago
JSON representation

This is a standard ERC-20 token with support to settle receipt transaction between two parties off chain before committed.

Awesome Lists containing this project

README

        

# ERC20 Off chain transaction using state channel

This is a standard ERC-20 token with support to settle receipt transaction between two parties offchain.
Both parties can change the amount of the receipt multiple times. It uses state channel technique and finally commits to the chain when signed by both parties.

## State diagram

![A test image](state_diagram.jpg)



--------------------

##### Features

- [x] Off chain update receipt
- [x] Receipt State flow
- [x] Parties sign the receipt
- [x] Save states to local storage
- [ ] Use sequence number when a contract is updated
- [ ] Keep track of receipt updated time

## Requeriments to run this repository

- [Node.js](https://nodejs.org/download/release/latest-v10.x/): `>=10.0.0`
- [Truffle](https://www.trufflesuite.com/truffle): `v5.1.25`