Purple Faucet is a faucet on Polygon network.
This repository includes the smart contract code powering Purple Faucet app.
Create .env
by copying .env.example
in the project root. Fill the required variables:
OWNER_MNEMONIC
- contract deployer private key
# Start local hardhat network
npx hardhat node
# Compile contract
yarn compile
# Deploy the contract on local network
yarn deploy
# Run tests
yarn test
# Tests with coverage
yarn coverage
# Linting
yarn lint:sol
# Deploy to Mumbai testnet
yarn deploy -- --network mumbai
# Deploy to Polygon mainnet
yarn deploy -- --network polygon
Published under the MIT License.