@dedot/chaintypes 0.261.0 → 0.262.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.
@@ -1103,6 +1103,15 @@ export interface ChainConsts extends GenericChainConsts {
1103
1103
  **/
1104
1104
  [name: string]: any;
1105
1105
  };
1106
+ /**
1107
+ * Pallet `Parameters`'s constants
1108
+ **/
1109
+ parameters: {
1110
+ /**
1111
+ * Generic pallet constant
1112
+ **/
1113
+ [name: string]: any;
1114
+ };
1106
1115
  /**
1107
1116
  * Pallet `EmaOracle`'s constants
1108
1117
  **/
@@ -44,7 +44,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
44
44
 
45
45
  /**
46
46
  * @name: BasiliskApi
47
- * @specVersion: 129
47
+ * @specVersion: 130
48
48
  **/
49
49
  export interface BasiliskApi extends GenericSubstrateApi {
50
50
  rpc: ChainJsonRpcApis;
@@ -2159,6 +2159,27 @@ export interface ChainStorage extends GenericChainStorage {
2159
2159
  **/
2160
2160
  [storage: string]: GenericStorageQuery;
2161
2161
  };
2162
+ /**
2163
+ * Pallet `Parameters`'s storage queries
2164
+ **/
2165
+ parameters: {
2166
+ /**
2167
+ *
2168
+ * @param {Callback<boolean> =} callback
2169
+ **/
2170
+ isTestnet: GenericStorageQuery<() => boolean>;
2171
+
2172
+ /**
2173
+ *
2174
+ * @param {Callback<boolean> =} callback
2175
+ **/
2176
+ relayParentOffsetOverride: GenericStorageQuery<() => boolean>;
2177
+
2178
+ /**
2179
+ * Generic pallet storage query
2180
+ **/
2181
+ [storage: string]: GenericStorageQuery;
2182
+ };
2162
2183
  /**
2163
2184
  * Pallet `EmaOracle`'s storage queries
2164
2185
  **/
@@ -42,6 +42,8 @@ import type {
42
42
  XcmRuntimeApisDryRunXcmDryRunEffects,
43
43
  XcmRuntimeApisConversionsError,
44
44
  SpConsensusSlotsSlot,
45
+ PolkadotPrimitivesVstagingCoreSelector,
46
+ PolkadotPrimitivesVstagingClaimQueueOffset,
45
47
  } from './types.js';
46
48
 
47
49
  export interface RuntimeApis extends GenericRuntimeApis {
@@ -568,6 +570,40 @@ export interface RuntimeApis extends GenericRuntimeApis {
568
570
  **/
569
571
  canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
570
572
 
573
+ /**
574
+ * Generic runtime api call
575
+ **/
576
+ [method: string]: GenericRuntimeApiMethod;
577
+ };
578
+ /**
579
+ * @runtimeapi: RelayParentOffsetApi - 0x04e70521a0d3d2f8
580
+ **/
581
+ relayParentOffsetApi: {
582
+ /**
583
+ * Fetch the slot offset that is expected from the relay chain.
584
+ *
585
+ * @callname: RelayParentOffsetApi_relay_parent_offset
586
+ **/
587
+ relayParentOffset: GenericRuntimeApiMethod<() => Promise<number>>;
588
+
589
+ /**
590
+ * Generic runtime api call
591
+ **/
592
+ [method: string]: GenericRuntimeApiMethod;
593
+ };
594
+ /**
595
+ * @runtimeapi: GetCoreSelectorApi - 0x695c80446b8b3d4e
596
+ **/
597
+ getCoreSelectorApi: {
598
+ /**
599
+ * Retrieve core selector and claim queue offset for the next block.
600
+ *
601
+ * @callname: GetCoreSelectorApi_core_selector
602
+ **/
603
+ coreSelector: GenericRuntimeApiMethod<
604
+ () => Promise<[PolkadotPrimitivesVstagingCoreSelector, PolkadotPrimitivesVstagingClaimQueueOffset]>
605
+ >;
606
+
571
607
  /**
572
608
  * Generic runtime api call
573
609
  **/
@@ -13852,6 +13852,10 @@ export type XcmRuntimeApisDryRunXcmDryRunEffects = {
13852
13852
 
13853
13853
  export type XcmRuntimeApisConversionsError = 'Unsupported' | 'VersionedConversionFailed';
13854
13854
 
13855
+ export type PolkadotPrimitivesVstagingCoreSelector = number;
13856
+
13857
+ export type PolkadotPrimitivesVstagingClaimQueueOffset = number;
13858
+
13855
13859
  export type BasiliskRuntimeRuntimeError =
13856
13860
  | { pallet: 'System'; palletError: FrameSystemError }
13857
13861
  | { pallet: 'Balances'; palletError: PalletBalancesError }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.261.0",
3
+ "version": "0.262.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": "49f4387e343755d21730a2af5e4e4692c4e6e4fe",
28
+ "gitHead": "8f3597407bc44c9db707464884bca8b9f2dfed02",
29
29
  "module": "./index.js",
30
30
  "types": "./index.d.ts",
31
31
  "exports": {
@@ -54,7 +54,7 @@ interface ChainKnownTypes extends GenericChainKnownTypes {
54
54
 
55
55
  /**
56
56
  * @name: WestendAssetHubApi
57
- * @specVersion: 1022003
57
+ * @specVersion: 1022004
58
58
  **/
59
59
  export interface WestendAssetHubApi extends GenericSubstrateApi {
60
60
  rpc: ChainJsonRpcApis;