Skip to content

Card game token burn and trade-in protocol for Ergo blockchain.

License

Notifications You must be signed in to change notification settings

ldgaetano/trade-in

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trade-In

Card game token burn and trade-in protocol for Ergo blockchain.

KYA

  1. Use at your own risk.

Installing

  1. Download the latest release.
  2. Install Java 18.0.2 (JRE, JDK, or OpenJDK).
  3. If you would like to compile the jar yourself, download sbt and run sbt assembly within the repository folder.

Configurations

Setup Configuration

Node Configuration
Settings Configuration

Report Configuration

Usage

Contract Compilation

This command will compile all the ErgoScript contracts required for the protocol.

  1. Run java -jar trade-in-<version>.jar --compile

Transaction Execution

These commands will execute transactions in the setup phase of the protocol. It assumes that you have compiled the ErgoScript contracts already. You must execute these transactions in the order they appear. Please wait for confirmation before executing the next transaction.

  1. Run java -jar trade-in-<version>.jar --mint-game-tokens to execute the game token mint transaction.
  2. Run java -jar trade-in-<version>.jar --mint-game-lp-singleton to execute the game liquidity pool singleton token minting transaction.
  3. Run java -jar trade-in-<version>.jar --game-lp-creation to execute the game lp box creation transaction.
  4. Run java -jar trade-in-<version>.jar --mint-card-value-mapping-singleton to execute the card-value-mapping singleton token minting transaction.
  5. Run java -jar trade-in-<version>.jar --card-value-mapping-creation to execute the card-value-mapping box creation transaction.

Protocol Assumptions

The Player Proxy transaction is not part of this setup protocol but will instead be executed by the bot. However, this will assume that a valid game token already exists.

Reporting Issues

Please create a GitHub issue or email me.

About

Card game token burn and trade-in protocol for Ergo blockchain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published