@dedot/chaintypes 0.243.0 → 0.245.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/hydration/errors.d.ts +20 -0
- package/hydration/events.d.ts +50 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +79 -0
- package/hydration/tx.d.ts +136 -0
- package/hydration/types.d.ts +125 -8
- package/kusama/errors.d.ts +5 -0
- package/kusama/events.d.ts +99 -16
- package/kusama/index.d.ts +1 -1
- package/kusama/query.d.ts +85 -46
- package/kusama/runtime.d.ts +90 -79
- package/kusama/tx.d.ts +105 -32
- package/kusama/types.d.ts +307 -209
- package/kusama-asset-hub/consts.d.ts +45 -0
- package/kusama-asset-hub/errors.d.ts +156 -0
- package/kusama-asset-hub/events.d.ts +234 -5
- package/kusama-asset-hub/index.d.ts +3 -1
- package/kusama-asset-hub/query.d.ts +230 -16
- package/kusama-asset-hub/runtime.d.ts +11 -6
- package/kusama-asset-hub/tx.d.ts +650 -1
- package/kusama-asset-hub/types.d.ts +1225 -146
- package/kusama-asset-hub/view-functions.d.ts +195 -2
- package/kusama-people/events.d.ts +64 -1
- package/kusama-people/index.d.ts +1 -1
- package/kusama-people/query.d.ts +36 -16
- package/kusama-people/runtime.d.ts +9 -5
- package/kusama-people/types.d.ts +67 -21
- package/package.json +2 -2
package/hydration/errors.d.ts
CHANGED
|
@@ -1483,6 +1483,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1483
1483
|
**/
|
|
1484
1484
|
ProtocolFeeNotConsumed: GenericPalletError;
|
|
1485
1485
|
|
|
1486
|
+
/**
|
|
1487
|
+
* Slip fee configuration exceeds the allowed maximum (50%).
|
|
1488
|
+
**/
|
|
1489
|
+
MaxSlipFeeTooHigh: GenericPalletError;
|
|
1490
|
+
|
|
1486
1491
|
/**
|
|
1487
1492
|
* Generic pallet error
|
|
1488
1493
|
**/
|
|
@@ -1870,6 +1875,21 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
1870
1875
|
**/
|
|
1871
1876
|
DepositLimitExceededForWhitelistedAccount: GenericPalletError;
|
|
1872
1877
|
|
|
1878
|
+
/**
|
|
1879
|
+
* Global lockdown is active and withdrawals that participate in the global limit are blocked.
|
|
1880
|
+
**/
|
|
1881
|
+
WithdrawLockdownActive: GenericPalletError;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Applying the increment would exceed the configured global limit -> lockdown is triggered and operation fails.
|
|
1885
|
+
**/
|
|
1886
|
+
GlobalWithdrawLimitExceeded: GenericPalletError;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Asset to withdraw cannot be converted to reference currency.
|
|
1890
|
+
**/
|
|
1891
|
+
FailedToConvertAsset: GenericPalletError;
|
|
1892
|
+
|
|
1873
1893
|
/**
|
|
1874
1894
|
* Generic pallet error
|
|
1875
1895
|
**/
|
package/hydration/events.d.ts
CHANGED
|
@@ -34,7 +34,9 @@ import type {
|
|
|
34
34
|
HydradxRuntimeXcmAssetLocation,
|
|
35
35
|
PalletClaimsEthereumAddress,
|
|
36
36
|
PalletOmnipoolTradability,
|
|
37
|
+
PalletOmnipoolSlipFeeConfig,
|
|
37
38
|
PalletLiquidityMiningLoyaltyCurve,
|
|
39
|
+
PalletCircuitBreakerGlobalAssetCategory,
|
|
38
40
|
PalletDynamicFeesAssetFeeConfig,
|
|
39
41
|
NonZeroU16,
|
|
40
42
|
PalletStableswapPoolPegInfo,
|
|
@@ -1838,6 +1840,11 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
1838
1840
|
**/
|
|
1839
1841
|
AssetWeightCapUpdated: GenericPalletEvent<'Omnipool', 'AssetWeightCapUpdated', { assetId: number; cap: Permill }>;
|
|
1840
1842
|
|
|
1843
|
+
/**
|
|
1844
|
+
* Slip fee configuration was updated.
|
|
1845
|
+
**/
|
|
1846
|
+
SlipFeeSet: GenericPalletEvent<'Omnipool', 'SlipFeeSet', { slipFee?: PalletOmnipoolSlipFeeConfig | undefined }>;
|
|
1847
|
+
|
|
1841
1848
|
/**
|
|
1842
1849
|
* Generic pallet event
|
|
1843
1850
|
**/
|
|
@@ -2188,6 +2195,49 @@ export interface ChainEvents extends GenericChainEvents {
|
|
|
2188
2195
|
**/
|
|
2189
2196
|
DepositReleased: GenericPalletEvent<'CircuitBreaker', 'DepositReleased', { who: AccountId32; assetId: number }>;
|
|
2190
2197
|
|
|
2198
|
+
/**
|
|
2199
|
+
* Global withdraw lockdown was lifted (either automatically or by reset).
|
|
2200
|
+
**/
|
|
2201
|
+
WithdrawLockdownLifted: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownLifted', null>;
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* Withdraw lockdown accumulator and states were reset by governance.
|
|
2205
|
+
**/
|
|
2206
|
+
WithdrawLockdownReset: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownReset', null>;
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Global withdraw limit config parameters were updated.
|
|
2210
|
+
**/
|
|
2211
|
+
WithdrawLimitConfigUpdated: GenericPalletEvent<
|
|
2212
|
+
'CircuitBreaker',
|
|
2213
|
+
'WithdrawLimitConfigUpdated',
|
|
2214
|
+
{ limit: bigint; window: bigint }
|
|
2215
|
+
>;
|
|
2216
|
+
|
|
2217
|
+
/**
|
|
2218
|
+
* Global withdraw lockdown was set by governance.
|
|
2219
|
+
**/
|
|
2220
|
+
WithdrawLockdownTriggered: GenericPalletEvent<'CircuitBreaker', 'WithdrawLockdownTriggered', { until: bigint }>;
|
|
2221
|
+
|
|
2222
|
+
/**
|
|
2223
|
+
* A number of egress accounts added to a list.
|
|
2224
|
+
**/
|
|
2225
|
+
EgressAccountsAdded: GenericPalletEvent<'CircuitBreaker', 'EgressAccountsAdded', { count: number }>;
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* A number of egress accounts removed from a list.
|
|
2229
|
+
**/
|
|
2230
|
+
EgressAccountsRemoved: GenericPalletEvent<'CircuitBreaker', 'EgressAccountsRemoved', { count: number }>;
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Asset category override updated.
|
|
2234
|
+
**/
|
|
2235
|
+
AssetCategoryUpdated: GenericPalletEvent<
|
|
2236
|
+
'CircuitBreaker',
|
|
2237
|
+
'AssetCategoryUpdated',
|
|
2238
|
+
{ assetId: number; category?: PalletCircuitBreakerGlobalAssetCategory | undefined }
|
|
2239
|
+
>;
|
|
2240
|
+
|
|
2191
2241
|
/**
|
|
2192
2242
|
* Generic pallet event
|
|
2193
2243
|
**/
|
package/hydration/index.d.ts
CHANGED
package/hydration/query.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ import type {
|
|
|
64
64
|
PalletOmnipoolAssetState,
|
|
65
65
|
PalletOmnipoolTradability,
|
|
66
66
|
PalletOmnipoolPosition,
|
|
67
|
+
PalletOmnipoolSlipFeeConfig,
|
|
68
|
+
HydraDxMathOmnipoolTypesSignedBalance,
|
|
67
69
|
PalletLiquidityMiningGlobalFarmData,
|
|
68
70
|
PalletLiquidityMiningYieldFarmData,
|
|
69
71
|
PalletLiquidityMiningDepositData,
|
|
@@ -71,6 +73,8 @@ import type {
|
|
|
71
73
|
PalletCircuitBreakerTradeVolumeLimit,
|
|
72
74
|
PalletCircuitBreakerLiquidityLimit,
|
|
73
75
|
PalletCircuitBreakerLockdownStatus,
|
|
76
|
+
PalletCircuitBreakerGlobalWithdrawLimitParameters,
|
|
77
|
+
PalletCircuitBreakerGlobalAssetCategory,
|
|
74
78
|
HydradxTraitsRouterTrade,
|
|
75
79
|
HydradxTraitsRouterAssetPair,
|
|
76
80
|
PalletDynamicFeesFeeEntry,
|
|
@@ -1342,6 +1346,34 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1342
1346
|
**/
|
|
1343
1347
|
nextPositionId: GenericStorageQuery<() => bigint>;
|
|
1344
1348
|
|
|
1349
|
+
/**
|
|
1350
|
+
* Global slip fee configuration.
|
|
1351
|
+
* `None` = slip fees disabled (default). `Some(config)` = enabled.
|
|
1352
|
+
* Set via `set_slip_fee` extrinsic (governance).
|
|
1353
|
+
*
|
|
1354
|
+
* @param {Callback<PalletOmnipoolSlipFeeConfig | undefined> =} callback
|
|
1355
|
+
**/
|
|
1356
|
+
slipFee: GenericStorageQuery<() => PalletOmnipoolSlipFeeConfig | undefined>;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Snapshot of each asset's hub_reserve at the start of the current block.
|
|
1360
|
+
* Lazily populated on first trade per asset per block, cleared in on_finalize.
|
|
1361
|
+
*
|
|
1362
|
+
* @param {number} arg
|
|
1363
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1364
|
+
**/
|
|
1365
|
+
slipFeeHubReserveAtBlockStart: GenericStorageQuery<(arg: number) => bigint | undefined, number>;
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Cumulative net hub asset delta per asset in the current block.
|
|
1369
|
+
* Negative = net hub asset outflow, positive = net hub asset inflow.
|
|
1370
|
+
* Cleared in on_finalize.
|
|
1371
|
+
*
|
|
1372
|
+
* @param {number} arg
|
|
1373
|
+
* @param {Callback<HydraDxMathOmnipoolTypesSignedBalance> =} callback
|
|
1374
|
+
**/
|
|
1375
|
+
slipFeeDelta: GenericStorageQuery<(arg: number) => HydraDxMathOmnipoolTypesSignedBalance, number>;
|
|
1376
|
+
|
|
1345
1377
|
/**
|
|
1346
1378
|
* Generic pallet storage query
|
|
1347
1379
|
**/
|
|
@@ -1550,6 +1582,53 @@ export interface ChainStorage extends GenericChainStorage {
|
|
|
1550
1582
|
number
|
|
1551
1583
|
>;
|
|
1552
1584
|
|
|
1585
|
+
/**
|
|
1586
|
+
* Configured global withdraw limit parameters
|
|
1587
|
+
*
|
|
1588
|
+
* @param {Callback<PalletCircuitBreakerGlobalWithdrawLimitParameters | undefined> =} callback
|
|
1589
|
+
**/
|
|
1590
|
+
globalWithdrawLimitConfig: GenericStorageQuery<() => PalletCircuitBreakerGlobalWithdrawLimitParameters | undefined>;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Tuple of (current_accumulator_in_ref, last_update_timestamp_ms)
|
|
1594
|
+
*
|
|
1595
|
+
* @param {Callback<[bigint, bigint]> =} callback
|
|
1596
|
+
**/
|
|
1597
|
+
withdrawLimitAccumulator: GenericStorageQuery<() => [bigint, bigint]>;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* If some, global lockdown is active until this timestamp.
|
|
1601
|
+
*
|
|
1602
|
+
* @param {Callback<bigint | undefined> =} callback
|
|
1603
|
+
**/
|
|
1604
|
+
withdrawLockdownUntil: GenericStorageQuery<() => bigint | undefined>;
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
* A map of accounts that are considered egress sinks.
|
|
1608
|
+
*
|
|
1609
|
+
* @param {AccountId32Like} arg
|
|
1610
|
+
* @param {Callback<[] | undefined> =} callback
|
|
1611
|
+
**/
|
|
1612
|
+
egressAccounts: GenericStorageQuery<(arg: AccountId32Like) => [] | undefined, AccountId32>;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* When set to true, egress accounting is skipped.
|
|
1616
|
+
*
|
|
1617
|
+
* @param {Callback<boolean> =} callback
|
|
1618
|
+
**/
|
|
1619
|
+
ignoreWithdrawLimit: GenericStorageQuery<() => boolean>;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Overrides for global asset categorization.
|
|
1623
|
+
*
|
|
1624
|
+
* @param {number} arg
|
|
1625
|
+
* @param {Callback<PalletCircuitBreakerGlobalAssetCategory | undefined> =} callback
|
|
1626
|
+
**/
|
|
1627
|
+
globalAssetOverrides: GenericStorageQuery<
|
|
1628
|
+
(arg: number) => PalletCircuitBreakerGlobalAssetCategory | undefined,
|
|
1629
|
+
number
|
|
1630
|
+
>;
|
|
1631
|
+
|
|
1553
1632
|
/**
|
|
1554
1633
|
* Generic pallet storage query
|
|
1555
1634
|
**/
|
package/hydration/tx.d.ts
CHANGED
|
@@ -48,8 +48,11 @@ import type {
|
|
|
48
48
|
HydradxRuntimeXcmAssetLocation,
|
|
49
49
|
PalletClaimsEcdsaSignature,
|
|
50
50
|
PalletOmnipoolTradability,
|
|
51
|
+
PalletOmnipoolSlipFeeConfig,
|
|
51
52
|
PalletLiquidityMiningLoyaltyCurve,
|
|
52
53
|
HydradxTraitsStableswapAssetAmount,
|
|
54
|
+
PalletCircuitBreakerGlobalWithdrawLimitParameters,
|
|
55
|
+
PalletCircuitBreakerGlobalAssetCategory,
|
|
53
56
|
HydradxTraitsRouterTrade,
|
|
54
57
|
HydradxTraitsRouterAssetPair,
|
|
55
58
|
PalletDynamicFeesAssetFeeConfig,
|
|
@@ -6152,6 +6155,31 @@ export interface ChainTx<
|
|
|
6152
6155
|
>
|
|
6153
6156
|
>;
|
|
6154
6157
|
|
|
6158
|
+
/**
|
|
6159
|
+
* Set or clear slip fee configuration.
|
|
6160
|
+
*
|
|
6161
|
+
* When set to `Some(config)`, slip fees are enabled with the given parameters.
|
|
6162
|
+
* When set to `None`, slip fees are disabled.
|
|
6163
|
+
*
|
|
6164
|
+
* Can only be called by `UpdateTradabilityOrigin`.
|
|
6165
|
+
*
|
|
6166
|
+
* Emits `SlipFeeSet` event.
|
|
6167
|
+
*
|
|
6168
|
+
* @param {PalletOmnipoolSlipFeeConfig | undefined} slipFee
|
|
6169
|
+
**/
|
|
6170
|
+
setSlipFee: GenericTxCall<
|
|
6171
|
+
(slipFee: PalletOmnipoolSlipFeeConfig | undefined) => ChainSubmittableExtrinsic<
|
|
6172
|
+
{
|
|
6173
|
+
pallet: 'Omnipool';
|
|
6174
|
+
palletCall: {
|
|
6175
|
+
name: 'SetSlipFee';
|
|
6176
|
+
params: { slipFee: PalletOmnipoolSlipFeeConfig | undefined };
|
|
6177
|
+
};
|
|
6178
|
+
},
|
|
6179
|
+
ChainKnownTypes
|
|
6180
|
+
>
|
|
6181
|
+
>;
|
|
6182
|
+
|
|
6155
6183
|
/**
|
|
6156
6184
|
* Generic pallet tx call
|
|
6157
6185
|
**/
|
|
@@ -7359,6 +7387,114 @@ export interface ChainTx<
|
|
|
7359
7387
|
>
|
|
7360
7388
|
>;
|
|
7361
7389
|
|
|
7390
|
+
/**
|
|
7391
|
+
* Set the global withdraw limit (reference currency units)
|
|
7392
|
+
* Can be called only by authority origin.
|
|
7393
|
+
*
|
|
7394
|
+
* @param {PalletCircuitBreakerGlobalWithdrawLimitParameters} parameters
|
|
7395
|
+
**/
|
|
7396
|
+
setGlobalWithdrawLimitParams: GenericTxCall<
|
|
7397
|
+
(parameters: PalletCircuitBreakerGlobalWithdrawLimitParameters) => ChainSubmittableExtrinsic<
|
|
7398
|
+
{
|
|
7399
|
+
pallet: 'CircuitBreaker';
|
|
7400
|
+
palletCall: {
|
|
7401
|
+
name: 'SetGlobalWithdrawLimitParams';
|
|
7402
|
+
params: { parameters: PalletCircuitBreakerGlobalWithdrawLimitParameters };
|
|
7403
|
+
};
|
|
7404
|
+
},
|
|
7405
|
+
ChainKnownTypes
|
|
7406
|
+
>
|
|
7407
|
+
>;
|
|
7408
|
+
|
|
7409
|
+
/**
|
|
7410
|
+
* Reset the global lockdown and accumulator to zero at current block.
|
|
7411
|
+
* Can be called only by authority origin.
|
|
7412
|
+
*
|
|
7413
|
+
**/
|
|
7414
|
+
resetWithdrawLockdown: GenericTxCall<
|
|
7415
|
+
() => ChainSubmittableExtrinsic<
|
|
7416
|
+
{
|
|
7417
|
+
pallet: 'CircuitBreaker';
|
|
7418
|
+
palletCall: {
|
|
7419
|
+
name: 'ResetWithdrawLockdown';
|
|
7420
|
+
};
|
|
7421
|
+
},
|
|
7422
|
+
ChainKnownTypes
|
|
7423
|
+
>
|
|
7424
|
+
>;
|
|
7425
|
+
|
|
7426
|
+
/**
|
|
7427
|
+
*
|
|
7428
|
+
* @param {Array<AccountId32Like>} accounts
|
|
7429
|
+
**/
|
|
7430
|
+
addEgressAccounts: GenericTxCall<
|
|
7431
|
+
(accounts: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
|
|
7432
|
+
{
|
|
7433
|
+
pallet: 'CircuitBreaker';
|
|
7434
|
+
palletCall: {
|
|
7435
|
+
name: 'AddEgressAccounts';
|
|
7436
|
+
params: { accounts: Array<AccountId32Like> };
|
|
7437
|
+
};
|
|
7438
|
+
},
|
|
7439
|
+
ChainKnownTypes
|
|
7440
|
+
>
|
|
7441
|
+
>;
|
|
7442
|
+
|
|
7443
|
+
/**
|
|
7444
|
+
*
|
|
7445
|
+
* @param {Array<AccountId32Like>} accounts
|
|
7446
|
+
**/
|
|
7447
|
+
removeEgressAccounts: GenericTxCall<
|
|
7448
|
+
(accounts: Array<AccountId32Like>) => ChainSubmittableExtrinsic<
|
|
7449
|
+
{
|
|
7450
|
+
pallet: 'CircuitBreaker';
|
|
7451
|
+
palletCall: {
|
|
7452
|
+
name: 'RemoveEgressAccounts';
|
|
7453
|
+
params: { accounts: Array<AccountId32Like> };
|
|
7454
|
+
};
|
|
7455
|
+
},
|
|
7456
|
+
ChainKnownTypes
|
|
7457
|
+
>
|
|
7458
|
+
>;
|
|
7459
|
+
|
|
7460
|
+
/**
|
|
7461
|
+
*
|
|
7462
|
+
* @param {bigint} until
|
|
7463
|
+
**/
|
|
7464
|
+
setGlobalWithdrawLockdown: GenericTxCall<
|
|
7465
|
+
(until: bigint) => ChainSubmittableExtrinsic<
|
|
7466
|
+
{
|
|
7467
|
+
pallet: 'CircuitBreaker';
|
|
7468
|
+
palletCall: {
|
|
7469
|
+
name: 'SetGlobalWithdrawLockdown';
|
|
7470
|
+
params: { until: bigint };
|
|
7471
|
+
};
|
|
7472
|
+
},
|
|
7473
|
+
ChainKnownTypes
|
|
7474
|
+
>
|
|
7475
|
+
>;
|
|
7476
|
+
|
|
7477
|
+
/**
|
|
7478
|
+
*
|
|
7479
|
+
* @param {number} assetId
|
|
7480
|
+
* @param {PalletCircuitBreakerGlobalAssetCategory | undefined} category
|
|
7481
|
+
**/
|
|
7482
|
+
setAssetCategory: GenericTxCall<
|
|
7483
|
+
(
|
|
7484
|
+
assetId: number,
|
|
7485
|
+
category: PalletCircuitBreakerGlobalAssetCategory | undefined,
|
|
7486
|
+
) => ChainSubmittableExtrinsic<
|
|
7487
|
+
{
|
|
7488
|
+
pallet: 'CircuitBreaker';
|
|
7489
|
+
palletCall: {
|
|
7490
|
+
name: 'SetAssetCategory';
|
|
7491
|
+
params: { assetId: number; category: PalletCircuitBreakerGlobalAssetCategory | undefined };
|
|
7492
|
+
};
|
|
7493
|
+
},
|
|
7494
|
+
ChainKnownTypes
|
|
7495
|
+
>
|
|
7496
|
+
>;
|
|
7497
|
+
|
|
7362
7498
|
/**
|
|
7363
7499
|
* Generic pallet tx call
|
|
7364
7500
|
**/
|
package/hydration/types.d.ts
CHANGED
|
@@ -6841,7 +6841,18 @@ export type PalletOmnipoolCall =
|
|
|
6841
6841
|
*
|
|
6842
6842
|
* Emits `TokenRemoved` event when successful.
|
|
6843
6843
|
**/
|
|
6844
|
-
| { name: 'RemoveToken'; params: { assetId: number; beneficiary: AccountId32 } }
|
|
6844
|
+
| { name: 'RemoveToken'; params: { assetId: number; beneficiary: AccountId32 } }
|
|
6845
|
+
/**
|
|
6846
|
+
* Set or clear slip fee configuration.
|
|
6847
|
+
*
|
|
6848
|
+
* When set to `Some(config)`, slip fees are enabled with the given parameters.
|
|
6849
|
+
* When set to `None`, slip fees are disabled.
|
|
6850
|
+
*
|
|
6851
|
+
* Can only be called by `UpdateTradabilityOrigin`.
|
|
6852
|
+
*
|
|
6853
|
+
* Emits `SlipFeeSet` event.
|
|
6854
|
+
**/
|
|
6855
|
+
| { name: 'SetSlipFee'; params: { slipFee?: PalletOmnipoolSlipFeeConfig | undefined } };
|
|
6845
6856
|
|
|
6846
6857
|
export type PalletOmnipoolCallLike =
|
|
6847
6858
|
/**
|
|
@@ -7099,10 +7110,23 @@ export type PalletOmnipoolCallLike =
|
|
|
7099
7110
|
*
|
|
7100
7111
|
* Emits `TokenRemoved` event when successful.
|
|
7101
7112
|
**/
|
|
7102
|
-
| { name: 'RemoveToken'; params: { assetId: number; beneficiary: AccountId32Like } }
|
|
7113
|
+
| { name: 'RemoveToken'; params: { assetId: number; beneficiary: AccountId32Like } }
|
|
7114
|
+
/**
|
|
7115
|
+
* Set or clear slip fee configuration.
|
|
7116
|
+
*
|
|
7117
|
+
* When set to `Some(config)`, slip fees are enabled with the given parameters.
|
|
7118
|
+
* When set to `None`, slip fees are disabled.
|
|
7119
|
+
*
|
|
7120
|
+
* Can only be called by `UpdateTradabilityOrigin`.
|
|
7121
|
+
*
|
|
7122
|
+
* Emits `SlipFeeSet` event.
|
|
7123
|
+
**/
|
|
7124
|
+
| { name: 'SetSlipFee'; params: { slipFee?: PalletOmnipoolSlipFeeConfig | undefined } };
|
|
7103
7125
|
|
|
7104
7126
|
export type PalletOmnipoolTradability = { bits: number };
|
|
7105
7127
|
|
|
7128
|
+
export type PalletOmnipoolSlipFeeConfig = { maxSlipFee: Permill };
|
|
7129
|
+
|
|
7106
7130
|
/**
|
|
7107
7131
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
7108
7132
|
**/
|
|
@@ -8186,7 +8210,24 @@ export type PalletCircuitBreakerCall =
|
|
|
8186
8210
|
*
|
|
8187
8211
|
* Emits `DepositReleased` event when successful.
|
|
8188
8212
|
**/
|
|
8189
|
-
| { name: 'ReleaseDeposit'; params: { who: AccountId32; assetId: number } }
|
|
8213
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32; assetId: number } }
|
|
8214
|
+
/**
|
|
8215
|
+
* Set the global withdraw limit (reference currency units)
|
|
8216
|
+
* Can be called only by authority origin.
|
|
8217
|
+
**/
|
|
8218
|
+
| { name: 'SetGlobalWithdrawLimitParams'; params: { parameters: PalletCircuitBreakerGlobalWithdrawLimitParameters } }
|
|
8219
|
+
/**
|
|
8220
|
+
* Reset the global lockdown and accumulator to zero at current block.
|
|
8221
|
+
* Can be called only by authority origin.
|
|
8222
|
+
**/
|
|
8223
|
+
| { name: 'ResetWithdrawLockdown' }
|
|
8224
|
+
| { name: 'AddEgressAccounts'; params: { accounts: Array<AccountId32> } }
|
|
8225
|
+
| { name: 'RemoveEgressAccounts'; params: { accounts: Array<AccountId32> } }
|
|
8226
|
+
| { name: 'SetGlobalWithdrawLockdown'; params: { until: bigint } }
|
|
8227
|
+
| {
|
|
8228
|
+
name: 'SetAssetCategory';
|
|
8229
|
+
params: { assetId: number; category?: PalletCircuitBreakerGlobalAssetCategory | undefined };
|
|
8230
|
+
};
|
|
8190
8231
|
|
|
8191
8232
|
export type PalletCircuitBreakerCallLike =
|
|
8192
8233
|
/**
|
|
@@ -8267,7 +8308,28 @@ export type PalletCircuitBreakerCallLike =
|
|
|
8267
8308
|
*
|
|
8268
8309
|
* Emits `DepositReleased` event when successful.
|
|
8269
8310
|
**/
|
|
8270
|
-
| { name: 'ReleaseDeposit'; params: { who: AccountId32Like; assetId: number } }
|
|
8311
|
+
| { name: 'ReleaseDeposit'; params: { who: AccountId32Like; assetId: number } }
|
|
8312
|
+
/**
|
|
8313
|
+
* Set the global withdraw limit (reference currency units)
|
|
8314
|
+
* Can be called only by authority origin.
|
|
8315
|
+
**/
|
|
8316
|
+
| { name: 'SetGlobalWithdrawLimitParams'; params: { parameters: PalletCircuitBreakerGlobalWithdrawLimitParameters } }
|
|
8317
|
+
/**
|
|
8318
|
+
* Reset the global lockdown and accumulator to zero at current block.
|
|
8319
|
+
* Can be called only by authority origin.
|
|
8320
|
+
**/
|
|
8321
|
+
| { name: 'ResetWithdrawLockdown' }
|
|
8322
|
+
| { name: 'AddEgressAccounts'; params: { accounts: Array<AccountId32Like> } }
|
|
8323
|
+
| { name: 'RemoveEgressAccounts'; params: { accounts: Array<AccountId32Like> } }
|
|
8324
|
+
| { name: 'SetGlobalWithdrawLockdown'; params: { until: bigint } }
|
|
8325
|
+
| {
|
|
8326
|
+
name: 'SetAssetCategory';
|
|
8327
|
+
params: { assetId: number; category?: PalletCircuitBreakerGlobalAssetCategory | undefined };
|
|
8328
|
+
};
|
|
8329
|
+
|
|
8330
|
+
export type PalletCircuitBreakerGlobalWithdrawLimitParameters = { limit: bigint; window: bigint };
|
|
8331
|
+
|
|
8332
|
+
export type PalletCircuitBreakerGlobalAssetCategory = 'External' | 'Local';
|
|
8271
8333
|
|
|
8272
8334
|
/**
|
|
8273
8335
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -14811,7 +14873,11 @@ export type PalletOmnipoolEvent =
|
|
|
14811
14873
|
/**
|
|
14812
14874
|
* Asset's weight cap has been updated.
|
|
14813
14875
|
**/
|
|
14814
|
-
| { name: 'AssetWeightCapUpdated'; data: { assetId: number; cap: Permill } }
|
|
14876
|
+
| { name: 'AssetWeightCapUpdated'; data: { assetId: number; cap: Permill } }
|
|
14877
|
+
/**
|
|
14878
|
+
* Slip fee configuration was updated.
|
|
14879
|
+
**/
|
|
14880
|
+
| { name: 'SlipFeeSet'; data: { slipFee?: PalletOmnipoolSlipFeeConfig | undefined } };
|
|
14815
14881
|
|
|
14816
14882
|
/**
|
|
14817
14883
|
* The `Event` enum of this pallet
|
|
@@ -15056,7 +15122,38 @@ export type PalletCircuitBreakerEvent =
|
|
|
15056
15122
|
/**
|
|
15057
15123
|
* All reserved amount of deposit was released
|
|
15058
15124
|
**/
|
|
15059
|
-
| { name: 'DepositReleased'; data: { who: AccountId32; assetId: number } }
|
|
15125
|
+
| { name: 'DepositReleased'; data: { who: AccountId32; assetId: number } }
|
|
15126
|
+
/**
|
|
15127
|
+
* Global withdraw lockdown was lifted (either automatically or by reset).
|
|
15128
|
+
**/
|
|
15129
|
+
| { name: 'WithdrawLockdownLifted' }
|
|
15130
|
+
/**
|
|
15131
|
+
* Withdraw lockdown accumulator and states were reset by governance.
|
|
15132
|
+
**/
|
|
15133
|
+
| { name: 'WithdrawLockdownReset' }
|
|
15134
|
+
/**
|
|
15135
|
+
* Global withdraw limit config parameters were updated.
|
|
15136
|
+
**/
|
|
15137
|
+
| { name: 'WithdrawLimitConfigUpdated'; data: { limit: bigint; window: bigint } }
|
|
15138
|
+
/**
|
|
15139
|
+
* Global withdraw lockdown was set by governance.
|
|
15140
|
+
**/
|
|
15141
|
+
| { name: 'WithdrawLockdownTriggered'; data: { until: bigint } }
|
|
15142
|
+
/**
|
|
15143
|
+
* A number of egress accounts added to a list.
|
|
15144
|
+
**/
|
|
15145
|
+
| { name: 'EgressAccountsAdded'; data: { count: number } }
|
|
15146
|
+
/**
|
|
15147
|
+
* A number of egress accounts removed from a list.
|
|
15148
|
+
**/
|
|
15149
|
+
| { name: 'EgressAccountsRemoved'; data: { count: number } }
|
|
15150
|
+
/**
|
|
15151
|
+
* Asset category override updated.
|
|
15152
|
+
**/
|
|
15153
|
+
| {
|
|
15154
|
+
name: 'AssetCategoryUpdated';
|
|
15155
|
+
data: { assetId: number; category?: PalletCircuitBreakerGlobalAssetCategory | undefined };
|
|
15156
|
+
};
|
|
15060
15157
|
|
|
15061
15158
|
/**
|
|
15062
15159
|
* The `Event` enum of this pallet
|
|
@@ -18092,6 +18189,10 @@ export type PalletOmnipoolAssetState = {
|
|
|
18092
18189
|
|
|
18093
18190
|
export type PalletOmnipoolPosition = { assetId: number; amount: bigint; shares: bigint; price: [bigint, bigint] };
|
|
18094
18191
|
|
|
18192
|
+
export type HydraDxMathOmnipoolTypesSignedBalance =
|
|
18193
|
+
| { type: 'Positive'; value: bigint }
|
|
18194
|
+
| { type: 'Negative'; value: bigint };
|
|
18195
|
+
|
|
18095
18196
|
/**
|
|
18096
18197
|
* The `Error` enum of this pallet.
|
|
18097
18198
|
**/
|
|
@@ -18223,7 +18324,11 @@ export type PalletOmnipoolError =
|
|
|
18223
18324
|
/**
|
|
18224
18325
|
* Extra protocol fee has not been consumed.
|
|
18225
18326
|
**/
|
|
18226
|
-
| 'ProtocolFeeNotConsumed'
|
|
18327
|
+
| 'ProtocolFeeNotConsumed'
|
|
18328
|
+
/**
|
|
18329
|
+
* Slip fee configuration exceeds the allowed maximum (50%).
|
|
18330
|
+
**/
|
|
18331
|
+
| 'MaxSlipFeeTooHigh';
|
|
18227
18332
|
|
|
18228
18333
|
/**
|
|
18229
18334
|
* The `Error` enum of this pallet.
|
|
@@ -18614,7 +18719,19 @@ export type PalletCircuitBreakerError =
|
|
|
18614
18719
|
* Deposit limit would be exceeded for a whitelisted account.
|
|
18615
18720
|
* Operation rejected to prevent funds being locked on system accounts.
|
|
18616
18721
|
**/
|
|
18617
|
-
| 'DepositLimitExceededForWhitelistedAccount'
|
|
18722
|
+
| 'DepositLimitExceededForWhitelistedAccount'
|
|
18723
|
+
/**
|
|
18724
|
+
* Global lockdown is active and withdrawals that participate in the global limit are blocked.
|
|
18725
|
+
**/
|
|
18726
|
+
| 'WithdrawLockdownActive'
|
|
18727
|
+
/**
|
|
18728
|
+
* Applying the increment would exceed the configured global limit -> lockdown is triggered and operation fails.
|
|
18729
|
+
**/
|
|
18730
|
+
| 'GlobalWithdrawLimitExceeded'
|
|
18731
|
+
/**
|
|
18732
|
+
* Asset to withdraw cannot be converted to reference currency.
|
|
18733
|
+
**/
|
|
18734
|
+
| 'FailedToConvertAsset';
|
|
18618
18735
|
|
|
18619
18736
|
/**
|
|
18620
18737
|
* The `Error` enum of this pallet.
|
package/kusama/errors.d.ts
CHANGED
|
@@ -2983,6 +2983,11 @@ export interface ChainErrors extends GenericChainErrors {
|
|
|
2983
2983
|
**/
|
|
2984
2984
|
InvalidEquivocationProofSession: GenericPalletError;
|
|
2985
2985
|
|
|
2986
|
+
/**
|
|
2987
|
+
* The session of the equivocation proof is not in the mapping (anymore)
|
|
2988
|
+
**/
|
|
2989
|
+
InvalidEquivocationProofSessionMember: GenericPalletError;
|
|
2990
|
+
|
|
2986
2991
|
/**
|
|
2987
2992
|
* A given equivocation report is valid but already previously reported.
|
|
2988
2993
|
**/
|