@polkadot/api-augment 10.12.4 → 10.13.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.4' };
4
+ exports.packageInfo = { name: '@polkadot/api-augment', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.13.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, 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';
@@ -8,12 +8,16 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
8
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
9
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
10
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
+ import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
11
12
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
13
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
14
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
14
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';
15
17
  import type { FeeDetails, RuntimeDispatchInfo } from '@polkadot/types/interfaces/payment';
16
- 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';
17
21
  import type { RuntimeVersion } from '@polkadot/types/interfaces/state';
18
22
  import type { ApplyExtrinsicResult } from '@polkadot/types/interfaces/system';
19
23
  import type { TransactionSource, TransactionValidity } from '@polkadot/types/interfaces/txqueue';
@@ -179,6 +183,21 @@ declare module '@polkadot/api-base/types/calls' {
179
183
  **/
180
184
  [key: string]: DecoratedCallBase<ApiType>;
181
185
  };
186
+ /** 0xfbc577b9d747efd6/1 */
187
+ genesisBuilder: {
188
+ /**
189
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
190
+ **/
191
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
192
+ /**
193
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
194
+ **/
195
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
196
+ /**
197
+ * Generic call
198
+ **/
199
+ [key: string]: DecoratedCallBase<ApiType>;
200
+ };
182
201
  /** 0xed99c5acb25eedf5/3 */
183
202
  grandpaApi: {
184
203
  /**
@@ -230,10 +249,14 @@ declare module '@polkadot/api-base/types/calls' {
230
249
  * Generate MMR proof for the given block numbers.
231
250
  **/
232
251
  generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
252
+ /**
253
+ * Return the number of MMR blocks in the chain.
254
+ **/
255
+ mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
233
256
  /**
234
257
  * Return the on-chain MMR root hash.
235
258
  **/
236
- root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
259
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
237
260
  /**
238
261
  * Verify MMR proof against on-chain MMR.
239
262
  **/
@@ -291,6 +314,146 @@ declare module '@polkadot/api-base/types/calls' {
291
314
  **/
292
315
  [key: string]: DecoratedCallBase<ApiType>;
293
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
+ };
294
457
  /** 0xab3c0572291feb8b/1 */
295
458
  sessionKeys: {
296
459
  /**
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "10.12.4",
21
+ "version": "10.13.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.4",
215
- "@polkadot/rpc-augment": "10.12.4",
216
- "@polkadot/types": "10.12.4",
217
- "@polkadot/types-augment": "10.12.4",
218
- "@polkadot/types-codec": "10.12.4",
214
+ "@polkadot/api-base": "10.13.1",
215
+ "@polkadot/rpc-augment": "10.13.1",
216
+ "@polkadot/types": "10.13.1",
217
+ "@polkadot/types-augment": "10.13.1",
218
+ "@polkadot/types-codec": "10.13.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.4' };
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.13.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, Vec, bool, 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';
@@ -8,6 +8,7 @@ import type { CheckInherentsResult, InherentData } from '@polkadot/types/interfa
8
8
  import type { BlockHash } from '@polkadot/types/interfaces/chain';
9
9
  import type { AuthorityId } from '@polkadot/types/interfaces/consensus';
10
10
  import type { Extrinsic } from '@polkadot/types/interfaces/extrinsics';
11
+ import type { GenesisBuildErr } from '@polkadot/types/interfaces/genesisBuilder';
11
12
  import type { AuthorityList, GrandpaEquivocationProof, SetId } from '@polkadot/types/interfaces/grandpa';
12
13
  import type { OpaqueMetadata } from '@polkadot/types/interfaces/metadata';
13
14
  import type { MmrBatchProof, MmrEncodableOpaqueLeaf, MmrError } from '@polkadot/types/interfaces/mmr';
@@ -181,6 +182,21 @@ declare module '@polkadot/api-base/types/calls' {
181
182
  **/
182
183
  [key: string]: DecoratedCallBase<ApiType>;
183
184
  };
185
+ /** 0xfbc577b9d747efd6/1 */
186
+ genesisBuilder: {
187
+ /**
188
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
189
+ **/
190
+ buildConfig: AugmentedCall<ApiType, (json: Bytes | string | Uint8Array) => Observable<Result<ITuple<[]>, GenesisBuildErr>>>;
191
+ /**
192
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
193
+ **/
194
+ createDefaultConfig: AugmentedCall<ApiType, () => Observable<Bytes>>;
195
+ /**
196
+ * Generic call
197
+ **/
198
+ [key: string]: DecoratedCallBase<ApiType>;
199
+ };
184
200
  /** 0xed99c5acb25eedf5/3 */
185
201
  grandpaApi: {
186
202
  /**
@@ -232,10 +248,14 @@ declare module '@polkadot/api-base/types/calls' {
232
248
  * Generate MMR proof for the given block numbers.
233
249
  **/
234
250
  generateProof: AugmentedCall<ApiType, (blockNumbers: Vec<BlockNumber> | (BlockNumber | AnyNumber | Uint8Array)[], bestKnownBlockNumber: Option<BlockNumber> | null | Uint8Array | BlockNumber | AnyNumber) => Observable<Result<ITuple<[Vec<MmrEncodableOpaqueLeaf>, MmrBatchProof]>, MmrError>>>;
251
+ /**
252
+ * Return the number of MMR blocks in the chain.
253
+ **/
254
+ mmrLeafCount: AugmentedCall<ApiType, () => Observable<Result<U64, MmrError>>>;
235
255
  /**
236
256
  * Return the on-chain MMR root hash.
237
257
  **/
238
- root: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
258
+ mmrRoot: AugmentedCall<ApiType, () => Observable<Result<Hash, MmrError>>>;
239
259
  /**
240
260
  * Verify MMR proof against on-chain MMR.
241
261
  **/
@@ -387,7 +407,7 @@ declare module '@polkadot/api-base/types/calls' {
387
407
  /**
388
408
  * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
389
409
  **/
390
- 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>>>;
391
411
  /**
392
412
  * Get the validation code from its hash.
393
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
  /**
@@ -805,6 +810,26 @@ declare module '@polkadot/api-base/types/consts' {
805
810
  **/
806
811
  [key: string]: Codec;
807
812
  };
813
+ multiBlockMigrations: {
814
+ /**
815
+ * The maximal length of an encoded cursor.
816
+ *
817
+ * A good default needs to selected such that no migration will ever have a cursor with MEL
818
+ * above this limit. This is statically checked in `integrity_test`.
819
+ **/
820
+ cursorMaxLen: u32 & AugmentedConst<ApiType>;
821
+ /**
822
+ * The maximal length of an encoded identifier.
823
+ *
824
+ * A good default needs to selected such that no migration will ever have an identifier
825
+ * with MEL above this limit. This is statically checked in `integrity_test`.
826
+ **/
827
+ identifierMaxLen: u32 & AugmentedConst<ApiType>;
828
+ /**
829
+ * Generic const
830
+ **/
831
+ [key: string]: Codec;
832
+ };
808
833
  multisig: {
809
834
  /**
810
835
  * The base amount of currency needed to reserve for creating a multisig execution or to
@@ -1476,7 +1501,7 @@ declare module '@polkadot/api-base/types/consts' {
1476
1501
  **/
1477
1502
  ss58Prefix: u16 & AugmentedConst<ApiType>;
1478
1503
  /**
1479
- * Get the chain's current version.
1504
+ * Get the chain's in-code version.
1480
1505
  **/
1481
1506
  version: SpVersionRuntimeVersion & AugmentedConst<ApiType>;
1482
1507
  /**
@@ -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
  /**
@@ -1527,6 +1527,16 @@ declare module '@polkadot/api-base/types/errors' {
1527
1527
  **/
1528
1528
  [key: string]: AugmentedError<ApiType>;
1529
1529
  };
1530
+ multiBlockMigrations: {
1531
+ /**
1532
+ * The operation cannot complete since some MBMs are ongoing.
1533
+ **/
1534
+ Ongoing: AugmentedError<ApiType>;
1535
+ /**
1536
+ * Generic error
1537
+ **/
1538
+ [key: string]: AugmentedError<ApiType>;
1539
+ };
1530
1540
  multisig: {
1531
1541
  /**
1532
1542
  * Call is already approved by this signatory.
@@ -1828,7 +1838,7 @@ declare module '@polkadot/api-base/types/errors' {
1828
1838
  **/
1829
1839
  DurationTooSmall: AugmentedError<ApiType>;
1830
1840
  /**
1831
- * The operation would result in a receipt worth an insignficant value.
1841
+ * The operation would result in a receipt worth an insignificant value.
1832
1842
  **/
1833
1843
  MakesDust: AugmentedError<ApiType>;
1834
1844
  /**
@@ -2262,6 +2272,10 @@ declare module '@polkadot/api-base/types/errors' {
2262
2272
  * The preimage does not exist.
2263
2273
  **/
2264
2274
  PreimageNotExist: AugmentedError<ApiType>;
2275
+ /**
2276
+ * The preimage is stored with a different length than the one provided.
2277
+ **/
2278
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
2265
2279
  /**
2266
2280
  * The queue of the track is empty.
2267
2281
  **/
@@ -2390,6 +2404,10 @@ declare module '@polkadot/api-base/types/errors' {
2390
2404
  * The preimage does not exist.
2391
2405
  **/
2392
2406
  PreimageNotExist: AugmentedError<ApiType>;
2407
+ /**
2408
+ * The preimage is stored with a different length than the one provided.
2409
+ **/
2410
+ PreimageStoredWithDifferentLength: AugmentedError<ApiType>;
2393
2411
  /**
2394
2412
  * The queue of the track is empty.
2395
2413
  **/
@@ -2725,6 +2743,10 @@ declare module '@polkadot/api-base/types/errors' {
2725
2743
  * The user has enough bond and thus cannot be chilled forcefully by an external person.
2726
2744
  **/
2727
2745
  CannotChillOther: AugmentedError<ApiType>;
2746
+ /**
2747
+ * Cannot reset a ledger.
2748
+ **/
2749
+ CannotRestoreLedger: AugmentedError<ApiType>;
2728
2750
  /**
2729
2751
  * Commission is too low. Must be at least `MinCommission`.
2730
2752
  **/
@@ -2876,6 +2898,10 @@ declare module '@polkadot/api-base/types/errors' {
2876
2898
  * and the new runtime.
2877
2899
  **/
2878
2900
  InvalidSpecName: AugmentedError<ApiType>;
2901
+ /**
2902
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
2903
+ **/
2904
+ MultiBlockMigrationsOngoing: AugmentedError<ApiType>;
2879
2905
  /**
2880
2906
  * Suicide called when the account has non-default composite data.
2881
2907
  **/
@@ -3036,7 +3062,7 @@ declare module '@polkadot/api-base/types/errors' {
3036
3062
  **/
3037
3063
  MissingProof: AugmentedError<ApiType>;
3038
3064
  /**
3039
- * Unable to verify proof becasue state data is missing.
3065
+ * Unable to verify proof because state data is missing.
3040
3066
  **/
3041
3067
  MissingStateData: AugmentedError<ApiType>;
3042
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.
@@ -1773,6 +1773,67 @@ declare module '@polkadot/api-base/types/events' {
1773
1773
  **/
1774
1774
  [key: string]: AugmentedEvent<ApiType>;
1775
1775
  };
1776
+ multiBlockMigrations: {
1777
+ /**
1778
+ * The set of historical migrations has been cleared.
1779
+ **/
1780
+ HistoricCleared: AugmentedEvent<ApiType, [nextCursor: Option<Bytes>], {
1781
+ nextCursor: Option<Bytes>;
1782
+ }>;
1783
+ /**
1784
+ * A migration progressed.
1785
+ **/
1786
+ MigrationAdvanced: AugmentedEvent<ApiType, [index: u32, took: u32], {
1787
+ index: u32;
1788
+ took: u32;
1789
+ }>;
1790
+ /**
1791
+ * A Migration completed.
1792
+ **/
1793
+ MigrationCompleted: AugmentedEvent<ApiType, [index: u32, took: u32], {
1794
+ index: u32;
1795
+ took: u32;
1796
+ }>;
1797
+ /**
1798
+ * A Migration failed.
1799
+ *
1800
+ * This implies that the whole upgrade failed and governance intervention is required.
1801
+ **/
1802
+ MigrationFailed: AugmentedEvent<ApiType, [index: u32, took: u32], {
1803
+ index: u32;
1804
+ took: u32;
1805
+ }>;
1806
+ /**
1807
+ * A migration was skipped since it was already executed in the past.
1808
+ **/
1809
+ MigrationSkipped: AugmentedEvent<ApiType, [index: u32], {
1810
+ index: u32;
1811
+ }>;
1812
+ /**
1813
+ * The current runtime upgrade completed.
1814
+ *
1815
+ * This implies that all of its migrations completed successfully as well.
1816
+ **/
1817
+ UpgradeCompleted: AugmentedEvent<ApiType, []>;
1818
+ /**
1819
+ * Runtime upgrade failed.
1820
+ *
1821
+ * This is very bad and will require governance intervention.
1822
+ **/
1823
+ UpgradeFailed: AugmentedEvent<ApiType, []>;
1824
+ /**
1825
+ * A Runtime upgrade started.
1826
+ *
1827
+ * Its end is indicated by `UpgradeCompleted` or `UpgradeFailed`.
1828
+ **/
1829
+ UpgradeStarted: AugmentedEvent<ApiType, [migrations: u32], {
1830
+ migrations: u32;
1831
+ }>;
1832
+ /**
1833
+ * Generic event
1834
+ **/
1835
+ [key: string]: AugmentedEvent<ApiType>;
1836
+ };
1776
1837
  multisig: {
1777
1838
  /**
1778
1839
  * A multisig operation has been approved by someone.
@@ -2209,7 +2270,7 @@ declare module '@polkadot/api-base/types/events' {
2209
2270
  dropped: bool;
2210
2271
  }>;
2211
2272
  /**
2212
- * A receipt was transfered.
2273
+ * A receipt was transferred.
2213
2274
  **/
2214
2275
  Transferred: AugmentedEvent<ApiType, [from: AccountId32, to: AccountId32, index: u32], {
2215
2276
  from: AccountId32;
@@ -3354,6 +3415,12 @@ declare module '@polkadot/api-base/types/events' {
3354
3415
  Chilled: AugmentedEvent<ApiType, [stash: AccountId32], {
3355
3416
  stash: AccountId32;
3356
3417
  }>;
3418
+ /**
3419
+ * Report of a controller batch deprecation.
3420
+ **/
3421
+ ControllerBatchDeprecated: AugmentedEvent<ApiType, [failures: u32], {
3422
+ failures: u32;
3423
+ }>;
3357
3424
  /**
3358
3425
  * The era payout has been set; the first balance is the validator-payout; the second is
3359
3426
  * the remainder from the maximum amount of reward.