Do we always prefer to publish package to object over account? #279
-
Discord user IDNo response Describe your question in detail.Now that publishing package to object (AIP) is live on mainnet for a while, should we always encourage people to use it over account? I can't think of much downside, except the ownership check needs to consider object owner, see an example What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?N/A Which operating system are you using?macOS Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
It is the preferred and defacto standard for publishing code. When user’s publish modules to accounts, there are some drawbacks.
Using objects allow transferring ownership of code, as well as programatically defining rules such as governance for upgrading etc. |
Beta Was this translation helpful? Give feedback.
-
I have a different perspective. We found the drawbacks to code objects were too large to move away from ResourceAccounts. The drawback to code objects is that a code object can't retrieve its For example, we mint tokens with the I really like how easy it is to upgrade to code objects. But for us, the advantages we get from code objects, aren't worth the additional complexity required to manage all the objects that code owns. |
Beta Was this translation helpful? Give feedback.
It is the preferred and defacto standard for publishing code. When user’s publish modules to accounts, there are some drawbacks.