@dedot/chaintypes 0.101.0 → 0.103.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.
@@ -17278,6 +17278,22 @@ export type PalletAhOpsCall =
17278
17278
  | {
17279
17279
  name: 'UnreserveCrowdloanReserve';
17280
17280
  params: { block: number; depositor?: AccountId32 | undefined; paraId: PolkadotParachainPrimitivesPrimitivesId };
17281
+ }
17282
+ /**
17283
+ * Try to migrate a parachain sovereign child account to its respective sibling.
17284
+ *
17285
+ * Takes the old and new account and migrates it only if they are as expected. An event of
17286
+ * `SovereignMigrated` will be emitted if the account was migrated successfully.
17287
+ *
17288
+ * Callable by any signed origin.
17289
+ **/
17290
+ | { name: 'MigrateParachainSovereignAcc'; params: { from: AccountId32; to: AccountId32 } }
17291
+ /**
17292
+ * Force unreserve a named or unnamed reserve.
17293
+ **/
17294
+ | {
17295
+ name: 'ForceUnreserve';
17296
+ params: { account: AccountId32; amount: bigint; reason?: AssetHubWestendRuntimeRuntimeHoldReason | undefined };
17281
17297
  };
17282
17298
 
17283
17299
  export type PalletAhOpsCallLike =
@@ -17333,8 +17349,57 @@ export type PalletAhOpsCallLike =
17333
17349
  depositor?: AccountId32Like | undefined;
17334
17350
  paraId: PolkadotParachainPrimitivesPrimitivesId;
17335
17351
  };
17352
+ }
17353
+ /**
17354
+ * Try to migrate a parachain sovereign child account to its respective sibling.
17355
+ *
17356
+ * Takes the old and new account and migrates it only if they are as expected. An event of
17357
+ * `SovereignMigrated` will be emitted if the account was migrated successfully.
17358
+ *
17359
+ * Callable by any signed origin.
17360
+ **/
17361
+ | { name: 'MigrateParachainSovereignAcc'; params: { from: AccountId32Like; to: AccountId32Like } }
17362
+ /**
17363
+ * Force unreserve a named or unnamed reserve.
17364
+ **/
17365
+ | {
17366
+ name: 'ForceUnreserve';
17367
+ params: {
17368
+ account: AccountId32Like;
17369
+ amount: bigint;
17370
+ reason?: AssetHubWestendRuntimeRuntimeHoldReason | undefined;
17371
+ };
17336
17372
  };
17337
17373
 
17374
+ export type AssetHubWestendRuntimeRuntimeHoldReason =
17375
+ | { type: 'Preimage'; value: PalletPreimageHoldReason }
17376
+ | { type: 'PolkadotXcm'; value: PalletXcmHoldReason }
17377
+ | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason }
17378
+ | { type: 'Revive'; value: PalletReviveHoldReason }
17379
+ | { type: 'AssetRewards'; value: PalletAssetRewardsHoldReason }
17380
+ | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason }
17381
+ | { type: 'Staking'; value: PalletStakingAsyncPalletHoldReason }
17382
+ | { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
17383
+ | { type: 'MultiBlockSigned'; value: PalletElectionProviderMultiBlockSignedPalletHoldReason };
17384
+
17385
+ export type PalletPreimageHoldReason = 'Preimage';
17386
+
17387
+ export type PalletXcmHoldReason = 'AuthorizeAlias';
17388
+
17389
+ export type PalletNftFractionalizationHoldReason = 'Fractionalized';
17390
+
17391
+ export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
17392
+
17393
+ export type PalletAssetRewardsHoldReason = 'PoolCreation';
17394
+
17395
+ export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
17396
+
17397
+ export type PalletStakingAsyncPalletHoldReason = 'Staking';
17398
+
17399
+ export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
17400
+
17401
+ export type PalletElectionProviderMultiBlockSignedPalletHoldReason = 'SignedSubmission';
17402
+
17338
17403
  /**
17339
17404
  * Contains a variant per dispatchable extrinsic that this pallet has.
17340
17405
  **/
@@ -17427,7 +17492,14 @@ export type PalletAhMigratorCall =
17427
17492
  *
17428
17493
  * This is typically called by the Relay Chain to signal the migration has finished.
17429
17494
  **/
17430
- | { name: 'FinishMigration'; params: { data: PalletRcMigratorMigrationFinishedData } };
17495
+ | { name: 'FinishMigration'; params: { data: PalletRcMigratorMigrationFinishedData } }
17496
+ /**
17497
+ * Fix hold reasons that were incorrectly assigned during migration.
17498
+ * This should only be used post-migration to repair bad hold reasons.
17499
+ *
17500
+ * Only the `ManagerOrigin` can call this function.
17501
+ **/
17502
+ | { name: 'FixMisplacedHold'; params: { account: AccountId32; delegationHold: bigint; stakingHold: bigint } };
17431
17503
 
17432
17504
  export type PalletAhMigratorCallLike =
17433
17505
  /**
@@ -17518,7 +17590,14 @@ export type PalletAhMigratorCallLike =
17518
17590
  *
17519
17591
  * This is typically called by the Relay Chain to signal the migration has finished.
17520
17592
  **/
17521
- | { name: 'FinishMigration'; params: { data: PalletRcMigratorMigrationFinishedData } };
17593
+ | { name: 'FinishMigration'; params: { data: PalletRcMigratorMigrationFinishedData } }
17594
+ /**
17595
+ * Fix hold reasons that were incorrectly assigned during migration.
17596
+ * This should only be used post-migration to repair bad hold reasons.
17597
+ *
17598
+ * Only the `ManagerOrigin` can call this function.
17599
+ **/
17600
+ | { name: 'FixMisplacedHold'; params: { account: AccountId32Like; delegationHold: bigint; stakingHold: bigint } };
17522
17601
 
17523
17602
  export type PalletRcMigratorAccountsAccount = {
17524
17603
  who: AccountId32;
@@ -17538,10 +17617,6 @@ export type AssetHubWestendRuntimeAhMigrationRcHoldReason =
17538
17617
  | { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
17539
17618
  | { type: 'Staking'; value: PalletStakingPalletHoldReason };
17540
17619
 
17541
- export type PalletPreimageHoldReason = 'Preimage';
17542
-
17543
- export type PalletDelegatedStakingHoldReason = 'StakingDelegation';
17544
-
17545
17620
  export type PalletStakingPalletHoldReason = 'Staking';
17546
17621
 
17547
17622
  export type AssetHubWestendRuntimeAhMigrationRcFreezeReason = {
@@ -18034,6 +18109,43 @@ export type PalletAhOpsEvent =
18034
18109
  | {
18035
18110
  name: 'CrowdloanUnreserveRemaining';
18036
18111
  data: { depositor: AccountId32; paraId: PolkadotParachainPrimitivesPrimitivesId; remaining: bigint };
18112
+ }
18113
+ /**
18114
+ * A sovereign parachain account has been migrated from its child to sibling
18115
+ * representation.
18116
+ **/
18117
+ | {
18118
+ name: 'SovereignMigrated';
18119
+ data: {
18120
+ /**
18121
+ * The parachain ID that had its account migrated.
18122
+ **/
18123
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
18124
+
18125
+ /**
18126
+ * The old account that was migrated out of.
18127
+ **/
18128
+ from: AccountId32;
18129
+
18130
+ /**
18131
+ * The new account that was migrated into.
18132
+ **/
18133
+ to: AccountId32;
18134
+ };
18135
+ }
18136
+ /**
18137
+ * An amount of fungible balance was put on hold.
18138
+ **/
18139
+ | {
18140
+ name: 'HoldPlaced';
18141
+ data: { account: AccountId32; amount: bigint; reason: AssetHubWestendRuntimeRuntimeHoldReason };
18142
+ }
18143
+ /**
18144
+ * An amount of fungible balance was released from its hold.
18145
+ **/
18146
+ | {
18147
+ name: 'HoldReleased';
18148
+ data: { account: AccountId32; amount: bigint; reason: AssetHubWestendRuntimeRuntimeHoldReason };
18037
18149
  };
18038
18150
 
18039
18151
  /**
@@ -18398,31 +18510,6 @@ export type FrameSupportTokensMiscIdAmountRuntimeHoldReason = {
18398
18510
  amount: bigint;
18399
18511
  };
18400
18512
 
18401
- export type AssetHubWestendRuntimeRuntimeHoldReason =
18402
- | { type: 'Preimage'; value: PalletPreimageHoldReason }
18403
- | { type: 'PolkadotXcm'; value: PalletXcmHoldReason }
18404
- | { type: 'NftFractionalization'; value: PalletNftFractionalizationHoldReason }
18405
- | { type: 'Revive'; value: PalletReviveHoldReason }
18406
- | { type: 'AssetRewards'; value: PalletAssetRewardsHoldReason }
18407
- | { type: 'StateTrieMigration'; value: PalletStateTrieMigrationHoldReason }
18408
- | { type: 'Staking'; value: PalletStakingAsyncPalletHoldReason }
18409
- | { type: 'DelegatedStaking'; value: PalletDelegatedStakingHoldReason }
18410
- | { type: 'MultiBlockSigned'; value: PalletElectionProviderMultiBlockSignedPalletHoldReason };
18411
-
18412
- export type PalletXcmHoldReason = 'AuthorizeAlias';
18413
-
18414
- export type PalletNftFractionalizationHoldReason = 'Fractionalized';
18415
-
18416
- export type PalletReviveHoldReason = 'CodeUploadDepositReserve' | 'StorageDepositReserve' | 'AddressMapping';
18417
-
18418
- export type PalletAssetRewardsHoldReason = 'PoolCreation';
18419
-
18420
- export type PalletStateTrieMigrationHoldReason = 'SlashForMigrate';
18421
-
18422
- export type PalletStakingAsyncPalletHoldReason = 'Staking';
18423
-
18424
- export type PalletElectionProviderMultiBlockSignedPalletHoldReason = 'SignedSubmission';
18425
-
18426
18513
  export type FrameSupportTokensMiscIdAmountRuntimeFreezeReason = {
18427
18514
  id: AssetHubWestendRuntimeRuntimeFreezeReason;
18428
18515
  amount: bigint;
@@ -20880,7 +20967,43 @@ export type PalletAhOpsError =
20880
20967
  /**
20881
20968
  * Not all contributions are withdrawn.
20882
20969
  **/
20883
- | 'ContributionsRemaining';
20970
+ | 'ContributionsRemaining'
20971
+ /**
20972
+ * Passed account IDs are not matching unmigrated child and sibling accounts.
20973
+ **/
20974
+ | 'WrongSovereignTranslation'
20975
+ /**
20976
+ * Account cannot be migrated since it is not a sovereign parachain account.
20977
+ **/
20978
+ | 'NotSovereign'
20979
+ /**
20980
+ * Internal error, please bug report.
20981
+ **/
20982
+ | 'InternalError'
20983
+ /**
20984
+ * The migrated account would get reaped in the process.
20985
+ **/
20986
+ | 'WouldReap'
20987
+ /**
20988
+ * Failed to put a hold on an account.
20989
+ **/
20990
+ | 'FailedToPutHold'
20991
+ /**
20992
+ * Failed to release a hold from an account.
20993
+ **/
20994
+ | 'FailedToReleaseHold'
20995
+ /**
20996
+ * Failed to thaw a frozen balance.
20997
+ **/
20998
+ | 'FailedToThaw'
20999
+ /**
21000
+ * Failed to set a freeze on an account.
21001
+ **/
21002
+ | 'FailedToSetFreeze'
21003
+ /**
21004
+ * Failed to unreserve the full balance.
21005
+ **/
21006
+ | 'CannotUnreserve';
20884
21007
 
20885
21008
  export type PalletAhMigratorBalancesBefore = { checkingAccount: bigint; totalIssuance: bigint };
20886
21009
 
@@ -20933,7 +21056,15 @@ export type PalletAhMigratorError =
20933
21056
  * Vector did not fit into its compile-time bound.
20934
21057
  **/
20935
21058
  | 'FailedToBoundVector'
20936
- | 'Unreachable';
21059
+ | 'Unreachable'
21060
+ /**
21061
+ * No misplaced hold found.
21062
+ **/
21063
+ | 'NoMisplacedHoldFound'
21064
+ /**
21065
+ * No free balance to hold.
21066
+ **/
21067
+ | 'NoFreeBalanceToHold';
20937
21068
 
20938
21069
  export type CumulusPalletWeightReclaimStorageWeightReclaim = [
20939
21070
  FrameSystemExtensionsAuthorizeCall,