-
Notifications
You must be signed in to change notification settings - Fork 111
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
Create a more complete demo-nft-module with collections, metadata uri, freezing, updates, supply #850
Conversation
Codecov Report
|
module-system/module-implementations/sov-nft-module/src/call.rs
Outdated
Show resolved
Hide resolved
module-system/module-implementations/sov-nft-module/src/call.rs
Outdated
Show resolved
Hide resolved
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.
Looks really good overall. Left a couple of notes about type safety, but just one overall question - how would someone use this to create an NFT drop? It looks like in the current implementation the collection creator has to sign on every individual mint - maybe we should change the interface to have mint
which can be called by other modules in addition to the current function mint_from_eoa
? The bank follows that pattern.
yeah, I agree. we can follow the same pattern, so that way a creator can mint to addresses directly, or the mint can also be created in conjunction with a token that exists in the Bank (will be doing this in a different PR to not make this one too large) |
Overview
demo-nft-module
has been enhanced to include the concept of Collections, NFTs and calls to create, modify, freeze collections and NFTs and to transfer NFTs. Existingdemo-nft-module
has been moved tosimple-nft-module
since it still serves as a very simply and easy to understand tutorial.simple-nft-module
focuses more on the sovereign-sdk usage aspects, whiledemo-nft-module
aims to be a more ready implementation to plug-n-play and customize if necessaryChanges
demo-nft-module
has no genesisREADME.md
added to explain the basic concepts, calls provided as well as examplesov-cli
commands to interact with thedemo-nft-module
on a running rollupdemo-nft-module
has also been added to runtime, so it would be a permanent moduleFurther changes
The offchain component for indexing the NFTs into an offchain store will be part of a second PR.
Test cases added