ANYToken stake smart contract
npm install
- edit solidity source in
internal
directory - flatten solidity source in
internal
directory tocontracts
directory
truffle-flattener internal/Stake.sol | sed '/SPDX-License-Identifier:/d' | sed 1i'// SPDX-License-Identifier: MIT' > contracts/Stake.sol
truffle compile
truffle migrate
- deploy
NodeStake
(assume contract address isnodestake_address
) - deploy
RewardPool
(deploy twice, specify first param of contructor tonodestake_address
) - call
setRewardPool
(call twice to set reward pool of node type 1 and 2)