@polkadot/api-augment 10.1.4 → 10.2.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.
@@ -1,10 +1,10 @@
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 { BTreeSet, Bytes, Null, Option, U8aFixed, Vec, WrapperOpaque, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
4
+ import type { BTreeSet, Bytes, Null, Option, Struct, 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, 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, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, 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, FrameSystemAccountInfo, FrameSystemEventRecord, FrameSystemLastRuntimeUpgradeInfo, FrameSystemPhase, KitchensinkRuntimeHoldReason, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceMemberRole, PalletAssetsApproval, PalletAssetsAssetAccount, PalletAssetsAssetDetails, PalletAssetsAssetMetadata, PalletBagsListListBag, PalletBagsListListNode, PalletBalancesAccountData, PalletBalancesBalanceLock, PalletBalancesIdAmount, PalletBalancesReserveData, PalletBountiesBounty, PalletChildBountiesChildBounty, PalletCollectiveVotes, PalletContractsStorageContractInfo, PalletContractsStorageDeletionQueueManager, PalletContractsWasmOwnerInfo, PalletContractsWasmPrefabWasmModule, PalletConvictionVotingVoteVoting, PalletCoreFellowshipMemberStatus, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyMetadataOwner, PalletDemocracyReferendumInfo, PalletDemocracyVoteThreshold, PalletDemocracyVoteVoting, PalletElectionProviderMultiPhasePhase, PalletElectionProviderMultiPhaseReadySolution, PalletElectionProviderMultiPhaseRoundSnapshot, PalletElectionProviderMultiPhaseSignedSignedSubmission, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenSeatHolder, PalletElectionsPhragmenVoter, PalletFastUnstakeUnstakeRequest, PalletGrandpaStoredPendingChange, PalletGrandpaStoredState, PalletIdentityRegistrarInfo, PalletIdentityRegistration, PalletImOnlineBoundedOpaqueNetworkState, PalletImOnlineSr25519AppSr25519Public, PalletLotteryLotteryConfig, PalletMessageQueueBookState, PalletMessageQueuePage, PalletMultisigMultisig, PalletNftsAttributeDeposit, PalletNftsAttributeNamespace, PalletNftsCollectionConfig, PalletNftsCollectionDetails, PalletNftsCollectionMetadata, PalletNftsItemConfig, PalletNftsItemDetails, PalletNftsItemMetadata, PalletNftsPendingSwap, PalletNisBid, PalletNisReceiptRecord, PalletNisSummaryRecord, PalletNominationPoolsBondedPoolInner, PalletNominationPoolsClaimPermission, PalletNominationPoolsPoolMember, PalletNominationPoolsRewardPool, PalletNominationPoolsSubPools, PalletPreimageRequestStatus, PalletProxyAnnouncement, PalletProxyProxyDefinition, PalletRankedCollectiveMemberRecord, PalletRankedCollectiveVoteRecord, PalletRecoveryActiveRecovery, PalletRecoveryRecoveryConfig, PalletReferendaReferendumInfoConvictionVotingTally, PalletReferendaReferendumInfoRankedCollectiveTally, PalletSalaryClaimantStatus, PalletSalaryStatusType, 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>;
@@ -266,6 +266,17 @@ declare module '@polkadot/api-base/types/storage' {
266
266
  * NOTE: This is only used in the case that this pallet is used to store balances.
267
267
  **/
268
268
  account: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<PalletBalancesAccountData>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
269
+ /**
270
+ * Freeze locks on account balances.
271
+ **/
272
+ freezes: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesIdAmount>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
273
+ /**
274
+ * Holds on account balances.
275
+ **/
276
+ holds: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<{
277
+ readonly id: KitchensinkRuntimeHoldReason;
278
+ readonly amount: u128;
279
+ } & Struct>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
269
280
  /**
270
281
  * The total units of outstanding deactivated balance in the system.
271
282
  **/
@@ -352,9 +363,14 @@ declare module '@polkadot/api-base/types/storage' {
352
363
  * Evicted contracts that await child trie deletion.
353
364
  *
354
365
  * Child trie deletion is a heavy operation depending on the amount of storage items
355
- * stored in said trie. Therefore this operation is performed lazily in `on_initialize`.
366
+ * stored in said trie. Therefore this operation is performed lazily in `on_idle`.
367
+ **/
368
+ deletionQueue: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<Bytes>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
369
+ /**
370
+ * A pair of monotonic counters used to track the latest contract marked for deletion
371
+ * and the latest deleted contract in queue.
356
372
  **/
357
- deletionQueue: AugmentedQuery<ApiType, () => Observable<Vec<PalletContractsStorageDeletedContract>>, []> & QueryableStorageEntry<ApiType, []>;
373
+ deletionQueueCounter: AugmentedQuery<ApiType, () => Observable<PalletContractsStorageDeletionQueueManager>, []> & QueryableStorageEntry<ApiType, []>;
358
374
  /**
359
375
  * This is a **monotonic** counter incremented on contract instantiation.
360
376
  *
@@ -410,6 +426,24 @@ declare module '@polkadot/api-base/types/storage' {
410
426
  **/
411
427
  [key: string]: QueryableStorageEntry<ApiType>;
412
428
  };
429
+ coreFellowship: {
430
+ /**
431
+ * The status of a claimant.
432
+ **/
433
+ member: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<PalletCoreFellowshipMemberStatus>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
434
+ /**
435
+ * Some evidence together with the desired outcome for which it was presented.
436
+ **/
437
+ memberEvidence: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<ITuple<[PalletCoreFellowshipWish, Bytes]>>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
438
+ /**
439
+ * The overall status of the system.
440
+ **/
441
+ params: AugmentedQuery<ApiType, () => Observable<PalletCoreFellowshipParamsType>, []> & QueryableStorageEntry<ApiType, []>;
442
+ /**
443
+ * Generic query
444
+ **/
445
+ [key: string]: QueryableStorageEntry<ApiType>;
446
+ };
413
447
  council: {
414
448
  /**
415
449
  * The current members of the collective. This is stored sorted (just by value).
@@ -1030,6 +1064,12 @@ declare module '@polkadot/api-base/types/storage' {
1030
1064
  * Counter for the related counted storage map
1031
1065
  **/
1032
1066
  counterForSubPoolsStorage: AugmentedQuery<ApiType, () => Observable<u32>, []> & QueryableStorageEntry<ApiType, []>;
1067
+ /**
1068
+ * The maximum commission that can be charged by a pool. Used on commission payouts to bound
1069
+ * pool commissions that are > `GlobalMaxCommission`, necessary if a future
1070
+ * `GlobalMaxCommission` is lower than some current pool commissions.
1071
+ **/
1072
+ globalMaxCommission: AugmentedQuery<ApiType, () => Observable<Option<Perbill>>, []> & QueryableStorageEntry<ApiType, []>;
1033
1073
  /**
1034
1074
  * Ever increasing number of all pools created so far.
1035
1075
  **/
@@ -1081,13 +1121,13 @@ declare module '@polkadot/api-base/types/storage' {
1081
1121
  **/
1082
1122
  reversePoolIdLookup: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Option<u32>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
1083
1123
  /**
1084
- * Reward pools. This is where there rewards for each pool accumulate. When a members payout
1085
- * is claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1124
+ * Reward pools. This is where there rewards for each pool accumulate. When a members payout is
1125
+ * claimed, the balance comes out fo the reward pool. Keyed by the bonded pools account.
1086
1126
  **/
1087
1127
  rewardPools: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsRewardPool>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1088
1128
  /**
1089
- * Groups of unbonding pools. Each group of unbonding pools belongs to a bonded pool,
1090
- * hence the name sub-pools. Keyed by the bonded pools account.
1129
+ * Groups of unbonding pools. Each group of unbonding pools belongs to a
1130
+ * bonded pool, hence the name sub-pools. Keyed by the bonded pools account.
1091
1131
  **/
1092
1132
  subPoolsStorage: AugmentedQuery<ApiType, (arg: u32 | AnyNumber | Uint8Array) => Observable<Option<PalletNominationPoolsSubPools>>, [u32]> & QueryableStorageEntry<ApiType, [u32]>;
1093
1133
  /**
@@ -11,11 +11,11 @@ import type { CodeSource, CodeUploadResult, ContractExecResult, ContractInstanti
11
11
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
12
12
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
13
13
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
14
- import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError, MmrLeafIndex, MmrProof } from '@polkadot/types/interfaces/mmr';
14
+ import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
15
15
  import type { NftCollectionId, NftItemId } from '@polkadot/types/interfaces/nfts';
16
16
  import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
17
17
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
18
- import type { AccountId, Balance, Block, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
18
+ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight, WeightV2 } from '@polkadot/types/interfaces/runtime';
19
19
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
20
20
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
21
21
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -210,12 +210,20 @@ declare module '@polkadot/api-base/types/calls' {
210
210
  **/
211
211
  [key: string]: DecoratedCallBase<ApiType>;
212
212
  };
213
- /** 0x37e397fc7c91f5e4/1 */
213
+ /** 0x37e397fc7c91f5e4/2 */
214
214
  metadata: {
215
215
  /**
216
216
  * Returns the metadata of a runtime
217
217
  **/
218
218
  metadata: AugmentedCall<ApiType, () => Observable<OpaqueMetadata>>;
219
+ /**
220
+ * Returns the metadata at a given version.
221
+ **/
222
+ metadataAtVersion: AugmentedCall<ApiType, (version: u32 | AnyNumber | Uint8Array) => Observable<Option<OpaqueMetadata>>>;
223
+ /**
224
+ * Returns the supported metadata versions.
225
+ **/
226
+ metadataVersions: AugmentedCall<ApiType, () => Observable<Vec<u32>>>;
219
227
  /**
220
228
  * Generic call
221
229
  **/
@@ -224,46 +232,26 @@ declare module '@polkadot/api-base/types/calls' {
224
232
  /** 0x91d5df18b0d2cf58/2 */
225
233
  mmrApi: {
226
234
  /**
227
- * Generate MMR proof for a series of leaves under given indices.
228
- **/
229
- generateBatchProof: AugmentedCall<ApiType, (leafIndices: Vec<MmrLeafIndex> | (MmrLeafIndex | AnyNumber | Uint8Array)[]) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
230
- /**
231
- * Generate MMR proof for a leaf under given index.
235
+ * Generate MMR proof for the given block numbers.
232
236
  **/
233
- generateProof: AugmentedCall<ApiType, (leafIndex: MmrLeafIndex | AnyNumber | Uint8Array) => Observable<Result<ITuple<[MmrEncodableOpaqueLeaf, MmrProof]>, MmrError>>>;
237
+ generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
234
238
  /**
235
239
  * Return the on-chain MMR root hash.
236
240
  **/
237
- mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
238
- /**
239
- * Verify MMR proof against on-chain MMR for a batch of leaves.
240
- **/
241
- verifyBatchProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
242
- leafIndices?: any;
243
- leafCount?: any;
244
- items?: any;
245
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
246
- /**
247
- * Verify MMR proof against given root hash or a batch of leaves.
248
- **/
249
- verifyBatchProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
250
- leafIndices?: any;
251
- leafCount?: any;
252
- items?: any;
253
- } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
241
+ root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
254
242
  /**
255
243
  * Verify MMR proof against on-chain MMR.
256
244
  **/
257
- verifyProof: AugmentedCall<ApiType, (leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
258
- leafIndex?: any;
245
+ verifyProof: AugmentedCall<ApiType, (leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
246
+ leafIndices?: any;
259
247
  leafCount?: any;
260
248
  items?: any;
261
249
  } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;
262
250
  /**
263
251
  * Verify MMR proof against given root hash.
264
252
  **/
265
- verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaf: MmrEncodableOpaqueLeaf | string | Uint8Array, proof: MmrProof | {
266
- leafIndex?: any;
253
+ verifyProofStateless: AugmentedCall<ApiType, (root: Hash | string | Uint8Array, leaves: Vec<MmrEncodableOpaqueLeaf> | (MmrEncodableOpaqueLeaf | string | Uint8Array)[], proof: MmrBatchProof | {
254
+ leafIndices?: any;
267
255
  leafCount?: any;
268
256
  items?: any;
269
257
  } | string | Uint8Array) => Observable<Result<ITuple<[]>, MmrError>>>;