@dedot/chaintypes 0.0.1-alpha.3 → 0.0.1-alpha.30

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 (287) 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 +775 -675
  11. package/astar/errors.d.ts +1601 -1313
  12. package/astar/events.d.ts +1762 -1628
  13. package/astar/index.d.ts +11 -8
  14. package/astar/query.d.ts +1804 -1471
  15. package/astar/rpc.d.ts +972 -773
  16. package/astar/runtime.d.ts +747 -258
  17. package/astar/tx.d.ts +4016 -4806
  18. package/astar/types.d.ts +6474 -12262
  19. package/index.d.ts +1 -0
  20. package/index.ts +11 -0
  21. package/kusama/consts.d.ts +1573 -1422
  22. package/kusama/errors.d.ts +2995 -2490
  23. package/kusama/events.d.ts +2996 -2723
  24. package/kusama/index.d.ts +11 -8
  25. package/kusama/query.d.ts +3828 -3248
  26. package/kusama/rpc.d.ts +902 -724
  27. package/kusama/runtime.d.ts +1130 -840
  28. package/kusama/tx.d.ts +7073 -6010
  29. package/kusama/types.d.ts +10151 -15344
  30. package/kusamaAssetHub/consts.d.ts +714 -627
  31. package/kusamaAssetHub/errors.d.ts +1405 -1160
  32. package/kusamaAssetHub/events.d.ts +2149 -2060
  33. package/kusamaAssetHub/index.d.ts +11 -8
  34. package/kusamaAssetHub/query.d.ts +1551 -1298
  35. package/kusamaAssetHub/rpc.d.ts +744 -588
  36. package/kusamaAssetHub/runtime.d.ts +510 -398
  37. package/kusamaAssetHub/tx.d.ts +5050 -4212
  38. package/kusamaAssetHub/types.d.ts +5976 -10009
  39. package/moonbeam/consts.d.ts +1075 -956
  40. package/moonbeam/errors.d.ts +2131 -1793
  41. package/moonbeam/events.d.ts +2932 -2681
  42. package/moonbeam/index.d.ts +11 -8
  43. package/moonbeam/query.d.ts +2391 -2024
  44. package/moonbeam/rpc.d.ts +1013 -807
  45. package/moonbeam/runtime.d.ts +665 -502
  46. package/moonbeam/tx.d.ts +6152 -5201
  47. package/moonbeam/types.d.ts +7731 -12035
  48. package/package.json +9 -16
  49. package/polkadot/consts.d.ts +1272 -1155
  50. package/polkadot/errors.d.ts +2420 -2016
  51. package/polkadot/events.d.ts +2314 -2092
  52. package/polkadot/index.d.ts +11 -8
  53. package/polkadot/query.d.ts +3319 -2808
  54. package/polkadot/rpc.d.ts +902 -724
  55. package/polkadot/runtime.d.ts +1130 -840
  56. package/polkadot/tx.d.ts +5909 -5005
  57. package/polkadot/types.d.ts +8742 -13290
  58. package/polkadotAssetHub/consts.d.ts +586 -519
  59. package/polkadotAssetHub/errors.d.ts +1115 -921
  60. package/polkadotAssetHub/events.d.ts +1850 -1782
  61. package/polkadotAssetHub/index.d.ts +11 -8
  62. package/polkadotAssetHub/query.d.ts +1457 -1219
  63. package/polkadotAssetHub/rpc.d.ts +744 -588
  64. package/polkadotAssetHub/runtime.d.ts +447 -355
  65. package/polkadotAssetHub/tx.d.ts +4184 -3487
  66. package/polkadotAssetHub/types.d.ts +5183 -8808
  67. package/rococo/consts.d.ts +1396 -0
  68. package/rococo/errors.d.ts +2860 -0
  69. package/rococo/events.d.ts +3142 -0
  70. package/rococo/index.d.ts +22 -0
  71. package/rococo/query.d.ts +3275 -0
  72. package/rococo/rpc.d.ts +904 -0
  73. package/rococo/runtime.d.ts +1052 -0
  74. package/rococo/tx.d.ts +9083 -0
  75. package/rococo/types.d.ts +14573 -0
  76. package/rococoAssetHub/consts.d.ts +751 -653
  77. package/rococoAssetHub/errors.d.ts +1495 -1227
  78. package/rococoAssetHub/events.d.ts +2127 -2047
  79. package/rococoAssetHub/index.d.ts +11 -8
  80. package/rococoAssetHub/query.d.ts +1520 -1266
  81. package/rococoAssetHub/rpc.d.ts +744 -588
  82. package/rococoAssetHub/runtime.d.ts +539 -424
  83. package/rococoAssetHub/tx.d.ts +7826 -4302
  84. package/rococoAssetHub/types.d.ts +11614 -10637
  85. package/substrate/consts.d.ts +2218 -1966
  86. package/substrate/errors.d.ts +4019 -3333
  87. package/substrate/events.d.ts +4585 -4255
  88. package/substrate/index.d.ts +11 -8
  89. package/substrate/query.d.ts +3887 -3347
  90. package/substrate/rpc.d.ts +913 -716
  91. package/substrate/runtime.d.ts +937 -704
  92. package/substrate/tx.d.ts +10387 -8796
  93. package/substrate/types.d.ts +12809 -19761
  94. package/westendAssetHub/consts.d.ts +745 -653
  95. package/westendAssetHub/errors.d.ts +1490 -1227
  96. package/westendAssetHub/events.d.ts +2127 -2047
  97. package/westendAssetHub/index.d.ts +11 -8
  98. package/westendAssetHub/query.d.ts +1513 -1266
  99. package/westendAssetHub/rpc.d.ts +744 -588
  100. package/westendAssetHub/runtime.d.ts +605 -452
  101. package/westendAssetHub/tx.d.ts +5164 -4302
  102. package/westendAssetHub/types.d.ts +6321 -10633
  103. package/aleph/consts.js +0 -2
  104. package/aleph/errors.js +0 -2
  105. package/aleph/events.js +0 -2
  106. package/aleph/index.js +0 -3
  107. package/aleph/query.js +0 -2
  108. package/aleph/rpc.js +0 -2
  109. package/aleph/runtime.js +0 -2
  110. package/aleph/tx.js +0 -2
  111. package/aleph/types.js +0 -2
  112. package/astar/consts.js +0 -2
  113. package/astar/errors.js +0 -2
  114. package/astar/events.js +0 -2
  115. package/astar/index.js +0 -3
  116. package/astar/query.js +0 -2
  117. package/astar/rpc.js +0 -2
  118. package/astar/runtime.js +0 -2
  119. package/astar/tx.js +0 -2
  120. package/astar/types.js +0 -2
  121. package/cjs/aleph/consts.js +0 -3
  122. package/cjs/aleph/errors.js +0 -3
  123. package/cjs/aleph/events.js +0 -3
  124. package/cjs/aleph/index.js +0 -19
  125. package/cjs/aleph/query.js +0 -3
  126. package/cjs/aleph/rpc.js +0 -3
  127. package/cjs/aleph/runtime.js +0 -3
  128. package/cjs/aleph/tx.js +0 -3
  129. package/cjs/aleph/types.js +0 -3
  130. package/cjs/astar/consts.js +0 -3
  131. package/cjs/astar/errors.js +0 -3
  132. package/cjs/astar/events.js +0 -3
  133. package/cjs/astar/index.js +0 -19
  134. package/cjs/astar/query.js +0 -3
  135. package/cjs/astar/rpc.js +0 -3
  136. package/cjs/astar/runtime.js +0 -3
  137. package/cjs/astar/tx.js +0 -3
  138. package/cjs/astar/types.js +0 -3
  139. package/cjs/index.js +0 -2
  140. package/cjs/kusama/consts.js +0 -3
  141. package/cjs/kusama/errors.js +0 -3
  142. package/cjs/kusama/events.js +0 -3
  143. package/cjs/kusama/index.js +0 -19
  144. package/cjs/kusama/query.js +0 -3
  145. package/cjs/kusama/rpc.js +0 -3
  146. package/cjs/kusama/runtime.js +0 -3
  147. package/cjs/kusama/tx.js +0 -3
  148. package/cjs/kusama/types.js +0 -3
  149. package/cjs/kusamaAssetHub/consts.js +0 -3
  150. package/cjs/kusamaAssetHub/errors.js +0 -3
  151. package/cjs/kusamaAssetHub/events.js +0 -3
  152. package/cjs/kusamaAssetHub/index.js +0 -19
  153. package/cjs/kusamaAssetHub/query.js +0 -3
  154. package/cjs/kusamaAssetHub/rpc.js +0 -3
  155. package/cjs/kusamaAssetHub/runtime.js +0 -3
  156. package/cjs/kusamaAssetHub/tx.js +0 -3
  157. package/cjs/kusamaAssetHub/types.js +0 -3
  158. package/cjs/moonbeam/consts.js +0 -3
  159. package/cjs/moonbeam/errors.js +0 -3
  160. package/cjs/moonbeam/events.js +0 -3
  161. package/cjs/moonbeam/index.js +0 -19
  162. package/cjs/moonbeam/query.js +0 -3
  163. package/cjs/moonbeam/rpc.js +0 -3
  164. package/cjs/moonbeam/runtime.js +0 -3
  165. package/cjs/moonbeam/tx.js +0 -3
  166. package/cjs/moonbeam/types.js +0 -3
  167. package/cjs/package.json +0 -1
  168. package/cjs/packageInfo.js +0 -5
  169. package/cjs/polkadot/consts.js +0 -3
  170. package/cjs/polkadot/errors.js +0 -3
  171. package/cjs/polkadot/events.js +0 -3
  172. package/cjs/polkadot/index.js +0 -19
  173. package/cjs/polkadot/query.js +0 -3
  174. package/cjs/polkadot/rpc.js +0 -3
  175. package/cjs/polkadot/runtime.js +0 -3
  176. package/cjs/polkadot/tx.js +0 -3
  177. package/cjs/polkadot/types.js +0 -3
  178. package/cjs/polkadotAssetHub/consts.js +0 -3
  179. package/cjs/polkadotAssetHub/errors.js +0 -3
  180. package/cjs/polkadotAssetHub/events.js +0 -3
  181. package/cjs/polkadotAssetHub/index.js +0 -19
  182. package/cjs/polkadotAssetHub/query.js +0 -3
  183. package/cjs/polkadotAssetHub/rpc.js +0 -3
  184. package/cjs/polkadotAssetHub/runtime.js +0 -3
  185. package/cjs/polkadotAssetHub/tx.js +0 -3
  186. package/cjs/polkadotAssetHub/types.js +0 -3
  187. package/cjs/rococoAssetHub/consts.js +0 -3
  188. package/cjs/rococoAssetHub/errors.js +0 -3
  189. package/cjs/rococoAssetHub/events.js +0 -3
  190. package/cjs/rococoAssetHub/index.js +0 -19
  191. package/cjs/rococoAssetHub/query.js +0 -3
  192. package/cjs/rococoAssetHub/rpc.js +0 -3
  193. package/cjs/rococoAssetHub/runtime.js +0 -3
  194. package/cjs/rococoAssetHub/tx.js +0 -3
  195. package/cjs/rococoAssetHub/types.js +0 -3
  196. package/cjs/substrate/consts.js +0 -3
  197. package/cjs/substrate/errors.js +0 -3
  198. package/cjs/substrate/events.js +0 -3
  199. package/cjs/substrate/index.js +0 -19
  200. package/cjs/substrate/query.js +0 -3
  201. package/cjs/substrate/rpc.js +0 -3
  202. package/cjs/substrate/runtime.js +0 -3
  203. package/cjs/substrate/tx.js +0 -3
  204. package/cjs/substrate/types.js +0 -3
  205. package/cjs/westendAssetHub/consts.js +0 -3
  206. package/cjs/westendAssetHub/errors.js +0 -3
  207. package/cjs/westendAssetHub/events.js +0 -3
  208. package/cjs/westendAssetHub/index.js +0 -19
  209. package/cjs/westendAssetHub/query.js +0 -3
  210. package/cjs/westendAssetHub/rpc.js +0 -3
  211. package/cjs/westendAssetHub/runtime.js +0 -3
  212. package/cjs/westendAssetHub/tx.js +0 -3
  213. package/cjs/westendAssetHub/types.js +0 -3
  214. package/kusama/consts.js +0 -2
  215. package/kusama/errors.js +0 -2
  216. package/kusama/events.js +0 -2
  217. package/kusama/index.js +0 -3
  218. package/kusama/query.js +0 -2
  219. package/kusama/rpc.js +0 -2
  220. package/kusama/runtime.js +0 -2
  221. package/kusama/tx.js +0 -2
  222. package/kusama/types.js +0 -2
  223. package/kusamaAssetHub/consts.js +0 -2
  224. package/kusamaAssetHub/errors.js +0 -2
  225. package/kusamaAssetHub/events.js +0 -2
  226. package/kusamaAssetHub/index.js +0 -3
  227. package/kusamaAssetHub/query.js +0 -2
  228. package/kusamaAssetHub/rpc.js +0 -2
  229. package/kusamaAssetHub/runtime.js +0 -2
  230. package/kusamaAssetHub/tx.js +0 -2
  231. package/kusamaAssetHub/types.js +0 -2
  232. package/moonbeam/consts.js +0 -2
  233. package/moonbeam/errors.js +0 -2
  234. package/moonbeam/events.js +0 -2
  235. package/moonbeam/index.js +0 -3
  236. package/moonbeam/query.js +0 -2
  237. package/moonbeam/rpc.js +0 -2
  238. package/moonbeam/runtime.js +0 -2
  239. package/moonbeam/tx.js +0 -2
  240. package/moonbeam/types.js +0 -2
  241. package/packageInfo.d.ts +0 -4
  242. package/packageInfo.js +0 -2
  243. package/polkadot/consts.js +0 -2
  244. package/polkadot/errors.js +0 -2
  245. package/polkadot/events.js +0 -2
  246. package/polkadot/index.js +0 -3
  247. package/polkadot/query.js +0 -2
  248. package/polkadot/rpc.js +0 -2
  249. package/polkadot/runtime.js +0 -2
  250. package/polkadot/tx.js +0 -2
  251. package/polkadot/types.js +0 -2
  252. package/polkadotAssetHub/consts.js +0 -2
  253. package/polkadotAssetHub/errors.js +0 -2
  254. package/polkadotAssetHub/events.js +0 -2
  255. package/polkadotAssetHub/index.js +0 -3
  256. package/polkadotAssetHub/query.js +0 -2
  257. package/polkadotAssetHub/rpc.js +0 -2
  258. package/polkadotAssetHub/runtime.js +0 -2
  259. package/polkadotAssetHub/tx.js +0 -2
  260. package/polkadotAssetHub/types.js +0 -2
  261. package/rococoAssetHub/consts.js +0 -2
  262. package/rococoAssetHub/errors.js +0 -2
  263. package/rococoAssetHub/events.js +0 -2
  264. package/rococoAssetHub/index.js +0 -3
  265. package/rococoAssetHub/query.js +0 -2
  266. package/rococoAssetHub/rpc.js +0 -2
  267. package/rococoAssetHub/runtime.js +0 -2
  268. package/rococoAssetHub/tx.js +0 -2
  269. package/rococoAssetHub/types.js +0 -2
  270. package/substrate/consts.js +0 -2
  271. package/substrate/errors.js +0 -2
  272. package/substrate/events.js +0 -2
  273. package/substrate/index.js +0 -3
  274. package/substrate/query.js +0 -2
  275. package/substrate/rpc.js +0 -2
  276. package/substrate/runtime.js +0 -2
  277. package/substrate/tx.js +0 -2
  278. package/substrate/types.js +0 -2
  279. package/westendAssetHub/consts.js +0 -2
  280. package/westendAssetHub/errors.js +0 -2
  281. package/westendAssetHub/events.js +0 -2
  282. package/westendAssetHub/index.js +0 -3
  283. package/westendAssetHub/query.js +0 -2
  284. package/westendAssetHub/rpc.js +0 -2
  285. package/westendAssetHub/runtime.js +0 -2
  286. package/westendAssetHub/tx.js +0 -2
  287. package/westendAssetHub/types.js +0 -2
@@ -1,262 +1,751 @@
1
+ // Generated by @dedot/codegen
2
+
1
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
- import type { RuntimeVersion, Block, Header, Option, OpaqueMetadata, ApplyExtrinsicResult, OpaqueExtrinsicLike, CheckInherentsResult, InherentData, Extrinsic, TransactionValidity, TransactionSource, BlockHash, Nonce, AccountId32Like, RuntimeDispatchInfo, FeeDetails, Balance, Weight, RawBytesLike, Bytes, BytesLike, KeyTypeId } from '@dedot/codecs';
4
+ import type {
5
+ RuntimeVersion,
6
+ Header,
7
+ DispatchError,
8
+ Result,
9
+ H256,
10
+ AccountId32Like,
11
+ Bytes,
12
+ BytesLike,
13
+ H160,
14
+ U256,
15
+ Permill,
16
+ } from '@dedot/codecs';
17
+ import type {
18
+ SpRuntimeBlock,
19
+ SpCoreOpaqueMetadata,
20
+ SpConsensusSlotsSlotDuration,
21
+ SpConsensusAuraSr25519AppSr25519Public,
22
+ SpRuntimeTransactionValidityTransactionValidityError,
23
+ FpSelfContainedUncheckedExtrinsic,
24
+ SpInherentsInherentData,
25
+ SpInherentsCheckInherentsResult,
26
+ SpRuntimeTransactionValidityValidTransaction,
27
+ SpRuntimeTransactionValidityTransactionSource,
28
+ PalletTransactionPaymentRuntimeDispatchInfo,
29
+ PalletTransactionPaymentFeeDetails,
30
+ SpWeightsWeightV2Weight,
31
+ AstarRuntimeRuntimeCallLike,
32
+ SpCoreCryptoKeyTypeId,
33
+ CumulusPrimitivesCoreCollationInfo,
34
+ EvmBackendBasic,
35
+ FpEvmExecutionInfoV2,
36
+ FpEvmExecutionInfoV2H160,
37
+ EthereumBlock,
38
+ EthereumReceiptReceiptV3,
39
+ FpRpcTransactionStatus,
40
+ EthereumTransactionTransactionV2,
41
+ PalletContractsPrimitivesContractResult,
42
+ PalletContractsPrimitivesContractResultResult,
43
+ PalletContractsPrimitivesCode,
44
+ PalletContractsPrimitivesCodeUploadReturnValue,
45
+ PalletContractsWasmDeterminism,
46
+ PalletContractsPrimitivesContractAccessError,
47
+ } from './types';
48
+
3
49
  export interface RuntimeApis extends GenericRuntimeApis {
50
+ /**
51
+ * @runtimeapi: Core - 0xdf6acb689907609b
52
+ **/
53
+ core: {
4
54
  /**
5
- * @runtimeapi: Core - 0xdf6acb689907609b
6
- * @version: 4
7
- **/
8
- core: {
9
- /**
10
- * Returns the version of the runtime.
11
- *
12
- * @callname: Core_version
13
- **/
14
- version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
15
- /**
16
- * Execute the given block.
17
- *
18
- * @callname: Core_execute_block
19
- * @param {Block} block
20
- **/
21
- executeBlock: GenericRuntimeApiMethod<(block: Block) => Promise<[]>>;
22
- /**
23
- * Initialize a block with the given header.
24
- *
25
- * @callname: Core_initialize_block
26
- * @param {Header} header
27
- **/
28
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
29
- /**
30
- * Generic runtime api call
31
- **/
32
- [method: string]: GenericRuntimeApiMethod;
33
- };
34
- /**
35
- * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
36
- * @version: 2
37
- **/
38
- metadata: {
39
- /**
40
- * Returns the metadata at a given version.
41
- *
42
- * @callname: Metadata_metadata_at_version
43
- * @param {number} version
44
- **/
45
- metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<Option<OpaqueMetadata>>>;
46
- /**
47
- * Returns the supported metadata versions.
48
- *
49
- * @callname: Metadata_metadata_versions
50
- **/
51
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
52
- /**
53
- * Returns the metadata of a runtime.
54
- *
55
- * @callname: Metadata_metadata
56
- **/
57
- metadata: GenericRuntimeApiMethod<() => Promise<OpaqueMetadata>>;
58
- /**
59
- * Generic runtime api call
60
- **/
61
- [method: string]: GenericRuntimeApiMethod;
62
- };
63
- /**
64
- * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
65
- * @version: 6
66
- **/
67
- blockBuilder: {
68
- /**
69
- *
70
- * @callname: BlockBuilder_apply_extrinsic
71
- * @param {OpaqueExtrinsicLike} extrinsic
72
- **/
73
- applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: OpaqueExtrinsicLike) => Promise<ApplyExtrinsicResult>>;
74
- /**
75
- *
76
- * @callname: BlockBuilder_check_inherents
77
- * @param {Block} block
78
- * @param {InherentData} data
79
- **/
80
- checkInherents: GenericRuntimeApiMethod<(block: Block, data: InherentData) => Promise<CheckInherentsResult>>;
81
- /**
82
- *
83
- * @callname: BlockBuilder_inherent_extrinsics
84
- * @param {InherentData} inherent
85
- **/
86
- inherentExtrinsics: GenericRuntimeApiMethod<(inherent: InherentData) => Promise<Array<Extrinsic>>>;
87
- /**
88
- *
89
- * @callname: BlockBuilder_finalize_block
90
- **/
91
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
92
- /**
93
- * Generic runtime api call
94
- **/
95
- [method: string]: GenericRuntimeApiMethod;
96
- };
97
- /**
98
- * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
99
- * @version: 3
100
- **/
101
- taggedTransactionQueue: {
102
- /**
103
- * Validate the transaction.
104
- *
105
- * @callname: TaggedTransactionQueue_validate_transaction
106
- * @param {TransactionSource} source
107
- * @param {OpaqueExtrinsicLike} tx
108
- * @param {BlockHash} blockHash
109
- **/
110
- validateTransaction: GenericRuntimeApiMethod<(source: TransactionSource, tx: OpaqueExtrinsicLike, blockHash: BlockHash) => Promise<TransactionValidity>>;
111
- /**
112
- * Generic runtime api call
113
- **/
114
- [method: string]: GenericRuntimeApiMethod;
115
- };
116
- /**
117
- * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
118
- * @version: 2
119
- **/
120
- offchainWorkerApi: {
121
- /**
122
- * Starts the off-chain task for given block header.
123
- *
124
- * @callname: OffchainWorkerApi_offchain_worker
125
- * @param {Header} header
126
- **/
127
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
128
- /**
129
- * Generic runtime api call
130
- **/
131
- [method: string]: GenericRuntimeApiMethod;
132
- };
133
- /**
134
- * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
135
- * @version: 1
136
- **/
137
- accountNonceApi: {
138
- /**
139
- * The API to query account nonce (aka transaction index)
140
- *
141
- * @callname: AccountNonceApi_account_nonce
142
- * @param {AccountId32Like} accountId
143
- **/
144
- accountNonce: GenericRuntimeApiMethod<(accountId: AccountId32Like) => Promise<Nonce>>;
145
- /**
146
- * Generic runtime api call
147
- **/
148
- [method: string]: GenericRuntimeApiMethod;
149
- };
150
- /**
151
- * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
152
- * @version: 4
153
- **/
154
- transactionPaymentApi: {
155
- /**
156
- * The transaction info
157
- *
158
- * @callname: TransactionPaymentApi_query_info
159
- * @param {OpaqueExtrinsicLike} uxt
160
- * @param {number} len
161
- **/
162
- queryInfo: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<RuntimeDispatchInfo>>;
163
- /**
164
- * The transaction fee details
165
- *
166
- * @callname: TransactionPaymentApi_query_fee_details
167
- * @param {OpaqueExtrinsicLike} uxt
168
- * @param {number} len
169
- **/
170
- queryFeeDetails: GenericRuntimeApiMethod<(uxt: OpaqueExtrinsicLike, len: number) => Promise<FeeDetails>>;
171
- /**
172
- * Query the output of the current LengthToFee given some input
173
- *
174
- * @callname: TransactionPaymentApi_query_length_to_fee
175
- * @param {number} length
176
- **/
177
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<Balance>>;
178
- /**
179
- * Query the output of the current WeightToFee given some input
180
- *
181
- * @callname: TransactionPaymentApi_query_weight_to_fee
182
- * @param {Weight} weight
183
- **/
184
- queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
185
- /**
186
- * Generic runtime api call
187
- **/
188
- [method: string]: GenericRuntimeApiMethod;
189
- };
190
- /**
191
- * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
192
- * @version: 3
193
- **/
194
- transactionPaymentCallApi: {
195
- /**
196
- * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
197
- *
198
- * @callname: TransactionPaymentCallApi_query_call_info
199
- * @param {RawBytesLike} call
200
- * @param {number} len
201
- **/
202
- queryCallInfo: GenericRuntimeApiMethod<(call: RawBytesLike, len: number) => Promise<RuntimeDispatchInfo>>;
203
- /**
204
- * Query fee details of a given encoded `Call`.
205
- *
206
- * @callname: TransactionPaymentCallApi_query_call_fee_details
207
- * @param {RawBytesLike} call
208
- * @param {number} len
209
- **/
210
- queryCallFeeDetails: GenericRuntimeApiMethod<(call: RawBytesLike, len: number) => Promise<FeeDetails>>;
211
- /**
212
- * Query the output of the current LengthToFee given some input
213
- *
214
- * @callname: TransactionPaymentCallApi_query_length_to_fee
215
- * @param {number} length
216
- **/
217
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<Balance>>;
218
- /**
219
- * Query the output of the current WeightToFee given some input
220
- *
221
- * @callname: TransactionPaymentCallApi_query_weight_to_fee
222
- * @param {Weight} weight
223
- **/
224
- queryWeightToFee: GenericRuntimeApiMethod<(weight: Weight) => Promise<Balance>>;
225
- /**
226
- * Generic runtime api call
227
- **/
228
- [method: string]: GenericRuntimeApiMethod;
229
- };
230
- /**
231
- * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
232
- * @version: 1
233
- **/
234
- sessionKeys: {
235
- /**
236
- * Generate a set of session keys with optionally using the given seed.
237
- * The keys should be stored within the keystore exposed via runtime
238
- * externalities.
239
- *
240
- * The seed needs to be a valid `utf8` string.
241
- *
242
- * Returns the concatenated SCALE encoded public keys.
243
- *
244
- * @callname: SessionKeys_generate_session_keys
245
- * @param {Option<BytesLike>} seed
246
- **/
247
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: Option<BytesLike>) => Promise<Bytes>>;
248
- /**
249
- * Decode the given public session key
250
- *
251
- * Returns the list of public raw public keys + key typ
252
- *
253
- * @callname: SessionKeys_decode_session_keys
254
- * @param {BytesLike} encoded
255
- **/
256
- decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Option<Array<[Bytes, KeyTypeId]>>>>;
257
- /**
258
- * Generic runtime api call
259
- **/
260
- [method: string]: GenericRuntimeApiMethod;
261
- };
55
+ * Returns the version of the runtime.
56
+ *
57
+ * @callname: Core_version
58
+ **/
59
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
60
+
61
+ /**
62
+ * Execute the given block.
63
+ *
64
+ * @callname: Core_execute_block
65
+ * @param {SpRuntimeBlock} block
66
+ **/
67
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
68
+
69
+ /**
70
+ * Initialize a block with the given header.
71
+ *
72
+ * @callname: Core_initialize_block
73
+ * @param {Header} header
74
+ **/
75
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
76
+
77
+ /**
78
+ * Generic runtime api call
79
+ **/
80
+ [method: string]: GenericRuntimeApiMethod;
81
+ };
82
+ /**
83
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
84
+ **/
85
+ metadata: {
86
+ /**
87
+ * Returns the metadata of a runtime.
88
+ *
89
+ * @callname: Metadata_metadata
90
+ **/
91
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
92
+
93
+ /**
94
+ * Returns the metadata at a given version.
95
+ *
96
+ * If the given `version` isn't supported, this will return `None`.
97
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
98
+ *
99
+ * @callname: Metadata_metadata_at_version
100
+ * @param {number} version
101
+ **/
102
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
103
+
104
+ /**
105
+ * Returns the supported metadata versions.
106
+ *
107
+ * This can be used to call `metadata_at_version`.
108
+ *
109
+ * @callname: Metadata_metadata_versions
110
+ **/
111
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
112
+
113
+ /**
114
+ * Generic runtime api call
115
+ **/
116
+ [method: string]: GenericRuntimeApiMethod;
117
+ };
118
+ /**
119
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
120
+ **/
121
+ auraApi: {
122
+ /**
123
+ * Returns the slot duration for Aura.
124
+ *
125
+ * Currently, only the value provided by this type at genesis will be used.
126
+ *
127
+ * @callname: AuraApi_slot_duration
128
+ **/
129
+ slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
130
+
131
+ /**
132
+ * Return the current set of authorities.
133
+ *
134
+ * @callname: AuraApi_authorities
135
+ **/
136
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
137
+
138
+ /**
139
+ * Generic runtime api call
140
+ **/
141
+ [method: string]: GenericRuntimeApiMethod;
142
+ };
143
+ /**
144
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
145
+ **/
146
+ blockBuilder: {
147
+ /**
148
+ * Apply the given extrinsic.
149
+ *
150
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
151
+ * this block or not.
152
+ *
153
+ * @callname: BlockBuilder_apply_extrinsic
154
+ * @param {FpSelfContainedUncheckedExtrinsic} extrinsic
155
+ **/
156
+ applyExtrinsic: GenericRuntimeApiMethod<
157
+ (
158
+ extrinsic: FpSelfContainedUncheckedExtrinsic,
159
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
160
+ >;
161
+
162
+ /**
163
+ * Finish the current block.
164
+ *
165
+ * @callname: BlockBuilder_finalize_block
166
+ **/
167
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
168
+
169
+ /**
170
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
171
+ *
172
+ * @callname: BlockBuilder_inherent_extrinsics
173
+ * @param {SpInherentsInherentData} inherent
174
+ **/
175
+ inherentExtrinsics: GenericRuntimeApiMethod<
176
+ (inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
177
+ >;
178
+
179
+ /**
180
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
181
+ *
182
+ * @callname: BlockBuilder_check_inherents
183
+ * @param {SpRuntimeBlock} block
184
+ * @param {SpInherentsInherentData} data
185
+ **/
186
+ checkInherents: GenericRuntimeApiMethod<
187
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
188
+ >;
189
+
190
+ /**
191
+ * Generic runtime api call
192
+ **/
193
+ [method: string]: GenericRuntimeApiMethod;
194
+ };
195
+ /**
196
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
197
+ **/
198
+ taggedTransactionQueue: {
199
+ /**
200
+ * Validate the transaction.
201
+ *
202
+ * This method is invoked by the transaction pool to learn details about given transaction.
203
+ * The implementation should make sure to verify the correctness of the transaction
204
+ * against current state. The given `block_hash` corresponds to the hash of the block
205
+ * that is used as current state.
206
+ *
207
+ * Note that this call may be performed by the pool multiple times and transactions
208
+ * might be verified in any possible order.
209
+ *
210
+ * @callname: TaggedTransactionQueue_validate_transaction
211
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
212
+ * @param {FpSelfContainedUncheckedExtrinsic} tx
213
+ * @param {H256} block_hash
214
+ **/
215
+ validateTransaction: GenericRuntimeApiMethod<
216
+ (
217
+ source: SpRuntimeTransactionValidityTransactionSource,
218
+ tx: FpSelfContainedUncheckedExtrinsic,
219
+ blockHash: H256,
220
+ ) => Promise<
221
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
222
+ >
223
+ >;
224
+
225
+ /**
226
+ * Generic runtime api call
227
+ **/
228
+ [method: string]: GenericRuntimeApiMethod;
229
+ };
230
+ /**
231
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
232
+ **/
233
+ offchainWorkerApi: {
234
+ /**
235
+ * Starts the off-chain task for given block header.
236
+ *
237
+ * @callname: OffchainWorkerApi_offchain_worker
238
+ * @param {Header} header
239
+ **/
240
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
241
+
242
+ /**
243
+ * Generic runtime api call
244
+ **/
245
+ [method: string]: GenericRuntimeApiMethod;
246
+ };
247
+ /**
248
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
249
+ **/
250
+ accountNonceApi: {
251
+ /**
252
+ * Get current account nonce of given `AccountId`.
253
+ *
254
+ * @callname: AccountNonceApi_account_nonce
255
+ * @param {AccountId32Like} account
256
+ **/
257
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
258
+
259
+ /**
260
+ * Generic runtime api call
261
+ **/
262
+ [method: string]: GenericRuntimeApiMethod;
263
+ };
264
+ /**
265
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
266
+ **/
267
+ transactionPaymentApi: {
268
+ /**
269
+ *
270
+ * @callname: TransactionPaymentApi_query_info
271
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
272
+ * @param {number} len
273
+ **/
274
+ queryInfo: GenericRuntimeApiMethod<
275
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
276
+ >;
277
+
278
+ /**
279
+ *
280
+ * @callname: TransactionPaymentApi_query_fee_details
281
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
282
+ * @param {number} len
283
+ **/
284
+ queryFeeDetails: GenericRuntimeApiMethod<
285
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
286
+ >;
287
+
288
+ /**
289
+ *
290
+ * @callname: TransactionPaymentApi_query_weight_to_fee
291
+ * @param {SpWeightsWeightV2Weight} weight
292
+ **/
293
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
294
+
295
+ /**
296
+ *
297
+ * @callname: TransactionPaymentApi_query_length_to_fee
298
+ * @param {number} length
299
+ **/
300
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
301
+
302
+ /**
303
+ * Generic runtime api call
304
+ **/
305
+ [method: string]: GenericRuntimeApiMethod;
306
+ };
307
+ /**
308
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
309
+ **/
310
+ transactionPaymentCallApi: {
311
+ /**
312
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
313
+ *
314
+ * @callname: TransactionPaymentCallApi_query_call_info
315
+ * @param {AstarRuntimeRuntimeCallLike} call
316
+ * @param {number} len
317
+ **/
318
+ queryCallInfo: GenericRuntimeApiMethod<
319
+ (call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
320
+ >;
321
+
322
+ /**
323
+ * Query fee details of a given encoded `Call`.
324
+ *
325
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
326
+ * @param {AstarRuntimeRuntimeCallLike} call
327
+ * @param {number} len
328
+ **/
329
+ queryCallFeeDetails: GenericRuntimeApiMethod<
330
+ (call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
331
+ >;
332
+
333
+ /**
334
+ * Query the output of the current `WeightToFee` given some input.
335
+ *
336
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
337
+ * @param {SpWeightsWeightV2Weight} weight
338
+ **/
339
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
340
+
341
+ /**
342
+ * Query the output of the current `LengthToFee` given some input.
343
+ *
344
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
345
+ * @param {number} length
346
+ **/
347
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
348
+
349
+ /**
350
+ * Generic runtime api call
351
+ **/
352
+ [method: string]: GenericRuntimeApiMethod;
353
+ };
354
+ /**
355
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
356
+ **/
357
+ sessionKeys: {
358
+ /**
359
+ * Generate a set of session keys with optionally using the given seed.
360
+ * The keys should be stored within the keystore exposed via runtime
361
+ * externalities.
362
+ *
363
+ * The seed needs to be a valid `utf8` string.
364
+ *
365
+ * Returns the concatenated SCALE encoded public keys.
366
+ *
367
+ * @callname: SessionKeys_generate_session_keys
368
+ * @param {BytesLike | undefined} seed
369
+ **/
370
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
371
+
372
+ /**
373
+ * Decode the given public session keys.
374
+ *
375
+ * Returns the list of public raw public keys + key type.
376
+ *
377
+ * @callname: SessionKeys_decode_session_keys
378
+ * @param {BytesLike} encoded
379
+ **/
380
+ decodeSessionKeys: GenericRuntimeApiMethod<
381
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
382
+ >;
383
+
384
+ /**
385
+ * Generic runtime api call
386
+ **/
387
+ [method: string]: GenericRuntimeApiMethod;
388
+ };
389
+ /**
390
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
391
+ **/
392
+ collectCollationInfo: {
393
+ /**
394
+ * Collect information about a collation.
395
+ *
396
+ * The given `header` is the header of the built block for that
397
+ * we are collecting the collation info for.
398
+ *
399
+ * @callname: CollectCollationInfo_collect_collation_info
400
+ * @param {Header} header
401
+ **/
402
+ collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
403
+
404
+ /**
405
+ * Generic runtime api call
406
+ **/
407
+ [method: string]: GenericRuntimeApiMethod;
408
+ };
409
+ /**
410
+ * @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
411
+ **/
412
+ ethereumRuntimeRPCApi: {
413
+ /**
414
+ * Returns runtime defined pallet_evm::ChainId.
415
+ *
416
+ * @callname: EthereumRuntimeRPCApi_chain_id
417
+ **/
418
+ chainId: GenericRuntimeApiMethod<() => Promise<bigint>>;
419
+
420
+ /**
421
+ * Returns pallet_evm::Accounts by address.
422
+ *
423
+ * @callname: EthereumRuntimeRPCApi_account_basic
424
+ * @param {H160} address
425
+ **/
426
+ accountBasic: GenericRuntimeApiMethod<(address: H160) => Promise<EvmBackendBasic>>;
427
+
428
+ /**
429
+ * Returns FixedGasPrice::min_gas_price
430
+ *
431
+ * @callname: EthereumRuntimeRPCApi_gas_price
432
+ **/
433
+ gasPrice: GenericRuntimeApiMethod<() => Promise<U256>>;
434
+
435
+ /**
436
+ * For a given account address, returns pallet_evm::AccountCodes.
437
+ *
438
+ * @callname: EthereumRuntimeRPCApi_account_code_at
439
+ * @param {H160} address
440
+ **/
441
+ accountCodeAt: GenericRuntimeApiMethod<(address: H160) => Promise<Bytes>>;
442
+
443
+ /**
444
+ * Returns the converted FindAuthor::find_author authority id.
445
+ *
446
+ * @callname: EthereumRuntimeRPCApi_author
447
+ **/
448
+ author: GenericRuntimeApiMethod<() => Promise<H160>>;
449
+
450
+ /**
451
+ * For a given account address and index, returns pallet_evm::AccountStorages.
452
+ *
453
+ * @callname: EthereumRuntimeRPCApi_storage_at
454
+ * @param {H160} address
455
+ * @param {U256} index
456
+ **/
457
+ storageAt: GenericRuntimeApiMethod<(address: H160, index: U256) => Promise<H256>>;
458
+
459
+ /**
460
+ *
461
+ * @callname: EthereumRuntimeRPCApi_call
462
+ * @param {H160} from
463
+ * @param {H160} to
464
+ * @param {BytesLike} data
465
+ * @param {U256} value
466
+ * @param {U256} gas_limit
467
+ * @param {U256 | undefined} max_fee_per_gas
468
+ * @param {U256 | undefined} max_priority_fee_per_gas
469
+ * @param {U256 | undefined} nonce
470
+ * @param {boolean} estimate
471
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
472
+ **/
473
+ call: GenericRuntimeApiMethod<
474
+ (
475
+ from: H160,
476
+ to: H160,
477
+ data: BytesLike,
478
+ value: U256,
479
+ gasLimit: U256,
480
+ maxFeePerGas: U256 | undefined,
481
+ maxPriorityFeePerGas: U256 | undefined,
482
+ nonce: U256 | undefined,
483
+ estimate: boolean,
484
+ accessList?: Array<[H160, Array<H256>]> | undefined,
485
+ ) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
486
+ >;
487
+
488
+ /**
489
+ *
490
+ * @callname: EthereumRuntimeRPCApi_create
491
+ * @param {H160} from
492
+ * @param {BytesLike} data
493
+ * @param {U256} value
494
+ * @param {U256} gas_limit
495
+ * @param {U256 | undefined} max_fee_per_gas
496
+ * @param {U256 | undefined} max_priority_fee_per_gas
497
+ * @param {U256 | undefined} nonce
498
+ * @param {boolean} estimate
499
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
500
+ **/
501
+ create: GenericRuntimeApiMethod<
502
+ (
503
+ from: H160,
504
+ data: BytesLike,
505
+ value: U256,
506
+ gasLimit: U256,
507
+ maxFeePerGas: U256 | undefined,
508
+ maxPriorityFeePerGas: U256 | undefined,
509
+ nonce: U256 | undefined,
510
+ estimate: boolean,
511
+ accessList?: Array<[H160, Array<H256>]> | undefined,
512
+ ) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
513
+ >;
514
+
515
+ /**
516
+ * Return the current block.
517
+ *
518
+ * @callname: EthereumRuntimeRPCApi_current_block
519
+ **/
520
+ currentBlock: GenericRuntimeApiMethod<() => Promise<EthereumBlock | undefined>>;
521
+
522
+ /**
523
+ * Return the current receipt.
524
+ *
525
+ * @callname: EthereumRuntimeRPCApi_current_receipts
526
+ **/
527
+ currentReceipts: GenericRuntimeApiMethod<() => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
528
+
529
+ /**
530
+ * Return the current transaction status.
531
+ *
532
+ * @callname: EthereumRuntimeRPCApi_current_transaction_statuses
533
+ **/
534
+ currentTransactionStatuses: GenericRuntimeApiMethod<() => Promise<Array<FpRpcTransactionStatus> | undefined>>;
535
+
536
+ /**
537
+ *
538
+ * @callname: EthereumRuntimeRPCApi_current_all
539
+ **/
540
+ currentAll: GenericRuntimeApiMethod<
541
+ () => Promise<
542
+ [
543
+ EthereumBlock | undefined,
544
+ Array<EthereumReceiptReceiptV3> | undefined,
545
+ Array<FpRpcTransactionStatus> | undefined,
546
+ ]
547
+ >
548
+ >;
549
+
550
+ /**
551
+ * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
552
+ *
553
+ * @callname: EthereumRuntimeRPCApi_extrinsic_filter
554
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
555
+ **/
556
+ extrinsicFilter: GenericRuntimeApiMethod<
557
+ (xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
558
+ >;
559
+
560
+ /**
561
+ * Return the elasticity multiplier.
562
+ *
563
+ * @callname: EthereumRuntimeRPCApi_elasticity
564
+ **/
565
+ elasticity: GenericRuntimeApiMethod<() => Promise<Permill | undefined>>;
566
+
567
+ /**
568
+ * Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
569
+ * is supported.
570
+ *
571
+ * @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
572
+ **/
573
+ gasLimitMultiplierSupport: GenericRuntimeApiMethod<() => Promise<[]>>;
574
+
575
+ /**
576
+ * Return the pending block.
577
+ *
578
+ * @callname: EthereumRuntimeRPCApi_pending_block
579
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
580
+ **/
581
+ pendingBlock: GenericRuntimeApiMethod<
582
+ (
583
+ xts: Array<FpSelfContainedUncheckedExtrinsic>,
584
+ ) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
585
+ >;
586
+
587
+ /**
588
+ * Generic runtime api call
589
+ **/
590
+ [method: string]: GenericRuntimeApiMethod;
591
+ };
592
+ /**
593
+ * @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
594
+ **/
595
+ convertTransactionRuntimeApi: {
596
+ /**
597
+ *
598
+ * @callname: ConvertTransactionRuntimeApi_convert_transaction
599
+ * @param {EthereumTransactionTransactionV2} transaction
600
+ **/
601
+ convertTransaction: GenericRuntimeApiMethod<
602
+ (transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
603
+ >;
604
+
605
+ /**
606
+ * Generic runtime api call
607
+ **/
608
+ [method: string]: GenericRuntimeApiMethod;
609
+ };
610
+ /**
611
+ * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
612
+ **/
613
+ contractsApi: {
614
+ /**
615
+ * Perform a call from a specified account to a given contract.
616
+ *
617
+ * See [`crate::Pallet::bare_call`].
618
+ *
619
+ * @callname: ContractsApi_call
620
+ * @param {AccountId32Like} origin
621
+ * @param {AccountId32Like} dest
622
+ * @param {bigint} value
623
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
624
+ * @param {bigint | undefined} storage_deposit_limit
625
+ * @param {BytesLike} input_data
626
+ **/
627
+ call: GenericRuntimeApiMethod<
628
+ (
629
+ origin: AccountId32Like,
630
+ dest: AccountId32Like,
631
+ value: bigint,
632
+ gasLimit: SpWeightsWeightV2Weight | undefined,
633
+ storageDepositLimit: bigint | undefined,
634
+ inputData: BytesLike,
635
+ ) => Promise<PalletContractsPrimitivesContractResult>
636
+ >;
637
+
638
+ /**
639
+ * Instantiate a new contract.
640
+ *
641
+ * See `[crate::Pallet::bare_instantiate]`.
642
+ *
643
+ * @callname: ContractsApi_instantiate
644
+ * @param {AccountId32Like} origin
645
+ * @param {bigint} value
646
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
647
+ * @param {bigint | undefined} storage_deposit_limit
648
+ * @param {PalletContractsPrimitivesCode} code
649
+ * @param {BytesLike} data
650
+ * @param {BytesLike} salt
651
+ **/
652
+ instantiate: GenericRuntimeApiMethod<
653
+ (
654
+ origin: AccountId32Like,
655
+ value: bigint,
656
+ gasLimit: SpWeightsWeightV2Weight | undefined,
657
+ storageDepositLimit: bigint | undefined,
658
+ code: PalletContractsPrimitivesCode,
659
+ data: BytesLike,
660
+ salt: BytesLike,
661
+ ) => Promise<PalletContractsPrimitivesContractResultResult>
662
+ >;
663
+
664
+ /**
665
+ * Upload new code without instantiating a contract from it.
666
+ *
667
+ * See [`crate::Pallet::bare_upload_code`].
668
+ *
669
+ * @callname: ContractsApi_upload_code
670
+ * @param {AccountId32Like} origin
671
+ * @param {BytesLike} code
672
+ * @param {bigint | undefined} storage_deposit_limit
673
+ * @param {PalletContractsWasmDeterminism} determinism
674
+ **/
675
+ uploadCode: GenericRuntimeApiMethod<
676
+ (
677
+ origin: AccountId32Like,
678
+ code: BytesLike,
679
+ storageDepositLimit: bigint | undefined,
680
+ determinism: PalletContractsWasmDeterminism,
681
+ ) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>
682
+ >;
683
+
684
+ /**
685
+ * Query a given storage key in a given contract.
686
+ *
687
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
688
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
689
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
690
+ *
691
+ * @callname: ContractsApi_get_storage
692
+ * @param {AccountId32Like} address
693
+ * @param {BytesLike} key
694
+ **/
695
+ getStorage: GenericRuntimeApiMethod<
696
+ (
697
+ address: AccountId32Like,
698
+ key: BytesLike,
699
+ ) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>
700
+ >;
701
+
702
+ /**
703
+ * Generic runtime api call
704
+ **/
705
+ [method: string]: GenericRuntimeApiMethod;
706
+ };
707
+ /**
708
+ * @runtimeapi: DappStakingApi - 0xe8accb82fb152951
709
+ **/
710
+ dappStakingApi: {
711
+ /**
712
+ * How many periods are there in one cycle.
713
+ *
714
+ * @callname: DappStakingApi_periods_per_cycle
715
+ **/
716
+ periodsPerCycle: GenericRuntimeApiMethod<() => Promise<number>>;
717
+
718
+ /**
719
+ * For how many standard era lengths does the voting subperiod last.
720
+ *
721
+ * @callname: DappStakingApi_eras_per_voting_subperiod
722
+ **/
723
+ erasPerVotingSubperiod: GenericRuntimeApiMethod<() => Promise<number>>;
724
+
725
+ /**
726
+ * How many standard eras are there in the build&earn subperiod.
727
+ *
728
+ * @callname: DappStakingApi_eras_per_build_and_earn_subperiod
729
+ **/
730
+ erasPerBuildAndEarnSubperiod: GenericRuntimeApiMethod<() => Promise<number>>;
731
+
732
+ /**
733
+ * How many blocks are there per standard era.
734
+ *
735
+ * @callname: DappStakingApi_blocks_per_era
736
+ **/
737
+ blocksPerEra: GenericRuntimeApiMethod<() => Promise<number>>;
738
+
739
+ /**
740
+ * Get dApp tier assignment for the given dApp.
741
+ *
742
+ * @callname: DappStakingApi_get_dapp_tier_assignment
743
+ **/
744
+ getDappTierAssignment: GenericRuntimeApiMethod<() => Promise<Array<[number, number]>>>;
745
+
746
+ /**
747
+ * Generic runtime api call
748
+ **/
749
+ [method: string]: GenericRuntimeApiMethod;
750
+ };
262
751
  }