Semi-Fungible (or Multi-Asset) Token with the Digital Asset Standard #395
Unanswered
0xblockbard
asked this question in
Questions
Replies: 1 comment 1 reply
-
There isn't an official version of semi-fungible asset standard on Aptos. We used to make an example where we create a food token that is both a fungible asset and an NFT. https://github.com/aptos-labs/aptogotchi-intermediate/blob/27c6bc5b32fec758e10c4ba4505cd112ed57c875/move/sources/food.move |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Have been looking through the docs on the new Digital Asset standard, which is recommended for semi-fungible tokens. However, it is not very clear on how we can adopt it for use in a semi-fungible or multi-asset token case similar to the ERC1155 standard.
For example, in a game context, we might need 100s of items (e.g. wooden sword, iron sword), each with a balance greater than 0, owned by different users.
In the case of the Digital Asset standard, should we create a collection that holds all the items, and then call the mint entrypoint for existing tokens? Or is it necessary to make certain modifications and edits to the token code for our project?
References:
https://aptos.dev/en/build/smart-contracts/digital-asset
https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/framework/aptos-token-objects/sources/aptos_token.move
Beta Was this translation helpful? Give feedback.
All reactions