ANYToken stake smart contract
npm install- edit solidity source in
internaldirectory - flatten solidity source in
internaldirectory tocontractsdirectory
truffle-flattener internal/Stake.sol | sed '/SPDX-License-Identifier:/d' | sed 1i'// SPDX-License-Identifier: MIT' > contracts/Stake.soltruffle compiletruffle 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)