@polkadot/api-augment 10.12.6 → 11.0.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.
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.12.6' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '11.0.1' };
@@ -1,6 +1,6 @@
1
1
  import '@polkadot/api-base/types/calls';
2
2
  import type { ApiTypes, AugmentedCall, DecoratedCallBase } from '@polkadot/api-base/types';
3
- import type { Bytes, Null, Option, Result, U64, Vec, u32 } from '@polkadot/types-codec';
3
+ import type { Bytes, Null, Option, Result, U64, Vec, bool, u32 } from '@polkadot/types-codec';
4
4
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
5
5
  import type { BabeEquivocationProof, BabeGenesisConfiguration, Epoch, OpaqueKeyOwnershipProof } from '@polkadot/types/interfaces/babe';
6
6
  import type { BeefyAuthoritySet, BeefyEquivocationProof, BeefyNextAuthoritySet, ValidatorSet, ValidatorSetId } from '@polkadot/types/interfaces/beefy';
@@ -13,8 +13,11 @@ import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/t
13
13
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
14
14
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
15
15
  import type { NpPoolId } from '@polkadot/types/interfaces/nompools';
16
+ import type { ApprovalVotingParams, AsyncBackingParams, BackingState, CandidateCommitments, CandidateEvent, CandidateHash, CommittedCandidateReceipt, CoreState, DisputeProof, DisputeState, ExecutorParams, GroupRotationInfo, InboundDownwardMessage, InboundHrmpMessage, NodeFeatures, OccupiedCoreAssumption, ParaId, ParaValidatorIndex, PendingSlashes, PersistedValidationData, PvfCheckStatement, ScrapedOnChainVotes, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorSignature } from '@polkadot/types/interfaces/parachains';
16
17
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
17
- import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, Weight } from '@polkadot/types/interfaces/runtime';
18
+ import type { AccountId, Balance, Block, BlockNumber, Call, Hash, Header, Index, KeyTypeId, Slot, ValidatorId, Weight } from '@polkadot/types/interfaces/runtime';
19
+ import type { SessionIndex } from '@polkadot/types/interfaces/session';
20
+ import type { ValidatorIndex } from '@polkadot/types/interfaces/staking';
18
21
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
19
22
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
20
23
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -311,6 +314,146 @@ declare module '@polkadot/api-base/types/calls' {
311
314
  **/
312
315
  [key: string]: DecoratedCallBase<ApiType>;
313
316
  };
317
+ /** 0xaf2c0297a23e6d3d/10 */
318
+ parachainHost: {
319
+ /**
320
+ * Approval voting configuration parameters
321
+ **/
322
+ approvalVotingParams: AugmentedCall<ApiType, () => Observable<ApprovalVotingParams>>;
323
+ /**
324
+ * Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.
325
+ **/
326
+ assumedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, hash: Hash | string | Uint8Array) => Observable<Option<ITuple<[PersistedValidationData, ValidationCodeHash]>>>>;
327
+ /**
328
+ * Returns candidate's acceptance limitations for asynchronous backing for a relay parent
329
+ **/
330
+ asyncBackingParams: AugmentedCall<ApiType, () => Observable<AsyncBackingParams>>;
331
+ /**
332
+ * Yields information on all availability cores as relevant to the child block.
333
+ **/
334
+ availabilityCores: AugmentedCall<ApiType, () => Observable<Vec<CoreState>>>;
335
+ /**
336
+ * Get a vector of events concerning candidates that occurred within a block.
337
+ **/
338
+ candidateEvents: AugmentedCall<ApiType, () => Observable<Vec<CandidateEvent>>>;
339
+ /**
340
+ * Get the receipt of a candidate pending availability.
341
+ **/
342
+ candidatePendingAvailability: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<CommittedCandidateReceipt>>>;
343
+ /**
344
+ * Checks if the given validation outputs pass the acceptance criteria.
345
+ **/
346
+ checkValidationOutputs: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, outputs: CandidateCommitments | {
347
+ upwardMessages?: any;
348
+ horizontalMessages?: any;
349
+ newValidationCode?: any;
350
+ headData?: any;
351
+ processedDownwardMessages?: any;
352
+ hrmpWatermark?: any;
353
+ } | string | Uint8Array) => Observable<bool>>;
354
+ /**
355
+ * Returns a list of all disabled validators at the given block
356
+ **/
357
+ disabledValidators: AugmentedCall<ApiType, () => Observable<ValidatorIndex>>;
358
+ /**
359
+ * Returns all onchain disputes.
360
+ **/
361
+ disputes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, DisputeState]>>>>;
362
+ /**
363
+ * Get all the pending inbound messages in the downward message queue for a para.
364
+ **/
365
+ dmqContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundDownwardMessage>>>;
366
+ /**
367
+ * Get the contents of all channels addressed to the given recipient.
368
+ **/
369
+ inboundHrmpChannelsContents: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Vec<InboundHrmpMessage>>>;
370
+ /**
371
+ * Returns a merkle proof of a validator session key
372
+ **/
373
+ keyOwnershipProof: AugmentedCall<ApiType, (validatorId: ValidatorId | string | Uint8Array) => Observable<Option<OpaqueKeyOwnershipProof>>>;
374
+ /**
375
+ * Get the minimum number of backing votes for a parachain candidate. This is a staging method! Do not use on production runtimes!
376
+ **/
377
+ minimumBackingVotes: AugmentedCall<ApiType, () => Observable<u32>>;
378
+ /**
379
+ * Get node features. This is a staging method! Do not use on production runtimes!
380
+ **/
381
+ nodeFeatures: AugmentedCall<ApiType, () => Observable<NodeFeatures>>;
382
+ /**
383
+ * Scrape dispute relevant from on-chain, backing votes and resolved disputes.
384
+ **/
385
+ onChainVotes: AugmentedCall<ApiType, () => Observable<Option<ScrapedOnChainVotes>>>;
386
+ /**
387
+ * Returns the state of parachain backing for a given para
388
+ **/
389
+ paraBackingState: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array) => Observable<Option<BackingState>>>;
390
+ /**
391
+ * Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.
392
+ **/
393
+ persistedValidationData: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<PersistedValidationData>>>;
394
+ /**
395
+ * Returns code hashes of PVFs that require pre-checking by validators in the active set.
396
+ **/
397
+ pvfsRequirePrecheck: AugmentedCall<ApiType, () => Observable<Vec<ValidationCodeHash>>>;
398
+ /**
399
+ * Returns execution parameters for the session.
400
+ **/
401
+ sessionExecutorParams: AugmentedCall<ApiType, (sessionIndex: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<ExecutorParams>>>;
402
+ /**
403
+ * Returns the session index expected at a child of the block.
404
+ **/
405
+ sessionIndexForChild: AugmentedCall<ApiType, () => Observable<SessionIndex>>;
406
+ /**
407
+ * Get the session info for the given session, if stored.
408
+ **/
409
+ sessionInfo: AugmentedCall<ApiType, (index: SessionIndex | AnyNumber | Uint8Array) => Observable<Option<SessionInfo>>>;
410
+ /**
411
+ * Submits a PVF pre-checking statement into the transaction pool.
412
+ **/
413
+ submitPvfCheckStatement: AugmentedCall<ApiType, (stmt: PvfCheckStatement | {
414
+ accept?: any;
415
+ subject?: any;
416
+ sessionIndex?: any;
417
+ validatorIndex?: any;
418
+ } | string | Uint8Array, signature: ValidatorSignature | string | Uint8Array) => Observable<Null>>;
419
+ /**
420
+ * Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session
421
+ **/
422
+ submitReportDisputeLost: AugmentedCall<ApiType, (disputeProof: DisputeProof | {
423
+ timeSlot?: any;
424
+ kind?: any;
425
+ validatorIndex?: any;
426
+ validatorId?: any;
427
+ } | string | Uint8Array, keyOwnershipProof: OpaqueKeyOwnershipProof | string | Uint8Array) => Observable<Option<Null>>>;
428
+ /**
429
+ * Returns a list of validators that lost a past session dispute and need to be slashed
430
+ **/
431
+ unappliedSlashes: AugmentedCall<ApiType, () => Observable<Vec<ITuple<[SessionIndex, CandidateHash, PendingSlashes]>>>>;
432
+ /**
433
+ * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
434
+ **/
435
+ validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
436
+ /**
437
+ * Get the validation code from its hash.
438
+ **/
439
+ validationCodeByHash: AugmentedCall<ApiType, (hash: ValidationCodeHash | string | Uint8Array) => Observable<Option<ValidationCode>>>;
440
+ /**
441
+ * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
442
+ **/
443
+ validationCodeHash: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCodeHash>>>;
444
+ /**
445
+ * Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on
446
+ **/
447
+ validatorGroups: AugmentedCall<ApiType, () => Observable<ITuple<[Vec<Vec<ParaValidatorIndex>>, GroupRotationInfo]>>>;
448
+ /**
449
+ * Get the current validators.
450
+ **/
451
+ validators: AugmentedCall<ApiType, () => Observable<Vec<ValidatorId>>>;
452
+ /**
453
+ * Generic call
454
+ **/
455
+ [key: string]: DecoratedCallBase<ApiType>;
456
+ };
314
457
  /** 0xab3c0572291feb8b/1 */
315
458
  sessionKeys: {
316
459
  /**
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.12.6",
21
+ "version": "11.0.1",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -211,11 +211,11 @@
211
211
  }
212
212
  },
213
213
  "dependencies": {
214
- "@polkadot/api-base": "10.12.6",
215
- "@polkadot/rpc-augment": "10.12.6",
216
- "@polkadot/types": "10.12.6",
217
- "@polkadot/types-augment": "10.12.6",
218
- "@polkadot/types-codec": "10.12.6",
214
+ "@polkadot/api-base": "11.0.1",
215
+ "@polkadot/rpc-augment": "11.0.1",
216
+ "@polkadot/types": "11.0.1",
217
+ "@polkadot/types-augment": "11.0.1",
218
+ "@polkadot/types-codec": "11.0.1",
219
219
  "@polkadot/util": "^12.6.2",
220
220
  "tslib": "^2.6.2"
221
221
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.12.6' };
1
+ export const packageInfo = { name: '@polkadot/api-augment', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '11.0.1' };
@@ -407,7 +407,7 @@ declare module '@polkadot/api-base/types/calls' {
407
407
  /**
408
408
  * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
409
409
  **/
410
- validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<ValidationCode>>;
410
+ validationCode: AugmentedCall<ApiType, (paraId: ParaId | AnyNumber | Uint8Array, assumption: OccupiedCoreAssumption | 'Included,' | 'TimedOut' | 'Free' | number | Uint8Array) => Observable<Option<ValidationCode>>>;
411
411
  /**
412
412
  * Get the validation code from its hash.
413
413
  **/
@@ -162,10 +162,14 @@ declare module '@polkadot/api-base/types/consts' {
162
162
  /**
163
163
  * The maximum number of locks that should exist on an account.
164
164
  * Not strictly enforced, but used for weight estimation.
165
+ *
166
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
165
167
  **/
166
168
  maxLocks: u32 & AugmentedConst<ApiType>;
167
169
  /**
168
170
  * The maximum number of named reserves that can exist on an account.
171
+ *
172
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
169
173
  **/
170
174
  maxReserves: u32 & AugmentedConst<ApiType>;
171
175
  /**
@@ -526,18 +530,10 @@ declare module '@polkadot/api-base/types/consts' {
526
530
  * this value.
527
531
  **/
528
532
  signedMaxWeight: SpWeightsWeightV2Weight & AugmentedConst<ApiType>;
529
- /**
530
- * Duration of the signed phase.
531
- **/
532
- signedPhase: u32 & AugmentedConst<ApiType>;
533
533
  /**
534
534
  * Base reward for a signed solution
535
535
  **/
536
536
  signedRewardBase: u128 & AugmentedConst<ApiType>;
537
- /**
538
- * Duration of the unsigned phase.
539
- **/
540
- unsignedPhase: u32 & AugmentedConst<ApiType>;
541
537
  /**
542
538
  * Generic const
543
539
  **/
@@ -651,7 +647,7 @@ declare module '@polkadot/api-base/types/consts' {
651
647
  **/
652
648
  byteDeposit: u128 & AugmentedConst<ApiType>;
653
649
  /**
654
- * Maxmimum number of registrars allowed in the system. Needed to bound the complexity
650
+ * Maximum number of registrars allowed in the system. Needed to bound the complexity
655
651
  * of, e.g., updating judgements.
656
652
  **/
657
653
  maxRegistrars: u32 & AugmentedConst<ApiType>;
@@ -734,6 +730,14 @@ declare module '@polkadot/api-base/types/consts' {
734
730
  * size is slightly lower than this as defined by [`MaxMessageLenOf`].
735
731
  **/
736
732
  heapSize: u32 & AugmentedConst<ApiType>;
733
+ /**
734
+ * The maximum amount of weight (if any) to be used from remaining weight `on_idle` which
735
+ * should be provided to the message queue for servicing enqueued items `on_idle`.
736
+ * Useful for parachains to process messages at the same block they are received.
737
+ *
738
+ * If `None`, it will not call `ServiceQueues::service_queues` in `on_idle`.
739
+ **/
740
+ idleMaxServiceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
737
741
  /**
738
742
  * The maximum number of stale pages (i.e. of overweight messages) allowed before culling
739
743
  * can happen. Once there are more stale pages than this, then historical pages may be
@@ -742,10 +746,11 @@ declare module '@polkadot/api-base/types/consts' {
742
746
  maxStale: u32 & AugmentedConst<ApiType>;
743
747
  /**
744
748
  * The amount of weight (if any) which should be provided to the message queue for
745
- * servicing enqueued items.
749
+ * servicing enqueued items `on_initialize`.
746
750
  *
747
751
  * This may be legitimately `None` in the case that you will call
748
- * `ServiceQueues::service_queues` manually.
752
+ * `ServiceQueues::service_queues` manually or set [`Self::IdleMaxServiceWeight`] to have
753
+ * it run in `on_idle`.
749
754
  **/
750
755
  serviceWeight: Option<SpWeightsWeightV2Weight> & AugmentedConst<ApiType>;
751
756
  /**
@@ -717,7 +717,7 @@ declare module '@polkadot/api-base/types/errors' {
717
717
  **/
718
718
  DuplicateContract: AugmentedError<ApiType>;
719
719
  /**
720
- * An indetermistic code was used in a context where this is not permitted.
720
+ * An indeterministic code was used in a context where this is not permitted.
721
721
  **/
722
722
  Indeterministic: AugmentedError<ApiType>;
723
723
  /**
@@ -1097,7 +1097,7 @@ declare module '@polkadot/api-base/types/errors' {
1097
1097
  **/
1098
1098
  OcwCallWrongEra: AugmentedError<ApiType>;
1099
1099
  /**
1100
- * Sumission was prepared for a different round.
1100
+ * Submission was prepared for a different round.
1101
1101
  **/
1102
1102
  PreDispatchDifferentRound: AugmentedError<ApiType>;
1103
1103
  /**
@@ -1838,7 +1838,7 @@ declare module '@polkadot/api-base/types/errors' {
1838
1838
  **/
1839
1839
  DurationTooSmall: AugmentedError<ApiType>;
1840
1840
  /**
1841
- * The operation would result in a receipt worth an insignficant value.
1841
+ * The operation would result in a receipt worth an insignificant value.
1842
1842
  **/
1843
1843
  MakesDust: AugmentedError<ApiType>;
1844
1844
  /**
@@ -2272,6 +2272,10 @@ declare module '@polkadot/api-base/types/errors' {
2272
2272
  * The preimage does not exist.
2273
2273
  **/
2274
2274
  PreimageNotExist: AugmentedError<ApiType>;
2275
+ /**
2276
+ * The preimage is stored with a different length than the one provided.
2277
+ **/
2278
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
2275
2279
  /**
2276
2280
  * The queue of the track is empty.
2277
2281
  **/
@@ -2400,6 +2404,10 @@ declare module '@polkadot/api-base/types/errors' {
2400
2404
  * The preimage does not exist.
2401
2405
  **/
2402
2406
  PreimageNotExist: AugmentedError<ApiType>;
2407
+ /**
2408
+ * The preimage is stored with a different length than the one provided.
2409
+ **/
2410
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
2403
2411
  /**
2404
2412
  * The queue of the track is empty.
2405
2413
  **/
@@ -2735,6 +2743,10 @@ declare module '@polkadot/api-base/types/errors' {
2735
2743
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
2736
2744
  **/
2737
2745
  CannotChillOther: AugmentedError<ApiType>;
2746
+ /**
2747
+ * Cannot reset a ledger.
2748
+ **/
2749
+ CannotRestoreLedger: AugmentedError<ApiType>;
2738
2750
  /**
2739
2751
  * Commission is too low. Must be at least `MinCommission`.
2740
2752
  **/
@@ -3050,7 +3062,7 @@ declare module '@polkadot/api-base/types/errors' {
3050
3062
  **/
3051
3063
  MissingProof: AugmentedError<ApiType>;
3052
3064
  /**
3053
- * Unable to verify proof becasue state data is missing.
3065
+ * Unable to verify proof because state data is missing.
3054
3066
  **/
3055
3067
  MissingStateData: AugmentedError<ApiType>;
3056
3068
  /**
@@ -186,7 +186,7 @@ declare module '@polkadot/api-base/types/events' {
186
186
  withdrawalFee: Permill;
187
187
  }>;
188
188
  /**
189
- * A successful call of the `CretaPool` extrinsic will create this event.
189
+ * A successful call of the `CreatePool` extrinsic will create this event.
190
190
  **/
191
191
  PoolCreated: AugmentedEvent<ApiType, [creator: AccountId32, poolId: ITuple<[FrameSupportTokensFungibleUnionOfNativeOrWithId, FrameSupportTokensFungibleUnionOfNativeOrWithId]>, poolAccount: AccountId32, lpToken: u32], {
192
192
  creator: AccountId32;
@@ -1292,7 +1292,7 @@ declare module '@polkadot/api-base/types/events' {
1292
1292
  deposit: u128;
1293
1293
  }>;
1294
1294
  /**
1295
- * An account has secconded a proposal
1295
+ * An account has seconded a proposal
1296
1296
  **/
1297
1297
  Seconded: AugmentedEvent<ApiType, [seconder: AccountId32, propIndex: u32], {
1298
1298
  seconder: AccountId32;
@@ -1379,7 +1379,7 @@ declare module '@polkadot/api-base/types/events' {
1379
1379
  * A solution was stored with the given compute.
1380
1380
  *
1381
1381
  * The `origin` indicates the origin of the solution. If `origin` is `Some(AccountId)`,
1382
- * the stored solution was submited in the signed phase by a miner with the `AccountId`.
1382
+ * the stored solution was submitted in the signed phase by a miner with the `AccountId`.
1383
1383
  * Otherwise, the solution was stored either during the unsigned phase or by
1384
1384
  * `T::ForceOrigin`. The `bool` is `true` when a previous solution was ejected to make
1385
1385
  * room for this one.
@@ -2270,7 +2270,7 @@ declare module '@polkadot/api-base/types/events' {
2270
2270
  dropped: bool;
2271
2271
  }>;
2272
2272
  /**
2273
- * A receipt was transfered.
2273
+ * A receipt was transferred.
2274
2274
  **/
2275
2275
  Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], {
2276
2276
  from: AccountId32;
@@ -53,7 +53,7 @@ declare module '@polkadot/api-base/types/storage' {
53
53
  **/
54
54
  members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
55
55
  /**
56
- * The prime member that helps determine the default vote behavior in case of absentations.
56
+ * The prime member that helps determine the default vote behavior in case of abstentions.
57
57
  **/
58
58
  prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
59
59
  /**
@@ -317,10 +317,14 @@ declare module '@polkadot/api-base/types/storage' {
317
317
  /**
318
318
  * Any liquidity locks on some account balances.
319
319
  * NOTE: Should only be accessed when setting, changing and freeing a lock.
320
+ *
321
+ * Use of locks is deprecated in favour of freezes. See `https://github.com/paritytech/substrate/pull/12951/`
320
322
  **/
321
323
  locks: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesBalanceLock>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
322
324
  /**
323
325
  * Named reserves on some account balances.
326
+ *
327
+ * Use of reserves is deprecated in favour of holds. See `https://github.com/paritytech/substrate/pull/12951/`
324
328
  **/
325
329
  reserves: AugmentedQuery<ApiType, (arg: AccountId32 | string | Uint8Array) => Observable<Vec<PalletBalancesReserveData>>, [AccountId32]> & QueryableStorageEntry<ApiType, [AccountId32]>;
326
330
  /**
@@ -590,7 +594,7 @@ declare module '@polkadot/api-base/types/storage' {
590
594
  **/
591
595
  members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
592
596
  /**
593
- * The prime member that helps determine the default vote behavior in case of absentations.
597
+ * The prime member that helps determine the default vote behavior in case of abstentions.
594
598
  **/
595
599
  prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
596
600
  /**
@@ -2273,7 +2277,7 @@ declare module '@polkadot/api-base/types/storage' {
2273
2277
  **/
2274
2278
  members: AugmentedQuery<ApiType, () => Observable<Vec<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2275
2279
  /**
2276
- * The prime member that helps determine the default vote behavior in case of absentations.
2280
+ * The prime member that helps determine the default vote behavior in case of abstentions.
2277
2281
  **/
2278
2282
  prime: AugmentedQuery<ApiType, () => Observable<Option<AccountId32>>, []> & QueryableStorageEntry<ApiType, []>;
2279
2283
  /**
package/substrate/tx.d.ts CHANGED
@@ -4,7 +4,7 @@ import type { Data } from '@polkadot/types';
4
4
  import type { Bytes, Compact, Option, U8aFixed, Vec, bool, u128, u16, u32, u64, u8 } from '@polkadot/types-codec';
5
5
  import type { AnyNumber, IMethod, ITuple } from '@polkadot/types-codec/types';
6
6
  import type { AccountId32, Call, H256, MultiAddress, Perbill, Percent, Perquintill } from '@polkadot/types/interfaces/runtime';
7
- import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
7
+ import type { FrameSupportPreimagesBounded, FrameSupportScheduleDispatchTime, FrameSupportTokensFungibleUnionOfNativeOrWithId, KitchensinkRuntimeOriginCaller, KitchensinkRuntimeProxyType, KitchensinkRuntimeRuntimeParameters, KitchensinkRuntimeSessionKeys, PalletAllianceCid, PalletAllianceDisbandWitness, PalletAllianceUnscrupulousItem, PalletBalancesAdjustmentDirection, PalletBrokerConfigRecord, PalletBrokerCoreMask, PalletBrokerFinality, PalletBrokerRegionId, PalletBrokerScheduleItem, PalletContractsWasmDeterminism, PalletConvictionVotingConviction, PalletConvictionVotingVoteAccountVote, PalletCoreFellowshipParamsType, PalletCoreFellowshipWish, PalletDemocracyConviction, PalletDemocracyMetadataOwner, PalletDemocracyVoteAccountVote, PalletElectionProviderMultiPhaseRawSolution, PalletElectionProviderMultiPhaseSolutionOrSnapshotSize, PalletElectionsPhragmenRenouncing, PalletIdentityJudgement, PalletIdentityLegacyIdentityInfo, PalletImOnlineHeartbeat, PalletImOnlineSr25519AppSr25519Signature, PalletMigrationsHistoricCleanupSelector, PalletMigrationsMigrationCursor, PalletMixnetRegistration, PalletMultisigTimepoint, PalletNftsAttributeNamespace, PalletNftsCancelAttributesApprovalWitness, PalletNftsCollectionConfig, PalletNftsDestroyWitness, PalletNftsItemConfig, PalletNftsItemTip, PalletNftsMintSettings, PalletNftsMintWitness, PalletNftsPreSignedAttributes, PalletNftsPreSignedMint, PalletNftsPriceWithDirection, PalletNominationPoolsBondExtra, PalletNominationPoolsClaimPermission, PalletNominationPoolsCommissionChangeRate, PalletNominationPoolsCommissionClaimPermission, PalletNominationPoolsConfigOpAccountId32, PalletNominationPoolsConfigOpPerbill, PalletNominationPoolsConfigOpU128, PalletNominationPoolsConfigOpU32, PalletNominationPoolsPoolState, PalletStakingPalletConfigOpPerbill, PalletStakingPalletConfigOpPercent, PalletStakingPalletConfigOpU128, PalletStakingPalletConfigOpU32, PalletStakingRewardDestination, PalletStakingUnlockChunk, PalletStakingValidatorPrefs, PalletStateTrieMigrationMigrationLimits, PalletStateTrieMigrationMigrationTask, PalletStateTrieMigrationProgress, PalletUniquesDestroyWitness, PalletVestingVestingInfo, SpConsensusBabeDigestsNextConfigDescriptor, SpConsensusBeefyEquivocationProof, SpConsensusGrandpaEquivocationProof, SpConsensusSlotsEquivocationProof, SpMixnetAppSignature, SpNposElectionsElectionScore, SpNposElectionsSupport, SpRuntimeMultiSignature, SpSessionMembershipProof, SpTransactionStorageProofTransactionStorageProof, SpWeightsWeightV2Weight } from '@polkadot/types/lookup';
8
8
  export type __AugmentedSubmittable = AugmentedSubmittable<() => unknown>;
9
9
  export type __SubmittableExtrinsic<ApiType extends ApiTypes> = SubmittableExtrinsic<ApiType>;
10
10
  export type __SubmittableExtrinsicFunction<ApiType extends ApiTypes> = SubmittableExtrinsicFunction<ApiType>;
@@ -1379,7 +1379,7 @@ declare module '@polkadot/api-base/types/submittable' {
1379
1379
  *
1380
1380
  * This will waive the transaction fee if at least all but 10% of the accounts needed to
1381
1381
  * be upgraded. (We let some not have to be upgraded just in order to allow for the
1382
- * possibililty of churn).
1382
+ * possibility of churn).
1383
1383
  **/
1384
1384
  upgradeAccounts: AugmentedSubmittable<(who: Vec<AccountId32> | (AccountId32 | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [Vec<AccountId32>]>;
1385
1385
  /**
@@ -1593,7 +1593,7 @@ declare module '@polkadot/api-base/types/submittable' {
1593
1593
  * - `origin`: Must be a Signed origin of the account which owns the Region `region_id`.
1594
1594
  * - `region_id`: The Region which was assigned to the Pool.
1595
1595
  * - `max_timeslices`: The maximum number of timeslices which should be processed. This may
1596
- * effect the weight of the call but should be ideally made equivalant to the length of
1596
+ * effect the weight of the call but should be ideally made equivalent to the length of
1597
1597
  * the Region `region_id`. If it is less than this, then further dispatches will be
1598
1598
  * required with the `region_id` which makes up any remainders of the region to be
1599
1599
  * collected.
@@ -1760,6 +1760,7 @@ declare module '@polkadot/api-base/types/submittable' {
1760
1760
  * - `core_count`: The number of cores which can be allocated.
1761
1761
  **/
1762
1762
  startSales: AugmentedSubmittable<(initialPrice: u128 | AnyNumber | Uint8Array, coreCount: u16 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u128, u16]>;
1763
+ swapLeases: AugmentedSubmittable<(id: u32 | AnyNumber | Uint8Array, other: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [u32, u32]>;
1763
1764
  /**
1764
1765
  * Transfer a Bulk Coretime Region to a new owner.
1765
1766
  *
@@ -5034,7 +5035,7 @@ declare module '@polkadot/api-base/types/submittable' {
5034
5035
  *
5035
5036
  * In the case of `origin != other`, `origin` can only bond extra pending rewards of
5036
5037
  * `other` members assuming set_claim_permission for the given member is
5037
- * `PermissionlessAll` or `PermissionlessCompound`.
5038
+ * `PermissionlessCompound` or `PermissionlessAll`.
5038
5039
  **/
5039
5040
  bondExtraOther: AugmentedSubmittable<(member: MultiAddress | {
5040
5041
  Id: any;
@@ -5086,14 +5087,14 @@ declare module '@polkadot/api-base/types/submittable' {
5086
5087
  * The member will earn rewards pro rata based on the members stake vs the sum of the
5087
5088
  * members in the pools stake. Rewards do not "expire".
5088
5089
  *
5089
- * See `claim_payout_other` to caim rewards on bahalf of some `other` pool member.
5090
+ * See `claim_payout_other` to claim rewards on behalf of some `other` pool member.
5090
5091
  **/
5091
5092
  claimPayout: AugmentedSubmittable<() => SubmittableExtrinsic<ApiType>, []>;
5092
5093
  /**
5093
5094
  * `origin` can claim payouts on some pool member `other`'s behalf.
5094
5095
  *
5095
- * Pool member `other` must have a `PermissionlessAll` or `PermissionlessWithdraw` in order
5096
- * for this call to be successful.
5096
+ * Pool member `other` must have a `PermissionlessWithdraw` or `PermissionlessAll` claim
5097
+ * permission for this call to be successful.
5097
5098
  **/
5098
5099
  claimPayoutOther: AugmentedSubmittable<(other: AccountId32 | string | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32]>;
5099
5100
  /**
@@ -5226,15 +5227,10 @@ declare module '@polkadot/api-base/types/submittable' {
5226
5227
  * Allows a pool member to set a claim permission to allow or disallow permissionless
5227
5228
  * bonding and withdrawing.
5228
5229
  *
5229
- * By default, this is `Permissioned`, which implies only the pool member themselves can
5230
- * claim their pending rewards. If a pool member wishes so, they can set this to
5231
- * `PermissionlessAll` to allow any account to claim their rewards and bond extra to the
5232
- * pool.
5233
- *
5234
5230
  * # Arguments
5235
5231
  *
5236
5232
  * * `origin` - Member of a pool.
5237
- * * `actor` - Account to claim reward. // improve this
5233
+ * * `permission` - The permission to be applied.
5238
5234
  **/
5239
5235
  setClaimPermission: AugmentedSubmittable<(permission: PalletNominationPoolsClaimPermission | 'Permissioned' | 'PermissionlessCompound' | 'PermissionlessWithdraw' | 'PermissionlessAll' | number | Uint8Array) => SubmittableExtrinsic<ApiType>, [PalletNominationPoolsClaimPermission]>;
5240
5236
  /**
@@ -5259,7 +5255,7 @@ declare module '@polkadot/api-base/types/submittable' {
5259
5255
  * Set or remove a pool's commission claim permission.
5260
5256
  *
5261
5257
  * Determines who can claim the pool's pending commission. Only the `Root` role of the pool
5262
- * is able to conifigure commission claim permissions.
5258
+ * is able to configure commission claim permissions.
5263
5259
  **/
5264
5260
  setCommissionClaimPermission: AugmentedSubmittable<(poolId: u32 | AnyNumber | Uint8Array, permission: Option<PalletNominationPoolsCommissionClaimPermission> | null | Uint8Array | PalletNominationPoolsCommissionClaimPermission | {
5265
5261
  Permissionless: any;
@@ -7846,7 +7842,7 @@ declare module '@polkadot/api-base/types/submittable' {
7846
7842
  **/
7847
7843
  forceUnstake: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, numSlashingSpans: u32 | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [AccountId32, u32]>;
7848
7844
  /**
7849
- * Increments the ideal number of validators upto maximum of
7845
+ * Increments the ideal number of validators up to maximum of
7850
7846
  * `ElectionProviderBase::MaxWinners`.
7851
7847
  *
7852
7848
  * The dispatch origin must be Root.
@@ -7969,7 +7965,24 @@ declare module '@polkadot/api-base/types/submittable' {
7969
7965
  **/
7970
7966
  rebond: AugmentedSubmittable<(value: Compact<u128> | AnyNumber | Uint8Array) => SubmittableExtrinsic<ApiType>, [Compact<u128>]>;
7971
7967
  /**
7972
- * Scale up the ideal number of validators by a factor upto maximum of
7968
+ * Restores the state of a ledger which is in an inconsistent state.
7969
+ *
7970
+ * The requirements to restore a ledger are the following:
7971
+ * * The stash is bonded; or
7972
+ * * The stash is not bonded but it has a staking lock left behind; or
7973
+ * * If the stash has an associated ledger and its state is inconsistent; or
7974
+ * * If the ledger is not corrupted *but* its staking lock is out of sync.
7975
+ *
7976
+ * The `maybe_*` input parameters will overwrite the corresponding data and metadata of the
7977
+ * ledger associated with the stash. If the input parameters are not set, the ledger will
7978
+ * be reset values from on-chain state.
7979
+ **/
7980
+ restoreLedger: AugmentedSubmittable<(stash: AccountId32 | string | Uint8Array, maybeController: Option<AccountId32> | null | Uint8Array | AccountId32 | string, maybeTotal: Option<u128> | null | Uint8Array | u128 | AnyNumber, maybeUnlocking: Option<Vec<PalletStakingUnlockChunk>> | null | Uint8Array | Vec<PalletStakingUnlockChunk> | (PalletStakingUnlockChunk | {
7981
+ value?: any;
7982
+ era?: any;
7983
+ } | string | Uint8Array)[]) => SubmittableExtrinsic<ApiType>, [AccountId32, Option<AccountId32>, Option<u128>, Option<Vec<PalletStakingUnlockChunk>>]>;
7984
+ /**
7985
+ * Scale up the ideal number of validators by a factor up to maximum of
7973
7986
  * `ElectionProviderBase::MaxWinners`.
7974
7987
  *
7975
7988
  * The dispatch origin must be Root.
@@ -8164,7 +8177,7 @@ declare module '@polkadot/api-base/types/submittable' {
8164
8177
  * this call results in a complete removal of all the data related to the stash account.
8165
8178
  * In this case, the `num_slashing_spans` must be larger or equal to the number of
8166
8179
  * slashing spans associated with the stash account in the [`SlashingSpans`] storage type,
8167
- * otherwise the call will fail. The call weight is directly propotional to
8180
+ * otherwise the call will fail. The call weight is directly proportional to
8168
8181
  * `num_slashing_spans`.
8169
8182
  *
8170
8183
  * ## Complexity