-
Notifications
You must be signed in to change notification settings - Fork 375
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(examples): define metadata & royalty info for GRC721 realm #1962
Conversation
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.
I think that purely using a callback based approach might be more suited, so the royalty can be more dynamic
Hence only define RoyaltyInfo
in the interface
…ion of royaltyAmount
I have considered and updated the code according to your suggestions. Can u take a look ? @n0izn0iz |
I see you're trying to follow eth spec, I think we should split the interfaces like so // base collection info
type IGRC721CollectionMetadata interface {
Name() string
Symbol() string
}
// follows eth spec
type IGRC721Metadata interface {
IGRC721CollectionMetadata
TokenURI(tid TokenID) (string, error)
}
// on-chain metadata, for on-chain nft games for example
type IGRC721MetadataOnChain interface {
IGRC721CollectionMetadata
TokenMetadata(tid TokenID) (Metadata, error)
} wdyt? do you intend to close #1960 in favor of this PR? |
also maybe we should rename |
yeah, i think it's clear |
i hope u give some comments for this |
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.
Hey, thank you for this contribution, and sorry for the delay again 🙏
I left some comments, mostly nitpicks. Please, when you work on them, commit changes for each comment and post the commit under the convo so that I can see that the change was implemented. 🙏
@leohhhn I have refactored PR after your review |
Is this PR eglible for merging ? Please feed back if you have any comments |
Hey @linhpn99, let me take a look at this tomorrow. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1962 +/- ##
==========================================
- Coverage 54.96% 54.96% -0.01%
==========================================
Files 481 481
Lines 67407 67407
==========================================
- Hits 37052 37049 -3
- Misses 27336 27337 +1
- Partials 3019 3021 +2 ☔ View full report in Codecov by Sentry. |
Can u approve the workflows ? |
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, good to merge after CI passes
https://github.com/gnolang/gno/actions/runs/9026807461/job/24822204512?pr=1962 Why am I encountering this error in this workflow? The test still passes locally. |
This test seem to take a long time to execute ( > 1s ), could it be cancelled due to a timeout ? |
Merging now! Thank you for the contribution 🚀 |
Thank you for your recognition 🤝 |
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description