https://github.com/balancednetwork/balanced-java-contracts
Java contracts for Balanced
https://github.com/balancednetwork/balanced-java-contracts
Last synced: about 1 year ago
JSON representation
Java contracts for Balanced
- Host: GitHub
- URL: https://github.com/balancednetwork/balanced-java-contracts
- Owner: balancednetwork
- License: apache-2.0
- Created: 2021-09-10T04:03:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T07:32:43.000Z (over 1 year ago)
- Last Synced: 2025-02-26T08:31:46.521Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 6.53 MB
- Stars: 10
- Watchers: 8
- Forks: 15
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Balanced Java Contracts

[](https://github.com/balancednetwork/balanced-java-contracts/actions/workflows/pr-test.yml)
[](https://codecov.io/gh/balancednetwork/balanced-java-contracts)
This repository contains the smart contracts for Balanced in Java. For python contracts check [balanced-contracts](
https://github.com/balancednetwork/balanced-contracts).
## Setting up Local Environment
- Clone this repo with submodules
```shell
$ git clone --recursive git@github.com:balancednetwork/balanced-java-contracts.git
```
- Clone only submodules if you have already cloned the repo
```shell
$ git submodule update --init
```
- Run unit tests
```shell
./gradlew clean build optimizedJar
```
## Running integration tests
- Install [docker](https://docs.docker.com/engine/install/) and [docker-compose](https://docs.docker.com/compose/install/)
- Start local blockchain
```shell
$ docker-compose up -d
```
- Run integration test
```shell
$ ./gradlew integrationTest
```
## Local Deployment
After installing docker and docker-compose, start the local blockchain.
- Run deployment task
```shell
$ ./gradlew deployToLocal
```
## Discussion
Visit us on [Discord](https://discord.gg/5EzEtP4XQE) to discuss.