@dedot/chaintypes 0.226.0 → 0.227.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.
@@ -3459,6 +3459,26 @@ export interface ChainErrors extends GenericChainErrors {
3459
3459
  **/
3460
3460
  ZeroBalance: GenericPalletError;
3461
3461
 
3462
+ /**
3463
+ * Failed to transfer balance.
3464
+ **/
3465
+ FailedToTransfer: GenericPalletError;
3466
+
3467
+ /**
3468
+ * The account has already been translated.
3469
+ **/
3470
+ AlreadyTranslated: GenericPalletError;
3471
+
3472
+ /**
3473
+ * The derivation path is too long.
3474
+ **/
3475
+ TooLongDerivationPath: GenericPalletError;
3476
+
3477
+ /**
3478
+ * Failed to force unstake.
3479
+ **/
3480
+ FailedToForceUnstake: GenericPalletError;
3481
+
3462
3482
  /**
3463
3483
  * Generic pallet error
3464
3484
  **/
@@ -4370,7 +4370,7 @@ export interface ChainEvents extends GenericChainEvents {
4370
4370
  /**
4371
4371
  * The parachain ID that had its account migrated.
4372
4372
  **/
4373
- paraId: PolkadotParachainPrimitivesPrimitivesId;
4373
+ paraId: number;
4374
4374
 
4375
4375
  /**
4376
4376
  * The old account that was migrated out of.
@@ -4383,12 +4383,17 @@ export interface ChainEvents extends GenericChainEvents {
4383
4383
  to: AccountId32;
4384
4384
 
4385
4385
  /**
4386
- * Set if this account was derived from a para sovereign account.
4386
+ * The derivation path that was used to translate the account.
4387
4387
  **/
4388
- derivationIndex?: number | undefined;
4388
+ derivationPath: Array<number>;
4389
4389
  }
4390
4390
  >;
4391
4391
 
4392
+ /**
4393
+ * Failed to re-bond some migrated funds.
4394
+ **/
4395
+ FailedToBond: GenericPalletEvent<'AhOps', 'FailedToBond', { account: AccountId32; amount: bigint }>;
4396
+
4392
4397
  /**
4393
4398
  * Generic pallet event
4394
4399
  **/
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: KusamaAssetHubApi
55
- * @specVersion: 2000004
55
+ * @specVersion: 2000006
56
56
  **/
57
57
  export interface KusamaAssetHubApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
@@ -71,12 +71,13 @@ import type {
71
71
  PalletNominationPoolsConfigOp,
72
72
  PalletNominationPoolsConfigOpU32,
73
73
  PalletNominationPoolsConfigOpPerbill,
74
- PalletNominationPoolsConfigOp004,
74
+ PalletNominationPoolsConfigOpAccountId32,
75
75
  PalletNominationPoolsClaimPermission,
76
76
  PalletNominationPoolsCommissionChangeRate,
77
77
  PalletNominationPoolsCommissionClaimPermission,
78
78
  PalletStakingAsyncRcClientSessionReport,
79
79
  PalletStakingAsyncRcClientOffence,
80
+ PalletElectionProviderMultiBlockManagerOperation,
80
81
  PalletElectionProviderMultiBlockAdminOperation,
81
82
  PalletElectionProviderMultiBlockPagedRawSolution,
82
83
  SpNposElectionsElectionScore,
@@ -12336,16 +12337,16 @@ export interface ChainTx<
12336
12337
  * most pool members and they should be informed of changes to pool roles.
12337
12338
  *
12338
12339
  * @param {number} poolId
12339
- * @param {PalletNominationPoolsConfigOp004} newRoot
12340
- * @param {PalletNominationPoolsConfigOp004} newNominator
12341
- * @param {PalletNominationPoolsConfigOp004} newBouncer
12340
+ * @param {PalletNominationPoolsConfigOpAccountId32} newRoot
12341
+ * @param {PalletNominationPoolsConfigOpAccountId32} newNominator
12342
+ * @param {PalletNominationPoolsConfigOpAccountId32} newBouncer
12342
12343
  **/
12343
12344
  updateRoles: GenericTxCall<
12344
12345
  (
12345
12346
  poolId: number,
12346
- newRoot: PalletNominationPoolsConfigOp004,
12347
- newNominator: PalletNominationPoolsConfigOp004,
12348
- newBouncer: PalletNominationPoolsConfigOp004,
12347
+ newRoot: PalletNominationPoolsConfigOpAccountId32,
12348
+ newNominator: PalletNominationPoolsConfigOpAccountId32,
12349
+ newBouncer: PalletNominationPoolsConfigOpAccountId32,
12349
12350
  ) => ChainSubmittableExtrinsic<
12350
12351
  {
12351
12352
  pallet: 'NominationPools';
@@ -12353,9 +12354,9 @@ export interface ChainTx<
12353
12354
  name: 'UpdateRoles';
12354
12355
  params: {
12355
12356
  poolId: number;
12356
- newRoot: PalletNominationPoolsConfigOp004;
12357
- newNominator: PalletNominationPoolsConfigOp004;
12358
- newBouncer: PalletNominationPoolsConfigOp004;
12357
+ newRoot: PalletNominationPoolsConfigOpAccountId32;
12358
+ newNominator: PalletNominationPoolsConfigOpAccountId32;
12359
+ newBouncer: PalletNominationPoolsConfigOpAccountId32;
12359
12360
  };
12360
12361
  };
12361
12362
  },
@@ -12852,18 +12853,35 @@ export interface ChainTx<
12852
12853
  /**
12853
12854
  * Manage this pallet.
12854
12855
  *
12855
- * The origin of this call must be [`Config::AdminOrigin`].
12856
+ * The origin of this call must be [`Config::ManagerOrigin`].
12856
12857
  *
12857
- * See [`AdminOperation`] for various operations that are possible.
12858
+ * See [`ManagerOperation`] for various operations that are possible.
12858
12859
  *
12859
- * @param {PalletElectionProviderMultiBlockAdminOperation} op
12860
+ * @param {PalletElectionProviderMultiBlockManagerOperation} op
12860
12861
  **/
12861
12862
  manage: GenericTxCall<
12862
- (op: PalletElectionProviderMultiBlockAdminOperation) => ChainSubmittableExtrinsic<
12863
+ (op: PalletElectionProviderMultiBlockManagerOperation) => ChainSubmittableExtrinsic<
12863
12864
  {
12864
12865
  pallet: 'MultiBlockElection';
12865
12866
  palletCall: {
12866
12867
  name: 'Manage';
12868
+ params: { op: PalletElectionProviderMultiBlockManagerOperation };
12869
+ };
12870
+ },
12871
+ ChainKnownTypes
12872
+ >
12873
+ >;
12874
+
12875
+ /**
12876
+ *
12877
+ * @param {PalletElectionProviderMultiBlockAdminOperation} op
12878
+ **/
12879
+ admin: GenericTxCall<
12880
+ (op: PalletElectionProviderMultiBlockAdminOperation) => ChainSubmittableExtrinsic<
12881
+ {
12882
+ pallet: 'MultiBlockElection';
12883
+ palletCall: {
12884
+ name: 'Admin';
12867
12885
  params: { op: PalletElectionProviderMultiBlockAdminOperation };
12868
12886
  };
12869
12887
  },
@@ -15675,6 +15693,47 @@ export interface ChainTx<
15675
15693
  >
15676
15694
  >;
15677
15695
 
15696
+ /**
15697
+ * Translate recursively derived parachain sovereign child account to its sibling.
15698
+ *
15699
+ * Uses the same derivation path on the sibling. The old and new account arguments are only
15700
+ * witness data to ensure correct usage. Can only be called by the `MigrateOrigin`.
15701
+ *
15702
+ * This migrates:
15703
+ * - Native DOT balance
15704
+ * - All assets listed in `T::RelevantAssets`
15705
+ * - Staked balances
15706
+ *
15707
+ * Things like non-relevant assets or vested transfers may remain on the old account.
15708
+ *
15709
+ * @param {number} paraId
15710
+ * @param {Array<number>} derivationPath
15711
+ * @param {AccountId32Like} oldAccount
15712
+ * @param {AccountId32Like} newAccount
15713
+ **/
15714
+ translateParaSovereignChildToSiblingDerived: GenericTxCall<
15715
+ (
15716
+ paraId: number,
15717
+ derivationPath: Array<number>,
15718
+ oldAccount: AccountId32Like,
15719
+ newAccount: AccountId32Like,
15720
+ ) => ChainSubmittableExtrinsic<
15721
+ {
15722
+ pallet: 'AhOps';
15723
+ palletCall: {
15724
+ name: 'TranslateParaSovereignChildToSiblingDerived';
15725
+ params: {
15726
+ paraId: number;
15727
+ derivationPath: Array<number>;
15728
+ oldAccount: AccountId32Like;
15729
+ newAccount: AccountId32Like;
15730
+ };
15731
+ };
15732
+ },
15733
+ ChainKnownTypes
15734
+ >
15735
+ >;
15736
+
15678
15737
  /**
15679
15738
  * Generic pallet tx call
15680
15739
  **/