To run the tests, follow these steps. You must have at least node v10 and yarn installed.
First clone the repository:
git clone https://github.com/cryptonative-ch/aqua-smartcontracts.git
Move into the aqua-contracts working directory
cd aqua-contracts/
Install dependencies
yarn install
Building the contracts
yarn build
Create a new .env file in the main directory with the following variables:
INFURA_KEY="xxx"
PRIVATE_KEY="xxx"
ETHERSCAN_API_KEY="xxx"
$ yarn aqua-sc:bundle
$ yarn aqua-sc:publish:dev
1. Make sure that all changes you want to include in package are compiled (yarn compile
) and/or all deployments have been successful.
2. Run yarn bundle
- it will generate everything needed for package out of build
and deployments
folders into aqua-sc
.
- for dev prerelease increment dev prerelease version (0.0.0-dev.1 => 0.0.0-dev.2) or run
$ cd aqua-sc
$ npm version prerelease
- for prod release use
$ npm version [<newversion> | major | minor | patch]
- dev:
$ npm publish --tag dev
- prod:
$ npm publish