holaplex / hub-nfts-solana

HUB service for creating, managing, and indexing NFTs on Solana.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Solana NFT Switch Collections #45

Closed kespinola closed 1 year ago

kespinola commented 1 year ago

Goal

Users can move NFTs from one collection to another.

type SwitchCollectionInput {
  mint: Uuid;
  collection: Uuid;
}

type SwitchCollectionPayload {
  collectionMint: CollectionMint! # updated with reference to the new collection
}

mutation {
  switchCollection(input: SwitchCollectionInput): SwitchCollectionPayload
}

Requirements

References

https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/programs/token-metadata/program/src/processor/collection/unverify_sized_collection_item.rs

https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/programs/token-metadata/program/src/processor/collection/set_and_verify_sized_collection_item.rs

kespinola commented 1 year ago

done.