From 9b21ef6fa07781256abb09efa1a0526f792c78b2 Mon Sep 17 00:00:00 2001 From: Luciano Oliva Bianco Date: Tue, 17 Sep 2024 01:37:07 -0300 Subject: [PATCH] Added a preview for the NFT --- README.md | 5 +- packages/local_db/firebase-debug.log | 113 +++++++----------------- packages/local_db/firestore-debug.log | 38 +------- packages/nextjs/app/simpleMint/page.tsx | 87 +++++++++++++++--- 4 files changed, 108 insertions(+), 135 deletions(-) diff --git a/README.md b/README.md index 3224dda..0839728 100644 --- a/README.md +++ b/README.md @@ -94,10 +94,12 @@ This repo was started with `npx create-eth@latest` with Foundry and integrated w - **Add individual NFT pages** with more info about the NFT, if it's on sale, and the artist and bigger images - **Add a page for the collector** with their NFTs and info about them - **Add a page for the artist** with their NFTs and info about them -- **Add a way for artists (and collectors) to register their info (ideally with a signature)** +- **Add a page for starting a collection** with the same fields as the Simple Mint page, but with a mint button that pays the gas costs and deploys the contract ## Phase 2 +- **Add a way for artists (and collectors) to register their info (ideally with a signature)** + ### Simple Mint - **Display NFT being built as a preview** before minting (display the NFT and the metadata) @@ -105,6 +107,7 @@ This repo was started with `npx create-eth@latest` with Foundry and integrated w - **Determine which Royalty standard to implement**, and start implementing it (References: [ERC-2981](https://eips.ethereum.org/EIPS/eip-2981) | [ERC-4910](https://eips.ethereum.org/EIPS/eip-4910) | [ERC-721C compared to ERC-2981 and ERC-4910](https://blog.xp.network/the-battle-for-nft-royalties-meet-the-erc-2981-erc-4920-and-erc-721c-b71d6ba28acf) - **First minter gets a share of the royalties** of all the NFTs minted in that collection - **Periodically airdrop dividends** in USDC for creators (and first minters if appliable) (may not even be necessary if royalties pay redirect funds to the creators directly) +- **System to validate artists and collectors (and maybe enable them to Simple Mint and be able to disable them to prevent spam)** ### Marketplace diff --git a/packages/local_db/firebase-debug.log b/packages/local_db/firebase-debug.log index bf41853..ab810aa 100644 --- a/packages/local_db/firebase-debug.log +++ b/packages/local_db/firebase-debug.log @@ -1,33 +1,34 @@ -[debug] [2024-09-17T01:51:39.655Z] ---------------------------------------------------------------------- -[debug] [2024-09-17T01:51:39.657Z] Command: /home/lulox/.nvm/versions/node/v18.17.0/bin/node /home/lulox/.nvm/versions/node/v18.17.0/bin/firebase emulators:start -[debug] [2024-09-17T01:51:39.657Z] CLI Version: 13.17.0 -[debug] [2024-09-17T01:51:39.658Z] Platform: linux -[debug] [2024-09-17T01:51:39.658Z] Node Version: v18.17.0 -[debug] [2024-09-17T01:51:39.658Z] Time: Mon Sep 16 2024 22:51:39 GMT-0300 (Argentina Standard Time) -[debug] [2024-09-17T01:51:39.658Z] ---------------------------------------------------------------------- +[debug] [2024-09-17T03:05:18.701Z] ---------------------------------------------------------------------- +[debug] [2024-09-17T03:05:18.703Z] Command: /home/lulox/.nvm/versions/node/v18.17.0/bin/node /home/lulox/.nvm/versions/node/v18.17.0/bin/firebase emulators:start +[debug] [2024-09-17T03:05:18.703Z] CLI Version: 13.17.0 +[debug] [2024-09-17T03:05:18.703Z] Platform: linux +[debug] [2024-09-17T03:05:18.703Z] Node Version: v18.17.0 +[debug] [2024-09-17T03:05:18.704Z] Time: Tue Sep 17 2024 00:05:18 GMT-0300 (Argentina Standard Time) +[debug] [2024-09-17T03:05:18.704Z] ---------------------------------------------------------------------- [debug] -[debug] [2024-09-17T01:51:39.746Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2024-09-17T01:51:39.746Z] > authorizing via signed-in user (lulox.eth@gmail.com) -[debug] [2024-09-17T01:51:39.782Z] openjdk version "21.0.4" 2024-07-16 -OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) +[debug] [2024-09-17T03:05:18.790Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2024-09-17T03:05:18.791Z] > authorizing via signed-in user (lulox.eth@gmail.com) +[debug] [2024-09-17T03:05:18.825Z] openjdk version "21.0.4" 2024-07-16 + +[debug] [2024-09-17T03:05:18.826Z] OpenJDK Runtime Environment (build 21.0.4+7-Ubuntu-1ubuntu224.04) OpenJDK 64-Bit Server VM (build 21.0.4+7-Ubuntu-1ubuntu224.04, mixed mode, sharing) -[debug] [2024-09-17T01:51:39.793Z] Parsed Java major version: 21 +[debug] [2024-09-17T03:05:18.829Z] Parsed Java major version: 21 [info] i emulators: Starting emulators: firestore {"metadata":{"emulator":{"name":"hub"},"message":"Starting emulators: firestore"}} -[debug] [2024-09-17T01:51:39.798Z] [logging] Logging Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 -[debug] [2024-09-17T01:51:39.798Z] [firestore] Firestore Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 -[debug] [2024-09-17T01:51:39.798Z] [firestore.websocket] websocket server for firestore only supports listening on one address (127.0.0.1). Not listening on ::1 -[debug] [2024-09-17T01:51:39.799Z] assigned listening specs for emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":8080}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}]},"metadata":{"message":"assigned listening specs for emulators"}} -[debug] [2024-09-17T01:51:39.804Z] [hub] writing locator at /tmp/hub-technai-v1.json -[debug] [2024-09-17T01:51:39.811Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: auto_download"}} -[debug] [2024-09-17T01:51:39.811Z] Ignoring unsupported arg: single_project_mode_error {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: single_project_mode_error"}} -[debug] [2024-09-17T01:51:39.811Z] Starting Firestore Emulator with command {"binary":"java","args":["-Dgoogle.cloud_firestore.debug_log_level=FINE","-Duser.language=en","-jar","/home/lulox/.cache/firebase/emulators/cloud-firestore-emulator-v1.19.8.jar","--host","127.0.0.1","--port",8080,"--websocket_port",9150,"--project_id","technai-v1","--rules","/home/lulox/repos/3-WORK/Technai-foundry/packages/local_db/firestore.rules","--single_project_mode",true],"optionalArgs":["port","webchannel_port","host","rules","websocket_port","functions_emulator","seed_from_export","project_id","single_project_mode"],"joinArgs":false,"shell":false} {"metadata":{"emulator":{"name":"firestore"},"message":"Starting Firestore Emulator with command {\"binary\":\"java\",\"args\":[\"-Dgoogle.cloud_firestore.debug_log_level=FINE\",\"-Duser.language=en\",\"-jar\",\"/home/lulox/.cache/firebase/emulators/cloud-firestore-emulator-v1.19.8.jar\",\"--host\",\"127.0.0.1\",\"--port\",8080,\"--websocket_port\",9150,\"--project_id\",\"technai-v1\",\"--rules\",\"/home/lulox/repos/3-WORK/Technai-foundry/packages/local_db/firestore.rules\",\"--single_project_mode\",true],\"optionalArgs\":[\"port\",\"webchannel_port\",\"host\",\"rules\",\"websocket_port\",\"functions_emulator\",\"seed_from_export\",\"project_id\",\"single_project_mode\"],\"joinArgs\":false,\"shell\":false}"}} +[debug] [2024-09-17T03:05:18.834Z] [logging] Logging Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 +[debug] [2024-09-17T03:05:18.834Z] [firestore] Firestore Emulator only supports listening on one address (127.0.0.1). Not listening on ::1 +[debug] [2024-09-17T03:05:18.834Z] [firestore.websocket] websocket server for firestore only supports listening on one address (127.0.0.1). Not listening on ::1 +[debug] [2024-09-17T03:05:18.835Z] assigned listening specs for emulators {"user":{"hub":[{"address":"127.0.0.1","family":"IPv4","port":4400},{"address":"::1","family":"IPv6","port":4400}],"ui":[{"address":"127.0.0.1","family":"IPv4","port":4000},{"address":"::1","family":"IPv6","port":4000}],"logging":[{"address":"127.0.0.1","family":"IPv4","port":4500}],"firestore":[{"address":"127.0.0.1","family":"IPv4","port":8080}],"firestore.websocket":[{"address":"127.0.0.1","family":"IPv4","port":9150}]},"metadata":{"message":"assigned listening specs for emulators"}} +[debug] [2024-09-17T03:05:18.840Z] [hub] writing locator at /tmp/hub-technai-v1.json +[debug] [2024-09-17T03:05:18.852Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: auto_download"}} +[debug] [2024-09-17T03:05:18.852Z] Ignoring unsupported arg: single_project_mode_error {"metadata":{"emulator":{"name":"firestore"},"message":"Ignoring unsupported arg: single_project_mode_error"}} +[debug] [2024-09-17T03:05:18.852Z] Starting Firestore Emulator with command {"binary":"java","args":["-Dgoogle.cloud_firestore.debug_log_level=FINE","-Duser.language=en","-jar","/home/lulox/.cache/firebase/emulators/cloud-firestore-emulator-v1.19.8.jar","--host","127.0.0.1","--port",8080,"--websocket_port",9150,"--project_id","technai-v1","--rules","/home/lulox/repos/3-WORK/Technai-foundry/packages/local_db/firestore.rules","--single_project_mode",true],"optionalArgs":["port","webchannel_port","host","rules","websocket_port","functions_emulator","seed_from_export","project_id","single_project_mode"],"joinArgs":false,"shell":false} {"metadata":{"emulator":{"name":"firestore"},"message":"Starting Firestore Emulator with command {\"binary\":\"java\",\"args\":[\"-Dgoogle.cloud_firestore.debug_log_level=FINE\",\"-Duser.language=en\",\"-jar\",\"/home/lulox/.cache/firebase/emulators/cloud-firestore-emulator-v1.19.8.jar\",\"--host\",\"127.0.0.1\",\"--port\",8080,\"--websocket_port\",9150,\"--project_id\",\"technai-v1\",\"--rules\",\"/home/lulox/repos/3-WORK/Technai-foundry/packages/local_db/firestore.rules\",\"--single_project_mode\",true],\"optionalArgs\":[\"port\",\"webchannel_port\",\"host\",\"rules\",\"websocket_port\",\"functions_emulator\",\"seed_from_export\",\"project_id\",\"single_project_mode\"],\"joinArgs\":false,\"shell\":false}"}} [info] i firestore: Firestore Emulator logging to firestore-debug.log {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator logging to \u001b[1mfirestore-debug.log\u001b[22m"}} -[debug] [2024-09-17T01:51:41.048Z] Sep 16, 2024 10:51:40 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start +[debug] [2024-09-17T03:05:20.551Z] Sep 17, 2024 12:05:20 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start INFO: Started WebSocket server on ws://127.0.0.1:9150 - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:51:40 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start\nINFO: Started WebSocket server on ws://127.0.0.1:9150\n"}} -[debug] [2024-09-17T01:51:41.091Z] API endpoint: http:// {"metadata":{"emulator":{"name":"firestore"},"message":"API endpoint: http://"}} -[debug] [2024-09-17T01:51:41.091Z] 127.0.0.1:8080 + {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 17, 2024 12:05:20 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start\nINFO: Started WebSocket server on ws://127.0.0.1:9150\n"}} +[debug] [2024-09-17T03:05:20.588Z] API endpoint: http:// {"metadata":{"emulator":{"name":"firestore"},"message":"API endpoint: http://"}} +[debug] [2024-09-17T03:05:20.589Z] 127.0.0.1:8080 If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run: export FIRESTORE_EMULATOR_HOST=127.0.0.1:8080 @@ -41,13 +42,13 @@ Dev App Server is now running. {"metadata":{"emulator":{"name":"firestore"},"message":"127.0.0.1:8080\nIf you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run:\n\n export FIRESTORE_EMULATOR_HOST=127.0.0.1:8080\n\nIf you are running a Firestore in Datastore Mode project, run:\n\n export DATASTORE_EMULATOR_HOST=127.0.0.1:8080\n\nNote: Support for Datastore Mode is in preview. If you encounter any bugs please file at https://github.com/firebase/firebase-tools/issues.\nDev App Server is now running.\n\n"}} [info] ✔ firestore: Firestore Emulator UI websocket is running on 9150. {"metadata":{"emulator":{"name":"firestore"},"message":"Firestore Emulator UI websocket is running on 9150."}} -[debug] [2024-09-17T01:51:41.255Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}} -[debug] [2024-09-17T01:51:41.256Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}} -[debug] [2024-09-17T01:51:41.256Z] Starting Emulator UI with command {"binary":"node","args":["/home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs"],"optionalArgs":[],"joinArgs":false,"shell":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs\"],\"optionalArgs\":[],\"joinArgs\":false,\"shell\":false}"}} +[debug] [2024-09-17T03:05:20.701Z] Ignoring unsupported arg: auto_download {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: auto_download"}} +[debug] [2024-09-17T03:05:20.701Z] Ignoring unsupported arg: port {"metadata":{"emulator":{"name":"ui"},"message":"Ignoring unsupported arg: port"}} +[debug] [2024-09-17T03:05:20.701Z] Starting Emulator UI with command {"binary":"node","args":["/home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs"],"optionalArgs":[],"joinArgs":false,"shell":false} {"metadata":{"emulator":{"name":"ui"},"message":"Starting Emulator UI with command {\"binary\":\"node\",\"args\":[\"/home/lulox/.cache/firebase/emulators/ui-v1.13.0/server/server.mjs\"],\"optionalArgs\":[],\"joinArgs\":false,\"shell\":false}"}} [info] i ui: Emulator UI logging to ui-debug.log {"metadata":{"emulator":{"name":"ui"},"message":"Emulator UI logging to \u001b[1mui-debug.log\u001b[22m"}} -[debug] [2024-09-17T01:51:41.453Z] Web / API server started at 127.0.0.1:4000 +[debug] [2024-09-17T03:05:20.843Z] Web / API server started at 127.0.0.1:4000 {"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at 127.0.0.1:4000\n"}} -[debug] [2024-09-17T01:51:41.453Z] Web / API server started at ::1:4000 +[debug] [2024-09-17T03:05:20.843Z] Web / API server started at ::1:4000 {"metadata":{"emulator":{"name":"ui"},"message":"Web / API server started at ::1:4000\n"}} [info] ┌─────────────────────────────────────────────────────────────┐ @@ -65,57 +66,3 @@ Dev App Server is now running. Issues? Report them at https://github.com/firebase/firebase-tools/issues and attach the *-debug.log files. -[debug] [2024-09-17T01:51:56.870Z] Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:51:56.978Z] Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:51:57.975Z] Sep 16, 2024 10:51:57 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:51:57 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:52:16.878Z] Sep 16, 2024 10:52:16 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel -INFO: Connected to new websocket client - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:52:16 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel\nINFO: Connected to new websocket client\n"}} -[debug] [2024-09-17T01:52:58.050Z] Sep 16, 2024 10:52:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:52:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:53:43.871Z] Sep 16, 2024 10:53:43 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:53:43 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:54:29.872Z] Sep 16, 2024 10:54:29 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:54:29 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:55:15.869Z] Sep 16, 2024 10:55:15 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:55:15 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:56:01.886Z] Sep 16, 2024 10:56:01 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:56:01 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:56:47.869Z] Sep 16, 2024 10:56:47 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:56:47 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:57:33.886Z] Sep 16, 2024 10:57:33 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:57:33 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:58:19.874Z] Sep 16, 2024 10:58:19 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:58:19 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T01:59:35.872Z] Sep 16, 2024 10:59:35 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 10:59:35 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T02:00:13.653Z] Sep 16, 2024 11:00:13 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel -INFO: Connected to new websocket client - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 11:00:13 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel\nINFO: Connected to new websocket client\n"}} -[debug] [2024-09-17T02:00:21.869Z] Sep 16, 2024 11:00:21 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 11:00:21 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T02:01:07.869Z] Sep 16, 2024 11:01:07 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 11:01:07 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T02:01:53.885Z] Sep 16, 2024 11:01:53 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 11:01:53 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} -[debug] [2024-09-17T02:02:39.869Z] Sep 16, 2024 11:02:39 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. - {"metadata":{"emulator":{"name":"firestore"},"message":"Sep 16, 2024 11:02:39 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead\nINFO: Detected non-HTTP/2 connection.\n"}} diff --git a/packages/local_db/firestore-debug.log b/packages/local_db/firestore-debug.log index 62bf6f2..3b7d138 100644 --- a/packages/local_db/firestore-debug.log +++ b/packages/local_db/firestore-debug.log @@ -1,4 +1,4 @@ -Sep 16, 2024 10:51:40 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start +Sep 17, 2024 12:05:20 AM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketServer start INFO: Started WebSocket server on ws://127.0.0.1:9150 API endpoint: http://127.0.0.1:8080 If you are using a library that supports the FIRESTORE_EMULATOR_HOST environment variable, run: @@ -12,39 +12,3 @@ If you are running a Firestore in Datastore Mode project, run: Note: Support for Datastore Mode is in preview. If you encounter any bugs please file at https://github.com/firebase/firebase-tools/issues. Dev App Server is now running. -Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:51:56 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:51:57 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:52:16 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel -INFO: Connected to new websocket client -Sep 16, 2024 10:52:58 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:53:43 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:54:29 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:55:15 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:56:01 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:56:47 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:57:33 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:58:19 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 10:59:35 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 11:00:13 PM com.google.cloud.datastore.emulator.firestore.websocket.WebSocketChannelHandler initChannel -INFO: Connected to new websocket client -Sep 16, 2024 11:00:21 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 11:01:07 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 11:01:53 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. -Sep 16, 2024 11:02:39 PM io.gapi.emulators.netty.HttpVersionRoutingHandler channelRead -INFO: Detected non-HTTP/2 connection. diff --git a/packages/nextjs/app/simpleMint/page.tsx b/packages/nextjs/app/simpleMint/page.tsx index b64b72d..08b2d1f 100644 --- a/packages/nextjs/app/simpleMint/page.tsx +++ b/packages/nextjs/app/simpleMint/page.tsx @@ -136,9 +136,9 @@ const SimpleMint: NextPage = () => { return ( <> -
+
{/* Input Fields Section */} -
+
Collection name: Collection symbol: @@ -149,6 +149,7 @@ const SimpleMint: NextPage = () => { Audio/Video URL (can be IPFS): + {attributes.map((attr, index) => (
@@ -169,29 +170,87 @@ const SimpleMint: NextPage = () => {
))} +
{/* JSON Display Section */} -
- setYourJSON(edit.updated_src)} - onAdd={add => setYourJSON(add.updated_src)} - onDelete={del => setYourJSON(del.updated_src)} - /> +
+

NFT Preview

+ + {/* Flex container for media and text */} +
+ {/* Media Section */} +
+ {image ? ( + NFT Preview + ) : ( +
+ No image provided +
+ )} + + {animationUrl && ( + + )} +
+ + {/* Text Section */} +
+

+ Collection Name: {collectionName || "Not provided"} +

+

+ Symbol: {collectionSymbol || "Not provided"} +

+

+ Description: {description || "Not provided"} +

+

+ Attributes: +

+
    + {attributes.length > 0 && attributes[0].traitType && attributes[0].value ? ( + attributes.map((attr, index) => ( +
  • + {attr.traitType ? `${attr.traitType}: ${attr.value}` : "No attributes provided"} +
  • + )) + ) : ( +
  • No attributes provided
  • + )} +
+
+
+ +
+ +
+ View raw metadata +
+
+ setYourJSON(edit.updated_src)} + onAdd={add => setYourJSON(add.updated_src)} + onDelete={del => setYourJSON(del.updated_src)} + /> +
+
{uploadedIpfsPath && (