@dedot/chaintypes 0.0.1-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/aleph/consts.d.ts +533 -0
- package/aleph/consts.js +2 -0
- package/aleph/errors.d.ts +822 -0
- package/aleph/errors.js +2 -0
- package/aleph/events.d.ts +997 -0
- package/aleph/events.js +2 -0
- package/aleph/index.d.ts +19 -0
- package/aleph/index.js +3 -0
- package/aleph/query.d.ts +1271 -0
- package/aleph/query.js +2 -0
- package/aleph/rpc.d.ts +575 -0
- package/aleph/rpc.js +2 -0
- package/aleph/runtime.d.ts +410 -0
- package/aleph/runtime.js +2 -0
- package/aleph/tx.d.ts +2206 -0
- package/aleph/tx.js +2 -0
- package/aleph/types.d.ts +5560 -0
- package/aleph/types.js +2 -0
- package/astar/consts.d.ts +679 -0
- package/astar/consts.js +2 -0
- package/astar/errors.d.ts +1317 -0
- package/astar/errors.js +2 -0
- package/astar/events.d.ts +1707 -0
- package/astar/events.js +2 -0
- package/astar/index.d.ts +19 -0
- package/astar/index.js +3 -0
- package/astar/query.d.ts +1474 -0
- package/astar/query.js +2 -0
- package/astar/rpc.d.ts +775 -0
- package/astar/rpc.js +2 -0
- package/astar/runtime.d.ts +262 -0
- package/astar/runtime.js +2 -0
- package/astar/tx.d.ts +4810 -0
- package/astar/tx.js +2 -0
- package/astar/types.d.ts +12338 -0
- package/astar/types.js +2 -0
- package/cjs/aleph/consts.js +3 -0
- package/cjs/aleph/errors.js +3 -0
- package/cjs/aleph/events.js +3 -0
- package/cjs/aleph/index.js +19 -0
- package/cjs/aleph/query.js +3 -0
- package/cjs/aleph/rpc.js +3 -0
- package/cjs/aleph/runtime.js +3 -0
- package/cjs/aleph/tx.js +3 -0
- package/cjs/aleph/types.js +3 -0
- package/cjs/astar/consts.js +3 -0
- package/cjs/astar/errors.js +3 -0
- package/cjs/astar/events.js +3 -0
- package/cjs/astar/index.js +19 -0
- package/cjs/astar/query.js +3 -0
- package/cjs/astar/rpc.js +3 -0
- package/cjs/astar/runtime.js +3 -0
- package/cjs/astar/tx.js +3 -0
- package/cjs/astar/types.js +3 -0
- package/cjs/index.js +2 -0
- package/cjs/kusama/consts.js +3 -0
- package/cjs/kusama/errors.js +3 -0
- package/cjs/kusama/events.js +3 -0
- package/cjs/kusama/index.js +19 -0
- package/cjs/kusama/query.js +3 -0
- package/cjs/kusama/rpc.js +3 -0
- package/cjs/kusama/runtime.js +3 -0
- package/cjs/kusama/tx.js +3 -0
- package/cjs/kusama/types.js +3 -0
- package/cjs/kusamaAssetHub/consts.js +3 -0
- package/cjs/kusamaAssetHub/errors.js +3 -0
- package/cjs/kusamaAssetHub/events.js +3 -0
- package/cjs/kusamaAssetHub/index.js +19 -0
- package/cjs/kusamaAssetHub/query.js +3 -0
- package/cjs/kusamaAssetHub/rpc.js +3 -0
- package/cjs/kusamaAssetHub/runtime.js +3 -0
- package/cjs/kusamaAssetHub/tx.js +3 -0
- package/cjs/kusamaAssetHub/types.js +3 -0
- package/cjs/moonbeam/consts.js +3 -0
- package/cjs/moonbeam/errors.js +3 -0
- package/cjs/moonbeam/events.js +3 -0
- package/cjs/moonbeam/index.js +19 -0
- package/cjs/moonbeam/query.js +3 -0
- package/cjs/moonbeam/rpc.js +3 -0
- package/cjs/moonbeam/runtime.js +3 -0
- package/cjs/moonbeam/tx.js +3 -0
- package/cjs/moonbeam/types.js +3 -0
- package/cjs/package.json +1 -0
- package/cjs/packageInfo.js +5 -0
- package/cjs/polkadot/consts.js +3 -0
- package/cjs/polkadot/errors.js +3 -0
- package/cjs/polkadot/events.js +3 -0
- package/cjs/polkadot/index.js +19 -0
- package/cjs/polkadot/query.js +3 -0
- package/cjs/polkadot/rpc.js +3 -0
- package/cjs/polkadot/runtime.js +3 -0
- package/cjs/polkadot/tx.js +3 -0
- package/cjs/polkadot/types.js +3 -0
- package/cjs/polkadotAssetHub/consts.js +3 -0
- package/cjs/polkadotAssetHub/errors.js +3 -0
- package/cjs/polkadotAssetHub/events.js +3 -0
- package/cjs/polkadotAssetHub/index.js +19 -0
- package/cjs/polkadotAssetHub/query.js +3 -0
- package/cjs/polkadotAssetHub/rpc.js +3 -0
- package/cjs/polkadotAssetHub/runtime.js +3 -0
- package/cjs/polkadotAssetHub/tx.js +3 -0
- package/cjs/polkadotAssetHub/types.js +3 -0
- package/cjs/rococoAssetHub/consts.js +3 -0
- package/cjs/rococoAssetHub/errors.js +3 -0
- package/cjs/rococoAssetHub/events.js +3 -0
- package/cjs/rococoAssetHub/index.js +19 -0
- package/cjs/rococoAssetHub/query.js +3 -0
- package/cjs/rococoAssetHub/rpc.js +3 -0
- package/cjs/rococoAssetHub/runtime.js +3 -0
- package/cjs/rococoAssetHub/tx.js +3 -0
- package/cjs/rococoAssetHub/types.js +3 -0
- package/cjs/substrate/consts.js +3 -0
- package/cjs/substrate/errors.js +3 -0
- package/cjs/substrate/events.js +3 -0
- package/cjs/substrate/index.js +19 -0
- package/cjs/substrate/query.js +3 -0
- package/cjs/substrate/rpc.js +3 -0
- package/cjs/substrate/runtime.js +3 -0
- package/cjs/substrate/tx.js +3 -0
- package/cjs/substrate/types.js +3 -0
- package/cjs/westendAssetHub/consts.js +3 -0
- package/cjs/westendAssetHub/errors.js +3 -0
- package/cjs/westendAssetHub/events.js +3 -0
- package/cjs/westendAssetHub/index.js +19 -0
- package/cjs/westendAssetHub/query.js +3 -0
- package/cjs/westendAssetHub/rpc.js +3 -0
- package/cjs/westendAssetHub/runtime.js +3 -0
- package/cjs/westendAssetHub/tx.js +3 -0
- package/cjs/westendAssetHub/types.js +3 -0
- package/index.d.ts +5 -0
- package/index.js +1 -0
- package/kusama/consts.d.ts +1427 -0
- package/kusama/consts.js +2 -0
- package/kusama/errors.d.ts +2494 -0
- package/kusama/errors.js +2 -0
- package/kusama/events.d.ts +2960 -0
- package/kusama/events.js +2 -0
- package/kusama/index.d.ts +19 -0
- package/kusama/index.js +3 -0
- package/kusama/query.d.ts +3251 -0
- package/kusama/query.js +2 -0
- package/kusama/rpc.d.ts +726 -0
- package/kusama/rpc.js +2 -0
- package/kusama/runtime.d.ts +844 -0
- package/kusama/runtime.js +2 -0
- package/kusama/tx.d.ts +6014 -0
- package/kusama/tx.js +2 -0
- package/kusama/types.d.ts +15903 -0
- package/kusama/types.js +2 -0
- package/kusamaAssetHub/consts.d.ts +632 -0
- package/kusamaAssetHub/consts.js +2 -0
- package/kusamaAssetHub/errors.d.ts +1164 -0
- package/kusamaAssetHub/errors.js +2 -0
- package/kusamaAssetHub/events.d.ts +2162 -0
- package/kusamaAssetHub/events.js +2 -0
- package/kusamaAssetHub/index.d.ts +19 -0
- package/kusamaAssetHub/index.js +3 -0
- package/kusamaAssetHub/query.d.ts +1301 -0
- package/kusamaAssetHub/query.js +2 -0
- package/kusamaAssetHub/rpc.d.ts +590 -0
- package/kusamaAssetHub/rpc.js +2 -0
- package/kusamaAssetHub/runtime.d.ts +402 -0
- package/kusamaAssetHub/runtime.js +2 -0
- package/kusamaAssetHub/tx.d.ts +4217 -0
- package/kusamaAssetHub/tx.js +2 -0
- package/kusamaAssetHub/types.d.ts +10418 -0
- package/kusamaAssetHub/types.js +2 -0
- package/moonbeam/consts.d.ts +961 -0
- package/moonbeam/consts.js +2 -0
- package/moonbeam/errors.d.ts +1797 -0
- package/moonbeam/errors.js +2 -0
- package/moonbeam/events.d.ts +2840 -0
- package/moonbeam/events.js +2 -0
- package/moonbeam/index.d.ts +19 -0
- package/moonbeam/index.js +3 -0
- package/moonbeam/query.d.ts +2027 -0
- package/moonbeam/query.js +2 -0
- package/moonbeam/rpc.d.ts +809 -0
- package/moonbeam/rpc.js +2 -0
- package/moonbeam/runtime.d.ts +506 -0
- package/moonbeam/runtime.js +2 -0
- package/moonbeam/tx.d.ts +5205 -0
- package/moonbeam/tx.js +2 -0
- package/moonbeam/types.d.ts +12349 -0
- package/moonbeam/types.js +2 -0
- package/package.json +33 -0
- package/packageInfo.d.ts +4 -0
- package/packageInfo.js +3 -0
- package/polkadot/consts.d.ts +1160 -0
- package/polkadot/consts.js +2 -0
- package/polkadot/errors.d.ts +2020 -0
- package/polkadot/errors.js +2 -0
- package/polkadot/events.d.ts +2235 -0
- package/polkadot/events.js +2 -0
- package/polkadot/index.d.ts +19 -0
- package/polkadot/index.js +3 -0
- package/polkadot/query.d.ts +2811 -0
- package/polkadot/query.js +2 -0
- package/polkadot/rpc.d.ts +726 -0
- package/polkadot/rpc.js +2 -0
- package/polkadot/runtime.d.ts +844 -0
- package/polkadot/runtime.js +2 -0
- package/polkadot/tx.d.ts +5009 -0
- package/polkadot/tx.js +2 -0
- package/polkadot/types.d.ts +13729 -0
- package/polkadot/types.js +2 -0
- package/polkadotAssetHub/consts.d.ts +524 -0
- package/polkadotAssetHub/consts.js +2 -0
- package/polkadotAssetHub/errors.d.ts +925 -0
- package/polkadotAssetHub/errors.js +2 -0
- package/polkadotAssetHub/events.d.ts +1787 -0
- package/polkadotAssetHub/events.js +2 -0
- package/polkadotAssetHub/index.d.ts +19 -0
- package/polkadotAssetHub/index.js +3 -0
- package/polkadotAssetHub/query.d.ts +1222 -0
- package/polkadotAssetHub/query.js +2 -0
- package/polkadotAssetHub/rpc.d.ts +590 -0
- package/polkadotAssetHub/rpc.js +2 -0
- package/polkadotAssetHub/runtime.d.ts +359 -0
- package/polkadotAssetHub/runtime.js +2 -0
- package/polkadotAssetHub/tx.d.ts +3492 -0
- package/polkadotAssetHub/tx.js +2 -0
- package/polkadotAssetHub/types.d.ts +9164 -0
- package/polkadotAssetHub/types.js +2 -0
- package/rococoAssetHub/consts.d.ts +658 -0
- package/rococoAssetHub/consts.js +2 -0
- package/rococoAssetHub/errors.d.ts +1231 -0
- package/rococoAssetHub/errors.js +2 -0
- package/rococoAssetHub/events.d.ts +2172 -0
- package/rococoAssetHub/events.js +2 -0
- package/rococoAssetHub/index.d.ts +19 -0
- package/rococoAssetHub/index.js +3 -0
- package/rococoAssetHub/query.d.ts +1269 -0
- package/rococoAssetHub/query.js +2 -0
- package/rococoAssetHub/rpc.d.ts +590 -0
- package/rococoAssetHub/rpc.js +2 -0
- package/rococoAssetHub/runtime.d.ts +428 -0
- package/rococoAssetHub/runtime.js +2 -0
- package/rococoAssetHub/tx.d.ts +4307 -0
- package/rococoAssetHub/tx.js +2 -0
- package/rococoAssetHub/types.d.ts +11066 -0
- package/rococoAssetHub/types.js +2 -0
- package/substrate/consts.d.ts +1971 -0
- package/substrate/consts.js +2 -0
- package/substrate/errors.d.ts +3337 -0
- package/substrate/errors.js +2 -0
- package/substrate/events.d.ts +4777 -0
- package/substrate/events.js +2 -0
- package/substrate/index.d.ts +19 -0
- package/substrate/index.js +3 -0
- package/substrate/query.d.ts +3350 -0
- package/substrate/query.js +2 -0
- package/substrate/rpc.d.ts +718 -0
- package/substrate/rpc.js +2 -0
- package/substrate/runtime.d.ts +708 -0
- package/substrate/runtime.js +2 -0
- package/substrate/tx.d.ts +8800 -0
- package/substrate/tx.js +2 -0
- package/substrate/types.d.ts +20332 -0
- package/substrate/types.js +2 -0
- package/westendAssetHub/consts.d.ts +658 -0
- package/westendAssetHub/consts.js +2 -0
- package/westendAssetHub/errors.d.ts +1231 -0
- package/westendAssetHub/errors.js +2 -0
- package/westendAssetHub/events.d.ts +2172 -0
- package/westendAssetHub/events.js +2 -0
- package/westendAssetHub/index.d.ts +19 -0
- package/westendAssetHub/index.js +3 -0
- package/westendAssetHub/query.d.ts +1269 -0
- package/westendAssetHub/query.js +2 -0
- package/westendAssetHub/rpc.d.ts +590 -0
- package/westendAssetHub/rpc.js +2 -0
- package/westendAssetHub/runtime.d.ts +456 -0
- package/westendAssetHub/runtime.js +2 -0
- package/westendAssetHub/tx.d.ts +4307 -0
- package/westendAssetHub/tx.js +2 -0
- package/westendAssetHub/types.d.ts +11062 -0
- package/westendAssetHub/types.js +2 -0
package/aleph/query.d.ts
ADDED
|
@@ -0,0 +1,1271 @@
|
|
|
1
|
+
import type { GenericChainStorage, GenericStorageQuery } from '@dedot/types';
|
|
2
|
+
import type { AccountId32Like, H256, Bytes, Digest, Phase, FixedBytes, FixedU128, AccountId32, Perbill, Percent, BytesLike, Data, Perquintill } from '@dedot/codecs';
|
|
3
|
+
import type { FrameSystemAccountInfo, FrameSupportDispatchPerDispatchClass, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, PalletSchedulerScheduled, SpConsensusAuraSr25519AppSr25519Public, SpConsensusSlotsSlot, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBalancesIdAmount, PalletBalancesIdAmount002, PalletTransactionPaymentReleases, PalletStakingStakingLedger, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStakingNominations, PalletStakingActiveEraInfo, PalletStakingExposure, PalletStakingEraRewardPoints, PalletStakingForcing, PalletStakingUnappliedSlash, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, AlephRuntimeSessionKeys, SpCoreCryptoKeyTypeId, PrimitivesAppPublic, PrimitivesVersionChange, PrimitivesCommitteeSeats, PrimitivesEraValidators, PrimitivesElectionOpenness, PalletTreasuryProposal, PalletVestingVestingInfo, PalletVestingReleases, PalletMultisigMultisig, PalletContractsWasmCodeInfo, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletNominationPoolsPoolMember, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletNominationPoolsClaimPermission, PalletIdentityRegistration, PalletIdentityRegistrarInfo, PalletCommitteeManagementValidatorTotalRewards, PrimitivesBanConfig, PrimitivesBanInfo, PalletCommitteeManagementCurrentAndNextSessionValidators } from './types';
|
|
4
|
+
export interface ChainStorage extends GenericChainStorage {
|
|
5
|
+
/**
|
|
6
|
+
* Pallet `System`'s storage queries
|
|
7
|
+
**/
|
|
8
|
+
system: {
|
|
9
|
+
/**
|
|
10
|
+
* The full account information for a particular account ID.
|
|
11
|
+
*
|
|
12
|
+
* @param {AccountId32Like} arg
|
|
13
|
+
* @param {Callback<FrameSystemAccountInfo> =} callback
|
|
14
|
+
**/
|
|
15
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => FrameSystemAccountInfo>;
|
|
16
|
+
/**
|
|
17
|
+
* Total extrinsics count for the current block.
|
|
18
|
+
*
|
|
19
|
+
* @param {Callback<number | undefined> =} callback
|
|
20
|
+
**/
|
|
21
|
+
extrinsicCount: GenericStorageQuery<() => number | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* The current weight for the block.
|
|
24
|
+
*
|
|
25
|
+
* @param {Callback<FrameSupportDispatchPerDispatchClass> =} callback
|
|
26
|
+
**/
|
|
27
|
+
blockWeight: GenericStorageQuery<() => FrameSupportDispatchPerDispatchClass>;
|
|
28
|
+
/**
|
|
29
|
+
* Total length (in bytes) for all extrinsics put together, for the current block.
|
|
30
|
+
*
|
|
31
|
+
* @param {Callback<number | undefined> =} callback
|
|
32
|
+
**/
|
|
33
|
+
allExtrinsicsLen: GenericStorageQuery<() => number | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Map of block numbers to block hashes.
|
|
36
|
+
*
|
|
37
|
+
* @param {number} arg
|
|
38
|
+
* @param {Callback<H256> =} callback
|
|
39
|
+
**/
|
|
40
|
+
blockHash: GenericStorageQuery<(arg: number) => H256>;
|
|
41
|
+
/**
|
|
42
|
+
* Extrinsics data for the current block (maps an extrinsic's index to its data).
|
|
43
|
+
*
|
|
44
|
+
* @param {number} arg
|
|
45
|
+
* @param {Callback<Bytes> =} callback
|
|
46
|
+
**/
|
|
47
|
+
extrinsicData: GenericStorageQuery<(arg: number) => Bytes>;
|
|
48
|
+
/**
|
|
49
|
+
* The current block number being processed. Set by `execute_block`.
|
|
50
|
+
*
|
|
51
|
+
* @param {Callback<number> =} callback
|
|
52
|
+
**/
|
|
53
|
+
number: GenericStorageQuery<() => number>;
|
|
54
|
+
/**
|
|
55
|
+
* Hash of the previous block.
|
|
56
|
+
*
|
|
57
|
+
* @param {Callback<H256> =} callback
|
|
58
|
+
**/
|
|
59
|
+
parentHash: GenericStorageQuery<() => H256>;
|
|
60
|
+
/**
|
|
61
|
+
* Digest of the current block, also part of the block header.
|
|
62
|
+
*
|
|
63
|
+
* @param {Callback<Digest> =} callback
|
|
64
|
+
**/
|
|
65
|
+
digest: GenericStorageQuery<() => Digest>;
|
|
66
|
+
/**
|
|
67
|
+
* Events deposited for the current block.
|
|
68
|
+
*
|
|
69
|
+
* NOTE: The item is unbound and should therefore never be read on chain.
|
|
70
|
+
* It could otherwise inflate the PoV size of a block.
|
|
71
|
+
*
|
|
72
|
+
* Events have a large in-memory size. Box the events to not go out-of-memory
|
|
73
|
+
* just in case someone still reads them from within the runtime.
|
|
74
|
+
*
|
|
75
|
+
* @param {Callback<Array<FrameSystemEventRecord>> =} callback
|
|
76
|
+
**/
|
|
77
|
+
events: GenericStorageQuery<() => Array<FrameSystemEventRecord>>;
|
|
78
|
+
/**
|
|
79
|
+
* The number of events in the `Events<T>` list.
|
|
80
|
+
*
|
|
81
|
+
* @param {Callback<number> =} callback
|
|
82
|
+
**/
|
|
83
|
+
eventCount: GenericStorageQuery<() => number>;
|
|
84
|
+
/**
|
|
85
|
+
* Mapping between a topic (represented by T::Hash) and a vector of indexes
|
|
86
|
+
* of events in the `<Events<T>>` list.
|
|
87
|
+
*
|
|
88
|
+
* All topic vectors have deterministic storage locations depending on the topic. This
|
|
89
|
+
* allows light-clients to leverage the changes trie storage tracking mechanism and
|
|
90
|
+
* in case of changes fetch the list of events of interest.
|
|
91
|
+
*
|
|
92
|
+
* The value has the type `(BlockNumberFor<T>, EventIndex)` because if we used only just
|
|
93
|
+
* the `EventIndex` then in case if the topic has the same contents on the next block
|
|
94
|
+
* no notification will be triggered thus the event might be lost.
|
|
95
|
+
*
|
|
96
|
+
* @param {H256} arg
|
|
97
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
98
|
+
**/
|
|
99
|
+
eventTopics: GenericStorageQuery<(arg: H256) => Array<[number, number]>>;
|
|
100
|
+
/**
|
|
101
|
+
* Stores the `spec_version` and `spec_name` of when the last runtime upgrade happened.
|
|
102
|
+
*
|
|
103
|
+
* @param {Callback<FrameSystemLastRuntimeUpgradeInfo | undefined> =} callback
|
|
104
|
+
**/
|
|
105
|
+
lastRuntimeUpgrade: GenericStorageQuery<() => FrameSystemLastRuntimeUpgradeInfo | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* True if we have upgraded so that `type RefCount` is `u32`. False (default) if not.
|
|
108
|
+
*
|
|
109
|
+
* @param {Callback<boolean> =} callback
|
|
110
|
+
**/
|
|
111
|
+
upgradedToU32RefCount: GenericStorageQuery<() => boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* True if we have upgraded so that AccountInfo contains three types of `RefCount`. False
|
|
114
|
+
* (default) if not.
|
|
115
|
+
*
|
|
116
|
+
* @param {Callback<boolean> =} callback
|
|
117
|
+
**/
|
|
118
|
+
upgradedToTripleRefCount: GenericStorageQuery<() => boolean>;
|
|
119
|
+
/**
|
|
120
|
+
* The execution phase of the block.
|
|
121
|
+
*
|
|
122
|
+
* @param {Callback<Phase | undefined> =} callback
|
|
123
|
+
**/
|
|
124
|
+
executionPhase: GenericStorageQuery<() => Phase | undefined>;
|
|
125
|
+
/**
|
|
126
|
+
* Generic pallet storage query
|
|
127
|
+
**/
|
|
128
|
+
[storage: string]: GenericStorageQuery;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Pallet `RandomnessCollectiveFlip`'s storage queries
|
|
132
|
+
**/
|
|
133
|
+
randomnessCollectiveFlip: {
|
|
134
|
+
/**
|
|
135
|
+
* Series of block headers from the last 81 blocks that acts as random seed material. This
|
|
136
|
+
* is arranged as a ring buffer with `block_number % 81` being the index into the `Vec` of
|
|
137
|
+
* the oldest hash.
|
|
138
|
+
*
|
|
139
|
+
* @param {Callback<Array<H256>> =} callback
|
|
140
|
+
**/
|
|
141
|
+
randomMaterial: GenericStorageQuery<() => Array<H256>>;
|
|
142
|
+
/**
|
|
143
|
+
* Generic pallet storage query
|
|
144
|
+
**/
|
|
145
|
+
[storage: string]: GenericStorageQuery;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Pallet `Scheduler`'s storage queries
|
|
149
|
+
**/
|
|
150
|
+
scheduler: {
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @param {Callback<number | undefined> =} callback
|
|
154
|
+
**/
|
|
155
|
+
incompleteSince: GenericStorageQuery<() => number | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* Items to be executed, indexed by the block number that they should be executed on.
|
|
158
|
+
*
|
|
159
|
+
* @param {number} arg
|
|
160
|
+
* @param {Callback<Array<PalletSchedulerScheduled | undefined>> =} callback
|
|
161
|
+
**/
|
|
162
|
+
agenda: GenericStorageQuery<(arg: number) => Array<PalletSchedulerScheduled | undefined>>;
|
|
163
|
+
/**
|
|
164
|
+
* Lookup from a name to the block number and index of the task.
|
|
165
|
+
*
|
|
166
|
+
* For v3 -> v4 the previously unbounded identities are Blake2-256 hashed to form the v4
|
|
167
|
+
* identities.
|
|
168
|
+
*
|
|
169
|
+
* @param {FixedBytes<32>} arg
|
|
170
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
171
|
+
**/
|
|
172
|
+
lookup: GenericStorageQuery<(arg: FixedBytes<32>) => [number, number] | undefined>;
|
|
173
|
+
/**
|
|
174
|
+
* Generic pallet storage query
|
|
175
|
+
**/
|
|
176
|
+
[storage: string]: GenericStorageQuery;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Pallet `Aura`'s storage queries
|
|
180
|
+
**/
|
|
181
|
+
aura: {
|
|
182
|
+
/**
|
|
183
|
+
* The current authority set.
|
|
184
|
+
*
|
|
185
|
+
* @param {Callback<Array<SpConsensusAuraSr25519AppSr25519Public>> =} callback
|
|
186
|
+
**/
|
|
187
|
+
authorities: GenericStorageQuery<() => Array<SpConsensusAuraSr25519AppSr25519Public>>;
|
|
188
|
+
/**
|
|
189
|
+
* The current slot of this block.
|
|
190
|
+
*
|
|
191
|
+
* This will be set in `on_initialize`.
|
|
192
|
+
*
|
|
193
|
+
* @param {Callback<SpConsensusSlotsSlot> =} callback
|
|
194
|
+
**/
|
|
195
|
+
currentSlot: GenericStorageQuery<() => SpConsensusSlotsSlot>;
|
|
196
|
+
/**
|
|
197
|
+
* Generic pallet storage query
|
|
198
|
+
**/
|
|
199
|
+
[storage: string]: GenericStorageQuery;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* Pallet `Timestamp`'s storage queries
|
|
203
|
+
**/
|
|
204
|
+
timestamp: {
|
|
205
|
+
/**
|
|
206
|
+
* Current time for the current block.
|
|
207
|
+
*
|
|
208
|
+
* @param {Callback<bigint> =} callback
|
|
209
|
+
**/
|
|
210
|
+
now: GenericStorageQuery<() => bigint>;
|
|
211
|
+
/**
|
|
212
|
+
* Did the timestamp get updated in this block?
|
|
213
|
+
*
|
|
214
|
+
* @param {Callback<boolean> =} callback
|
|
215
|
+
**/
|
|
216
|
+
didUpdate: GenericStorageQuery<() => boolean>;
|
|
217
|
+
/**
|
|
218
|
+
* Generic pallet storage query
|
|
219
|
+
**/
|
|
220
|
+
[storage: string]: GenericStorageQuery;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Pallet `Balances`'s storage queries
|
|
224
|
+
**/
|
|
225
|
+
balances: {
|
|
226
|
+
/**
|
|
227
|
+
* The total units issued in the system.
|
|
228
|
+
*
|
|
229
|
+
* @param {Callback<bigint> =} callback
|
|
230
|
+
**/
|
|
231
|
+
totalIssuance: GenericStorageQuery<() => bigint>;
|
|
232
|
+
/**
|
|
233
|
+
* The total units of outstanding deactivated balance in the system.
|
|
234
|
+
*
|
|
235
|
+
* @param {Callback<bigint> =} callback
|
|
236
|
+
**/
|
|
237
|
+
inactiveIssuance: GenericStorageQuery<() => bigint>;
|
|
238
|
+
/**
|
|
239
|
+
* The Balances pallet example of storing the balance of an account.
|
|
240
|
+
*
|
|
241
|
+
* # Example
|
|
242
|
+
*
|
|
243
|
+
* ```nocompile
|
|
244
|
+
* impl pallet_balances::Config for Runtime {
|
|
245
|
+
* type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
248
|
+
*
|
|
249
|
+
* You can also store the balance of an account in the `System` pallet.
|
|
250
|
+
*
|
|
251
|
+
* # Example
|
|
252
|
+
*
|
|
253
|
+
* ```nocompile
|
|
254
|
+
* impl pallet_balances::Config for Runtime {
|
|
255
|
+
* type AccountStore = System
|
|
256
|
+
* }
|
|
257
|
+
* ```
|
|
258
|
+
*
|
|
259
|
+
* But this comes with tradeoffs, storing account balances in the system pallet stores
|
|
260
|
+
* `frame_system` data alongside the account data contrary to storing account balances in the
|
|
261
|
+
* `Balances` pallet, which uses a `StorageMap` to store balances data only.
|
|
262
|
+
* NOTE: This is only used in the case that this pallet is used to store balances.
|
|
263
|
+
*
|
|
264
|
+
* @param {AccountId32Like} arg
|
|
265
|
+
* @param {Callback<PalletBalancesAccountData> =} callback
|
|
266
|
+
**/
|
|
267
|
+
account: GenericStorageQuery<(arg: AccountId32Like) => PalletBalancesAccountData>;
|
|
268
|
+
/**
|
|
269
|
+
* Any liquidity locks on some account balances.
|
|
270
|
+
* NOTE: Should only be accessed when setting, changing and freeing a lock.
|
|
271
|
+
*
|
|
272
|
+
* @param {AccountId32Like} arg
|
|
273
|
+
* @param {Callback<Array<PalletBalancesBalanceLock>> =} callback
|
|
274
|
+
**/
|
|
275
|
+
locks: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesBalanceLock>>;
|
|
276
|
+
/**
|
|
277
|
+
* Named reserves on some account balances.
|
|
278
|
+
*
|
|
279
|
+
* @param {AccountId32Like} arg
|
|
280
|
+
* @param {Callback<Array<PalletBalancesReserveData>> =} callback
|
|
281
|
+
**/
|
|
282
|
+
reserves: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesReserveData>>;
|
|
283
|
+
/**
|
|
284
|
+
* Holds on account balances.
|
|
285
|
+
*
|
|
286
|
+
* @param {AccountId32Like} arg
|
|
287
|
+
* @param {Callback<Array<PalletBalancesIdAmount>> =} callback
|
|
288
|
+
**/
|
|
289
|
+
holds: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount>>;
|
|
290
|
+
/**
|
|
291
|
+
* Freeze locks on account balances.
|
|
292
|
+
*
|
|
293
|
+
* @param {AccountId32Like} arg
|
|
294
|
+
* @param {Callback<Array<PalletBalancesIdAmount002>> =} callback
|
|
295
|
+
**/
|
|
296
|
+
freezes: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletBalancesIdAmount002>>;
|
|
297
|
+
/**
|
|
298
|
+
* Generic pallet storage query
|
|
299
|
+
**/
|
|
300
|
+
[storage: string]: GenericStorageQuery;
|
|
301
|
+
};
|
|
302
|
+
/**
|
|
303
|
+
* Pallet `TransactionPayment`'s storage queries
|
|
304
|
+
**/
|
|
305
|
+
transactionPayment: {
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @param {Callback<FixedU128> =} callback
|
|
309
|
+
**/
|
|
310
|
+
nextFeeMultiplier: GenericStorageQuery<() => FixedU128>;
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @param {Callback<PalletTransactionPaymentReleases> =} callback
|
|
314
|
+
**/
|
|
315
|
+
storageVersion: GenericStorageQuery<() => PalletTransactionPaymentReleases>;
|
|
316
|
+
/**
|
|
317
|
+
* Generic pallet storage query
|
|
318
|
+
**/
|
|
319
|
+
[storage: string]: GenericStorageQuery;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Pallet `Authorship`'s storage queries
|
|
323
|
+
**/
|
|
324
|
+
authorship: {
|
|
325
|
+
/**
|
|
326
|
+
* Author of current block.
|
|
327
|
+
*
|
|
328
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
329
|
+
**/
|
|
330
|
+
author: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
331
|
+
/**
|
|
332
|
+
* Generic pallet storage query
|
|
333
|
+
**/
|
|
334
|
+
[storage: string]: GenericStorageQuery;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Pallet `Staking`'s storage queries
|
|
338
|
+
**/
|
|
339
|
+
staking: {
|
|
340
|
+
/**
|
|
341
|
+
* The ideal number of active validators.
|
|
342
|
+
*
|
|
343
|
+
* @param {Callback<number> =} callback
|
|
344
|
+
**/
|
|
345
|
+
validatorCount: GenericStorageQuery<() => number>;
|
|
346
|
+
/**
|
|
347
|
+
* Minimum number of staking participants before emergency conditions are imposed.
|
|
348
|
+
*
|
|
349
|
+
* @param {Callback<number> =} callback
|
|
350
|
+
**/
|
|
351
|
+
minimumValidatorCount: GenericStorageQuery<() => number>;
|
|
352
|
+
/**
|
|
353
|
+
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
354
|
+
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
355
|
+
* invulnerables) and restricted to testnets.
|
|
356
|
+
*
|
|
357
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
358
|
+
**/
|
|
359
|
+
invulnerables: GenericStorageQuery<() => Array<AccountId32>>;
|
|
360
|
+
/**
|
|
361
|
+
* Map from all locked "stash" accounts to the controller account.
|
|
362
|
+
*
|
|
363
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
364
|
+
*
|
|
365
|
+
* @param {AccountId32Like} arg
|
|
366
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
367
|
+
**/
|
|
368
|
+
bonded: GenericStorageQuery<(arg: AccountId32Like) => AccountId32 | undefined>;
|
|
369
|
+
/**
|
|
370
|
+
* The minimum active bond to become and maintain the role of a nominator.
|
|
371
|
+
*
|
|
372
|
+
* @param {Callback<bigint> =} callback
|
|
373
|
+
**/
|
|
374
|
+
minNominatorBond: GenericStorageQuery<() => bigint>;
|
|
375
|
+
/**
|
|
376
|
+
* The minimum active bond to become and maintain the role of a validator.
|
|
377
|
+
*
|
|
378
|
+
* @param {Callback<bigint> =} callback
|
|
379
|
+
**/
|
|
380
|
+
minValidatorBond: GenericStorageQuery<() => bigint>;
|
|
381
|
+
/**
|
|
382
|
+
* The minimum active nominator stake of the last successful election.
|
|
383
|
+
*
|
|
384
|
+
* @param {Callback<bigint> =} callback
|
|
385
|
+
**/
|
|
386
|
+
minimumActiveStake: GenericStorageQuery<() => bigint>;
|
|
387
|
+
/**
|
|
388
|
+
* The minimum amount of commission that validators can set.
|
|
389
|
+
*
|
|
390
|
+
* If set to `0`, no limit exists.
|
|
391
|
+
*
|
|
392
|
+
* @param {Callback<Perbill> =} callback
|
|
393
|
+
**/
|
|
394
|
+
minCommission: GenericStorageQuery<() => Perbill>;
|
|
395
|
+
/**
|
|
396
|
+
* Map from all (unlocked) "controller" accounts to the info regarding the staking.
|
|
397
|
+
*
|
|
398
|
+
* @param {AccountId32Like} arg
|
|
399
|
+
* @param {Callback<PalletStakingStakingLedger | undefined> =} callback
|
|
400
|
+
**/
|
|
401
|
+
ledger: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingStakingLedger | undefined>;
|
|
402
|
+
/**
|
|
403
|
+
* Where the reward payment should be made. Keyed by stash.
|
|
404
|
+
*
|
|
405
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
406
|
+
*
|
|
407
|
+
* @param {AccountId32Like} arg
|
|
408
|
+
* @param {Callback<PalletStakingRewardDestination> =} callback
|
|
409
|
+
**/
|
|
410
|
+
payee: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingRewardDestination>;
|
|
411
|
+
/**
|
|
412
|
+
* The map from (wannabe) validator stash key to the preferences of that validator.
|
|
413
|
+
*
|
|
414
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
415
|
+
*
|
|
416
|
+
* @param {AccountId32Like} arg
|
|
417
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
418
|
+
**/
|
|
419
|
+
validators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingValidatorPrefs>;
|
|
420
|
+
/**
|
|
421
|
+
* Counter for the related counted storage map
|
|
422
|
+
*
|
|
423
|
+
* @param {Callback<number> =} callback
|
|
424
|
+
**/
|
|
425
|
+
counterForValidators: GenericStorageQuery<() => number>;
|
|
426
|
+
/**
|
|
427
|
+
* The maximum validator count before we stop allowing new validators to join.
|
|
428
|
+
*
|
|
429
|
+
* When this value is not set, no limits are enforced.
|
|
430
|
+
*
|
|
431
|
+
* @param {Callback<number | undefined> =} callback
|
|
432
|
+
**/
|
|
433
|
+
maxValidatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
434
|
+
/**
|
|
435
|
+
* The map from nominator stash key to their nomination preferences, namely the validators that
|
|
436
|
+
* they wish to support.
|
|
437
|
+
*
|
|
438
|
+
* Note that the keys of this storage map might become non-decodable in case the
|
|
439
|
+
* [`Config::MaxNominations`] configuration is decreased. In this rare case, these nominators
|
|
440
|
+
* are still existent in storage, their key is correct and retrievable (i.e. `contains_key`
|
|
441
|
+
* indicates that they exist), but their value cannot be decoded. Therefore, the non-decodable
|
|
442
|
+
* nominators will effectively not-exist, until they re-submit their preferences such that it
|
|
443
|
+
* is within the bounds of the newly set `Config::MaxNominations`.
|
|
444
|
+
*
|
|
445
|
+
* This implies that `::iter_keys().count()` and `::iter().count()` might return different
|
|
446
|
+
* values for this map. Moreover, the main `::count()` is aligned with the former, namely the
|
|
447
|
+
* number of keys that exist.
|
|
448
|
+
*
|
|
449
|
+
* Lastly, if any of the nominators become non-decodable, they can be chilled immediately via
|
|
450
|
+
* [`Call::chill_other`] dispatchable by anyone.
|
|
451
|
+
*
|
|
452
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
453
|
+
*
|
|
454
|
+
* @param {AccountId32Like} arg
|
|
455
|
+
* @param {Callback<PalletStakingNominations | undefined> =} callback
|
|
456
|
+
**/
|
|
457
|
+
nominators: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingNominations | undefined>;
|
|
458
|
+
/**
|
|
459
|
+
* Counter for the related counted storage map
|
|
460
|
+
*
|
|
461
|
+
* @param {Callback<number> =} callback
|
|
462
|
+
**/
|
|
463
|
+
counterForNominators: GenericStorageQuery<() => number>;
|
|
464
|
+
/**
|
|
465
|
+
* The maximum nominator count before we stop allowing new validators to join.
|
|
466
|
+
*
|
|
467
|
+
* When this value is not set, no limits are enforced.
|
|
468
|
+
*
|
|
469
|
+
* @param {Callback<number | undefined> =} callback
|
|
470
|
+
**/
|
|
471
|
+
maxNominatorsCount: GenericStorageQuery<() => number | undefined>;
|
|
472
|
+
/**
|
|
473
|
+
* The current era index.
|
|
474
|
+
*
|
|
475
|
+
* This is the latest planned era, depending on how the Session pallet queues the validator
|
|
476
|
+
* set, it might be active or not.
|
|
477
|
+
*
|
|
478
|
+
* @param {Callback<number | undefined> =} callback
|
|
479
|
+
**/
|
|
480
|
+
currentEra: GenericStorageQuery<() => number | undefined>;
|
|
481
|
+
/**
|
|
482
|
+
* The active era information, it holds index and start.
|
|
483
|
+
*
|
|
484
|
+
* The active era is the era being currently rewarded. Validator set of this era must be
|
|
485
|
+
* equal to [`SessionInterface::validators`].
|
|
486
|
+
*
|
|
487
|
+
* @param {Callback<PalletStakingActiveEraInfo | undefined> =} callback
|
|
488
|
+
**/
|
|
489
|
+
activeEra: GenericStorageQuery<() => PalletStakingActiveEraInfo | undefined>;
|
|
490
|
+
/**
|
|
491
|
+
* The session index at which the era start for the last `HISTORY_DEPTH` eras.
|
|
492
|
+
*
|
|
493
|
+
* Note: This tracks the starting session (i.e. session index when era start being active)
|
|
494
|
+
* for the eras in `[CurrentEra - HISTORY_DEPTH, CurrentEra]`.
|
|
495
|
+
*
|
|
496
|
+
* @param {number} arg
|
|
497
|
+
* @param {Callback<number | undefined> =} callback
|
|
498
|
+
**/
|
|
499
|
+
erasStartSessionIndex: GenericStorageQuery<(arg: number) => number | undefined>;
|
|
500
|
+
/**
|
|
501
|
+
* Exposure of validator at era.
|
|
502
|
+
*
|
|
503
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
504
|
+
*
|
|
505
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
506
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
507
|
+
*
|
|
508
|
+
* @param {[number, AccountId32Like]} arg
|
|
509
|
+
* @param {Callback<PalletStakingExposure> =} callback
|
|
510
|
+
**/
|
|
511
|
+
erasStakers: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
|
|
512
|
+
/**
|
|
513
|
+
* Clipped Exposure of validator at era.
|
|
514
|
+
*
|
|
515
|
+
* This is similar to [`ErasStakers`] but number of nominators exposed is reduced to the
|
|
516
|
+
* `T::MaxNominatorRewardedPerValidator` biggest stakers.
|
|
517
|
+
* (Note: the field `total` and `own` of the exposure remains unchanged).
|
|
518
|
+
* This is used to limit the i/o cost for the nominator payout.
|
|
519
|
+
*
|
|
520
|
+
* This is keyed fist by the era index to allow bulk deletion and then the stash account.
|
|
521
|
+
*
|
|
522
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
523
|
+
* If stakers hasn't been set or has been removed then empty exposure is returned.
|
|
524
|
+
*
|
|
525
|
+
* @param {[number, AccountId32Like]} arg
|
|
526
|
+
* @param {Callback<PalletStakingExposure> =} callback
|
|
527
|
+
**/
|
|
528
|
+
erasStakersClipped: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingExposure>;
|
|
529
|
+
/**
|
|
530
|
+
* Similar to `ErasStakers`, this holds the preferences of validators.
|
|
531
|
+
*
|
|
532
|
+
* This is keyed first by the era index to allow bulk deletion and then the stash account.
|
|
533
|
+
*
|
|
534
|
+
* Is it removed after `HISTORY_DEPTH` eras.
|
|
535
|
+
*
|
|
536
|
+
* @param {[number, AccountId32Like]} arg
|
|
537
|
+
* @param {Callback<PalletStakingValidatorPrefs> =} callback
|
|
538
|
+
**/
|
|
539
|
+
erasValidatorPrefs: GenericStorageQuery<(arg: [number, AccountId32Like]) => PalletStakingValidatorPrefs>;
|
|
540
|
+
/**
|
|
541
|
+
* The total validator era payout for the last `HISTORY_DEPTH` eras.
|
|
542
|
+
*
|
|
543
|
+
* Eras that haven't finished yet or has been removed doesn't have reward.
|
|
544
|
+
*
|
|
545
|
+
* @param {number} arg
|
|
546
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
547
|
+
**/
|
|
548
|
+
erasValidatorReward: GenericStorageQuery<(arg: number) => bigint | undefined>;
|
|
549
|
+
/**
|
|
550
|
+
* Rewards for the last `HISTORY_DEPTH` eras.
|
|
551
|
+
* If reward hasn't been set or has been removed then 0 reward is returned.
|
|
552
|
+
*
|
|
553
|
+
* @param {number} arg
|
|
554
|
+
* @param {Callback<PalletStakingEraRewardPoints> =} callback
|
|
555
|
+
**/
|
|
556
|
+
erasRewardPoints: GenericStorageQuery<(arg: number) => PalletStakingEraRewardPoints>;
|
|
557
|
+
/**
|
|
558
|
+
* The total amount staked for the last `HISTORY_DEPTH` eras.
|
|
559
|
+
* If total hasn't been set or has been removed then 0 stake is returned.
|
|
560
|
+
*
|
|
561
|
+
* @param {number} arg
|
|
562
|
+
* @param {Callback<bigint> =} callback
|
|
563
|
+
**/
|
|
564
|
+
erasTotalStake: GenericStorageQuery<(arg: number) => bigint>;
|
|
565
|
+
/**
|
|
566
|
+
* Mode of era forcing.
|
|
567
|
+
*
|
|
568
|
+
* @param {Callback<PalletStakingForcing> =} callback
|
|
569
|
+
**/
|
|
570
|
+
forceEra: GenericStorageQuery<() => PalletStakingForcing>;
|
|
571
|
+
/**
|
|
572
|
+
* The percentage of the slash that is distributed to reporters.
|
|
573
|
+
*
|
|
574
|
+
* The rest of the slashed value is handled by the `Slash`.
|
|
575
|
+
*
|
|
576
|
+
* @param {Callback<Perbill> =} callback
|
|
577
|
+
**/
|
|
578
|
+
slashRewardFraction: GenericStorageQuery<() => Perbill>;
|
|
579
|
+
/**
|
|
580
|
+
* The amount of currency given to reporters of a slash event which was
|
|
581
|
+
* canceled by extraordinary circumstances (e.g. governance).
|
|
582
|
+
*
|
|
583
|
+
* @param {Callback<bigint> =} callback
|
|
584
|
+
**/
|
|
585
|
+
canceledSlashPayout: GenericStorageQuery<() => bigint>;
|
|
586
|
+
/**
|
|
587
|
+
* All unapplied slashes that are queued for later.
|
|
588
|
+
*
|
|
589
|
+
* @param {number} arg
|
|
590
|
+
* @param {Callback<Array<PalletStakingUnappliedSlash>> =} callback
|
|
591
|
+
**/
|
|
592
|
+
unappliedSlashes: GenericStorageQuery<(arg: number) => Array<PalletStakingUnappliedSlash>>;
|
|
593
|
+
/**
|
|
594
|
+
* A mapping from still-bonded eras to the first session index of that era.
|
|
595
|
+
*
|
|
596
|
+
* Must contains information for eras for the range:
|
|
597
|
+
* `[active_era - bounding_duration; active_era]`
|
|
598
|
+
*
|
|
599
|
+
* @param {Callback<Array<[number, number]>> =} callback
|
|
600
|
+
**/
|
|
601
|
+
bondedEras: GenericStorageQuery<() => Array<[number, number]>>;
|
|
602
|
+
/**
|
|
603
|
+
* All slashing events on validators, mapped by era to the highest slash proportion
|
|
604
|
+
* and slash value of the era.
|
|
605
|
+
*
|
|
606
|
+
* @param {[number, AccountId32Like]} arg
|
|
607
|
+
* @param {Callback<[Perbill, bigint] | undefined> =} callback
|
|
608
|
+
**/
|
|
609
|
+
validatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => [Perbill, bigint] | undefined>;
|
|
610
|
+
/**
|
|
611
|
+
* All slashing events on nominators, mapped by era to the highest slash value of the era.
|
|
612
|
+
*
|
|
613
|
+
* @param {[number, AccountId32Like]} arg
|
|
614
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
615
|
+
**/
|
|
616
|
+
nominatorSlashInEra: GenericStorageQuery<(arg: [number, AccountId32Like]) => bigint | undefined>;
|
|
617
|
+
/**
|
|
618
|
+
* Slashing spans for stash accounts.
|
|
619
|
+
*
|
|
620
|
+
* @param {AccountId32Like} arg
|
|
621
|
+
* @param {Callback<PalletStakingSlashingSlashingSpans | undefined> =} callback
|
|
622
|
+
**/
|
|
623
|
+
slashingSpans: GenericStorageQuery<(arg: AccountId32Like) => PalletStakingSlashingSlashingSpans | undefined>;
|
|
624
|
+
/**
|
|
625
|
+
* Records information about the maximum slash of a stash within a slashing span,
|
|
626
|
+
* as well as how much reward has been paid out.
|
|
627
|
+
*
|
|
628
|
+
* @param {[AccountId32Like, number]} arg
|
|
629
|
+
* @param {Callback<PalletStakingSlashingSpanRecord> =} callback
|
|
630
|
+
**/
|
|
631
|
+
spanSlash: GenericStorageQuery<(arg: [AccountId32Like, number]) => PalletStakingSlashingSpanRecord>;
|
|
632
|
+
/**
|
|
633
|
+
* The last planned session scheduled by the session pallet.
|
|
634
|
+
*
|
|
635
|
+
* This is basically in sync with the call to [`pallet_session::SessionManager::new_session`].
|
|
636
|
+
*
|
|
637
|
+
* @param {Callback<number> =} callback
|
|
638
|
+
**/
|
|
639
|
+
currentPlannedSession: GenericStorageQuery<() => number>;
|
|
640
|
+
/**
|
|
641
|
+
* Indices of validators that have offended in the active era and whether they are currently
|
|
642
|
+
* disabled.
|
|
643
|
+
*
|
|
644
|
+
* This value should be a superset of disabled validators since not all offences lead to the
|
|
645
|
+
* validator being disabled (if there was no slash). This is needed to track the percentage of
|
|
646
|
+
* validators that have offended in the current era, ensuring a new era is forced if
|
|
647
|
+
* `OffendingValidatorsThreshold` is reached. The vec is always kept sorted so that we can find
|
|
648
|
+
* whether a given validator has previously offended using binary search. It gets cleared when
|
|
649
|
+
* the era ends.
|
|
650
|
+
*
|
|
651
|
+
* @param {Callback<Array<[number, boolean]>> =} callback
|
|
652
|
+
**/
|
|
653
|
+
offendingValidators: GenericStorageQuery<() => Array<[number, boolean]>>;
|
|
654
|
+
/**
|
|
655
|
+
* The threshold for when users can start calling `chill_other` for other validators /
|
|
656
|
+
* nominators. The threshold is compared to the actual number of validators / nominators
|
|
657
|
+
* (`CountFor*`) in the system compared to the configured max (`Max*Count`).
|
|
658
|
+
*
|
|
659
|
+
* @param {Callback<Percent | undefined> =} callback
|
|
660
|
+
**/
|
|
661
|
+
chillThreshold: GenericStorageQuery<() => Percent | undefined>;
|
|
662
|
+
/**
|
|
663
|
+
* Generic pallet storage query
|
|
664
|
+
**/
|
|
665
|
+
[storage: string]: GenericStorageQuery;
|
|
666
|
+
};
|
|
667
|
+
/**
|
|
668
|
+
* Pallet `History`'s storage queries
|
|
669
|
+
**/
|
|
670
|
+
history: {
|
|
671
|
+
/**
|
|
672
|
+
* Mapping from historical session indices to session-data root hash and validator count.
|
|
673
|
+
*
|
|
674
|
+
* @param {number} arg
|
|
675
|
+
* @param {Callback<[H256, number] | undefined> =} callback
|
|
676
|
+
**/
|
|
677
|
+
historicalSessions: GenericStorageQuery<(arg: number) => [H256, number] | undefined>;
|
|
678
|
+
/**
|
|
679
|
+
* The range of historical sessions we store. [first, last)
|
|
680
|
+
*
|
|
681
|
+
* @param {Callback<[number, number] | undefined> =} callback
|
|
682
|
+
**/
|
|
683
|
+
storedRange: GenericStorageQuery<() => [number, number] | undefined>;
|
|
684
|
+
/**
|
|
685
|
+
* Generic pallet storage query
|
|
686
|
+
**/
|
|
687
|
+
[storage: string]: GenericStorageQuery;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Pallet `Session`'s storage queries
|
|
691
|
+
**/
|
|
692
|
+
session: {
|
|
693
|
+
/**
|
|
694
|
+
* The current set of validators.
|
|
695
|
+
*
|
|
696
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
697
|
+
**/
|
|
698
|
+
validators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
699
|
+
/**
|
|
700
|
+
* Current index of the session.
|
|
701
|
+
*
|
|
702
|
+
* @param {Callback<number> =} callback
|
|
703
|
+
**/
|
|
704
|
+
currentIndex: GenericStorageQuery<() => number>;
|
|
705
|
+
/**
|
|
706
|
+
* True if the underlying economic identities or weighting behind the validators
|
|
707
|
+
* has changed in the queued validator set.
|
|
708
|
+
*
|
|
709
|
+
* @param {Callback<boolean> =} callback
|
|
710
|
+
**/
|
|
711
|
+
queuedChanged: GenericStorageQuery<() => boolean>;
|
|
712
|
+
/**
|
|
713
|
+
* The queued keys for the next session. When the next session begins, these keys
|
|
714
|
+
* will be used to determine the validator's session keys.
|
|
715
|
+
*
|
|
716
|
+
* @param {Callback<Array<[AccountId32, AlephRuntimeSessionKeys]>> =} callback
|
|
717
|
+
**/
|
|
718
|
+
queuedKeys: GenericStorageQuery<() => Array<[AccountId32, AlephRuntimeSessionKeys]>>;
|
|
719
|
+
/**
|
|
720
|
+
* Indices of disabled validators.
|
|
721
|
+
*
|
|
722
|
+
* The vec is always kept sorted so that we can find whether a given validator is
|
|
723
|
+
* disabled using binary search. It gets cleared when `on_session_ending` returns
|
|
724
|
+
* a new set of identities.
|
|
725
|
+
*
|
|
726
|
+
* @param {Callback<Array<number>> =} callback
|
|
727
|
+
**/
|
|
728
|
+
disabledValidators: GenericStorageQuery<() => Array<number>>;
|
|
729
|
+
/**
|
|
730
|
+
* The next session keys for a validator.
|
|
731
|
+
*
|
|
732
|
+
* @param {AccountId32Like} arg
|
|
733
|
+
* @param {Callback<AlephRuntimeSessionKeys | undefined> =} callback
|
|
734
|
+
**/
|
|
735
|
+
nextKeys: GenericStorageQuery<(arg: AccountId32Like) => AlephRuntimeSessionKeys | undefined>;
|
|
736
|
+
/**
|
|
737
|
+
* The owner of a key. The key is the `KeyTypeId` + the encoded key.
|
|
738
|
+
*
|
|
739
|
+
* @param {[SpCoreCryptoKeyTypeId, BytesLike]} arg
|
|
740
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
741
|
+
**/
|
|
742
|
+
keyOwner: GenericStorageQuery<(arg: [SpCoreCryptoKeyTypeId, BytesLike]) => AccountId32 | undefined>;
|
|
743
|
+
/**
|
|
744
|
+
* Generic pallet storage query
|
|
745
|
+
**/
|
|
746
|
+
[storage: string]: GenericStorageQuery;
|
|
747
|
+
};
|
|
748
|
+
/**
|
|
749
|
+
* Pallet `Aleph`'s storage queries
|
|
750
|
+
**/
|
|
751
|
+
aleph: {
|
|
752
|
+
/**
|
|
753
|
+
*
|
|
754
|
+
* @param {Callback<Array<PrimitivesAppPublic>> =} callback
|
|
755
|
+
**/
|
|
756
|
+
authorities: GenericStorageQuery<() => Array<PrimitivesAppPublic>>;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @param {Callback<Array<PrimitivesAppPublic>> =} callback
|
|
760
|
+
**/
|
|
761
|
+
nextAuthorities: GenericStorageQuery<() => Array<PrimitivesAppPublic>>;
|
|
762
|
+
/**
|
|
763
|
+
* Set of account ids that will be used as authorities in the next session
|
|
764
|
+
*
|
|
765
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
766
|
+
**/
|
|
767
|
+
nextFinalityCommittee: GenericStorageQuery<() => Array<AccountId32>>;
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @param {Callback<PrimitivesAppPublic | undefined> =} callback
|
|
771
|
+
**/
|
|
772
|
+
emergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
|
|
773
|
+
/**
|
|
774
|
+
*
|
|
775
|
+
* @param {Callback<PrimitivesAppPublic | undefined> =} callback
|
|
776
|
+
**/
|
|
777
|
+
queuedEmergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
|
|
778
|
+
/**
|
|
779
|
+
*
|
|
780
|
+
* @param {Callback<PrimitivesAppPublic | undefined> =} callback
|
|
781
|
+
**/
|
|
782
|
+
nextEmergencyFinalizer: GenericStorageQuery<() => PrimitivesAppPublic | undefined>;
|
|
783
|
+
/**
|
|
784
|
+
* Current finality version.
|
|
785
|
+
*
|
|
786
|
+
* @param {Callback<number> =} callback
|
|
787
|
+
**/
|
|
788
|
+
finalityVersion: GenericStorageQuery<() => number>;
|
|
789
|
+
/**
|
|
790
|
+
* Scheduled finality version change.
|
|
791
|
+
*
|
|
792
|
+
* @param {Callback<PrimitivesVersionChange | undefined> =} callback
|
|
793
|
+
**/
|
|
794
|
+
finalityScheduledVersionChange: GenericStorageQuery<() => PrimitivesVersionChange | undefined>;
|
|
795
|
+
/**
|
|
796
|
+
* Generic pallet storage query
|
|
797
|
+
**/
|
|
798
|
+
[storage: string]: GenericStorageQuery;
|
|
799
|
+
};
|
|
800
|
+
/**
|
|
801
|
+
* Pallet `Elections`'s storage queries
|
|
802
|
+
**/
|
|
803
|
+
elections: {
|
|
804
|
+
/**
|
|
805
|
+
* Desirable size of a committee, see [`CommitteeSeats`].
|
|
806
|
+
*
|
|
807
|
+
* @param {Callback<PrimitivesCommitteeSeats> =} callback
|
|
808
|
+
**/
|
|
809
|
+
committeeSize: GenericStorageQuery<() => PrimitivesCommitteeSeats>;
|
|
810
|
+
/**
|
|
811
|
+
* Desired size of a committee in effect from a new era.
|
|
812
|
+
*
|
|
813
|
+
* @param {Callback<PrimitivesCommitteeSeats> =} callback
|
|
814
|
+
**/
|
|
815
|
+
nextEraCommitteeSize: GenericStorageQuery<() => PrimitivesCommitteeSeats>;
|
|
816
|
+
/**
|
|
817
|
+
* Next era's list of reserved validators.
|
|
818
|
+
*
|
|
819
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
820
|
+
**/
|
|
821
|
+
nextEraReservedValidators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
822
|
+
/**
|
|
823
|
+
* Current era's list of reserved validators.
|
|
824
|
+
*
|
|
825
|
+
* @param {Callback<PrimitivesEraValidators> =} callback
|
|
826
|
+
**/
|
|
827
|
+
currentEraValidators: GenericStorageQuery<() => PrimitivesEraValidators>;
|
|
828
|
+
/**
|
|
829
|
+
* Next era's list of non reserved validators.
|
|
830
|
+
*
|
|
831
|
+
* @param {Callback<Array<AccountId32>> =} callback
|
|
832
|
+
**/
|
|
833
|
+
nextEraNonReservedValidators: GenericStorageQuery<() => Array<AccountId32>>;
|
|
834
|
+
/**
|
|
835
|
+
* Openness of the elections, whether we allow all candidates that bonded enough tokens or
|
|
836
|
+
* the validators list is managed by sudo
|
|
837
|
+
*
|
|
838
|
+
* @param {Callback<PrimitivesElectionOpenness> =} callback
|
|
839
|
+
**/
|
|
840
|
+
openness: GenericStorageQuery<() => PrimitivesElectionOpenness>;
|
|
841
|
+
/**
|
|
842
|
+
* Generic pallet storage query
|
|
843
|
+
**/
|
|
844
|
+
[storage: string]: GenericStorageQuery;
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* Pallet `Treasury`'s storage queries
|
|
848
|
+
**/
|
|
849
|
+
treasury: {
|
|
850
|
+
/**
|
|
851
|
+
* Number of proposals that have been made.
|
|
852
|
+
*
|
|
853
|
+
* @param {Callback<number> =} callback
|
|
854
|
+
**/
|
|
855
|
+
proposalCount: GenericStorageQuery<() => number>;
|
|
856
|
+
/**
|
|
857
|
+
* Proposals that have been made.
|
|
858
|
+
*
|
|
859
|
+
* @param {number} arg
|
|
860
|
+
* @param {Callback<PalletTreasuryProposal | undefined> =} callback
|
|
861
|
+
**/
|
|
862
|
+
proposals: GenericStorageQuery<(arg: number) => PalletTreasuryProposal | undefined>;
|
|
863
|
+
/**
|
|
864
|
+
* The amount which has been reported as inactive to Currency.
|
|
865
|
+
*
|
|
866
|
+
* @param {Callback<bigint> =} callback
|
|
867
|
+
**/
|
|
868
|
+
deactivated: GenericStorageQuery<() => bigint>;
|
|
869
|
+
/**
|
|
870
|
+
* Proposal indices that have been approved but not yet awarded.
|
|
871
|
+
*
|
|
872
|
+
* @param {Callback<Array<number>> =} callback
|
|
873
|
+
**/
|
|
874
|
+
approvals: GenericStorageQuery<() => Array<number>>;
|
|
875
|
+
/**
|
|
876
|
+
* Generic pallet storage query
|
|
877
|
+
**/
|
|
878
|
+
[storage: string]: GenericStorageQuery;
|
|
879
|
+
};
|
|
880
|
+
/**
|
|
881
|
+
* Pallet `Vesting`'s storage queries
|
|
882
|
+
**/
|
|
883
|
+
vesting: {
|
|
884
|
+
/**
|
|
885
|
+
* Information regarding the vesting of a given account.
|
|
886
|
+
*
|
|
887
|
+
* @param {AccountId32Like} arg
|
|
888
|
+
* @param {Callback<Array<PalletVestingVestingInfo> | undefined> =} callback
|
|
889
|
+
**/
|
|
890
|
+
vesting: GenericStorageQuery<(arg: AccountId32Like) => Array<PalletVestingVestingInfo> | undefined>;
|
|
891
|
+
/**
|
|
892
|
+
* Storage version of the pallet.
|
|
893
|
+
*
|
|
894
|
+
* New networks start with latest version, as determined by the genesis build.
|
|
895
|
+
*
|
|
896
|
+
* @param {Callback<PalletVestingReleases> =} callback
|
|
897
|
+
**/
|
|
898
|
+
storageVersion: GenericStorageQuery<() => PalletVestingReleases>;
|
|
899
|
+
/**
|
|
900
|
+
* Generic pallet storage query
|
|
901
|
+
**/
|
|
902
|
+
[storage: string]: GenericStorageQuery;
|
|
903
|
+
};
|
|
904
|
+
/**
|
|
905
|
+
* Pallet `Multisig`'s storage queries
|
|
906
|
+
**/
|
|
907
|
+
multisig: {
|
|
908
|
+
/**
|
|
909
|
+
* The set of open multisig operations.
|
|
910
|
+
*
|
|
911
|
+
* @param {[AccountId32Like, FixedBytes<32>]} arg
|
|
912
|
+
* @param {Callback<PalletMultisigMultisig | undefined> =} callback
|
|
913
|
+
**/
|
|
914
|
+
multisigs: GenericStorageQuery<(arg: [AccountId32Like, FixedBytes<32>]) => PalletMultisigMultisig | undefined>;
|
|
915
|
+
/**
|
|
916
|
+
* Generic pallet storage query
|
|
917
|
+
**/
|
|
918
|
+
[storage: string]: GenericStorageQuery;
|
|
919
|
+
};
|
|
920
|
+
/**
|
|
921
|
+
* Pallet `Sudo`'s storage queries
|
|
922
|
+
**/
|
|
923
|
+
sudo: {
|
|
924
|
+
/**
|
|
925
|
+
* The `AccountId` of the sudo key.
|
|
926
|
+
*
|
|
927
|
+
* @param {Callback<AccountId32 | undefined> =} callback
|
|
928
|
+
**/
|
|
929
|
+
key: GenericStorageQuery<() => AccountId32 | undefined>;
|
|
930
|
+
/**
|
|
931
|
+
* Generic pallet storage query
|
|
932
|
+
**/
|
|
933
|
+
[storage: string]: GenericStorageQuery;
|
|
934
|
+
};
|
|
935
|
+
/**
|
|
936
|
+
* Pallet `Contracts`'s storage queries
|
|
937
|
+
**/
|
|
938
|
+
contracts: {
|
|
939
|
+
/**
|
|
940
|
+
* A mapping from a contract's code hash to its code.
|
|
941
|
+
*
|
|
942
|
+
* @param {H256} arg
|
|
943
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
944
|
+
**/
|
|
945
|
+
pristineCode: GenericStorageQuery<(arg: H256) => Bytes | undefined>;
|
|
946
|
+
/**
|
|
947
|
+
* A mapping from a contract's code hash to its code info.
|
|
948
|
+
*
|
|
949
|
+
* @param {H256} arg
|
|
950
|
+
* @param {Callback<PalletContractsWasmCodeInfo | undefined> =} callback
|
|
951
|
+
**/
|
|
952
|
+
codeInfoOf: GenericStorageQuery<(arg: H256) => PalletContractsWasmCodeInfo | undefined>;
|
|
953
|
+
/**
|
|
954
|
+
* This is a **monotonic** counter incremented on contract instantiation.
|
|
955
|
+
*
|
|
956
|
+
* This is used in order to generate unique trie ids for contracts.
|
|
957
|
+
* The trie id of a new contract is calculated from hash(account_id, nonce).
|
|
958
|
+
* The nonce is required because otherwise the following sequence would lead to
|
|
959
|
+
* a possible collision of storage:
|
|
960
|
+
*
|
|
961
|
+
* 1. Create a new contract.
|
|
962
|
+
* 2. Terminate the contract.
|
|
963
|
+
* 3. Immediately recreate the contract with the same account_id.
|
|
964
|
+
*
|
|
965
|
+
* This is bad because the contents of a trie are deleted lazily and there might be
|
|
966
|
+
* storage of the old instantiation still in it when the new contract is created. Please
|
|
967
|
+
* note that we can't replace the counter by the block number because the sequence above
|
|
968
|
+
* can happen in the same block. We also can't keep the account counter in memory only
|
|
969
|
+
* because storage is the only way to communicate across different extrinsics in the
|
|
970
|
+
* same block.
|
|
971
|
+
*
|
|
972
|
+
* # Note
|
|
973
|
+
*
|
|
974
|
+
* Do not use it to determine the number of contracts. It won't be decremented if
|
|
975
|
+
* a contract is destroyed.
|
|
976
|
+
*
|
|
977
|
+
* @param {Callback<bigint> =} callback
|
|
978
|
+
**/
|
|
979
|
+
nonce: GenericStorageQuery<() => bigint>;
|
|
980
|
+
/**
|
|
981
|
+
* The code associated with a given account.
|
|
982
|
+
*
|
|
983
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
984
|
+
*
|
|
985
|
+
* @param {AccountId32Like} arg
|
|
986
|
+
* @param {Callback<PalletContractsStorageContractInfo | undefined> =} callback
|
|
987
|
+
**/
|
|
988
|
+
contractInfoOf: GenericStorageQuery<(arg: AccountId32Like) => PalletContractsStorageContractInfo | undefined>;
|
|
989
|
+
/**
|
|
990
|
+
* Evicted contracts that await child trie deletion.
|
|
991
|
+
*
|
|
992
|
+
* Child trie deletion is a heavy operation depending on the amount of storage items
|
|
993
|
+
* stored in said trie. Therefore this operation is performed lazily in `on_idle`.
|
|
994
|
+
*
|
|
995
|
+
* @param {number} arg
|
|
996
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
997
|
+
**/
|
|
998
|
+
deletionQueue: GenericStorageQuery<(arg: number) => Bytes | undefined>;
|
|
999
|
+
/**
|
|
1000
|
+
* A pair of monotonic counters used to track the latest contract marked for deletion
|
|
1001
|
+
* and the latest deleted contract in queue.
|
|
1002
|
+
*
|
|
1003
|
+
* @param {Callback<PalletContractsStorageDeletionQueueManager> =} callback
|
|
1004
|
+
**/
|
|
1005
|
+
deletionQueueCounter: GenericStorageQuery<() => PalletContractsStorageDeletionQueueManager>;
|
|
1006
|
+
/**
|
|
1007
|
+
* A migration can span across multiple blocks. This storage defines a cursor to track the
|
|
1008
|
+
* progress of the migration, enabling us to resume from the last completed position.
|
|
1009
|
+
*
|
|
1010
|
+
* @param {Callback<Bytes | undefined> =} callback
|
|
1011
|
+
**/
|
|
1012
|
+
migrationInProgress: GenericStorageQuery<() => Bytes | undefined>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Generic pallet storage query
|
|
1015
|
+
**/
|
|
1016
|
+
[storage: string]: GenericStorageQuery;
|
|
1017
|
+
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Pallet `NominationPools`'s storage queries
|
|
1020
|
+
**/
|
|
1021
|
+
nominationPools: {
|
|
1022
|
+
/**
|
|
1023
|
+
* Minimum amount to bond to join a pool.
|
|
1024
|
+
*
|
|
1025
|
+
* @param {Callback<bigint> =} callback
|
|
1026
|
+
**/
|
|
1027
|
+
minJoinBond: GenericStorageQuery<() => bigint>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Minimum bond required to create a pool.
|
|
1030
|
+
*
|
|
1031
|
+
* This is the amount that the depositor must put as their initial stake in the pool, as an
|
|
1032
|
+
* indication of "skin in the game".
|
|
1033
|
+
*
|
|
1034
|
+
* This is the value that will always exist in the staking ledger of the pool bonded account
|
|
1035
|
+
* while all other accounts leave.
|
|
1036
|
+
*
|
|
1037
|
+
* @param {Callback<bigint> =} callback
|
|
1038
|
+
**/
|
|
1039
|
+
minCreateBond: GenericStorageQuery<() => bigint>;
|
|
1040
|
+
/**
|
|
1041
|
+
* Maximum number of nomination pools that can exist. If `None`, then an unbounded number of
|
|
1042
|
+
* pools can exist.
|
|
1043
|
+
*
|
|
1044
|
+
* @param {Callback<number | undefined> =} callback
|
|
1045
|
+
**/
|
|
1046
|
+
maxPools: GenericStorageQuery<() => number | undefined>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Maximum number of members that can exist in the system. If `None`, then the count
|
|
1049
|
+
* members are not bound on a system wide basis.
|
|
1050
|
+
*
|
|
1051
|
+
* @param {Callback<number | undefined> =} callback
|
|
1052
|
+
**/
|
|
1053
|
+
maxPoolMembers: GenericStorageQuery<() => number | undefined>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Maximum number of members that may belong to pool. If `None`, then the count of
|
|
1056
|
+
* members is not bound on a per pool basis.
|
|
1057
|
+
*
|
|
1058
|
+
* @param {Callback<number | undefined> =} callback
|
|
1059
|
+
**/
|
|
1060
|
+
maxPoolMembersPerPool: GenericStorageQuery<() => number | undefined>;
|
|
1061
|
+
/**
|
|
1062
|
+
* The maximum commission that can be charged by a pool. Used on commission payouts to bound
|
|
1063
|
+
* pool commissions that are > `GlobalMaxCommission`, necessary if a future
|
|
1064
|
+
* `GlobalMaxCommission` is lower than some current pool commissions.
|
|
1065
|
+
*
|
|
1066
|
+
* @param {Callback<Perbill | undefined> =} callback
|
|
1067
|
+
**/
|
|
1068
|
+
globalMaxCommission: GenericStorageQuery<() => Perbill | undefined>;
|
|
1069
|
+
/**
|
|
1070
|
+
* Active members.
|
|
1071
|
+
*
|
|
1072
|
+
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
1073
|
+
*
|
|
1074
|
+
* @param {AccountId32Like} arg
|
|
1075
|
+
* @param {Callback<PalletNominationPoolsPoolMember | undefined> =} callback
|
|
1076
|
+
**/
|
|
1077
|
+
poolMembers: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsPoolMember | undefined>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Counter for the related counted storage map
|
|
1080
|
+
*
|
|
1081
|
+
* @param {Callback<number> =} callback
|
|
1082
|
+
**/
|
|
1083
|
+
counterForPoolMembers: GenericStorageQuery<() => number>;
|
|
1084
|
+
/**
|
|
1085
|
+
* Storage for bonded pools.
|
|
1086
|
+
*
|
|
1087
|
+
* @param {number} arg
|
|
1088
|
+
* @param {Callback<PalletNominationPoolsBondedPoolInner | undefined> =} callback
|
|
1089
|
+
**/
|
|
1090
|
+
bondedPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsBondedPoolInner | undefined>;
|
|
1091
|
+
/**
|
|
1092
|
+
* Counter for the related counted storage map
|
|
1093
|
+
*
|
|
1094
|
+
* @param {Callback<number> =} callback
|
|
1095
|
+
**/
|
|
1096
|
+
counterForBondedPools: GenericStorageQuery<() => number>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Reward pools. This is where there rewards for each pool accumulate. When a members payout is
|
|
1099
|
+
* claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
|
|
1100
|
+
*
|
|
1101
|
+
* @param {number} arg
|
|
1102
|
+
* @param {Callback<PalletNominationPoolsRewardPool | undefined> =} callback
|
|
1103
|
+
**/
|
|
1104
|
+
rewardPools: GenericStorageQuery<(arg: number) => PalletNominationPoolsRewardPool | undefined>;
|
|
1105
|
+
/**
|
|
1106
|
+
* Counter for the related counted storage map
|
|
1107
|
+
*
|
|
1108
|
+
* @param {Callback<number> =} callback
|
|
1109
|
+
**/
|
|
1110
|
+
counterForRewardPools: GenericStorageQuery<() => number>;
|
|
1111
|
+
/**
|
|
1112
|
+
* Groups of unbonding pools. Each group of unbonding pools belongs to a
|
|
1113
|
+
* bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
|
|
1114
|
+
*
|
|
1115
|
+
* @param {number} arg
|
|
1116
|
+
* @param {Callback<PalletNominationPoolsSubPools | undefined> =} callback
|
|
1117
|
+
**/
|
|
1118
|
+
subPoolsStorage: GenericStorageQuery<(arg: number) => PalletNominationPoolsSubPools | undefined>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Counter for the related counted storage map
|
|
1121
|
+
*
|
|
1122
|
+
* @param {Callback<number> =} callback
|
|
1123
|
+
**/
|
|
1124
|
+
counterForSubPoolsStorage: GenericStorageQuery<() => number>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Metadata for the pool.
|
|
1127
|
+
*
|
|
1128
|
+
* @param {number} arg
|
|
1129
|
+
* @param {Callback<Bytes> =} callback
|
|
1130
|
+
**/
|
|
1131
|
+
metadata: GenericStorageQuery<(arg: number) => Bytes>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Counter for the related counted storage map
|
|
1134
|
+
*
|
|
1135
|
+
* @param {Callback<number> =} callback
|
|
1136
|
+
**/
|
|
1137
|
+
counterForMetadata: GenericStorageQuery<() => number>;
|
|
1138
|
+
/**
|
|
1139
|
+
* Ever increasing number of all pools created so far.
|
|
1140
|
+
*
|
|
1141
|
+
* @param {Callback<number> =} callback
|
|
1142
|
+
**/
|
|
1143
|
+
lastPoolId: GenericStorageQuery<() => number>;
|
|
1144
|
+
/**
|
|
1145
|
+
* A reverse lookup from the pool's account id to its id.
|
|
1146
|
+
*
|
|
1147
|
+
* This is only used for slashing. In all other instances, the pool id is used, and the
|
|
1148
|
+
* accounts are deterministically derived from it.
|
|
1149
|
+
*
|
|
1150
|
+
* @param {AccountId32Like} arg
|
|
1151
|
+
* @param {Callback<number | undefined> =} callback
|
|
1152
|
+
**/
|
|
1153
|
+
reversePoolIdLookup: GenericStorageQuery<(arg: AccountId32Like) => number | undefined>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Counter for the related counted storage map
|
|
1156
|
+
*
|
|
1157
|
+
* @param {Callback<number> =} callback
|
|
1158
|
+
**/
|
|
1159
|
+
counterForReversePoolIdLookup: GenericStorageQuery<() => number>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Map from a pool member account to their opted claim permission.
|
|
1162
|
+
*
|
|
1163
|
+
* @param {AccountId32Like} arg
|
|
1164
|
+
* @param {Callback<PalletNominationPoolsClaimPermission> =} callback
|
|
1165
|
+
**/
|
|
1166
|
+
claimPermissions: GenericStorageQuery<(arg: AccountId32Like) => PalletNominationPoolsClaimPermission>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Generic pallet storage query
|
|
1169
|
+
**/
|
|
1170
|
+
[storage: string]: GenericStorageQuery;
|
|
1171
|
+
};
|
|
1172
|
+
/**
|
|
1173
|
+
* Pallet `Identity`'s storage queries
|
|
1174
|
+
**/
|
|
1175
|
+
identity: {
|
|
1176
|
+
/**
|
|
1177
|
+
* Information that is pertinent to identify the entity behind an account.
|
|
1178
|
+
*
|
|
1179
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1180
|
+
*
|
|
1181
|
+
* @param {AccountId32Like} arg
|
|
1182
|
+
* @param {Callback<PalletIdentityRegistration | undefined> =} callback
|
|
1183
|
+
**/
|
|
1184
|
+
identityOf: GenericStorageQuery<(arg: AccountId32Like) => PalletIdentityRegistration | undefined>;
|
|
1185
|
+
/**
|
|
1186
|
+
* The super-identity of an alternative "sub" identity together with its name, within that
|
|
1187
|
+
* context. If the account is not some other account's sub-identity, then just `None`.
|
|
1188
|
+
*
|
|
1189
|
+
* @param {AccountId32Like} arg
|
|
1190
|
+
* @param {Callback<[AccountId32, Data] | undefined> =} callback
|
|
1191
|
+
**/
|
|
1192
|
+
superOf: GenericStorageQuery<(arg: AccountId32Like) => [AccountId32, Data] | undefined>;
|
|
1193
|
+
/**
|
|
1194
|
+
* Alternative "sub" identities of this account.
|
|
1195
|
+
*
|
|
1196
|
+
* The first item is the deposit, the second is a vector of the accounts.
|
|
1197
|
+
*
|
|
1198
|
+
* TWOX-NOTE: OK ― `AccountId` is a secure hash.
|
|
1199
|
+
*
|
|
1200
|
+
* @param {AccountId32Like} arg
|
|
1201
|
+
* @param {Callback<[bigint, Array<AccountId32>]> =} callback
|
|
1202
|
+
**/
|
|
1203
|
+
subsOf: GenericStorageQuery<(arg: AccountId32Like) => [bigint, Array<AccountId32>]>;
|
|
1204
|
+
/**
|
|
1205
|
+
* The set of registrars. Not expected to get very big as can only be added through a
|
|
1206
|
+
* special origin (likely a council motion).
|
|
1207
|
+
*
|
|
1208
|
+
* The index into this can be cast to `RegistrarIndex` to get a valid value.
|
|
1209
|
+
*
|
|
1210
|
+
* @param {Callback<Array<PalletIdentityRegistrarInfo | undefined>> =} callback
|
|
1211
|
+
**/
|
|
1212
|
+
registrars: GenericStorageQuery<() => Array<PalletIdentityRegistrarInfo | undefined>>;
|
|
1213
|
+
/**
|
|
1214
|
+
* Generic pallet storage query
|
|
1215
|
+
**/
|
|
1216
|
+
[storage: string]: GenericStorageQuery;
|
|
1217
|
+
};
|
|
1218
|
+
/**
|
|
1219
|
+
* Pallet `CommitteeManagement`'s storage queries
|
|
1220
|
+
**/
|
|
1221
|
+
committeeManagement: {
|
|
1222
|
+
/**
|
|
1223
|
+
*
|
|
1224
|
+
* @param {Callback<Perquintill> =} callback
|
|
1225
|
+
**/
|
|
1226
|
+
lenientThreshold: GenericStorageQuery<() => Perquintill>;
|
|
1227
|
+
/**
|
|
1228
|
+
* A lookup how many blocks a validator produced.
|
|
1229
|
+
*
|
|
1230
|
+
* @param {AccountId32Like} arg
|
|
1231
|
+
* @param {Callback<number> =} callback
|
|
1232
|
+
**/
|
|
1233
|
+
sessionValidatorBlockCount: GenericStorageQuery<(arg: AccountId32Like) => number>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Total possible reward per validator for the current era.
|
|
1236
|
+
*
|
|
1237
|
+
* @param {Callback<PalletCommitteeManagementValidatorTotalRewards | undefined> =} callback
|
|
1238
|
+
**/
|
|
1239
|
+
validatorEraTotalReward: GenericStorageQuery<() => PalletCommitteeManagementValidatorTotalRewards | undefined>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Current era config for ban functionality, see [`BanConfig`]
|
|
1242
|
+
*
|
|
1243
|
+
* @param {Callback<PrimitivesBanConfig> =} callback
|
|
1244
|
+
**/
|
|
1245
|
+
banConfig: GenericStorageQuery<() => PrimitivesBanConfig>;
|
|
1246
|
+
/**
|
|
1247
|
+
* A lookup for a number of underperformance sessions for a given validator
|
|
1248
|
+
*
|
|
1249
|
+
* @param {AccountId32Like} arg
|
|
1250
|
+
* @param {Callback<number> =} callback
|
|
1251
|
+
**/
|
|
1252
|
+
underperformedValidatorSessionCount: GenericStorageQuery<(arg: AccountId32Like) => number>;
|
|
1253
|
+
/**
|
|
1254
|
+
* Validators to be removed from non reserved list in the next era
|
|
1255
|
+
*
|
|
1256
|
+
* @param {AccountId32Like} arg
|
|
1257
|
+
* @param {Callback<PrimitivesBanInfo | undefined> =} callback
|
|
1258
|
+
**/
|
|
1259
|
+
banned: GenericStorageQuery<(arg: AccountId32Like) => PrimitivesBanInfo | undefined>;
|
|
1260
|
+
/**
|
|
1261
|
+
* SessionValidators in the current session.
|
|
1262
|
+
*
|
|
1263
|
+
* @param {Callback<PalletCommitteeManagementCurrentAndNextSessionValidators> =} callback
|
|
1264
|
+
**/
|
|
1265
|
+
currentAndNextSessionValidatorsStorage: GenericStorageQuery<() => PalletCommitteeManagementCurrentAndNextSessionValidators>;
|
|
1266
|
+
/**
|
|
1267
|
+
* Generic pallet storage query
|
|
1268
|
+
**/
|
|
1269
|
+
[storage: string]: GenericStorageQuery;
|
|
1270
|
+
};
|
|
1271
|
+
}
|