Replies: 2 comments 11 replies
-
All the storage items and subsequently the types of the values in Because of this I am planning to make them all private with |
Beta Was this translation helpful? Give feedback.
-
Keep in mind that while storage may be private to other pallets, it is almost always public to frontend and usually the only way for frontend to fetch data from pallets. |
Beta Was this translation helpful? Give feedback.
-
When writing pallets with FRAME it's great that I can tune the visibility of my pallet's types (including storage items) like plain old Rust types.
Unfortunately it's quite common to have to make adjustments to (potentially external) pallets when integrating them into a runtime. An example are custom storage migrations that need access to the innards of a pallet to do their job.
So going forward how do we want to trade off (or preferably enable both) encapsulation and configurability in FRAME?
Beta Was this translation helpful? Give feedback.
All reactions