Skip to main content

Questions tagged [storagevalue]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
1 answer

Query chain for types in a storagemap

I want to get the meta function description of pallets storage maps. Returning an output like this: { Twox64Concat, [u8; 16], u32 } = query.storagemap(pallet: "template", storagemap: "...
flipchan's user avatar
  • 369
1 vote
1 answer

How to store a bounded map inside `StorageValue`?

I need to query a specific account id associated with a Balance in a pool of 10_000 account ids. But I also need to iterate over all account ids in a reasonable amount of computation time. So my ...
Chralt's user avatar
  • 543
0 votes
2 answers

How to access StorageValue without getter function in tests?

I have the following StorageValue: #[pallet::storage] #[pallet::getter(fn something)] pub type Something<T> = StorageValue<_, u32>; With the getter function I can access it like this in ...
Bruno's user avatar
  • 8,315