Skip to content
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

[AIP-43][Discussion] Parallelize Digital Assets (Token V2) and Fungible Assets minting/burning #209

Closed
igor-aptos opened this issue Jul 28, 2023 · 0 comments

Comments

@igor-aptos
Copy link
Contributor

igor-aptos commented Jul 28, 2023

AIP Discussion

Change Token V2 and fungible assets minting and burning to be parallelizable during execution, allowing higher throughput/peak for minting from an individual collection / asset.

Introducing new mint API - create_numbered_token, which will allow creating tokens in parallel, from the same collection, while providing sequential names.

Motivation

Currently, Token V2 minting and burning within a single collection is single-threaded, because those operations do read-modify-write on multiple per-collection fields - current_supply, total_supply and sequence number in the event handles. That translates into minting from a single collection having 5-8x lower throughput than minting from multiple collections simultaneously.

Similarly, minting and burning Fungible Asset touch supply field, making them sequential.

Goal is to remove/optimize operations that make Token V2 and Fungible Asset operations sequential

Read more about it here: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-43.md

@igor-aptos igor-aptos changed the title [AIP-43][Discussion] Parallelize Token V2 minting/burning AIP-43 - Parallelize Digital Assets (Token V2) and Fungible Assets minting/burning Sep 12, 2023
@thepomeranian thepomeranian added this to the aptos-node-v1.8 milestone Oct 5, 2023
@thepomeranian thepomeranian removed this from the aptos-node-v1.8 milestone Oct 26, 2023
@thepomeranian thepomeranian added this to the aptos-node-v1.10 milestone Feb 1, 2024
@thepomeranian thepomeranian changed the title AIP-43 - Parallelize Digital Assets (Token V2) and Fungible Assets minting/burning [AIP-43][Discussion] Parallelize Digital Assets (Token V2) and Fungible Assets minting/burning Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants