@dedot/chaintypes 0.154.0 → 0.156.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 +9 -5
- package/hydration/index.d.ts +1 -1
- package/hydration/query.d.ts +7 -0
- package/hydration/tx.d.ts +42 -10
- package/hydration/types.d.ts +57 -17
- package/package.json +2 -2
- package/paseo-people/consts.d.ts +21 -0
- package/paseo-people/errors.d.ts +8 -0
- package/paseo-people/events.d.ts +22 -0
- package/paseo-people/index.d.ts +1 -1
- package/paseo-people/query.d.ts +25 -2
- package/paseo-people/runtime.d.ts +121 -0
- package/paseo-people/tx.d.ts +24 -12
- package/paseo-people/types.d.ts +1085 -967
- package/paseo-people/view-functions.d.ts +34 -1
- package/vara/index.d.ts +1 -1
- package/vara/query.d.ts +5 -12
- package/vara/runtime.d.ts +7 -7
- package/vara/tx.d.ts +2 -2
- package/vara/types.d.ts +34 -26
package/hydration/errors.d.ts
CHANGED
|
@@ -1115,6 +1115,26 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1115
1115
|
**/
|
|
1116
1116
|
[error: string]: GenericPalletError<Rv>;
|
|
1117
1117
|
};
|
|
1118
|
+
/**
|
|
1119
|
+
* Pallet `Dispatcher`'s errors
|
|
1120
|
+
**/
|
|
1121
|
+
dispatcher: {
|
|
1122
|
+
/**
|
|
1123
|
+
* The EVM call execution failed. This happens when the EVM returns an exit reason
|
|
1124
|
+
* other than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
1125
|
+
**/
|
|
1126
|
+
EvmCallFailed: GenericPalletError<Rv>;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* The provided call is not an EVM call. This extrinsic only accepts `pallet_evm::Call::call`.
|
|
1130
|
+
**/
|
|
1131
|
+
NotEvmCall: GenericPalletError<Rv>;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* Generic pallet error
|
|
1135
|
+
**/
|
|
1136
|
+
[error: string]: GenericPalletError<Rv>;
|
|
1137
|
+
};
|
|
1118
1138
|
/**
|
|
1119
1139
|
* Pallet `AssetRegistry`'s errors
|
|
1120
1140
|
**/
|
package/hydration/events.d.ts
CHANGED
|
@@ -12,8 +12,8 @@ import type {
|
|
|
12
12
|
FixedU128,
|
|
13
13
|
Permill,
|
|
14
14
|
Perquintill,
|
|
15
|
-
H160,
|
|
16
15
|
Perbill,
|
|
16
|
+
H160,
|
|
17
17
|
} from 'dedot/codecs';
|
|
18
18
|
import type {
|
|
19
19
|
FrameSupportTokensMiscBalanceStatus,
|
|
@@ -2506,7 +2506,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2506
2506
|
Rv,
|
|
2507
2507
|
'Stableswap',
|
|
2508
2508
|
'PoolMaxPegUpdateUpdated',
|
|
2509
|
-
{ poolId: number; maxPegUpdate:
|
|
2509
|
+
{ poolId: number; maxPegUpdate: Perbill }
|
|
2510
2510
|
>;
|
|
2511
2511
|
|
|
2512
2512
|
/**
|
|
@@ -2847,9 +2847,8 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2847
2847
|
*
|
|
2848
2848
|
* Parameters:
|
|
2849
2849
|
* - `asset_id`: The ID of the asset removed from collaterals
|
|
2850
|
-
* - `amount`: The amount of the asset that was returned (should be zero)
|
|
2851
2850
|
**/
|
|
2852
|
-
CollateralRemoved: GenericPalletEvent<Rv, 'HSM', 'CollateralRemoved', { assetId: number
|
|
2851
|
+
CollateralRemoved: GenericPalletEvent<Rv, 'HSM', 'CollateralRemoved', { assetId: number }>;
|
|
2853
2852
|
|
|
2854
2853
|
/**
|
|
2855
2854
|
* A collateral asset was updated
|
|
@@ -2881,7 +2880,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2881
2880
|
* - `asset_id`: The collateral asset used in the arbitrage
|
|
2882
2881
|
* - `hollar_amount`: Amount of Hollar that was included in the arbitrage operation
|
|
2883
2882
|
**/
|
|
2884
|
-
ArbitrageExecuted: GenericPalletEvent<
|
|
2883
|
+
ArbitrageExecuted: GenericPalletEvent<
|
|
2884
|
+
Rv,
|
|
2885
|
+
'HSM',
|
|
2886
|
+
'ArbitrageExecuted',
|
|
2887
|
+
{ arbitrage: number; assetId: number; hollarAmount: bigint; profit: bigint }
|
|
2888
|
+
>;
|
|
2885
2889
|
|
|
2886
2890
|
/**
|
|
2887
2891
|
* Flash minter address set
|
package/hydration/index.d.ts
CHANGED
package/hydration/query.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import type {
|
|
|
52
52
|
PalletStateTrieMigrationMigrationLimits,
|
|
53
53
|
PalletConvictionVotingVoteVoting,
|
|
54
54
|
PalletReferendaReferendumInfo,
|
|
55
|
+
EvmCoreErrorExitReason,
|
|
55
56
|
PalletAssetRegistryAssetDetails,
|
|
56
57
|
HydradxRuntimeXcmAssetLocation,
|
|
57
58
|
PalletClaimsEthereumAddress,
|
|
@@ -1136,6 +1137,12 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
1136
1137
|
**/
|
|
1137
1138
|
extraGas: GenericStorageQuery<Rv, () => bigint>;
|
|
1138
1139
|
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @param {Callback<EvmCoreErrorExitReason | undefined> =} callback
|
|
1143
|
+
**/
|
|
1144
|
+
lastEvmCallExitReason: GenericStorageQuery<Rv, () => EvmCoreErrorExitReason | undefined>;
|
|
1145
|
+
|
|
1139
1146
|
/**
|
|
1140
1147
|
* Generic pallet storage query
|
|
1141
1148
|
**/
|
package/hydration/tx.d.ts
CHANGED
|
@@ -5309,6 +5309,33 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
5309
5309
|
>
|
|
5310
5310
|
>;
|
|
5311
5311
|
|
|
5312
|
+
/**
|
|
5313
|
+
* Execute a single EVM call.
|
|
5314
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
5315
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
5316
|
+
*
|
|
5317
|
+
* Parameters:
|
|
5318
|
+
* - `origin`: Signed origin.
|
|
5319
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
5320
|
+
*
|
|
5321
|
+
* Emits `EvmCallFailed` event when failed.
|
|
5322
|
+
*
|
|
5323
|
+
* @param {HydradxRuntimeRuntimeCallLike} call
|
|
5324
|
+
**/
|
|
5325
|
+
dispatchEvmCall: GenericTxCall<
|
|
5326
|
+
Rv,
|
|
5327
|
+
(call: HydradxRuntimeRuntimeCallLike) => ChainSubmittableExtrinsic<
|
|
5328
|
+
Rv,
|
|
5329
|
+
{
|
|
5330
|
+
pallet: 'Dispatcher';
|
|
5331
|
+
palletCall: {
|
|
5332
|
+
name: 'DispatchEvmCall';
|
|
5333
|
+
params: { call: HydradxRuntimeRuntimeCallLike };
|
|
5334
|
+
};
|
|
5335
|
+
}
|
|
5336
|
+
>
|
|
5337
|
+
>;
|
|
5338
|
+
|
|
5312
5339
|
/**
|
|
5313
5340
|
* Generic pallet tx call
|
|
5314
5341
|
**/
|
|
@@ -7426,7 +7453,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7426
7453
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
7427
7454
|
*
|
|
7428
7455
|
* # Arguments
|
|
7429
|
-
* * `origin` -
|
|
7456
|
+
* * `origin` - Authority origin required
|
|
7430
7457
|
* * `asset_id` - The asset ID to configure
|
|
7431
7458
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
7432
7459
|
*
|
|
@@ -7457,7 +7484,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7457
7484
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
7458
7485
|
*
|
|
7459
7486
|
* # Arguments
|
|
7460
|
-
* * `origin` -
|
|
7487
|
+
* * `origin` - Authority origin required
|
|
7461
7488
|
* * `asset_id` - The asset ID to remove configuration for
|
|
7462
7489
|
*
|
|
7463
7490
|
* @param {number} assetId
|
|
@@ -8131,7 +8158,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8131
8158
|
* @param {number} amplification
|
|
8132
8159
|
* @param {Permill} fee
|
|
8133
8160
|
* @param {Array<PalletStableswapPegSource>} pegSource
|
|
8134
|
-
* @param {
|
|
8161
|
+
* @param {Perbill} maxPegUpdate
|
|
8135
8162
|
**/
|
|
8136
8163
|
createPoolWithPegs: GenericTxCall<
|
|
8137
8164
|
Rv,
|
|
@@ -8141,7 +8168,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8141
8168
|
amplification: number,
|
|
8142
8169
|
fee: Permill,
|
|
8143
8170
|
pegSource: Array<PalletStableswapPegSource>,
|
|
8144
|
-
maxPegUpdate:
|
|
8171
|
+
maxPegUpdate: Perbill,
|
|
8145
8172
|
) => ChainSubmittableExtrinsic<
|
|
8146
8173
|
Rv,
|
|
8147
8174
|
{
|
|
@@ -8154,7 +8181,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8154
8181
|
amplification: number;
|
|
8155
8182
|
fee: Permill;
|
|
8156
8183
|
pegSource: Array<PalletStableswapPegSource>;
|
|
8157
|
-
maxPegUpdate:
|
|
8184
|
+
maxPegUpdate: Perbill;
|
|
8158
8185
|
};
|
|
8159
8186
|
};
|
|
8160
8187
|
}
|
|
@@ -8265,20 +8292,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
8265
8292
|
*
|
|
8266
8293
|
*
|
|
8267
8294
|
* @param {number} poolId
|
|
8268
|
-
* @param {
|
|
8295
|
+
* @param {Perbill} maxPegUpdate
|
|
8269
8296
|
**/
|
|
8270
8297
|
updatePoolMaxPegUpdate: GenericTxCall<
|
|
8271
8298
|
Rv,
|
|
8272
8299
|
(
|
|
8273
8300
|
poolId: number,
|
|
8274
|
-
maxPegUpdate:
|
|
8301
|
+
maxPegUpdate: Perbill,
|
|
8275
8302
|
) => ChainSubmittableExtrinsic<
|
|
8276
8303
|
Rv,
|
|
8277
8304
|
{
|
|
8278
8305
|
pallet: 'Stableswap';
|
|
8279
8306
|
palletCall: {
|
|
8280
8307
|
name: 'UpdatePoolMaxPegUpdate';
|
|
8281
|
-
params: { poolId: number; maxPegUpdate:
|
|
8308
|
+
params: { poolId: number; maxPegUpdate: Perbill };
|
|
8282
8309
|
};
|
|
8283
8310
|
}
|
|
8284
8311
|
>
|
|
@@ -9120,6 +9147,7 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9120
9147
|
liquidation: {
|
|
9121
9148
|
/**
|
|
9122
9149
|
* Liquidates an existing money market position.
|
|
9150
|
+
* Can be both signed and unsigned.
|
|
9123
9151
|
*
|
|
9124
9152
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9125
9153
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9479,16 +9507,20 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
9479
9507
|
* - Other errors from underlying calls
|
|
9480
9508
|
*
|
|
9481
9509
|
* @param {number} collateralAssetId
|
|
9510
|
+
* @param {bigint | undefined} flashAmount
|
|
9482
9511
|
**/
|
|
9483
9512
|
executeArbitrage: GenericTxCall<
|
|
9484
9513
|
Rv,
|
|
9485
|
-
(
|
|
9514
|
+
(
|
|
9515
|
+
collateralAssetId: number,
|
|
9516
|
+
flashAmount: bigint | undefined,
|
|
9517
|
+
) => ChainSubmittableExtrinsic<
|
|
9486
9518
|
Rv,
|
|
9487
9519
|
{
|
|
9488
9520
|
pallet: 'Hsm';
|
|
9489
9521
|
palletCall: {
|
|
9490
9522
|
name: 'ExecuteArbitrage';
|
|
9491
|
-
params: { collateralAssetId: number };
|
|
9523
|
+
params: { collateralAssetId: number; flashAmount: bigint | undefined };
|
|
9492
9524
|
};
|
|
9493
9525
|
}
|
|
9494
9526
|
>
|
package/hydration/types.d.ts
CHANGED
|
@@ -6082,7 +6082,19 @@ export type PalletDispatcherCall =
|
|
|
6082
6082
|
* This allows executing calls with additional weight (gas) limit.
|
|
6083
6083
|
* The extra gas is not refunded, even if not used.
|
|
6084
6084
|
**/
|
|
6085
|
-
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCall; extraGas: bigint } }
|
|
6085
|
+
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCall; extraGas: bigint } }
|
|
6086
|
+
/**
|
|
6087
|
+
* Execute a single EVM call.
|
|
6088
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
6089
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
6090
|
+
*
|
|
6091
|
+
* Parameters:
|
|
6092
|
+
* - `origin`: Signed origin.
|
|
6093
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
6094
|
+
*
|
|
6095
|
+
* Emits `EvmCallFailed` event when failed.
|
|
6096
|
+
**/
|
|
6097
|
+
| { name: 'DispatchEvmCall'; params: { call: HydradxRuntimeRuntimeCall } };
|
|
6086
6098
|
|
|
6087
6099
|
export type PalletDispatcherCallLike =
|
|
6088
6100
|
| { name: 'DispatchAsTreasury'; params: { call: HydradxRuntimeRuntimeCallLike } }
|
|
@@ -6102,7 +6114,19 @@ export type PalletDispatcherCallLike =
|
|
|
6102
6114
|
* This allows executing calls with additional weight (gas) limit.
|
|
6103
6115
|
* The extra gas is not refunded, even if not used.
|
|
6104
6116
|
**/
|
|
6105
|
-
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCallLike; extraGas: bigint } }
|
|
6117
|
+
| { name: 'DispatchWithExtraGas'; params: { call: HydradxRuntimeRuntimeCallLike; extraGas: bigint } }
|
|
6118
|
+
/**
|
|
6119
|
+
* Execute a single EVM call.
|
|
6120
|
+
* This extrinsic will fail if the EVM call returns any other ExitReason than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
6121
|
+
* Look the [hydradx_runtime::evm::runner::WrapRunner] implementation for details.
|
|
6122
|
+
*
|
|
6123
|
+
* Parameters:
|
|
6124
|
+
* - `origin`: Signed origin.
|
|
6125
|
+
* - `call`: presumably `pallet_evm::Call::call` as boxed `RuntimeCall`.
|
|
6126
|
+
*
|
|
6127
|
+
* Emits `EvmCallFailed` event when failed.
|
|
6128
|
+
**/
|
|
6129
|
+
| { name: 'DispatchEvmCall'; params: { call: HydradxRuntimeRuntimeCallLike } };
|
|
6106
6130
|
|
|
6107
6131
|
/**
|
|
6108
6132
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8100,7 +8124,7 @@ export type PalletDynamicFeesCall =
|
|
|
8100
8124
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8101
8125
|
*
|
|
8102
8126
|
* # Arguments
|
|
8103
|
-
* * `origin` -
|
|
8127
|
+
* * `origin` - Authority origin required
|
|
8104
8128
|
* * `asset_id` - The asset ID to configure
|
|
8105
8129
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8106
8130
|
**/
|
|
@@ -8112,7 +8136,7 @@ export type PalletDynamicFeesCall =
|
|
|
8112
8136
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8113
8137
|
*
|
|
8114
8138
|
* # Arguments
|
|
8115
|
-
* * `origin` -
|
|
8139
|
+
* * `origin` - Authority origin required
|
|
8116
8140
|
* * `asset_id` - The asset ID to remove configuration for
|
|
8117
8141
|
**/
|
|
8118
8142
|
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
@@ -8124,7 +8148,7 @@ export type PalletDynamicFeesCallLike =
|
|
|
8124
8148
|
* This function allows setting either fixed or dynamic fee configuration for a specific asset.
|
|
8125
8149
|
*
|
|
8126
8150
|
* # Arguments
|
|
8127
|
-
* * `origin` -
|
|
8151
|
+
* * `origin` - Authority origin required
|
|
8128
8152
|
* * `asset_id` - The asset ID to configure
|
|
8129
8153
|
* * `config` - Fee configuration (Fixed or Dynamic)
|
|
8130
8154
|
**/
|
|
@@ -8136,7 +8160,7 @@ export type PalletDynamicFeesCallLike =
|
|
|
8136
8160
|
* After removal, the asset will use the default dynamic fee parameters configured in the runtime.
|
|
8137
8161
|
*
|
|
8138
8162
|
* # Arguments
|
|
8139
|
-
* * `origin` -
|
|
8163
|
+
* * `origin` - Authority origin required
|
|
8140
8164
|
* * `asset_id` - The asset ID to remove configuration for
|
|
8141
8165
|
**/
|
|
8142
8166
|
| { name: 'RemoveAssetFee'; params: { assetId: number } };
|
|
@@ -8577,7 +8601,7 @@ export type PalletStableswapCall =
|
|
|
8577
8601
|
amplification: number;
|
|
8578
8602
|
fee: Permill;
|
|
8579
8603
|
pegSource: Array<PalletStableswapPegSource>;
|
|
8580
|
-
maxPegUpdate:
|
|
8604
|
+
maxPegUpdate: Perbill;
|
|
8581
8605
|
};
|
|
8582
8606
|
}
|
|
8583
8607
|
/**
|
|
@@ -8644,7 +8668,7 @@ export type PalletStableswapCall =
|
|
|
8644
8668
|
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8645
8669
|
*
|
|
8646
8670
|
**/
|
|
8647
|
-
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate:
|
|
8671
|
+
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate: Perbill } };
|
|
8648
8672
|
|
|
8649
8673
|
export type PalletStableswapCallLike =
|
|
8650
8674
|
/**
|
|
@@ -8902,7 +8926,7 @@ export type PalletStableswapCallLike =
|
|
|
8902
8926
|
amplification: number;
|
|
8903
8927
|
fee: Permill;
|
|
8904
8928
|
pegSource: Array<PalletStableswapPegSource>;
|
|
8905
|
-
maxPegUpdate:
|
|
8929
|
+
maxPegUpdate: Perbill;
|
|
8906
8930
|
};
|
|
8907
8931
|
}
|
|
8908
8932
|
/**
|
|
@@ -8969,7 +8993,7 @@ export type PalletStableswapCallLike =
|
|
|
8969
8993
|
* - `NoPegSource`: If the pool does not have pegs configured.
|
|
8970
8994
|
*
|
|
8971
8995
|
**/
|
|
8972
|
-
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate:
|
|
8996
|
+
| { name: 'UpdatePoolMaxPegUpdate'; params: { poolId: number; maxPegUpdate: Perbill } };
|
|
8973
8997
|
|
|
8974
8998
|
export type PalletStableswapTradability = { bits: number };
|
|
8975
8999
|
|
|
@@ -9695,6 +9719,7 @@ export type PalletReferralsFeeDistribution = { referrer: Permill; trader: Permil
|
|
|
9695
9719
|
export type PalletLiquidationCall =
|
|
9696
9720
|
/**
|
|
9697
9721
|
* Liquidates an existing money market position.
|
|
9722
|
+
* Can be both signed and unsigned.
|
|
9698
9723
|
*
|
|
9699
9724
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9700
9725
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9728,6 +9753,7 @@ export type PalletLiquidationCall =
|
|
|
9728
9753
|
export type PalletLiquidationCallLike =
|
|
9729
9754
|
/**
|
|
9730
9755
|
* Liquidates an existing money market position.
|
|
9756
|
+
* Can be both signed and unsigned.
|
|
9731
9757
|
*
|
|
9732
9758
|
* Performs a flash loan to get funds to pay for the debt.
|
|
9733
9759
|
* Received collateral is swapped and the profit is transferred to `FeeReceiver`.
|
|
@@ -9934,7 +9960,7 @@ export type PalletHsmCall =
|
|
|
9934
9960
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
9935
9961
|
* - Other errors from underlying calls
|
|
9936
9962
|
**/
|
|
9937
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
9963
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; flashAmount?: bigint | undefined } }
|
|
9938
9964
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
9939
9965
|
|
|
9940
9966
|
export type PalletHsmCallLike =
|
|
@@ -10110,7 +10136,7 @@ export type PalletHsmCallLike =
|
|
|
10110
10136
|
* - `InvalidEVMInteraction` if there's an error interacting with the Hollar ERC20 contract
|
|
10111
10137
|
* - Other errors from underlying calls
|
|
10112
10138
|
**/
|
|
10113
|
-
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number } }
|
|
10139
|
+
| { name: 'ExecuteArbitrage'; params: { collateralAssetId: number; flashAmount?: bigint | undefined } }
|
|
10114
10140
|
| { name: 'SetFlashMinter'; params: { flashMinterAddr: H160 } };
|
|
10115
10141
|
|
|
10116
10142
|
/**
|
|
@@ -14268,13 +14294,13 @@ export type PalletStableswapEvent =
|
|
|
14268
14294
|
/**
|
|
14269
14295
|
* Pool max peg update has been updated.
|
|
14270
14296
|
**/
|
|
14271
|
-
| { name: 'PoolMaxPegUpdateUpdated'; data: { poolId: number; maxPegUpdate:
|
|
14297
|
+
| { name: 'PoolMaxPegUpdateUpdated'; data: { poolId: number; maxPegUpdate: Perbill } };
|
|
14272
14298
|
|
|
14273
14299
|
export type NonZeroU16 = number;
|
|
14274
14300
|
|
|
14275
14301
|
export type PalletStableswapPoolPegInfo = {
|
|
14276
14302
|
source: Array<PalletStableswapPegSource>;
|
|
14277
|
-
maxPegUpdate:
|
|
14303
|
+
maxPegUpdate: Perbill;
|
|
14278
14304
|
current: Array<[bigint, bigint]>;
|
|
14279
14305
|
};
|
|
14280
14306
|
|
|
@@ -14524,9 +14550,8 @@ export type PalletHsmEvent =
|
|
|
14524
14550
|
*
|
|
14525
14551
|
* Parameters:
|
|
14526
14552
|
* - `asset_id`: The ID of the asset removed from collaterals
|
|
14527
|
-
* - `amount`: The amount of the asset that was returned (should be zero)
|
|
14528
14553
|
**/
|
|
14529
|
-
| { name: 'CollateralRemoved'; data: { assetId: number
|
|
14554
|
+
| { name: 'CollateralRemoved'; data: { assetId: number } }
|
|
14530
14555
|
/**
|
|
14531
14556
|
* A collateral asset was updated
|
|
14532
14557
|
*
|
|
@@ -14554,7 +14579,7 @@ export type PalletHsmEvent =
|
|
|
14554
14579
|
* - `asset_id`: The collateral asset used in the arbitrage
|
|
14555
14580
|
* - `hollar_amount`: Amount of Hollar that was included in the arbitrage operation
|
|
14556
14581
|
**/
|
|
14557
|
-
| { name: 'ArbitrageExecuted'; data: { assetId: number; hollarAmount: bigint } }
|
|
14582
|
+
| { name: 'ArbitrageExecuted'; data: { arbitrage: number; assetId: number; hollarAmount: bigint; profit: bigint } }
|
|
14558
14583
|
/**
|
|
14559
14584
|
* Flash minter address set
|
|
14560
14585
|
*
|
|
@@ -16612,6 +16637,20 @@ export type PalletWhitelistError =
|
|
|
16612
16637
|
**/
|
|
16613
16638
|
| 'CallAlreadyWhitelisted';
|
|
16614
16639
|
|
|
16640
|
+
/**
|
|
16641
|
+
* The `Error` enum of this pallet.
|
|
16642
|
+
**/
|
|
16643
|
+
export type PalletDispatcherError =
|
|
16644
|
+
/**
|
|
16645
|
+
* The EVM call execution failed. This happens when the EVM returns an exit reason
|
|
16646
|
+
* other than `ExitSucceed(Returned)` or `ExitSucceed(Stopped)`.
|
|
16647
|
+
**/
|
|
16648
|
+
| 'EvmCallFailed'
|
|
16649
|
+
/**
|
|
16650
|
+
* The provided call is not an EVM call. This extrinsic only accepts `pallet_evm::Call::call`.
|
|
16651
|
+
**/
|
|
16652
|
+
| 'NotEvmCall';
|
|
16653
|
+
|
|
16615
16654
|
export type PalletAssetRegistryAssetDetails = {
|
|
16616
16655
|
name?: Bytes | undefined;
|
|
16617
16656
|
assetType: PalletAssetRegistryAssetType;
|
|
@@ -19246,6 +19285,7 @@ export type HydradxRuntimeRuntimeError =
|
|
|
19246
19285
|
| { pallet: 'ConvictionVoting'; palletError: PalletConvictionVotingError }
|
|
19247
19286
|
| { pallet: 'Referenda'; palletError: PalletReferendaError }
|
|
19248
19287
|
| { pallet: 'Whitelist'; palletError: PalletWhitelistError }
|
|
19288
|
+
| { pallet: 'Dispatcher'; palletError: PalletDispatcherError }
|
|
19249
19289
|
| { pallet: 'AssetRegistry'; palletError: PalletAssetRegistryError }
|
|
19250
19290
|
| { pallet: 'Claims'; palletError: PalletClaimsError }
|
|
19251
19291
|
| { pallet: 'CollatorRewards'; palletError: PalletCollatorRewardsError }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.156.0",
|
|
4
4
|
"description": "Types for substrate-based chains",
|
|
5
5
|
"author": "Thang X. Vu <thang@dedot.dev>",
|
|
6
6
|
"homepage": "https://dedot.dev",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"directory": "dist"
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "1f748a88bc27cbd4e7b40da9c6485157100af09f",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
package/paseo-people/consts.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
SpWeightsRuntimeDbWeight,
|
|
9
9
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
10
10
|
FrameSupportPalletId,
|
|
11
|
+
StagingXcmV5Junctions,
|
|
11
12
|
SpWeightsWeightV2Weight,
|
|
12
13
|
} from './types.js';
|
|
13
14
|
|
|
@@ -249,6 +250,11 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
249
250
|
* Pallet `Session`'s constants
|
|
250
251
|
**/
|
|
251
252
|
session: {
|
|
253
|
+
/**
|
|
254
|
+
* The amount to be held when setting keys.
|
|
255
|
+
**/
|
|
256
|
+
keyDeposit: bigint;
|
|
257
|
+
|
|
252
258
|
/**
|
|
253
259
|
* Generic pallet constant
|
|
254
260
|
**/
|
|
@@ -323,12 +329,27 @@ export interface ChainConsts<Rv extends RpcVersion> extends GenericChainConsts<R
|
|
|
323
329
|
* Pallet `PolkadotXcm`'s constants
|
|
324
330
|
**/
|
|
325
331
|
polkadotXcm: {
|
|
332
|
+
/**
|
|
333
|
+
* This chain's Universal Location.
|
|
334
|
+
**/
|
|
335
|
+
universalLocation: StagingXcmV5Junctions;
|
|
336
|
+
|
|
326
337
|
/**
|
|
327
338
|
* The latest supported version that we advertise. Generally just set it to
|
|
328
339
|
* `pallet_xcm::CurrentXcmVersion`.
|
|
329
340
|
**/
|
|
330
341
|
advertisedXcmVersion: number;
|
|
331
342
|
|
|
343
|
+
/**
|
|
344
|
+
* The maximum number of local XCM locks that a single account may have.
|
|
345
|
+
**/
|
|
346
|
+
maxLockers: number;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* The maximum number of consumers a single remote lock may have.
|
|
350
|
+
**/
|
|
351
|
+
maxRemoteLockConsumers: number;
|
|
352
|
+
|
|
332
353
|
/**
|
|
333
354
|
* Generic pallet constant
|
|
334
355
|
**/
|
package/paseo-people/errors.d.ts
CHANGED
|
@@ -475,6 +475,8 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
475
475
|
|
|
476
476
|
/**
|
|
477
477
|
* Too many locations authorized to alias origin.
|
|
478
|
+
*
|
|
479
|
+
* @deprecated Use `LocalExecutionIncompleteWithError` instead (since 20.0.0)
|
|
478
480
|
**/
|
|
479
481
|
TooManyAuthorizedAliases: GenericPalletError<Rv>;
|
|
480
482
|
|
|
@@ -488,6 +490,12 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
488
490
|
**/
|
|
489
491
|
AliasNotFound: GenericPalletError<Rv>;
|
|
490
492
|
|
|
493
|
+
/**
|
|
494
|
+
* Local XCM execution incomplete with the actual XCM error and the index of the
|
|
495
|
+
* instruction that caused the error.
|
|
496
|
+
**/
|
|
497
|
+
LocalExecutionIncompleteWithError: GenericPalletError<Rv>;
|
|
498
|
+
|
|
491
499
|
/**
|
|
492
500
|
* Generic pallet error
|
|
493
501
|
**/
|
package/paseo-people/events.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
FrameSystemDispatchEventInfo,
|
|
7
7
|
SpWeightsWeightV2Weight,
|
|
8
8
|
FrameSupportTokensMiscBalanceStatus,
|
|
9
|
+
PalletBalancesUnexpectedKind,
|
|
9
10
|
StagingXcmV5TraitsOutcome,
|
|
10
11
|
StagingXcmV5Location,
|
|
11
12
|
StagingXcmV5Xcm,
|
|
@@ -397,6 +398,11 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
397
398
|
**/
|
|
398
399
|
TotalIssuanceForced: GenericPalletEvent<Rv, 'Balances', 'TotalIssuanceForced', { old: bigint; new: bigint }>;
|
|
399
400
|
|
|
401
|
+
/**
|
|
402
|
+
* An unexpected/defensive event was triggered.
|
|
403
|
+
**/
|
|
404
|
+
Unexpected: GenericPalletEvent<Rv, 'Balances', 'Unexpected', PalletBalancesUnexpectedKind>;
|
|
405
|
+
|
|
400
406
|
/**
|
|
401
407
|
* Generic pallet event
|
|
402
408
|
**/
|
|
@@ -522,6 +528,12 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
522
528
|
**/
|
|
523
529
|
NewSession: GenericPalletEvent<Rv, 'Session', 'NewSession', { sessionIndex: number }>;
|
|
524
530
|
|
|
531
|
+
/**
|
|
532
|
+
* The `NewSession` event in the current block also implies a new validator set to be
|
|
533
|
+
* queued.
|
|
534
|
+
**/
|
|
535
|
+
NewQueued: GenericPalletEvent<Rv, 'Session', 'NewQueued', null>;
|
|
536
|
+
|
|
525
537
|
/**
|
|
526
538
|
* Validator has been disabled.
|
|
527
539
|
**/
|
|
@@ -1178,6 +1190,16 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
1178
1190
|
{ pure: AccountId32; who: AccountId32; proxyType: PeoplePaseoRuntimeProxyType; disambiguationIndex: number }
|
|
1179
1191
|
>;
|
|
1180
1192
|
|
|
1193
|
+
/**
|
|
1194
|
+
* A pure proxy was killed by its spawner.
|
|
1195
|
+
**/
|
|
1196
|
+
PureKilled: GenericPalletEvent<
|
|
1197
|
+
Rv,
|
|
1198
|
+
'Proxy',
|
|
1199
|
+
'PureKilled',
|
|
1200
|
+
{ pure: AccountId32; spawner: AccountId32; proxyType: PeoplePaseoRuntimeProxyType; disambiguationIndex: number }
|
|
1201
|
+
>;
|
|
1202
|
+
|
|
1181
1203
|
/**
|
|
1182
1204
|
* An announcement was placed to make a call in the future.
|
|
1183
1205
|
**/
|
package/paseo-people/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface VersionedPaseoPeopleApi<Rv extends RpcVersion> extends GenericS
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @name: PaseoPeopleApi
|
|
61
|
-
* @specVersion:
|
|
61
|
+
* @specVersion: 1007001
|
|
62
62
|
**/
|
|
63
63
|
export interface PaseoPeopleApi {
|
|
64
64
|
legacy: VersionedPaseoPeopleApi<RpcLegacy>;
|
package/paseo-people/query.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
PolkadotPrimitivesV8AbridgedHostConfiguration,
|
|
31
31
|
CumulusPrimitivesParachainInherentMessageQueueChain,
|
|
32
32
|
PolkadotParachainPrimitivesPrimitivesId,
|
|
33
|
+
CumulusPalletParachainSystemParachainInherentInboundMessageId,
|
|
33
34
|
PolkadotCorePrimitivesOutboundHrmpMessage,
|
|
34
35
|
PalletMigrationsMigrationCursor,
|
|
35
36
|
PalletBalancesAccountData,
|
|
@@ -408,14 +409,36 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
|
|
|
408
409
|
processedDownwardMessages: GenericStorageQuery<Rv, () => number>;
|
|
409
410
|
|
|
410
411
|
/**
|
|
411
|
-
*
|
|
412
|
+
* The last processed downward message.
|
|
412
413
|
*
|
|
413
|
-
*
|
|
414
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
415
|
+
*
|
|
416
|
+
* @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
|
|
417
|
+
**/
|
|
418
|
+
lastProcessedDownwardMessage: GenericStorageQuery<
|
|
419
|
+
Rv,
|
|
420
|
+
() => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
|
|
421
|
+
>;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* HRMP watermark that was set in a block.
|
|
414
425
|
*
|
|
415
426
|
* @param {Callback<number> =} callback
|
|
416
427
|
**/
|
|
417
428
|
hrmpWatermark: GenericStorageQuery<Rv, () => number>;
|
|
418
429
|
|
|
430
|
+
/**
|
|
431
|
+
* The last processed HRMP message.
|
|
432
|
+
*
|
|
433
|
+
* We need to keep track of this to filter the messages that have been already processed.
|
|
434
|
+
*
|
|
435
|
+
* @param {Callback<CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined> =} callback
|
|
436
|
+
**/
|
|
437
|
+
lastProcessedHrmpMessage: GenericStorageQuery<
|
|
438
|
+
Rv,
|
|
439
|
+
() => CumulusPalletParachainSystemParachainInherentInboundMessageId | undefined
|
|
440
|
+
>;
|
|
441
|
+
|
|
419
442
|
/**
|
|
420
443
|
* HRMP messages that were sent in a block.
|
|
421
444
|
*
|