Crate pallet_graph[−][src]
Graph Module
Combine different tokens together.
Terminology
- Link: Link a token to another token and the linked token must be NFT.
- Parent NFT: Linked NFT.
- Child Token: Link to the parent’s token.
- Ancestor NFT: NFT located before parent NFT or parent NFT.
- Root NFT: Graph token’s starting NFT.
Interface
Dispatchable Functions
link_non_fungible
- Link a NFT to another NFT.link_fungible
- Link some FTs to NFT.recover_non_fungible
- Transfer a child NFT to root_owner.recover_fungible
- Transfer some child FTs to root_owner.burn_fungible
- Destroy some FTs by ownerburn_non_fungible
- Destroy one or a batch of NFTs NFTs by owner
Re-exports
pub use $crate::traits::GetPalletVersion as _; |
Structs
ChildToParent | The link relationship between child NFT and parent NFT. Child(collection_id, token_id) => Parent(collection_id, token_id) |
Module | |
ParentBalance | |
ParentToChild |
Enums
Call | Dispatchable calls. |
Error | Errors inform users that something went wrong. |
RawEvent | Events for this module. |
Traits
Config |
Type Definitions
Event |