@dedot/chaintypes 0.260.0 → 0.261.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 +2 -2
- package/westend/consts.d.ts +0 -18
- package/westend/errors.d.ts +0 -44
- package/westend/events.d.ts +0 -21
- package/westend/index.d.ts +1 -1
- package/westend/tx.d.ts +0 -36
- package/westend/types.d.ts +16 -113
- package/westend-asset-hub/consts.d.ts +106 -4
- package/westend-asset-hub/errors.d.ts +157 -0
- package/westend-asset-hub/events.d.ts +196 -4
- package/westend-asset-hub/index.d.ts +1 -1
- package/westend-asset-hub/query.d.ts +148 -4
- package/westend-asset-hub/runtime.d.ts +25 -0
- package/westend-asset-hub/tx.d.ts +507 -3
- package/westend-asset-hub/types.d.ts +1090 -214
- package/westend-people/consts.d.ts +18 -0
- package/westend-people/errors.d.ts +44 -0
- package/westend-people/events.d.ts +23 -0
- package/westend-people/index.d.ts +1 -1
- package/westend-people/tx.d.ts +36 -0
- package/westend-people/types.d.ts +130 -33
|
@@ -17,6 +17,7 @@ import type {
|
|
|
17
17
|
AccountId32Like,
|
|
18
18
|
H160,
|
|
19
19
|
U256,
|
|
20
|
+
Permill,
|
|
20
21
|
Percent,
|
|
21
22
|
Perbill,
|
|
22
23
|
FixedU128,
|
|
@@ -48,6 +49,8 @@ import type {
|
|
|
48
49
|
AssetHubWestendRuntimeOriginCaller,
|
|
49
50
|
PalletMultisigTimepoint,
|
|
50
51
|
AssetHubWestendRuntimeProxyType,
|
|
52
|
+
PalletMetaTxMetaTx,
|
|
53
|
+
AssetHubWestendRuntimeRuntimeParameters,
|
|
51
54
|
PalletUniquesDestroyWitness,
|
|
52
55
|
PalletNftsCollectionConfig,
|
|
53
56
|
PalletNftsDestroyWitness,
|
|
@@ -63,6 +66,7 @@ import type {
|
|
|
63
66
|
PalletNftsPreSignedAttributes,
|
|
64
67
|
AssetsCommonLocalAndForeignAssetsForeignAssetReserveData,
|
|
65
68
|
FrameSupportScheduleDispatchTime,
|
|
69
|
+
PalletPsmCircuitBreakerLevel,
|
|
66
70
|
PalletStateTrieMigrationMigrationLimits,
|
|
67
71
|
PalletStateTrieMigrationMigrationTask,
|
|
68
72
|
PalletStateTrieMigrationProgress,
|
|
@@ -3885,6 +3889,71 @@ export interface ChainTx<
|
|
|
3885
3889
|
**/
|
|
3886
3890
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3887
3891
|
};
|
|
3892
|
+
/**
|
|
3893
|
+
* Pallet `MetaTx`'s transaction calls
|
|
3894
|
+
**/
|
|
3895
|
+
metaTx: {
|
|
3896
|
+
/**
|
|
3897
|
+
* Dispatch a given meta transaction.
|
|
3898
|
+
*
|
|
3899
|
+
* - `_origin`: Can be any kind of origin.
|
|
3900
|
+
* - `meta_tx`: Meta Transaction with a target call to be dispatched.
|
|
3901
|
+
* - `meta_tx_encoded_len`: The size of the encoded meta transaction in bytes.
|
|
3902
|
+
*
|
|
3903
|
+
* @param {PalletMetaTxMetaTx} metaTx
|
|
3904
|
+
* @param {number} metaTxEncodedLen
|
|
3905
|
+
**/
|
|
3906
|
+
dispatch: GenericTxCall<
|
|
3907
|
+
(
|
|
3908
|
+
metaTx: PalletMetaTxMetaTx,
|
|
3909
|
+
metaTxEncodedLen: number,
|
|
3910
|
+
) => ChainSubmittableExtrinsic<
|
|
3911
|
+
{
|
|
3912
|
+
pallet: 'MetaTx';
|
|
3913
|
+
palletCall: {
|
|
3914
|
+
name: 'Dispatch';
|
|
3915
|
+
params: { metaTx: PalletMetaTxMetaTx; metaTxEncodedLen: number };
|
|
3916
|
+
};
|
|
3917
|
+
},
|
|
3918
|
+
ChainKnownTypes
|
|
3919
|
+
>
|
|
3920
|
+
>;
|
|
3921
|
+
|
|
3922
|
+
/**
|
|
3923
|
+
* Generic pallet tx call
|
|
3924
|
+
**/
|
|
3925
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3926
|
+
};
|
|
3927
|
+
/**
|
|
3928
|
+
* Pallet `Parameters`'s transaction calls
|
|
3929
|
+
**/
|
|
3930
|
+
parameters: {
|
|
3931
|
+
/**
|
|
3932
|
+
* Set the value of a parameter.
|
|
3933
|
+
*
|
|
3934
|
+
* The dispatch origin of this call must be `AdminOrigin` for the given `key`. Values be
|
|
3935
|
+
* deleted by setting them to `None`.
|
|
3936
|
+
*
|
|
3937
|
+
* @param {AssetHubWestendRuntimeRuntimeParameters} keyValue
|
|
3938
|
+
**/
|
|
3939
|
+
setParameter: GenericTxCall<
|
|
3940
|
+
(keyValue: AssetHubWestendRuntimeRuntimeParameters) => ChainSubmittableExtrinsic<
|
|
3941
|
+
{
|
|
3942
|
+
pallet: 'Parameters';
|
|
3943
|
+
palletCall: {
|
|
3944
|
+
name: 'SetParameter';
|
|
3945
|
+
params: { keyValue: AssetHubWestendRuntimeRuntimeParameters };
|
|
3946
|
+
};
|
|
3947
|
+
},
|
|
3948
|
+
ChainKnownTypes
|
|
3949
|
+
>
|
|
3950
|
+
>;
|
|
3951
|
+
|
|
3952
|
+
/**
|
|
3953
|
+
* Generic pallet tx call
|
|
3954
|
+
**/
|
|
3955
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
3956
|
+
};
|
|
3888
3957
|
/**
|
|
3889
3958
|
* Pallet `Assets`'s transaction calls
|
|
3890
3959
|
**/
|
|
@@ -10691,6 +10760,9 @@ export interface ChainTx<
|
|
|
10691
10760
|
* This will error if the origin is already mapped or is a eth native `Address20`. It will
|
|
10692
10761
|
* take a deposit that can be released by calling [`Self::unmap_account`].
|
|
10693
10762
|
*
|
|
10763
|
+
* Noop when [`Config::AutoMap`] is enabled, as accounts are automatically mapped
|
|
10764
|
+
* on creation via [`AutoMapper`].
|
|
10765
|
+
*
|
|
10694
10766
|
**/
|
|
10695
10767
|
mapAccount: GenericTxCall<
|
|
10696
10768
|
() => ChainSubmittableExtrinsic<
|
|
@@ -10710,6 +10782,9 @@ export interface ChainTx<
|
|
|
10710
10782
|
* There is no reason to ever call this function other than freeing up the deposit.
|
|
10711
10783
|
* This is only useful when the account should no longer be used.
|
|
10712
10784
|
*
|
|
10785
|
+
* Disabled when [`Config::AutoMap`] is enabled, as accounts are automatically unmapped
|
|
10786
|
+
* on kill via [`AutoMapper`].
|
|
10787
|
+
*
|
|
10713
10788
|
**/
|
|
10714
10789
|
unmapAccount: GenericTxCall<
|
|
10715
10790
|
() => ChainSubmittableExtrinsic<
|
|
@@ -11012,6 +11087,380 @@ export interface ChainTx<
|
|
|
11012
11087
|
**/
|
|
11013
11088
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
11014
11089
|
};
|
|
11090
|
+
/**
|
|
11091
|
+
* Pallet `Psm`'s transaction calls
|
|
11092
|
+
**/
|
|
11093
|
+
psm: {
|
|
11094
|
+
/**
|
|
11095
|
+
* Swap external stablecoin for pUSD.
|
|
11096
|
+
*
|
|
11097
|
+
* ## Dispatch Origin
|
|
11098
|
+
*
|
|
11099
|
+
* Must be `Signed` by the user performing the swap.
|
|
11100
|
+
*
|
|
11101
|
+
* ## Details
|
|
11102
|
+
*
|
|
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.
|
|
11105
|
+
* The fee is calculated using ceiling rounding (`mul_ceil`), ensuring the
|
|
11106
|
+
* protocol never undercharges. The fee is transferred to [`Config::FeeDestination`].
|
|
11107
|
+
*
|
|
11108
|
+
* ## Parameters
|
|
11109
|
+
*
|
|
11110
|
+
* - `asset_id`: The external stablecoin to deposit (must be in `ExternalAssets`)
|
|
11111
|
+
* - `external_amount`: Amount of external stablecoin to deposit
|
|
11112
|
+
*
|
|
11113
|
+
* ## Errors
|
|
11114
|
+
*
|
|
11115
|
+
* - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
|
|
11116
|
+
* - [`Error::MintingStopped`]: If circuit breaker is at `MintingDisabled` or higher
|
|
11117
|
+
* - [`Error::BelowMinimumSwap`]: If `external_amount` is below [`Config::MinSwapAmount`]
|
|
11118
|
+
* - [`Error::ExceedsMaxIssuance`]: If minting would exceed system-wide pUSD issuance cap
|
|
11119
|
+
* - [`Error::ExceedsMaxPsmDebt`]: If minting would exceed PSM debt ceiling (aggregate or
|
|
11120
|
+
* per-asset)
|
|
11121
|
+
*
|
|
11122
|
+
* ## Events
|
|
11123
|
+
*
|
|
11124
|
+
* - [`Event::Minted`]: Emitted on successful mint
|
|
11125
|
+
*
|
|
11126
|
+
* @param {number} assetId
|
|
11127
|
+
* @param {bigint} externalAmount
|
|
11128
|
+
**/
|
|
11129
|
+
mint: GenericTxCall<
|
|
11130
|
+
(
|
|
11131
|
+
assetId: number,
|
|
11132
|
+
externalAmount: bigint,
|
|
11133
|
+
) => ChainSubmittableExtrinsic<
|
|
11134
|
+
{
|
|
11135
|
+
pallet: 'Psm';
|
|
11136
|
+
palletCall: {
|
|
11137
|
+
name: 'Mint';
|
|
11138
|
+
params: { assetId: number; externalAmount: bigint };
|
|
11139
|
+
};
|
|
11140
|
+
},
|
|
11141
|
+
ChainKnownTypes
|
|
11142
|
+
>
|
|
11143
|
+
>;
|
|
11144
|
+
|
|
11145
|
+
/**
|
|
11146
|
+
* Swap pUSD for external stablecoin.
|
|
11147
|
+
*
|
|
11148
|
+
* ## Dispatch Origin
|
|
11149
|
+
*
|
|
11150
|
+
* Must be `Signed` by the user performing the swap.
|
|
11151
|
+
*
|
|
11152
|
+
* ## Details
|
|
11153
|
+
*
|
|
11154
|
+
* Burns `pusd_amount` pUSD from the caller minus fee (transferred to
|
|
11155
|
+
* [`Config::FeeDestination`]), then transfers the resulting amount in external
|
|
11156
|
+
* stablecoin from PSM to the caller. The fee is calculated using ceiling rounding
|
|
11157
|
+
* (`mul_ceil`), ensuring the protocol never undercharges.
|
|
11158
|
+
*
|
|
11159
|
+
* ## Parameters
|
|
11160
|
+
*
|
|
11161
|
+
* - `asset_id`: The external stablecoin to receive (must be in `ExternalAssets`)
|
|
11162
|
+
* - `pusd_amount`: Amount of pUSD to redeem
|
|
11163
|
+
*
|
|
11164
|
+
* ## Errors
|
|
11165
|
+
*
|
|
11166
|
+
* - [`Error::UnsupportedAsset`]: If `asset_id` is not an approved external stablecoin
|
|
11167
|
+
* - [`Error::AllSwapsStopped`]: If circuit breaker is at `AllDisabled`
|
|
11168
|
+
* - [`Error::BelowMinimumSwap`]: If `pusd_amount` is below [`Config::MinSwapAmount`]
|
|
11169
|
+
* - [`Error::InsufficientReserve`]: If PSM has insufficient external stablecoin
|
|
11170
|
+
*
|
|
11171
|
+
* ## Events
|
|
11172
|
+
*
|
|
11173
|
+
* - [`Event::Redeemed`]: Emitted on successful redemption
|
|
11174
|
+
*
|
|
11175
|
+
* @param {number} assetId
|
|
11176
|
+
* @param {bigint} pusdAmount
|
|
11177
|
+
**/
|
|
11178
|
+
redeem: GenericTxCall<
|
|
11179
|
+
(
|
|
11180
|
+
assetId: number,
|
|
11181
|
+
pusdAmount: bigint,
|
|
11182
|
+
) => ChainSubmittableExtrinsic<
|
|
11183
|
+
{
|
|
11184
|
+
pallet: 'Psm';
|
|
11185
|
+
palletCall: {
|
|
11186
|
+
name: 'Redeem';
|
|
11187
|
+
params: { assetId: number; pusdAmount: bigint };
|
|
11188
|
+
};
|
|
11189
|
+
},
|
|
11190
|
+
ChainKnownTypes
|
|
11191
|
+
>
|
|
11192
|
+
>;
|
|
11193
|
+
|
|
11194
|
+
/**
|
|
11195
|
+
* Set the minting fee for a specific asset (external → pUSD).
|
|
11196
|
+
*
|
|
11197
|
+
* ## Dispatch Origin
|
|
11198
|
+
*
|
|
11199
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11200
|
+
*
|
|
11201
|
+
* ## Parameters
|
|
11202
|
+
*
|
|
11203
|
+
* - `asset_id`: The external stablecoin to configure
|
|
11204
|
+
* - `fee`: The new minting fee as a Permill
|
|
11205
|
+
*
|
|
11206
|
+
* ## Events
|
|
11207
|
+
*
|
|
11208
|
+
* - [`Event::MintingFeeUpdated`]: Emitted with old and new values
|
|
11209
|
+
*
|
|
11210
|
+
* @param {number} assetId
|
|
11211
|
+
* @param {Permill} fee
|
|
11212
|
+
**/
|
|
11213
|
+
setMintingFee: GenericTxCall<
|
|
11214
|
+
(
|
|
11215
|
+
assetId: number,
|
|
11216
|
+
fee: Permill,
|
|
11217
|
+
) => ChainSubmittableExtrinsic<
|
|
11218
|
+
{
|
|
11219
|
+
pallet: 'Psm';
|
|
11220
|
+
palletCall: {
|
|
11221
|
+
name: 'SetMintingFee';
|
|
11222
|
+
params: { assetId: number; fee: Permill };
|
|
11223
|
+
};
|
|
11224
|
+
},
|
|
11225
|
+
ChainKnownTypes
|
|
11226
|
+
>
|
|
11227
|
+
>;
|
|
11228
|
+
|
|
11229
|
+
/**
|
|
11230
|
+
* Set the redemption fee for a specific asset (pUSD → external).
|
|
11231
|
+
*
|
|
11232
|
+
* ## Dispatch Origin
|
|
11233
|
+
*
|
|
11234
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11235
|
+
*
|
|
11236
|
+
* ## Parameters
|
|
11237
|
+
*
|
|
11238
|
+
* - `asset_id`: The external stablecoin to configure
|
|
11239
|
+
* - `fee`: The new redemption fee as a Permill
|
|
11240
|
+
*
|
|
11241
|
+
* ## Events
|
|
11242
|
+
*
|
|
11243
|
+
* - [`Event::RedemptionFeeUpdated`]: Emitted with old and new values
|
|
11244
|
+
*
|
|
11245
|
+
* @param {number} assetId
|
|
11246
|
+
* @param {Permill} fee
|
|
11247
|
+
**/
|
|
11248
|
+
setRedemptionFee: GenericTxCall<
|
|
11249
|
+
(
|
|
11250
|
+
assetId: number,
|
|
11251
|
+
fee: Permill,
|
|
11252
|
+
) => ChainSubmittableExtrinsic<
|
|
11253
|
+
{
|
|
11254
|
+
pallet: 'Psm';
|
|
11255
|
+
palletCall: {
|
|
11256
|
+
name: 'SetRedemptionFee';
|
|
11257
|
+
params: { assetId: number; fee: Permill };
|
|
11258
|
+
};
|
|
11259
|
+
},
|
|
11260
|
+
ChainKnownTypes
|
|
11261
|
+
>
|
|
11262
|
+
>;
|
|
11263
|
+
|
|
11264
|
+
/**
|
|
11265
|
+
* Set the maximum PSM debt as a percentage of total maximum issuance.
|
|
11266
|
+
*
|
|
11267
|
+
* ## Dispatch Origin
|
|
11268
|
+
*
|
|
11269
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11270
|
+
*
|
|
11271
|
+
* ## Events
|
|
11272
|
+
*
|
|
11273
|
+
* - [`Event::MaxPsmDebtOfTotalUpdated`]: Emitted with old and new values
|
|
11274
|
+
*
|
|
11275
|
+
* @param {Permill} ratio
|
|
11276
|
+
**/
|
|
11277
|
+
setMaxPsmDebt: GenericTxCall<
|
|
11278
|
+
(ratio: Permill) => ChainSubmittableExtrinsic<
|
|
11279
|
+
{
|
|
11280
|
+
pallet: 'Psm';
|
|
11281
|
+
palletCall: {
|
|
11282
|
+
name: 'SetMaxPsmDebt';
|
|
11283
|
+
params: { ratio: Permill };
|
|
11284
|
+
};
|
|
11285
|
+
},
|
|
11286
|
+
ChainKnownTypes
|
|
11287
|
+
>
|
|
11288
|
+
>;
|
|
11289
|
+
|
|
11290
|
+
/**
|
|
11291
|
+
* Set the circuit breaker status for a specific external asset.
|
|
11292
|
+
*
|
|
11293
|
+
* ## Dispatch Origin
|
|
11294
|
+
*
|
|
11295
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11296
|
+
*
|
|
11297
|
+
* ## Details
|
|
11298
|
+
*
|
|
11299
|
+
* Controls which operations are allowed for this asset:
|
|
11300
|
+
* - [`CircuitBreakerLevel::AllEnabled`]: All swaps allowed
|
|
11301
|
+
* - [`CircuitBreakerLevel::MintingDisabled`]: Only redemptions allowed (useful for
|
|
11302
|
+
* draining debt)
|
|
11303
|
+
* - [`CircuitBreakerLevel::AllDisabled`]: No swaps allowed
|
|
11304
|
+
*
|
|
11305
|
+
* ## Parameters
|
|
11306
|
+
*
|
|
11307
|
+
* - `asset_id`: The external stablecoin to configure
|
|
11308
|
+
* - `status`: The new circuit breaker level for this asset
|
|
11309
|
+
*
|
|
11310
|
+
* ## Errors
|
|
11311
|
+
*
|
|
11312
|
+
* - [`Error::AssetNotApproved`]: If the asset is not in the approved list
|
|
11313
|
+
*
|
|
11314
|
+
* ## Events
|
|
11315
|
+
*
|
|
11316
|
+
* - [`Event::AssetStatusUpdated`]: Emitted with the asset ID and new status
|
|
11317
|
+
*
|
|
11318
|
+
* @param {number} assetId
|
|
11319
|
+
* @param {PalletPsmCircuitBreakerLevel} status
|
|
11320
|
+
**/
|
|
11321
|
+
setAssetStatus: GenericTxCall<
|
|
11322
|
+
(
|
|
11323
|
+
assetId: number,
|
|
11324
|
+
status: PalletPsmCircuitBreakerLevel,
|
|
11325
|
+
) => ChainSubmittableExtrinsic<
|
|
11326
|
+
{
|
|
11327
|
+
pallet: 'Psm';
|
|
11328
|
+
palletCall: {
|
|
11329
|
+
name: 'SetAssetStatus';
|
|
11330
|
+
params: { assetId: number; status: PalletPsmCircuitBreakerLevel };
|
|
11331
|
+
};
|
|
11332
|
+
},
|
|
11333
|
+
ChainKnownTypes
|
|
11334
|
+
>
|
|
11335
|
+
>;
|
|
11336
|
+
|
|
11337
|
+
/**
|
|
11338
|
+
* Set the per-asset debt ceiling weight.
|
|
11339
|
+
*
|
|
11340
|
+
* ## Dispatch Origin
|
|
11341
|
+
*
|
|
11342
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11343
|
+
*
|
|
11344
|
+
* ## Details
|
|
11345
|
+
*
|
|
11346
|
+
* Ratios act as weights normalized against the sum of all asset weights:
|
|
11347
|
+
* `max_asset_debt = (ratio / sum_of_all_ratios) * MaxPsmDebtOfTotal * MaximumIssuance`
|
|
11348
|
+
*
|
|
11349
|
+
* With a single asset, the weight always normalizes to 100% of the PSM
|
|
11350
|
+
* ceiling.
|
|
11351
|
+
*
|
|
11352
|
+
* ## Parameters
|
|
11353
|
+
*
|
|
11354
|
+
* - `asset_id`: The external stablecoin to configure
|
|
11355
|
+
* - `ratio`: Weight for this asset's share of the total PSM ceiling
|
|
11356
|
+
*
|
|
11357
|
+
* ## Events
|
|
11358
|
+
*
|
|
11359
|
+
* - [`Event::AssetCeilingWeightUpdated`]: Emitted with old and new values
|
|
11360
|
+
*
|
|
11361
|
+
* @param {number} assetId
|
|
11362
|
+
* @param {Permill} weight
|
|
11363
|
+
**/
|
|
11364
|
+
setAssetCeilingWeight: GenericTxCall<
|
|
11365
|
+
(
|
|
11366
|
+
assetId: number,
|
|
11367
|
+
weight: Permill,
|
|
11368
|
+
) => ChainSubmittableExtrinsic<
|
|
11369
|
+
{
|
|
11370
|
+
pallet: 'Psm';
|
|
11371
|
+
palletCall: {
|
|
11372
|
+
name: 'SetAssetCeilingWeight';
|
|
11373
|
+
params: { assetId: number; weight: Permill };
|
|
11374
|
+
};
|
|
11375
|
+
},
|
|
11376
|
+
ChainKnownTypes
|
|
11377
|
+
>
|
|
11378
|
+
>;
|
|
11379
|
+
|
|
11380
|
+
/**
|
|
11381
|
+
* Add an external stablecoin to the approved list.
|
|
11382
|
+
*
|
|
11383
|
+
* ## Dispatch Origin
|
|
11384
|
+
*
|
|
11385
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11386
|
+
*
|
|
11387
|
+
* ## Parameters
|
|
11388
|
+
*
|
|
11389
|
+
* - `asset_id`: The external stablecoin to add
|
|
11390
|
+
*
|
|
11391
|
+
* ## Errors
|
|
11392
|
+
*
|
|
11393
|
+
* - [`Error::AssetAlreadyApproved`]: If the asset is already in the approved list
|
|
11394
|
+
*
|
|
11395
|
+
* ## Events
|
|
11396
|
+
*
|
|
11397
|
+
* - [`Event::ExternalAssetAdded`]: Emitted on successful addition
|
|
11398
|
+
*
|
|
11399
|
+
* @param {number} assetId
|
|
11400
|
+
**/
|
|
11401
|
+
addExternalAsset: GenericTxCall<
|
|
11402
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
11403
|
+
{
|
|
11404
|
+
pallet: 'Psm';
|
|
11405
|
+
palletCall: {
|
|
11406
|
+
name: 'AddExternalAsset';
|
|
11407
|
+
params: { assetId: number };
|
|
11408
|
+
};
|
|
11409
|
+
},
|
|
11410
|
+
ChainKnownTypes
|
|
11411
|
+
>
|
|
11412
|
+
>;
|
|
11413
|
+
|
|
11414
|
+
/**
|
|
11415
|
+
* Remove an external stablecoin from the approved list.
|
|
11416
|
+
*
|
|
11417
|
+
* ## Dispatch Origin
|
|
11418
|
+
*
|
|
11419
|
+
* Must be [`Config::ManagerOrigin`].
|
|
11420
|
+
*
|
|
11421
|
+
* ## Details
|
|
11422
|
+
*
|
|
11423
|
+
* The asset cannot be removed if it has non-zero PSM debt outstanding.
|
|
11424
|
+
* This prevents orphaned debt that cannot be redeemed.
|
|
11425
|
+
*
|
|
11426
|
+
* Upon removal, the associated configuration is also cleaned up:
|
|
11427
|
+
* - `MintingFee` for this asset
|
|
11428
|
+
* - `RedemptionFee` for this asset
|
|
11429
|
+
* - `AssetCeilingWeight` for this asset
|
|
11430
|
+
*
|
|
11431
|
+
* ## Parameters
|
|
11432
|
+
*
|
|
11433
|
+
* - `asset_id`: The external stablecoin to remove
|
|
11434
|
+
*
|
|
11435
|
+
* ## Errors
|
|
11436
|
+
*
|
|
11437
|
+
* - [`Error::AssetNotApproved`]: If the asset is not in the approved list
|
|
11438
|
+
* - [`Error::AssetHasDebt`]: If the asset has non-zero PSM debt
|
|
11439
|
+
*
|
|
11440
|
+
* ## Events
|
|
11441
|
+
*
|
|
11442
|
+
* - [`Event::ExternalAssetRemoved`]: Emitted on successful removal
|
|
11443
|
+
*
|
|
11444
|
+
* @param {number} assetId
|
|
11445
|
+
**/
|
|
11446
|
+
removeExternalAsset: GenericTxCall<
|
|
11447
|
+
(assetId: number) => ChainSubmittableExtrinsic<
|
|
11448
|
+
{
|
|
11449
|
+
pallet: 'Psm';
|
|
11450
|
+
palletCall: {
|
|
11451
|
+
name: 'RemoveExternalAsset';
|
|
11452
|
+
params: { assetId: number };
|
|
11453
|
+
};
|
|
11454
|
+
},
|
|
11455
|
+
ChainKnownTypes
|
|
11456
|
+
>
|
|
11457
|
+
>;
|
|
11458
|
+
|
|
11459
|
+
/**
|
|
11460
|
+
* Generic pallet tx call
|
|
11461
|
+
**/
|
|
11462
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
11463
|
+
};
|
|
11015
11464
|
/**
|
|
11016
11465
|
* Pallet `StateTrieMigration`'s transaction calls
|
|
11017
11466
|
**/
|
|
@@ -11861,9 +12310,10 @@ export interface ChainTx<
|
|
|
11861
12310
|
>;
|
|
11862
12311
|
|
|
11863
12312
|
/**
|
|
11864
|
-
*
|
|
11865
|
-
*
|
|
11866
|
-
*
|
|
12313
|
+
* Clamps a validator's commission to the `[MinCommission, MaxCommission]` range.
|
|
12314
|
+
*
|
|
12315
|
+
* Named `force_apply_min_commission` for legacy reasons — it also enforces the
|
|
12316
|
+
* maximum. Any account can call this.
|
|
11867
12317
|
*
|
|
11868
12318
|
* @param {AccountId32Like} validatorStash
|
|
11869
12319
|
**/
|
|
@@ -11920,6 +12370,10 @@ export interface ChainTx<
|
|
|
11920
12370
|
* and so it should not be assumed the highest staker would be on the topmost page and vice
|
|
11921
12371
|
* versa. If rewards are not claimed in [`Config::HistoryDepth`] eras, they are lost.
|
|
11922
12372
|
*
|
|
12373
|
+
* The validator's own reward (commission + own-stake share) is prorated across pages
|
|
12374
|
+
* proportional to each page's stake. The full validator reward is the sum across all
|
|
12375
|
+
* pages.
|
|
12376
|
+
*
|
|
11923
12377
|
* @param {AccountId32Like} validatorStash
|
|
11924
12378
|
* @param {number} era
|
|
11925
12379
|
* @param {number} page
|
|
@@ -12135,6 +12589,26 @@ export interface ChainTx<
|
|
|
12135
12589
|
>
|
|
12136
12590
|
>;
|
|
12137
12591
|
|
|
12592
|
+
/**
|
|
12593
|
+
* Sets the maximum commission that validators can set.
|
|
12594
|
+
*
|
|
12595
|
+
* The dispatch origin must be `T::AdminOrigin`.
|
|
12596
|
+
*
|
|
12597
|
+
* @param {Perbill} new_
|
|
12598
|
+
**/
|
|
12599
|
+
setMaxCommission: GenericTxCall<
|
|
12600
|
+
(new_: Perbill) => ChainSubmittableExtrinsic<
|
|
12601
|
+
{
|
|
12602
|
+
pallet: 'Staking';
|
|
12603
|
+
palletCall: {
|
|
12604
|
+
name: 'SetMaxCommission';
|
|
12605
|
+
params: { new: Perbill };
|
|
12606
|
+
};
|
|
12607
|
+
},
|
|
12608
|
+
ChainKnownTypes
|
|
12609
|
+
>
|
|
12610
|
+
>;
|
|
12611
|
+
|
|
12138
12612
|
/**
|
|
12139
12613
|
* Generic pallet tx call
|
|
12140
12614
|
**/
|
|
@@ -14726,6 +15200,36 @@ export interface ChainTx<
|
|
|
14726
15200
|
**/
|
|
14727
15201
|
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
14728
15202
|
};
|
|
15203
|
+
/**
|
|
15204
|
+
* Pallet `Dap`'s transaction calls
|
|
15205
|
+
**/
|
|
15206
|
+
dap: {
|
|
15207
|
+
/**
|
|
15208
|
+
* Set the budget allocation map.
|
|
15209
|
+
*
|
|
15210
|
+
* Each key must match a registered `BudgetRecipient`. The sum of all percentages
|
|
15211
|
+
* must be exactly 100%. Recipients not included in the map receive nothing.
|
|
15212
|
+
*
|
|
15213
|
+
* @param {Array<[BytesLike, Perbill]>} newAllocations
|
|
15214
|
+
**/
|
|
15215
|
+
setBudgetAllocation: GenericTxCall<
|
|
15216
|
+
(newAllocations: Array<[BytesLike, Perbill]>) => ChainSubmittableExtrinsic<
|
|
15217
|
+
{
|
|
15218
|
+
pallet: 'Dap';
|
|
15219
|
+
palletCall: {
|
|
15220
|
+
name: 'SetBudgetAllocation';
|
|
15221
|
+
params: { newAllocations: Array<[BytesLike, Perbill]> };
|
|
15222
|
+
};
|
|
15223
|
+
},
|
|
15224
|
+
ChainKnownTypes
|
|
15225
|
+
>
|
|
15226
|
+
>;
|
|
15227
|
+
|
|
15228
|
+
/**
|
|
15229
|
+
* Generic pallet tx call
|
|
15230
|
+
**/
|
|
15231
|
+
[callName: string]: GenericTxCall<TxCall<ChainKnownTypes>>;
|
|
15232
|
+
};
|
|
14729
15233
|
/**
|
|
14730
15234
|
* Pallet `AssetConversionMigration`'s transaction calls
|
|
14731
15235
|
**/
|