diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diodechain.
https://diode.io/download
Other
65 stars 23 forks source link

Add token command #53

Open dominicletz opened 3 years ago

dominicletz commented 3 years ago

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:

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: