Skip to content

NerFoundation/stake

Repository files navigation

Deployment Steps

In the 2_deploy_contracts.js, you need to pass the bonus rate as second argument to the deployment of Stake contract and the token contract as first argument

module.exports = (deployer, networks, accounts) => {
    deployer.deploy(Token).then(() => {
        return deployer.deploy(Stake, Token.address, 10);
    })
}

Here, the bonus rate is set as 10 tokens and the token is a dummy token

Deployment to Local Development Network

Run this command in the root folder project

truffle migrate --network development

Deployment to Ropsten Network

Run this command in the root folder project

truffle migrate --network ropsten

Deployment to Main Nerwork

Run this command in the root folder project

truffle migrate --network mainnet

Running tests on local TestRPC

Run Ganache and make sure it's set to port 8545

Run this command in the root folder project

truffle test --network development

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published