@dedot/chaintypes 0.139.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.139.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": "f1a6c940ebff5a4bfe699775050e3d26ad87501b",
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: 338
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 { DispatchInfo, DispatchError, AccountId32, H256, Result, Perbill, FixedBytes, Bytes } from 'dedot/codecs';
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
@@ -25,7 +25,7 @@ export interface VersionedVaraApi<Rv extends RpcVersion> extends GenericSubstrat
25
25
 
26
26
  /**
27
27
  * @name: VaraApi
28
- * @specVersion: 1810
28
+ * @specVersion: 1820
29
29
  **/
30
30
  export interface VaraApi {
31
31
  legacy: VersionedVaraApi<RpcLegacy>;
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} target
7273
+ * @param {bigint} p
7274
+ * @param {bigint} n
7274
7275
  **/
7275
- alignSupply: GenericTxCall<
7276
+ setTargetInflation: GenericTxCall<
7276
7277
  Rv,
7277
- (target: bigint) => ChainSubmittableExtrinsic<
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: 'AlignSupply';
7283
- params: { target: bigint };
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: 'AlignSupply'; params: { target: bigint } };
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: 'AlignSupply'; params: { target: bigint } };
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.