@dedot/chaintypes 0.266.0 → 0.267.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.266.0",
3
+ "version": "0.267.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": "9953c8099ce53f3ef17ea820e52768cf461b5245",
28
+ "gitHead": "9ccea0306ae5ec4941a330e7acf03620f60baa98",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -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
  **/
@@ -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
  **/
@@ -2646,96 +2653,6 @@ export interface ChainErrors extends GenericChainErrors {
2646
2653
  * Pallet `RcMigrator`'s errors
2647
2654
  **/
2648
2655
  rcMigrator: {
2649
- Unreachable: GenericPalletError;
2650
- OutOfWeight: GenericPalletError;
2651
-
2652
- /**
2653
- * Failed to send XCM message to AH.
2654
- **/
2655
- XcmError: GenericPalletError;
2656
-
2657
- /**
2658
- * Failed to withdraw account from RC for migration to AH.
2659
- **/
2660
- FailedToWithdrawAccount: GenericPalletError;
2661
-
2662
- /**
2663
- * Indicates that the specified block number is in the past.
2664
- **/
2665
- PastBlockNumber: GenericPalletError;
2666
-
2667
- /**
2668
- * Indicates that there is not enough time for staking to lock.
2669
- *
2670
- * Schedule the migration at least two sessions before the current era ends.
2671
- **/
2672
- EraEndsTooSoon: GenericPalletError;
2673
-
2674
- /**
2675
- * Balance accounting overflow.
2676
- **/
2677
- BalanceOverflow: GenericPalletError;
2678
-
2679
- /**
2680
- * Balance accounting underflow.
2681
- **/
2682
- BalanceUnderflow: GenericPalletError;
2683
-
2684
- /**
2685
- * The query response is invalid.
2686
- **/
2687
- InvalidQueryResponse: GenericPalletError;
2688
-
2689
- /**
2690
- * The xcm query was not found.
2691
- **/
2692
- QueryNotFound: GenericPalletError;
2693
-
2694
- /**
2695
- * Failed to send XCM message.
2696
- **/
2697
- XcmSendError: GenericPalletError;
2698
-
2699
- /**
2700
- * The migration stage is not reachable from the current stage.
2701
- **/
2702
- UnreachableStage: GenericPalletError;
2703
-
2704
- /**
2705
- * Invalid parameter.
2706
- **/
2707
- InvalidParameter: GenericPalletError;
2708
-
2709
- /**
2710
- * The AH UMP queue priority configuration is already set.
2711
- **/
2712
- AhUmpQueuePriorityAlreadySet: GenericPalletError;
2713
-
2714
- /**
2715
- * The account is referenced by some other pallet. It might have freezes or holds.
2716
- **/
2717
- AccountReferenced: GenericPalletError;
2718
-
2719
- /**
2720
- * The XCM version is invalid.
2721
- **/
2722
- BadXcmVersion: GenericPalletError;
2723
-
2724
- /**
2725
- * The origin is invalid.
2726
- **/
2727
- InvalidOrigin: GenericPalletError;
2728
-
2729
- /**
2730
- * The stage transition is invalid.
2731
- **/
2732
- InvalidStageTransition: GenericPalletError;
2733
-
2734
- /**
2735
- * Unsigned validation failed.
2736
- **/
2737
- UnsignedValidationFailed: GenericPalletError;
2738
-
2739
2656
  /**
2740
2657
  * Generic pallet error
2741
2658
  **/
@@ -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 {
@@ -2990,310 +2986,6 @@ export interface ChainEvents extends GenericChainEvents {
2990
2986
  { assetKind: PolkadotRuntimeCommonImplsVersionedLocatableAsset; old: FixedU128; new: FixedU128 }
2991
2987
  >;
2992
2988
 
2993
- /**
2994
- * Generic pallet event
2995
- **/
2996
- [prop: string]: GenericPalletEvent;
2997
- };
2998
- /**
2999
- * Pallet `RcMigrator`'s events
3000
- **/
3001
- rcMigrator: {
3002
- /**
3003
- * A stage transition has occurred.
3004
- **/
3005
- StageTransition: GenericPalletEvent<
3006
- 'RcMigrator',
3007
- 'StageTransition',
3008
- {
3009
- /**
3010
- * The old stage before the transition.
3011
- **/
3012
- old: PalletRcMigratorMigrationStage;
3013
-
3014
- /**
3015
- * The new stage after the transition.
3016
- **/
3017
- new: PalletRcMigratorMigrationStage;
3018
- }
3019
- >;
3020
-
3021
- /**
3022
- * The Asset Hub Migration started and is active until `AssetHubMigrationFinished` is
3023
- * emitted.
3024
- *
3025
- * This event is equivalent to `StageTransition { new: Initializing, .. }` but is easier
3026
- * to understand. The activation is immediate and affects all events happening
3027
- * afterwards.
3028
- **/
3029
- AssetHubMigrationStarted: GenericPalletEvent<'RcMigrator', 'AssetHubMigrationStarted', null>;
3030
-
3031
- /**
3032
- * The Asset Hub Migration finished.
3033
- *
3034
- * This event is equivalent to `StageTransition { new: MigrationDone, .. }` but is easier
3035
- * to understand. The finishing is immediate and affects all events happening
3036
- * afterwards.
3037
- **/
3038
- AssetHubMigrationFinished: GenericPalletEvent<'RcMigrator', 'AssetHubMigrationFinished', null>;
3039
-
3040
- /**
3041
- * A query response has been received.
3042
- **/
3043
- QueryResponseReceived: GenericPalletEvent<
3044
- 'RcMigrator',
3045
- 'QueryResponseReceived',
3046
- {
3047
- /**
3048
- * The query ID.
3049
- **/
3050
- queryId: bigint;
3051
-
3052
- /**
3053
- * The response.
3054
- **/
3055
- response: XcmV3MaybeErrorCode;
3056
- }
3057
- >;
3058
-
3059
- /**
3060
- * A XCM message has been resent.
3061
- **/
3062
- XcmResendAttempt: GenericPalletEvent<
3063
- 'RcMigrator',
3064
- 'XcmResendAttempt',
3065
- {
3066
- /**
3067
- * The query ID.
3068
- **/
3069
- queryId: bigint;
3070
-
3071
- /**
3072
- * The error message.
3073
- **/
3074
- sendError?: XcmV3TraitsSendError | undefined;
3075
- }
3076
- >;
3077
-
3078
- /**
3079
- * The unprocessed message buffer size has been set.
3080
- **/
3081
- UnprocessedMsgBufferSet: GenericPalletEvent<
3082
- 'RcMigrator',
3083
- 'UnprocessedMsgBufferSet',
3084
- {
3085
- /**
3086
- * The new size.
3087
- **/
3088
- new: number;
3089
-
3090
- /**
3091
- * The old size.
3092
- **/
3093
- old: number;
3094
- }
3095
- >;
3096
-
3097
- /**
3098
- * Whether the AH UMP queue was prioritized for the next block.
3099
- **/
3100
- AhUmpQueuePrioritySet: GenericPalletEvent<
3101
- 'RcMigrator',
3102
- 'AhUmpQueuePrioritySet',
3103
- {
3104
- /**
3105
- * Indicates if AH UMP queue was successfully set as priority.
3106
- * If `false`, it means we're in the round-robin phase of our priority pattern
3107
- * (see [`Config::AhUmpQueuePriorityPattern`]), where no queue gets priority.
3108
- **/
3109
- prioritized: boolean;
3110
-
3111
- /**
3112
- * Current block number within the pattern cycle (1 to period).
3113
- **/
3114
- cycleBlock: number;
3115
-
3116
- /**
3117
- * Total number of blocks in the pattern cycle
3118
- **/
3119
- cyclePeriod: number;
3120
- }
3121
- >;
3122
-
3123
- /**
3124
- * The AH UMP queue priority config was set.
3125
- **/
3126
- AhUmpQueuePriorityConfigSet: GenericPalletEvent<
3127
- 'RcMigrator',
3128
- 'AhUmpQueuePriorityConfigSet',
3129
- {
3130
- /**
3131
- * The old priority pattern.
3132
- **/
3133
- old: PalletRcMigratorQueuePriority;
3134
-
3135
- /**
3136
- * The new priority pattern.
3137
- **/
3138
- new: PalletRcMigratorQueuePriority;
3139
- }
3140
- >;
3141
-
3142
- /**
3143
- * The total issuance was recorded.
3144
- **/
3145
- MigratedBalanceRecordSet: GenericPalletEvent<
3146
- 'RcMigrator',
3147
- 'MigratedBalanceRecordSet',
3148
- { kept: bigint; migrated: bigint }
3149
- >;
3150
-
3151
- /**
3152
- * The RC kept balance was consumed.
3153
- **/
3154
- MigratedBalanceConsumed: GenericPalletEvent<
3155
- 'RcMigrator',
3156
- 'MigratedBalanceConsumed',
3157
- { kept: bigint; migrated: bigint }
3158
- >;
3159
-
3160
- /**
3161
- * The manager account id was set.
3162
- **/
3163
- ManagerSet: GenericPalletEvent<
3164
- 'RcMigrator',
3165
- 'ManagerSet',
3166
- {
3167
- /**
3168
- * The old manager account id.
3169
- **/
3170
- old?: AccountId32 | undefined;
3171
-
3172
- /**
3173
- * The new manager account id.
3174
- **/
3175
- new?: AccountId32 | undefined;
3176
- }
3177
- >;
3178
-
3179
- /**
3180
- * An XCM message was sent.
3181
- **/
3182
- XcmSent: GenericPalletEvent<
3183
- 'RcMigrator',
3184
- 'XcmSent',
3185
- {
3186
- origin: StagingXcmV5Location;
3187
- destination: StagingXcmV5Location;
3188
- message: StagingXcmV5Xcm;
3189
- messageId: FixedBytes<32>;
3190
- }
3191
- >;
3192
-
3193
- /**
3194
- * The staking elections were paused.
3195
- **/
3196
- StakingElectionsPaused: GenericPalletEvent<'RcMigrator', 'StakingElectionsPaused', null>;
3197
-
3198
- /**
3199
- * The accounts to be preserved on Relay Chain were set.
3200
- **/
3201
- AccountsPreserved: GenericPalletEvent<
3202
- 'RcMigrator',
3203
- 'AccountsPreserved',
3204
- {
3205
- /**
3206
- * The accounts that will be preserved.
3207
- **/
3208
- accounts: Array<AccountId32>;
3209
- }
3210
- >;
3211
-
3212
- /**
3213
- * The canceller account id was set.
3214
- **/
3215
- CancellerSet: GenericPalletEvent<
3216
- 'RcMigrator',
3217
- 'CancellerSet',
3218
- {
3219
- /**
3220
- * The old canceller account id.
3221
- **/
3222
- old?: AccountId32 | undefined;
3223
-
3224
- /**
3225
- * The new canceller account id.
3226
- **/
3227
- new?: AccountId32 | undefined;
3228
- }
3229
- >;
3230
-
3231
- /**
3232
- * The migration was paused.
3233
- **/
3234
- MigrationPaused: GenericPalletEvent<
3235
- 'RcMigrator',
3236
- 'MigrationPaused',
3237
- {
3238
- /**
3239
- * The stage at which the migration was paused.
3240
- **/
3241
- pauseStage: PalletRcMigratorMigrationStage;
3242
- }
3243
- >;
3244
-
3245
- /**
3246
- * The migration was cancelled.
3247
- **/
3248
- MigrationCancelled: GenericPalletEvent<'RcMigrator', 'MigrationCancelled', null>;
3249
-
3250
- /**
3251
- * Some pure accounts were indexed for possibly receiving free `Any` proxies.
3252
- **/
3253
- PureAccountsIndexed: GenericPalletEvent<
3254
- 'RcMigrator',
3255
- 'PureAccountsIndexed',
3256
- {
3257
- /**
3258
- * The number of indexed pure accounts.
3259
- **/
3260
- numPureAccounts: number;
3261
- }
3262
- >;
3263
-
3264
- /**
3265
- * The manager multisig dispatched something.
3266
- **/
3267
- ManagerMultisigDispatched: GenericPalletEvent<
3268
- 'RcMigrator',
3269
- 'ManagerMultisigDispatched',
3270
- { res: Result<[], DispatchError> }
3271
- >;
3272
-
3273
- /**
3274
- * The manager multisig received a vote.
3275
- **/
3276
- ManagerMultisigVoted: GenericPalletEvent<'RcMigrator', 'ManagerMultisigVoted', { votes: number }>;
3277
-
3278
- /**
3279
- * The migration settings were set.
3280
- **/
3281
- MigrationSettingsSet: GenericPalletEvent<
3282
- 'RcMigrator',
3283
- 'MigrationSettingsSet',
3284
- {
3285
- /**
3286
- * The old migration settings.
3287
- **/
3288
- old?: PalletRcMigratorMigrationSettings | undefined;
3289
-
3290
- /**
3291
- * The new migration settings.
3292
- **/
3293
- new?: PalletRcMigratorMigrationSettings | undefined;
3294
- }
3295
- >;
3296
-
3297
2989
  /**
3298
2990
  * Generic pallet event
3299
2991
  **/
@@ -6,6 +6,7 @@ import type {
6
6
  FrameSystemEventRecord,
7
7
  PolkadotRuntimeRuntimeCall,
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: PolkadotRuntimeRuntimeCall;
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: PolkadotApi
53
- * @specVersion: 2001001
55
+ * @specVersion: 2002001
54
56
  **/
55
57
  export interface PolkadotApi extends GenericSubstrateApi {
56
58
  rpc: ChainJsonRpcApis;