@dedot/chaintypes 0.105.0 → 0.106.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.
@@ -1919,7 +1919,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
1919
1919
  NotMigrated: GenericPalletError<Rv>;
1920
1920
 
1921
1921
  /**
1922
- * This call is not allowed in the current state of the pallet.
1922
+ * This call is not allowed in the current state of the pallet or an unspecific error
1923
+ * occurred.
1923
1924
  **/
1924
1925
  NotSupported: GenericPalletError<Rv>;
1925
1926
 
package/kusama/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedKusamaApi<Rv extends RpcVersion> extends GenericSubstr
23
23
 
24
24
  /**
25
25
  * @name: KusamaApi
26
- * @specVersion: 1005000
26
+ * @specVersion: 1005001
27
27
  **/
28
28
  export interface KusamaApi {
29
29
  legacy: VersionedKusamaApi<RpcLegacy>;
@@ -1394,6 +1394,9 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1394
1394
  /**
1395
1395
  * Returns the pending slash for a given pool member.
1396
1396
  *
1397
+ * If pending slash of the member exceeds `ExistentialDeposit`, it can be reported on
1398
+ * chain.
1399
+ *
1397
1400
  * @callname: NominationPoolsApi_member_pending_slash
1398
1401
  * @param {AccountId32Like} member
1399
1402
  **/
package/kusama/tx.d.ts CHANGED
@@ -7875,8 +7875,10 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
7875
7875
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
7876
7876
  * [`adapter::StakeStrategyType::Delegate`].
7877
7877
  *
7878
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
7879
- * slash to be applied, caller may be rewarded with the part of the slash.
7878
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
7879
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
7880
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
7881
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
7880
7882
  *
7881
7883
  * @param {MultiAddressLike} memberAccount
7882
7884
  **/
package/kusama/types.d.ts CHANGED
@@ -7407,8 +7407,10 @@ export type PalletNominationPoolsCall =
7407
7407
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
7408
7408
  * [`adapter::StakeStrategyType::Delegate`].
7409
7409
  *
7410
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
7411
- * slash to be applied, caller may be rewarded with the part of the slash.
7410
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
7411
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
7412
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
7413
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
7412
7414
  **/
7413
7415
  | { name: 'ApplySlash'; params: { memberAccount: MultiAddress } }
7414
7416
  /**
@@ -7770,8 +7772,10 @@ export type PalletNominationPoolsCallLike =
7770
7772
  * Fails unless [`crate::pallet::Config::StakeAdapter`] is of strategy type:
7771
7773
  * [`adapter::StakeStrategyType::Delegate`].
7772
7774
  *
7773
- * This call can be dispatched permissionlessly (i.e. by any account). If the member has
7774
- * slash to be applied, caller may be rewarded with the part of the slash.
7775
+ * The pending slash amount of the member must be equal or more than `ExistentialDeposit`.
7776
+ * This call can be dispatched permissionlessly (i.e. by any account). If the execution
7777
+ * is successful, fee is refunded and caller may be rewarded with a part of the slash
7778
+ * based on the [`crate::pallet::Config::StakeAdapter`] configuration.
7775
7779
  **/
7776
7780
  | { name: 'ApplySlash'; params: { memberAccount: MultiAddressLike } }
7777
7781
  /**
@@ -15066,7 +15070,8 @@ export type PalletNominationPoolsError =
15066
15070
  **/
15067
15071
  | { name: 'NotMigrated' }
15068
15072
  /**
15069
- * This call is not allowed in the current state of the pallet.
15073
+ * This call is not allowed in the current state of the pallet or an unspecific error
15074
+ * occurred.
15070
15075
  **/
15071
15076
  | { name: 'NotSupported' };
15072
15077
 
@@ -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 VersionedKusamaAssetHubApi<Rv extends RpcVersion> extends Gener
23
23
 
24
24
  /**
25
25
  * @name: KusamaAssetHubApi
26
- * @specVersion: 1004003
26
+ * @specVersion: 1005001
27
27
  **/
28
28
  export interface KusamaAssetHubApi {
29
29
  legacy: VersionedKusamaAssetHubApi<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,
@@ -1098,9 +1098,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1098
1098
  * Only relevant if this pallet is being used as the [`xcm_executor::traits::RecordXcm`]
1099
1099
  * implementation in the XCM executor configuration.
1100
1100
  *
1101
- * @param {Callback<StagingXcmV4Xcm | undefined> =} callback
1101
+ * @param {Callback<StagingXcmV5Xcm | undefined> =} callback
1102
1102
  **/
1103
- recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV4Xcm | undefined>;
1103
+ recordedXcm: GenericStorageQuery<Rv, () => StagingXcmV5Xcm | undefined>;
1104
1104
 
1105
1105
  /**
1106
1106
  * Generic pallet storage query
@@ -674,9 +674,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
674
674
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
675
675
  * storage.
676
676
  *
677
- * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
678
- * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
679
- * deserialization fails, an error is returned.
677
+ * In the case of a FRAME-based runtime, this function deserializes the full
678
+ * `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
679
+ * provided JSON blob is incorrect or incomplete or the deserialization fails, an error
680
+ * is returned.
680
681
  *
681
682
  * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
682
683
  * defaults will be used.
@@ -690,7 +691,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
690
691
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
691
692
  * `id`.
692
693
  *
693
- * If `id` is `None` the function returns JSON blob representation of the default
694
+ * If `id` is `None` the function should return JSON blob representation of the default
694
695
  * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
695
696
  * `RuntimeGenesisConfig`.
696
697
  *
@@ -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,
@@ -45,6 +45,7 @@ import type {
45
45
  PalletNftsPriceWithDirection,
46
46
  PalletNftsPreSignedMint,
47
47
  PalletNftsPreSignedAttributes,
48
+ StagingXcmV4Location,
48
49
  PalletStateTrieMigrationMigrationLimits,
49
50
  PalletStateTrieMigrationMigrationTask,
50
51
  PalletStateTrieMigrationProgress,
@@ -1473,13 +1474,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1473
1474
  * - `location`: The destination that is being described.
1474
1475
  * - `xcm_version`: The latest version of XCM that `location` supports.
1475
1476
  *
1476
- * @param {StagingXcmV4Location} location
1477
+ * @param {StagingXcmV5Location} location
1477
1478
  * @param {number} version
1478
1479
  **/
1479
1480
  forceXcmVersion: GenericTxCall<
1480
1481
  Rv,
1481
1482
  (
1482
- location: StagingXcmV4Location,
1483
+ location: StagingXcmV5Location,
1483
1484
  version: number,
1484
1485
  ) => ChainSubmittableExtrinsic<
1485
1486
  Rv,
@@ -1487,7 +1488,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1487
1488
  pallet: 'PolkadotXcm';
1488
1489
  palletCall: {
1489
1490
  name: 'ForceXcmVersion';
1490
- params: { location: StagingXcmV4Location; version: number };
1491
+ params: { location: StagingXcmV5Location; version: number };
1491
1492
  };
1492
1493
  }
1493
1494
  >