@dedot/chaintypes 0.47.0 → 0.49.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.
@@ -22,7 +22,7 @@ import type {
22
22
  XcmVersionedXcm,
23
23
  XcmVersionedAssets,
24
24
  SpWeightsWeightV2Weight,
25
- StagingXcmV4Location,
25
+ StagingXcmV5Location,
26
26
  XcmV3WeightLimit,
27
27
  StagingXcmExecutorAssetTransferTransferType,
28
28
  XcmVersionedAssetId,
@@ -32,6 +32,8 @@ import type {
32
32
  PeopleWestendRuntimeProxyType,
33
33
  PeopleWestendRuntimePeopleIdentityInfo,
34
34
  PalletIdentityJudgement,
35
+ PalletMigrationsMigrationCursor,
36
+ PalletMigrationsHistoricCleanupSelector,
35
37
  } from './types';
36
38
 
37
39
  export type ChainSubmittableExtrinsic<
@@ -1250,13 +1252,13 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1250
1252
  * - `location`: The destination that is being described.
1251
1253
  * - `xcm_version`: The latest version of XCM that `location` supports.
1252
1254
  *
1253
- * @param {StagingXcmV4Location} location
1255
+ * @param {StagingXcmV5Location} location
1254
1256
  * @param {number} version
1255
1257
  **/
1256
1258
  forceXcmVersion: GenericTxCall<
1257
1259
  Rv,
1258
1260
  (
1259
- location: StagingXcmV4Location,
1261
+ location: StagingXcmV5Location,
1260
1262
  version: number,
1261
1263
  ) => ChainSubmittableExtrinsic<
1262
1264
  Rv,
@@ -1264,7 +1266,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1264
1266
  pallet: 'PolkadotXcm';
1265
1267
  palletCall: {
1266
1268
  name: 'ForceXcmVersion';
1267
- params: { location: StagingXcmV4Location; version: number };
1269
+ params: { location: StagingXcmV5Location; version: number };
1268
1270
  };
1269
1271
  }
1270
1272
  >
@@ -2988,8 +2990,9 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
2988
2990
  /**
2989
2991
  * Add an `AccountId` with permission to grant usernames with a given `suffix` appended.
2990
2992
  *
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.
2993
+ * The authority can grant up to `allocation` usernames. To top up the allocation or
2994
+ * change the account used to grant usernames, this call can be used with the updated
2995
+ * parameters to overwrite the existing configuration.
2993
2996
  *
2994
2997
  * @param {MultiAddressLike} authority
2995
2998
  * @param {BytesLike} suffix
@@ -3016,17 +3019,21 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3016
3019
  /**
3017
3020
  * Remove `authority` from the username authorities.
3018
3021
  *
3022
+ * @param {BytesLike} suffix
3019
3023
  * @param {MultiAddressLike} authority
3020
3024
  **/
3021
3025
  removeUsernameAuthority: GenericTxCall<
3022
3026
  Rv,
3023
- (authority: MultiAddressLike) => ChainSubmittableExtrinsic<
3027
+ (
3028
+ suffix: BytesLike,
3029
+ authority: MultiAddressLike,
3030
+ ) => ChainSubmittableExtrinsic<
3024
3031
  Rv,
3025
3032
  {
3026
3033
  pallet: 'Identity';
3027
3034
  palletCall: {
3028
3035
  name: 'RemoveUsernameAuthority';
3029
- params: { authority: MultiAddressLike };
3036
+ params: { suffix: BytesLike; authority: MultiAddressLike };
3030
3037
  };
3031
3038
  }
3032
3039
  >
@@ -3035,7 +3042,11 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3035
3042
  /**
3036
3043
  * Set the username for `who`. Must be called by a username authority.
3037
3044
  *
3038
- * The authority must have an `allocation`. Users can either pre-sign their usernames or
3045
+ * If `use_allocation` is set, the authority must have a username allocation available to
3046
+ * spend. Otherwise, the authority will need to put up a deposit for registering the
3047
+ * username.
3048
+ *
3049
+ * Users can either pre-sign their usernames or
3039
3050
  * accept them later.
3040
3051
  *
3041
3052
  * Usernames must:
@@ -3046,6 +3057,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3046
3057
  * @param {MultiAddressLike} who
3047
3058
  * @param {BytesLike} username
3048
3059
  * @param {SpRuntimeMultiSignature | undefined} signature
3060
+ * @param {boolean} useAllocation
3049
3061
  **/
3050
3062
  setUsernameFor: GenericTxCall<
3051
3063
  Rv,
@@ -3053,13 +3065,19 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3053
3065
  who: MultiAddressLike,
3054
3066
  username: BytesLike,
3055
3067
  signature: SpRuntimeMultiSignature | undefined,
3068
+ useAllocation: boolean,
3056
3069
  ) => ChainSubmittableExtrinsic<
3057
3070
  Rv,
3058
3071
  {
3059
3072
  pallet: 'Identity';
3060
3073
  palletCall: {
3061
3074
  name: 'SetUsernameFor';
3062
- params: { who: MultiAddressLike; username: BytesLike; signature: SpRuntimeMultiSignature | undefined };
3075
+ params: {
3076
+ who: MultiAddressLike;
3077
+ username: BytesLike;
3078
+ signature: SpRuntimeMultiSignature | undefined;
3079
+ useAllocation: boolean;
3080
+ };
3063
3081
  };
3064
3082
  }
3065
3083
  >
@@ -3126,19 +3144,60 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3126
3144
  >;
3127
3145
 
3128
3146
  /**
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`.
3147
+ * Start the process of removing a username by placing it in the unbinding usernames map.
3148
+ * Once the grace period has passed, the username can be deleted by calling
3149
+ * [remove_username](crate::Call::remove_username).
3150
+ *
3151
+ * @param {BytesLike} username
3152
+ **/
3153
+ unbindUsername: GenericTxCall<
3154
+ Rv,
3155
+ (username: BytesLike) => ChainSubmittableExtrinsic<
3156
+ Rv,
3157
+ {
3158
+ pallet: 'Identity';
3159
+ palletCall: {
3160
+ name: 'UnbindUsername';
3161
+ params: { username: BytesLike };
3162
+ };
3163
+ }
3164
+ >
3165
+ >;
3166
+
3167
+ /**
3168
+ * Permanently delete a username which has been unbinding for longer than the grace period.
3169
+ * Caller is refunded the fee if the username expired and the removal was successful.
3170
+ *
3171
+ * @param {BytesLike} username
3172
+ **/
3173
+ removeUsername: GenericTxCall<
3174
+ Rv,
3175
+ (username: BytesLike) => ChainSubmittableExtrinsic<
3176
+ Rv,
3177
+ {
3178
+ pallet: 'Identity';
3179
+ palletCall: {
3180
+ name: 'RemoveUsername';
3181
+ params: { username: BytesLike };
3182
+ };
3183
+ }
3184
+ >
3185
+ >;
3186
+
3187
+ /**
3188
+ * Call with [ForceOrigin](crate::Config::ForceOrigin) privileges which deletes a username
3189
+ * and slashes any deposit associated with it.
3131
3190
  *
3132
3191
  * @param {BytesLike} username
3133
3192
  **/
3134
- removeDanglingUsername: GenericTxCall<
3193
+ killUsername: GenericTxCall<
3135
3194
  Rv,
3136
3195
  (username: BytesLike) => ChainSubmittableExtrinsic<
3137
3196
  Rv,
3138
3197
  {
3139
3198
  pallet: 'Identity';
3140
3199
  palletCall: {
3141
- name: 'RemoveDanglingUsername';
3200
+ name: 'KillUsername';
3142
3201
  params: { username: BytesLike };
3143
3202
  };
3144
3203
  }
@@ -3150,6 +3209,111 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
3150
3209
  **/
3151
3210
  [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3152
3211
  };
3212
+ /**
3213
+ * Pallet `MultiBlockMigrations`'s transaction calls
3214
+ **/
3215
+ multiBlockMigrations: {
3216
+ /**
3217
+ * Allows root to set a cursor to forcefully start, stop or forward the migration process.
3218
+ *
3219
+ * Should normally not be needed and is only in place as emergency measure. Note that
3220
+ * restarting the migration process in this manner will not call the
3221
+ * [`MigrationStatusHandler::started`] hook or emit an `UpgradeStarted` event.
3222
+ *
3223
+ * @param {PalletMigrationsMigrationCursor | undefined} cursor
3224
+ **/
3225
+ forceSetCursor: GenericTxCall<
3226
+ Rv,
3227
+ (cursor: PalletMigrationsMigrationCursor | undefined) => ChainSubmittableExtrinsic<
3228
+ Rv,
3229
+ {
3230
+ pallet: 'MultiBlockMigrations';
3231
+ palletCall: {
3232
+ name: 'ForceSetCursor';
3233
+ params: { cursor: PalletMigrationsMigrationCursor | undefined };
3234
+ };
3235
+ }
3236
+ >
3237
+ >;
3238
+
3239
+ /**
3240
+ * Allows root to set an active cursor to forcefully start/forward the migration process.
3241
+ *
3242
+ * This is an edge-case version of [`Self::force_set_cursor`] that allows to set the
3243
+ * `started_at` value to the next block number. Otherwise this would not be possible, since
3244
+ * `force_set_cursor` takes an absolute block number. Setting `started_at` to `None`
3245
+ * indicates that the current block number plus one should be used.
3246
+ *
3247
+ * @param {number} index
3248
+ * @param {BytesLike | undefined} innerCursor
3249
+ * @param {number | undefined} startedAt
3250
+ **/
3251
+ forceSetActiveCursor: GenericTxCall<
3252
+ Rv,
3253
+ (
3254
+ index: number,
3255
+ innerCursor: BytesLike | undefined,
3256
+ startedAt: number | undefined,
3257
+ ) => ChainSubmittableExtrinsic<
3258
+ Rv,
3259
+ {
3260
+ pallet: 'MultiBlockMigrations';
3261
+ palletCall: {
3262
+ name: 'ForceSetActiveCursor';
3263
+ params: { index: number; innerCursor: BytesLike | undefined; startedAt: number | undefined };
3264
+ };
3265
+ }
3266
+ >
3267
+ >;
3268
+
3269
+ /**
3270
+ * Forces the onboarding of the migrations.
3271
+ *
3272
+ * This process happens automatically on a runtime upgrade. It is in place as an emergency
3273
+ * measurement. The cursor needs to be `None` for this to succeed.
3274
+ *
3275
+ **/
3276
+ forceOnboardMbms: GenericTxCall<
3277
+ Rv,
3278
+ () => ChainSubmittableExtrinsic<
3279
+ Rv,
3280
+ {
3281
+ pallet: 'MultiBlockMigrations';
3282
+ palletCall: {
3283
+ name: 'ForceOnboardMbms';
3284
+ };
3285
+ }
3286
+ >
3287
+ >;
3288
+
3289
+ /**
3290
+ * Clears the `Historic` set.
3291
+ *
3292
+ * `map_cursor` must be set to the last value that was returned by the
3293
+ * `HistoricCleared` event. The first time `None` can be used. `limit` must be chosen in a
3294
+ * way that will result in a sensible weight.
3295
+ *
3296
+ * @param {PalletMigrationsHistoricCleanupSelector} selector
3297
+ **/
3298
+ clearHistoric: GenericTxCall<
3299
+ Rv,
3300
+ (selector: PalletMigrationsHistoricCleanupSelector) => ChainSubmittableExtrinsic<
3301
+ Rv,
3302
+ {
3303
+ pallet: 'MultiBlockMigrations';
3304
+ palletCall: {
3305
+ name: 'ClearHistoric';
3306
+ params: { selector: PalletMigrationsHistoricCleanupSelector };
3307
+ };
3308
+ }
3309
+ >
3310
+ >;
3311
+
3312
+ /**
3313
+ * Generic pallet tx call
3314
+ **/
3315
+ [callName: string]: GenericTxCall<Rv, TxCall<Rv>>;
3316
+ };
3153
3317
  /**
3154
3318
  * Pallet `IdentityMigrator`'s transaction calls
3155
3319
  **/