Clone this repo:
$ git clone [email protected]:mlastovski/Vault.git
Change directory to the project's root folder:
$ cd ./Vault
Install dependencies using npm:
$ npm i
- url - Alchemy or Infura etc. HTTPS API KEY
- weth - WETH smart contract address on mainnet
Check if everything is working correctly
$ npx hardhat
In order to test the contract:
$ npx hardhat test
or
$ npx hardhat coverage
This smart contract has 100% solidity-coverage.
Compile code:
$ npx hardhat compile
Deploy to the live network:
$ npx hardhat deployVault --network hardhat