Skip to content

Partially Fungible Tokens #161

@superboo

Description

@superboo

Problem

This feature does not currently exist.

The partially fungible token feature introduces 2 new token types. One token type acts as an abstract class while the other is derived from the abstract token. The abstract token contains a transfer policy that governs transfers made involving the abstract + derived tokens. The derived token acts as a regular fungible token but allows for the addition of tags to distinguish it from other tokens derived from the same abstract token. One key aspect of the derived token is that it can be transferred (like an abstract class/interface in OO) and the final calculation of what derived tokens to use in the transfer will be done by the transfer policy.

Reference HIP: HIP-365

Solution

  • Alter TokenCreateTransactionBody and TokenType to support new token types
  • Add messages for transfer policy expression
  • Alter TokenUpdateTransactionBody to support updates to new token types
  • Alter TokenInfo to return transfer policy and tags for new token types
  • Introduce new query message TokenGetAccountSubTokenBalancesQuery to fetch balances of all tokens derived from a particular abstract token
  • Alter TokenTransferList to add transfer policy parameters to use for new tokens

Alternatives

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions