@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.
@@ -11092,7 +11092,7 @@ export interface ChainTx<
11092
11092
  **/
11093
11093
  psm: {
11094
11094
  /**
11095
- * Swap external stablecoin for pUSD.
11095
+ * Swap external stablecoin for internal.
11096
11096
  *
11097
11097
  * ## Dispatch Origin
11098
11098
  *
@@ -11101,7 +11101,7 @@ export interface ChainTx<
11101
11101
  * ## Details
11102
11102
  *
11103
11103
  * Transfers `external_amount` of the specified external stablecoin from the caller
11104
- * to the PSM account, then mints pUSD to the caller minus the minting fee.
11104
+ * to the PSM account, then mints internal to the caller minus the minting fee.
11105
11105
  * The fee is calculated using ceiling rounding (`mul_ceil`), ensuring the
11106
11106
  * protocol never undercharges. The fee is transferred to [`Config::FeeDestination`].
11107
11107
  *
@@ -11115,27 +11115,32 @@ export interface ChainTx<
11115
11115
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11116
11116
  * - [`Error::MintingStopped`]: If circuit breaker is at `MintingDisabled` or higher
11117
11117
  * - [`Error::BelowMinimumSwap`]: If `external_amount` is below [`Config::MinSwapAmount`]
11118
- * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide pUSD issuance cap
11118
+ * - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide internal issuance
11119
+ * cap
11119
11120
  * - [`Error::ExceedsMaxPsmDebt`]: If minting would exceed PSM debt ceiling (aggregate or
11120
11121
  * per-asset)
11122
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11123
+ * decimals
11124
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11125
+ * rounds to zero; swap would transfer nothing
11121
11126
  *
11122
11127
  * ## Events
11123
11128
  *
11124
11129
  * - [`Event::Minted`]: Emitted on successful mint
11125
11130
  *
11126
- * @param {number} assetId
11131
+ * @param {StagingXcmV5Location} assetId
11127
11132
  * @param {bigint} externalAmount
11128
11133
  **/
11129
11134
  mint: GenericTxCall<
11130
11135
  (
11131
- assetId: number,
11136
+ assetId: StagingXcmV5Location,
11132
11137
  externalAmount: bigint,
11133
11138
  ) => ChainSubmittableExtrinsic<
11134
11139
  {
11135
11140
  pallet: 'Psm';
11136
11141
  palletCall: {
11137
11142
  name: 'Mint';
11138
- params: { assetId: number; externalAmount: bigint };
11143
+ params: { assetId: StagingXcmV5Location; externalAmount: bigint };
11139
11144
  };
11140
11145
  },
11141
11146
  ChainKnownTypes
@@ -11143,7 +11148,7 @@ export interface ChainTx<
11143
11148
  >;
11144
11149
 
11145
11150
  /**
11146
- * Swap pUSD for external stablecoin.
11151
+ * Swap internal for external stablecoin.
11147
11152
  *
11148
11153
  * ## Dispatch Origin
11149
11154
  *
@@ -11151,7 +11156,7 @@ export interface ChainTx<
11151
11156
  *
11152
11157
  * ## Details
11153
11158
  *
11154
- * Burns `pusd_amount` pUSD from the caller minus fee (transferred to
11159
+ * Burns `amount` internal from the caller minus fee (transferred to
11155
11160
  * [`Config::FeeDestination`]), then transfers the resulting amount in external
11156
11161
  * stablecoin from PSM to the caller. The fee is calculated using ceiling rounding
11157
11162
  * (`mul_ceil`), ensuring the protocol never undercharges.
@@ -11159,32 +11164,36 @@ export interface ChainTx<
11159
11164
  * ## Parameters
11160
11165
  *
11161
11166
  * - `asset_id`: The external stablecoin to receive (must be in `ExternalAssets`)
11162
- * - `pusd_amount`: Amount of pUSD to redeem
11167
+ * - `amount`: Amount of internal to redeem
11163
11168
  *
11164
11169
  * ## Errors
11165
11170
  *
11166
11171
  * - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
11167
11172
  * - [`Error::AllSwapsStopped`]: If circuit breaker is at `AllDisabled`
11168
- * - [`Error::BelowMinimumSwap`]: If `pusd_amount` is below [`Config::MinSwapAmount`]
11173
+ * - [`Error::BelowMinimumSwap`]: If `amount` is below [`Config::MinSwapAmount`]
11169
11174
  * - [`Error::InsufficientReserve`]: If PSM has insufficient external stablecoin
11175
+ * - [`Error::DecimalsMismatch`]: If the asset's decimals do not match the internal asset's
11176
+ * decimals
11177
+ * - [`Error::AmountTooSmallAfterConversion`]: if the conversion to the counter-asset
11178
+ * rounds to zero; swap would transfer nothing
11170
11179
  *
11171
11180
  * ## Events
11172
11181
  *
11173
11182
  * - [`Event::Redeemed`]: Emitted on successful redemption
11174
11183
  *
11175
- * @param {number} assetId
11176
- * @param {bigint} pusdAmount
11184
+ * @param {StagingXcmV5Location} assetId
11185
+ * @param {bigint} amount
11177
11186
  **/
11178
11187
  redeem: GenericTxCall<
11179
11188
  (
11180
- assetId: number,
11181
- pusdAmount: bigint,
11189
+ assetId: StagingXcmV5Location,
11190
+ amount: bigint,
11182
11191
  ) => ChainSubmittableExtrinsic<
11183
11192
  {
11184
11193
  pallet: 'Psm';
11185
11194
  palletCall: {
11186
11195
  name: 'Redeem';
11187
- params: { assetId: number; pusdAmount: bigint };
11196
+ params: { assetId: StagingXcmV5Location; amount: bigint };
11188
11197
  };
11189
11198
  },
11190
11199
  ChainKnownTypes
@@ -11192,7 +11201,7 @@ export interface ChainTx<
11192
11201
  >;
11193
11202
 
11194
11203
  /**
11195
- * Set the minting fee for a specific asset (external → pUSD).
11204
+ * Set the minting fee for a specific asset (external → internal).
11196
11205
  *
11197
11206
  * ## Dispatch Origin
11198
11207
  *
@@ -11207,19 +11216,19 @@ export interface ChainTx<
11207
11216
  *
11208
11217
  * - [`Event::MintingFeeUpdated`]: Emitted with old and new values
11209
11218
  *
11210
- * @param {number} assetId
11219
+ * @param {StagingXcmV5Location} assetId
11211
11220
  * @param {Permill} fee
11212
11221
  **/
11213
11222
  setMintingFee: GenericTxCall<
11214
11223
  (
11215
- assetId: number,
11224
+ assetId: StagingXcmV5Location,
11216
11225
  fee: Permill,
11217
11226
  ) => ChainSubmittableExtrinsic<
11218
11227
  {
11219
11228
  pallet: 'Psm';
11220
11229
  palletCall: {
11221
11230
  name: 'SetMintingFee';
11222
- params: { assetId: number; fee: Permill };
11231
+ params: { assetId: StagingXcmV5Location; fee: Permill };
11223
11232
  };
11224
11233
  },
11225
11234
  ChainKnownTypes
@@ -11227,7 +11236,7 @@ export interface ChainTx<
11227
11236
  >;
11228
11237
 
11229
11238
  /**
11230
- * Set the redemption fee for a specific asset (pUSD → external).
11239
+ * Set the redemption fee for a specific asset (internal → external).
11231
11240
  *
11232
11241
  * ## Dispatch Origin
11233
11242
  *
@@ -11242,19 +11251,19 @@ export interface ChainTx<
11242
11251
  *
11243
11252
  * - [`Event::RedemptionFeeUpdated`]: Emitted with old and new values
11244
11253
  *
11245
- * @param {number} assetId
11254
+ * @param {StagingXcmV5Location} assetId
11246
11255
  * @param {Permill} fee
11247
11256
  **/
11248
11257
  setRedemptionFee: GenericTxCall<
11249
11258
  (
11250
- assetId: number,
11259
+ assetId: StagingXcmV5Location,
11251
11260
  fee: Permill,
11252
11261
  ) => ChainSubmittableExtrinsic<
11253
11262
  {
11254
11263
  pallet: 'Psm';
11255
11264
  palletCall: {
11256
11265
  name: 'SetRedemptionFee';
11257
- params: { assetId: number; fee: Permill };
11266
+ params: { assetId: StagingXcmV5Location; fee: Permill };
11258
11267
  };
11259
11268
  },
11260
11269
  ChainKnownTypes
@@ -11315,19 +11324,19 @@ export interface ChainTx<
11315
11324
  *
11316
11325
  * - [`Event::AssetStatusUpdated`]: Emitted with the asset ID and new status
11317
11326
  *
11318
- * @param {number} assetId
11327
+ * @param {StagingXcmV5Location} assetId
11319
11328
  * @param {PalletPsmCircuitBreakerLevel} status
11320
11329
  **/
11321
11330
  setAssetStatus: GenericTxCall<
11322
11331
  (
11323
- assetId: number,
11332
+ assetId: StagingXcmV5Location,
11324
11333
  status: PalletPsmCircuitBreakerLevel,
11325
11334
  ) => ChainSubmittableExtrinsic<
11326
11335
  {
11327
11336
  pallet: 'Psm';
11328
11337
  palletCall: {
11329
11338
  name: 'SetAssetStatus';
11330
- params: { assetId: number; status: PalletPsmCircuitBreakerLevel };
11339
+ params: { assetId: StagingXcmV5Location; status: PalletPsmCircuitBreakerLevel };
11331
11340
  };
11332
11341
  },
11333
11342
  ChainKnownTypes
@@ -11358,19 +11367,19 @@ export interface ChainTx<
11358
11367
  *
11359
11368
  * - [`Event::AssetCeilingWeightUpdated`]: Emitted with old and new values
11360
11369
  *
11361
- * @param {number} assetId
11370
+ * @param {StagingXcmV5Location} assetId
11362
11371
  * @param {Permill} weight
11363
11372
  **/
11364
11373
  setAssetCeilingWeight: GenericTxCall<
11365
11374
  (
11366
- assetId: number,
11375
+ assetId: StagingXcmV5Location,
11367
11376
  weight: Permill,
11368
11377
  ) => ChainSubmittableExtrinsic<
11369
11378
  {
11370
11379
  pallet: 'Psm';
11371
11380
  palletCall: {
11372
11381
  name: 'SetAssetCeilingWeight';
11373
- params: { assetId: number; weight: Permill };
11382
+ params: { assetId: StagingXcmV5Location; weight: Permill };
11374
11383
  };
11375
11384
  },
11376
11385
  ChainKnownTypes
@@ -11396,15 +11405,15 @@ export interface ChainTx<
11396
11405
  *
11397
11406
  * - [`Event::ExternalAssetAdded`]: Emitted on successful addition
11398
11407
  *
11399
- * @param {number} assetId
11408
+ * @param {StagingXcmV5Location} assetId
11400
11409
  **/
11401
11410
  addExternalAsset: GenericTxCall<
11402
- (assetId: number) => ChainSubmittableExtrinsic<
11411
+ (assetId: StagingXcmV5Location) => ChainSubmittableExtrinsic<
11403
11412
  {
11404
11413
  pallet: 'Psm';
11405
11414
  palletCall: {
11406
11415
  name: 'AddExternalAsset';
11407
- params: { assetId: number };
11416
+ params: { assetId: StagingXcmV5Location };
11408
11417
  };
11409
11418
  },
11410
11419
  ChainKnownTypes
@@ -11441,15 +11450,15 @@ export interface ChainTx<
11441
11450
  *
11442
11451
  * - [`Event::ExternalAssetRemoved`]: Emitted on successful removal
11443
11452
  *
11444
- * @param {number} assetId
11453
+ * @param {StagingXcmV5Location} assetId
11445
11454
  **/
11446
11455
  removeExternalAsset: GenericTxCall<
11447
- (assetId: number) => ChainSubmittableExtrinsic<
11456
+ (assetId: StagingXcmV5Location) => ChainSubmittableExtrinsic<
11448
11457
  {
11449
11458
  pallet: 'Psm';
11450
11459
  palletCall: {
11451
11460
  name: 'RemoveExternalAsset';
11452
- params: { assetId: number };
11461
+ params: { assetId: StagingXcmV5Location };
11453
11462
  };
11454
11463
  },
11455
11464
  ChainKnownTypes
@@ -12609,6 +12618,38 @@ export interface ChainTx<
12609
12618
  >
12610
12619
  >;
12611
12620
 
12621
+ /**
12622
+ * Configure the validator self-stake incentive parameters.
12623
+ *
12624
+ * The dispatch origin must be `T::AdminOrigin`.
12625
+ *
12626
+ * Changes take effect in the next era when rewards are calculated.
12627
+ *
12628
+ * @param {PalletStakingAsyncPalletConfigOp} optimumSelfStake
12629
+ * @param {PalletStakingAsyncPalletConfigOp} hardCapSelfStake
12630
+ * @param {PalletStakingAsyncPalletConfigOpPerbill} selfStakeSlopeFactor
12631
+ **/
12632
+ setValidatorSelfStakeIncentiveConfig: GenericTxCall<
12633
+ (
12634
+ optimumSelfStake: PalletStakingAsyncPalletConfigOp,
12635
+ hardCapSelfStake: PalletStakingAsyncPalletConfigOp,
12636
+ selfStakeSlopeFactor: PalletStakingAsyncPalletConfigOpPerbill,
12637
+ ) => ChainSubmittableExtrinsic<
12638
+ {
12639
+ pallet: 'Staking';
12640
+ palletCall: {
12641
+ name: 'SetValidatorSelfStakeIncentiveConfig';
12642
+ params: {
12643
+ optimumSelfStake: PalletStakingAsyncPalletConfigOp;
12644
+ hardCapSelfStake: PalletStakingAsyncPalletConfigOp;
12645
+ selfStakeSlopeFactor: PalletStakingAsyncPalletConfigOpPerbill;
12646
+ };
12647
+ };
12648
+ },
12649
+ ChainKnownTypes
12650
+ >
12651
+ >;
12652
+
12612
12653
  /**
12613
12654
  * Generic pallet tx call
12614
12655
  **/