All Questions
Tagged with storage boundedvec
6 questions
7
votes
1
answer
270
views
Prepare pallets for Weights v2
I am trying to prepare the pallets for Weights v2 at Encointer and a couple of questions arose.
Where can I find documentation on what exactly has to be done in terms of bounded types?
What is the ...
2
votes
1
answer
70
views
Does it make sense to convert Vec<Vec<u8>> to Vec<BoundedVec<u8, DescriptionLimit>>? [duplicate]
I have a scenario where I have to store multiple strings. For single string, we can use BoundedVec<u8, DescriptionLimit>, that's why I converted Vec<u8> into BoundedVec<u8, ...
2
votes
1
answer
124
views
BoundedVec on ink!
BoundedVec is a vector where the length of the queue is always bounded, which is better than Vec for storage because it has a defined a maximum length.
I recommend this StackExchange questions to ...
0
votes
1
answer
52
views
How to benchmark huge bounded vectors?
I want to have a queue system in a pallet using a storage value and a bounded vector.
/// Data related to tranmission queues.
#[pallet::storage]
#[pallet::getter(fn at_block_queue)]
pub type ...
3
votes
1
answer
113
views
Error defining BoundedVec as a Pallet Storage the trait `Decode` is not implemented for `sp_runtime::BoundedVec
I have a StorageValue defined as follows
#[pallet::storage]
#[pallet::getter(fn reg_students)]
pub type RegStudents<T: Config> =
StorageValue<_, BoundedVec<StudentId, T:...
5
votes
1
answer
139
views
Issue with #[pallet::generate_storage_info]
I was digging into substrate's storage_info macro https://docs.substrate.io/v3/runtime/macros/#palletgenerate_storage_info.
To get hands dirty checked code from
https://github.com/yourarj/substrate-...