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.
- Host: GitHub
- URL: https://github.com/bereket-g/erc20-off-chain-transaction-using-state-channel
- Owner: Bereket-G
- Created: 2021-05-03T10:56:21.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-03T12:05:56.000Z (about 4 years ago)
- Last Synced: 2025-01-22T20:31:05.622Z (4 months ago)
- Language: JavaScript
- Size: 813 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

--------------------##### 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`