@dedot/chaintypes 0.56.0 → 0.58.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/kusama/query.d.ts CHANGED
@@ -103,23 +103,25 @@ import type {
103
103
  PalletNominationPoolsSubPools,
104
104
  PalletNominationPoolsClaimPermission,
105
105
  PalletFastUnstakeUnstakeRequest,
106
+ PalletDelegatedStakingDelegation,
107
+ PalletDelegatedStakingAgentLedger,
106
108
  PolkadotRuntimeParachainsConfigurationHostConfiguration,
107
- PolkadotPrimitivesV7ValidatorIndex,
108
- PolkadotPrimitivesV7ValidatorAppPublic,
109
+ PolkadotPrimitivesV8ValidatorIndex,
110
+ PolkadotPrimitivesV8ValidatorAppPublic,
109
111
  PolkadotRuntimeParachainsSharedAllowedRelayParentsTracker,
110
112
  PolkadotRuntimeParachainsInclusionCandidatePendingAvailability,
111
113
  PolkadotParachainPrimitivesPrimitivesId,
112
- PolkadotPrimitivesV7ScrapedOnChainVotes,
114
+ PolkadotPrimitivesV8ScrapedOnChainVotes,
113
115
  PolkadotRuntimeParachainsSchedulerPalletCoreOccupied,
114
- PolkadotPrimitivesV7CoreIndex,
116
+ PolkadotPrimitivesV8CoreIndex,
115
117
  PolkadotRuntimeParachainsSchedulerPalletParasEntry,
116
118
  PolkadotRuntimeParachainsParasPvfCheckActiveVoteState,
117
119
  PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
118
120
  PolkadotRuntimeParachainsParasParaLifecycle,
119
121
  PolkadotParachainPrimitivesPrimitivesHeadData,
120
122
  PolkadotRuntimeParachainsParasParaPastCodeMeta,
121
- PolkadotPrimitivesV7UpgradeGoAhead,
122
- PolkadotPrimitivesV7UpgradeRestriction,
123
+ PolkadotPrimitivesV8UpgradeGoAhead,
124
+ PolkadotPrimitivesV8UpgradeRestriction,
123
125
  PolkadotRuntimeParachainsParasParaGenesisArgs,
124
126
  PolkadotParachainPrimitivesPrimitivesValidationCode,
125
127
  PolkadotRuntimeParachainsInitializerBufferedSessionChange,
@@ -128,14 +130,14 @@ import type {
128
130
  PolkadotParachainPrimitivesPrimitivesHrmpChannelId,
129
131
  PolkadotRuntimeParachainsHrmpHrmpChannel,
130
132
  PolkadotCorePrimitivesInboundHrmpMessage,
131
- PolkadotPrimitivesV7AssignmentAppPublic,
132
- PolkadotPrimitivesV7SessionInfo,
133
- PolkadotPrimitivesV7ExecutorParams,
134
- PolkadotPrimitivesV7DisputeState,
133
+ PolkadotPrimitivesV8AssignmentAppPublic,
134
+ PolkadotPrimitivesV8SessionInfo,
135
+ PolkadotPrimitivesV8ExecutorParams,
136
+ PolkadotPrimitivesV8DisputeState,
135
137
  PolkadotCorePrimitivesCandidateHash,
136
- PolkadotPrimitivesV7SlashingPendingSlashes,
137
- PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount,
138
- PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType,
138
+ PolkadotPrimitivesV8SlashingPendingSlashes,
139
+ PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount,
140
+ PolkadotRuntimeParachainsOnDemandTypesQueueStatusType,
139
141
  BinaryHeapEnqueuedOrder,
140
142
  PolkadotRuntimeParachainsAssignerCoretimeSchedule,
141
143
  PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
@@ -2721,6 +2723,56 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2721
2723
  **/
2722
2724
  [storage: string]: GenericStorageQuery<Rv>;
2723
2725
  };
2726
+ /**
2727
+ * Pallet `DelegatedStaking`'s storage queries
2728
+ **/
2729
+ delegatedStaking: {
2730
+ /**
2731
+ * Map of Delegators to their `Delegation`.
2732
+ *
2733
+ * Implementation note: We are not using a double map with `delegator` and `agent` account
2734
+ * as keys since we want to restrict delegators to delegate only to one account at a time.
2735
+ *
2736
+ * @param {AccountId32Like} arg
2737
+ * @param {Callback<PalletDelegatedStakingDelegation | undefined> =} callback
2738
+ **/
2739
+ delegators: GenericStorageQuery<
2740
+ Rv,
2741
+ (arg: AccountId32Like) => PalletDelegatedStakingDelegation | undefined,
2742
+ AccountId32
2743
+ >;
2744
+
2745
+ /**
2746
+ * Counter for the related counted storage map
2747
+ *
2748
+ * @param {Callback<number> =} callback
2749
+ **/
2750
+ counterForDelegators: GenericStorageQuery<Rv, () => number>;
2751
+
2752
+ /**
2753
+ * Map of `Agent` to their `Ledger`.
2754
+ *
2755
+ * @param {AccountId32Like} arg
2756
+ * @param {Callback<PalletDelegatedStakingAgentLedger | undefined> =} callback
2757
+ **/
2758
+ agents: GenericStorageQuery<
2759
+ Rv,
2760
+ (arg: AccountId32Like) => PalletDelegatedStakingAgentLedger | undefined,
2761
+ AccountId32
2762
+ >;
2763
+
2764
+ /**
2765
+ * Counter for the related counted storage map
2766
+ *
2767
+ * @param {Callback<number> =} callback
2768
+ **/
2769
+ counterForAgents: GenericStorageQuery<Rv, () => number>;
2770
+
2771
+ /**
2772
+ * Generic pallet storage query
2773
+ **/
2774
+ [storage: string]: GenericStorageQuery<Rv>;
2775
+ };
2724
2776
  /**
2725
2777
  * Pallet `Configuration`'s storage queries
2726
2778
  **/
@@ -2776,17 +2828,17 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2776
2828
  * All the validators actively participating in parachain consensus.
2777
2829
  * Indices are into the broader validator set.
2778
2830
  *
2779
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex>> =} callback
2831
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex>> =} callback
2780
2832
  **/
2781
- activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorIndex>>;
2833
+ activeValidatorIndices: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorIndex>>;
2782
2834
 
2783
2835
  /**
2784
2836
  * The parachain attestation keys of the validators actively participating in parachain
2785
2837
  * consensus. This should be the same length as `ActiveValidatorIndices`.
2786
2838
  *
2787
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorAppPublic>> =} callback
2839
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorAppPublic>> =} callback
2788
2840
  **/
2789
- activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7ValidatorAppPublic>>;
2841
+ activeValidatorKeys: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8ValidatorAppPublic>>;
2790
2842
 
2791
2843
  /**
2792
2844
  * All allowed relay-parents.
@@ -2846,9 +2898,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2846
2898
  /**
2847
2899
  * Scraped on chain data for extracting resolved disputes as well as backing votes.
2848
2900
  *
2849
- * @param {Callback<PolkadotPrimitivesV7ScrapedOnChainVotes | undefined> =} callback
2901
+ * @param {Callback<PolkadotPrimitivesV8ScrapedOnChainVotes | undefined> =} callback
2850
2902
  **/
2851
- onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV7ScrapedOnChainVotes | undefined>;
2903
+ onChainVotes: GenericStorageQuery<Rv, () => PolkadotPrimitivesV8ScrapedOnChainVotes | undefined>;
2852
2904
 
2853
2905
  /**
2854
2906
  * Generic pallet storage query
@@ -2868,9 +2920,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2868
2920
  * multiplexers. Reasonably, 100-1000. The dominant factor is the number of validators: safe
2869
2921
  * upper bound at 10k.
2870
2922
  *
2871
- * @param {Callback<Array<Array<PolkadotPrimitivesV7ValidatorIndex>>> =} callback
2923
+ * @param {Callback<Array<Array<PolkadotPrimitivesV8ValidatorIndex>>> =} callback
2872
2924
  **/
2873
- validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV7ValidatorIndex>>>;
2925
+ validatorGroups: GenericStorageQuery<Rv, () => Array<Array<PolkadotPrimitivesV8ValidatorIndex>>>;
2874
2926
 
2875
2927
  /**
2876
2928
  * One entry for each availability core. The i'th parachain belongs to the i'th core, with the
@@ -2902,11 +2954,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
2902
2954
  * scheduled on that core. The value contained here will not be valid after the end of
2903
2955
  * a block. Runtime APIs should be used to determine scheduled cores for the upcoming block.
2904
2956
  *
2905
- * @param {Callback<Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2957
+ * @param {Callback<Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>> =} callback
2906
2958
  **/
2907
2959
  claimQueue: GenericStorageQuery<
2908
2960
  Rv,
2909
- () => Array<[PolkadotPrimitivesV7CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2961
+ () => Array<[PolkadotPrimitivesV8CoreIndex, Array<PolkadotRuntimeParachainsSchedulerPalletParasEntry>]>
2910
2962
  >;
2911
2963
 
2912
2964
  /**
@@ -3105,11 +3157,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3105
3157
  * the format will require migration of parachains.
3106
3158
  *
3107
3159
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3108
- * @param {Callback<PolkadotPrimitivesV7UpgradeGoAhead | undefined> =} callback
3160
+ * @param {Callback<PolkadotPrimitivesV8UpgradeGoAhead | undefined> =} callback
3109
3161
  **/
3110
3162
  upgradeGoAheadSignal: GenericStorageQuery<
3111
3163
  Rv,
3112
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeGoAhead | undefined,
3164
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeGoAhead | undefined,
3113
3165
  PolkadotParachainPrimitivesPrimitivesId
3114
3166
  >;
3115
3167
 
@@ -3125,11 +3177,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3125
3177
  * the format will require migration of parachains.
3126
3178
  *
3127
3179
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3128
- * @param {Callback<PolkadotPrimitivesV7UpgradeRestriction | undefined> =} callback
3180
+ * @param {Callback<PolkadotPrimitivesV8UpgradeRestriction | undefined> =} callback
3129
3181
  **/
3130
3182
  upgradeRestrictionSignal: GenericStorageQuery<
3131
3183
  Rv,
3132
- (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV7UpgradeRestriction | undefined,
3184
+ (arg: PolkadotParachainPrimitivesPrimitivesId) => PolkadotPrimitivesV8UpgradeRestriction | undefined,
3133
3185
  PolkadotParachainPrimitivesPrimitivesId
3134
3186
  >;
3135
3187
 
@@ -3496,9 +3548,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3496
3548
  * Note that this API is private due to it being prone to 'off-by-one' at session boundaries.
3497
3549
  * When in doubt, use `Sessions` API instead.
3498
3550
  *
3499
- * @param {Callback<Array<PolkadotPrimitivesV7AssignmentAppPublic>> =} callback
3551
+ * @param {Callback<Array<PolkadotPrimitivesV8AssignmentAppPublic>> =} callback
3500
3552
  **/
3501
- assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV7AssignmentAppPublic>>;
3553
+ assignmentKeysUnsafe: GenericStorageQuery<Rv, () => Array<PolkadotPrimitivesV8AssignmentAppPublic>>;
3502
3554
 
3503
3555
  /**
3504
3556
  * The earliest session for which previous session info is stored.
@@ -3513,9 +3565,9 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3513
3565
  * Does not have any entries before the session index in the first session change notification.
3514
3566
  *
3515
3567
  * @param {number} arg
3516
- * @param {Callback<PolkadotPrimitivesV7SessionInfo | undefined> =} callback
3568
+ * @param {Callback<PolkadotPrimitivesV8SessionInfo | undefined> =} callback
3517
3569
  **/
3518
- sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV7SessionInfo | undefined, number>;
3570
+ sessions: GenericStorageQuery<Rv, (arg: number) => PolkadotPrimitivesV8SessionInfo | undefined, number>;
3519
3571
 
3520
3572
  /**
3521
3573
  * The validator account keys of the validators actively participating in parachain consensus.
@@ -3529,11 +3581,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3529
3581
  * Executor parameter set for a given session index
3530
3582
  *
3531
3583
  * @param {number} arg
3532
- * @param {Callback<PolkadotPrimitivesV7ExecutorParams | undefined> =} callback
3584
+ * @param {Callback<PolkadotPrimitivesV8ExecutorParams | undefined> =} callback
3533
3585
  **/
3534
3586
  sessionExecutorParams: GenericStorageQuery<
3535
3587
  Rv,
3536
- (arg: number) => PolkadotPrimitivesV7ExecutorParams | undefined,
3588
+ (arg: number) => PolkadotPrimitivesV8ExecutorParams | undefined,
3537
3589
  number
3538
3590
  >;
3539
3591
 
@@ -3558,11 +3610,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3558
3610
  * All ongoing or concluded disputes for the last several sessions.
3559
3611
  *
3560
3612
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3561
- * @param {Callback<PolkadotPrimitivesV7DisputeState | undefined> =} callback
3613
+ * @param {Callback<PolkadotPrimitivesV8DisputeState | undefined> =} callback
3562
3614
  **/
3563
3615
  disputes: GenericStorageQuery<
3564
3616
  Rv,
3565
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7DisputeState | undefined,
3617
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8DisputeState | undefined,
3566
3618
  [number, PolkadotCorePrimitivesCandidateHash]
3567
3619
  >;
3568
3620
 
@@ -3571,11 +3623,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3571
3623
  * This storage is used for slashing.
3572
3624
  *
3573
3625
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3574
- * @param {Callback<Array<PolkadotPrimitivesV7ValidatorIndex> | undefined> =} callback
3626
+ * @param {Callback<Array<PolkadotPrimitivesV8ValidatorIndex> | undefined> =} callback
3575
3627
  **/
3576
3628
  backersOnDisputes: GenericStorageQuery<
3577
3629
  Rv,
3578
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV7ValidatorIndex> | undefined,
3630
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => Array<PolkadotPrimitivesV8ValidatorIndex> | undefined,
3579
3631
  [number, PolkadotCorePrimitivesCandidateHash]
3580
3632
  >;
3581
3633
 
@@ -3615,11 +3667,11 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3615
3667
  * Validators pending dispute slashes.
3616
3668
  *
3617
3669
  * @param {[number, PolkadotCorePrimitivesCandidateHash]} arg
3618
- * @param {Callback<PolkadotPrimitivesV7SlashingPendingSlashes | undefined> =} callback
3670
+ * @param {Callback<PolkadotPrimitivesV8SlashingPendingSlashes | undefined> =} callback
3619
3671
  **/
3620
3672
  unappliedSlashes: GenericStorageQuery<
3621
3673
  Rv,
3622
- (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV7SlashingPendingSlashes | undefined,
3674
+ (arg: [number, PolkadotCorePrimitivesCandidateHash]) => PolkadotPrimitivesV8SlashingPendingSlashes | undefined,
3623
3675
  [number, PolkadotCorePrimitivesCandidateHash]
3624
3676
  >;
3625
3677
 
@@ -3646,22 +3698,22 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3646
3698
  * `ParaId` on two or more `CoreIndex`es.
3647
3699
  *
3648
3700
  * @param {PolkadotParachainPrimitivesPrimitivesId} arg
3649
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined> =} callback
3701
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined> =} callback
3650
3702
  **/
3651
3703
  paraIdAffinity: GenericStorageQuery<
3652
3704
  Rv,
3653
3705
  (
3654
3706
  arg: PolkadotParachainPrimitivesPrimitivesId,
3655
- ) => PolkadotRuntimeParachainsAssignerOnDemandTypesCoreAffinityCount | undefined,
3707
+ ) => PolkadotRuntimeParachainsOnDemandTypesCoreAffinityCount | undefined,
3656
3708
  PolkadotParachainPrimitivesPrimitivesId
3657
3709
  >;
3658
3710
 
3659
3711
  /**
3660
3712
  * Overall status of queue (both free + affinity entries)
3661
3713
  *
3662
- * @param {Callback<PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType> =} callback
3714
+ * @param {Callback<PolkadotRuntimeParachainsOnDemandTypesQueueStatusType> =} callback
3663
3715
  **/
3664
- queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsAssignerOnDemandTypesQueueStatusType>;
3716
+ queueStatus: GenericStorageQuery<Rv, () => PolkadotRuntimeParachainsOnDemandTypesQueueStatusType>;
3665
3717
 
3666
3718
  /**
3667
3719
  * Priority queue for all orders which don't yet (or not any more) have any core affinity.
@@ -3673,13 +3725,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3673
3725
  /**
3674
3726
  * Queue entries that are currently bound to a particular core due to core affinity.
3675
3727
  *
3676
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3728
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3677
3729
  * @param {Callback<BinaryHeapEnqueuedOrder> =} callback
3678
3730
  **/
3679
3731
  affinityEntries: GenericStorageQuery<
3680
3732
  Rv,
3681
- (arg: PolkadotPrimitivesV7CoreIndex) => BinaryHeapEnqueuedOrder,
3682
- PolkadotPrimitivesV7CoreIndex
3733
+ (arg: PolkadotPrimitivesV8CoreIndex) => BinaryHeapEnqueuedOrder,
3734
+ PolkadotPrimitivesV8CoreIndex
3683
3735
  >;
3684
3736
 
3685
3737
  /**
@@ -3704,13 +3756,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3704
3756
  * Assignments as of the given block number. They will go into state once the block number is
3705
3757
  * reached (and replace whatever was in there before).
3706
3758
  *
3707
- * @param {[number, PolkadotPrimitivesV7CoreIndex]} arg
3759
+ * @param {[number, PolkadotPrimitivesV8CoreIndex]} arg
3708
3760
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined> =} callback
3709
3761
  **/
3710
3762
  coreSchedules: GenericStorageQuery<
3711
3763
  Rv,
3712
- (arg: [number, PolkadotPrimitivesV7CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3713
- [number, PolkadotPrimitivesV7CoreIndex]
3764
+ (arg: [number, PolkadotPrimitivesV8CoreIndex]) => PolkadotRuntimeParachainsAssignerCoretimeSchedule | undefined,
3765
+ [number, PolkadotPrimitivesV8CoreIndex]
3714
3766
  >;
3715
3767
 
3716
3768
  /**
@@ -3719,13 +3771,13 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
3719
3771
  * They will be picked from `PendingAssignments` once we reach the scheduled block number in
3720
3772
  * `PendingAssignments`.
3721
3773
  *
3722
- * @param {PolkadotPrimitivesV7CoreIndex} arg
3774
+ * @param {PolkadotPrimitivesV8CoreIndex} arg
3723
3775
  * @param {Callback<PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor> =} callback
3724
3776
  **/
3725
3777
  coreDescriptors: GenericStorageQuery<
3726
3778
  Rv,
3727
- (arg: PolkadotPrimitivesV7CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3728
- PolkadotPrimitivesV7CoreIndex
3779
+ (arg: PolkadotPrimitivesV8CoreIndex) => PolkadotRuntimeParachainsAssignerCoretimeCoreDescriptor,
3780
+ PolkadotPrimitivesV8CoreIndex
3729
3781
  >;
3730
3782
 
3731
3783
  /**