139 |
150 |
151 | Mint your Eternal Domain NFT!
152 |
153 | {currentAccount === '' ? (
154 |
160 | ) : isCorrectNetwork ? (
161 |
167 | ) : (
168 |
169 |
----------------------------------------
170 |
Please connect to the Rinkeby Testnet
171 |
and reload the page
172 |
----------------------------------------
173 |
174 | )}
175 |
176 |
186 | {loadingState === 0 ? (
187 | miningStatus === 0 ? (
188 | txError === null ? (
189 |
190 |
191 | Processing your transaction
192 |
193 |
200 |
201 | ) : (
202 |
{txError}
203 | )
204 | ) : (
205 |
206 | )
207 | ) : (
208 |
209 |
210 | Your Eternal Domain Character
211 |
212 |

217 |
218 | )}
219 |
220 | );
221 | }
222 |
223 | export default Home
--------------------------------------------------------------------------------
/frontend/config.js:
--------------------------------------------------------------------------------
1 | export const nftContractAddress = '0x9b6dd9b898c300037c8C245e8E619a0934158065'
--------------------------------------------------------------------------------
/frontend/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "paths": {
4 | "@/*": ["./*"]
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/frontend/next.config.mjs:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {};
3 |
4 | export default nextConfig;
5 |
--------------------------------------------------------------------------------
/frontend/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "frontend",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "dev": "next dev",
7 | "build": "next build",
8 | "start": "next start",
9 | "lint": "next lint"
10 | },
11 | "dependencies": {
12 | "axios": "^1.7.4",
13 | "ethers": "^6.13.2",
14 | "next": "14.2.5",
15 | "react": "^18",
16 | "react-dom": "^18",
17 | "react-loader-spinner": "^6.1.6"
18 | },
19 | "devDependencies": {
20 | "eslint": "^8",
21 | "eslint-config-next": "14.2.5",
22 | "postcss": "^8",
23 | "tailwindcss": "^3.4.1"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/frontend/postcss.config.mjs:
--------------------------------------------------------------------------------
1 | /** @type {import('postcss-load-config').Config} */
2 | const config = {
3 | plugins: {
4 | tailwindcss: {},
5 | },
6 | };
7 |
8 | export default config;
9 |
--------------------------------------------------------------------------------
/frontend/public/next.svg:
--------------------------------------------------------------------------------
1 |