@dedot/chaintypes 0.105.0 → 0.106.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.
@@ -503,17 +503,19 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
503
503
  **/
504
504
  dryRunApi: {
505
505
  /**
506
- * Dry run call.
506
+ * Dry run call V2.
507
507
  *
508
508
  * @callname: DryRunApi_dry_run_call
509
509
  * @param {PeopleKusamaRuntimeOriginCaller} origin
510
510
  * @param {PeopleKusamaRuntimeRuntimeCallLike} call
511
+ * @param {number} result_xcms_version
511
512
  **/
512
513
  dryRunCall: GenericRuntimeApiMethod<
513
514
  Rv,
514
515
  (
515
516
  origin: PeopleKusamaRuntimeOriginCaller,
516
517
  call: PeopleKusamaRuntimeRuntimeCallLike,
518
+ resultXcmsVersion: number,
517
519
  ) => Promise<Result<XcmRuntimeApisDryRunCallDryRunEffects, XcmRuntimeApisDryRunError>>
518
520
  >;
519
521
 
@@ -585,9 +587,10 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
585
587
  * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
586
588
  * storage.
587
589
  *
588
- * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
589
- * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
590
- * deserialization fails, an error is returned.
590
+ * In the case of a FRAME-based runtime, this function deserializes the full
591
+ * `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage. If the
592
+ * provided JSON blob is incorrect or incomplete or the deserialization fails, an error
593
+ * is returned.
591
594
  *
592
595
  * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
593
596
  * defaults will be used.
@@ -601,7 +604,7 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
601
604
  * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
602
605
  * `id`.
603
606
  *
604
- * If `id` is `None` the function returns JSON blob representation of the default
607
+ * If `id` is `None` the function should return JSON blob representation of the default
605
608
  * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
606
609
  * `RuntimeGenesisConfig`.
607
610
  *
@@ -16,13 +16,15 @@ import type {
16
16
  SpRuntimeMultiSignature,
17
17
  FrameSystemEventRecord,
18
18
  CumulusPrimitivesParachainInherentParachainInherentData,
19
+ PalletMigrationsMigrationCursor,
20
+ PalletMigrationsHistoricCleanupSelector,
19
21
  PalletBalancesAdjustmentDirection,
20
22
  PeopleKusamaRuntimeSessionKeys,
21
23
  XcmVersionedLocation,
22
24
  XcmVersionedXcm,
23
25
  XcmVersionedAssets,
24
26
  SpWeightsWeightV2Weight,
25
- StagingXcmV4Location,
27
+ StagingXcmV5Location,
26
28
  XcmV3WeightLimit,
27
29
  StagingXcmExecutorAssetTransferTransferType,
28
30
  XcmVersionedAssetId,
@@ -402,6 +404,111 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
402
404
  **/
403
405
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
404
406
  };
407
+ /**
408
+ * Pallet `MultiBlockMigrations`'s transaction calls
409
+ **/
410
+ multiBlockMigrations: {
411
+ /**
412
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
413
+ *
414
+ * Should normally not be needed and is only in place as emergency measure. Note that
415
+ * restarting the migration process in this manner will not call the
416
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
417
+ *
418
+ * @param {PalletMigrationsMigrationCursor | undefined} cursor
419
+ **/
420
+ forceSetCursor: GenericTxCall<
421
+ Rv,
422
+ (cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
423
+ Rv,
424
+ {
425
+ pallet: 'MultiBlockMigrations';
426
+ palletCall: {
427
+ name: 'ForceSetCursor';
428
+ params: { cursor: PalletMigrationsMigrationCursor | undefined };
429
+ };
430
+ }
431
+ >
432
+ >;
433
+
434
+ /**
435
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
436
+ *
437
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
438
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
439
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
440
+ * indicates that the current block number plus one should be used.
441
+ *
442
+ * @param {number} index
443
+ * @param {BytesLike | undefined} innerCursor
444
+ * @param {number | undefined} startedAt
445
+ **/
446
+ forceSetActiveCursor: GenericTxCall<
447
+ Rv,
448
+ (
449
+ index: number,
450
+ innerCursor: BytesLike | undefined,
451
+ startedAt: number | undefined,
452
+ ) => ChainSubmittableExtrinsic<
453
+ Rv,
454
+ {
455
+ pallet: 'MultiBlockMigrations';
456
+ palletCall: {
457
+ name: 'ForceSetActiveCursor';
458
+ params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
459
+ };
460
+ }
461
+ >
462
+ >;
463
+
464
+ /**
465
+ * Forces the onboarding of the migrations.
466
+ *
467
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
468
+ * measurement. The cursor needs to be `None` for this to succeed.
469
+ *
470
+ **/
471
+ forceOnboardMbms: GenericTxCall<
472
+ Rv,
473
+ () => ChainSubmittableExtrinsic<
474
+ Rv,
475
+ {
476
+ pallet: 'MultiBlockMigrations';
477
+ palletCall: {
478
+ name: 'ForceOnboardMbms';
479
+ };
480
+ }
481
+ >
482
+ >;
483
+
484
+ /**
485
+ * Clears the `Historic` set.
486
+ *
487
+ * `map_cursor` must be set to the last value that was returned by the
488
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
489
+ * way that will result in a sensible weight.
490
+ *
491
+ * @param {PalletMigrationsHistoricCleanupSelector} selector
492
+ **/
493
+ clearHistoric: GenericTxCall<
494
+ Rv,
495
+ (selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
496
+ Rv,
497
+ {
498
+ pallet: 'MultiBlockMigrations';
499
+ palletCall: {
500
+ name: 'ClearHistoric';
501
+ params: { selector: PalletMigrationsHistoricCleanupSelector };
502
+ };
503
+ }
504
+ >
505
+ >;
506
+
507
+ /**
508
+ * Generic pallet tx call
509
+ **/
510
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
511
+ };
405
512
  /**
406
513
  * Pallet `Balances`'s transaction calls
407
514
  **/
@@ -1250,13 +1357,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1250
1357
  * - `location`: The destination that is being described.
1251
1358
  * - `xcm_version`: The latest version of XCM that `location` supports.
1252
1359
  *
1253
- * @param {StagingXcmV4Location} location
1360
+ * @param {StagingXcmV5Location} location
1254
1361
  * @param {number} version
1255
1362
  **/
1256
1363
  forceXcmVersion: GenericTxCall<
1257
1364
  Rv,
1258
1365
  (
1259
- location: StagingXcmV4Location,
1366
+ location: StagingXcmV5Location,
1260
1367
  version: number,
1261
1368
  ) => ChainSubmittableExtrinsic<
1262
1369
  Rv,
@@ -1264,7 +1371,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1264
1371
  pallet: 'PolkadotXcm';
1265
1372
  palletCall: {
1266
1373
  name: 'ForceXcmVersion';
1267
- params: { location: StagingXcmV4Location; version: number };
1374
+ params: { location: StagingXcmV5Location; version: number };
1268
1375
  };
1269
1376
  }
1270
1377
  >
@@ -2988,8 +3095,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2988
3095
  /**
2989
3096
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
2990
3097
  *
2991
- * The authority can grant up to `allocation` usernames. To top up their allocation, they
2992
- * should just issue (or request via governance) a new `add_username_authority` call.
3098
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
3099
+ * change the account used to grant usernames, this call can be used with the updated
3100
+ * parameters to overwrite the existing configuration.
2993
3101
  *
2994
3102
  * @param {MultiAddressLike} authority
2995
3103
  * @param {BytesLike} suffix
@@ -3016,17 +3124,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3016
3124
  /**
3017
3125
  * Remove `authority` from the username authorities.
3018
3126
  *
3127
+ * @param {BytesLike} suffix
3019
3128
  * @param {MultiAddressLike} authority
3020
3129
  **/
3021
3130
  removeUsernameAuthority: GenericTxCall<
3022
3131
  Rv,
3023
- (authority: MultiAddressLike) => ChainSubmittableExtrinsic<
3132
+ (
3133
+ suffix: BytesLike,
3134
+ authority: MultiAddressLike,
3135
+ ) => ChainSubmittableExtrinsic<
3024
3136
  Rv,
3025
3137
  {
3026
3138
  pallet: 'Identity';
3027
3139
  palletCall: {
3028
3140
  name: 'RemoveUsernameAuthority';
3029
- params: { authority: MultiAddressLike };
3141
+ params: { suffix: BytesLike; authority: MultiAddressLike };
3030
3142
  };
3031
3143
  }
3032
3144
  >
@@ -3035,7 +3147,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3035
3147
  /**
3036
3148
  * Set the username for `who`. Must be called by a username authority.
3037
3149
  *
3038
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
3150
+ * If `use_allocation` is set, the authority must have a username allocation available to
3151
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
3152
+ * username.
3153
+ *
3154
+ * Users can either pre-sign their usernames or
3039
3155
  * accept them later.
3040
3156
  *
3041
3157
  * Usernames must:
@@ -3046,6 +3162,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3046
3162
  * @param {MultiAddressLike} who
3047
3163
  * @param {BytesLike} username
3048
3164
  * @param {SpRuntimeMultiSignature | undefined} signature
3165
+ * @param {boolean} useAllocation
3049
3166
  **/
3050
3167
  setUsernameFor: GenericTxCall<
3051
3168
  Rv,
@@ -3053,13 +3170,19 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3053
3170
  who: MultiAddressLike,
3054
3171
  username: BytesLike,
3055
3172
  signature: SpRuntimeMultiSignature | undefined,
3173
+ useAllocation: boolean,
3056
3174
  ) => ChainSubmittableExtrinsic<
3057
3175
  Rv,
3058
3176
  {
3059
3177
  pallet: 'Identity';
3060
3178
  palletCall: {
3061
3179
  name: 'SetUsernameFor';
3062
- params: { who: MultiAddressLike; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
3180
+ params: {
3181
+ who: MultiAddressLike;
3182
+ username: BytesLike;
3183
+ signature: SpRuntimeMultiSignature | undefined;
3184
+ useAllocation: boolean;
3185
+ };
3063
3186
  };
3064
3187
  }
3065
3188
  >
@@ -3126,19 +3249,60 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3126
3249
  >;
3127
3250
 
3128
3251
  /**
3129
- * Remove a username that corresponds to an account with no identity. Exists when a user
3130
- * gets a username but then calls `clear_identity`.
3252
+ * Start the process of removing a username by placing it in the unbinding usernames map.
3253
+ * Once the grace period has passed, the username can be deleted by calling
3254
+ * [remove_username](crate::Call::remove_username).
3255
+ *
3256
+ * @param {BytesLike} username
3257
+ **/
3258
+ unbindUsername: GenericTxCall<
3259
+ Rv,
3260
+ (username: BytesLike) => ChainSubmittableExtrinsic<
3261
+ Rv,
3262
+ {
3263
+ pallet: 'Identity';
3264
+ palletCall: {
3265
+ name: 'UnbindUsername';
3266
+ params: { username: BytesLike };
3267
+ };
3268
+ }
3269
+ >
3270
+ >;
3271
+
3272
+ /**
3273
+ * Permanently delete a username which has been unbinding for longer than the grace period.
3274
+ * Caller is refunded the fee if the username expired and the removal was successful.
3275
+ *
3276
+ * @param {BytesLike} username
3277
+ **/
3278
+ removeUsername: GenericTxCall<
3279
+ Rv,
3280
+ (username: BytesLike) => ChainSubmittableExtrinsic<
3281
+ Rv,
3282
+ {
3283
+ pallet: 'Identity';
3284
+ palletCall: {
3285
+ name: 'RemoveUsername';
3286
+ params: { username: BytesLike };
3287
+ };
3288
+ }
3289
+ >
3290
+ >;
3291
+
3292
+ /**
3293
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
3294
+ * and slashes any deposit associated with it.
3131
3295
  *
3132
3296
  * @param {BytesLike} username
3133
3297
  **/
3134
- removeDanglingUsername: GenericTxCall<
3298
+ killUsername: GenericTxCall<
3135
3299
  Rv,
3136
3300
  (username: BytesLike) => ChainSubmittableExtrinsic<
3137
3301
  Rv,
3138
3302
  {
3139
3303
  pallet: 'Identity';
3140
3304
  palletCall: {
3141
- name: 'RemoveDanglingUsername';
3305
+ name: 'KillUsername';
3142
3306
  params: { username: BytesLike };
3143
3307
  };
3144
3308
  }