https://github.com/itshyphen/stablecoin
https://github.com/itshyphen/stablecoin
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itshyphen/stablecoin
- Owner: Itshyphen
- Created: 2022-10-11T10:58:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-20T17:14:23.000Z (over 2 years ago)
- Last Synced: 2025-02-02T10:27:56.794Z (4 months ago)
- Language: Java
- Size: 216 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stable Coin (Java)
This repository contains StableCoin score in Java and instruction on how to deploy and run tests.
## How to Run
### 1. Build the project
```
./gradlew build
```
The compiled jar bundle will be generated at `./stable-coin/build/libs/stable-coin-0.1.0.jar`### 2. Optimize the jar
`gradle-javaee-plugin` is a Gradle plugin to automate the process of generating the optimized jar bundle.
Run the `optimizedJar` task to generate the optimized jar bundle.```
./gradlew optimizedJar
```
The output jar will be located at `./stable-coin/build/libs/stable-coin-0.1.0-optimized.jar`### 3. Update gradle.properties
To use the following command, update `gradle.properties` with KeyWallet and password linked.
```
keystoreName= path to deployer wallet
keystorePass= deployer wallet password
```### 4. Deploy the optimized jar
Deploy using either of the following commands. The `build.gradle` in `stable-coin` has 4 endpoints included.
To deploy on Berlin, run the following command. To deploy on other networks, for example, change `deployToBerlin`
to `deployToLisbon`.```sh
./gradlew stable-coin:deployToBerlin
```### 5. Run unit test
```sh
./gradlew :stable-coin:test
```### 6. Run integration test
```sh
./gradlew :stable-coin:integrationTest
```