- Faucet Smart Contract - The Faucet Smart Contract, tests, deployment scripts and other related files. (HardHat&Foundry)
- Web App - The Web App, tests, request token with a GitHub&Discord Next-Auth integration. (React&Next.js)
- Discord Bot - The Discord Bot, request token on Discord (Node.js&AWL Lambda)
- Subgraph - The Subgraph, faucet smart contract events indexed on Alchemy&The Graph (Alchemy&The Graph)
cd smart_contract
npm install
npx hardhat compile
npx hardhat test
npx hardhat run scripts/deploy.js --network <networkName>
cd web-app
yarn
yarn dev
cd discord-bot
npm install
npm run register
npm run deploy
- Subgraph on Alchemy for Faucet Contract on Goerli
- Subgraph on TheGraph for Faucet Contract on Goerli
cd subgraph
yarn global add @graphprotocol/graph-cli
yarn
graph init --studio faucet-goerli
graph auth --studio <studio-access-token>
cd faucet-goerli
graph codegen && graph build
graph deploy --studio faucet-goerli