Coder Social home page Coder Social logo

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 [email protected]: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()

Spaceswap DeFi's Projects

assets icon assets

A comprehensive, up-to-date collection of information about several thousands (!) of crypto tokens.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.