Using bubblegum trees is costly, because each program has to allocate its own tree in order to mint to it.
In order to reduce the overhead cost, we can allow any publicKey to request minting capacity on the tree. Once approved, the request is used to verify the mintAuthority on each mint instruction.
In this scenario, we have still preserved the tree's creator (or subsequent delegate) ability to mint without request.
In progress:
[x] assign a tree delegate
[x] test tree delegate behavior
[x] test that non-delegate/creator fail to mint without request
Using
bubblegum
trees is costly, because each program has to allocate its own tree in order to mint to it.In order to reduce the overhead cost, we can allow any publicKey to
request
minting capacity on the tree. Once approved, therequest
is used to verify themintAuthority
on each mint instruction.In this scenario, we have still preserved the tree's
creator
(or subsequentdelegate
) ability to mint without request.In progress: