This project contains the smart contracts, deployments scripts, unit tests and utils for the blockchain infrastructure.
On root run:
- To install all dependencies
npm i
- To start a local node:
npm run dev
- To compile the smart contracts:
npm run compile
- To execute the unit tests:
npm run test
- To deploy the voucher smart contract:
npx hardhat run --network localhost scripts/deployWiiQareVoucherV1.ts
(change the network option for deploying on testnet to mumbai or mainnet polygon)
- Q: Why the voucher smart contract is not upgradable. A: We want to provide trust to our users.
- Q: Why isn't the solution fully decentralize. A: We had to make some compromises until users will know how to properly use a wallet. Because we are dealing with providing methods for the users to pay for their healthcare services, ease of use and speed were our top concerns and we chose to put decentralization on the second place.