####ADD()
Tests for Shake & Blender
implemented with waffle
and yarn
. For run test's without installing yarn you can use docker
as followed
#clone git repo
git clone git@github.com:spaceswap/spaceswap.git
#change folder
cd <project_folder>
#Copy MILK2 and dependecies on ./contracts/autotest folder
cp ./contracts/MilkyWayToken.sol ./contracts/autotest/MilkyWayToken.sol
cp ./contracts/GovernanceContract.sol ./contracts/autotest/GovernanceContract.sol
#run docker container with node and mapped sources
docker run -it -v $(pwd):/app node:12 bash
cd /app
#Install dependecies
yarn
#Add external dependency
yarn add @openzeppelin/contracts -D
yarn compile
yarn test
No constructor params any more
Please specify the following parametrs when deploying:
_milkAddress
- MILK2 contract address
_shakeAddress
- SHAKE contract address
_startFromBlock
- from this block Blender will start
Max Supply - ShakeToken.MAX_TOTAL_SUPPLY()
Current Supply - ShakeToken.totalSupply()
Available to mint - ShakeToken.MAX_TOTAL_SUPPLY()
- ShakeToken.totalSupply()
Total burned - ShakeToken.totalBurned()
Total minted - ShakeToken.totalMinted()
Current price - Blender.currShakePrice()
Price increment - Blender.SHAKE_PRICE_STEP()