-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PoW Faucet #16
Merged
PoW Faucet #16
Conversation
This file contains 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
nicolasochem
approved these changes
Aug 25, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I'm especially thrilled about no longer having to build the app at runtime. Please ship ⛵
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.
Backend changes for PoW faucet: oxheadalpha/tezos-faucet-backend#2
This pull request includes a significant update to the Tezos Faucet Frontend. The primary changes include:
config.json
has been moved to the/public
folder and instead of usingimport
to use it, we usefetch
. This allows us to switch up values in the config and not need to re-build the app on every start.index.html
Update: The index.html file has been updated with new meta tags and a script tag to load the main application file.Dockerfile
Update: The Dockerfile has been updated to use node:20-alpine and includes changes to the order of operations for better layer caching.package.json
Update: The package.json file has been updated to reflect the new version of the application and the updated description. Also unused packages have been removed and outdated packages updated. Some new packages have been added.FaucetRequestButton
Component: The FaucetRequestButton component has been refactored to include new functions for starting and stopping loading, executing captcha, solving PoW, getting Tez, getting challenge, and verifying solution. The component now uses the useRef hook for the recaptchaRef and theuseState
hook for isLocalLoading. The useEffect hook is used to ensure that isLocalLoading is false if the user cancels the PoW worker.FaucetToInputRequest
Component Update: The FaucetToInputRequest component has been updated to validate the input address using the validateKeyHash function from the@taquito/utils
package. The component now also disables the input field when the status is loading. It now gives the user feedback if the address inputed is invalid.FaucetToWalletRequest
Component Update: The FaucetToWalletRequest component has been updated to disable the request button when the user address is not available or the status is loading.SplittedFaucet
Component Update: The SplittedFaucet component has been updated to include a new state for the PoW worker and a new state for showing the PoW progress. The component now also includes a button for hiding the alert.Footer
Component Update: The Footer component has been updated to include links to Oxhead Alpha's website, GitHub, Medium, and Twitter. The footer is fixed to the bottom of the page. The APP_DESCRIPTION and APP_VERSION are now imported from the environment variables. The package.json is no longer part of the application's build.Header
Component Update: The Header component has been updated to include the Oxhead Alpha logo and a link to the Oxhead Alpha website. The Navbar is now fixed to the top.index.tsx
Update: The index.tsx file has been updated to include a polyfill for theBuffer
object and a workaround for console.log in development mode.