@dedot/chaintypes 0.0.1-alpha.8 → 0.0.1-next.3

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.
Files changed (277) hide show
  1. package/aleph/consts.d.ts +590 -528
  2. package/aleph/errors.d.ts +981 -818
  3. package/aleph/events.d.ts +924 -937
  4. package/aleph/index.d.ts +11 -8
  5. package/aleph/query.d.ts +1477 -1268
  6. package/aleph/rpc.d.ts +725 -573
  7. package/aleph/runtime.d.ts +541 -406
  8. package/aleph/tx.d.ts +2664 -2202
  9. package/aleph/types.d.ts +3474 -5388
  10. package/astar/consts.d.ts +753 -674
  11. package/astar/errors.d.ts +1576 -1313
  12. package/astar/events.d.ts +1709 -1628
  13. package/astar/index.d.ts +11 -8
  14. package/astar/query.d.ts +1756 -1471
  15. package/astar/rpc.d.ts +972 -773
  16. package/astar/runtime.d.ts +310 -258
  17. package/astar/tx.d.ts +5474 -4806
  18. package/astar/types.d.ts +8848 -12108
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1573 -1422
  21. package/kusama/errors.d.ts +2995 -2490
  22. package/kusama/events.d.ts +2996 -2723
  23. package/kusama/index.d.ts +11 -8
  24. package/kusama/query.d.ts +3828 -3248
  25. package/kusama/rpc.d.ts +902 -724
  26. package/kusama/runtime.d.ts +1130 -840
  27. package/kusama/tx.d.ts +7073 -6010
  28. package/kusama/types.d.ts +10151 -15344
  29. package/kusamaAssetHub/consts.d.ts +714 -627
  30. package/kusamaAssetHub/errors.d.ts +1405 -1160
  31. package/kusamaAssetHub/events.d.ts +2149 -2060
  32. package/kusamaAssetHub/index.d.ts +11 -8
  33. package/kusamaAssetHub/query.d.ts +1551 -1298
  34. package/kusamaAssetHub/rpc.d.ts +744 -588
  35. package/kusamaAssetHub/runtime.d.ts +510 -398
  36. package/kusamaAssetHub/tx.d.ts +5050 -4212
  37. package/kusamaAssetHub/types.d.ts +5976 -10009
  38. package/moonbeam/consts.d.ts +1075 -956
  39. package/moonbeam/errors.d.ts +2131 -1793
  40. package/moonbeam/events.d.ts +2932 -2681
  41. package/moonbeam/index.d.ts +11 -8
  42. package/moonbeam/query.d.ts +2391 -2024
  43. package/moonbeam/rpc.d.ts +1013 -807
  44. package/moonbeam/runtime.d.ts +665 -502
  45. package/moonbeam/tx.d.ts +6152 -5201
  46. package/moonbeam/types.d.ts +7731 -12035
  47. package/package.json +9 -8
  48. package/packageInfo.js +1 -1
  49. package/packageInfo.ts +3 -0
  50. package/polkadot/consts.d.ts +1272 -1155
  51. package/polkadot/errors.d.ts +2420 -2016
  52. package/polkadot/events.d.ts +2314 -2092
  53. package/polkadot/index.d.ts +11 -8
  54. package/polkadot/query.d.ts +3319 -2808
  55. package/polkadot/rpc.d.ts +902 -724
  56. package/polkadot/runtime.d.ts +1130 -840
  57. package/polkadot/tx.d.ts +5909 -5005
  58. package/polkadot/types.d.ts +8742 -13290
  59. package/polkadotAssetHub/consts.d.ts +586 -519
  60. package/polkadotAssetHub/errors.d.ts +1115 -921
  61. package/polkadotAssetHub/events.d.ts +1850 -1782
  62. package/polkadotAssetHub/index.d.ts +11 -8
  63. package/polkadotAssetHub/query.d.ts +1457 -1219
  64. package/polkadotAssetHub/rpc.d.ts +744 -588
  65. package/polkadotAssetHub/runtime.d.ts +447 -355
  66. package/polkadotAssetHub/tx.d.ts +4184 -3487
  67. package/polkadotAssetHub/types.d.ts +5183 -8808
  68. package/rococoAssetHub/consts.d.ts +745 -653
  69. package/rococoAssetHub/errors.d.ts +1490 -1227
  70. package/rococoAssetHub/events.d.ts +2127 -2047
  71. package/rococoAssetHub/index.d.ts +11 -8
  72. package/rococoAssetHub/query.d.ts +1513 -1266
  73. package/rococoAssetHub/rpc.d.ts +744 -588
  74. package/rococoAssetHub/runtime.d.ts +538 -424
  75. package/rococoAssetHub/tx.d.ts +5164 -4302
  76. package/rococoAssetHub/types.d.ts +6321 -10636
  77. package/substrate/consts.d.ts +2218 -1966
  78. package/substrate/errors.d.ts +4019 -3333
  79. package/substrate/events.d.ts +4585 -4255
  80. package/substrate/index.d.ts +11 -8
  81. package/substrate/query.d.ts +3887 -3347
  82. package/substrate/rpc.d.ts +892 -716
  83. package/substrate/runtime.d.ts +937 -704
  84. package/substrate/tx.d.ts +10387 -8796
  85. package/substrate/types.d.ts +12809 -19761
  86. package/westendAssetHub/consts.d.ts +745 -653
  87. package/westendAssetHub/errors.d.ts +1490 -1227
  88. package/westendAssetHub/events.d.ts +2127 -2047
  89. package/westendAssetHub/index.d.ts +11 -8
  90. package/westendAssetHub/query.d.ts +1513 -1266
  91. package/westendAssetHub/rpc.d.ts +744 -588
  92. package/westendAssetHub/runtime.d.ts +577 -452
  93. package/westendAssetHub/tx.d.ts +5164 -4302
  94. package/westendAssetHub/types.d.ts +6321 -10633
  95. package/aleph/consts.js +0 -2
  96. package/aleph/errors.js +0 -2
  97. package/aleph/events.js +0 -2
  98. package/aleph/index.js +0 -3
  99. package/aleph/query.js +0 -2
  100. package/aleph/rpc.js +0 -2
  101. package/aleph/runtime.js +0 -2
  102. package/aleph/tx.js +0 -2
  103. package/aleph/types.js +0 -2
  104. package/astar/consts.js +0 -2
  105. package/astar/errors.js +0 -2
  106. package/astar/events.js +0 -2
  107. package/astar/index.js +0 -3
  108. package/astar/query.js +0 -2
  109. package/astar/rpc.js +0 -2
  110. package/astar/runtime.js +0 -2
  111. package/astar/tx.js +0 -2
  112. package/astar/types.js +0 -2
  113. package/cjs/aleph/consts.js +0 -3
  114. package/cjs/aleph/errors.js +0 -3
  115. package/cjs/aleph/events.js +0 -3
  116. package/cjs/aleph/index.js +0 -19
  117. package/cjs/aleph/query.js +0 -3
  118. package/cjs/aleph/rpc.js +0 -3
  119. package/cjs/aleph/runtime.js +0 -3
  120. package/cjs/aleph/tx.js +0 -3
  121. package/cjs/aleph/types.js +0 -3
  122. package/cjs/astar/consts.js +0 -3
  123. package/cjs/astar/errors.js +0 -3
  124. package/cjs/astar/events.js +0 -3
  125. package/cjs/astar/index.js +0 -19
  126. package/cjs/astar/query.js +0 -3
  127. package/cjs/astar/rpc.js +0 -3
  128. package/cjs/astar/runtime.js +0 -3
  129. package/cjs/astar/tx.js +0 -3
  130. package/cjs/astar/types.js +0 -3
  131. package/cjs/index.js +0 -2
  132. package/cjs/kusama/consts.js +0 -3
  133. package/cjs/kusama/errors.js +0 -3
  134. package/cjs/kusama/events.js +0 -3
  135. package/cjs/kusama/index.js +0 -19
  136. package/cjs/kusama/query.js +0 -3
  137. package/cjs/kusama/rpc.js +0 -3
  138. package/cjs/kusama/runtime.js +0 -3
  139. package/cjs/kusama/tx.js +0 -3
  140. package/cjs/kusama/types.js +0 -3
  141. package/cjs/kusamaAssetHub/consts.js +0 -3
  142. package/cjs/kusamaAssetHub/errors.js +0 -3
  143. package/cjs/kusamaAssetHub/events.js +0 -3
  144. package/cjs/kusamaAssetHub/index.js +0 -19
  145. package/cjs/kusamaAssetHub/query.js +0 -3
  146. package/cjs/kusamaAssetHub/rpc.js +0 -3
  147. package/cjs/kusamaAssetHub/runtime.js +0 -3
  148. package/cjs/kusamaAssetHub/tx.js +0 -3
  149. package/cjs/kusamaAssetHub/types.js +0 -3
  150. package/cjs/moonbeam/consts.js +0 -3
  151. package/cjs/moonbeam/errors.js +0 -3
  152. package/cjs/moonbeam/events.js +0 -3
  153. package/cjs/moonbeam/index.js +0 -19
  154. package/cjs/moonbeam/query.js +0 -3
  155. package/cjs/moonbeam/rpc.js +0 -3
  156. package/cjs/moonbeam/runtime.js +0 -3
  157. package/cjs/moonbeam/tx.js +0 -3
  158. package/cjs/moonbeam/types.js +0 -3
  159. package/cjs/package.json +0 -1
  160. package/cjs/packageInfo.js +0 -5
  161. package/cjs/polkadot/consts.js +0 -3
  162. package/cjs/polkadot/errors.js +0 -3
  163. package/cjs/polkadot/events.js +0 -3
  164. package/cjs/polkadot/index.js +0 -19
  165. package/cjs/polkadot/query.js +0 -3
  166. package/cjs/polkadot/rpc.js +0 -3
  167. package/cjs/polkadot/runtime.js +0 -3
  168. package/cjs/polkadot/tx.js +0 -3
  169. package/cjs/polkadot/types.js +0 -3
  170. package/cjs/polkadotAssetHub/consts.js +0 -3
  171. package/cjs/polkadotAssetHub/errors.js +0 -3
  172. package/cjs/polkadotAssetHub/events.js +0 -3
  173. package/cjs/polkadotAssetHub/index.js +0 -19
  174. package/cjs/polkadotAssetHub/query.js +0 -3
  175. package/cjs/polkadotAssetHub/rpc.js +0 -3
  176. package/cjs/polkadotAssetHub/runtime.js +0 -3
  177. package/cjs/polkadotAssetHub/tx.js +0 -3
  178. package/cjs/polkadotAssetHub/types.js +0 -3
  179. package/cjs/rococoAssetHub/consts.js +0 -3
  180. package/cjs/rococoAssetHub/errors.js +0 -3
  181. package/cjs/rococoAssetHub/events.js +0 -3
  182. package/cjs/rococoAssetHub/index.js +0 -19
  183. package/cjs/rococoAssetHub/query.js +0 -3
  184. package/cjs/rococoAssetHub/rpc.js +0 -3
  185. package/cjs/rococoAssetHub/runtime.js +0 -3
  186. package/cjs/rococoAssetHub/tx.js +0 -3
  187. package/cjs/rococoAssetHub/types.js +0 -3
  188. package/cjs/substrate/consts.js +0 -3
  189. package/cjs/substrate/errors.js +0 -3
  190. package/cjs/substrate/events.js +0 -3
  191. package/cjs/substrate/index.js +0 -19
  192. package/cjs/substrate/query.js +0 -3
  193. package/cjs/substrate/rpc.js +0 -3
  194. package/cjs/substrate/runtime.js +0 -3
  195. package/cjs/substrate/tx.js +0 -3
  196. package/cjs/substrate/types.js +0 -3
  197. package/cjs/westendAssetHub/consts.js +0 -3
  198. package/cjs/westendAssetHub/errors.js +0 -3
  199. package/cjs/westendAssetHub/events.js +0 -3
  200. package/cjs/westendAssetHub/index.js +0 -19
  201. package/cjs/westendAssetHub/query.js +0 -3
  202. package/cjs/westendAssetHub/rpc.js +0 -3
  203. package/cjs/westendAssetHub/runtime.js +0 -3
  204. package/cjs/westendAssetHub/tx.js +0 -3
  205. package/cjs/westendAssetHub/types.js +0 -3
  206. package/kusama/consts.js +0 -2
  207. package/kusama/errors.js +0 -2
  208. package/kusama/events.js +0 -2
  209. package/kusama/index.js +0 -3
  210. package/kusama/query.js +0 -2
  211. package/kusama/rpc.js +0 -2
  212. package/kusama/runtime.js +0 -2
  213. package/kusama/tx.js +0 -2
  214. package/kusama/types.js +0 -2
  215. package/kusamaAssetHub/consts.js +0 -2
  216. package/kusamaAssetHub/errors.js +0 -2
  217. package/kusamaAssetHub/events.js +0 -2
  218. package/kusamaAssetHub/index.js +0 -3
  219. package/kusamaAssetHub/query.js +0 -2
  220. package/kusamaAssetHub/rpc.js +0 -2
  221. package/kusamaAssetHub/runtime.js +0 -2
  222. package/kusamaAssetHub/tx.js +0 -2
  223. package/kusamaAssetHub/types.js +0 -2
  224. package/moonbeam/consts.js +0 -2
  225. package/moonbeam/errors.js +0 -2
  226. package/moonbeam/events.js +0 -2
  227. package/moonbeam/index.js +0 -3
  228. package/moonbeam/query.js +0 -2
  229. package/moonbeam/rpc.js +0 -2
  230. package/moonbeam/runtime.js +0 -2
  231. package/moonbeam/tx.js +0 -2
  232. package/moonbeam/types.js +0 -2
  233. package/polkadot/consts.js +0 -2
  234. package/polkadot/errors.js +0 -2
  235. package/polkadot/events.js +0 -2
  236. package/polkadot/index.js +0 -3
  237. package/polkadot/query.js +0 -2
  238. package/polkadot/rpc.js +0 -2
  239. package/polkadot/runtime.js +0 -2
  240. package/polkadot/tx.js +0 -2
  241. package/polkadot/types.js +0 -2
  242. package/polkadotAssetHub/consts.js +0 -2
  243. package/polkadotAssetHub/errors.js +0 -2
  244. package/polkadotAssetHub/events.js +0 -2
  245. package/polkadotAssetHub/index.js +0 -3
  246. package/polkadotAssetHub/query.js +0 -2
  247. package/polkadotAssetHub/rpc.js +0 -2
  248. package/polkadotAssetHub/runtime.js +0 -2
  249. package/polkadotAssetHub/tx.js +0 -2
  250. package/polkadotAssetHub/types.js +0 -2
  251. package/rococoAssetHub/consts.js +0 -2
  252. package/rococoAssetHub/errors.js +0 -2
  253. package/rococoAssetHub/events.js +0 -2
  254. package/rococoAssetHub/index.js +0 -3
  255. package/rococoAssetHub/query.js +0 -2
  256. package/rococoAssetHub/rpc.js +0 -2
  257. package/rococoAssetHub/runtime.js +0 -2
  258. package/rococoAssetHub/tx.js +0 -2
  259. package/rococoAssetHub/types.js +0 -2
  260. package/substrate/consts.js +0 -2
  261. package/substrate/errors.js +0 -2
  262. package/substrate/events.js +0 -2
  263. package/substrate/index.js +0 -3
  264. package/substrate/query.js +0 -2
  265. package/substrate/rpc.js +0 -2
  266. package/substrate/runtime.js +0 -2
  267. package/substrate/tx.js +0 -2
  268. package/substrate/types.js +0 -2
  269. package/westendAssetHub/consts.js +0 -2
  270. package/westendAssetHub/errors.js +0 -2
  271. package/westendAssetHub/events.js +0 -2
  272. package/westendAssetHub/index.js +0 -3
  273. package/westendAssetHub/query.js +0 -2
  274. package/westendAssetHub/rpc.js +0 -2
  275. package/westendAssetHub/runtime.js +0 -2
  276. package/westendAssetHub/tx.js +0 -2
  277. package/westendAssetHub/types.js +0 -2
@@ -1,506 +1,669 @@
1
+ // Generated by @dedot/codegen
2
+
1
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
- import type { Result, H256, RuntimeVersion, Header, DispatchError, Bytes, BytesLike, AccountId20Like, H160, U256, Permill } from '@dedot/codecs';
3
- import type { SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError, SpRuntimeTransactionValidityTransactionSource, FpSelfContainedUncheckedExtrinsic, SpConsensusSlotsSlot, SpRuntimeBlock, SpCoreOpaqueMetadata, SpInherentsInherentData, SpInherentsCheckInherentsResult, SpCoreCryptoKeyTypeId, EthereumTransactionTransactionV2, MoonbeamRpcPrimitivesTxpoolTxPoolResponse, EvmBackendBasic, FpEvmExecutionInfoV2, FpEvmExecutionInfoV2H160, EthereumBlock, EthereumReceiptReceiptV3, FpRpcTransactionStatus, PalletTransactionPaymentRuntimeDispatchInfo, PalletTransactionPaymentFeeDetails, SpWeightsWeightV2Weight, NimbusPrimitivesNimbusCryptoPublic, CumulusPrimitivesCoreCollationInfo, SessionKeysPrimitivesVrfVrfCryptoPublic } from './types';
4
+ import type {
5
+ Result,
6
+ H256,
7
+ RuntimeVersion,
8
+ Header,
9
+ DispatchError,
10
+ Bytes,
11
+ BytesLike,
12
+ AccountId20Like,
13
+ H160,
14
+ U256,
15
+ Permill,
16
+ } from '@dedot/codecs';
17
+ import type {
18
+ SpRuntimeTransactionValidityValidTransaction,
19
+ SpRuntimeTransactionValidityTransactionValidityError,
20
+ SpRuntimeTransactionValidityTransactionSource,
21
+ FpSelfContainedUncheckedExtrinsic,
22
+ SpConsensusSlotsSlot,
23
+ SpRuntimeBlock,
24
+ SpCoreOpaqueMetadata,
25
+ SpInherentsInherentData,
26
+ SpInherentsCheckInherentsResult,
27
+ SpCoreCryptoKeyTypeId,
28
+ EthereumTransactionTransactionV2,
29
+ MoonbeamRpcPrimitivesTxpoolTxPoolResponse,
30
+ EvmBackendBasic,
31
+ FpEvmExecutionInfoV2,
32
+ FpEvmExecutionInfoV2H160,
33
+ EthereumBlock,
34
+ EthereumReceiptReceiptV3,
35
+ FpRpcTransactionStatus,
36
+ PalletTransactionPaymentRuntimeDispatchInfo,
37
+ PalletTransactionPaymentFeeDetails,
38
+ SpWeightsWeightV2Weight,
39
+ NimbusPrimitivesNimbusCryptoPublic,
40
+ CumulusPrimitivesCoreCollationInfo,
41
+ SessionKeysPrimitivesVrfVrfCryptoPublic,
42
+ } from './types';
43
+
4
44
  export interface RuntimeApis extends GenericRuntimeApis {
45
+ /**
46
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
47
+ **/
48
+ taggedTransactionQueue: {
5
49
  /**
6
- * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
7
- **/
8
- taggedTransactionQueue: {
9
- /**
10
- * Validate the transaction.
11
- *
12
- * This method is invoked by the transaction pool to learn details about given transaction.
13
- * The implementation should make sure to verify the correctness of the transaction
14
- * against current state. The given `block_hash` corresponds to the hash of the block
15
- * that is used as current state.
16
- *
17
- * Note that this call may be performed by the pool multiple times and transactions
18
- * might be verified in any possible order.
19
- *
20
- * @callname: TaggedTransactionQueue_validate_transaction
21
- * @param {SpRuntimeTransactionValidityTransactionSource} source
22
- * @param {FpSelfContainedUncheckedExtrinsic} tx
23
- * @param {H256} block_hash
24
- **/
25
- validateTransaction: GenericRuntimeApiMethod<(source: SpRuntimeTransactionValidityTransactionSource, tx: FpSelfContainedUncheckedExtrinsic, blockHash: H256) => Promise<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
26
- /**
27
- * Generic runtime api call
28
- **/
29
- [method: string]: GenericRuntimeApiMethod;
30
- };
31
- /**
32
- * @runtimeapi: UnincludedSegmentApi - 0xd0399cd053adda2b
33
- **/
34
- unincludedSegmentApi: {
35
- /**
36
- * Whether it is legal to extend the chain, assuming the given block is the most
37
- * recently included one as-of the relay parent that will be built against, and
38
- * the given slot.
39
- *
40
- * This should be consistent with the logic the runtime uses when validating blocks to
41
- * avoid issues.
42
- *
43
- * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
44
- * whose state we are querying against, this must always return `true` as long as the slot
45
- * is more recent than the included block itself.
46
- *
47
- * @callname: UnincludedSegmentApi_can_build_upon
48
- * @param {H256} included_hash
49
- * @param {SpConsensusSlotsSlot} slot
50
- **/
51
- canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
52
- /**
53
- * Generic runtime api call
54
- **/
55
- [method: string]: GenericRuntimeApiMethod;
56
- };
57
- /**
58
- * @runtimeapi: Core - 0xdf6acb689907609b
59
- **/
60
- core: {
61
- /**
62
- * Returns the version of the runtime.
63
- *
64
- * @callname: Core_version
65
- **/
66
- version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
67
- /**
68
- * Execute the given block.
69
- *
70
- * @callname: Core_execute_block
71
- * @param {SpRuntimeBlock} block
72
- **/
73
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
74
- /**
75
- * Initialize a block with the given header.
76
- *
77
- * @callname: Core_initialize_block
78
- * @param {Header} header
79
- **/
80
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
81
- /**
82
- * Generic runtime api call
83
- **/
84
- [method: string]: GenericRuntimeApiMethod;
85
- };
86
- /**
87
- * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
88
- **/
89
- metadata: {
90
- /**
91
- * Returns the metadata of a runtime.
92
- *
93
- * @callname: Metadata_metadata
94
- **/
95
- metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
96
- /**
97
- * Returns the metadata at a given version.
98
- *
99
- * If the given `version` isn't supported, this will return `None`.
100
- * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
101
- *
102
- * @callname: Metadata_metadata_at_version
103
- * @param {number} version
104
- **/
105
- metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
106
- /**
107
- * Returns the supported metadata versions.
108
- *
109
- * This can be used to call `metadata_at_version`.
110
- *
111
- * @callname: Metadata_metadata_versions
112
- **/
113
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
114
- /**
115
- * Generic runtime api call
116
- **/
117
- [method: string]: GenericRuntimeApiMethod;
118
- };
119
- /**
120
- * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
121
- **/
122
- blockBuilder: {
123
- /**
124
- * Apply the given extrinsic.
125
- *
126
- * Returns an inclusion outcome which specifies if this extrinsic is included in
127
- * this block or not.
128
- *
129
- * @callname: BlockBuilder_apply_extrinsic
130
- * @param {FpSelfContainedUncheckedExtrinsic} extrinsic
131
- **/
132
- applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: FpSelfContainedUncheckedExtrinsic) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
133
- /**
134
- * Finish the current block.
135
- *
136
- * @callname: BlockBuilder_finalize_block
137
- **/
138
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
139
- /**
140
- * Generate inherent extrinsics. The inherent data will vary from chain to chain.
141
- *
142
- * @callname: BlockBuilder_inherent_extrinsics
143
- * @param {SpInherentsInherentData} inherent
144
- **/
145
- inherentExtrinsics: GenericRuntimeApiMethod<(inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>>;
146
- /**
147
- * Check that the inherents are valid. The inherent data will vary from chain to chain.
148
- *
149
- * @callname: BlockBuilder_check_inherents
150
- * @param {SpRuntimeBlock} block
151
- * @param {SpInherentsInherentData} data
152
- **/
153
- checkInherents: GenericRuntimeApiMethod<(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>>;
154
- /**
155
- * Generic runtime api call
156
- **/
157
- [method: string]: GenericRuntimeApiMethod;
158
- };
159
- /**
160
- * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
161
- **/
162
- offchainWorkerApi: {
163
- /**
164
- * Starts the off-chain task for given block header.
165
- *
166
- * @callname: OffchainWorkerApi_offchain_worker
167
- * @param {Header} header
168
- **/
169
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
170
- /**
171
- * Generic runtime api call
172
- **/
173
- [method: string]: GenericRuntimeApiMethod;
174
- };
175
- /**
176
- * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
177
- **/
178
- sessionKeys: {
179
- /**
180
- * Generate a set of session keys with optionally using the given seed.
181
- * The keys should be stored within the keystore exposed via runtime
182
- * externalities.
183
- *
184
- * The seed needs to be a valid `utf8` string.
185
- *
186
- * Returns the concatenated SCALE encoded public keys.
187
- *
188
- * @callname: SessionKeys_generate_session_keys
189
- * @param {BytesLike | undefined} seed
190
- **/
191
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
192
- /**
193
- * Decode the given public session keys.
194
- *
195
- * Returns the list of public raw public keys + key type.
196
- *
197
- * @callname: SessionKeys_decode_session_keys
198
- * @param {BytesLike} encoded
199
- **/
200
- decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
201
- /**
202
- * Generic runtime api call
203
- **/
204
- [method: string]: GenericRuntimeApiMethod;
205
- };
206
- /**
207
- * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
208
- **/
209
- accountNonceApi: {
210
- /**
211
- * Get current account nonce of given `AccountId`.
212
- *
213
- * @callname: AccountNonceApi_account_nonce
214
- * @param {AccountId20Like} account
215
- **/
216
- accountNonce: GenericRuntimeApiMethod<(account: AccountId20Like) => Promise<number>>;
217
- /**
218
- * Generic runtime api call
219
- **/
220
- [method: string]: GenericRuntimeApiMethod;
221
- };
222
- /**
223
- * @runtimeapi: DebugRuntimeApi - 0xbd78255d4feeea1f
224
- **/
225
- debugRuntimeApi: {
226
- /**
227
- *
228
- * @callname: DebugRuntimeApi_trace_transaction
229
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
230
- * @param {EthereumTransactionTransactionV2} transaction
231
- **/
232
- traceTransaction: GenericRuntimeApiMethod<(extrinsics: Array<FpSelfContainedUncheckedExtrinsic>, transaction: EthereumTransactionTransactionV2) => Promise<Result<[], DispatchError>>>;
233
- /**
234
- *
235
- * @callname: DebugRuntimeApi_trace_block
236
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
237
- * @param {Array<H256>} known_transactions
238
- **/
239
- traceBlock: GenericRuntimeApiMethod<(extrinsics: Array<FpSelfContainedUncheckedExtrinsic>, knownTransactions: Array<H256>) => Promise<Result<[], DispatchError>>>;
240
- /**
241
- * Generic runtime api call
242
- **/
243
- [method: string]: GenericRuntimeApiMethod;
244
- };
245
- /**
246
- * @runtimeapi: TxPoolRuntimeApi - 0xa33d43f58731ad84
247
- **/
248
- txPoolRuntimeApi: {
249
- /**
250
- *
251
- * @callname: TxPoolRuntimeApi_extrinsic_filter
252
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_ready
253
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_future
254
- **/
255
- extrinsicFilter: GenericRuntimeApiMethod<(xtReady: Array<FpSelfContainedUncheckedExtrinsic>, xtFuture: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<MoonbeamRpcPrimitivesTxpoolTxPoolResponse>>;
256
- /**
257
- * Generic runtime api call
258
- **/
259
- [method: string]: GenericRuntimeApiMethod;
260
- };
261
- /**
262
- * @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
263
- **/
264
- ethereumRuntimeRPCApi: {
265
- /**
266
- * Returns runtime defined pallet_evm::ChainId.
267
- *
268
- * @callname: EthereumRuntimeRPCApi_chain_id
269
- **/
270
- chainId: GenericRuntimeApiMethod<() => Promise<bigint>>;
271
- /**
272
- * Returns pallet_evm::Accounts by address.
273
- *
274
- * @callname: EthereumRuntimeRPCApi_account_basic
275
- * @param {H160} address
276
- **/
277
- accountBasic: GenericRuntimeApiMethod<(address: H160) => Promise<EvmBackendBasic>>;
278
- /**
279
- * Returns FixedGasPrice::min_gas_price
280
- *
281
- * @callname: EthereumRuntimeRPCApi_gas_price
282
- **/
283
- gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
284
- /**
285
- * For a given account address, returns pallet_evm::AccountCodes.
286
- *
287
- * @callname: EthereumRuntimeRPCApi_account_code_at
288
- * @param {H160} address
289
- **/
290
- accountCodeAt: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
291
- /**
292
- * Returns the converted FindAuthor::find_author authority id.
293
- *
294
- * @callname: EthereumRuntimeRPCApi_author
295
- **/
296
- author: GenericRuntimeApiMethod<() => Promise<H160>>;
297
- /**
298
- * For a given account address and index, returns pallet_evm::AccountStorages.
299
- *
300
- * @callname: EthereumRuntimeRPCApi_storage_at
301
- * @param {H160} address
302
- * @param {U256} index
303
- **/
304
- storageAt: GenericRuntimeApiMethod<(address: H160, index: U256) => Promise<H256>>;
305
- /**
306
- *
307
- * @callname: EthereumRuntimeRPCApi_call
308
- * @param {H160} from
309
- * @param {H160} to
310
- * @param {BytesLike} data
311
- * @param {U256} value
312
- * @param {U256} gas_limit
313
- * @param {U256 | undefined} max_fee_per_gas
314
- * @param {U256 | undefined} max_priority_fee_per_gas
315
- * @param {U256 | undefined} nonce
316
- * @param {boolean} estimate
317
- * @param {Array<[H160, Array<H256>]> | undefined} access_list
318
- **/
319
- call: GenericRuntimeApiMethod<(from: H160, to: H160, data: BytesLike, value: U256, gasLimit: U256, maxFeePerGas: U256 | undefined, maxPriorityFeePerGas: U256 | undefined, nonce: U256 | undefined, estimate: boolean, accessList?: Array<[H160, Array<H256>]> | undefined) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>>;
320
- /**
321
- *
322
- * @callname: EthereumRuntimeRPCApi_create
323
- * @param {H160} from
324
- * @param {BytesLike} data
325
- * @param {U256} value
326
- * @param {U256} gas_limit
327
- * @param {U256 | undefined} max_fee_per_gas
328
- * @param {U256 | undefined} max_priority_fee_per_gas
329
- * @param {U256 | undefined} nonce
330
- * @param {boolean} estimate
331
- * @param {Array<[H160, Array<H256>]> | undefined} access_list
332
- **/
333
- create: GenericRuntimeApiMethod<(from: H160, data: BytesLike, value: U256, gasLimit: U256, maxFeePerGas: U256 | undefined, maxPriorityFeePerGas: U256 | undefined, nonce: U256 | undefined, estimate: boolean, accessList?: Array<[H160, Array<H256>]> | undefined) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>>;
334
- /**
335
- * Return the current block.
336
- *
337
- * @callname: EthereumRuntimeRPCApi_current_block
338
- **/
339
- currentBlock: GenericRuntimeApiMethod<() => Promise<EthereumBlock | undefined>>;
340
- /**
341
- * Return the current receipt.
342
- *
343
- * @callname: EthereumRuntimeRPCApi_current_receipts
344
- **/
345
- currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
346
- /**
347
- * Return the current transaction status.
348
- *
349
- * @callname: EthereumRuntimeRPCApi_current_transaction_statuses
350
- **/
351
- currentTransactionStatuses: GenericRuntimeApiMethod<() => Promise<Array<FpRpcTransactionStatus> | undefined>>;
352
- /**
353
- *
354
- * @callname: EthereumRuntimeRPCApi_current_all
355
- **/
356
- currentAll: GenericRuntimeApiMethod<() => Promise<[
357
- EthereumBlock | undefined,
358
- Array<EthereumReceiptReceiptV3> | undefined,
359
- Array<FpRpcTransactionStatus> | undefined
360
- ]>>;
361
- /**
362
- * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
363
- *
364
- * @callname: EthereumRuntimeRPCApi_extrinsic_filter
365
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
366
- **/
367
- extrinsicFilter: GenericRuntimeApiMethod<(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>>;
368
- /**
369
- * Return the elasticity multiplier.
370
- *
371
- * @callname: EthereumRuntimeRPCApi_elasticity
372
- **/
373
- elasticity: GenericRuntimeApiMethod<() => Promise<Permill | undefined>>;
374
- /**
375
- * Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
376
- * is supported.
377
- *
378
- * @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
379
- **/
380
- gasLimitMultiplierSupport: GenericRuntimeApiMethod<() => Promise<[]>>;
381
- /**
382
- * Return the pending block.
383
- *
384
- * @callname: EthereumRuntimeRPCApi_pending_block
385
- * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
386
- **/
387
- pendingBlock: GenericRuntimeApiMethod<(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>>;
388
- /**
389
- * initialize the pending block
390
- *
391
- * @callname: EthereumRuntimeRPCApi_initialize_pending_block
392
- * @param {Header} header
393
- **/
394
- initializePendingBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
395
- /**
396
- * Generic runtime api call
397
- **/
398
- [method: string]: GenericRuntimeApiMethod;
399
- };
400
- /**
401
- * @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
402
- **/
403
- convertTransactionRuntimeApi: {
404
- /**
405
- *
406
- * @callname: ConvertTransactionRuntimeApi_convert_transaction
407
- * @param {EthereumTransactionTransactionV2} transaction
408
- **/
409
- convertTransaction: GenericRuntimeApiMethod<(transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>>;
410
- /**
411
- * Generic runtime api call
412
- **/
413
- [method: string]: GenericRuntimeApiMethod;
414
- };
415
- /**
416
- * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
417
- **/
418
- transactionPaymentApi: {
419
- /**
420
- *
421
- * @callname: TransactionPaymentApi_query_info
422
- * @param {FpSelfContainedUncheckedExtrinsic} uxt
423
- * @param {number} len
424
- **/
425
- queryInfo: GenericRuntimeApiMethod<(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
426
- /**
427
- *
428
- * @callname: TransactionPaymentApi_query_fee_details
429
- * @param {FpSelfContainedUncheckedExtrinsic} uxt
430
- * @param {number} len
431
- **/
432
- queryFeeDetails: GenericRuntimeApiMethod<(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
433
- /**
434
- *
435
- * @callname: TransactionPaymentApi_query_weight_to_fee
436
- * @param {SpWeightsWeightV2Weight} weight
437
- **/
438
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
439
- /**
440
- *
441
- * @callname: TransactionPaymentApi_query_length_to_fee
442
- * @param {number} length
443
- **/
444
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
445
- /**
446
- * Generic runtime api call
447
- **/
448
- [method: string]: GenericRuntimeApiMethod;
449
- };
450
- /**
451
- * @runtimeapi: NimbusApi - 0x2aa62120049dd2d2
452
- **/
453
- nimbusApi: {
454
- /**
455
- *
456
- * @callname: NimbusApi_can_author
457
- * @param {NimbusPrimitivesNimbusCryptoPublic} author
458
- * @param {number} relay_parent
459
- * @param {Header} parent_header
460
- **/
461
- canAuthor: GenericRuntimeApiMethod<(author: NimbusPrimitivesNimbusCryptoPublic, relayParent: number, parentHeader: Header) => Promise<boolean>>;
462
- /**
463
- * Generic runtime api call
464
- **/
465
- [method: string]: GenericRuntimeApiMethod;
466
- };
467
- /**
468
- * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
469
- **/
470
- collectCollationInfo: {
471
- /**
472
- * Collect information about a collation.
473
- *
474
- * The given `header` is the header of the built block for that
475
- * we are collecting the collation info for.
476
- *
477
- * @callname: CollectCollationInfo_collect_collation_info
478
- * @param {Header} header
479
- **/
480
- collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
481
- /**
482
- * Generic runtime api call
483
- **/
484
- [method: string]: GenericRuntimeApiMethod;
485
- };
486
- /**
487
- * @runtimeapi: VrfApi - 0xba8173bf23b2e6f8
488
- **/
489
- vrfApi: {
490
- /**
491
- *
492
- * @callname: VrfApi_get_last_vrf_output
493
- **/
494
- getLastVrfOutput: GenericRuntimeApiMethod<() => Promise<H256 | undefined>>;
495
- /**
496
- *
497
- * @callname: VrfApi_vrf_key_lookup
498
- * @param {NimbusPrimitivesNimbusCryptoPublic} nimbus_id
499
- **/
500
- vrfKeyLookup: GenericRuntimeApiMethod<(nimbusId: NimbusPrimitivesNimbusCryptoPublic) => Promise<SessionKeysPrimitivesVrfVrfCryptoPublic | undefined>>;
501
- /**
502
- * Generic runtime api call
503
- **/
504
- [method: string]: GenericRuntimeApiMethod;
505
- };
50
+ * Validate the transaction.
51
+ *
52
+ * This method is invoked by the transaction pool to learn details about given transaction.
53
+ * The implementation should make sure to verify the correctness of the transaction
54
+ * against current state. The given `block_hash` corresponds to the hash of the block
55
+ * that is used as current state.
56
+ *
57
+ * Note that this call may be performed by the pool multiple times and transactions
58
+ * might be verified in any possible order.
59
+ *
60
+ * @callname: TaggedTransactionQueue_validate_transaction
61
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
62
+ * @param {FpSelfContainedUncheckedExtrinsic} tx
63
+ * @param {H256} block_hash
64
+ **/
65
+ validateTransaction: GenericRuntimeApiMethod<
66
+ (
67
+ source: SpRuntimeTransactionValidityTransactionSource,
68
+ tx: FpSelfContainedUncheckedExtrinsic,
69
+ blockHash: H256,
70
+ ) => Promise<
71
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
72
+ >
73
+ >;
74
+
75
+ /**
76
+ * Generic runtime api call
77
+ **/
78
+ [method: string]: GenericRuntimeApiMethod;
79
+ };
80
+ /**
81
+ * @runtimeapi: UnincludedSegmentApi - 0xd0399cd053adda2b
82
+ **/
83
+ unincludedSegmentApi: {
84
+ /**
85
+ * Whether it is legal to extend the chain, assuming the given block is the most
86
+ * recently included one as-of the relay parent that will be built against, and
87
+ * the given slot.
88
+ *
89
+ * This should be consistent with the logic the runtime uses when validating blocks to
90
+ * avoid issues.
91
+ *
92
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
93
+ * whose state we are querying against, this must always return `true` as long as the slot
94
+ * is more recent than the included block itself.
95
+ *
96
+ * @callname: UnincludedSegmentApi_can_build_upon
97
+ * @param {H256} included_hash
98
+ * @param {SpConsensusSlotsSlot} slot
99
+ **/
100
+ canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
101
+
102
+ /**
103
+ * Generic runtime api call
104
+ **/
105
+ [method: string]: GenericRuntimeApiMethod;
106
+ };
107
+ /**
108
+ * @runtimeapi: Core - 0xdf6acb689907609b
109
+ **/
110
+ core: {
111
+ /**
112
+ * Returns the version of the runtime.
113
+ *
114
+ * @callname: Core_version
115
+ **/
116
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
117
+
118
+ /**
119
+ * Execute the given block.
120
+ *
121
+ * @callname: Core_execute_block
122
+ * @param {SpRuntimeBlock} block
123
+ **/
124
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
125
+
126
+ /**
127
+ * Initialize a block with the given header.
128
+ *
129
+ * @callname: Core_initialize_block
130
+ * @param {Header} header
131
+ **/
132
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
133
+
134
+ /**
135
+ * Generic runtime api call
136
+ **/
137
+ [method: string]: GenericRuntimeApiMethod;
138
+ };
139
+ /**
140
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
141
+ **/
142
+ metadata: {
143
+ /**
144
+ * Returns the metadata of a runtime.
145
+ *
146
+ * @callname: Metadata_metadata
147
+ **/
148
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
149
+
150
+ /**
151
+ * Returns the metadata at a given version.
152
+ *
153
+ * If the given `version` isn't supported, this will return `None`.
154
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
155
+ *
156
+ * @callname: Metadata_metadata_at_version
157
+ * @param {number} version
158
+ **/
159
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
160
+
161
+ /**
162
+ * Returns the supported metadata versions.
163
+ *
164
+ * This can be used to call `metadata_at_version`.
165
+ *
166
+ * @callname: Metadata_metadata_versions
167
+ **/
168
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
169
+
170
+ /**
171
+ * Generic runtime api call
172
+ **/
173
+ [method: string]: GenericRuntimeApiMethod;
174
+ };
175
+ /**
176
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
177
+ **/
178
+ blockBuilder: {
179
+ /**
180
+ * Apply the given extrinsic.
181
+ *
182
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
183
+ * this block or not.
184
+ *
185
+ * @callname: BlockBuilder_apply_extrinsic
186
+ * @param {FpSelfContainedUncheckedExtrinsic} extrinsic
187
+ **/
188
+ applyExtrinsic: GenericRuntimeApiMethod<
189
+ (
190
+ extrinsic: FpSelfContainedUncheckedExtrinsic,
191
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
192
+ >;
193
+
194
+ /**
195
+ * Finish the current block.
196
+ *
197
+ * @callname: BlockBuilder_finalize_block
198
+ **/
199
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
200
+
201
+ /**
202
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
203
+ *
204
+ * @callname: BlockBuilder_inherent_extrinsics
205
+ * @param {SpInherentsInherentData} inherent
206
+ **/
207
+ inherentExtrinsics: GenericRuntimeApiMethod<
208
+ (inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
209
+ >;
210
+
211
+ /**
212
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
213
+ *
214
+ * @callname: BlockBuilder_check_inherents
215
+ * @param {SpRuntimeBlock} block
216
+ * @param {SpInherentsInherentData} data
217
+ **/
218
+ checkInherents: GenericRuntimeApiMethod<
219
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
220
+ >;
221
+
222
+ /**
223
+ * Generic runtime api call
224
+ **/
225
+ [method: string]: GenericRuntimeApiMethod;
226
+ };
227
+ /**
228
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
229
+ **/
230
+ offchainWorkerApi: {
231
+ /**
232
+ * Starts the off-chain task for given block header.
233
+ *
234
+ * @callname: OffchainWorkerApi_offchain_worker
235
+ * @param {Header} header
236
+ **/
237
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
238
+
239
+ /**
240
+ * Generic runtime api call
241
+ **/
242
+ [method: string]: GenericRuntimeApiMethod;
243
+ };
244
+ /**
245
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
246
+ **/
247
+ sessionKeys: {
248
+ /**
249
+ * Generate a set of session keys with optionally using the given seed.
250
+ * The keys should be stored within the keystore exposed via runtime
251
+ * externalities.
252
+ *
253
+ * The seed needs to be a valid `utf8` string.
254
+ *
255
+ * Returns the concatenated SCALE encoded public keys.
256
+ *
257
+ * @callname: SessionKeys_generate_session_keys
258
+ * @param {BytesLike | undefined} seed
259
+ **/
260
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
261
+
262
+ /**
263
+ * Decode the given public session keys.
264
+ *
265
+ * Returns the list of public raw public keys + key type.
266
+ *
267
+ * @callname: SessionKeys_decode_session_keys
268
+ * @param {BytesLike} encoded
269
+ **/
270
+ decodeSessionKeys: GenericRuntimeApiMethod<
271
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
272
+ >;
273
+
274
+ /**
275
+ * Generic runtime api call
276
+ **/
277
+ [method: string]: GenericRuntimeApiMethod;
278
+ };
279
+ /**
280
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
281
+ **/
282
+ accountNonceApi: {
283
+ /**
284
+ * Get current account nonce of given `AccountId`.
285
+ *
286
+ * @callname: AccountNonceApi_account_nonce
287
+ * @param {AccountId20Like} account
288
+ **/
289
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId20Like) => Promise<number>>;
290
+
291
+ /**
292
+ * Generic runtime api call
293
+ **/
294
+ [method: string]: GenericRuntimeApiMethod;
295
+ };
296
+ /**
297
+ * @runtimeapi: DebugRuntimeApi - 0xbd78255d4feeea1f
298
+ **/
299
+ debugRuntimeApi: {
300
+ /**
301
+ *
302
+ * @callname: DebugRuntimeApi_trace_transaction
303
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
304
+ * @param {EthereumTransactionTransactionV2} transaction
305
+ **/
306
+ traceTransaction: GenericRuntimeApiMethod<
307
+ (
308
+ extrinsics: Array<FpSelfContainedUncheckedExtrinsic>,
309
+ transaction: EthereumTransactionTransactionV2,
310
+ ) => Promise<Result<[], DispatchError>>
311
+ >;
312
+
313
+ /**
314
+ *
315
+ * @callname: DebugRuntimeApi_trace_block
316
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
317
+ * @param {Array<H256>} known_transactions
318
+ **/
319
+ traceBlock: GenericRuntimeApiMethod<
320
+ (
321
+ extrinsics: Array<FpSelfContainedUncheckedExtrinsic>,
322
+ knownTransactions: Array<H256>,
323
+ ) => Promise<Result<[], DispatchError>>
324
+ >;
325
+
326
+ /**
327
+ * Generic runtime api call
328
+ **/
329
+ [method: string]: GenericRuntimeApiMethod;
330
+ };
331
+ /**
332
+ * @runtimeapi: TxPoolRuntimeApi - 0xa33d43f58731ad84
333
+ **/
334
+ txPoolRuntimeApi: {
335
+ /**
336
+ *
337
+ * @callname: TxPoolRuntimeApi_extrinsic_filter
338
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_ready
339
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_future
340
+ **/
341
+ extrinsicFilter: GenericRuntimeApiMethod<
342
+ (
343
+ xtReady: Array<FpSelfContainedUncheckedExtrinsic>,
344
+ xtFuture: Array<FpSelfContainedUncheckedExtrinsic>,
345
+ ) => Promise<MoonbeamRpcPrimitivesTxpoolTxPoolResponse>
346
+ >;
347
+
348
+ /**
349
+ * Generic runtime api call
350
+ **/
351
+ [method: string]: GenericRuntimeApiMethod;
352
+ };
353
+ /**
354
+ * @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
355
+ **/
356
+ ethereumRuntimeRPCApi: {
357
+ /**
358
+ * Returns runtime defined pallet_evm::ChainId.
359
+ *
360
+ * @callname: EthereumRuntimeRPCApi_chain_id
361
+ **/
362
+ chainId: GenericRuntimeApiMethod<() => Promise<bigint>>;
363
+
364
+ /**
365
+ * Returns pallet_evm::Accounts by address.
366
+ *
367
+ * @callname: EthereumRuntimeRPCApi_account_basic
368
+ * @param {H160} address
369
+ **/
370
+ accountBasic: GenericRuntimeApiMethod<(address: H160) => Promise<EvmBackendBasic>>;
371
+
372
+ /**
373
+ * Returns FixedGasPrice::min_gas_price
374
+ *
375
+ * @callname: EthereumRuntimeRPCApi_gas_price
376
+ **/
377
+ gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
378
+
379
+ /**
380
+ * For a given account address, returns pallet_evm::AccountCodes.
381
+ *
382
+ * @callname: EthereumRuntimeRPCApi_account_code_at
383
+ * @param {H160} address
384
+ **/
385
+ accountCodeAt: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
386
+
387
+ /**
388
+ * Returns the converted FindAuthor::find_author authority id.
389
+ *
390
+ * @callname: EthereumRuntimeRPCApi_author
391
+ **/
392
+ author: GenericRuntimeApiMethod<() => Promise<H160>>;
393
+
394
+ /**
395
+ * For a given account address and index, returns pallet_evm::AccountStorages.
396
+ *
397
+ * @callname: EthereumRuntimeRPCApi_storage_at
398
+ * @param {H160} address
399
+ * @param {U256} index
400
+ **/
401
+ storageAt: GenericRuntimeApiMethod<(address: H160, index: U256) => Promise<H256>>;
402
+
403
+ /**
404
+ *
405
+ * @callname: EthereumRuntimeRPCApi_call
406
+ * @param {H160} from
407
+ * @param {H160} to
408
+ * @param {BytesLike} data
409
+ * @param {U256} value
410
+ * @param {U256} gas_limit
411
+ * @param {U256 | undefined} max_fee_per_gas
412
+ * @param {U256 | undefined} max_priority_fee_per_gas
413
+ * @param {U256 | undefined} nonce
414
+ * @param {boolean} estimate
415
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
416
+ **/
417
+ call: GenericRuntimeApiMethod<
418
+ (
419
+ from: H160,
420
+ to: H160,
421
+ data: BytesLike,
422
+ value: U256,
423
+ gasLimit: U256,
424
+ maxFeePerGas: U256 | undefined,
425
+ maxPriorityFeePerGas: U256 | undefined,
426
+ nonce: U256 | undefined,
427
+ estimate: boolean,
428
+ accessList?: Array<[H160, Array<H256>]> | undefined,
429
+ ) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
430
+ >;
431
+
432
+ /**
433
+ *
434
+ * @callname: EthereumRuntimeRPCApi_create
435
+ * @param {H160} from
436
+ * @param {BytesLike} data
437
+ * @param {U256} value
438
+ * @param {U256} gas_limit
439
+ * @param {U256 | undefined} max_fee_per_gas
440
+ * @param {U256 | undefined} max_priority_fee_per_gas
441
+ * @param {U256 | undefined} nonce
442
+ * @param {boolean} estimate
443
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
444
+ **/
445
+ create: GenericRuntimeApiMethod<
446
+ (
447
+ from: H160,
448
+ data: BytesLike,
449
+ value: U256,
450
+ gasLimit: U256,
451
+ maxFeePerGas: U256 | undefined,
452
+ maxPriorityFeePerGas: U256 | undefined,
453
+ nonce: U256 | undefined,
454
+ estimate: boolean,
455
+ accessList?: Array<[H160, Array<H256>]> | undefined,
456
+ ) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
457
+ >;
458
+
459
+ /**
460
+ * Return the current block.
461
+ *
462
+ * @callname: EthereumRuntimeRPCApi_current_block
463
+ **/
464
+ currentBlock: GenericRuntimeApiMethod<() => Promise<EthereumBlock | undefined>>;
465
+
466
+ /**
467
+ * Return the current receipt.
468
+ *
469
+ * @callname: EthereumRuntimeRPCApi_current_receipts
470
+ **/
471
+ currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
472
+
473
+ /**
474
+ * Return the current transaction status.
475
+ *
476
+ * @callname: EthereumRuntimeRPCApi_current_transaction_statuses
477
+ **/
478
+ currentTransactionStatuses: GenericRuntimeApiMethod<() => Promise<Array<FpRpcTransactionStatus> | undefined>>;
479
+
480
+ /**
481
+ *
482
+ * @callname: EthereumRuntimeRPCApi_current_all
483
+ **/
484
+ currentAll: GenericRuntimeApiMethod<
485
+ () => Promise<
486
+ [
487
+ EthereumBlock | undefined,
488
+ Array<EthereumReceiptReceiptV3> | undefined,
489
+ Array<FpRpcTransactionStatus> | undefined,
490
+ ]
491
+ >
492
+ >;
493
+
494
+ /**
495
+ * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
496
+ *
497
+ * @callname: EthereumRuntimeRPCApi_extrinsic_filter
498
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
499
+ **/
500
+ extrinsicFilter: GenericRuntimeApiMethod<
501
+ (xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
502
+ >;
503
+
504
+ /**
505
+ * Return the elasticity multiplier.
506
+ *
507
+ * @callname: EthereumRuntimeRPCApi_elasticity
508
+ **/
509
+ elasticity: GenericRuntimeApiMethod<() => Promise<Permill | undefined>>;
510
+
511
+ /**
512
+ * Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
513
+ * is supported.
514
+ *
515
+ * @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
516
+ **/
517
+ gasLimitMultiplierSupport: GenericRuntimeApiMethod<() => Promise<[]>>;
518
+
519
+ /**
520
+ * Return the pending block.
521
+ *
522
+ * @callname: EthereumRuntimeRPCApi_pending_block
523
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
524
+ **/
525
+ pendingBlock: GenericRuntimeApiMethod<
526
+ (
527
+ xts: Array<FpSelfContainedUncheckedExtrinsic>,
528
+ ) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
529
+ >;
530
+
531
+ /**
532
+ * initialize the pending block
533
+ *
534
+ * @callname: EthereumRuntimeRPCApi_initialize_pending_block
535
+ * @param {Header} header
536
+ **/
537
+ initializePendingBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
538
+
539
+ /**
540
+ * Generic runtime api call
541
+ **/
542
+ [method: string]: GenericRuntimeApiMethod;
543
+ };
544
+ /**
545
+ * @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
546
+ **/
547
+ convertTransactionRuntimeApi: {
548
+ /**
549
+ *
550
+ * @callname: ConvertTransactionRuntimeApi_convert_transaction
551
+ * @param {EthereumTransactionTransactionV2} transaction
552
+ **/
553
+ convertTransaction: GenericRuntimeApiMethod<
554
+ (transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
555
+ >;
556
+
557
+ /**
558
+ * Generic runtime api call
559
+ **/
560
+ [method: string]: GenericRuntimeApiMethod;
561
+ };
562
+ /**
563
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
564
+ **/
565
+ transactionPaymentApi: {
566
+ /**
567
+ *
568
+ * @callname: TransactionPaymentApi_query_info
569
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
570
+ * @param {number} len
571
+ **/
572
+ queryInfo: GenericRuntimeApiMethod<
573
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
574
+ >;
575
+
576
+ /**
577
+ *
578
+ * @callname: TransactionPaymentApi_query_fee_details
579
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
580
+ * @param {number} len
581
+ **/
582
+ queryFeeDetails: GenericRuntimeApiMethod<
583
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
584
+ >;
585
+
586
+ /**
587
+ *
588
+ * @callname: TransactionPaymentApi_query_weight_to_fee
589
+ * @param {SpWeightsWeightV2Weight} weight
590
+ **/
591
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
592
+
593
+ /**
594
+ *
595
+ * @callname: TransactionPaymentApi_query_length_to_fee
596
+ * @param {number} length
597
+ **/
598
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
599
+
600
+ /**
601
+ * Generic runtime api call
602
+ **/
603
+ [method: string]: GenericRuntimeApiMethod;
604
+ };
605
+ /**
606
+ * @runtimeapi: NimbusApi - 0x2aa62120049dd2d2
607
+ **/
608
+ nimbusApi: {
609
+ /**
610
+ *
611
+ * @callname: NimbusApi_can_author
612
+ * @param {NimbusPrimitivesNimbusCryptoPublic} author
613
+ * @param {number} relay_parent
614
+ * @param {Header} parent_header
615
+ **/
616
+ canAuthor: GenericRuntimeApiMethod<
617
+ (author: NimbusPrimitivesNimbusCryptoPublic, relayParent: number, parentHeader: Header) => Promise<boolean>
618
+ >;
619
+
620
+ /**
621
+ * Generic runtime api call
622
+ **/
623
+ [method: string]: GenericRuntimeApiMethod;
624
+ };
625
+ /**
626
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
627
+ **/
628
+ collectCollationInfo: {
629
+ /**
630
+ * Collect information about a collation.
631
+ *
632
+ * The given `header` is the header of the built block for that
633
+ * we are collecting the collation info for.
634
+ *
635
+ * @callname: CollectCollationInfo_collect_collation_info
636
+ * @param {Header} header
637
+ **/
638
+ collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
639
+
640
+ /**
641
+ * Generic runtime api call
642
+ **/
643
+ [method: string]: GenericRuntimeApiMethod;
644
+ };
645
+ /**
646
+ * @runtimeapi: VrfApi - 0xba8173bf23b2e6f8
647
+ **/
648
+ vrfApi: {
649
+ /**
650
+ *
651
+ * @callname: VrfApi_get_last_vrf_output
652
+ **/
653
+ getLastVrfOutput: GenericRuntimeApiMethod<() => Promise<H256 | undefined>>;
654
+
655
+ /**
656
+ *
657
+ * @callname: VrfApi_vrf_key_lookup
658
+ * @param {NimbusPrimitivesNimbusCryptoPublic} nimbus_id
659
+ **/
660
+ vrfKeyLookup: GenericRuntimeApiMethod<
661
+ (nimbusId: NimbusPrimitivesNimbusCryptoPublic) => Promise<SessionKeysPrimitivesVrfVrfCryptoPublic | undefined>
662
+ >;
663
+
664
+ /**
665
+ * Generic runtime api call
666
+ **/
667
+ [method: string]: GenericRuntimeApiMethod;
668
+ };
506
669
  }