Giter Site home page Giter Site logo

guapswap

GuapSwap CLI for the Ergo miner.

KYA

  1. Use at your own risk.
  2. 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.
  3. We are not responsible for anything bad that happens to you while using this program, please go complain to your mommy instead.

Usage

Usage Steps

Installing

  1. Download the latest release to minimize your own risk, or clone/download repository if you are adventurous.
  2. Install Java (JRE, JDK, or OpenJDK).
  3. If you would like to compile the jar yourself, download sbt and run sbt assembly within the repository/source folder.

Configurations

  1. Modify the settings in the guapswap_config.json file
  2. Change the apiUrl to http://127.0.0.1:9053/ if you are running your own node. This will run GuapSwap CLI in ronin mode.
  3. Add your PK to the userAddress field.
  4. Increase the swapIntervalInHours field if you want to increase the time between swaps when running GuapSwap CLI in automatic mode.
  5. Inser a valid ErgoDex asset ticker, from the list of available tickers below, into the swapAssetTicker field.
  6. If you so choose, feel free to modify the dex settings at your own risk.
  7. Run java -jar guapswap-<version>.jar --help to get command usage directions. Use the --help flag after any command to get usage directions.

GuapSwap CLI Command Usage

  1. Run java -jar guapswap-<version>.jar --help to get command usage directions. Use the --help flag after any command to get usage directions.
Generate Proxy Address
  1. Run java -jar guapswap-<version>.jar generate to generate a proxy address.
  2. Use the generated proxy address instead of your PK to receive your mining payout rewards.
Onetime Swap
  1. Run java -jar guapswap-<version>.jar swap --onetime <proxy_address> to make a onetime swap with the given proxy address.
Automatic Swap
  1. Run java -jar guapswap-<version>.jar swap <proxy_address> to run GuapSwap CLI in automatic mode. The swaps will occur according to the swapIntervalInHours set in the guapswap_config.json file.
Refund
  1. Run java -jar guapswap-<version>.jar refund <proxy_address> to return all funds locked at the given proxy address to your PK wallet.
List
  1. Run java -jar guapswap-<version>.jar list <proxy_address> to list all eUTXO boxes at the given proxy address.

Usage WARNING

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.

Available Commands

  1. generate
  2. swap [--onetime] <proxy_address>
  3. refund <proxy_address>
  4. list <proxy_address>

Available Swap Token Tickers

  1. "SigUSD"
  2. "SigRSV"
  3. "NETA"
  4. "ergopad"
  5. "Paideia"
  6. "COMET"
  7. "Erdoge"
  8. "LunaDog"

Pool Compatibility

Known Compatible Pools

Known Incompatible Pools (i.e. they do not accept P2S proxy addresses)

Walkthrough

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.

Reporting Issues

  1. Join our Discord channel, we welcome any and all feedback.
  2. Join the #beta-testers channel if you would like to try out pre-release versions of GuapSwap CLI.
  3. 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.

Support

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

GuapSwap's Projects

ergo-dex icon ergo-dex

Smart contracts and specification of the AMM protocol on top of the Ergo blockchain

ergo-dex-backend icon ergo-dex-backend

Spectrum Finance backend services including AMM bots and OrderBook matcher

guapswap-ergo-node icon guapswap-ergo-node

Dockerized Ergo node for easy setup. Sync from genesis because you are a miner!

payday icon payday

Payday CLI to retrieve GuapSwap protocol fee funds.

sigma-builders icon sigma-builders

Easy to use library for creating protocol abstractions interacting with Ergo blockchain.

tui-scala icon tui-scala

Beautiful Text-based User Interfaces for Scala

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.