DEV Community

Marques Traylor
Marques Traylor

Posted on • Updated on

ShadowGas - Transfer

The ShadowGas Transfer feature allows you to move the gas tokens stored at the contract's address to the address of the contract's owner or to an address provided.


I recommend checking out my first post (below) before reading if you haven't already. It goes over the installation, setup, and the contract's Store feature.

https://dev.to/traylorboy/shadowgas-store-40m9


Transfer

<GAS_TOKEN> should be either Chi or Lgt

Empty

npx buidler empty --token <GAS_TOKEN>
Enter fullscreen mode Exit fullscreen mode

Sends Chi or Lgt from contract to possessor (contract owner)

EmptyTo

npx buidler emptyTo --token <GAS_TOKEN>
Enter fullscreen mode Exit fullscreen mode

Sends Chi or Lgt from contract to address (modify in shadow.config.js)

Examples

Empty 3 Lgt and Chi

You can modify the amount to send in shadow.config.json

npx buidler empty --token Lgt

npx buidler empty --token Chi
Enter fullscreen mode Exit fullscreen mode

Alt Text

Alt Text

Empty 3 Lgt and Chi to address

You can modify the address to send to in shadow.config.json

npx buidler emptyTo --token Lgt

npx buidler emptyTo --token Chi
Enter fullscreen mode Exit fullscreen mode

Alt Text

Alt Text

I am currently finishing up the trade feature!

The repo can be found here: https://github.com/TraylorBoy/ShadowGas

Top comments (0)