-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(faucet): rename Verify to Faucet * refactor(faucet): extract faucet content to faucet.json * refactor: use wagmi instead of ethers * refactor: rename function to PageFaucet() * refactor(faucet): update Content interface * refactor: use NetworkName --------- Co-authored-by: Moritz Kirstein <mkirstein@protonmail.com>
- Loading branch information
1 parent
6f10a2e
commit f61d269
Showing
3 changed files
with
62 additions
and
96 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
{ | ||
"title": "Pontus-X Faucet", | ||
"description": "Request tokens for the Pontus-X Networks", | ||
"input": { | ||
"label": "Your Pontus-X address", | ||
"placeholder": "0x28080F654eED6CC00e8b16F4841E92CD0c2C0778", | ||
"buttonLabel": "Get tokens" | ||
"buttonLabel": "Get Tokens", | ||
"card": { | ||
"cardTitle": "Welcome to the Pontus-X Faucet", | ||
"cardDescription": "A faucet is a service that provides free tokens for testing purposes. Known accounts can request 10 EUROe fee tokens and 1000 EUROe payment tokens to use on the Pontus-X network. These tokens are available every 12 hours.", | ||
"cardExplainerTitle": "How to Request Tokens", | ||
"cardExplainerFirstStep": "Ensure you have a web3 wallet (e.g. MetaMask) connected.", | ||
"cardExplainerSecondStep": "Your wallet address will be automatically detected and displayed below.", | ||
"cardExplainerThirdStep": "Click the button to request your free tokens.", | ||
"cardExplainerFourthStep": "Wait for a few seconds while the request is processed.", | ||
"cardExplainerFithStep": "You will receive a confirmation once the tokens are successfully sent to your address.", | ||
"cardNetworkAddress": "Your Pontus-X address", | ||
"cardNetwork": "Connected Network" | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
import { ReactElement } from 'react' | ||
import { useRouter } from 'next/router' | ||
import Verify from '../components/Faucet' | ||
import AssetProvider from '@context/Asset' | ||
import Faucet from '../components/Faucet' | ||
import content from '../../content/pages/faucet.json' | ||
import Page from '@components/@shared/Page' | ||
|
||
export default function PageVerify(): ReactElement { | ||
const router = useRouter() | ||
const { did } = router.query | ||
|
||
export default function PageFaucet(): ReactElement { | ||
return ( | ||
<AssetProvider did={did as string}> | ||
<Page title={content.title} description={content.description} uri=""> | ||
<Verify /> | ||
</Page> | ||
</AssetProvider> | ||
<Page title={content.title} description={content.description} uri=""> | ||
<Faucet /> | ||
</Page> | ||
) | ||
} |