@dedot/chaintypes 0.181.0 → 0.182.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.181.0",
3
+ "version": "0.182.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": "61153b0e601e4c1d0ae02a46ba225807b7e759b0",
28
+ "gitHead": "a87aadfe9a50f3e3ffb1b5b5721b7bfbaf272209",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -58,7 +58,7 @@ export interface VersionedPolkadotAssetHubApi<Rv extends RpcVersion> extends Gen
58
58
 
59
59
  /**
60
60
  * @name: PolkadotAssetHubApi
61
- * @specVersion: 2000001
61
+ * @specVersion: 2000002
62
62
  **/
63
63
  export interface PolkadotAssetHubApi {
64
64
  legacy: VersionedPolkadotAssetHubApi<RpcLegacy>;
@@ -51,6 +51,7 @@ import type {
51
51
  CumulusPrimitivesCoreCollationInfo,
52
52
  StagingXcmV5Location,
53
53
  PolkadotParachainPrimitivesPrimitivesId,
54
+ SystemParachainsCommonApisInflationInfo,
54
55
  } from './types.js';
55
56
 
56
57
  export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
@@ -1010,6 +1011,28 @@ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<R
1010
1011
  **/
1011
1012
  pendingRewards: GenericRuntimeApiMethod<Rv, (era: number, account: AccountId32Like) => Promise<boolean>>;
1012
1013
 
1014
+ /**
1015
+ * Generic runtime api call
1016
+ **/
1017
+ [method: string]: GenericRuntimeApiMethod<Rv>;
1018
+ };
1019
+ /**
1020
+ * @runtimeapi: Inflation - 0xc51ff1fa3f5d0cca
1021
+ **/
1022
+ inflation: {
1023
+ /**
1024
+ * Return the current estimates of the issuance amount.
1025
+ *
1026
+ * This is marked as experimental in light of RFC#89. Nonetheless, its usage is highly
1027
+ * recommended over trying to read-storage, or re-create the onchain logic.
1028
+ *
1029
+ * @callname: Inflation_experimental_issuance_prediction_info
1030
+ **/
1031
+ experimentalIssuancePredictionInfo: GenericRuntimeApiMethod<
1032
+ Rv,
1033
+ () => Promise<SystemParachainsCommonApisInflationInfo>
1034
+ >;
1035
+
1013
1036
  /**
1014
1037
  * Generic runtime api call
1015
1038
  **/
@@ -24,6 +24,7 @@ import type {
24
24
  UncheckedExtrinsic,
25
25
  Era,
26
26
  FixedI64,
27
+ Perquintill,
27
28
  } from 'dedot/codecs';
28
29
 
29
30
  export type FrameSystemAccountInfo = {
@@ -21198,6 +21199,8 @@ export type CumulusPrimitivesCoreCollationInfo = {
21198
21199
 
21199
21200
  export type PolkadotParachainPrimitivesPrimitivesValidationCode = Bytes;
21200
21201
 
21202
+ export type SystemParachainsCommonApisInflationInfo = { issuance: Perquintill; nextMint: [bigint, bigint] };
21203
+
21201
21204
  export type AssetHubPolkadotRuntimeRuntimeError =
21202
21205
  | { pallet: 'System'; palletError: FrameSystemError }
21203
21206
  | { pallet: 'ParachainSystem'; palletError: CumulusPalletParachainSystemError }