Skip to content

feat: nft-contract #66

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

Draft
wants to merge 49 commits into
base: dev
Choose a base branch
from
Draft

feat: nft-contract #66

wants to merge 49 commits into from

Conversation

daopunk
Copy link
Collaborator

@daopunk daopunk commented Mar 26, 2025

Current PR:

ref:
https://linear.app/defi-wonderland/issue/AZT-134/nft-contract

@daopunk daopunk requested review from xorsal and 0xShaito and removed request for 0xShaito and xorsal March 26, 2025 20:00
@daopunk daopunk changed the title feat: add nft contract copy from aztec packages feat/nft-contract Mar 26, 2025
@daopunk daopunk requested review from xorsal and 0xShaito March 26, 2025 20:07
@daopunk daopunk changed the title feat/nft-contract feat: nft-contract Mar 29, 2025
Copy link
Collaborator

@xorsal xorsal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't merge this PR here, but instead in defi-wonderland/aztec-extensions to keep the codebase as slim as possible while we finish developing the token standard (so we avoid increasing the amount of code to maintain).

things I'd change:

  • Remove the event (seems it's not even used now!)
  • Merge admin and minters. A single PublicImmutable<AztecAddress> should suffice
  • Function ordering: constructor, private, private internal, public, public internal, internal, view, contract libraries, unconstrained
  • Rename "partial note" to "commitment"
  • Extract AuthLibs functions, similarly to what we did in token_contract. Check _validate_from_public and _validate_minter.
  • Remove authwit_cancel

@daopunk daopunk requested a review from xorsal April 1, 2025 22:26
@0xShaito 0xShaito marked this pull request as draft April 3, 2025 15:17
daopunk and others added 30 commits April 16, 2025 21:24
Added natspec for refactored contract
Co-authored-by: shaito <[email protected]>
Signed-off-by: daopunk <[email protected]>
Co-authored-by: shaito <[email protected]>
Signed-off-by: daopunk <[email protected]>
refactored the logic in the nft contract to follow the patterns in the
token contract and improve readability of "external" functions
closes AZT-158

---------

Co-authored-by: Weißer Hase <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants