Skip to content
This repository has been archived by the owner on Sep 13, 2021. It is now read-only.

Integrate a simple ERC20 contract #1

Open
pepyakin opened this issue Sep 18, 2019 · 2 comments
Open

Integrate a simple ERC20 contract #1

pepyakin opened this issue Sep 18, 2019 · 2 comments
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed Rust

Comments

@pepyakin
Copy link
Contributor

pepyakin commented Sep 18, 2019

ERC20 is a contract which is simple but still executes some amount of code. Adding such a contract to the test suite would be quite valueable.

A rough list of steps would be:

  1. compile inks example ERC20, obtaining the wasm binary and ABI
  2. deploy ERC20's code using put_code operation (see examples of other contracts)
  3. instantiate an ERC20 contract instance. Here one might need to use ABI to pass the correct input data for the init_value.
  4. call the transfer function on the contract to transfer tokens to another account,
  5. check if the balances are right using the balance_of function.

Feel free to ping me if you want to take this issue, I'd gladly provide more details or help if you are stuck.

@pepyakin pepyakin added good first issue Good for newcomers help wanted Extra attention is needed labels Sep 18, 2019
@pkrasam
Copy link

pkrasam commented Oct 1, 2019

I would like give this a go, but might need some assistance in pointing in the right direction.

@pepyakin
Copy link
Contributor Author

pepyakin commented Oct 2, 2019

Hello, @pkrasam ! Unfortunately, someone else contacted me via email and asked to work on this issue.

@Stefie Stefie added the Rust label Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed Rust
Projects
None yet
Development

No branches or pull requests

3 participants