Ocean Storm is a parametric insurance solution ☂ for ships 🚢 going through rough seas 🌊 based on Blockchain 🚀 i.e. hazzle-free, automatic pay-outs in case of adverse weather events.
Install hardhat
npm install --save-dev hardhat
Export your private key and get Alchemy API key on Kovan
(testnet with faucet system currently working and compatible with Keepers).
Create .env
file with the following properties:
ALCHEMY_API_KEY = XXXXXXXXXX
PRIVATE_KEY = XXXXXXXX
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
npx hardhat node
ornpx hardhat node --hostname 127.0.0.1
npx hardhat run scripts/deploy.js --network localhost
ℹ️ Connect metamask to Localhost:8545: RPC URL: http://localhost:8545 | Chain ID: 31337
npx hardhat run scripts/deploy.js --network kovan
Add and .env
under /frontend
folder with the following instruction:
SKIP_PREFLIGHT_CHECK=true
See more details
cd frontend
npm install
npm start
Refer to Datalistic / Storm Glass External Adapter
Run the following command to perform the unit tests:
npx hardhat test
Test coverage
npx hardhat coverage