-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat(devnet): non-fungibles use case #335
Labels
Comments
chungquantin
changed the title
feat(devnet): non-fungibles use case
feat(devnet): pop-api + non-fungibles use case
Oct 10, 2024
This was referenced Oct 10, 2024
This was
linked to
pull requests
Nov 13, 2024
|
This was referenced Nov 13, 2024
5 tasks
14 tasks
5 tasks
This was
linked to
pull requests
Nov 19, 2024
chungquantin
changed the title
feat(devnet): pop-api + non-fungibles use case
feat(devnet): non-fungibles use case
Nov 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nonfungible contracts size:
Description
In an effort to provide a unifying experience for developers to access runtime functionality for non-fungible tokens, APIs compliant to the PSP34 standard will be provided, as well as a set of extra functions (see Management). The interface as defined by this specification will be accessible for smart contracts via:
Note that the lack of version equals latest. As an example, the user could explicitly specify the version as:
The PR includes changes made to the forked pallet-nfts following what has been discussed in the internal spec. Introducing two new pallets;
pallets/nfts
: Changes made to the forked version to add new storage itemsAccountBalance
andAllowances
and update the following logic + unit tests to support the new storage items.pallets/api/nonfungibles
: Built on top of thepallet-nfts
to expose READs and DISPATCHs for pop-api library.The Nonfungible API provides the contract ability to mint / burn a new item, transfer and approve following the PSP34 Standard.
There are additional features to manage the Nonfungible such as create / destroy a collection, set / clear metadata, set / clear / approve / cancel_approve item attribute.
pallet + pop-api
example contracts
pop-drink
NonFungiblesApi
trait and implementation for theSession
pop-drink#21The text was updated successfully, but these errors were encountered: