-
Install node on MacOS, if other operating system refer to https://hardhat.org/tutorial/setting-up-the-environment.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash nvm install 20 nvm use 20 nvm alias default 20 npm install npm --global # Upgrade npm to the latest version
-
Install dependencies
npm install
- Deploy STCore.sol
- Deploy Earn.sol using STCore's address
- Call STCore's
setEarnAddress(address _earn)
using Earn's address - Call Earn's
updateOperator(address _operator)
- Call Earn's
updateProtocolFeeReveiver(address _protocolFeeReceiver)