@dedot/chaintypes 0.138.0 → 0.140.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 +10 -0
- package/hydration/index.d.ts +1 -1
- package/hydration/types.d.ts +4 -0
- package/package.json +2 -2
- package/paseo-hydration/index.d.ts +1 -1
- package/vara/events.d.ts +26 -1
- package/vara/index.d.ts +1 -1
- package/vara/tx.d.ts +31 -5
- package/vara/types.d.ts +14 -4
package/hydration/errors.d.ts
CHANGED
|
@@ -1604,6 +1604,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
1604
1604
|
**/
|
|
1605
1605
|
IncentivizedAssetNotRegistered: GenericPalletError<Rv>;
|
|
1606
1606
|
|
|
1607
|
+
/**
|
|
1608
|
+
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
1609
|
+
**/
|
|
1610
|
+
AmmPoolIdMismatch: GenericPalletError<Rv>;
|
|
1611
|
+
|
|
1607
1612
|
/**
|
|
1608
1613
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
1609
1614
|
* to protocol maintainers.
|
|
@@ -3141,6 +3146,11 @@ export interface ChainErrors<Rv extends RpcVersion> extends GenericChainErrors<R
|
|
|
3141
3146
|
**/
|
|
3142
3147
|
IncentivizedAssetNotRegistered: GenericPalletError<Rv>;
|
|
3143
3148
|
|
|
3149
|
+
/**
|
|
3150
|
+
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
3151
|
+
**/
|
|
3152
|
+
AmmPoolIdMismatch: GenericPalletError<Rv>;
|
|
3153
|
+
|
|
3144
3154
|
/**
|
|
3145
3155
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
3146
3156
|
* to protocol maintainers.
|
package/hydration/index.d.ts
CHANGED
package/hydration/types.d.ts
CHANGED
|
@@ -17068,6 +17068,10 @@ export type PalletLiquidityMiningError =
|
|
|
17068
17068
|
* `incentivized_asset` is not registered in asset registry.
|
|
17069
17069
|
**/
|
|
17070
17070
|
| { name: 'IncentivizedAssetNotRegistered' }
|
|
17071
|
+
/**
|
|
17072
|
+
* Provided `amm_pool_id` doesn't match deposit's `amm_pool_id`.
|
|
17073
|
+
**/
|
|
17074
|
+
| { name: 'AmmPoolIdMismatch' }
|
|
17071
17075
|
/**
|
|
17072
17076
|
* Action cannot be completed because unexpected error has occurred. This should be reported
|
|
17073
17077
|
* to protocol maintainers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dedot/chaintypes",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.140.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": "d8fefea5a06e335cf8a9d7ffd8fc52b055dfe6a1",
|
|
29
29
|
"module": "./index.js",
|
|
30
30
|
"types": "./index.d.ts",
|
|
31
31
|
"exports": {
|
|
@@ -25,7 +25,7 @@ export interface VersionedPaseoHydrationApi<Rv extends RpcVersion> extends Gener
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @name: PaseoHydrationApi
|
|
28
|
-
* @specVersion:
|
|
28
|
+
* @specVersion: 339
|
|
29
29
|
**/
|
|
30
30
|
export interface PaseoHydrationApi {
|
|
31
31
|
legacy: VersionedPaseoHydrationApi<RpcLegacy>;
|
package/vara/events.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
// Generated by dedot cli
|
|
2
2
|
|
|
3
3
|
import type { GenericChainEvents, GenericPalletEvent, RpcVersion } from 'dedot/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type {
|
|
5
|
+
DispatchInfo,
|
|
6
|
+
DispatchError,
|
|
7
|
+
AccountId32,
|
|
8
|
+
H256,
|
|
9
|
+
Result,
|
|
10
|
+
Perbill,
|
|
11
|
+
FixedBytes,
|
|
12
|
+
Bytes,
|
|
13
|
+
Perquintill,
|
|
14
|
+
} from 'dedot/codecs';
|
|
5
15
|
import type {
|
|
6
16
|
SpConsensusGrandpaAppPublic,
|
|
7
17
|
FrameSupportTokensMiscBalanceStatus,
|
|
@@ -2387,6 +2397,21 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
|
|
|
2387
2397
|
**/
|
|
2388
2398
|
Minted: GenericPalletEvent<Rv, 'StakingRewards', 'Minted', { amount: bigint }>;
|
|
2389
2399
|
|
|
2400
|
+
/**
|
|
2401
|
+
* Target inflation changed.
|
|
2402
|
+
**/
|
|
2403
|
+
TargetInflationChanged: GenericPalletEvent<Rv, 'StakingRewards', 'TargetInflationChanged', { value: Perquintill }>;
|
|
2404
|
+
|
|
2405
|
+
/**
|
|
2406
|
+
* Ideal staking ratio changed.
|
|
2407
|
+
**/
|
|
2408
|
+
IdealStakingRatioChanged: GenericPalletEvent<
|
|
2409
|
+
Rv,
|
|
2410
|
+
'StakingRewards',
|
|
2411
|
+
'IdealStakingRatioChanged',
|
|
2412
|
+
{ value: Perquintill }
|
|
2413
|
+
>;
|
|
2414
|
+
|
|
2390
2415
|
/**
|
|
2391
2416
|
* Generic pallet event
|
|
2392
2417
|
**/
|
package/vara/index.d.ts
CHANGED
package/vara/tx.d.ts
CHANGED
|
@@ -7270,17 +7270,43 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
|
|
|
7270
7270
|
|
|
7271
7271
|
/**
|
|
7272
7272
|
*
|
|
7273
|
-
* @param {bigint}
|
|
7273
|
+
* @param {bigint} p
|
|
7274
|
+
* @param {bigint} n
|
|
7274
7275
|
**/
|
|
7275
|
-
|
|
7276
|
+
setTargetInflation: GenericTxCall<
|
|
7276
7277
|
Rv,
|
|
7277
|
-
(
|
|
7278
|
+
(
|
|
7279
|
+
p: bigint,
|
|
7280
|
+
n: bigint,
|
|
7281
|
+
) => ChainSubmittableExtrinsic<
|
|
7282
|
+
Rv,
|
|
7283
|
+
{
|
|
7284
|
+
pallet: 'StakingRewards';
|
|
7285
|
+
palletCall: {
|
|
7286
|
+
name: 'SetTargetInflation';
|
|
7287
|
+
params: { p: bigint; n: bigint };
|
|
7288
|
+
};
|
|
7289
|
+
}
|
|
7290
|
+
>
|
|
7291
|
+
>;
|
|
7292
|
+
|
|
7293
|
+
/**
|
|
7294
|
+
*
|
|
7295
|
+
* @param {bigint} p
|
|
7296
|
+
* @param {bigint} n
|
|
7297
|
+
**/
|
|
7298
|
+
setIdealStakingRatio: GenericTxCall<
|
|
7299
|
+
Rv,
|
|
7300
|
+
(
|
|
7301
|
+
p: bigint,
|
|
7302
|
+
n: bigint,
|
|
7303
|
+
) => ChainSubmittableExtrinsic<
|
|
7278
7304
|
Rv,
|
|
7279
7305
|
{
|
|
7280
7306
|
pallet: 'StakingRewards';
|
|
7281
7307
|
palletCall: {
|
|
7282
|
-
name: '
|
|
7283
|
-
params: {
|
|
7308
|
+
name: 'SetIdealStakingRatio';
|
|
7309
|
+
params: { p: bigint; n: bigint };
|
|
7284
7310
|
};
|
|
7285
7311
|
}
|
|
7286
7312
|
>
|
package/vara/types.d.ts
CHANGED
|
@@ -19,10 +19,10 @@ import type {
|
|
|
19
19
|
Data,
|
|
20
20
|
PerU16,
|
|
21
21
|
FixedArray,
|
|
22
|
+
Perquintill,
|
|
22
23
|
FixedI64,
|
|
23
24
|
FixedU128,
|
|
24
25
|
Era,
|
|
25
|
-
Perquintill,
|
|
26
26
|
UncheckedExtrinsic,
|
|
27
27
|
} from 'dedot/codecs';
|
|
28
28
|
|
|
@@ -7192,13 +7192,15 @@ export type PalletGearStakingRewardsCall =
|
|
|
7192
7192
|
| { name: 'Refill'; params: { value: bigint } }
|
|
7193
7193
|
| { name: 'ForceRefill'; params: { from: MultiAddress; value: bigint } }
|
|
7194
7194
|
| { name: 'Withdraw'; params: { to: MultiAddress; value: bigint } }
|
|
7195
|
-
| { name: '
|
|
7195
|
+
| { name: 'SetTargetInflation'; params: { p: bigint; n: bigint } }
|
|
7196
|
+
| { name: 'SetIdealStakingRatio'; params: { p: bigint; n: bigint } };
|
|
7196
7197
|
|
|
7197
7198
|
export type PalletGearStakingRewardsCallLike =
|
|
7198
7199
|
| { name: 'Refill'; params: { value: bigint } }
|
|
7199
7200
|
| { name: 'ForceRefill'; params: { from: MultiAddressLike; value: bigint } }
|
|
7200
7201
|
| { name: 'Withdraw'; params: { to: MultiAddressLike; value: bigint } }
|
|
7201
|
-
| { name: '
|
|
7202
|
+
| { name: 'SetTargetInflation'; params: { p: bigint; n: bigint } }
|
|
7203
|
+
| { name: 'SetIdealStakingRatio'; params: { p: bigint; n: bigint } };
|
|
7202
7204
|
|
|
7203
7205
|
/**
|
|
7204
7206
|
* Contains a variant per dispatchable extrinsic that this pallet has.
|
|
@@ -8587,7 +8589,15 @@ export type PalletGearStakingRewardsEvent =
|
|
|
8587
8589
|
/**
|
|
8588
8590
|
* Minted to the pool.
|
|
8589
8591
|
**/
|
|
8590
|
-
| { name: 'Minted'; data: { amount: bigint } }
|
|
8592
|
+
| { name: 'Minted'; data: { amount: bigint } }
|
|
8593
|
+
/**
|
|
8594
|
+
* Target inflation changed.
|
|
8595
|
+
**/
|
|
8596
|
+
| { name: 'TargetInflationChanged'; data: { value: Perquintill } }
|
|
8597
|
+
/**
|
|
8598
|
+
* Ideal staking ratio changed.
|
|
8599
|
+
**/
|
|
8600
|
+
| { name: 'IdealStakingRatioChanged'; data: { value: Perquintill } };
|
|
8591
8601
|
|
|
8592
8602
|
/**
|
|
8593
8603
|
* Pallet Gear Voucher event.
|