Skip to content
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

feat: implement grc721 #414

Merged
merged 9 commits into from
Jan 12, 2023
Merged

feat: implement grc721 #414

merged 9 commits into from
Jan 12, 2023

Conversation

harry-hov
Copy link
Contributor

@harry-hov harry-hov commented Dec 6, 2022

  • Implement GRC721 based NFT methods
  • Implement foo721 realm based on GRC721
  • Add tests for p/demo/grc/grc721 and r/demo/foo721

@harry-hov harry-hov requested a review from moul December 6, 2022 12:21
Add package `p/demo/grc/grc721` implementing igrc721.gno

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
Add tests for `p/demo/grc/grc721` methods.

Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
Signed-off-by: Hariom Verma <hariom.verma@tendermint.com>
@harry-hov harry-hov marked this pull request as ready for review December 7, 2022 07:05
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
@moul moul changed the title feat: Implement GRC 721 feat: implement grc721 Dec 7, 2022
Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

I've left a few comments that should be addressed before we proceed with adding the GRC721 contract.

The main concern I have is that this contract is not modeled after ERC721 (NFT) contracts, but is more similar to ERC20. There is no way to specify a content URI, which is what NFTs exclusively are for.

Copy link
Member

@zivkovicmilos zivkovicmilos left a comment

Choose a reason for hiding this comment

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

I've resolved the remaining convos - for this demo implementation I think it's fine if the contract doesn't have URI support, as you've mentioned it's optional

Please just update this PR with the latest master changes, and we're good to go 🚀

@harry-hov harry-hov requested a review from a team as a code owner January 9, 2023 12:18
@moul
Copy link
Member

moul commented Jan 11, 2023

Hey, this PR is ready, but since I merged #450, it will break. Please, can you update your code so it compiles with latest avl package?

@harry-hov
Copy link
Contributor Author

@moul Done! d78bbae

@harry-hov harry-hov requested a review from moul January 12, 2023 10:08
@moul moul merged commit 4075154 into gnolang:master Jan 12, 2023
@r3v4s
Copy link
Contributor

r3v4s commented Feb 1, 2023

Hello @harry-hov, what an nice code!!
I just want to ask if there is a purpose of using i here

Can it be replaced with _ ??

@harry-hov
Copy link
Contributor Author

Hey @r3v4-onbloc. It's not intentional. Just a blunder on my side.

Since it's not used. It can be replaced with _

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

4 participants