@dedot/chaintypes 0.227.0 → 0.228.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.227.0",
3
+ "version": "0.228.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@dedot.dev>",
6
6
  "homepage": "https://dedot.dev",
@@ -25,7 +25,7 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "f252c757febaca8be040de59b024313dd22b7d88",
28
+ "gitHead": "1e0ec057bbfe8d32754bdb380fca72c810737098",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -42,6 +42,7 @@ import type {
42
42
  PolkadotRuntimeParachainsDisputesDisputeLocation,
43
43
  PolkadotRuntimeParachainsDisputesDisputeResult,
44
44
  PalletStakingAsyncAhClientUnexpectedKind,
45
+ PalletStakingAsyncAhClientSessionKeysUpdate,
45
46
  StagingXcmV5TraitsOutcome,
46
47
  StagingXcmV5Location,
47
48
  StagingXcmV5Xcm,
@@ -2679,6 +2680,15 @@ export interface ChainEvents extends GenericChainEvents {
2679
2680
  **/
2680
2681
  Unexpected: GenericPalletEvent<'StakingAhClient', 'Unexpected', PalletStakingAsyncAhClientUnexpectedKind>;
2681
2682
 
2683
+ /**
2684
+ * Session keys updated for a validator.
2685
+ **/
2686
+ SessionKeysUpdated: GenericPalletEvent<
2687
+ 'StakingAhClient',
2688
+ 'SessionKeysUpdated',
2689
+ { stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate }
2690
+ >;
2691
+
2682
2692
  /**
2683
2693
  * Generic pallet event
2684
2694
  **/
@@ -52,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
52
52
 
53
53
  /**
54
54
  * @name: WestendApi
55
- * @specVersion: 1021001
55
+ * @specVersion: 1021002
56
56
  **/
57
57
  export interface WestendApi extends GenericSubstrateApi {
58
58
  rpc: ChainJsonRpcApis;
package/westend/tx.d.ts CHANGED
@@ -9547,6 +9547,55 @@ export interface ChainTx<
9547
9547
  >
9548
9548
  >;
9549
9549
 
9550
+ /**
9551
+ * Set session keys for a validator, forwarded from AssetHub.
9552
+ *
9553
+ * This is called when a validator sets their session keys on AssetHub, which forwards
9554
+ * the request to the RelayChain via XCM.
9555
+ *
9556
+ * AssetHub validates both keys and ownership proof before sending.
9557
+ * RC trusts AH's validation and does not re-validate.
9558
+ *
9559
+ * @param {AccountId32Like} stash
9560
+ * @param {BytesLike} keys
9561
+ **/
9562
+ setKeysFromAh: GenericTxCall<
9563
+ (
9564
+ stash: AccountId32Like,
9565
+ keys: BytesLike,
9566
+ ) => ChainSubmittableExtrinsic<
9567
+ {
9568
+ pallet: 'StakingAhClient';
9569
+ palletCall: {
9570
+ name: 'SetKeysFromAh';
9571
+ params: { stash: AccountId32Like; keys: BytesLike };
9572
+ };
9573
+ },
9574
+ ChainKnownTypes
9575
+ >
9576
+ >;
9577
+
9578
+ /**
9579
+ * Purge session keys for a validator, forwarded from AssetHub.
9580
+ *
9581
+ * This is called when a validator purges their session keys on AssetHub, which forwards
9582
+ * the request to the RelayChain via XCM.
9583
+ *
9584
+ * @param {AccountId32Like} stash
9585
+ **/
9586
+ purgeKeysFromAh: GenericTxCall<
9587
+ (stash: AccountId32Like) => ChainSubmittableExtrinsic<
9588
+ {
9589
+ pallet: 'StakingAhClient';
9590
+ palletCall: {
9591
+ name: 'PurgeKeysFromAh';
9592
+ params: { stash: AccountId32Like };
9593
+ };
9594
+ },
9595
+ ChainKnownTypes
9596
+ >
9597
+ >;
9598
+
9550
9599
  /**
9551
9600
  * Generic pallet tx call
9552
9601
  **/
@@ -9291,7 +9291,24 @@ export type PalletStakingAsyncAhClientCall =
9291
9291
  /**
9292
9292
  * manually do what this pallet was meant to do at the end of the migration.
9293
9293
  **/
9294
- | { name: 'ForceOnMigrationEnd' };
9294
+ | { name: 'ForceOnMigrationEnd' }
9295
+ /**
9296
+ * Set session keys for a validator, forwarded from AssetHub.
9297
+ *
9298
+ * This is called when a validator sets their session keys on AssetHub, which forwards
9299
+ * the request to the RelayChain via XCM.
9300
+ *
9301
+ * AssetHub validates both keys and ownership proof before sending.
9302
+ * RC trusts AH's validation and does not re-validate.
9303
+ **/
9304
+ | { name: 'SetKeysFromAh'; params: { stash: AccountId32; keys: Bytes } }
9305
+ /**
9306
+ * Purge session keys for a validator, forwarded from AssetHub.
9307
+ *
9308
+ * This is called when a validator purges their session keys on AssetHub, which forwards
9309
+ * the request to the RelayChain via XCM.
9310
+ **/
9311
+ | { name: 'PurgeKeysFromAh'; params: { stash: AccountId32 } };
9295
9312
 
9296
9313
  export type PalletStakingAsyncAhClientCallLike =
9297
9314
  | { name: 'ValidatorSet'; params: { report: PalletStakingAsyncRcClientValidatorSetReport } }
@@ -9302,7 +9319,24 @@ export type PalletStakingAsyncAhClientCallLike =
9302
9319
  /**
9303
9320
  * manually do what this pallet was meant to do at the end of the migration.
9304
9321
  **/
9305
- | { name: 'ForceOnMigrationEnd' };
9322
+ | { name: 'ForceOnMigrationEnd' }
9323
+ /**
9324
+ * Set session keys for a validator, forwarded from AssetHub.
9325
+ *
9326
+ * This is called when a validator sets their session keys on AssetHub, which forwards
9327
+ * the request to the RelayChain via XCM.
9328
+ *
9329
+ * AssetHub validates both keys and ownership proof before sending.
9330
+ * RC trusts AH's validation and does not re-validate.
9331
+ **/
9332
+ | { name: 'SetKeysFromAh'; params: { stash: AccountId32Like; keys: BytesLike } }
9333
+ /**
9334
+ * Purge session keys for a validator, forwarded from AssetHub.
9335
+ *
9336
+ * This is called when a validator purges their session keys on AssetHub, which forwards
9337
+ * the request to the RelayChain via XCM.
9338
+ **/
9339
+ | { name: 'PurgeKeysFromAh'; params: { stash: AccountId32Like } };
9306
9340
 
9307
9341
  export type PalletStakingAsyncRcClientValidatorSetReport = {
9308
9342
  newValidatorSet: Array<AccountId32>;
@@ -12688,7 +12722,11 @@ export type PalletStakingAsyncAhClientEvent =
12688
12722
  * Something occurred that should never happen under normal operation. Logged as an event
12689
12723
  * for fail-safe observability.
12690
12724
  **/
12691
- | { name: 'Unexpected'; data: PalletStakingAsyncAhClientUnexpectedKind };
12725
+ | { name: 'Unexpected'; data: PalletStakingAsyncAhClientUnexpectedKind }
12726
+ /**
12727
+ * Session keys updated for a validator.
12728
+ **/
12729
+ | { name: 'SessionKeysUpdated'; data: { stash: AccountId32; update: PalletStakingAsyncAhClientSessionKeysUpdate } };
12692
12730
 
12693
12731
  export type PalletStakingAsyncAhClientUnexpectedKind =
12694
12732
  | 'ReceivedValidatorSetWhilePassive'
@@ -12696,7 +12734,10 @@ export type PalletStakingAsyncAhClientUnexpectedKind =
12696
12734
  | 'SessionReportSendFailed'
12697
12735
  | 'SessionReportDropped'
12698
12736
  | 'OffenceSendFailed'
12699
- | 'ValidatorPointDropped';
12737
+ | 'ValidatorPointDropped'
12738
+ | 'InvalidKeysFromAssetHub';
12739
+
12740
+ export type PalletStakingAsyncAhClientSessionKeysUpdate = 'Set' | 'Purged';
12700
12741
 
12701
12742
  /**
12702
12743
  * The `Event` enum of this pallet