@dedot/chaintypes 0.95.0 → 0.97.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.
@@ -11,6 +11,7 @@ import type {
11
11
  WestendRuntimeRuntimeParametersKey,
12
12
  WestendRuntimeRuntimeParametersValue,
13
13
  SpConsensusGrandpaAppPublic,
14
+ PalletRecoveryDepositKind,
14
15
  WestendRuntimeProxyType,
15
16
  PalletProxyDepositKind,
16
17
  PalletMultisigTimepoint,
@@ -38,6 +39,7 @@ import type {
38
39
  PolkadotCorePrimitivesCandidateHash,
39
40
  PolkadotRuntimeParachainsDisputesDisputeLocation,
40
41
  PolkadotRuntimeParachainsDisputesDisputeResult,
42
+ PalletStakingAsyncAhClientUnexpectedKind,
41
43
  StagingXcmV5TraitsOutcome,
42
44
  StagingXcmV5Location,
43
45
  StagingXcmV5Xcm,
@@ -49,6 +51,7 @@ import type {
49
51
  StagingXcmV5AssetAssets,
50
52
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
51
53
  FrameSupportMessagesProcessMessageError,
54
+ PalletRcMigratorMigrationStage,
52
55
  } from './types.js';
53
56
 
54
57
  export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<Rv> {
@@ -459,6 +462,25 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
459
462
  **/
460
463
  [prop: string]: GenericPalletEvent<Rv>;
461
464
  };
465
+ /**
466
+ * Pallet `Historical`'s events
467
+ **/
468
+ historical: {
469
+ /**
470
+ * The merkle root of the validators of the said session were stored
471
+ **/
472
+ RootStored: GenericPalletEvent<Rv, 'Historical', 'RootStored', { index: number }>;
473
+
474
+ /**
475
+ * The merkle roots of up to this session index were pruned
476
+ **/
477
+ RootsPruned: GenericPalletEvent<Rv, 'Historical', 'RootsPruned', { upTo: number }>;
478
+
479
+ /**
480
+ * Generic pallet event
481
+ **/
482
+ [prop: string]: GenericPalletEvent<Rv>;
483
+ };
462
484
  /**
463
485
  * Pallet `Parameters`'s events
464
486
  **/
@@ -505,6 +527,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
505
527
  **/
506
528
  NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
507
529
 
530
+ /**
531
+ * The `NewSession` event in the current block also implies a new validator set to be
532
+ * queued.
533
+ **/
534
+ NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
535
+
508
536
  /**
509
537
  * Validator has been disabled.
510
538
  **/
@@ -824,6 +852,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
824
852
  **/
825
853
  RecoveryRemoved: GenericPalletEvent<Rv, 'Recovery', 'RecoveryRemoved', { lostAccount: AccountId32 }>;
826
854
 
855
+ /**
856
+ * A deposit has been updated.
857
+ **/
858
+ DepositPoked: GenericPalletEvent<
859
+ Rv,
860
+ 'Recovery',
861
+ 'DepositPoked',
862
+ { who: AccountId32; kind: PalletRecoveryDepositKind; oldDeposit: bigint; newDeposit: bigint }
863
+ >;
864
+
827
865
  /**
828
866
  * Generic pallet event
829
867
  **/
@@ -833,6 +871,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
833
871
  * Pallet `Vesting`'s events
834
872
  **/
835
873
  vesting: {
874
+ /**
875
+ * A vesting schedule has been created.
876
+ **/
877
+ VestingCreated: GenericPalletEvent<
878
+ Rv,
879
+ 'Vesting',
880
+ 'VestingCreated',
881
+ { account: AccountId32; scheduleIndex: number }
882
+ >;
883
+
836
884
  /**
837
885
  * The amount vested has been updated. This could indicate a change in funds available.
838
886
  * The balance given is the amount which is left unvested (and thus locked).
@@ -1052,6 +1100,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
1052
1100
  { pure: AccountId32; who: AccountId32; proxyType: WestendRuntimeProxyType; disambiguationIndex: number }
1053
1101
  >;
1054
1102
 
1103
+ /**
1104
+ * A pure proxy was killed by its spawner.
1105
+ **/
1106
+ PureKilled: GenericPalletEvent<
1107
+ Rv,
1108
+ 'Proxy',
1109
+ 'PureKilled',
1110
+ { pure: AccountId32; spawner: AccountId32; proxyType: WestendRuntimeProxyType; disambiguationIndex: number }
1111
+ >;
1112
+
1055
1113
  /**
1056
1114
  * An announcement was placed to make a call in the future.
1057
1115
  **/
@@ -2210,6 +2268,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2210
2268
  [PolkadotParachainPrimitivesPrimitivesValidationCodeHash, PolkadotParachainPrimitivesPrimitivesId]
2211
2269
  >;
2212
2270
 
2271
+ /**
2272
+ * The upgrade cooldown was removed.
2273
+ **/
2274
+ UpgradeCooldownRemoved: GenericPalletEvent<
2275
+ Rv,
2276
+ 'Paras',
2277
+ 'UpgradeCooldownRemoved',
2278
+ {
2279
+ /**
2280
+ * The parachain for which the cooldown got removed.
2281
+ **/
2282
+ paraId: PolkadotParachainPrimitivesPrimitivesId;
2283
+ }
2284
+ >;
2285
+
2213
2286
  /**
2214
2287
  * Generic pallet event
2215
2288
  **/
@@ -2681,6 +2754,45 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
2681
2754
  **/
2682
2755
  [prop: string]: GenericPalletEvent<Rv>;
2683
2756
  };
2757
+ /**
2758
+ * Pallet `AssetHubStakingClient`'s events
2759
+ **/
2760
+ assetHubStakingClient: {
2761
+ /**
2762
+ * A new validator set has been received.
2763
+ **/
2764
+ ValidatorSetReceived: GenericPalletEvent<
2765
+ Rv,
2766
+ 'AssetHubStakingClient',
2767
+ 'ValidatorSetReceived',
2768
+ { id: number; newValidatorSetCount: number; pruneUpTo?: number | undefined; leftover: boolean }
2769
+ >;
2770
+
2771
+ /**
2772
+ * We could not merge, and therefore dropped a buffered message.
2773
+ *
2774
+ * Note that this event is more resembling an error, but we use an event because in this
2775
+ * pallet we need to mutate storage upon some failures.
2776
+ **/
2777
+ CouldNotMergeAndDropped: GenericPalletEvent<Rv, 'AssetHubStakingClient', 'CouldNotMergeAndDropped', null>;
2778
+
2779
+ /**
2780
+ * The validator set received is way too small, as per
2781
+ * [`Config::MinimumValidatorSetSize`].
2782
+ **/
2783
+ SetTooSmallAndDropped: GenericPalletEvent<Rv, 'AssetHubStakingClient', 'SetTooSmallAndDropped', null>;
2784
+
2785
+ /**
2786
+ * Something occurred that should never happen under normal operation. Logged as an event
2787
+ * for fail-safe observability.
2788
+ **/
2789
+ Unexpected: GenericPalletEvent<Rv, 'AssetHubStakingClient', 'Unexpected', PalletStakingAsyncAhClientUnexpectedKind>;
2790
+
2791
+ /**
2792
+ * Generic pallet event
2793
+ **/
2794
+ [prop: string]: GenericPalletEvent<Rv>;
2795
+ };
2684
2796
  /**
2685
2797
  * Pallet `MultiBlockMigrations`'s events
2686
2798
  **/
@@ -3360,6 +3472,54 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
3360
3472
  { who: AccountId32; identity: bigint; subs: bigint }
3361
3473
  >;
3362
3474
 
3475
+ /**
3476
+ * Generic pallet event
3477
+ **/
3478
+ [prop: string]: GenericPalletEvent<Rv>;
3479
+ };
3480
+ /**
3481
+ * Pallet `RcMigrator`'s events
3482
+ **/
3483
+ rcMigrator: {
3484
+ /**
3485
+ * A stage transition has occurred.
3486
+ **/
3487
+ StageTransition: GenericPalletEvent<
3488
+ Rv,
3489
+ 'RcMigrator',
3490
+ 'StageTransition',
3491
+ {
3492
+ /**
3493
+ * The old stage before the transition.
3494
+ **/
3495
+ old: PalletRcMigratorMigrationStage;
3496
+
3497
+ /**
3498
+ * The new stage after the transition.
3499
+ **/
3500
+ new: PalletRcMigratorMigrationStage;
3501
+ }
3502
+ >;
3503
+
3504
+ /**
3505
+ * The Asset Hub Migration started and is active until `AssetHubMigrationFinished` is
3506
+ * emitted.
3507
+ *
3508
+ * This event is equivalent to `StageTransition { new: Initializing, .. }` but is easier
3509
+ * to understand. The activation is immediate and affects all events happening
3510
+ * afterwards.
3511
+ **/
3512
+ AssetHubMigrationStarted: GenericPalletEvent<Rv, 'RcMigrator', 'AssetHubMigrationStarted', null>;
3513
+
3514
+ /**
3515
+ * The Asset Hub Migration finished.
3516
+ *
3517
+ * This event is equivalent to `StageTransition { new: MigrationDone, .. }` but is easier
3518
+ * to understand. The finishing is immediate and affects all events happening
3519
+ * afterwards.
3520
+ **/
3521
+ AssetHubMigrationFinished: GenericPalletEvent<Rv, 'RcMigrator', 'AssetHubMigrationFinished', null>;
3522
+
3363
3523
  /**
3364
3524
  * Generic pallet event
3365
3525
  **/
@@ -23,7 +23,7 @@ export interface VersionedWestendApi<Rv extends RpcVersion> extends GenericSubst
23
23
 
24
24
  /**
25
25
  * @name: WestendApi
26
- * @specVersion: 1018002
26
+ * @specVersion: 1018003
27
27
  **/
28
28
  export interface WestendApi {
29
29
  legacy: VersionedWestendApi<RpcLegacy>;
@@ -131,6 +131,9 @@ import type {
131
131
  PolkadotRuntimeCommonParasRegistrarParaInfo,
132
132
  PolkadotRuntimeCommonCrowdloanFundInfo,
133
133
  PolkadotRuntimeCommonAssignedSlotsParachainTemporarySlot,
134
+ PalletStakingAsyncRcClientValidatorSetReport,
135
+ PalletStakingAsyncAhClientOperatingMode,
136
+ PalletStakingAsyncRcClientOffence,
134
137
  PalletMigrationsMigrationCursor,
135
138
  PalletXcmQueryStatus,
136
139
  XcmVersionedLocation,
@@ -145,6 +148,9 @@ import type {
145
148
  PolkadotRuntimeCommonImplsVersionedLocatableAsset,
146
149
  SpConsensusBeefyEcdsaCryptoPublic,
147
150
  SpConsensusBeefyMmrBeefyAuthoritySet,
151
+ PalletRcMigratorMigrationStage,
152
+ PalletRcMigratorAccountsAccountState,
153
+ PalletRcMigratorAccountsMigratedBalances,
148
154
  } from './types.js';
149
155
 
150
156
  export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage<Rv> {
@@ -1852,6 +1858,16 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
1852
1858
  **/
1853
1859
  listBags: GenericStorageQuery<Rv, (arg: bigint) => PalletBagsListListBag | undefined, bigint>;
1854
1860
 
1861
+ /**
1862
+ * Lock all updates to this pallet.
1863
+ *
1864
+ * If any nodes needs updating, removal or addition due to a temporary lock, the
1865
+ * [`Call::rebag`] can be used.
1866
+ *
1867
+ * @param {Callback<[] | undefined> =} callback
1868
+ **/
1869
+ lock: GenericStorageQuery<Rv, () => [] | undefined>;
1870
+
1855
1871
  /**
1856
1872
  * Generic pallet storage query
1857
1873
  **/
@@ -3577,6 +3593,94 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3577
3593
  **/
3578
3594
  [storage: string]: GenericStorageQuery<Rv>;
3579
3595
  };
3596
+ /**
3597
+ * Pallet `AssetHubStakingClient`'s storage queries
3598
+ **/
3599
+ assetHubStakingClient: {
3600
+ /**
3601
+ * The queued validator sets for a given planning session index.
3602
+ *
3603
+ * This is received via a call from AssetHub.
3604
+ *
3605
+ * @param {Callback<[number, Array<AccountId32>] | undefined> =} callback
3606
+ **/
3607
+ validatorSet: GenericStorageQuery<Rv, () => [number, Array<AccountId32>] | undefined>;
3608
+
3609
+ /**
3610
+ * An incomplete validator set report.
3611
+ *
3612
+ * @param {Callback<PalletStakingAsyncRcClientValidatorSetReport | undefined> =} callback
3613
+ **/
3614
+ incompleteValidatorSetReport: GenericStorageQuery<
3615
+ Rv,
3616
+ () => PalletStakingAsyncRcClientValidatorSetReport | undefined
3617
+ >;
3618
+
3619
+ /**
3620
+ * All of the points of the validators.
3621
+ *
3622
+ * This is populated during a session, and is flushed and sent over via [`SendToAssetHub`]
3623
+ * at each session end.
3624
+ *
3625
+ * @param {AccountId32Like} arg
3626
+ * @param {Callback<number> =} callback
3627
+ **/
3628
+ validatorPoints: GenericStorageQuery<Rv, (arg: AccountId32Like) => number, AccountId32>;
3629
+
3630
+ /**
3631
+ * Indicates the current operating mode of the pallet.
3632
+ *
3633
+ * This value determines how the pallet behaves in response to incoming and outgoing messages,
3634
+ * particularly whether it should execute logic directly, defer it, or delegate it entirely.
3635
+ *
3636
+ * @param {Callback<PalletStakingAsyncAhClientOperatingMode> =} callback
3637
+ **/
3638
+ mode: GenericStorageQuery<Rv, () => PalletStakingAsyncAhClientOperatingMode>;
3639
+
3640
+ /**
3641
+ * A storage value that is set when a `new_session` gives a new validator set to the session
3642
+ * pallet, and is cleared on the next call.
3643
+ *
3644
+ * The inner u32 is the id of the said activated validator set. While not relevant here, good
3645
+ * to know this is the planning era index of staking-async on AH.
3646
+ *
3647
+ * Once cleared, we know a validator set has been activated, and therefore we can send a
3648
+ * timestamp to AH.
3649
+ *
3650
+ * @param {Callback<number | undefined> =} callback
3651
+ **/
3652
+ nextSessionChangesValidators: GenericStorageQuery<Rv, () => number | undefined>;
3653
+
3654
+ /**
3655
+ * The session index at which the latest elected validator set was applied.
3656
+ *
3657
+ * This is used to determine if an offence, given a session index, is in the current active era
3658
+ * or not.
3659
+ *
3660
+ * @param {Callback<number | undefined> =} callback
3661
+ **/
3662
+ validatorSetAppliedAt: GenericStorageQuery<Rv, () => number | undefined>;
3663
+
3664
+ /**
3665
+ * Stores offences that have been received while the pallet is in [`OperatingMode::Buffered`]
3666
+ * mode.
3667
+ *
3668
+ * These offences are collected and buffered for later processing when the pallet transitions
3669
+ * to [`OperatingMode::Active`]. This allows the system to defer slashing or reporting logic
3670
+ * until communication with the counterpart pallet on AssetHub is fully established.
3671
+ *
3672
+ * This storage is only used in `Buffered` mode; in `Active` mode, offences are immediately
3673
+ * sent, and in `Passive` mode, they are delegated to the [`Config::Fallback`] implementation.
3674
+ *
3675
+ * @param {Callback<Array<[number, Array<PalletStakingAsyncRcClientOffence>]>> =} callback
3676
+ **/
3677
+ bufferedOffences: GenericStorageQuery<Rv, () => Array<[number, Array<PalletStakingAsyncRcClientOffence>]>>;
3678
+
3679
+ /**
3680
+ * Generic pallet storage query
3681
+ **/
3682
+ [storage: string]: GenericStorageQuery<Rv>;
3683
+ };
3580
3684
  /**
3581
3685
  * Pallet `MultiBlockMigrations`'s storage queries
3582
3686
  **/
@@ -3945,6 +4049,53 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3945
4049
  **/
3946
4050
  beefyNextAuthorities: GenericStorageQuery<Rv, () => SpConsensusBeefyMmrBeefyAuthoritySet>;
3947
4051
 
4052
+ /**
4053
+ * Generic pallet storage query
4054
+ **/
4055
+ [storage: string]: GenericStorageQuery<Rv>;
4056
+ };
4057
+ /**
4058
+ * Pallet `RcMigrator`'s storage queries
4059
+ **/
4060
+ rcMigrator: {
4061
+ /**
4062
+ * The Relay Chain migration state.
4063
+ *
4064
+ * @param {Callback<PalletRcMigratorMigrationStage> =} callback
4065
+ **/
4066
+ rcMigrationStage: GenericStorageQuery<Rv, () => PalletRcMigratorMigrationStage>;
4067
+
4068
+ /**
4069
+ * Helper storage item to obtain and store the known accounts that should be kept partially or
4070
+ * fully on Relay Chain.
4071
+ *
4072
+ * @param {AccountId32Like} arg
4073
+ * @param {Callback<PalletRcMigratorAccountsAccountState | undefined> =} callback
4074
+ **/
4075
+ rcAccounts: GenericStorageQuery<
4076
+ Rv,
4077
+ (arg: AccountId32Like) => PalletRcMigratorAccountsAccountState | undefined,
4078
+ AccountId32
4079
+ >;
4080
+
4081
+ /**
4082
+ * Helper storage item to store the total balance that should be kept on Relay Chain.
4083
+ *
4084
+ * @param {Callback<PalletRcMigratorAccountsMigratedBalances> =} callback
4085
+ **/
4086
+ rcMigratedBalance: GenericStorageQuery<Rv, () => PalletRcMigratorAccountsMigratedBalances>;
4087
+
4088
+ /**
4089
+ * The total number of XCM data messages sent to the Asset Hub and the number of XCM messages
4090
+ * the Asset Hub has confirmed as processed.
4091
+ *
4092
+ * The difference between these two numbers are the messages that are "in-flight". We aim to
4093
+ * keep this number low to not accidentally overload the asset hub.
4094
+ *
4095
+ * @param {Callback<[number, number]> =} callback
4096
+ **/
4097
+ dmpDataMessageCounts: GenericStorageQuery<Rv, () => [number, number]>;
4098
+
3948
4099
  /**
3949
4100
  * Generic pallet storage query
3950
4101
  **/