-
Notifications
You must be signed in to change notification settings - Fork 181
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
[Feature request] Add max supply cap for cw721 #13
Comments
This sounds useful. We have moved those contracts to https://github.com/CosmWasm/cw-nfts where they are being maintained by a number of projects building NFTs. I am sure they would be happy to give feedback on this idea. |
I agree with this wholeheartedly, will makes PR when I get some bandwidth |
up up, im wondering why max supply cap not yet implemented! |
imho, this should be added to the extension, not the base. |
gotcha |
100% agree, this should not be in base, it should be an extension, possibly in the |
Yeah, maybe a |
Disagree. Nonetheless, it is a good point to ensure that the functionality of none collectibles NFT are still held true. As such, maybe we can consider an max_supply with a type of Option, this way, when the attribute is not in the instantiation request of the contract, we can always by default set the max_supply as 1, resulting in a non-collectible NFT. Though this will force new NFTs to be created only through instantiation which will be costly. |
When we say extension here, there's two meanings. One, the token-granularity |
my meaning when I said 'extension' was more in the programmatic sense. My first (naïve probably) approach of building extra functionality into my own contract was painful, and I had to fork the base contract and modify it. I would have preferred to just have the ability to add Exec, Query, Init, & Migrate messages and the ability to add fields (like max-supply) without having to hack the base. |
Good point. There is actually a broader design issue, which I think as a functional programmer irks me the most... I don't know that all the structs/traits stuff is the best pattern versus just using a standalone bag of functions in a namespace that can be exported and used as/when desired in a very granular way. I too have found extending the contracts here to be quite painful, see #24 which is quite a simple query extension, but requires wrangling to work. |
To distinguish a limited NFT collection, we will need a supply cap for the minting process.
In order to allow new created contracts upon this 721 base to achieve variability, it might be useful for us to set this state upon instantiation of the contract.
To add:
The text was updated successfully, but these errors were encountered: