Concordium / concordium-rust-smart-contracts

Libraries and tools for writing and testing smart contracts on Concordium
https://docs.rs/concordium-std/latest/concordium_std/
Mozilla Public License 2.0
58 stars 35 forks source link

cis2-dynamic-nft example contract #368

Closed bogacyigitbasi closed 10 months ago

bogacyigitbasi commented 1 year ago

Purpose

cis2-dynamic-nft smart contract is a derivative of cis2-multi that allows multiple metadata URLs in a vector for a token. A new metadata URL can be pushed to the vector, and the token can be upgraded. An upgrade means the metadata index is increased by one, and the function tokenMetadata returns only the last element in the vector, and the whole history of metadata URLs is visible with another function called tokenMetadataList. A real life (!) example of a dynamic NFT could be the evolution of a Pokemon or a game character. OR a service book history for a car.

Changes

_Describe the changes that were needed.

Checklist

CLA acceptance

_Remove if not applicable.

By submitting the contribution I accept the terms and conditions of the Contributor License Agreement v1.0