An open API service indexing awesome lists of open source software.

https://github.com/ldgaetano/trade-in

Card game token burn and trade-in protocol for Ergo blockchain.
https://github.com/ldgaetano/trade-in

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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-.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-.jar --mint-game-tokens` to execute the game token mint transaction.
2. Run `java -jar trade-in-.jar --mint-game-lp-singleton` to execute the game liquidity pool singleton token minting transaction.
3. Run `java -jar trade-in-.jar --game-lp-creation` to execute the game lp box creation transaction.
4. Run `java -jar trade-in-.jar --mint-card-value-mapping-singleton` to execute the card-value-mapping singleton token minting transaction.
5. Run `java -jar trade-in-.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.