@dedot/chaintypes 0.14.0 → 0.16.0

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.
Files changed (51) hide show
  1. package/kusama/consts.d.ts +48 -30
  2. package/kusama/errors.d.ts +89 -100
  3. package/kusama/events.d.ts +87 -28
  4. package/kusama/index.d.ts +1 -1
  5. package/kusama/query.d.ts +241 -130
  6. package/kusama/runtime.d.ts +347 -95
  7. package/kusama/tx.d.ts +3309 -456
  8. package/kusama/types.d.ts +6341 -1092
  9. package/kusama-asset-hub/consts.d.ts +52 -3
  10. package/kusama-asset-hub/errors.d.ts +30 -5
  11. package/kusama-asset-hub/events.d.ts +61 -1
  12. package/kusama-asset-hub/index.d.ts +1 -1
  13. package/kusama-asset-hub/query.d.ts +100 -18
  14. package/kusama-asset-hub/runtime.d.ts +186 -15
  15. package/kusama-asset-hub/tx.d.ts +3074 -254
  16. package/kusama-asset-hub/types.d.ts +6190 -551
  17. package/package.json +2 -2
  18. package/paseo/index.d.ts +1 -1
  19. package/rococo/errors.d.ts +0 -10
  20. package/rococo/events.d.ts +33 -12
  21. package/rococo/index.d.ts +1 -1
  22. package/rococo/query.d.ts +52 -52
  23. package/rococo/runtime.d.ts +117 -58
  24. package/rococo/tx.d.ts +33 -33
  25. package/rococo/types.d.ts +191 -185
  26. package/rococo-asset-hub/consts.d.ts +2 -2
  27. package/rococo-asset-hub/events.d.ts +87 -80
  28. package/rococo-asset-hub/index.d.ts +1 -1
  29. package/rococo-asset-hub/query.d.ts +66 -54
  30. package/rococo-asset-hub/runtime.d.ts +12 -15
  31. package/rococo-asset-hub/tx.d.ts +250 -241
  32. package/rococo-asset-hub/types.d.ts +353 -404
  33. package/westend/consts.d.ts +9 -0
  34. package/westend/errors.d.ts +0 -10
  35. package/westend/events.d.ts +79 -13
  36. package/westend/index.d.ts +1 -1
  37. package/westend/query.d.ts +75 -52
  38. package/westend/runtime.d.ts +133 -58
  39. package/westend/tx.d.ts +72 -35
  40. package/westend/types.d.ts +308 -190
  41. package/westend-asset-hub/consts.d.ts +2 -2
  42. package/westend-asset-hub/events.d.ts +87 -80
  43. package/westend-asset-hub/index.d.ts +1 -1
  44. package/westend-asset-hub/query.d.ts +66 -54
  45. package/westend-asset-hub/runtime.d.ts +12 -15
  46. package/westend-asset-hub/tx.d.ts +250 -241
  47. package/westend-asset-hub/types.d.ts +353 -404
  48. package/westend-people/index.d.ts +1 -1
  49. package/westend-people/query.d.ts +12 -12
  50. package/westend-people/tx.d.ts +1 -58
  51. package/westend-people/types.d.ts +16 -62
@@ -23,7 +23,7 @@ export interface VersionedWestendPeopleApi<Rv extends RpcVersion> extends Generi
23
23
 
24
24
  /**
25
25
  * @name: WestendPeopleApi
26
- * @specVersion: 1015000
26
+ * @specVersion: 1016000
27
27
  **/
28
28
  export interface WestendPeopleApi {
29
29
  legacy: VersionedWestendPeopleApi<RpcLegacy>;
@@ -21,12 +21,12 @@ import type {
21
21
  FrameSystemCodeUpgradeAuthorization,
22
22
  CumulusPalletParachainSystemUnincludedSegmentAncestor,
23
23
  CumulusPalletParachainSystemUnincludedSegmentSegmentTracker,
24
- PolkadotPrimitivesV7PersistedValidationData,
25
- PolkadotPrimitivesV7UpgradeRestriction,
26
- PolkadotPrimitivesV7UpgradeGoAhead,
24
+ PolkadotPrimitivesV8PersistedValidationData,
25
+ PolkadotPrimitivesV8UpgradeRestriction,
26
+ PolkadotPrimitivesV8UpgradeGoAhead,
27
27
  SpTrieStorageProof,
28
28
  CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot,
29
- PolkadotPrimitivesV7AbridgedHostConfiguration,
29
+ PolkadotPrimitivesV8AbridgedHostConfiguration,
30
30
  CumulusPrimitivesParachainInherentMessageQueueChain,
31
31
  PolkadotParachainPrimitivesPrimitivesId,
32
32
  PolkadotCorePrimitivesOutboundHrmpMessage,
@@ -271,9 +271,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
271
271
  * This value is expected to be set only once per block and it's never stored
272
272
  * in the trie.
273
273
  *
274
- * @param {Callback<PolkadotPrimitivesV7PersistedValidationData | undefined> =} callback
274
+ * @param {Callback<PolkadotPrimitivesV8PersistedValidationData | undefined> =} callback
275
275
  **/
276
- validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7PersistedValidationData | undefined>;
276
+ validationData: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8PersistedValidationData | undefined>;
277
277
 
278
278
  /**
279
279
  * Were the validation data set to notify the relay chain?
@@ -300,9 +300,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
300
300
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
301
301
  * set after the inherent.
302
302
  *
303
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
303
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
304
304
  **/
305
- upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeRestriction | undefined>;
305
+ upgradeRestrictionSignal: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeRestriction | undefined>;
306
306
 
307
307
  /**
308
308
  * Optional upgrade go-ahead signal from the relay-chain.
@@ -311,9 +311,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
311
311
  * relay-chain. This value is ephemeral which means it doesn't hit the storage. This value is
312
312
  * set after the inherent.
313
313
  *
314
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
314
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
315
315
  **/
316
- upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7UpgradeGoAhead | undefined>;
316
+ upgradeGoAhead: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8UpgradeGoAhead | undefined>;
317
317
 
318
318
  /**
319
319
  * The state proof for the last relay parent block.
@@ -351,9 +351,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
351
351
  *
352
352
  * This data is also absent from the genesis.
353
353
  *
354
- * @param {Callback<PolkadotPrimitivesV7AbridgedHostConfiguration | undefined> =} callback
354
+ * @param {Callback<PolkadotPrimitivesV8AbridgedHostConfiguration | undefined> =} callback
355
355
  **/
356
- hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7AbridgedHostConfiguration | undefined>;
356
+ hostConfiguration: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8AbridgedHostConfiguration | undefined>;
357
357
 
358
358
  /**
359
359
  * The last downward message queue chain head we have observed.
@@ -341,63 +341,6 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
341
341
  >
342
342
  >;
343
343
 
344
- /**
345
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
346
- * later.
347
- *
348
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
349
- * version and name should be verified on upgrade. Since the authorization only has a hash,
350
- * it cannot actually perform the verification.
351
- *
352
- * This call requires Root origin.
353
- *
354
- * @param {H256} codeHash
355
- * @param {boolean} checkVersion
356
- **/
357
- authorizeUpgrade: GenericTxCall<
358
- Rv,
359
- (
360
- codeHash: H256,
361
- checkVersion: boolean,
362
- ) => ChainSubmittableExtrinsic<
363
- Rv,
364
- {
365
- pallet: 'ParachainSystem';
366
- palletCall: {
367
- name: 'AuthorizeUpgrade';
368
- params: { codeHash: H256; checkVersion: boolean };
369
- };
370
- }
371
- >
372
- >;
373
-
374
- /**
375
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
376
- *
377
- * If the authorization required a version check, this call will ensure the spec name
378
- * remains unchanged and that the spec version has increased.
379
- *
380
- * Note that this function will not apply the new `code`, but only attempt to schedule the
381
- * upgrade with the Relay Chain.
382
- *
383
- * All origins are allowed.
384
- *
385
- * @param {BytesLike} code
386
- **/
387
- enactAuthorizedUpgrade: GenericTxCall<
388
- Rv,
389
- (code: BytesLike) => ChainSubmittableExtrinsic<
390
- Rv,
391
- {
392
- pallet: 'ParachainSystem';
393
- palletCall: {
394
- name: 'EnactAuthorizedUpgrade';
395
- params: { code: BytesLike };
396
- };
397
- }
398
- >
399
- >;
400
-
401
344
  /**
402
345
  * Generic pallet tx call
403
346
  **/
@@ -2357,7 +2300,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2357
2300
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
2358
2301
  *
2359
2302
  * ```nocompile
2360
- * Self::registrars().get(reg_index).unwrap().fee
2303
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
2361
2304
  * ```
2362
2305
  *
2363
2306
  * Emits `JudgementRequested` if successful.
@@ -1448,7 +1448,7 @@ export type FrameSystemError =
1448
1448
  export type CumulusPalletParachainSystemUnincludedSegmentAncestor = {
1449
1449
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
1450
1450
  paraHeadHash?: H256 | undefined;
1451
- consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
1451
+ consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
1452
1452
  };
1453
1453
 
1454
1454
  export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
@@ -1461,15 +1461,15 @@ export type CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth = {
1461
1461
 
1462
1462
  export type CumulusPalletParachainSystemUnincludedSegmentHrmpChannelUpdate = { msgCount: number; totalBytes: number };
1463
1463
 
1464
- export type PolkadotPrimitivesV7UpgradeGoAhead = 'Abort' | 'GoAhead';
1464
+ export type PolkadotPrimitivesV8UpgradeGoAhead = 'Abort' | 'GoAhead';
1465
1465
 
1466
1466
  export type CumulusPalletParachainSystemUnincludedSegmentSegmentTracker = {
1467
1467
  usedBandwidth: CumulusPalletParachainSystemUnincludedSegmentUsedBandwidth;
1468
1468
  hrmpWatermark?: number | undefined;
1469
- consumedGoAheadSignal?: PolkadotPrimitivesV7UpgradeGoAhead | undefined;
1469
+ consumedGoAheadSignal?: PolkadotPrimitivesV8UpgradeGoAhead | undefined;
1470
1470
  };
1471
1471
 
1472
- export type PolkadotPrimitivesV7PersistedValidationData = {
1472
+ export type PolkadotPrimitivesV8PersistedValidationData = {
1473
1473
  parentHead: PolkadotParachainPrimitivesPrimitivesHeadData;
1474
1474
  relayParentNumber: number;
1475
1475
  relayParentStorageRoot: H256;
@@ -1478,15 +1478,15 @@ export type PolkadotPrimitivesV7PersistedValidationData = {
1478
1478
 
1479
1479
  export type PolkadotParachainPrimitivesPrimitivesHeadData = Bytes;
1480
1480
 
1481
- export type PolkadotPrimitivesV7UpgradeRestriction = 'Present';
1481
+ export type PolkadotPrimitivesV8UpgradeRestriction = 'Present';
1482
1482
 
1483
1483
  export type SpTrieStorageProof = { trieNodes: Array<Bytes> };
1484
1484
 
1485
1485
  export type CumulusPalletParachainSystemRelayStateSnapshotMessagingStateSnapshot = {
1486
1486
  dmqMqcHead: H256;
1487
1487
  relayDispatchQueueRemainingCapacity: CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity;
1488
- ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
1489
- egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV7AbridgedHrmpChannel]>;
1488
+ ingressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
1489
+ egressChannels: Array<[PolkadotParachainPrimitivesPrimitivesId, PolkadotPrimitivesV8AbridgedHrmpChannel]>;
1490
1490
  };
1491
1491
 
1492
1492
  export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRemainingCapacity = {
@@ -1494,7 +1494,7 @@ export type CumulusPalletParachainSystemRelayStateSnapshotRelayDispatchQueueRema
1494
1494
  remainingSize: number;
1495
1495
  };
1496
1496
 
1497
- export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
1497
+ export type PolkadotPrimitivesV8AbridgedHrmpChannel = {
1498
1498
  maxCapacity: number;
1499
1499
  maxTotalSize: number;
1500
1500
  maxMessageSize: number;
@@ -1503,7 +1503,7 @@ export type PolkadotPrimitivesV7AbridgedHrmpChannel = {
1503
1503
  mqcHead?: H256 | undefined;
1504
1504
  };
1505
1505
 
1506
- export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
1506
+ export type PolkadotPrimitivesV8AbridgedHostConfiguration = {
1507
1507
  maxCodeSize: number;
1508
1508
  maxHeadDataSize: number;
1509
1509
  maxUpwardQueueCount: number;
@@ -1513,10 +1513,10 @@ export type PolkadotPrimitivesV7AbridgedHostConfiguration = {
1513
1513
  hrmpMaxMessageNumPerCandidate: number;
1514
1514
  validationUpgradeCooldown: number;
1515
1515
  validationUpgradeDelay: number;
1516
- asyncBackingParams: PolkadotPrimitivesV7AsyncBackingAsyncBackingParams;
1516
+ asyncBackingParams: PolkadotPrimitivesV8AsyncBackingAsyncBackingParams;
1517
1517
  };
1518
1518
 
1519
- export type PolkadotPrimitivesV7AsyncBackingAsyncBackingParams = {
1519
+ export type PolkadotPrimitivesV8AsyncBackingAsyncBackingParams = {
1520
1520
  maxCandidateDepth: number;
1521
1521
  allowedAncestryLen: number;
1522
1522
  };
@@ -1544,30 +1544,7 @@ export type CumulusPalletParachainSystemCall =
1544
1544
  * if the appropriate time has come.
1545
1545
  **/
1546
1546
  | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
1547
- | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } }
1548
- /**
1549
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1550
- * later.
1551
- *
1552
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
1553
- * version and name should be verified on upgrade. Since the authorization only has a hash,
1554
- * it cannot actually perform the verification.
1555
- *
1556
- * This call requires Root origin.
1557
- **/
1558
- | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
1559
- /**
1560
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1561
- *
1562
- * If the authorization required a version check, this call will ensure the spec name
1563
- * remains unchanged and that the spec version has increased.
1564
- *
1565
- * Note that this function will not apply the new `code`, but only attempt to schedule the
1566
- * upgrade with the Relay Chain.
1567
- *
1568
- * All origins are allowed.
1569
- **/
1570
- | { name: 'EnactAuthorizedUpgrade'; params: { code: Bytes } };
1547
+ | { name: 'SudoSendUpwardMessage'; params: { message: Bytes } };
1571
1548
 
1572
1549
  export type CumulusPalletParachainSystemCallLike =
1573
1550
  /**
@@ -1582,33 +1559,10 @@ export type CumulusPalletParachainSystemCallLike =
1582
1559
  * if the appropriate time has come.
1583
1560
  **/
1584
1561
  | { name: 'SetValidationData'; params: { data: CumulusPrimitivesParachainInherentParachainInherentData } }
1585
- | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } }
1586
- /**
1587
- * Authorize an upgrade to a given `code_hash` for the runtime. The runtime can be supplied
1588
- * later.
1589
- *
1590
- * The `check_version` parameter sets a boolean flag for whether or not the runtime's spec
1591
- * version and name should be verified on upgrade. Since the authorization only has a hash,
1592
- * it cannot actually perform the verification.
1593
- *
1594
- * This call requires Root origin.
1595
- **/
1596
- | { name: 'AuthorizeUpgrade'; params: { codeHash: H256; checkVersion: boolean } }
1597
- /**
1598
- * Provide the preimage (runtime binary) `code` for an upgrade that has been authorized.
1599
- *
1600
- * If the authorization required a version check, this call will ensure the spec name
1601
- * remains unchanged and that the spec version has increased.
1602
- *
1603
- * Note that this function will not apply the new `code`, but only attempt to schedule the
1604
- * upgrade with the Relay Chain.
1605
- *
1606
- * All origins are allowed.
1607
- **/
1608
- | { name: 'EnactAuthorizedUpgrade'; params: { code: BytesLike } };
1562
+ | { name: 'SudoSendUpwardMessage'; params: { message: BytesLike } };
1609
1563
 
1610
1564
  export type CumulusPrimitivesParachainInherentParachainInherentData = {
1611
- validationData: PolkadotPrimitivesV7PersistedValidationData;
1565
+ validationData: PolkadotPrimitivesV8PersistedValidationData;
1612
1566
  relayChainState: SpTrieStorageProof;
1613
1567
  downwardMessages: Array<PolkadotCorePrimitivesInboundDownwardMessage>;
1614
1568
  horizontalMessages: Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>;
@@ -4172,7 +4126,7 @@ export type PalletIdentityCall =
4172
4126
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
4173
4127
  *
4174
4128
  * ```nocompile
4175
- * Self::registrars().get(reg_index).unwrap().fee
4129
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
4176
4130
  * ```
4177
4131
  *
4178
4132
  * Emits `JudgementRequested` if successful.
@@ -4404,7 +4358,7 @@ export type PalletIdentityCallLike =
4404
4358
  * - `max_fee`: The maximum fee that may be paid. This should just be auto-populated as:
4405
4359
  *
4406
4360
  * ```nocompile
4407
- * Self::registrars().get(reg_index).unwrap().fee
4361
+ * Registrars::<T>::get().get(reg_index).unwrap().fee
4408
4362
  * ```
4409
4363
  *
4410
4364
  * Emits `JudgementRequested` if successful.