npm install
npx hardhat compile
npx hardhat account --address address
Returns the balance and nonce of the wallet address for all networks included in the network array.
npx hardhat unlocktimer --set minutes
Returns timestamp to set the unlock timer for the Vault contract.
Note: Must be deployed at the same nonce accross networks.
npx hardhat run scripts/deployFactory.js --network network
Note: Before deploying change the owner address in the contract to your own wallet.
Ensure you set the correct factory address and unlock time in the script file
Do NOT set the owner to msg.sender as the deployment factory address is msg.sender
npx hardhat run scripts/vaultDeploy.js -- network network
Deploys the Vault contract via the deployed Factory.
npx hardhat run scripts/vaultDeposit.js -- network network
Deposits funds to the deployed Vault contract
npx hardhat run scripts/vaultWithdraw.js -- network network
Withdraws funds from the deployed Vault contract
Goerli, Polygon Mumbai, Optimism Goerli, Arbitrum Rinkby
0x7B514ecfA2d02e085706d3EE6D63DE4a33CFc4e0