Skip to content

acidbiscuit/purple-faucet

Repository files navigation

Purple Faucet contract

Purple Faucet is a faucet on Polygon network.

This repository includes the smart contract code powering Purple Faucet app.

Project setup

Env variables

Create .env by copying .env.example in the project root. Fill the required variables:

  • OWNER_MNEMONIC - contract deployer private key

Commands

# 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

Deploying to live network

# Deploy to Mumbai testnet
yarn deploy -- --network mumbai
# Deploy to Polygon mainnet
yarn deploy -- --network polygon

Licence

Published under the MIT License.