DEV Community

Marques Traylor
Marques Traylor

Posted on • Edited on

2 1

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

AWS Q Developer image

Your AI Code Assistant

Implement features, document your code, or refactor your projects.
Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay