GuapSwap CLI for the Ergo miner.
- Use at your own risk.
- Your funds could be lost and stuck in smart-contract limbo until the heat-death of the Universe, please only spend what you are willing to lose.
- We are not responsible for anything bad that happens to you while using this program, please go complain to your mommy instead.
- Download the latest release to minimize your own risk, or clone/download repository if you are adventurous.
- Install Java (JRE, JDK, or OpenJDK).
- If you would like to compile the jar yourself, download sbt and run
sbt assembly
within the repository/source folder.
- Modify the settings in the
guapswap_config.json
file - Change the
apiUrl
tohttp://127.0.0.1:9053/
if you are running your own node. This will run GuapSwap CLI in ronin mode. - Add your PK to the
userAddress
field. - Increase the
swapIntervalInHours
field if you want to increase the time between swaps when running GuapSwap CLI in automatic mode. - Inser a valid ErgoDex asset ticker, from the list of available tickers below, into the
swapAssetTicker
field. - If you so choose, feel free to modify the dex settings at your own risk.
- Run
java -jar guapswap-<version>.jar --help
to get command usage directions. Use the--help
flag after any command to get usage directions.
- Run
java -jar guapswap-<version>.jar --help
to get command usage directions. Use the--help
flag after any command to get usage directions.
- Run
java -jar guapswap-<version>.jar generate
to generate a proxy address. - Use the generated proxy address instead of your PK to receive your mining payout rewards.
- Run
java -jar guapswap-<version>.jar swap --onetime <proxy_address>
to make a onetime swap with the given proxy address.
- Run
java -jar guapswap-<version>.jar swap <proxy_address>
to run GuapSwap CLI in automatic mode. The swaps will occur according to theswapIntervalInHours
set in theguapswap_config.json
file.
- Run
java -jar guapswap-<version>.jar refund <proxy_address>
to return all funds locked at the given proxy address to your PK wallet.
- Run
java -jar guapswap-<version>.jar list <proxy_address>
to list all eUTXO boxes at the given proxy address.
Please have at least 0.1 ERG at the proxy address before deciding to initiate a swap, otherwise you will need to fund it with more ERG. This is to ensure that there are enough funds to pay for the protocol fee and all of the dex fees. The value may also need to be higher depending on the token to be swapped, since some assets require a higher minimum amount of ERG to swap for them.
generate
swap [--onetime] <proxy_address>
refund <proxy_address>
list <proxy_address>
- "SigUSD"
- "SigRSV"
- "NETA"
- "ergopad"
- "Paideia"
- "COMET"
- "Erdoge"
- "LunaDog"
If you would like to watch a walkthrough for GuapSwap CLI, consider subscribing to our YouTube channel here. If a tutorial video is not already out, then it may be added soon.
- Join our Discord channel, we welcome any and all feedback.
- Join the
#beta-testers
channel if you would like to try out pre-release versions of GuapSwap CLI. - Feel free to create a GitHub issue or fill out the Bug Report issue to let us know of any errors you encounter while using GuapSwap CLI.
If you would like to support the team and the project, please consider sending some ERG or SigUSD our way at the following address:
9gspiMa13K91MAVEhDM5iyjRePZSc8K42jJFTm8RkwyQBUPZ6BU