HarryR / HarryR/shwop

Support ERC-20, ERC-223 and ERC-721 tokens

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

To play nicely with the Ethereum token and asset economy the HTLC contract needs to support the various widely used token standards.

The core HTLC logic should be separated into it's own contract, which can then be used by frontend contracts for the specific token.

## TODO

- [ ] add `address token` to `Exchange` struct
- [ ] When `token == address(0x0)` it's Ether? Or separate contract for Ether.
- [ ] Write tests for ERC-20 token
- [ ] Python client support for the supported tokens
- [ ] Include token address in `HASH(...) = exchGUID`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the HTLC contract and understanding how Exchange data and HASH(...) = exchGUID are currently defined. Review the existing contract tests, then plan separate Ether and token-facing contracts, ERC-20 tests, and Python client support for the supported standards. Done means the listed token standards work without breaking the core HTLC flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, solidity
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.