@dedot/chaintypes 0.26.0 → 0.27.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/aleph/events.d.ts CHANGED
@@ -422,6 +422,7 @@ export interface ChainEvents<Rv extends RpcVersion> extends GenericChainEvents<R
422
422
  PrimitivesVersionChange
423
423
  >;
424
424
  FinalityVersionChange: GenericPalletEvent<Rv, 'Aleph', 'FinalityVersionChange', PrimitivesVersionChange>;
425
+ InflationParametersChange: GenericPalletEvent<Rv, 'Aleph', 'InflationParametersChange', [bigint, bigint]>;
425
426
 
426
427
  /**
427
428
  * Generic pallet event
package/aleph/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export interface VersionedAlephApi<Rv extends RpcVersion> extends GenericSubstra
23
23
 
24
24
  /**
25
25
  * @name: AlephApi
26
- * @specVersion: 73
26
+ * @specVersion: 74
27
27
  **/
28
28
  export interface AlephApi {
29
29
  legacy: VersionedAlephApi<RpcLegacy>;
package/aleph/query.d.ts CHANGED
@@ -934,6 +934,18 @@ export interface ChainStorage<Rv extends RpcVersion> extends GenericChainStorage
934
934
  * Pallet `Aleph`'s storage queries
935
935
  **/
936
936
  aleph: {
937
+ /**
938
+ *
939
+ * @param {Callback<bigint> =} callback
940
+ **/
941
+ azeroCap: GenericStorageQuery<Rv, () => bigint>;
942
+
943
+ /**
944
+ *
945
+ * @param {Callback<bigint> =} callback
946
+ **/
947
+ exponentialInflationHorizon: GenericStorageQuery<Rv, () => bigint>;
948
+
937
949
  /**
938
950
  *
939
951
  * @param {Callback<Array<PrimitivesAppPublic>> =} callback
@@ -13,6 +13,7 @@ import type {
13
13
  BytesLike,
14
14
  AccountId32Like,
15
15
  AccountId32,
16
+ Perbill,
16
17
  } from 'dedot/codecs';
17
18
  import type {
18
19
  SpRuntimeBlock,
@@ -435,6 +436,20 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
435
436
  **/
436
437
  keyOwner: GenericRuntimeApiMethod<Rv, (key: PrimitivesAppPublic) => Promise<AccountId32 | undefined>>;
437
438
 
439
+ /**
440
+ * Returns inflation from now to now + 1 year. Capped at 100%
441
+ *
442
+ * @callname: AlephSessionApi_yearly_inflation
443
+ **/
444
+ yearlyInflation: GenericRuntimeApiMethod<Rv, () => Promise<Perbill>>;
445
+
446
+ /**
447
+ * Returns payout. First tuple item is a validators payout, 2nd is the rest.
448
+ *
449
+ * @callname: AlephSessionApi_current_era_payout
450
+ **/
451
+ currentEraPayout: GenericRuntimeApiMethod<Rv, () => Promise<[bigint, bigint]>>;
452
+
438
453
  /**
439
454
  * Generic runtime api call
440
455
  **/
package/aleph/tx.d.ts CHANGED
@@ -1238,6 +1238,29 @@ export interface ChainTx<Rv extends RpcVersion> extends GenericChainTx<Rv, TxCal
1238
1238
  >
1239
1239
  >;
1240
1240
 
1241
+ /**
1242
+ * See [`Pallet::set_inflation_parameters`].
1243
+ *
1244
+ * @param {bigint | undefined} azeroCap
1245
+ * @param {bigint | undefined} horizonMillisecs
1246
+ **/
1247
+ setInflationParameters: GenericTxCall<
1248
+ Rv,
1249
+ (
1250
+ azeroCap: bigint | undefined,
1251
+ horizonMillisecs: bigint | undefined,
1252
+ ) => ChainSubmittableExtrinsic<
1253
+ Rv,
1254
+ {
1255
+ pallet: 'Aleph';
1256
+ palletCall: {
1257
+ name: 'SetInflationParameters';
1258
+ params: { azeroCap: bigint | undefined; horizonMillisecs: bigint | undefined };
1259
+ };
1260
+ }
1261
+ >
1262
+ >;
1263
+
1241
1264
  /**
1242
1265
  * Generic pallet tx call
1243
1266
  **/
package/aleph/types.d.ts CHANGED
@@ -353,7 +353,8 @@ export type PalletSessionEvent =
353
353
  export type PalletAlephEvent =
354
354
  | { name: 'ChangeEmergencyFinalizer'; data: PrimitivesAppPublic }
355
355
  | { name: 'ScheduleFinalityVersionChange'; data: PrimitivesVersionChange }
356
- | { name: 'FinalityVersionChange'; data: PrimitivesVersionChange };
356
+ | { name: 'FinalityVersionChange'; data: PrimitivesVersionChange }
357
+ | { name: 'InflationParametersChange'; data: [bigint, bigint] };
357
358
 
358
359
  export type PrimitivesAppPublic = SpCoreEd25519Public;
359
360
 
@@ -1573,7 +1574,14 @@ export type PalletAlephCall =
1573
1574
  /**
1574
1575
  * See [`Pallet::schedule_finality_version_change`].
1575
1576
  **/
1576
- | { name: 'ScheduleFinalityVersionChange'; params: { versionIncoming: number; session: number } };
1577
+ | { name: 'ScheduleFinalityVersionChange'; params: { versionIncoming: number; session: number } }
1578
+ /**
1579
+ * See [`Pallet::set_inflation_parameters`].
1580
+ **/
1581
+ | {
1582
+ name: 'SetInflationParameters';
1583
+ params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined };
1584
+ };
1577
1585
 
1578
1586
  export type PalletAlephCallLike =
1579
1587
  /**
@@ -1583,7 +1591,14 @@ export type PalletAlephCallLike =
1583
1591
  /**
1584
1592
  * See [`Pallet::schedule_finality_version_change`].
1585
1593
  **/
1586
- | { name: 'ScheduleFinalityVersionChange'; params: { versionIncoming: number; session: number } };
1594
+ | { name: 'ScheduleFinalityVersionChange'; params: { versionIncoming: number; session: number } }
1595
+ /**
1596
+ * See [`Pallet::set_inflation_parameters`].
1597
+ **/
1598
+ | {
1599
+ name: 'SetInflationParameters';
1600
+ params: { azeroCap?: bigint | undefined; horizonMillisecs?: bigint | undefined };
1601
+ };
1587
1602
 
1588
1603
  /**
1589
1604
  * Contains a variant per dispatchable extrinsic that this pallet has.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -19,7 +19,7 @@
19
19
  "directory": "dist"
20
20
  },
21
21
  "license": "Apache-2.0",
22
- "gitHead": "549799c9c49e28f10c272996d3df1c8924181f8a",
22
+ "gitHead": "534d55e4f26f857653e0bdfb9b742c1ecdd3aeb0",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts"
25
25
  }
@@ -5,6 +5,13 @@ import type { JsonRpcApis } from 'dedot/types/json-rpc';
5
5
 
6
6
  export type ChainJsonRpcApis<Rv extends RpcVersion> = Pick<
7
7
  JsonRpcApis,
8
+ | 'archive_unstable_body'
9
+ | 'archive_unstable_call'
10
+ | 'archive_unstable_finalizedHeight'
11
+ | 'archive_unstable_genesisHash'
12
+ | 'archive_unstable_hashByHeight'
13
+ | 'archive_unstable_header'
14
+ | 'archive_unstable_storage'
8
15
  | 'author_hasKey'
9
16
  | 'author_hasSessionKeys'
10
17
  | 'author_insertKey'