Simple educational staking smart contract
git clone https://github.com/PavlovIvan/staking.git
cd staking
npm install hardhat
npm install
npx hardhat test
npx hardhat coverage
npx hardhat node
npx hardhat run --network localhost scripts/deploy.ts
Create in the root of your project a .env
file:
RENKEBY_URL=https://eth-rinkeby.alchemyapi.io/v2/<YOUR_ALCHEMY_APP_ID>
PRIVATE_KEY=<YOUR_BURNER_WALLET_PRIVATE_KEY>
npx hardhat run --network rinkeby scripts/deploy.ts