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.
- Host: GitHub
- URL: https://github.com/ldgaetano/trade-in
- Owner: ldgaetano
- License: mit
- Created: 2023-05-17T21:53:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T06:08:42.000Z (12 months ago)
- Last Synced: 2024-05-16T11:38:51.030Z (12 months ago)
- Language: Scala
- Size: 254 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ergo - Trade-In Protocol
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.