@dedot/chaintypes 0.0.1-alpha.35 → 0.0.1-alpha.37

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/README.md CHANGED
@@ -1,3 +1,5 @@
1
1
  # @dedot/chaintypes
2
2
 
3
- Types for substrate-based chains
3
+ Chaintypes for Substrate-based chains
4
+
5
+ ⏳ Docs & instructions coming soon!
package/moonbeam/rpc.d.ts CHANGED
@@ -307,6 +307,24 @@ export interface RpcCalls extends GenericRpcCalls {
307
307
 
308
308
  [method: string]: GenericRpcCall;
309
309
  };
310
+ debug: {
311
+ /**
312
+ * @rpcname: debug_traceBlockByHash
313
+ **/
314
+ traceBlockByHash: GenericRpcCall;
315
+
316
+ /**
317
+ * @rpcname: debug_traceBlockByNumber
318
+ **/
319
+ traceBlockByNumber: GenericRpcCall;
320
+
321
+ /**
322
+ * @rpcname: debug_traceTransaction
323
+ **/
324
+ traceTransaction: GenericRpcCall;
325
+
326
+ [method: string]: GenericRpcCall;
327
+ };
310
328
  eth: {
311
329
  /**
312
330
  * @rpcname: eth_accounts
@@ -942,6 +960,14 @@ export interface RpcCalls extends GenericRpcCalls {
942
960
 
943
961
  [method: string]: GenericRpcCall;
944
962
  };
963
+ trace: {
964
+ /**
965
+ * @rpcname: trace_filter
966
+ **/
967
+ filter: GenericRpcCall;
968
+
969
+ [method: string]: GenericRpcCall;
970
+ };
945
971
  transaction: {
946
972
  /**
947
973
  * @rpcname: transaction_unstable_submitAndWatch
@@ -955,6 +981,24 @@ export interface RpcCalls extends GenericRpcCalls {
955
981
 
956
982
  [method: string]: GenericRpcCall;
957
983
  };
984
+ txpool: {
985
+ /**
986
+ * @rpcname: txpool_content
987
+ **/
988
+ content: GenericRpcCall;
989
+
990
+ /**
991
+ * @rpcname: txpool_inspect
992
+ **/
993
+ inspect: GenericRpcCall;
994
+
995
+ /**
996
+ * @rpcname: txpool_status
997
+ **/
998
+ status: GenericRpcCall;
999
+
1000
+ [method: string]: GenericRpcCall;
1001
+ };
958
1002
  web3: {
959
1003
  /**
960
1004
  * @rpcname: web3_clientVersion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/chaintypes",
3
- "version": "0.0.1-alpha.35",
3
+ "version": "0.0.1-alpha.37",
4
4
  "description": "Types for substrate-based chains",
5
5
  "author": "Thang X. Vu <thang@coongcrafts.io>",
6
6
  "main": "",
@@ -20,7 +20,7 @@
20
20
  "directory": "dist"
21
21
  },
22
22
  "license": "Apache-2.0",
23
- "gitHead": "a786211b332a48575a3d04e3e6fa1d72ae3d3662",
23
+ "gitHead": "876d43a5d6f78a24d2be4f76c1e183427cdf7f9e",
24
24
  "module": "./index.js",
25
25
  "types": "./index.d.ts"
26
26
  }
@@ -6,6 +6,7 @@ import type {
6
6
  FrameSystemLimitsBlockWeights,
7
7
  FrameSystemLimitsBlockLength,
8
8
  SpWeightsRuntimeDbWeight,
9
+ PolkadotParachainPrimitivesPrimitivesId,
9
10
  SpWeightsWeightV2Weight,
10
11
  PalletNftsBitFlagsPalletFeature,
11
12
  FrameSupportPalletId,
@@ -38,7 +39,7 @@ export interface ChainConsts extends GenericChainConsts {
38
39
  dbWeight: SpWeightsRuntimeDbWeight;
39
40
 
40
41
  /**
41
- * Get the chain's current version.
42
+ * Get the chain's in-code version.
42
43
  **/
43
44
  version: RuntimeVersion;
44
45
 
@@ -60,6 +61,11 @@ export interface ChainConsts extends GenericChainConsts {
60
61
  * Pallet `ParachainSystem`'s constants
61
62
  **/
62
63
  parachainSystem: {
64
+ /**
65
+ * Returns the parachain ID we are running with.
66
+ **/
67
+ selfParaId: PolkadotParachainPrimitivesPrimitivesId;
68
+
63
69
  /**
64
70
  * Generic pallet constant
65
71
  **/
@@ -41,6 +41,11 @@ export interface ChainErrors extends GenericChainErrors {
41
41
  **/
42
42
  CallFiltered: GenericPalletError;
43
43
 
44
+ /**
45
+ * A multi-block migration is ongoing and prevents the current code from being replaced.
46
+ **/
47
+ MultiBlockMigrationsOngoing: GenericPalletError;
48
+
44
49
  /**
45
50
  * No upgrade authorized.
46
51
  **/
@@ -98,6 +98,13 @@ export interface ChainStorage extends GenericChainStorage {
98
98
  **/
99
99
  extrinsicCount: GenericStorageQuery<() => number | undefined>;
100
100
 
101
+ /**
102
+ * Whether all inherents have been applied.
103
+ *
104
+ * @param {Callback<boolean> =} callback
105
+ **/
106
+ inherentsApplied: GenericStorageQuery<() => boolean>;
107
+
101
108
  /**
102
109
  * The current weight for the block.
103
110
  *
@@ -19,6 +19,7 @@ import type {
19
19
  SpConsensusAuraSr25519AppSr25519Public,
20
20
  SpConsensusSlotsSlot,
21
21
  SpRuntimeBlock,
22
+ SpRuntimeExtrinsicInclusionMode,
22
23
  SpCoreOpaqueMetadata,
23
24
  SpRuntimeTransactionValidityTransactionValidityError,
24
25
  SpInherentsInherentData,
@@ -109,12 +110,12 @@ export interface RuntimeApis extends GenericRuntimeApis {
109
110
  executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
110
111
 
111
112
  /**
112
- * Initialize a block with the given header.
113
+ * Initialize a block with the given header and return the runtime executive mode.
113
114
  *
114
115
  * @callname: Core_initialize_block
115
116
  * @param {Header} header
116
117
  **/
117
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
118
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
118
119
 
119
120
  /**
120
121
  * Generic runtime api call
@@ -578,23 +579,23 @@ export interface RuntimeApis extends GenericRuntimeApis {
578
579
  **/
579
580
  genesisBuilder: {
580
581
  /**
581
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
582
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
582
583
  *
583
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
584
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
584
+ * This function instantiates the default `RuntimeGenesisConfig` struct for the runtime and serializes it into a JSON
585
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `RuntimeGenesisConfig`.
585
586
  *
586
587
  * @callname: GenesisBuilder_create_default_config
587
588
  **/
588
589
  createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
589
590
 
590
591
  /**
591
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
592
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
592
593
  *
593
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
594
+ * This function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage.
594
595
  * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
595
596
  * It is recommended to log any errors encountered during the process.
596
597
  *
597
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
598
+ * Please note that provided json blob must contain all `RuntimeGenesisConfig` fields, no defaults will be used.
598
599
  *
599
600
  * @callname: GenesisBuilder_build_config
600
601
  * @param {BytesLike} json