@polkadot/api-augment 9.4.1 → 9.4.2
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/cjs/packageInfo.js +1 -1
- package/kusama/consts.d.ts +22 -0
- package/kusama/errors.d.ts +4 -0
- package/kusama/events.d.ts +12 -12
- package/kusama/query.d.ts +0 -10
- package/kusama/tx.d.ts +13 -87
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +22 -0
- package/polkadot/errors.d.ts +4 -0
- package/polkadot/events.d.ts +12 -12
- package/polkadot/query.d.ts +0 -10
- package/polkadot/tx.d.ts +13 -87
- package/substrate/consts.d.ts +74 -52
- package/substrate/errors.d.ts +42 -10
- package/substrate/events.d.ts +72 -33
- package/substrate/query.d.ts +54 -34
- package/substrate/tx.d.ts +107 -137
package/substrate/consts.d.ts
CHANGED
|
@@ -102,58 +102,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
102
102
|
**/
|
|
103
103
|
[key: string]: Codec;
|
|
104
104
|
};
|
|
105
|
-
bagsList: {
|
|
106
|
-
/**
|
|
107
|
-
* The list of thresholds separating the various bags.
|
|
108
|
-
*
|
|
109
|
-
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
110
|
-
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
111
|
-
* is less than or equal to its upper threshold.
|
|
112
|
-
*
|
|
113
|
-
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
114
|
-
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
115
|
-
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
116
|
-
*
|
|
117
|
-
* # Expressing the constant
|
|
118
|
-
*
|
|
119
|
-
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
120
|
-
* permitted.
|
|
121
|
-
*
|
|
122
|
-
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
123
|
-
* specified within the bag. For any two threshold lists, if one ends with
|
|
124
|
-
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
125
|
-
* lists will behave identically.
|
|
126
|
-
*
|
|
127
|
-
* # Calculation
|
|
128
|
-
*
|
|
129
|
-
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
130
|
-
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
131
|
-
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
132
|
-
*
|
|
133
|
-
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
134
|
-
*
|
|
135
|
-
* # Examples
|
|
136
|
-
*
|
|
137
|
-
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
138
|
-
* iteration is strictly in insertion order.
|
|
139
|
-
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
140
|
-
* the procedure given above, then the constant ratio is equal to 2.
|
|
141
|
-
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
142
|
-
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
143
|
-
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
144
|
-
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
145
|
-
*
|
|
146
|
-
* # Migration
|
|
147
|
-
*
|
|
148
|
-
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
149
|
-
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
150
|
-
**/
|
|
151
|
-
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
152
|
-
/**
|
|
153
|
-
* Generic const
|
|
154
|
-
**/
|
|
155
|
-
[key: string]: Codec;
|
|
156
|
-
};
|
|
157
105
|
balances: {
|
|
158
106
|
/**
|
|
159
107
|
* The minimum amount required to keep an account open.
|
|
@@ -922,6 +870,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
922
870
|
* Number of eras that staked funds must remain bonded for.
|
|
923
871
|
**/
|
|
924
872
|
bondingDuration: u32 & AugmentedConst<ApiType>;
|
|
873
|
+
/**
|
|
874
|
+
* Number of eras to keep in history.
|
|
875
|
+
*
|
|
876
|
+
* Following information is kept for eras in `[current_era -
|
|
877
|
+
* HistoryDepth, current_era]`: `ErasStakers`, `ErasStakersClipped`,
|
|
878
|
+
* `ErasValidatorPrefs`, `ErasValidatorReward`, `ErasRewardPoints`,
|
|
879
|
+
* `ErasTotalStake`, `ErasStartSessionIndex`,
|
|
880
|
+
* `StakingLedger.claimed_rewards`.
|
|
881
|
+
*
|
|
882
|
+
* Must be more than the number of eras delayed by session.
|
|
883
|
+
* I.e. active era must always be in history. I.e. `active_era >
|
|
884
|
+
* current_era - history_depth` must be guaranteed.
|
|
885
|
+
*
|
|
886
|
+
* If migrating an existing pallet from storage value to config value,
|
|
887
|
+
* this should be set to same value or greater as in storage.
|
|
888
|
+
*
|
|
889
|
+
* Note: `HistoryDepth` is used as the upper bound for the `BoundedVec`
|
|
890
|
+
* item `StakingLedger.claimed_rewards`. Setting this value lower than
|
|
891
|
+
* the existing value can lead to inconsistencies and will need to be
|
|
892
|
+
* handled properly in a migration.
|
|
893
|
+
**/
|
|
894
|
+
historyDepth: u32 & AugmentedConst<ApiType>;
|
|
925
895
|
/**
|
|
926
896
|
* Maximum number of nominations per nominator.
|
|
927
897
|
**/
|
|
@@ -1186,5 +1156,57 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
1186
1156
|
**/
|
|
1187
1157
|
[key: string]: Codec;
|
|
1188
1158
|
};
|
|
1159
|
+
voterBagsList: {
|
|
1160
|
+
/**
|
|
1161
|
+
* The list of thresholds separating the various bags.
|
|
1162
|
+
*
|
|
1163
|
+
* Ids are separated into unsorted bags according to their score. This specifies the
|
|
1164
|
+
* thresholds separating the bags. An id's bag is the largest bag for which the id's score
|
|
1165
|
+
* is less than or equal to its upper threshold.
|
|
1166
|
+
*
|
|
1167
|
+
* When ids are iterated, higher bags are iterated completely before lower bags. This means
|
|
1168
|
+
* that iteration is _semi-sorted_: ids of higher score tend to come before ids of lower
|
|
1169
|
+
* score, but peer ids within a particular bag are sorted in insertion order.
|
|
1170
|
+
*
|
|
1171
|
+
* # Expressing the constant
|
|
1172
|
+
*
|
|
1173
|
+
* This constant must be sorted in strictly increasing order. Duplicate items are not
|
|
1174
|
+
* permitted.
|
|
1175
|
+
*
|
|
1176
|
+
* There is an implied upper limit of `Score::MAX`; that value does not need to be
|
|
1177
|
+
* specified within the bag. For any two threshold lists, if one ends with
|
|
1178
|
+
* `Score::MAX`, the other one does not, and they are otherwise equal, the two
|
|
1179
|
+
* lists will behave identically.
|
|
1180
|
+
*
|
|
1181
|
+
* # Calculation
|
|
1182
|
+
*
|
|
1183
|
+
* It is recommended to generate the set of thresholds in a geometric series, such that
|
|
1184
|
+
* there exists some constant ratio such that `threshold[k + 1] == (threshold[k] *
|
|
1185
|
+
* constant_ratio).max(threshold[k] + 1)` for all `k`.
|
|
1186
|
+
*
|
|
1187
|
+
* The helpers in the `/utils/frame/generate-bags` module can simplify this calculation.
|
|
1188
|
+
*
|
|
1189
|
+
* # Examples
|
|
1190
|
+
*
|
|
1191
|
+
* - If `BagThresholds::get().is_empty()`, then all ids are put into the same bag, and
|
|
1192
|
+
* iteration is strictly in insertion order.
|
|
1193
|
+
* - If `BagThresholds::get().len() == 64`, and the thresholds are determined according to
|
|
1194
|
+
* the procedure given above, then the constant ratio is equal to 2.
|
|
1195
|
+
* - If `BagThresholds::get().len() == 200`, and the thresholds are determined according to
|
|
1196
|
+
* the procedure given above, then the constant ratio is approximately equal to 1.248.
|
|
1197
|
+
* - If the threshold list begins `[1, 2, 3, ...]`, then an id with score 0 or 1 will fall
|
|
1198
|
+
* into bag 0, an id with score 2 will fall into bag 1, etc.
|
|
1199
|
+
*
|
|
1200
|
+
* # Migration
|
|
1201
|
+
*
|
|
1202
|
+
* In the event that this list ever changes, a copy of the old bags list must be retained.
|
|
1203
|
+
* With that `List::migrate` can be called, which will perform the appropriate migration.
|
|
1204
|
+
**/
|
|
1205
|
+
bagThresholds: Vec<u64> & AugmentedConst<ApiType>;
|
|
1206
|
+
/**
|
|
1207
|
+
* Generic const
|
|
1208
|
+
**/
|
|
1209
|
+
[key: string]: Codec;
|
|
1210
|
+
};
|
|
1189
1211
|
}
|
|
1190
1212
|
}
|
package/substrate/errors.d.ts
CHANGED
|
@@ -284,16 +284,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
284
284
|
**/
|
|
285
285
|
[key: string]: AugmentedError<ApiType>;
|
|
286
286
|
};
|
|
287
|
-
bagsList: {
|
|
288
|
-
/**
|
|
289
|
-
* A error in the list interface implementation.
|
|
290
|
-
**/
|
|
291
|
-
List: AugmentedError<ApiType>;
|
|
292
|
-
/**
|
|
293
|
-
* Generic error
|
|
294
|
-
**/
|
|
295
|
-
[key: string]: AugmentedError<ApiType>;
|
|
296
|
-
};
|
|
297
287
|
balances: {
|
|
298
288
|
/**
|
|
299
289
|
* Beneficiary account must pre-exist
|
|
@@ -892,6 +882,34 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
892
882
|
**/
|
|
893
883
|
[key: string]: AugmentedError<ApiType>;
|
|
894
884
|
};
|
|
885
|
+
fastUnstake: {
|
|
886
|
+
/**
|
|
887
|
+
* The provided un-staker is already in Head, and cannot deregister.
|
|
888
|
+
**/
|
|
889
|
+
AlreadyHead: AugmentedError<ApiType>;
|
|
890
|
+
/**
|
|
891
|
+
* The bonded account has already been queued.
|
|
892
|
+
**/
|
|
893
|
+
AlreadyQueued: AugmentedError<ApiType>;
|
|
894
|
+
/**
|
|
895
|
+
* The provided Controller account was not found.
|
|
896
|
+
*
|
|
897
|
+
* This means that the given account is not bonded.
|
|
898
|
+
**/
|
|
899
|
+
NotController: AugmentedError<ApiType>;
|
|
900
|
+
/**
|
|
901
|
+
* The bonded account has active unlocking chunks.
|
|
902
|
+
**/
|
|
903
|
+
NotFullyBonded: AugmentedError<ApiType>;
|
|
904
|
+
/**
|
|
905
|
+
* The provided un-staker is not in the `Queue`.
|
|
906
|
+
**/
|
|
907
|
+
NotQueued: AugmentedError<ApiType>;
|
|
908
|
+
/**
|
|
909
|
+
* Generic error
|
|
910
|
+
**/
|
|
911
|
+
[key: string]: AugmentedError<ApiType>;
|
|
912
|
+
};
|
|
895
913
|
gilt: {
|
|
896
914
|
/**
|
|
897
915
|
* The amount of the bid is less than the minimum allowed.
|
|
@@ -1716,6 +1734,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1716
1734
|
* A nomination target was supplied that was blocked or otherwise not a validator.
|
|
1717
1735
|
**/
|
|
1718
1736
|
BadTarget: AugmentedError<ApiType>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Some bound is not met.
|
|
1739
|
+
**/
|
|
1740
|
+
BoundNotMet: AugmentedError<ApiType>;
|
|
1719
1741
|
/**
|
|
1720
1742
|
* The user has enough bond and thus cannot be chilled forcefully by an external person.
|
|
1721
1743
|
**/
|
|
@@ -2175,6 +2197,16 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
2175
2197
|
**/
|
|
2176
2198
|
[key: string]: AugmentedError<ApiType>;
|
|
2177
2199
|
};
|
|
2200
|
+
voterBagsList: {
|
|
2201
|
+
/**
|
|
2202
|
+
* A error in the list interface implementation.
|
|
2203
|
+
**/
|
|
2204
|
+
List: AugmentedError<ApiType>;
|
|
2205
|
+
/**
|
|
2206
|
+
* Generic error
|
|
2207
|
+
**/
|
|
2208
|
+
[key: string]: AugmentedError<ApiType>;
|
|
2209
|
+
};
|
|
2178
2210
|
whitelist: {
|
|
2179
2211
|
/**
|
|
2180
2212
|
* The call was already whitelisted; No-Op.
|
package/substrate/events.d.ts
CHANGED
|
@@ -314,27 +314,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
314
314
|
**/
|
|
315
315
|
[key: string]: AugmentedEvent<ApiType>;
|
|
316
316
|
};
|
|
317
|
-
bagsList: {
|
|
318
|
-
/**
|
|
319
|
-
* Moved an account from one bag to another.
|
|
320
|
-
**/
|
|
321
|
-
Rebagged: AugmentedEvent<ApiType, [who: AccountId32, from: u64, to: u64], {
|
|
322
|
-
who: AccountId32;
|
|
323
|
-
from: u64;
|
|
324
|
-
to: u64;
|
|
325
|
-
}>;
|
|
326
|
-
/**
|
|
327
|
-
* Updated the score of some account to the given amount.
|
|
328
|
-
**/
|
|
329
|
-
ScoreUpdated: AugmentedEvent<ApiType, [who: AccountId32, newScore: u64], {
|
|
330
|
-
who: AccountId32;
|
|
331
|
-
newScore: u64;
|
|
332
|
-
}>;
|
|
333
|
-
/**
|
|
334
|
-
* Generic event
|
|
335
|
-
**/
|
|
336
|
-
[key: string]: AugmentedEvent<ApiType>;
|
|
337
|
-
};
|
|
338
317
|
balances: {
|
|
339
318
|
/**
|
|
340
319
|
* A balance was set by root.
|
|
@@ -915,6 +894,45 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
915
894
|
**/
|
|
916
895
|
[key: string]: AugmentedEvent<ApiType>;
|
|
917
896
|
};
|
|
897
|
+
fastUnstake: {
|
|
898
|
+
/**
|
|
899
|
+
* A staker was partially checked for the given eras, but the process did not finish.
|
|
900
|
+
**/
|
|
901
|
+
Checking: AugmentedEvent<ApiType, [stash: AccountId32, eras: Vec<u32>], {
|
|
902
|
+
stash: AccountId32;
|
|
903
|
+
eras: Vec<u32>;
|
|
904
|
+
}>;
|
|
905
|
+
/**
|
|
906
|
+
* Some internal error happened while migrating stash. They are removed as head as a
|
|
907
|
+
* consequence.
|
|
908
|
+
**/
|
|
909
|
+
Errored: AugmentedEvent<ApiType, [stash: AccountId32], {
|
|
910
|
+
stash: AccountId32;
|
|
911
|
+
}>;
|
|
912
|
+
/**
|
|
913
|
+
* An internal error happened. Operations will be paused now.
|
|
914
|
+
**/
|
|
915
|
+
InternalError: AugmentedEvent<ApiType, []>;
|
|
916
|
+
/**
|
|
917
|
+
* A staker was slashed for requesting fast-unstake whilst being exposed.
|
|
918
|
+
**/
|
|
919
|
+
Slashed: AugmentedEvent<ApiType, [stash: AccountId32, amount: u128], {
|
|
920
|
+
stash: AccountId32;
|
|
921
|
+
amount: u128;
|
|
922
|
+
}>;
|
|
923
|
+
/**
|
|
924
|
+
* A staker was unstaked.
|
|
925
|
+
**/
|
|
926
|
+
Unstaked: AugmentedEvent<ApiType, [stash: AccountId32, maybePoolId: Option<u32>, result: Result<Null, SpRuntimeDispatchError>], {
|
|
927
|
+
stash: AccountId32;
|
|
928
|
+
maybePoolId: Option<u32>;
|
|
929
|
+
result: Result<Null, SpRuntimeDispatchError>;
|
|
930
|
+
}>;
|
|
931
|
+
/**
|
|
932
|
+
* Generic event
|
|
933
|
+
**/
|
|
934
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
935
|
+
};
|
|
918
936
|
gilt: {
|
|
919
937
|
/**
|
|
920
938
|
* A bid was successfully placed.
|
|
@@ -1329,16 +1347,6 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1329
1347
|
proxy: AccountId32;
|
|
1330
1348
|
callHash: H256;
|
|
1331
1349
|
}>;
|
|
1332
|
-
/**
|
|
1333
|
-
* Anonymous account has been created by new proxy with given
|
|
1334
|
-
* disambiguation index and proxy type.
|
|
1335
|
-
**/
|
|
1336
|
-
AnonymousCreated: AugmentedEvent<ApiType, [anonymous: AccountId32, who: AccountId32, proxyType: KitchensinkRuntimeProxyType, disambiguationIndex: u16], {
|
|
1337
|
-
anonymous: AccountId32;
|
|
1338
|
-
who: AccountId32;
|
|
1339
|
-
proxyType: KitchensinkRuntimeProxyType;
|
|
1340
|
-
disambiguationIndex: u16;
|
|
1341
|
-
}>;
|
|
1342
1350
|
/**
|
|
1343
1351
|
* A proxy was added.
|
|
1344
1352
|
**/
|
|
@@ -1363,6 +1371,16 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1363
1371
|
proxyType: KitchensinkRuntimeProxyType;
|
|
1364
1372
|
delay: u32;
|
|
1365
1373
|
}>;
|
|
1374
|
+
/**
|
|
1375
|
+
* A pure account has been created by new proxy with given
|
|
1376
|
+
* disambiguation index and proxy type.
|
|
1377
|
+
**/
|
|
1378
|
+
PureCreated: AugmentedEvent<ApiType, [pure: AccountId32, who: AccountId32, proxyType: KitchensinkRuntimeProxyType, disambiguationIndex: u16], {
|
|
1379
|
+
pure: AccountId32;
|
|
1380
|
+
who: AccountId32;
|
|
1381
|
+
proxyType: KitchensinkRuntimeProxyType;
|
|
1382
|
+
disambiguationIndex: u16;
|
|
1383
|
+
}>;
|
|
1366
1384
|
/**
|
|
1367
1385
|
* Generic event
|
|
1368
1386
|
**/
|
|
@@ -1849,8 +1867,8 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1849
1867
|
**/
|
|
1850
1868
|
Rewarded: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1851
1869
|
/**
|
|
1852
|
-
* One
|
|
1853
|
-
* \[
|
|
1870
|
+
* One staker (and potentially its nominators) has been slashed by the given amount.
|
|
1871
|
+
* \[staker, amount\]
|
|
1854
1872
|
**/
|
|
1855
1873
|
Slashed: AugmentedEvent<ApiType, [AccountId32, u128]>;
|
|
1856
1874
|
/**
|
|
@@ -2476,6 +2494,27 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2476
2494
|
**/
|
|
2477
2495
|
[key: string]: AugmentedEvent<ApiType>;
|
|
2478
2496
|
};
|
|
2497
|
+
voterBagsList: {
|
|
2498
|
+
/**
|
|
2499
|
+
* Moved an account from one bag to another.
|
|
2500
|
+
**/
|
|
2501
|
+
Rebagged: AugmentedEvent<ApiType, [who: AccountId32, from: u64, to: u64], {
|
|
2502
|
+
who: AccountId32;
|
|
2503
|
+
from: u64;
|
|
2504
|
+
to: u64;
|
|
2505
|
+
}>;
|
|
2506
|
+
/**
|
|
2507
|
+
* Updated the score of some account to the given amount.
|
|
2508
|
+
**/
|
|
2509
|
+
ScoreUpdated: AugmentedEvent<ApiType, [who: AccountId32, newScore: u64], {
|
|
2510
|
+
who: AccountId32;
|
|
2511
|
+
newScore: u64;
|
|
2512
|
+
}>;
|
|
2513
|
+
/**
|
|
2514
|
+
* Generic event
|
|
2515
|
+
**/
|
|
2516
|
+
[key: string]: AugmentedEvent<ApiType>;
|
|
2517
|
+
};
|
|
2479
2518
|
whitelist: {
|
|
2480
2519
|
CallWhitelisted: AugmentedEvent<ApiType, [callHash: H256], {
|
|
2481
2520
|
callHash: H256;
|
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeMap, Bytes, Null, Option, U8aFixed, Vec, WrapperKeepOpaque, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
5
5
|
import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
|
|
6
6
|
import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
|
|
7
|
-
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReleases, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyPreimageStatus, PalletDemocracyReferendumInfo, PalletDemocracyReleases, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGiltActiveGilt, PalletGiltActiveGiltsTotal, PalletGiltGiltBid, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduledV3, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingReleases, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTransactionStorageTransactionInfo, PalletTreasuryProposal, PalletUniquesCollectionDetails, PalletUniquesCollectionMetadata, PalletUniquesItemDetails, PalletUniquesItemMetadata, PalletVestingReleases, PalletVestingVestingInfo, SpAuthorityDiscoveryAppPublic, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails } from '@polkadot/types/lookup';
|
|
8
8
|
import type { Observable } from '@polkadot/types/types';
|
|
9
9
|
export declare type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export declare type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -237,28 +237,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
237
237
|
**/
|
|
238
238
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
239
239
|
};
|
|
240
|
-
bagsList: {
|
|
241
|
-
/**
|
|
242
|
-
* Counter for the related counted storage map
|
|
243
|
-
**/
|
|
244
|
-
counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
245
|
-
/**
|
|
246
|
-
* A bag stored in storage.
|
|
247
|
-
*
|
|
248
|
-
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
249
|
-
**/
|
|
250
|
-
listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
251
|
-
/**
|
|
252
|
-
* A single node, within some bag.
|
|
253
|
-
*
|
|
254
|
-
* Nodes store links forward and back within their respective bags.
|
|
255
|
-
**/
|
|
256
|
-
listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
257
|
-
/**
|
|
258
|
-
* Generic query
|
|
259
|
-
**/
|
|
260
|
-
[key: string]: QueryableStorageEntry<ApiType>;
|
|
261
|
-
};
|
|
262
240
|
balances: {
|
|
263
241
|
/**
|
|
264
242
|
* The Balances pallet example of storing the balance of an account.
|
|
@@ -370,7 +348,7 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
370
348
|
*
|
|
371
349
|
* TWOX-NOTE: SAFE since `AccountId` is a secure hash.
|
|
372
350
|
**/
|
|
373
|
-
contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<
|
|
351
|
+
contractInfoOf: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletContractsStorageContractInfo>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
374
352
|
/**
|
|
375
353
|
* Evicted contracts that await child trie deletion.
|
|
376
354
|
*
|
|
@@ -654,6 +632,36 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
654
632
|
**/
|
|
655
633
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
656
634
|
};
|
|
635
|
+
fastUnstake: {
|
|
636
|
+
/**
|
|
637
|
+
* Counter for the related counted storage map
|
|
638
|
+
**/
|
|
639
|
+
counterForQueue: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
640
|
+
/**
|
|
641
|
+
* Number of eras to check per block.
|
|
642
|
+
*
|
|
643
|
+
* If set to 0, this pallet does absolutely nothing.
|
|
644
|
+
*
|
|
645
|
+
* Based on the amount of weight available at `on_idle`, up to this many eras of a single
|
|
646
|
+
* nominator might be checked.
|
|
647
|
+
**/
|
|
648
|
+
erasToCheckPerBlock: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
649
|
+
/**
|
|
650
|
+
* The current "head of the queue" being unstaked.
|
|
651
|
+
**/
|
|
652
|
+
head: AugmentedQuery<ApiType, () => Observable<Option<PalletFastUnstakeUnstakeRequest>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
653
|
+
/**
|
|
654
|
+
* The map of all accounts wishing to be unstaked.
|
|
655
|
+
*
|
|
656
|
+
* Points the `AccountId` wishing to unstake to the optional `PoolId` they wish to join
|
|
657
|
+
* thereafter.
|
|
658
|
+
**/
|
|
659
|
+
queue: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<Option<u32>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
660
|
+
/**
|
|
661
|
+
* Generic query
|
|
662
|
+
**/
|
|
663
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
664
|
+
};
|
|
657
665
|
gilt: {
|
|
658
666
|
/**
|
|
659
667
|
* The currently active gilts, indexed according to the order of creation.
|
|
@@ -1345,16 +1353,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1345
1353
|
* Mode of era forcing.
|
|
1346
1354
|
**/
|
|
1347
1355
|
forceEra: AugmentedQuery<ApiType, () => Observable<PalletStakingForcing>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1348
|
-
/**
|
|
1349
|
-
* Number of eras to keep in history.
|
|
1350
|
-
*
|
|
1351
|
-
* Information is kept for eras in `[current_era - history_depth; current_era]`.
|
|
1352
|
-
*
|
|
1353
|
-
* Must be more than the number of eras delayed by session otherwise. I.e. active era must
|
|
1354
|
-
* always be in history. I.e. `active_era > current_era - history_depth` must be
|
|
1355
|
-
* guaranteed.
|
|
1356
|
-
**/
|
|
1357
|
-
historyDepth: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1358
1356
|
/**
|
|
1359
1357
|
* Any validators that may never be slashed or forcibly kicked. It's a Vec since they're
|
|
1360
1358
|
* easy to initialize and the performance hit is minimal (we expect no more than four
|
|
@@ -1796,6 +1794,28 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1796
1794
|
**/
|
|
1797
1795
|
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1798
1796
|
};
|
|
1797
|
+
voterBagsList: {
|
|
1798
|
+
/**
|
|
1799
|
+
* Counter for the related counted storage map
|
|
1800
|
+
**/
|
|
1801
|
+
counterForListNodes: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
1802
|
+
/**
|
|
1803
|
+
* A bag stored in storage.
|
|
1804
|
+
*
|
|
1805
|
+
* Stores a `Bag` struct, which stores head and tail pointers to itself.
|
|
1806
|
+
**/
|
|
1807
|
+
listBags: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<PalletBagsListListBag>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
1808
|
+
/**
|
|
1809
|
+
* A single node, within some bag.
|
|
1810
|
+
*
|
|
1811
|
+
* Nodes store links forward and back within their respective bags.
|
|
1812
|
+
**/
|
|
1813
|
+
listNodes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletBagsListListNode>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
|
|
1814
|
+
/**
|
|
1815
|
+
* Generic query
|
|
1816
|
+
**/
|
|
1817
|
+
[key: string]: QueryableStorageEntry<ApiType>;
|
|
1818
|
+
};
|
|
1799
1819
|
whitelist: {
|
|
1800
1820
|
whitelistedCall: AugmentedQuery<ApiType, (arg: H256 | string | Uint8Array) => Observable<Option<Null>>, [H256]> & QueryableStorageEntry<ApiType, [H256]>;
|
|
1801
1821
|
/**
|