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

Move to cw721 package #161

Merged
merged 47 commits into from
Jun 27, 2024
Merged

Conversation

taitruong
Copy link
Collaborator

@taitruong taitruong commented Apr 25, 2024

This PR only moves code from contracts to cw721 package - as a preparation for PR #156 (Major release v0.19: add CollectionInfo, RoyaltyInfo, updatable NFTs for creator, etc.).

@jhernandezb, @JakeHartnell, all checks passed - except lint checker fails with use of deprecated variant ...

I have marked deprecated usages with #[allow(deprecated)], but linter still complaints.
Did the same in launchpad PR, but here it is all fine:
public-awesome/launchpad#668

…CollectionInfo, ContractInfoResponse -> CollectionInfoResponse
…ration and keep legacy data for backward migration
- new query GetMinterOwnership and GetCreatorOwnership, deprecated Ownership
- new execute UpdateMinterOwnership and UpdateCreatorOwnership, deprecate UpdateOwnership
- dedicated stores for minter and creator, where creator usess by default cw_ownable singleton!
- new migrate msg allowing to reset creator and minter
- cleanup migration and split legacy part to dedicated functions
- also make sure using decicated CREATOR and MINTER stores and NOT use cw_ownable::...
- move logic from cw721-base to cw721
- merge cw721-base and cw721-metadata-onchain into one, distinction is: `extension: T` where T for base contract is `type DefaultMetadataExtension = Option<Metadata>`
- all logic now in default implementation for traits Cw721Execute and Cw721Query
@taitruong taitruong force-pushed the move_to_cw721_package branch 11 times, most recently from 753eca4 to 586df2a Compare June 13, 2024 19:47
@taitruong taitruong force-pushed the move_to_cw721_package branch from 586df2a to 6944bcb Compare June 13, 2024 19:49
@taitruong taitruong force-pushed the move_to_cw721_package branch from c5c85b3 to 410d11e Compare June 13, 2024 20:17
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