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

Is there an example of cw721-base with cw2981 royalties implemented? #134

Open
yubrew opened this issue Aug 3, 2023 · 2 comments
Open

Comments

@yubrew
Copy link
Collaborator

yubrew commented Aug 3, 2023

I'm wondering in the context of ICS721 how to respect a collection's royalties from other host chains?
https://github.com/CosmWasm/cw-nfts/tree/v0.18.0/contracts/cw2981-royalties

@taitruong
Copy link
Collaborator

Regarding ICS721 there is NonFungibleTokenPacketData.class_data : https://github.com/public-awesome/ics721/blob/main/contracts/cw-ics721-bridge/src/ibc.rs#L46
Here you can store all kinds of class/collection-based data. On the other side ICS721 then needs to handle this and depending on which cw721 contract, you can set things like royalties.

@taitruong
Copy link
Collaborator

Rn I'm finalizing ics721 and there will be an example of handling sg721, where royalty is stored in collection_info.

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

No branches or pull requests

2 participants