Commit a193692
feat(core): testnet faucet page with recaptcha (#344)
* feat(ui-ux): testnet faucet page
* feat(ui-ux): add recaptcha v2
* fix(ui-ux): hide /faucet navigation and page if not in Testnet env
* feat(server): nestjs setup
* remove nvmrc
* fix(ui-ux): evmAddress input and captcha validation
* code refactor
* code cleanup
* feature(api): added api for faucet to allocate fund to user (#346)
* feature(api): added api for faucet to allocate fund to user
* added e2e test
* fixed pr comments
* added e2e for ratelimiting
* added invalid address test case
* fix lint
* fix typo
* fix lint
* fix ci
* fix ci
* fix ci
* fix ci
* fix ci
* fix ci
* fix ci
* fix ci
* moved faucet dir to apps/web
* changed to getRpcUrl instead of getBaseUrl
* api testing
* fixed the cors issue
* removed comment
* print out transaction hash or error
* ran prettier
* removed unused code
* fixed lint issues
* add import { NestFactory } from '@nestjs/core';
* fix import problems
* feat: use user input wallet address
* fix: use current connection
* fix: cors
* fix: use MetascanServerApp
* fix: update allowedHeaders MetascanServerApp
* feat(server): recaptcha guard on faucet route
* feat(ui-ux): handle recaptcha validation when sending funds
* add recaptcha public site key in /web/.env file
* fix format
* fix(server): private validateRecaptcha guard method
* update comments
* feat(ui-ux): added ux for faucet (#357)
* added loader and link to metascan
* fixing issue that txnHash does not exist on metascan yet
* reverted linking to metascan
* revert unnecessayr change for sectionDesc
* added more text
* Update apps/web/src/pages/faucet/index.tsx
Co-authored-by: Harsh R <53080940+fullstackninja864@users.noreply.github.com>
* did UI comments & ran prettier
* changed to using react-icon
* removed react-spinners
* set isLoading back to false
* ui comments
* Update apps/web/src/pages/faucet/index.tsx
Co-authored-by: Harsh R <53080940+fullstackninja864@users.noreply.github.com>
* Update apps/web/src/pages/faucet/index.tsx
Co-authored-by: Harsh R <53080940+fullstackninja864@users.noreply.github.com>
* used animate-spin
* used tailwind color
* revert isLoading value to false
* changed to divs
* will do button variants in a diff PR
* added invalid address error text
* enable button even after errors
* print default error msg
* made recaptcha dark
* minor fixes
---------
Co-authored-by: Harsh R <53080940+fullstackninja864@users.noreply.github.com>
Co-authored-by: Harsh <harshrathi.dev@gmail.com>
* fixed package.json
* updated ethers version
* UI fixes
* fix lint
* hide faucet page
* remove log
---------
Co-authored-by: Lyka Labrada <lykalabrada@gmail.com>
Co-authored-by: Harsh R <53080940+fullstackninja864@users.noreply.github.com>
Co-authored-by: pierregee <pierre@cakedefi.com>
Co-authored-by: nattadex <elocinnat99@gmail.com>
Co-authored-by: Harsh <harshrathi.dev@gmail.com>1 parent e0f5721 commit a193692
37 files changed
Lines changed: 13281 additions & 6831 deletions
File tree
- apps
- server
- src
- faucet
- recaptcha
- web
- src
- api
- components/commons
- hooks
- layouts/components
- pages
- address/_components/contract
- faucet
- store
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 5 | + | |
| 6 | + | |
13 | 7 | | |
| 8 | + | |
14 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments