Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add token command #53

Open
dominicletz opened this issue Oct 7, 2020 · 0 comments
Open

Add token command #53

dominicletz opened this issue Oct 7, 2020 · 0 comments
Labels
enhancement New feature or request hacktoberfest hacktoberfest help wanted Extra attention is needed

Comments

@dominicletz
Copy link
Member

Example:

> diode token
[INFO] Diode Client version : v0.4.x
[INFO] Client address       : 0xxxxxxxxxxxxxxxxxxxxx 
[INFO] Fleet address        : 0xxxxxxxxxxxxxxxxxxxxx 

[INFO] Token                : DIO 
[INFO] Balance              : 10 DIO 


> diode token -send 10dio -to my_mom.diode
[INFO] Diode Client version : v0.4.x
[INFO] Client address       : 0xxxxxxxxxxxxxxxxxxxxx 
[INFO] Fleet address        : 0xxxxxxxxxxxxxxxxxxxxx 

[INFO] Sending              : 10 DIO to 0x34234289402
[INFO] Transaction Hash     : 0x45353485032 

The task is to create a new command to check token balance and to send tokens through the diode network. You must specify:

  • The amount
  • The destination
  • The unit
Unit Wei Value Wei
wei 1 wei 1
kwei 1e3 wei 1,000
mwei 1e6 wei 1,000,000
gwei 1e9 wei 1,000,000,000
microether (microdiode) 1e12 wei 1,000,000,000,000
milliether (millidiode) 1e15 wei 1,000,000,000,000,000
ether (diode) 1e18 wei 1,000,000,000,000,000,000

Optional features might be:

  • Providing a gas fee
  • Specify a ERC20 contract token instead
  • etc...
@dominicletz dominicletz added enhancement New feature or request hacktoberfest hacktoberfest help wanted Extra attention is needed labels Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant