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

Add CW-2981 #414

Closed
wants to merge 4 commits into from
Closed

Add CW-2981 #414

wants to merge 4 commits into from

Conversation

the-frey
Copy link
Contributor

Appreciate this might need some refining and/or further discussion.

Wanted essentially to have a bare minimum example for the EIP-2981 spec implemented in CW-land. This is my attempt at that.

In essence, it's a very light wrapper/extension for CW721 compliant contracts that adds two additional query messages:

  • RoyaltyInfo to be called when selling an NFT, to find out what royalties are owed
  • CheckRoyalties to be called on the contract, to see if it implements CW-2981

There's an example contract implemented that adds royalty information at token mint time, although it is also possible to add that as contract metadata at instantiation time (that instantiation message format is in the package).

The main thing as I understand it here is basically the shape of the queries, that can be called when a marketplace sells an NFT. The actual implementation might differ on a per contract basis (the example contract here just does a straight percentage).

@CLAassistant
Copy link

CLAassistant commented Sep 10, 2021

CLA assistant check
All committers have signed the CLA.

@ethanfrey
Copy link
Member

Thank you for submitting this and nice to see more NFT ideas ported to CosmWasm and shared.

I am a bit busy now, but it will get a review this week.

@the-frey
Copy link
Contributor Author

Cool! Like I say, anticipating it will need a bit more polish, but I'm at my desk this week so will keep an eye out for messages on this thread. Cheers!

@ethanfrey
Copy link
Member

Sorry not to get to this earlier.
A whole lot of NFT issues came up and I felt ill-equipped to deal with them.

I think it would be great if you could close this PR and open a new one with the same design on https://github.com/CosmWasm/cw-nfts That should get more comments and a faster feedback

@orkunkl
Copy link
Contributor

orkunkl commented Oct 8, 2021

Closing the PR

@orkunkl orkunkl closed this Oct 8, 2021
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.

4 participants