Skip to content

spaceswap/spaceswap

Repository files navigation

spaceswap

Milk2TToken

BabyMilk2

ShakeToken

Interstelar

BlenderV2

TimeLock

BlackHole

ShadowStakingV2

GravityV2

NFT

FArmingV2

####ADD()

Shake & Blender

Testing

Tests for Shake & Blender implemented with waffle and yarn. For run test's without installing yarn you can use docker as followed

Prepare docker environment

#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

Inside docker container (or local if you have node and yarn installed)

#Install dependecies
yarn

#Add external dependency
yarn add @openzeppelin/contracts -D

yarn compile

yarn test

Deploy

Shake

No constructor params any more

Blender

Please specify the following parametrs when deploying:
_milkAddress - MILK2 contract address _shakeAddress - SHAKE contract address _startFromBlock - from this block Blender will start

Frontend metrics

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()