Clone the repo
git clone https://github.com/talhamalik883/lp_staking.git
Enter into the main folder.
Install dependencies
npm install
Copy 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 bscTest
npx hardhat run scripts/deployFarmer.js --network bsc