Public cNFT trees with fixed cost-per-mint #39
Replies: 4 comments 8 replies
-
Worth adding that it's difficult to build a wrapper program to do this due to the fact that there is a CPI depth limit of 5. Wrapper > Bubblegum > Account Compression > Log Wrapper is already 4. So this type of feature needs to be added to bubblegum itself. |
Beta Was this translation helpful? Give feedback.
-
Is there any reason a max-depth tree can't be used for maximum cost savings with the (depth - canopy) depth being iteratively scaled back? Just to reduce the number of config variables to 1. |
Beta Was this translation helpful? Give feedback.
-
yo this sounds good this should 100% get pass thru,drastically reducing onboarding costs of gaming related projects |
Beta Was this translation helpful? Give feedback.
-
One of the concerns for this is the way tree authority works. The tree authority has permission to update (if not part of a collection) and mint new assets. The latter is fine if we treat this as a public tree, but the former is a little concerning. It seems like either these trees must be either immutable or part of a collection. Interested in hearing thoughts on one option or the other (or both). |
Beta Was this translation helpful? Give feedback.
-
Submitter: ChewingGlass
Email: chewinglass123@gmail.com
Submitter wallet: wwm872RcvN7XwNZBjXLSHfAYrFUATKgkV9v3BewHj5M
Submission transaction: 2xd5QZRQZyxnYew3Hb5UM8vCL4q1LYeKrXH7xBxy2QmX79APCNtnYT1ZNWZNhPJ9mrSKQmANW28fEKrceSqcyQzk
Title: Public cNFT trees with fixed cost-per-mint
Links:
cNFTs are currently difficult to use because in order to mint a cNFT, first you must initialize and fund a tree. This requires effectively paying for all of the rent up-front.
Trees themselves are not special, they are not tied to a collection, and so it doesn't matter which tree gets used to mint an NFT. As such, we can improve cNFT UX by offering pre-existing trees within the bubblegum program that charge a fixed rent cost to mint. This cost should be the cost of the merkle_tree + tree authority structs on chain, divided by the capacity of the merkle tree. When one of these trees fills up, the fixed sol charged per mint is used to create a new public tree. There should be public keys of several depths/configurations. For Helium, for example, a depth 20 canopy 17 public tree would be useful.
Beta Was this translation helpful? Give feedback.
All reactions