@defi-warrior/core

🎛 Core contracts for the Defi Warrior game


Keywords
defi-warrior, ethereum, core
License
CNRI-Python-GPL-Compatible
Install
npm install @defi-warrior/core@1.6.0

Documentation

Defi Warriror V2

Actions Status Version

In-depth documentation on Defi Warrior V2 is available at defiwarrior.io/.

The built contract artifacts can be browsed via unpkg.com.

Local Development

The following assumes the use of node@>=10.

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test

BUILD LIB FOR JAVA

Install library

  • Install solc
  • Install web3j

Version solidity complie

Version solidity: 0.5.16

Compile sol to java lib

Compile file sol to abi and bin file solc contracts/DefiWarrior.sol --bin --abi -o compile

Compile to java lib from abi and bin file web3j generate solidity -a ./bin/contracts/DefiWarrior.abi -b ./bin/contracts/DefiWarrior.bin -o java -p bap.jp