This project uses buidler.
Make sure to install required dependencies:
$ npm install
To compile the contracts:
$ npm run compile
To run the tests:
$ npm run test
To run a single test:
$ npx buidler test test/<file>
This project uses buidler and solidity-coverage to test.
$ npx buidler coverage --network coverage
This project uses buidler scripts to deploy.
In order to run the deploy scripts you need to create an .env
file, please refer to our .env.example
Tests were done on the KOVAN network in order to interact with ChainkLink contracts.
- deploy mock tokens
$ npx buidler deploy:mock-tokens --network kovan
- kovan tests AlunaToken - 0xdbd2Ab43e210587a5baE17BBd82650796C480f3a Stable - 0x834556CeC62ee21e4c9C318A22FA0d0F7DbBcD1e
- In order to deploy Aluna Governance, you need to setup
gov
settings on ./scripts/_settings.js.
$ npx buidler deploy:governance --network {kovan or mainnet}
- kovan tests Treasury - 0x6cFE3e66eFAe6C30A93a8B4eDA720FEb34d8c63b Governance - 0x0b5597B2D28407c67045040CBe8bf7c7C15b2a84
- In order to deploy Pools you need to define the pool on ./scripts/_settings.js
$ npx buidler deploy:pool --pool {your pool name} --network {kovan or mainnet}
-kovan tests ALN Pool - 0xE15C4c314b34BF72b0cB34D81492416Cf08b3960