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

https://github.com/itshyphen/stablecoin


https://github.com/itshyphen/stablecoin

Last synced: about 2 months ago
JSON representation

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
```