Clone the repo
git clone https://github.com/talhamalik883/lp_staking.gitEnter into the main folder.
Install dependencies
npm installCopy and rename .env.example to .env, open it and then enter your:
- The private key of the account which will send the deployment transaction
- BSCSCAN API key (get one here) Adjust the contract deployment settings! scripts/deployFarmer.js
Enter scripts/deployFarmerWithMock.js
Make sure you've set the correct input according to the comments in the file.
npx hardhat run scripts/deployFarmerWithMock.js --network bscTestnpx hardhat run scripts/deployFarmer.js --network bsc