feat: create faucet page#71
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deployment link: https://custom-faucet.taquito-dapp-ghostnet.pages.dev/
This pull request introduces a new Tezos faucet Cloudflare Worker (
src/cloudflare/faucet) with secure rate limiting, environment configuration, and documentation for deployment and usage. The main themes are the implementation of the faucet API, integration of Cloudflare Durable Objects for rate limiting, and improved configuration and documentation for production deployment.Tezos Faucet Worker Implementation
src/cloudflare/faucet/index.ts, providing a/fundAPI endpoint that securely sends Tez to user addresses, validates input, checks rate limits, and verifies CAPTCHA via Turnstile.src/cloudflare/faucet/types.ts.package.jsonfor the faucet worker with required dependencies (@taquito/taquito,@taquito/signer) and scripts for development and deployment.Rate Limiting via Durable Objects
RateLimiterDurable Object insrc/cloudflare/faucet/RateLimiter.tsto persistently track and enforce rate limits on faucet requests per IP address.src/cloudflare/faucet/wrangler.jsoncfor Cloudflare deployment.Configuration & Documentation
.env.exampleand updated deployment workflow to support new secrets and configuration for the faucet and Turnstile. [1] [2]src/cloudflare/faucet/DEPLOYMENT.mdand a quick API usage reference insrc/cloudflare/faucet/USAGE.md. [1] [2]Tooling & Dependency Updates
eslint.config.tsto ignore generated files for the faucet worker, and addedvue-turnstileto the main app dependencies for CAPTCHA integration. [1] [2]References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]