@dedot/chaintypes 0.154.0 → 0.156.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.
@@ -41,7 +41,12 @@ import type {
41
41
  PeoplePaseoRuntimeOriginCaller,
42
42
  XcmRuntimeApisDryRunXcmDryRunEffects,
43
43
  XcmRuntimeApisConversionsError,
44
+ XcmRuntimeApisTrustedQueryError,
45
+ XcmVersionedAsset,
46
+ XcmRuntimeApisAuthorizedAliasesOriginAliaser,
47
+ XcmRuntimeApisAuthorizedAliasesError,
44
48
  CumulusPrimitivesCoreCollationInfo,
49
+ PolkadotParachainPrimitivesPrimitivesId,
45
50
  } from './types.js';
46
51
 
47
52
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -70,6 +75,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
70
75
  **/
71
76
  [method: string]: GenericRuntimeApiMethod<Rv>;
72
77
  };
78
+ /**
79
+ * @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
80
+ **/
81
+ relayParentOffsetApi: {
82
+ /**
83
+ * Fetch the slot offset that is expected from the relay chain.
84
+ *
85
+ * @callname: RelayParentOffsetApi_relay_parent_offset
86
+ **/
87
+ relayParentOffset: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
88
+
89
+ /**
90
+ * Generic runtime api call
91
+ **/
92
+ [method: string]: GenericRuntimeApiMethod<Rv>;
93
+ };
73
94
  /**
74
95
  * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
75
96
  **/
@@ -559,6 +580,90 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
559
580
  **/
560
581
  [method: string]: GenericRuntimeApiMethod<Rv>;
561
582
  };
583
+ /**
584
+ * @runtimeapi: TrustedQueryApi - 0x2609be83ac4468dc
585
+ **/
586
+ trustedQueryApi: {
587
+ /**
588
+ * Returns if the location is a trusted reserve for the asset.
589
+ *
590
+ * # Arguments
591
+ * * `asset`: `VersionedAsset`.
592
+ * * `location`: `VersionedLocation`.
593
+ *
594
+ * @callname: TrustedQueryApi_is_trusted_reserve
595
+ * @param {XcmVersionedAsset} asset
596
+ * @param {XcmVersionedLocation} location
597
+ **/
598
+ isTrustedReserve: GenericRuntimeApiMethod<
599
+ Rv,
600
+ (
601
+ asset: XcmVersionedAsset,
602
+ location: XcmVersionedLocation,
603
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
604
+ >;
605
+
606
+ /**
607
+ * Returns if the asset can be teleported to the location.
608
+ *
609
+ * # Arguments
610
+ * * `asset`: `VersionedAsset`.
611
+ * * `location`: `VersionedLocation`.
612
+ *
613
+ * @callname: TrustedQueryApi_is_trusted_teleporter
614
+ * @param {XcmVersionedAsset} asset
615
+ * @param {XcmVersionedLocation} location
616
+ **/
617
+ isTrustedTeleporter: GenericRuntimeApiMethod<
618
+ Rv,
619
+ (
620
+ asset: XcmVersionedAsset,
621
+ location: XcmVersionedLocation,
622
+ ) => Promise<Result<boolean, XcmRuntimeApisTrustedQueryError>>
623
+ >;
624
+
625
+ /**
626
+ * Generic runtime api call
627
+ **/
628
+ [method: string]: GenericRuntimeApiMethod<Rv>;
629
+ };
630
+ /**
631
+ * @runtimeapi: AuthorizedAliasersApi - 0x12c8e3d4d7e06de0
632
+ **/
633
+ authorizedAliasersApi: {
634
+ /**
635
+ * Returns locations allowed to alias into and act as `target`.
636
+ *
637
+ * @callname: AuthorizedAliasersApi_authorized_aliasers
638
+ * @param {XcmVersionedLocation} target
639
+ **/
640
+ authorizedAliasers: GenericRuntimeApiMethod<
641
+ Rv,
642
+ (
643
+ target: XcmVersionedLocation,
644
+ ) => Promise<Result<Array<XcmRuntimeApisAuthorizedAliasesOriginAliaser>, XcmRuntimeApisAuthorizedAliasesError>>
645
+ >;
646
+
647
+ /**
648
+ * Returns whether `origin` is allowed to alias into and act as `target`.
649
+ *
650
+ * @callname: AuthorizedAliasersApi_is_authorized_alias
651
+ * @param {XcmVersionedLocation} origin
652
+ * @param {XcmVersionedLocation} target
653
+ **/
654
+ isAuthorizedAlias: GenericRuntimeApiMethod<
655
+ Rv,
656
+ (
657
+ origin: XcmVersionedLocation,
658
+ target: XcmVersionedLocation,
659
+ ) => Promise<Result<boolean, XcmRuntimeApisAuthorizedAliasesError>>
660
+ >;
661
+
662
+ /**
663
+ * Generic runtime api call
664
+ **/
665
+ [method: string]: GenericRuntimeApiMethod<Rv>;
666
+ };
562
667
  /**
563
668
  * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
564
669
  **/
@@ -579,6 +684,22 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
579
684
  **/
580
685
  [method: string]: GenericRuntimeApiMethod<Rv>;
581
686
  };
687
+ /**
688
+ * @runtimeapi: GetParachainInfo - 0xa2ddb6a58477bf63
689
+ **/
690
+ getParachainInfo: {
691
+ /**
692
+ * Retrieve the parachain id used for runtime.
693
+ *
694
+ * @callname: GetParachainInfo_parachain_id
695
+ **/
696
+ parachainId: GenericRuntimeApiMethod<Rv, () => Promise<PolkadotParachainPrimitivesPrimitivesId>>;
697
+
698
+ /**
699
+ * Generic runtime api call
700
+ **/
701
+ [method: string]: GenericRuntimeApiMethod<Rv>;
702
+ };
582
703
  /**
583
704
  * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
584
705
  **/
@@ -15,7 +15,8 @@ import type {
15
15
  PeoplePaseoRuntimeRuntimeCallLike,
16
16
  SpRuntimeMultiSignature,
17
17
  FrameSystemEventRecord,
18
- CumulusPrimitivesParachainInherentParachainInherentData,
18
+ CumulusPalletParachainSystemParachainInherentBasicParachainInherentData,
19
+ CumulusPalletParachainSystemParachainInherentInboundMessagesData,
19
20
  PalletMigrationsMigrationCursor,
20
21
  PalletMigrationsHistoricCleanupSelector,
21
22
  PalletBalancesAdjustmentDirection,
@@ -310,17 +311,24 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
310
311
  * As a side effect, this function upgrades the current validation function
311
312
  * if the appropriate time has come.
312
313
  *
313
- * @param {CumulusPrimitivesParachainInherentParachainInherentData} data
314
+ * @param {CumulusPalletParachainSystemParachainInherentBasicParachainInherentData} data
315
+ * @param {CumulusPalletParachainSystemParachainInherentInboundMessagesData} inboundMessagesData
314
316
  **/
315
317
  setValidationData: GenericTxCall<
316
318
  Rv,
317
- (data: CumulusPrimitivesParachainInherentParachainInherentData) => ChainSubmittableExtrinsic<
319
+ (
320
+ data: CumulusPalletParachainSystemParachainInherentBasicParachainInherentData,
321
+ inboundMessagesData: CumulusPalletParachainSystemParachainInherentInboundMessagesData,
322
+ ) => ChainSubmittableExtrinsic<
318
323
  Rv,
319
324
  {
320
325
  pallet: 'ParachainSystem';
321
326
  palletCall: {
322
327
  name: 'SetValidationData';
323
- params: { data: CumulusPrimitivesParachainInherentParachainInherentData };
328
+ params: {
329
+ data: CumulusPalletParachainSystemParachainInherentBasicParachainInherentData;
330
+ inboundMessagesData: CumulusPalletParachainSystemParachainInherentInboundMessagesData;
331
+ };
324
332
  };
325
333
  }
326
334
  >
@@ -1233,6 +1241,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1233
1241
  * @param {XcmVersionedLocation} beneficiary
1234
1242
  * @param {XcmVersionedAssets} assets
1235
1243
  * @param {number} feeAssetItem
1244
+ *
1245
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_teleport_assets` or `transfer_assets`
1236
1246
  **/
1237
1247
  teleportAssets: GenericTxCall<
1238
1248
  Rv,
@@ -1294,6 +1304,8 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1294
1304
  * @param {XcmVersionedLocation} beneficiary
1295
1305
  * @param {XcmVersionedAssets} assets
1296
1306
  * @param {number} feeAssetItem
1307
+ *
1308
+ * @deprecated This extrinsic uses `WeightLimit::Unlimited`, please migrate to `limited_reserve_transfer_assets` or `transfer_assets`
1297
1309
  **/
1298
1310
  reserveTransferAssets: GenericTxCall<
1299
1311
  Rv,
@@ -2577,7 +2589,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2577
2589
  *
2578
2590
  * The dispatch origin for this call must be _Signed_.
2579
2591
  *
2580
- * WARNING: This may be called on accounts created by `pure`, however if done, then
2592
+ * WARNING: This may be called on accounts created by `create_pure`, however if done, then
2581
2593
  * the unreserved fees will be inaccessible. **All access to this account will be lost.**
2582
2594
  *
2583
2595
  **/
@@ -2643,16 +2655,16 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2643
2655
  * inaccessible.
2644
2656
  *
2645
2657
  * Requires a `Signed` origin, and the sender account must have been created by a call to
2646
- * `pure` with corresponding parameters.
2658
+ * `create_pure` with corresponding parameters.
2647
2659
  *
2648
- * - `spawner`: The account that originally called `pure` to create this account.
2649
- * - `index`: The disambiguation index originally passed to `pure`. Probably `0`.
2650
- * - `proxy_type`: The proxy type originally passed to `pure`.
2651
- * - `height`: The height of the chain when the call to `pure` was processed.
2652
- * - `ext_index`: The extrinsic index in which the call to `pure` was processed.
2660
+ * - `spawner`: The account that originally called `create_pure` to create this account.
2661
+ * - `index`: The disambiguation index originally passed to `create_pure`. Probably `0`.
2662
+ * - `proxy_type`: The proxy type originally passed to `create_pure`.
2663
+ * - `height`: The height of the chain when the call to `create_pure` was processed.
2664
+ * - `ext_index`: The extrinsic index in which the call to `create_pure` was processed.
2653
2665
  *
2654
2666
  * Fails with `NoPermission` in case the caller is not a previously created pure
2655
- * account whose `pure` call has corresponding parameters.
2667
+ * account whose `create_pure` call has corresponding parameters.
2656
2668
  *
2657
2669
  * @param {MultiAddressLike} spawner
2658
2670
  * @param {PeoplePaseoRuntimeProxyType} proxyType