@dedot/chaintypes 0.106.0 → 0.108.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.
@@ -1,27 +1,19 @@
1
1
  // Generated by dedot cli
2
2
 
3
3
  import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
4
+ import type { DispatchError, AccountId32, H256, FixedBytes, FixedU128, Result, Bytes, Permill } from 'dedot/codecs';
4
5
  import type {
5
- DispatchInfo,
6
- DispatchError,
7
- AccountId32,
8
- H256,
9
- FixedBytes,
10
- FixedU128,
11
- Result,
12
- Bytes,
13
- Permill,
14
- } from 'dedot/codecs';
15
- import type {
6
+ FrameSystemDispatchEventInfo,
16
7
  SpWeightsWeightV2Weight,
17
8
  FrameSupportTokensMiscBalanceStatus,
18
9
  StagingXcmV4Location,
19
- StagingXcmV4TraitsOutcome,
20
- StagingXcmV4Xcm,
21
- StagingXcmV4Response,
10
+ StagingXcmV5TraitsOutcome,
11
+ StagingXcmV5Location,
12
+ StagingXcmV5Xcm,
13
+ StagingXcmV5Response,
22
14
  XcmVersionedAssets,
23
- StagingXcmV4AssetAssets,
24
- XcmV3TraitsError,
15
+ StagingXcmV5AssetAssets,
16
+ XcmV5TraitsError,
25
17
  XcmVersionedLocation,
26
18
  CumulusPrimitivesCoreAggregateMessageOrigin,
27
19
  FrameSupportMessagesProcessMessageError,
@@ -42,7 +34,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
42
34
  /**
43
35
  * An extrinsic completed successfully.
44
36
  **/
45
- ExtrinsicSuccess: GenericPalletEvent<Rv, 'System', 'ExtrinsicSuccess', { dispatchInfo: DispatchInfo }>;
37
+ ExtrinsicSuccess: GenericPalletEvent<
38
+ Rv,
39
+ 'System',
40
+ 'ExtrinsicSuccess',
41
+ { dispatchInfo: FrameSystemDispatchEventInfo }
42
+ >;
46
43
 
47
44
  /**
48
45
  * An extrinsic failed.
@@ -51,7 +48,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
51
48
  Rv,
52
49
  'System',
53
50
  'ExtrinsicFailed',
54
- { dispatchError: DispatchError; dispatchInfo: DispatchInfo }
51
+ { dispatchError: DispatchError; dispatchInfo: FrameSystemDispatchEventInfo }
55
52
  >;
56
53
 
57
54
  /**
@@ -455,7 +452,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
455
452
  /**
456
453
  * Execution of an XCM message was attempted.
457
454
  **/
458
- Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV4TraitsOutcome }>;
455
+ Attempted: GenericPalletEvent<Rv, 'PolkadotXcm', 'Attempted', { outcome: StagingXcmV5TraitsOutcome }>;
459
456
 
460
457
  /**
461
458
  * A XCM message was sent.
@@ -465,9 +462,9 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
465
462
  'PolkadotXcm',
466
463
  'Sent',
467
464
  {
468
- origin: StagingXcmV4Location;
469
- destination: StagingXcmV4Location;
470
- message: StagingXcmV4Xcm;
465
+ origin: StagingXcmV5Location;
466
+ destination: StagingXcmV5Location;
467
+ message: StagingXcmV5Xcm;
471
468
  messageId: FixedBytes<32>;
472
469
  }
473
470
  >;
@@ -481,7 +478,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
481
478
  Rv,
482
479
  'PolkadotXcm',
483
480
  'UnexpectedResponse',
484
- { origin: StagingXcmV4Location; queryId: bigint }
481
+ { origin: StagingXcmV5Location; queryId: bigint }
485
482
  >;
486
483
 
487
484
  /**
@@ -492,7 +489,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
492
489
  Rv,
493
490
  'PolkadotXcm',
494
491
  'ResponseReady',
495
- { queryId: bigint; response: StagingXcmV4Response }
492
+ { queryId: bigint; response: StagingXcmV5Response }
496
493
  >;
497
494
 
498
495
  /**
@@ -556,7 +553,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
556
553
  Rv,
557
554
  'PolkadotXcm',
558
555
  'InvalidResponder',
559
- { origin: StagingXcmV4Location; queryId: bigint; expectedLocation?: StagingXcmV4Location | undefined }
556
+ { origin: StagingXcmV5Location; queryId: bigint; expectedLocation?: StagingXcmV5Location | undefined }
560
557
  >;
561
558
 
562
559
  /**
@@ -572,7 +569,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
572
569
  Rv,
573
570
  'PolkadotXcm',
574
571
  'InvalidResponderVersion',
575
- { origin: StagingXcmV4Location; queryId: bigint }
572
+ { origin: StagingXcmV5Location; queryId: bigint }
576
573
  >;
577
574
 
578
575
  /**
@@ -587,7 +584,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
587
584
  Rv,
588
585
  'PolkadotXcm',
589
586
  'AssetsTrapped',
590
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
587
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
591
588
  >;
592
589
 
593
590
  /**
@@ -599,7 +596,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
599
596
  Rv,
600
597
  'PolkadotXcm',
601
598
  'VersionChangeNotified',
602
- { destination: StagingXcmV4Location; result: number; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
599
+ { destination: StagingXcmV5Location; result: number; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
603
600
  >;
604
601
 
605
602
  /**
@@ -610,7 +607,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
610
607
  Rv,
611
608
  'PolkadotXcm',
612
609
  'SupportedVersionChanged',
613
- { location: StagingXcmV4Location; version: number }
610
+ { location: StagingXcmV5Location; version: number }
614
611
  >;
615
612
 
616
613
  /**
@@ -621,7 +618,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
621
618
  Rv,
622
619
  'PolkadotXcm',
623
620
  'NotifyTargetSendFail',
624
- { location: StagingXcmV4Location; queryId: bigint; error: XcmV3TraitsError }
621
+ { location: StagingXcmV5Location; queryId: bigint; error: XcmV5TraitsError }
625
622
  >;
626
623
 
627
624
  /**
@@ -648,7 +645,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
648
645
  Rv,
649
646
  'PolkadotXcm',
650
647
  'InvalidQuerierVersion',
651
- { origin: StagingXcmV4Location; queryId: bigint }
648
+ { origin: StagingXcmV5Location; queryId: bigint }
652
649
  >;
653
650
 
654
651
  /**
@@ -661,10 +658,10 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
661
658
  'PolkadotXcm',
662
659
  'InvalidQuerier',
663
660
  {
664
- origin: StagingXcmV4Location;
661
+ origin: StagingXcmV5Location;
665
662
  queryId: bigint;
666
- expectedQuerier: StagingXcmV4Location;
667
- maybeActualQuerier?: StagingXcmV4Location | undefined;
663
+ expectedQuerier: StagingXcmV5Location;
664
+ maybeActualQuerier?: StagingXcmV5Location | undefined;
668
665
  }
669
666
  >;
670
667
 
@@ -676,7 +673,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
676
673
  Rv,
677
674
  'PolkadotXcm',
678
675
  'VersionNotifyStarted',
679
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
676
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
680
677
  >;
681
678
 
682
679
  /**
@@ -686,7 +683,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
686
683
  Rv,
687
684
  'PolkadotXcm',
688
685
  'VersionNotifyRequested',
689
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
686
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
690
687
  >;
691
688
 
692
689
  /**
@@ -697,7 +694,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
697
694
  Rv,
698
695
  'PolkadotXcm',
699
696
  'VersionNotifyUnrequested',
700
- { destination: StagingXcmV4Location; cost: StagingXcmV4AssetAssets; messageId: FixedBytes<32> }
697
+ { destination: StagingXcmV5Location; cost: StagingXcmV5AssetAssets; messageId: FixedBytes<32> }
701
698
  >;
702
699
 
703
700
  /**
@@ -707,7 +704,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
707
704
  Rv,
708
705
  'PolkadotXcm',
709
706
  'FeesPaid',
710
- { paying: StagingXcmV4Location; fees: StagingXcmV4AssetAssets }
707
+ { paying: StagingXcmV5Location; fees: StagingXcmV5AssetAssets }
711
708
  >;
712
709
 
713
710
  /**
@@ -717,7 +714,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
717
714
  Rv,
718
715
  'PolkadotXcm',
719
716
  'AssetsClaimed',
720
- { hash: H256; origin: StagingXcmV4Location; assets: XcmVersionedAssets }
717
+ { hash: H256; origin: StagingXcmV5Location; assets: XcmVersionedAssets }
721
718
  >;
722
719
 
723
720
  /**
@@ -754,7 +751,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
754
751
  Rv,
755
752
  'CumulusXcm',
756
753
  'ExecutedDownward',
757
- [FixedBytes<32>, StagingXcmV4TraitsOutcome]
754
+ [FixedBytes<32>, StagingXcmV5TraitsOutcome]
758
755
  >;
759
756
 
760
757
  /**
@@ -23,7 +23,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
23
23
 
24
24
  /**
25
25
  * @name: PolkadotAssetHubApi
26
- * @specVersion: 1004002
26
+ * @specVersion: 1005001
27
27
  **/
28
28
  export interface PolkadotAssetHubApi {
29
29
  legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
@@ -50,7 +50,7 @@ import type {
50
50
  PalletXcmVersionMigrationStage,
51
51
  PalletXcmRemoteLockedFungibleRecord,
52
52
  XcmVersionedAssetId,
53
- StagingXcmV4Xcm,
53
+ StagingXcmV5Xcm,
54
54
  BpXcmBridgeHubRouterBridgeState,
55
55
  PalletMessageQueueBookState,
56
56
  CumulusPrimitivesCoreAggregateMessageOrigin,
@@ -1097,9 +1097,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1097
1097
  * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1098
1098
  * implementation in the XCM executor configuration.
1099
1099
  *
1100
- * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1100
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
1101
1101
  **/
1102
- recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1102
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
1103
1103
 
1104
1104
  /**
1105
1105
  * Generic pallet storage query
@@ -508,17 +508,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
508
508
  **/
509
509
  dryRunApi: {
510
510
  /**
511
- * Dry run call.
511
+ * Dry run call V2.
512
512
  *
513
513
  * @callname: DryRunApi_dry_run_call
514
514
  * @param {AssetHubPolkadotRuntimeOriginCaller} origin
515
515
  * @param {AssetHubPolkadotRuntimeRuntimeCallLike} call
516
+ * @param {number} result_xcms_version
516
517
  **/
517
518
  dryRunCall: GenericRuntimeApiMethod<
518
519
  Rv,
519
520
  (
520
521
  origin: AssetHubPolkadotRuntimeOriginCaller,
521
522
  call: AssetHubPolkadotRuntimeRuntimeCallLike,
523
+ resultXcmsVersion: number,
522
524
  ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
523
525
  >;
524
526
 
@@ -610,9 +612,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
610
612
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
611
613
  * storage.
612
614
  *
613
- * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
614
- * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
615
- * deserialization fails, an error is returned.
615
+ * In the case of a FRAME-based runtime, this function deserializes the full
616
+ * `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
617
+ * provided JSON blob is incorrect or incomplete or the deserialization fails, an error
618
+ * is returned.
616
619
  *
617
620
  * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
618
621
  * defaults will be used.
@@ -626,7 +629,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
626
629
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
627
630
  * `id`.
628
631
  *
629
- * If `id` is `None` the function returns JSON blob representation of the default
632
+ * If `id` is `None` the function should return JSON blob representation of the default
630
633
  * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
631
634
  * `RuntimeGenesisConfig`.
632
635
  *
@@ -23,7 +23,7 @@ import type {
23
23
  XcmVersionedXcm,
24
24
  XcmVersionedAssets,
25
25
  SpWeightsWeightV2Weight,
26
- StagingXcmV4Location,
26
+ StagingXcmV5Location,
27
27
  XcmV3WeightLimit,
28
28
  StagingXcmExecutorAssetTransferTransferType,
29
29
  XcmVersionedAssetId,
@@ -44,6 +44,7 @@ import type {
44
44
  PalletNftsPriceWithDirection,
45
45
  PalletNftsPreSignedMint,
46
46
  PalletNftsPreSignedAttributes,
47
+ StagingXcmV4Location,
47
48
  PalletStateTrieMigrationMigrationLimits,
48
49
  PalletStateTrieMigrationMigrationTask,
49
50
  PalletStateTrieMigrationProgress,
@@ -1472,13 +1473,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1472
1473
  * - `location`: The destination that is being described.
1473
1474
  * - `xcm_version`: The latest version of XCM that `location` supports.
1474
1475
  *
1475
- * @param {StagingXcmV4Location} location
1476
+ * @param {StagingXcmV5Location} location
1476
1477
  * @param {number} version
1477
1478
  **/
1478
1479
  forceXcmVersion: GenericTxCall<
1479
1480
  Rv,
1480
1481
  (
1481
- location: StagingXcmV4Location,
1482
+ location: StagingXcmV5Location,
1482
1483
  version: number,
1483
1484
  ) => ChainSubmittableExtrinsic<
1484
1485
  Rv,
@@ -1486,7 +1487,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1486
1487
  pallet: 'PolkadotXcm';
1487
1488
  palletCall: {
1488
1489
  name: 'ForceXcmVersion';
1489
- params: { location: StagingXcmV4Location; version: number };
1490
+ params: { location: StagingXcmV5Location; version: number };
1490
1491
  };
1491
1492
  }
1492
1493
  >