/balanced-java-contracts

Java contracts for Balanced

Primary LanguageJavaApache License 2.0Apache-2.0

Balanced Java Contracts

Gradle build codecov

This repository contains the smart contracts for Balanced in Java. For python contracts check balanced-contracts.

Setting up Local Environment

  • Clone this repo with submodules
  $ git clone --recursive git@github.com:balancednetwork/balanced-java-contracts.git
  • Clone only submodules if you have already cloned the repo
$ git submodule update --init
  • Run unit tests
./gradlew clean build optimizedJar

Running integration tests

$ docker-compose up -d
  • Run integration test
$ ./gradlew integrationTest

Local Deployment

After installing docker and docker-compose, start the local blockchain.

  • Run deployment task
$ ./gradlew deployToLocal

Discussion

Visit us on Discord to discuss.