@polkadot/api-augment 9.13.5 → 9.14.1

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.
@@ -37,40 +37,6 @@ declare module '@polkadot/api-base/types/errors' {
37
37
  **/
38
38
  [key: string]: AugmentedError<ApiType>;
39
39
  };
40
- authorship: {
41
- /**
42
- * The uncle is genesis.
43
- **/
44
- GenesisUncle: AugmentedError<ApiType>;
45
- /**
46
- * The uncle parent not in the chain.
47
- **/
48
- InvalidUncleParent: AugmentedError<ApiType>;
49
- /**
50
- * The uncle isn't recent enough to be included.
51
- **/
52
- OldUncle: AugmentedError<ApiType>;
53
- /**
54
- * The uncle is too high in chain.
55
- **/
56
- TooHighUncle: AugmentedError<ApiType>;
57
- /**
58
- * Too many uncles.
59
- **/
60
- TooManyUncles: AugmentedError<ApiType>;
61
- /**
62
- * The uncle is already included.
63
- **/
64
- UncleAlreadyIncluded: AugmentedError<ApiType>;
65
- /**
66
- * Uncles already set in the block.
67
- **/
68
- UnclesAlreadySet: AugmentedError<ApiType>;
69
- /**
70
- * Generic error
71
- **/
72
- [key: string]: AugmentedError<ApiType>;
73
- };
74
40
  babe: {
75
41
  /**
76
42
  * A given equivocation report is valid but already previously reported.
@@ -446,6 +412,10 @@ declare module '@polkadot/api-base/types/errors' {
446
412
  * The given account did not vote on the referendum.
447
413
  **/
448
414
  NotVoter: AugmentedError<ApiType>;
415
+ /**
416
+ * The preimage does not exist.
417
+ **/
418
+ PreimageNotExist: AugmentedError<ApiType>;
449
419
  /**
450
420
  * Proposal still blacklisted
451
421
  **/
@@ -1214,12 +1184,20 @@ declare module '@polkadot/api-base/types/errors' {
1214
1184
  * Invalid signature on statement.
1215
1185
  **/
1216
1186
  InvalidSignature: AugmentedError<ApiType>;
1187
+ /**
1188
+ * A dispute vote from a malicious backer.
1189
+ **/
1190
+ MaliciousBacker: AugmentedError<ApiType>;
1191
+ /**
1192
+ * No backing votes were provides along dispute statements.
1193
+ **/
1194
+ MissingBackingVotes: AugmentedError<ApiType>;
1217
1195
  /**
1218
1196
  * A dispute where there are only votes on one side.
1219
1197
  **/
1220
1198
  SingleSidedDispute: AugmentedError<ApiType>;
1221
1199
  /**
1222
- * Unconfirmed dispute statement sets provided
1200
+ * Unconfirmed dispute statement sets provided.
1223
1201
  **/
1224
1202
  UnconfirmedDispute: AugmentedError<ApiType>;
1225
1203
  /**
@@ -4,7 +4,7 @@ import type { Bytes, Null, Option, Result, U8aFixed, Vec, bool, u128, u16, u32,
4
4
  import type { ITuple } from '@polkadot/types-codec/types';
5
5
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
6
6
  import type { AccountId32, H256, Perbill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
7
+ import type { FrameSupportDispatchDispatchInfo, FrameSupportTokensMiscBalanceStatus, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletDemocracyVoteThreshold, PalletElectionProviderMultiPhaseElectionCompute, PalletElectionProviderMultiPhasePhase, PalletImOnlineSr25519AppSr25519Public, PalletMultisigTimepoint, PalletNominationPoolsPoolState, PalletStakingExposure, PalletStakingForcing, PalletStakingValidatorPrefs, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2CandidateReceipt, PolkadotRuntimeParachainsDisputesDisputeLocation, PolkadotRuntimeParachainsDisputesDisputeResult, PolkadotRuntimeProxyType, SpFinalityGrandpaAppPublic, SpNposElectionsElectionScore, SpRuntimeDispatchError, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3MultiassetMultiAssets, XcmV3Response, XcmV3TraitsError, XcmV3TraitsOutcome, XcmV3Xcm, XcmVersionedMultiAssets, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
8
  export type __AugmentedEvent<ApiType extends ApiTypes> = AugmentedEvent<ApiType>;
9
9
  declare module '@polkadot/api-base/types/events' {
10
10
  interface AugmentedEvents<ApiType extends ApiTypes> {
@@ -415,6 +415,28 @@ declare module '@polkadot/api-base/types/events' {
415
415
  * An external proposal has been tabled.
416
416
  **/
417
417
  ExternalTabled: AugmentedEvent<ApiType, []>;
418
+ /**
419
+ * Metadata for a proposal or a referendum has been cleared.
420
+ **/
421
+ MetadataCleared: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
422
+ owner: PalletDemocracyMetadataOwner;
423
+ hash_: H256;
424
+ }>;
425
+ /**
426
+ * Metadata for a proposal or a referendum has been set.
427
+ **/
428
+ MetadataSet: AugmentedEvent<ApiType, [owner: PalletDemocracyMetadataOwner, hash_: H256], {
429
+ owner: PalletDemocracyMetadataOwner;
430
+ hash_: H256;
431
+ }>;
432
+ /**
433
+ * Metadata has been transferred to new owner.
434
+ **/
435
+ MetadataTransferred: AugmentedEvent<ApiType, [prevOwner: PalletDemocracyMetadataOwner, owner: PalletDemocracyMetadataOwner, hash_: H256], {
436
+ prevOwner: PalletDemocracyMetadataOwner;
437
+ owner: PalletDemocracyMetadataOwner;
438
+ hash_: H256;
439
+ }>;
418
440
  /**
419
441
  * A proposal has been rejected by referendum.
420
442
  **/
@@ -1,11 +1,11 @@
1
1
  import '@polkadot/api-base/types/storage';
2
2
  import type { ApiTypes, AugmentedQuery, QueryableStorageEntry } from '@polkadot/api-base/types';
3
3
  import type { Data } from '@polkadot/types';
4
- import type { Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
4
+ import type { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u32, u64 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
8
+ import type { FrameSupportDispatchPerDispatchClassWeight, FrameSupportPreimagesBounded, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletMultisigMultisig, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletSchedulerScheduled, PalletStakingActiveEraInfo, PalletStakingEraRewardPoints, PalletStakingExposure, PalletStakingForcing, PalletStakingNominations, PalletStakingRewardDestination, PalletStakingSlashingSlashingSpans, PalletStakingSlashingSpanRecord, PalletStakingStakingLedger, PalletStakingUnappliedSlash, PalletStakingValidatorPrefs, PalletTipsOpenTip, PalletTransactionPaymentReleases, PalletTreasuryProposal, PalletVestingReleases, PalletVestingVestingInfo, PalletXcmQueryStatus, PalletXcmRemoteLockedFungibleRecord, PalletXcmVersionMigrationStage, PolkadotCorePrimitivesInboundDownwardMessage, PolkadotCorePrimitivesInboundHrmpMessage, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2AssignmentAppPublic, PolkadotPrimitivesV2CandidateCommitments, PolkadotPrimitivesV2CoreOccupied, PolkadotPrimitivesV2DisputeState, PolkadotPrimitivesV2ScrapedOnChainVotes, PolkadotPrimitivesV2SessionInfo, PolkadotPrimitivesV2UpgradeGoAhead, PolkadotPrimitivesV2UpgradeRestriction, PolkadotPrimitivesV2ValidatorAppPublic, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeCommonCrowdloanFundInfo, PolkadotRuntimeCommonParasRegistrarParaInfo, PolkadotRuntimeParachainsConfigurationHostConfiguration, PolkadotRuntimeParachainsHrmpHrmpChannel, PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest, PolkadotRuntimeParachainsInclusionAvailabilityBitfieldRecord, PolkadotRuntimeParachainsInclusionCandidatePendingAvailability, PolkadotRuntimeParachainsInitializerBufferedSessionChange, PolkadotRuntimeParachainsParasParaGenesisArgs, PolkadotRuntimeParachainsParasParaLifecycle, PolkadotRuntimeParachainsParasParaPastCodeMeta, PolkadotRuntimeParachainsParasPvfCheckActiveVoteState, PolkadotRuntimeParachainsSchedulerCoreAssignment, PolkadotRuntimeParachainsSchedulerParathreadClaimQueue, PolkadotRuntimeSessionKeys, SpConsensusBabeAppPublic, SpConsensusBabeBabeEpochConfiguration, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBabeDigestsPreDigest, SpCoreCryptoKeyTypeId, SpNposElectionsElectionScore, SpRuntimeDigest, SpStakingOffenceOffenceDetails, SpWeightsWeightV2Weight, XcmVersionedAssetId, XcmVersionedMultiLocation } from '@polkadot/types/lookup';
9
9
  import type { Observable } from '@polkadot/types/types';
10
10
  export type __AugmentedQuery<ApiType extends ApiTypes> = AugmentedQuery<ApiType, () => unknown>;
11
11
  export type __QueryableStorageEntry<ApiType extends ApiTypes> = QueryableStorageEntry<ApiType>;
@@ -45,14 +45,6 @@ declare module '@polkadot/api-base/types/storage' {
45
45
  * Author of current block.
46
46
  **/
47
47
  author: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
48
- /**
49
- * Whether uncles were already set in this block.
50
- **/
51
- didSetUncles: AugmentedQuery<ApiType, () => Observable<bool>, []> & QueryableStorageEntry<ApiType, []>;
52
- /**
53
- * Uncles
54
- **/
55
- uncles: AugmentedQuery<ApiType, () => Observable<Vec<PalletAuthorshipUncleEntryItem>>, []> & QueryableStorageEntry<ApiType, []>;
56
48
  /**
57
49
  * Generic query
58
50
  **/
@@ -386,6 +378,21 @@ declare module '@polkadot/api-base/types/storage' {
386
378
  * `ReferendumCount` if there isn't a unbaked referendum.
387
379
  **/
388
380
  lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
381
+ /**
382
+ * General information concerning any proposal or referendum.
383
+ * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
384
+ * dump or IPFS hash of a JSON file.
385
+ *
386
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
387
+ * large preimages.
388
+ **/
389
+ metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
390
+ External: any;
391
+ } | {
392
+ Proposal: any;
393
+ } | {
394
+ Referendum: any;
395
+ } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
389
396
  /**
390
397
  * The referendum to be tabled whenever it would be valid to table an external proposal.
391
398
  * This happens when a referendum needs to be tabled and one of two conditions are met:
@@ -571,6 +578,12 @@ declare module '@polkadot/api-base/types/storage' {
571
578
  * A mapping from grandpa set ID to the index of the *most recent* session for which its
572
579
  * members were responsible.
573
580
  *
581
+ * This is only used for validating equivocation proofs. An equivocation proof must
582
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
583
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
584
+ * was the owner of a given key on a given session, and what the active set ID was
585
+ * during that session.
586
+ *
574
587
  * TWOX-NOTE: `SetId` is not under user control.
575
588
  **/
576
589
  setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
@@ -1137,6 +1150,11 @@ declare module '@polkadot/api-base/types/storage' {
1137
1150
  [key: string]: QueryableStorageEntry<ApiType>;
1138
1151
  };
1139
1152
  parasDisputes: {
1153
+ /**
1154
+ * Backing votes stored for each dispute.
1155
+ * This storage is used for slashing.
1156
+ **/
1157
+ backersOnDisputes: AugmentedQuery<ApiType, (arg1: u32 | AnyNumber | Uint8Array, arg2: H256 | string | Uint8Array) => Observable<Option<BTreeSet<u32>>>, [u32, H256]> & QueryableStorageEntry<ApiType, [u32, H256]>;
1140
1158
  /**
1141
1159
  * All ongoing or concluded disputes for the last several sessions.
1142
1160
  **/
package/polkadot/tx.d.ts CHANGED
@@ -5,7 +5,7 @@ import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64,
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { EthereumAddress } from '@polkadot/types/interfaces/eth';
7
7
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent } from '@polkadot/types/interfaces/runtime';
8
- import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeHeader, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
8
+ import type { FrameSupportPreimagesBounded, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityBitFlags, PalletIdentityIdentityInfo, PalletIdentityJudgement, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMultisigTimepoint, PalletNominationPoolsBondExtra, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletVestingVestingInfo, PolkadotParachainPrimitivesHrmpChannelId, PolkadotPrimitivesV2InherentData, PolkadotPrimitivesV2PvfCheckStatement, PolkadotPrimitivesV2ValidatorAppSignature, PolkadotRuntimeCommonClaimsEcdsaSignature, PolkadotRuntimeCommonClaimsStatementKind, PolkadotRuntimeOriginCaller, PolkadotRuntimeProxyType, PolkadotRuntimeSessionKeys, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusSlotsEquivocationProof, SpFinalityGrandpaEquivocationProof, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpRuntimeMultiSigner, SpSessionMembershipProof, SpWeightsWeightV2Weight, XcmV3MultiLocation, XcmV3WeightLimit, XcmVersionedMultiAssets, XcmVersionedMultiLocation, XcmVersionedXcm } from '@polkadot/types/lookup';
9
9
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
10
10
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
11
11
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -50,22 +50,6 @@ declare module '@polkadot/api-base/types/submittable' {
50
50
  **/
51
51
  [key: string]: SubmittableExtrinsicFunction<ApiType>;
52
52
  };
53
- authorship: {
54
- /**
55
- * Provide a set of uncles.
56
- **/
57
- setUncles: AugmentedSubmittable<(newUncles: Vec<SpRuntimeHeader> | (SpRuntimeHeader | {
58
- parentHash?: any;
59
- number?: any;
60
- stateRoot?: any;
61
- extrinsicsRoot?: any;
62
- digest?: any;
63
- } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<SpRuntimeHeader>]>;
64
- /**
65
- * Generic tx
66
- **/
67
- [key: string]: SubmittableExtrinsicFunction<ApiType>;
68
- };
69
53
  babe: {
70
54
  /**
71
55
  * Plan an epoch config change. The epoch config change is recorded and will be enacted on
@@ -1446,6 +1430,30 @@ declare module '@polkadot/api-base/types/submittable' {
1446
1430
  * - `proposal`: The index of the proposal to second.
1447
1431
  **/
1448
1432
  second: AugmentedSubmittable<(proposal: Compact<u32> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u32>]>;
1433
+ /**
1434
+ * Set or clear a metadata of a proposal or a referendum.
1435
+ *
1436
+ * Parameters:
1437
+ * - `origin`: Must correspond to the `MetadataOwner`.
1438
+ * - `ExternalOrigin` for an external proposal with the `SuperMajorityApprove`
1439
+ * threshold.
1440
+ * - `ExternalDefaultOrigin` for an external proposal with the `SuperMajorityAgainst`
1441
+ * threshold.
1442
+ * - `ExternalMajorityOrigin` for an external proposal with the `SimpleMajority`
1443
+ * threshold.
1444
+ * - `Signed` by a creator for a public proposal.
1445
+ * - `Signed` to clear a metadata for a finished referendum.
1446
+ * - `Root` to set a metadata for an ongoing referendum.
1447
+ * - `owner`: an identifier of a metadata owner.
1448
+ * - `maybe_hash`: The hash of an on-chain stored preimage. `None` to clear a metadata.
1449
+ **/
1450
+ setMetadata: AugmentedSubmittable<(owner: PalletDemocracyMetadataOwner | {
1451
+ External: any;
1452
+ } | {
1453
+ Proposal: any;
1454
+ } | {
1455
+ Referendum: any;
1456
+ } | string | Uint8Array, maybeHash: Option<H256> | null | Uint8Array | H256 | string) => SubmittableExtrinsic<ApiType>, [PalletDemocracyMetadataOwner, Option<H256>]>;
1449
1457
  /**
1450
1458
  * Undelegate the voting power of the sending account.
1451
1459
  *
@@ -3045,10 +3053,6 @@ declare module '@polkadot/api-base/types/submittable' {
3045
3053
  *
3046
3054
  * It is the responsibility of the caller to **NOT** place all of their balance into the
3047
3055
  * lock and keep some for further operations.
3048
- *
3049
- * # <weight>
3050
- * We assume the maximum weight among all 3 cases: vote_equal, vote_more and vote_less.
3051
- * # </weight>
3052
3056
  **/
3053
3057
  vote: AugmentedSubmittable<(votes: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[], value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>, Compact<u128>]>;
3054
3058
  /**
@@ -3196,8 +3200,6 @@ declare module '@polkadot/api-base/types/submittable' {
3196
3200
  * Dispatch the given `call` from an account that the sender is authorised for through
3197
3201
  * `add_proxy`.
3198
3202
  *
3199
- * Removes any corresponding announcement(s).
3200
- *
3201
3203
  * The dispatch origin for this call must be _Signed_.
3202
3204
  *
3203
3205
  * Parameters:
@@ -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: The election happens onchain, and this value will determine
469
- * the size of the election. When this limit is reached no more
470
- * candidates are accepted in the election.
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
  **/
@@ -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.
@@ -706,6 +672,10 @@ declare module '@polkadot/api-base/types/errors' {
706
672
  * The given account did not vote on the referendum.
707
673
  **/
708
674
  NotVoter: AugmentedError<ApiType>;
675
+ /**
676
+ * The preimage does not exist.
677
+ **/
678
+ PreimageNotExist: AugmentedError<ApiType>;
709
679
  /**
710
680
  * Proposal still blacklisted
711
681
  **/
@@ -1675,6 +1645,10 @@ declare module '@polkadot/api-base/types/errors' {
1675
1645
  * No track exists for the proposal origin.
1676
1646
  **/
1677
1647
  NoTrack: AugmentedError<ApiType>;
1648
+ /**
1649
+ * The preimage does not exist.
1650
+ **/
1651
+ PreimageNotExist: AugmentedError<ApiType>;
1678
1652
  /**
1679
1653
  * The queue of the track is empty.
1680
1654
  **/
@@ -1799,6 +1773,10 @@ declare module '@polkadot/api-base/types/errors' {
1799
1773
  * No track exists for the proposal origin.
1800
1774
  **/
1801
1775
  NoTrack: AugmentedError<ApiType>;
1776
+ /**
1777
+ * The preimage does not exist.
1778
+ **/
1779
+ PreimageNotExist: AugmentedError<ApiType>;
1802
1780
  /**
1803
1781
  * The queue of the track is empty.
1804
1782
  **/
@@ -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
  **/
@@ -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, PalletAuthorshipUncleEntryItem, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletedContract, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, 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';
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
  **/
@@ -463,6 +455,21 @@ declare module '@polkadot/api-base/types/storage' {
463
455
  * `ReferendumCount` if there isn't a unbaked referendum.
464
456
  **/
465
457
  lowestUnbaked: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
458
+ /**
459
+ * General information concerning any proposal or referendum.
460
+ * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
461
+ * dump or IPFS hash of a JSON file.
462
+ *
463
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
464
+ * large preimages.
465
+ **/
466
+ metadataOf: AugmentedQuery<ApiType, (arg: PalletDemocracyMetadataOwner | {
467
+ External: any;
468
+ } | {
469
+ Proposal: any;
470
+ } | {
471
+ Referendum: any;
472
+ } | string | Uint8Array) => Observable<Option<H256>>, [PalletDemocracyMetadataOwner]> & QueryableStorageEntry<ApiType, [PalletDemocracyMetadataOwner]>;
466
473
  /**
467
474
  * The referendum to be tabled whenever it would be valid to table an external proposal.
468
475
  * This happens when a referendum needs to be tabled and one of two conditions are met:
@@ -666,6 +673,12 @@ declare module '@polkadot/api-base/types/storage' {
666
673
  * A mapping from grandpa set ID to the index of the *most recent* session for which its
667
674
  * members were responsible.
668
675
  *
676
+ * This is only used for validating equivocation proofs. An equivocation proof must
677
+ * contains a key-ownership proof for a given session, therefore we need a way to tie
678
+ * together sessions and GRANDPA set ids, i.e. we need to validate that a validator
679
+ * was the owner of a given key on a given session, and what the active set ID was
680
+ * during that session.
681
+ *
669
682
  * TWOX-NOTE: `SetId` is not under user control.
670
683
  **/
671
684
  setIdSession: AugmentedQuery<ApiType, (arg: u64 | AnyNumber | Uint8Array) => Observable<Option<u32>>, [u64]> & QueryableStorageEntry<ApiType, [u64]>;
@@ -1175,6 +1188,15 @@ declare module '@polkadot/api-base/types/storage' {
1175
1188
  * The number of referenda being decided currently.
1176
1189
  **/
1177
1190
  decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
1191
+ /**
1192
+ * The metadata is a general information concerning the referendum.
1193
+ * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
1194
+ * dump or IPFS hash of a JSON file.
1195
+ *
1196
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1197
+ * large preimages.
1198
+ **/
1199
+ metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1178
1200
  /**
1179
1201
  * The next free referendum index, aka the number of referenda started so far.
1180
1202
  **/
@@ -1223,6 +1245,15 @@ declare module '@polkadot/api-base/types/storage' {
1223
1245
  * The number of referenda being decided currently.
1224
1246
  **/
1225
1247
  decidingCount: AugmentedQuery<ApiType, (arg: u16 | AnyNumber | Uint8Array) => Observable<u32>, [u16]> & QueryableStorageEntry<ApiType, [u16]>;
1248
+ /**
1249
+ * The metadata is a general information concerning the referendum.
1250
+ * The `PreimageHash` refers to the preimage of the `Preimages` provider which can be a JSON
1251
+ * dump or IPFS hash of a JSON file.
1252
+ *
1253
+ * Consider a garbage collection for a metadata of finished referendums to `unrequest` (remove)
1254
+ * large preimages.
1255
+ **/
1256
+ metadataOf: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<H256>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1226
1257
  /**
1227
1258
  * The next free referendum index, aka the number of referenda started so far.
1228
1259
  **/