-
Notifications
You must be signed in to change notification settings - Fork 2
feat(web): buy nft UI #533
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
base: main
Are you sure you want to change the base?
Conversation
| select: 1 | ||
| ) | ||
|
|
||
| Logger.info("Checking eligibility for address: #{address} with query: #{inspect(query)}") |
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.
| Logger.info("Checking eligibility for address: #{address} with query: #{inspect(query)}") |
I think we can remove this log.
| @@ -1,5 +1,6 @@ | |||
| defmodule ZkArcadeWeb.ApiController do | |||
| use ZkArcadeWeb, :controller | |||
| require Logger | |||
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.
| require Logger |
The module does not use the Logger.
| def buy_nft(conn, _params) do | ||
| wallet = get_wallet_from_session(conn) | ||
| eligible = get_user_eligibility(wallet) | ||
| # To be replaced with whitelist merkle proof |
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.
| # To be replaced with whitelist merkle proof |
maximopalopoli
left a comment
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.
LGTM. Anyway, I think that we should tell the users that the public NFT is not available in the meantime (until we deploy it)
* Separate the data folder into one per nft * remove unnecessary makefile target * Redo the output files to consider the origin whitelist path * Handle and exclusive public merkle proof insert into db * Add the merkle path public schema * Expose user eligibility and proofs for public NFT on backend * fix: use the public nft merkle output path * Rename merklePathsPublic to PublicMerklePaths * update the readme instructions * feat: apply some fixes and improvements * refactor: maxSupply applies for both mints * fix: remove reentrant guard fix: deployer * fix: update config files * remove inserted devnet files * update gitignore * Add inspect to error in batcher connection to avoid formatting panics --------- Co-authored-by: JuArce <52429267+JuArce@users.noreply.github.com> Co-authored-by: Marcos Nicolau <marcosnicolau@lambdaclass.com>
…/second-nft-claim
* feat(web): add support for public nft it is not deployed * add utils function * show correct messages
* apply feedback * Separate the price and discount lines --------- Co-authored-by: maximopalopoli <mpalopoli@fi.uba.ar>
* metrics for public nfts mints * return err to already added token to not increment multiple times * update grafana dashboard json * fix: update grafana dashboard * fix: do not log warning where there is no change on user nfts --------- Co-authored-by: JuArce <52429267+JuArce@users.noreply.github.com>
Description
/mintif eligible for premium nft/nft/buyif not eligible for premium nft