@polkadot/api-augment 9.13.6 → 9.14.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 +23 -16
- package/kusama/errors.d.ts +21 -35
- package/kusama/events.d.ts +57 -1
- package/kusama/query.d.ts +50 -10
- package/kusama/tx.d.ts +242 -651
- package/package.json +7 -7
- package/packageInfo.js +1 -1
- package/polkadot/consts.d.ts +23 -16
- package/polkadot/errors.d.ts +13 -35
- package/polkadot/events.d.ts +23 -1
- package/polkadot/query.d.ts +32 -10
- package/polkadot/tx.d.ts +173 -491
- package/substrate/consts.d.ts +27 -16
- package/substrate/errors.d.ts +28 -38
- package/substrate/events.d.ts +57 -1
- package/substrate/query.d.ts +51 -9
- package/substrate/tx.d.ts +291 -732
package/substrate/consts.d.ts
CHANGED
|
@@ -71,18 +71,6 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
71
71
|
**/
|
|
72
72
|
[key: string]: Codec;
|
|
73
73
|
};
|
|
74
|
-
authorship: {
|
|
75
|
-
/**
|
|
76
|
-
* The number of blocks back we should accept uncles.
|
|
77
|
-
* This means that we will deal with uncle-parents that are
|
|
78
|
-
* `UncleGenerations + 1` before `now`.
|
|
79
|
-
**/
|
|
80
|
-
uncleGenerations: u32 & AugmentedConst<ApiType>;
|
|
81
|
-
/**
|
|
82
|
-
* Generic const
|
|
83
|
-
**/
|
|
84
|
-
[key: string]: Codec;
|
|
85
|
-
};
|
|
86
74
|
babe: {
|
|
87
75
|
/**
|
|
88
76
|
* The amount of time, in slots, that each epoch should last.
|
|
@@ -465,18 +453,28 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
465
453
|
/**
|
|
466
454
|
* The maximum number of candidates in a phragmen election.
|
|
467
455
|
*
|
|
468
|
-
* Warning:
|
|
469
|
-
*
|
|
470
|
-
*
|
|
456
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
457
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
458
|
+
*
|
|
459
|
+
* When this limit is reached no more candidates are accepted in the election.
|
|
471
460
|
**/
|
|
472
461
|
maxCandidates: u32 & AugmentedConst<ApiType>;
|
|
473
462
|
/**
|
|
474
463
|
* The maximum number of voters to allow in a phragmen election.
|
|
475
464
|
*
|
|
476
|
-
* Warning: This impacts the size of the election which is run onchain.
|
|
465
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
466
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
467
|
+
*
|
|
477
468
|
* When the limit is reached the new voters are ignored.
|
|
478
469
|
**/
|
|
479
470
|
maxVoters: u32 & AugmentedConst<ApiType>;
|
|
471
|
+
/**
|
|
472
|
+
* Maximum numbers of votes per voter.
|
|
473
|
+
*
|
|
474
|
+
* Warning: This impacts the size of the election which is run onchain. Chose wisely, and
|
|
475
|
+
* consider how it will impact `T::WeightInfo::election_phragmen`.
|
|
476
|
+
**/
|
|
477
|
+
maxVotesPerVoter: u32 & AugmentedConst<ApiType>;
|
|
480
478
|
/**
|
|
481
479
|
* Identifier for the elections-phragmen pallet's lock
|
|
482
480
|
**/
|
|
@@ -519,6 +517,15 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
519
517
|
* Max Authorities in use
|
|
520
518
|
**/
|
|
521
519
|
maxAuthorities: u32 & AugmentedConst<ApiType>;
|
|
520
|
+
/**
|
|
521
|
+
* The maximum number of entries to keep in the set id to session index mapping.
|
|
522
|
+
*
|
|
523
|
+
* Since the `SetIdSession` map is only used for validating equivocations this
|
|
524
|
+
* value should relate to the bonding duration of whatever staking system is
|
|
525
|
+
* being used (if any). If equivocation handling is not enabled then this value
|
|
526
|
+
* can be zero.
|
|
527
|
+
**/
|
|
528
|
+
maxSetIdSessionEntries: u64 & AugmentedConst<ApiType>;
|
|
522
529
|
/**
|
|
523
530
|
* Generic const
|
|
524
531
|
**/
|
|
@@ -688,6 +695,10 @@ declare module '@polkadot/api-base/types/consts' {
|
|
|
688
695
|
* The maximum length of an attribute key.
|
|
689
696
|
**/
|
|
690
697
|
keyLimit: u32 & AugmentedConst<ApiType>;
|
|
698
|
+
/**
|
|
699
|
+
* The max number of attributes a user could set per call.
|
|
700
|
+
**/
|
|
701
|
+
maxAttributesPerCall: u32 & AugmentedConst<ApiType>;
|
|
691
702
|
/**
|
|
692
703
|
* The max duration in blocks for deadlines.
|
|
693
704
|
**/
|
package/substrate/errors.d.ts
CHANGED
|
@@ -237,40 +237,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
237
237
|
**/
|
|
238
238
|
[key: string]: AugmentedError<ApiType>;
|
|
239
239
|
};
|
|
240
|
-
authorship: {
|
|
241
|
-
/**
|
|
242
|
-
* The uncle is genesis.
|
|
243
|
-
**/
|
|
244
|
-
GenesisUncle: AugmentedError<ApiType>;
|
|
245
|
-
/**
|
|
246
|
-
* The uncle parent not in the chain.
|
|
247
|
-
**/
|
|
248
|
-
InvalidUncleParent: AugmentedError<ApiType>;
|
|
249
|
-
/**
|
|
250
|
-
* The uncle isn't recent enough to be included.
|
|
251
|
-
**/
|
|
252
|
-
OldUncle: AugmentedError<ApiType>;
|
|
253
|
-
/**
|
|
254
|
-
* The uncle is too high in chain.
|
|
255
|
-
**/
|
|
256
|
-
TooHighUncle: AugmentedError<ApiType>;
|
|
257
|
-
/**
|
|
258
|
-
* Too many uncles.
|
|
259
|
-
**/
|
|
260
|
-
TooManyUncles: AugmentedError<ApiType>;
|
|
261
|
-
/**
|
|
262
|
-
* The uncle is already included.
|
|
263
|
-
**/
|
|
264
|
-
UncleAlreadyIncluded: AugmentedError<ApiType>;
|
|
265
|
-
/**
|
|
266
|
-
* Uncles already set in the block.
|
|
267
|
-
**/
|
|
268
|
-
UnclesAlreadySet: AugmentedError<ApiType>;
|
|
269
|
-
/**
|
|
270
|
-
* Generic error
|
|
271
|
-
**/
|
|
272
|
-
[key: string]: AugmentedError<ApiType>;
|
|
273
|
-
};
|
|
274
240
|
babe: {
|
|
275
241
|
/**
|
|
276
242
|
* A given equivocation report is valid but already previously reported.
|
|
@@ -440,10 +406,6 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
440
406
|
* Contract trapped during execution.
|
|
441
407
|
**/
|
|
442
408
|
ContractTrapped: AugmentedError<ApiType>;
|
|
443
|
-
/**
|
|
444
|
-
* The debug message specified to `seal_debug_message` does contain invalid UTF-8.
|
|
445
|
-
**/
|
|
446
|
-
DebugMessageInvalidUTF8: AugmentedError<ApiType>;
|
|
447
409
|
/**
|
|
448
410
|
* Input passed to a contract API function failed to decode as expected type.
|
|
449
411
|
**/
|
|
@@ -706,6 +668,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
706
668
|
* The given account did not vote on the referendum.
|
|
707
669
|
**/
|
|
708
670
|
NotVoter: AugmentedError<ApiType>;
|
|
671
|
+
/**
|
|
672
|
+
* The preimage does not exist.
|
|
673
|
+
**/
|
|
674
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
709
675
|
/**
|
|
710
676
|
* Proposal still blacklisted
|
|
711
677
|
**/
|
|
@@ -1234,6 +1200,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1234
1200
|
* The provided data is incorrect.
|
|
1235
1201
|
**/
|
|
1236
1202
|
IncorrectData: AugmentedError<ApiType>;
|
|
1203
|
+
/**
|
|
1204
|
+
* The provided metadata might be too long.
|
|
1205
|
+
**/
|
|
1206
|
+
IncorrectMetadata: AugmentedError<ApiType>;
|
|
1237
1207
|
/**
|
|
1238
1208
|
* The item is locked (non-transferable).
|
|
1239
1209
|
**/
|
|
@@ -1258,6 +1228,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1258
1228
|
* Item's metadata is locked.
|
|
1259
1229
|
**/
|
|
1260
1230
|
LockedItemMetadata: AugmentedError<ApiType>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Can't set more attributes per one call.
|
|
1233
|
+
**/
|
|
1234
|
+
MaxAttributesLimitReached: AugmentedError<ApiType>;
|
|
1261
1235
|
/**
|
|
1262
1236
|
* The max supply is locked and can't be changed.
|
|
1263
1237
|
**/
|
|
@@ -1338,6 +1312,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1338
1312
|
* The duration provided should be less than or equal to `MaxDeadlineDuration`.
|
|
1339
1313
|
**/
|
|
1340
1314
|
WrongDuration: AugmentedError<ApiType>;
|
|
1315
|
+
/**
|
|
1316
|
+
* The extrinsic was sent by the wrong origin.
|
|
1317
|
+
**/
|
|
1318
|
+
WrongOrigin: AugmentedError<ApiType>;
|
|
1341
1319
|
/**
|
|
1342
1320
|
* The owner turned out to be different to what was expected.
|
|
1343
1321
|
**/
|
|
@@ -1346,6 +1324,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1346
1324
|
* The provided setting can't be set.
|
|
1347
1325
|
**/
|
|
1348
1326
|
WrongSetting: AugmentedError<ApiType>;
|
|
1327
|
+
/**
|
|
1328
|
+
* The provided signature is incorrect.
|
|
1329
|
+
**/
|
|
1330
|
+
WrongSignature: AugmentedError<ApiType>;
|
|
1349
1331
|
/**
|
|
1350
1332
|
* Generic error
|
|
1351
1333
|
**/
|
|
@@ -1675,6 +1657,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1675
1657
|
* No track exists for the proposal origin.
|
|
1676
1658
|
**/
|
|
1677
1659
|
NoTrack: AugmentedError<ApiType>;
|
|
1660
|
+
/**
|
|
1661
|
+
* The preimage does not exist.
|
|
1662
|
+
**/
|
|
1663
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
1678
1664
|
/**
|
|
1679
1665
|
* The queue of the track is empty.
|
|
1680
1666
|
**/
|
|
@@ -1799,6 +1785,10 @@ declare module '@polkadot/api-base/types/errors' {
|
|
|
1799
1785
|
* No track exists for the proposal origin.
|
|
1800
1786
|
**/
|
|
1801
1787
|
NoTrack: AugmentedError<ApiType>;
|
|
1788
|
+
/**
|
|
1789
|
+
* The preimage does not exist.
|
|
1790
|
+
**/
|
|
1791
|
+
PreimageNotExist: AugmentedError<ApiType>;
|
|
1802
1792
|
/**
|
|
1803
1793
|
* The queue of the track is empty.
|
|
1804
1794
|
**/
|
package/substrate/events.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { ApiTypes, AugmentedEvent } from '@polkadot/api-base/types';
|
|
|
3
3
|
import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
|
|
4
4
|
import type { ITuple } from '@polkadot/types-codec/types';
|
|
5
5
|
import type { AccountId32, H256, Perbill, Perquintill } from '@polkadot/types/interfaces/runtime';
|
|
6
|
-
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
6
|
+
import type { FrameSupportDispatchDispatchInfo, FrameSupportDispatchPostDispatchInfo, FrameSupportMessagesProcessMessageError, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSupportTokensMiscBalanceStatus, KitchensinkRuntimeProxyType, PalletAllianceCid, PalletAllianceUnscrupulousItem, PalletConvictionVotingTally, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMessageQueueMockHelpersMessageOrigin, PalletMultisigTimepoint, PalletNftsPriceWithDirection, PalletNominationPoolsPoolState, PalletRankedCollectiveTally, PalletRankedCollectiveVoteRecord, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PalletStateTrieMigrationError, PalletStateTrieMigrationMigrationCompute, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpRuntimeDispatchErrorWithPostInfo, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
|
|
7
7
|
export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
|
|
8
8
|
declare module '@polkadot/api-base/types/events' {
|
|
9
9
|
interface AugmentedEvents<ApiType extends ApiTypes> {
|
|
@@ -689,6 +689,28 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
689
689
|
* An external proposal has been tabled.
|
|
690
690
|
**/
|
|
691
691
|
ExternalTabled: AugmentedEvent<ApiType, []>;
|
|
692
|
+
/**
|
|
693
|
+
* Metadata for a proposal or a referendum has been cleared.
|
|
694
|
+
**/
|
|
695
|
+
MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
696
|
+
owner: PalletDemocracyMetadataOwner;
|
|
697
|
+
hash_: H256;
|
|
698
|
+
}>;
|
|
699
|
+
/**
|
|
700
|
+
* Metadata for a proposal or a referendum has been set.
|
|
701
|
+
**/
|
|
702
|
+
MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
703
|
+
owner: PalletDemocracyMetadataOwner;
|
|
704
|
+
hash_: H256;
|
|
705
|
+
}>;
|
|
706
|
+
/**
|
|
707
|
+
* Metadata has been transferred to new owner.
|
|
708
|
+
**/
|
|
709
|
+
MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], {
|
|
710
|
+
prevOwner: PalletDemocracyMetadataOwner;
|
|
711
|
+
owner: PalletDemocracyMetadataOwner;
|
|
712
|
+
hash_: H256;
|
|
713
|
+
}>;
|
|
692
714
|
/**
|
|
693
715
|
* A proposal has been rejected by referendum.
|
|
694
716
|
**/
|
|
@@ -1842,6 +1864,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1842
1864
|
index: u32;
|
|
1843
1865
|
tally: PalletRankedCollectiveTally;
|
|
1844
1866
|
}>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Metadata for a referendum has been cleared.
|
|
1869
|
+
**/
|
|
1870
|
+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
1871
|
+
index: u32;
|
|
1872
|
+
hash_: H256;
|
|
1873
|
+
}>;
|
|
1874
|
+
/**
|
|
1875
|
+
* Metadata for a referendum has been set.
|
|
1876
|
+
**/
|
|
1877
|
+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
1878
|
+
index: u32;
|
|
1879
|
+
hash_: H256;
|
|
1880
|
+
}>;
|
|
1845
1881
|
/**
|
|
1846
1882
|
* A proposal has been rejected by referendum.
|
|
1847
1883
|
**/
|
|
@@ -1990,6 +2026,20 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
1990
2026
|
index: u32;
|
|
1991
2027
|
tally: PalletConvictionVotingTally;
|
|
1992
2028
|
}>;
|
|
2029
|
+
/**
|
|
2030
|
+
* Metadata for a referendum has been cleared.
|
|
2031
|
+
**/
|
|
2032
|
+
MetadataCleared: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
2033
|
+
index: u32;
|
|
2034
|
+
hash_: H256;
|
|
2035
|
+
}>;
|
|
2036
|
+
/**
|
|
2037
|
+
* Metadata for a referendum has been set.
|
|
2038
|
+
**/
|
|
2039
|
+
MetadataSet: AugmentedEvent<ApiType, [index: u32, hash_: H256], {
|
|
2040
|
+
index: u32;
|
|
2041
|
+
hash_: H256;
|
|
2042
|
+
}>;
|
|
1993
2043
|
/**
|
|
1994
2044
|
* A proposal has been rejected by referendum.
|
|
1995
2045
|
**/
|
|
@@ -2166,6 +2216,12 @@ declare module '@polkadot/api-base/types/events' {
|
|
|
2166
2216
|
NewMaxMembers: AugmentedEvent<ApiType, [max: u32], {
|
|
2167
2217
|
max: u32;
|
|
2168
2218
|
}>;
|
|
2219
|
+
/**
|
|
2220
|
+
* A group of members has been choosen as Skeptics
|
|
2221
|
+
**/
|
|
2222
|
+
SkepticsChosen: AugmentedEvent<ApiType, [skeptics: Vec<AccountId32>], {
|
|
2223
|
+
skeptics: Vec<AccountId32>;
|
|
2224
|
+
}>;
|
|
2169
2225
|
/**
|
|
2170
2226
|
* A suspended member has been judged.
|
|
2171
2227
|
**/
|
package/substrate/query.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
|
|
|
4
4
|
import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, 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, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata,
|
|
7
|
+
import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSupportTokensMiscAttributeNamespace, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueueMockHelpersMessageOrigin, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSchedulerScheduled, PalletSocietyBid, PalletSocietyBidKind, PalletSocietyVote, PalletSocietyVouchingStatus, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, 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 type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
|
|
10
10
|
export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
|
|
@@ -120,14 +120,6 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
120
120
|
* Author of current block.
|
|
121
121
|
**/
|
|
122
122
|
author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
123
|
-
/**
|
|
124
|
-
* Whether uncles were already set in this block.
|
|
125
|
-
**/
|
|
126
|
-
didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
|
|
127
|
-
/**
|
|
128
|
-
* Uncles
|
|
129
|
-
**/
|
|
130
|
-
uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
131
123
|
/**
|
|
132
124
|
* Generic query
|
|
133
125
|
**/
|
|
@@ -226,6 +218,17 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
226
218
|
* epoch.
|
|
227
219
|
**/
|
|
228
220
|
segmentIndex: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
221
|
+
/**
|
|
222
|
+
* A list of the last 100 skipped epochs and the corresponding session index
|
|
223
|
+
* when the epoch was skipped.
|
|
224
|
+
*
|
|
225
|
+
* This is only used for validating equivocation proofs. An equivocation proof
|
|
226
|
+
* must contains a key-ownership proof for a given session, therefore we need a
|
|
227
|
+
* way to tie together sessions and epoch indices, i.e. we need to validate that
|
|
228
|
+
* a validator was the owner of a given key on a given session, and what the
|
|
229
|
+
* active epoch index was during that session.
|
|
230
|
+
**/
|
|
231
|
+
skippedEpochs: AugmentedQuery<ApiType, () => Observable<Vec<ITuple<[u64, u32]>>>, []> & QueryableStorageEntry<ApiType, []>;
|
|
229
232
|
/**
|
|
230
233
|
* TWOX-NOTE: `SegmentIndex` is an increasing integer, so this is okay.
|
|
231
234
|
**/
|
|
@@ -463,6 +466,21 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
463
466
|
* `ReferendumCount` if there isn't a unbaked referendum.
|
|
464
467
|
**/
|
|
465
468
|
lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
|
|
469
|
+
/**
|
|
470
|
+
* General information concerning any proposal or referendum.
|
|
471
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
472
|
+
* dump or IPFS hash of a JSON file.
|
|
473
|
+
*
|
|
474
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
475
|
+
* large preimages.
|
|
476
|
+
**/
|
|
477
|
+
metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
|
|
478
|
+
External: any;
|
|
479
|
+
} | {
|
|
480
|
+
Proposal: any;
|
|
481
|
+
} | {
|
|
482
|
+
Referendum: any;
|
|
483
|
+
} | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
|
|
466
484
|
/**
|
|
467
485
|
* The referendum to be tabled whenever it would be valid to table an external proposal.
|
|
468
486
|
* This happens when a referendum needs to be tabled and one of two conditions are met:
|
|
@@ -666,6 +684,12 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
666
684
|
* A mapping from grandpa set ID to the index of the *most recent* session for which its
|
|
667
685
|
* members were responsible.
|
|
668
686
|
*
|
|
687
|
+
* This is only used for validating equivocation proofs. An equivocation proof must
|
|
688
|
+
* contains a key-ownership proof for a given session, therefore we need a way to tie
|
|
689
|
+
* together sessions and GRANDPA set ids, i.e. we need to validate that a validator
|
|
690
|
+
* was the owner of a given key on a given session, and what the active set ID was
|
|
691
|
+
* during that session.
|
|
692
|
+
*
|
|
669
693
|
* TWOX-NOTE: `SetId` is not under user control.
|
|
670
694
|
**/
|
|
671
695
|
setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
|
|
@@ -1175,6 +1199,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1175
1199
|
* The number of referenda being decided currently.
|
|
1176
1200
|
**/
|
|
1177
1201
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1202
|
+
/**
|
|
1203
|
+
* The metadata is a general information concerning the referendum.
|
|
1204
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1205
|
+
* dump or IPFS hash of a JSON file.
|
|
1206
|
+
*
|
|
1207
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1208
|
+
* large preimages.
|
|
1209
|
+
**/
|
|
1210
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1178
1211
|
/**
|
|
1179
1212
|
* The next free referendum index, aka the number of referenda started so far.
|
|
1180
1213
|
**/
|
|
@@ -1223,6 +1256,15 @@ declare module '@polkadot/api-base/types/storage' {
|
|
|
1223
1256
|
* The number of referenda being decided currently.
|
|
1224
1257
|
**/
|
|
1225
1258
|
decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
|
|
1259
|
+
/**
|
|
1260
|
+
* The metadata is a general information concerning the referendum.
|
|
1261
|
+
* The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
|
|
1262
|
+
* dump or IPFS hash of a JSON file.
|
|
1263
|
+
*
|
|
1264
|
+
* Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
|
|
1265
|
+
* large preimages.
|
|
1266
|
+
**/
|
|
1267
|
+
metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
|
|
1226
1268
|
/**
|
|
1227
1269
|
* The next free referendum index, aka the number of referenda started so far.
|
|
1228
1270
|
**/
|