Skip to main content

Questions tagged [storage]

Questions about storing and accessing stored data on a Substrate blockchain.

0 votes
0 answers
9 views

With forkless upgrades and storage migrations comes an additional set of problems in API management. The official Polkadot recommendation is to simply use state queries where possible to retrieve ...
Joe Caputo's user avatar
3 votes
2 answers
69 views

I’m working on an exchange-based Substrate chain, and some storage sizes are increasing over time. I’m exploring ways to prune this data. One idea is to set a limit for each storage that needs pruning,...
Deepak Chaudhary's user avatar
1 vote
1 answer
19 views

Is it possible to store information on RocksDB in an offchain DB (outside the blockchain state) when executing an extrinsic and then querying such information from the node side on an RPC for example?
Valentin Fernandez's user avatar
0 votes
2 answers
44 views

Several storage items in the Staking pallet are deprecated with the following text: /// Note: Deprecated since v14. Use `EraInfo` instead to work with exposures. However I cannot find any storage ...
rvalle's user avatar
  • 45
0 votes
1 answer
40 views

Is there a way to check if the runtime is constructed? I want to configure my pallet differently if the runtime is constructed compared to when it's not yet. I've tried using something like this in my ...
beqaabu's user avatar
  • 16
0 votes
0 answers
45 views

I want to access one pallet's runtime storage from another pallet's Config at genesis. Is that possible to do? More context: I am using pallet_base_fee inside my runtime. It's configured like this: ...
beqaabu's user avatar
  • 16
0 votes
1 answer
17 views

I have a hook that iterates through a collection and applies state updates for each item. Each state update contains multiple state updates -- storage updates, balance transfers, etc. I need to ensure ...
Drew Stone's user avatar
  • 1,239
1 vote
0 answers
29 views

my name is Jimmy and I am a member of the Gossamer team at ChainSafe Systems. We are building a Golang implementation of the Polkadot host and are currently using Paseo as one of the networks to test ...
Jimmy Johnson's user avatar
0 votes
1 answer
27 views

I am writing Pallet which has generic parameter T and static parameter I, but as soon as I wish to create storage for Struct with generic parameter T I receive tons of errors. What am I doing wrong? ...
Dudo's user avatar
  • 21
0 votes
1 answer
30 views

I am developing a series of Java tools for Substrate based chains, polkadot4j (it is currently under heavy development). I have problem in querying the storage for the pallet system and storage entry ...
mhrsalehi's user avatar
  • 103
1 vote
1 answer
42 views

Whenever i try to do runtime upgrade within the pallet which has storagemap and then I replace it with storagedoublemap, it removes all the data present in the storagemap. How can i migrate this data ?...
Arunjot Singh's user avatar
1 vote
2 answers
68 views

What should one use to update the values, mutate or insert? And why in algorithm point of view? <SimpleMap<T>>::insert(&user, entry); <SimpleMap<T>>::mutate(&user, |...
Amiya Behera's user avatar
3 votes
1 answer
44 views

I am having a scenario where my chain is responsible for keeping records of airdrop accounts. Initially, all accounts have a zero balance. When I receive a list of accounts with the respective ...
Deepak Chaudhary's user avatar
1 vote
2 answers
35 views

I need to manually change the storage entry of a storage map which does not have a setter function. Unfortunately, after calling setStorage($STORAGE_KEY, $NEW_VALUE) the corresponding storage cannot ...
0x5hmoo's user avatar
  • 349
2 votes
2 answers
39 views

If I am a registrar, how can I find the judgements that I need/can judge? As far as I know there is not storage that provides that inforamtion. How the registrar can know what indetity has to be ...
Superluminal's user avatar

15 30 50 per page
1
2 3 4 5
16