@dedot/chaintypes 0.270.0 → 0.271.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.
@@ -1112,6 +1112,15 @@ export interface ChainConsts extends GenericChainConsts {
1112
1112
  **/
1113
1113
  [name: string]: any;
1114
1114
  };
1115
+ /**
1116
+ * Pallet `CollatorRotation`'s constants
1117
+ **/
1118
+ collatorRotation: {
1119
+ /**
1120
+ * Generic pallet constant
1121
+ **/
1122
+ [name: string]: any;
1123
+ };
1115
1124
  /**
1116
1125
  * Pallet `EmaOracle`'s constants
1117
1126
  **/
@@ -2993,6 +2993,21 @@ export interface ChainEvents extends GenericChainEvents {
2993
2993
  **/
2994
2994
  [prop: string]: GenericPalletEvent;
2995
2995
  };
2996
+ /**
2997
+ * Pallet `CollatorRotation`'s events
2998
+ **/
2999
+ collatorRotation: {
3000
+ CollatorBenched: GenericPalletEvent<
3001
+ 'CollatorRotation',
3002
+ 'CollatorBenched',
3003
+ { who: AccountId32; sessionIndex: number }
3004
+ >;
3005
+
3006
+ /**
3007
+ * Generic pallet event
3008
+ **/
3009
+ [prop: string]: GenericPalletEvent;
3010
+ };
2996
3011
  /**
2997
3012
  * Pallet `EmaOracle`'s events
2998
3013
  **/
@@ -44,7 +44,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
44
44
 
45
45
  /**
46
46
  * @name: BasiliskApi
47
- * @specVersion: 130
47
+ * @specVersion: 132
48
48
  **/
49
49
  export interface BasiliskApi extends GenericSubstrateApi {
50
50
  rpc: ChainJsonRpcApis;
@@ -8813,6 +8813,7 @@ export type BasiliskRuntimeRuntimeEvent =
8813
8813
  | { pallet: 'CollatorRewards'; palletEvent: PalletCollatorRewardsEvent }
8814
8814
  | { pallet: 'Broadcast'; palletEvent: PalletBroadcastEvent }
8815
8815
  | { pallet: 'MultiBlockMigrations'; palletEvent: PalletMigrationsEvent }
8816
+ | { pallet: 'CollatorRotation'; palletEvent: PalletCollatorRotationEvent }
8816
8817
  | { pallet: 'EmaOracle'; palletEvent: PalletEmaOracleEvent }
8817
8818
  | { pallet: 'Currencies'; palletEvent: PalletCurrenciesModuleEvent }
8818
8819
  | { pallet: 'Tokens'; palletEvent: OrmlTokensModuleEvent }
@@ -11122,6 +11123,11 @@ export type PalletMigrationsEvent =
11122
11123
  };
11123
11124
  };
11124
11125
 
11126
+ /**
11127
+ * The `Event` enum of this pallet
11128
+ **/
11129
+ export type PalletCollatorRotationEvent = { name: 'CollatorBenched'; data: { who: AccountId32; sessionIndex: number } };
11130
+
11125
11131
  /**
11126
11132
  * The `Event` enum of this pallet
11127
11133
  **/
@@ -51,7 +51,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
51
51
 
52
52
  /**
53
53
  * @name: MoonbeamApi
54
- * @specVersion: 4202
54
+ * @specVersion: 4203
55
55
  **/
56
56
  export interface MoonbeamApi extends GenericSubstrateApi {
57
57
  rpc: ChainJsonRpcApis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.270.0",
3
+ "version": "0.271.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": "2d8cb1fc8ef3fbe7a86461f6fc69dc4448d14b13",
28
+ "gitHead": "f052fc4bc609984d7ee7aa8b8316717c76414999",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
package/paseo/consts.d.ts CHANGED
@@ -1099,15 +1099,6 @@ export interface ChainConsts extends GenericChainConsts {
1099
1099
  **/
1100
1100
  [name: string]: any;
1101
1101
  };
1102
- /**
1103
- * Pallet `CoretimeAssignmentProvider`'s constants
1104
- **/
1105
- coretimeAssignmentProvider: {
1106
- /**
1107
- * Generic pallet constant
1108
- **/
1109
- [name: string]: any;
1110
- };
1111
1102
  /**
1112
1103
  * Pallet `Registrar`'s constants
1113
1104
  **/
package/paseo/errors.d.ts CHANGED
@@ -1588,9 +1588,14 @@ export interface ChainErrors extends GenericChainErrors {
1588
1588
  **/
1589
1589
  DisallowedRelayParent: GenericPalletError;
1590
1590
 
1591
+ /**
1592
+ * The candidate's scheduling-parent was not allowed.
1593
+ **/
1594
+ DisallowedSchedulingParent: GenericPalletError;
1595
+
1591
1596
  /**
1592
1597
  * Failed to compute group index for the core: either it's out of bounds
1593
- * or the relay parent doesn't belong to the current session.
1598
+ * or the scheduling parent doesn't belong to the current session.
1594
1599
  **/
1595
1600
  InvalidAssignment: GenericPalletError;
1596
1601
 
@@ -1681,6 +1686,25 @@ export interface ChainErrors extends GenericChainErrors {
1681
1686
  **/
1682
1687
  [error: string]: GenericPalletError;
1683
1688
  };
1689
+ /**
1690
+ * Pallet `ParaScheduler`'s errors
1691
+ **/
1692
+ paraScheduler: {
1693
+ /**
1694
+ * assign_core was called with no assignments.
1695
+ **/
1696
+ AssignmentsEmpty: GenericPalletError;
1697
+
1698
+ /**
1699
+ * assign_core with non allowed insertion.
1700
+ **/
1701
+ DisallowedInsert: GenericPalletError;
1702
+
1703
+ /**
1704
+ * Generic pallet error
1705
+ **/
1706
+ [error: string]: GenericPalletError;
1707
+ };
1684
1708
  /**
1685
1709
  * Pallet `Paras`'s errors
1686
1710
  **/
@@ -1998,23 +2022,6 @@ export interface ChainErrors extends GenericChainErrors {
1998
2022
  **/
1999
2023
  [error: string]: GenericPalletError;
2000
2024
  };
2001
- /**
2002
- * Pallet `CoretimeAssignmentProvider`'s errors
2003
- **/
2004
- coretimeAssignmentProvider: {
2005
- AssignmentsEmpty: GenericPalletError;
2006
-
2007
- /**
2008
- * assign_core is only allowed to append new assignments at the end of already existing
2009
- * ones or update the last entry.
2010
- **/
2011
- DisallowedInsert: GenericPalletError;
2012
-
2013
- /**
2014
- * Generic pallet error
2015
- **/
2016
- [error: string]: GenericPalletError;
2017
- };
2018
2025
  /**
2019
2026
  * Pallet `Registrar`'s errors
2020
2027
  **/
@@ -2720,96 +2727,6 @@ export interface ChainErrors extends GenericChainErrors {
2720
2727
  * Pallet `RcMigrator`'s errors
2721
2728
  **/
2722
2729
  rcMigrator: {
2723
- Unreachable: GenericPalletError;
2724
- OutOfWeight: GenericPalletError;
2725
-
2726
- /**
2727
- * Failed to send XCM message to AH.
2728
- **/
2729
- XcmError: GenericPalletError;
2730
-
2731
- /**
2732
- * Failed to withdraw account from RC for migration to AH.
2733
- **/
2734
- FailedToWithdrawAccount: GenericPalletError;
2735
-
2736
- /**
2737
- * Indicates that the specified block number is in the past.
2738
- **/
2739
- PastBlockNumber: GenericPalletError;
2740
-
2741
- /**
2742
- * Indicates that there is not enough time for staking to lock.
2743
- *
2744
- * Schedule the migration at least two sessions before the current era ends.
2745
- **/
2746
- EraEndsTooSoon: GenericPalletError;
2747
-
2748
- /**
2749
- * Balance accounting overflow.
2750
- **/
2751
- BalanceOverflow: GenericPalletError;
2752
-
2753
- /**
2754
- * Balance accounting underflow.
2755
- **/
2756
- BalanceUnderflow: GenericPalletError;
2757
-
2758
- /**
2759
- * The query response is invalid.
2760
- **/
2761
- InvalidQueryResponse: GenericPalletError;
2762
-
2763
- /**
2764
- * The xcm query was not found.
2765
- **/
2766
- QueryNotFound: GenericPalletError;
2767
-
2768
- /**
2769
- * Failed to send XCM message.
2770
- **/
2771
- XcmSendError: GenericPalletError;
2772
-
2773
- /**
2774
- * The migration stage is not reachable from the current stage.
2775
- **/
2776
- UnreachableStage: GenericPalletError;
2777
-
2778
- /**
2779
- * Invalid parameter.
2780
- **/
2781
- InvalidParameter: GenericPalletError;
2782
-
2783
- /**
2784
- * The AH UMP queue priority configuration is already set.
2785
- **/
2786
- AhUmpQueuePriorityAlreadySet: GenericPalletError;
2787
-
2788
- /**
2789
- * The account is referenced by some other pallet. It might have freezes or holds.
2790
- **/
2791
- AccountReferenced: GenericPalletError;
2792
-
2793
- /**
2794
- * The XCM version is invalid.
2795
- **/
2796
- BadXcmVersion: GenericPalletError;
2797
-
2798
- /**
2799
- * The origin is invalid.
2800
- **/
2801
- InvalidOrigin: GenericPalletError;
2802
-
2803
- /**
2804
- * The stage transition is invalid.
2805
- **/
2806
- InvalidStageTransition: GenericPalletError;
2807
-
2808
- /**
2809
- * Unsigned validation failed.
2810
- **/
2811
- UnsignedValidationFailed: GenericPalletError;
2812
-
2813
2730
  /**
2814
2731
  * Generic pallet error
2815
2732
  **/
package/paseo/events.d.ts CHANGED
@@ -63,10 +63,6 @@ import type {
63
63
  StagingXcmV5AssetAssets,
64
64
  PolkadotRuntimeParachainsInclusionAggregateMessageOrigin,
65
65
  FrameSupportMessagesProcessMessageError,
66
- PalletRcMigratorMigrationStage,
67
- XcmV3MaybeErrorCode,
68
- PalletRcMigratorQueuePriority,
69
- PalletRcMigratorMigrationSettings,
70
66
  } from './types.js';
71
67
 
72
68
  export interface ChainEvents extends GenericChainEvents {
@@ -3041,310 +3037,6 @@ export interface ChainEvents extends GenericChainEvents {
3041
3037
  }
3042
3038
  >;
3043
3039
 
3044
- /**
3045
- * Generic pallet event
3046
- **/
3047
- [prop: string]: GenericPalletEvent;
3048
- };
3049
- /**
3050
- * Pallet `RcMigrator`'s events
3051
- **/
3052
- rcMigrator: {
3053
- /**
3054
- * A stage transition has occurred.
3055
- **/
3056
- StageTransition: GenericPalletEvent<
3057
- 'RcMigrator',
3058
- 'StageTransition',
3059
- {
3060
- /**
3061
- * The old stage before the transition.
3062
- **/
3063
- old: PalletRcMigratorMigrationStage;
3064
-
3065
- /**
3066
- * The new stage after the transition.
3067
- **/
3068
- new: PalletRcMigratorMigrationStage;
3069
- }
3070
- >;
3071
-
3072
- /**
3073
- * The Asset Hub Migration started and is active until `AssetHubMigrationFinished` is
3074
- * emitted.
3075
- *
3076
- * This event is equivalent to `StageTransition { new: Initializing, .. }` but is easier
3077
- * to understand. The activation is immediate and affects all events happening
3078
- * afterwards.
3079
- **/
3080
- AssetHubMigrationStarted: GenericPalletEvent<'RcMigrator', 'AssetHubMigrationStarted', null>;
3081
-
3082
- /**
3083
- * The Asset Hub Migration finished.
3084
- *
3085
- * This event is equivalent to `StageTransition { new: MigrationDone, .. }` but is easier
3086
- * to understand. The finishing is immediate and affects all events happening
3087
- * afterwards.
3088
- **/
3089
- AssetHubMigrationFinished: GenericPalletEvent<'RcMigrator', 'AssetHubMigrationFinished', null>;
3090
-
3091
- /**
3092
- * A query response has been received.
3093
- **/
3094
- QueryResponseReceived: GenericPalletEvent<
3095
- 'RcMigrator',
3096
- 'QueryResponseReceived',
3097
- {
3098
- /**
3099
- * The query ID.
3100
- **/
3101
- queryId: bigint;
3102
-
3103
- /**
3104
- * The response.
3105
- **/
3106
- response: XcmV3MaybeErrorCode;
3107
- }
3108
- >;
3109
-
3110
- /**
3111
- * A XCM message has been resent.
3112
- **/
3113
- XcmResendAttempt: GenericPalletEvent<
3114
- 'RcMigrator',
3115
- 'XcmResendAttempt',
3116
- {
3117
- /**
3118
- * The query ID.
3119
- **/
3120
- queryId: bigint;
3121
-
3122
- /**
3123
- * The error message.
3124
- **/
3125
- sendError?: XcmV3TraitsSendError | undefined;
3126
- }
3127
- >;
3128
-
3129
- /**
3130
- * The unprocessed message buffer size has been set.
3131
- **/
3132
- UnprocessedMsgBufferSet: GenericPalletEvent<
3133
- 'RcMigrator',
3134
- 'UnprocessedMsgBufferSet',
3135
- {
3136
- /**
3137
- * The new size.
3138
- **/
3139
- new: number;
3140
-
3141
- /**
3142
- * The old size.
3143
- **/
3144
- old: number;
3145
- }
3146
- >;
3147
-
3148
- /**
3149
- * Whether the AH UMP queue was prioritized for the next block.
3150
- **/
3151
- AhUmpQueuePrioritySet: GenericPalletEvent<
3152
- 'RcMigrator',
3153
- 'AhUmpQueuePrioritySet',
3154
- {
3155
- /**
3156
- * Indicates if AH UMP queue was successfully set as priority.
3157
- * If `false`, it means we're in the round-robin phase of our priority pattern
3158
- * (see [`Config::AhUmpQueuePriorityPattern`]), where no queue gets priority.
3159
- **/
3160
- prioritized: boolean;
3161
-
3162
- /**
3163
- * Current block number within the pattern cycle (1 to period).
3164
- **/
3165
- cycleBlock: number;
3166
-
3167
- /**
3168
- * Total number of blocks in the pattern cycle
3169
- **/
3170
- cyclePeriod: number;
3171
- }
3172
- >;
3173
-
3174
- /**
3175
- * The AH UMP queue priority config was set.
3176
- **/
3177
- AhUmpQueuePriorityConfigSet: GenericPalletEvent<
3178
- 'RcMigrator',
3179
- 'AhUmpQueuePriorityConfigSet',
3180
- {
3181
- /**
3182
- * The old priority pattern.
3183
- **/
3184
- old: PalletRcMigratorQueuePriority;
3185
-
3186
- /**
3187
- * The new priority pattern.
3188
- **/
3189
- new: PalletRcMigratorQueuePriority;
3190
- }
3191
- >;
3192
-
3193
- /**
3194
- * The total issuance was recorded.
3195
- **/
3196
- MigratedBalanceRecordSet: GenericPalletEvent<
3197
- 'RcMigrator',
3198
- 'MigratedBalanceRecordSet',
3199
- { kept: bigint; migrated: bigint }
3200
- >;
3201
-
3202
- /**
3203
- * The RC kept balance was consumed.
3204
- **/
3205
- MigratedBalanceConsumed: GenericPalletEvent<
3206
- 'RcMigrator',
3207
- 'MigratedBalanceConsumed',
3208
- { kept: bigint; migrated: bigint }
3209
- >;
3210
-
3211
- /**
3212
- * The manager account id was set.
3213
- **/
3214
- ManagerSet: GenericPalletEvent<
3215
- 'RcMigrator',
3216
- 'ManagerSet',
3217
- {
3218
- /**
3219
- * The old manager account id.
3220
- **/
3221
- old?: AccountId32 | undefined;
3222
-
3223
- /**
3224
- * The new manager account id.
3225
- **/
3226
- new?: AccountId32 | undefined;
3227
- }
3228
- >;
3229
-
3230
- /**
3231
- * An XCM message was sent.
3232
- **/
3233
- XcmSent: GenericPalletEvent<
3234
- 'RcMigrator',
3235
- 'XcmSent',
3236
- {
3237
- origin: StagingXcmV5Location;
3238
- destination: StagingXcmV5Location;
3239
- message: StagingXcmV5Xcm;
3240
- messageId: FixedBytes<32>;
3241
- }
3242
- >;
3243
-
3244
- /**
3245
- * The staking elections were paused.
3246
- **/
3247
- StakingElectionsPaused: GenericPalletEvent<'RcMigrator', 'StakingElectionsPaused', null>;
3248
-
3249
- /**
3250
- * The accounts to be preserved on Relay Chain were set.
3251
- **/
3252
- AccountsPreserved: GenericPalletEvent<
3253
- 'RcMigrator',
3254
- 'AccountsPreserved',
3255
- {
3256
- /**
3257
- * The accounts that will be preserved.
3258
- **/
3259
- accounts: Array<AccountId32>;
3260
- }
3261
- >;
3262
-
3263
- /**
3264
- * The canceller account id was set.
3265
- **/
3266
- CancellerSet: GenericPalletEvent<
3267
- 'RcMigrator',
3268
- 'CancellerSet',
3269
- {
3270
- /**
3271
- * The old canceller account id.
3272
- **/
3273
- old?: AccountId32 | undefined;
3274
-
3275
- /**
3276
- * The new canceller account id.
3277
- **/
3278
- new?: AccountId32 | undefined;
3279
- }
3280
- >;
3281
-
3282
- /**
3283
- * The migration was paused.
3284
- **/
3285
- MigrationPaused: GenericPalletEvent<
3286
- 'RcMigrator',
3287
- 'MigrationPaused',
3288
- {
3289
- /**
3290
- * The stage at which the migration was paused.
3291
- **/
3292
- pauseStage: PalletRcMigratorMigrationStage;
3293
- }
3294
- >;
3295
-
3296
- /**
3297
- * The migration was cancelled.
3298
- **/
3299
- MigrationCancelled: GenericPalletEvent<'RcMigrator', 'MigrationCancelled', null>;
3300
-
3301
- /**
3302
- * Some pure accounts were indexed for possibly receiving free `Any` proxies.
3303
- **/
3304
- PureAccountsIndexed: GenericPalletEvent<
3305
- 'RcMigrator',
3306
- 'PureAccountsIndexed',
3307
- {
3308
- /**
3309
- * The number of indexed pure accounts.
3310
- **/
3311
- numPureAccounts: number;
3312
- }
3313
- >;
3314
-
3315
- /**
3316
- * The manager multisig dispatched something.
3317
- **/
3318
- ManagerMultisigDispatched: GenericPalletEvent<
3319
- 'RcMigrator',
3320
- 'ManagerMultisigDispatched',
3321
- { res: Result<[], DispatchError> }
3322
- >;
3323
-
3324
- /**
3325
- * The manager multisig received a vote.
3326
- **/
3327
- ManagerMultisigVoted: GenericPalletEvent<'RcMigrator', 'ManagerMultisigVoted', { votes: number }>;
3328
-
3329
- /**
3330
- * The migration settings were set.
3331
- **/
3332
- MigrationSettingsSet: GenericPalletEvent<
3333
- 'RcMigrator',
3334
- 'MigrationSettingsSet',
3335
- {
3336
- /**
3337
- * The old migration settings.
3338
- **/
3339
- old?: PalletRcMigratorMigrationSettings | undefined;
3340
-
3341
- /**
3342
- * The new migration settings.
3343
- **/
3344
- new?: PalletRcMigratorMigrationSettings | undefined;
3345
- }
3346
- >;
3347
-
3348
3040
  /**
3349
3041
  * Generic pallet event
3350
3042
  **/
package/paseo/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import type {
6
6
  FrameSystemEventRecord,
7
7
  PaseoRuntimeRuntimeCall,
8
8
  SpRuntimeMultiSignature,
9
+ FrameSystemExtensionsAuthorizeCall,
9
10
  FrameSystemExtensionsCheckNonZeroSender,
10
11
  FrameSystemExtensionsCheckSpecVersion,
11
12
  FrameSystemExtensionsCheckTxVersion,
@@ -33,6 +34,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
33
34
  Signature: SpRuntimeMultiSignature;
34
35
  RuntimeCall: PaseoRuntimeRuntimeCall;
35
36
  Extra: [
37
+ FrameSystemExtensionsAuthorizeCall,
36
38
  FrameSystemExtensionsCheckNonZeroSender,
37
39
  FrameSystemExtensionsCheckSpecVersion,
38
40
  FrameSystemExtensionsCheckTxVersion,
@@ -50,7 +52,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
50
52
 
51
53
  /**
52
54
  * @name: PaseoApi
53
- * @specVersion: 2001001
55
+ * @specVersion: 2002002
54
56
  **/
55
57
  export interface PaseoApi extends GenericSubstrateApi {
56
58
  rpc: ChainJsonRpcApis;