@dedot/chaintypes 0.0.1-alpha.4 → 0.0.1-alpha.41

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 (288) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +590 -528
  3. package/aleph/errors.d.ts +981 -818
  4. package/aleph/events.d.ts +924 -937
  5. package/aleph/index.d.ts +11 -8
  6. package/aleph/query.d.ts +1477 -1268
  7. package/aleph/rpc.d.ts +725 -573
  8. package/aleph/runtime.d.ts +541 -406
  9. package/aleph/tx.d.ts +2664 -2202
  10. package/aleph/types.d.ts +3474 -5388
  11. package/astar/consts.d.ts +691 -675
  12. package/astar/errors.d.ts +1465 -1313
  13. package/astar/events.d.ts +1642 -1628
  14. package/astar/index.d.ts +11 -8
  15. package/astar/query.d.ts +1682 -1471
  16. package/astar/rpc.d.ts +972 -773
  17. package/astar/runtime.d.ts +747 -258
  18. package/astar/tx.d.ts +3708 -4806
  19. package/astar/types.d.ts +6088 -12266
  20. package/index.d.ts +1 -0
  21. package/index.ts +11 -0
  22. package/kusama/consts.d.ts +1573 -1422
  23. package/kusama/errors.d.ts +2995 -2490
  24. package/kusama/events.d.ts +2996 -2723
  25. package/kusama/index.d.ts +11 -8
  26. package/kusama/query.d.ts +3828 -3248
  27. package/kusama/rpc.d.ts +902 -724
  28. package/kusama/runtime.d.ts +1130 -840
  29. package/kusama/tx.d.ts +7073 -6010
  30. package/kusama/types.d.ts +10151 -15344
  31. package/kusamaAssetHub/consts.d.ts +714 -627
  32. package/kusamaAssetHub/errors.d.ts +1405 -1160
  33. package/kusamaAssetHub/events.d.ts +2149 -2060
  34. package/kusamaAssetHub/index.d.ts +11 -8
  35. package/kusamaAssetHub/query.d.ts +1551 -1298
  36. package/kusamaAssetHub/rpc.d.ts +744 -588
  37. package/kusamaAssetHub/runtime.d.ts +510 -398
  38. package/kusamaAssetHub/tx.d.ts +5050 -4212
  39. package/kusamaAssetHub/types.d.ts +5976 -10009
  40. package/moonbeam/consts.d.ts +1075 -956
  41. package/moonbeam/errors.d.ts +2131 -1793
  42. package/moonbeam/events.d.ts +2932 -2681
  43. package/moonbeam/index.d.ts +11 -8
  44. package/moonbeam/query.d.ts +2391 -2024
  45. package/moonbeam/rpc.d.ts +969 -807
  46. package/moonbeam/runtime.d.ts +665 -502
  47. package/moonbeam/tx.d.ts +6152 -5201
  48. package/moonbeam/types.d.ts +7731 -12035
  49. package/package.json +9 -16
  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/rococo/consts.d.ts +1396 -0
  69. package/rococo/errors.d.ts +2860 -0
  70. package/rococo/events.d.ts +3142 -0
  71. package/rococo/index.d.ts +22 -0
  72. package/rococo/query.d.ts +3275 -0
  73. package/rococo/rpc.d.ts +904 -0
  74. package/rococo/runtime.d.ts +1052 -0
  75. package/rococo/tx.d.ts +9083 -0
  76. package/rococo/types.d.ts +14573 -0
  77. package/rococoAssetHub/consts.d.ts +751 -653
  78. package/rococoAssetHub/errors.d.ts +1495 -1227
  79. package/rococoAssetHub/events.d.ts +2127 -2047
  80. package/rococoAssetHub/index.d.ts +11 -8
  81. package/rococoAssetHub/query.d.ts +1520 -1266
  82. package/rococoAssetHub/rpc.d.ts +744 -588
  83. package/rococoAssetHub/runtime.d.ts +539 -424
  84. package/rococoAssetHub/tx.d.ts +7826 -4302
  85. package/rococoAssetHub/types.d.ts +11614 -10637
  86. package/substrate/consts.d.ts +2218 -1966
  87. package/substrate/errors.d.ts +4019 -3333
  88. package/substrate/events.d.ts +4585 -4255
  89. package/substrate/index.d.ts +11 -8
  90. package/substrate/query.d.ts +3887 -3347
  91. package/substrate/rpc.d.ts +913 -716
  92. package/substrate/runtime.d.ts +937 -704
  93. package/substrate/tx.d.ts +10387 -8796
  94. package/substrate/types.d.ts +12809 -19761
  95. package/westendAssetHub/consts.d.ts +751 -653
  96. package/westendAssetHub/errors.d.ts +1495 -1227
  97. package/westendAssetHub/events.d.ts +2127 -2047
  98. package/westendAssetHub/index.d.ts +11 -8
  99. package/westendAssetHub/query.d.ts +1520 -1266
  100. package/westendAssetHub/rpc.d.ts +744 -588
  101. package/westendAssetHub/runtime.d.ts +606 -452
  102. package/westendAssetHub/tx.d.ts +7826 -4302
  103. package/westendAssetHub/types.d.ts +11614 -10634
  104. package/aleph/consts.js +0 -2
  105. package/aleph/errors.js +0 -2
  106. package/aleph/events.js +0 -2
  107. package/aleph/index.js +0 -3
  108. package/aleph/query.js +0 -2
  109. package/aleph/rpc.js +0 -2
  110. package/aleph/runtime.js +0 -2
  111. package/aleph/tx.js +0 -2
  112. package/aleph/types.js +0 -2
  113. package/astar/consts.js +0 -2
  114. package/astar/errors.js +0 -2
  115. package/astar/events.js +0 -2
  116. package/astar/index.js +0 -3
  117. package/astar/query.js +0 -2
  118. package/astar/rpc.js +0 -2
  119. package/astar/runtime.js +0 -2
  120. package/astar/tx.js +0 -2
  121. package/astar/types.js +0 -2
  122. package/cjs/aleph/consts.js +0 -3
  123. package/cjs/aleph/errors.js +0 -3
  124. package/cjs/aleph/events.js +0 -3
  125. package/cjs/aleph/index.js +0 -19
  126. package/cjs/aleph/query.js +0 -3
  127. package/cjs/aleph/rpc.js +0 -3
  128. package/cjs/aleph/runtime.js +0 -3
  129. package/cjs/aleph/tx.js +0 -3
  130. package/cjs/aleph/types.js +0 -3
  131. package/cjs/astar/consts.js +0 -3
  132. package/cjs/astar/errors.js +0 -3
  133. package/cjs/astar/events.js +0 -3
  134. package/cjs/astar/index.js +0 -19
  135. package/cjs/astar/query.js +0 -3
  136. package/cjs/astar/rpc.js +0 -3
  137. package/cjs/astar/runtime.js +0 -3
  138. package/cjs/astar/tx.js +0 -3
  139. package/cjs/astar/types.js +0 -3
  140. package/cjs/index.js +0 -2
  141. package/cjs/kusama/consts.js +0 -3
  142. package/cjs/kusama/errors.js +0 -3
  143. package/cjs/kusama/events.js +0 -3
  144. package/cjs/kusama/index.js +0 -19
  145. package/cjs/kusama/query.js +0 -3
  146. package/cjs/kusama/rpc.js +0 -3
  147. package/cjs/kusama/runtime.js +0 -3
  148. package/cjs/kusama/tx.js +0 -3
  149. package/cjs/kusama/types.js +0 -3
  150. package/cjs/kusamaAssetHub/consts.js +0 -3
  151. package/cjs/kusamaAssetHub/errors.js +0 -3
  152. package/cjs/kusamaAssetHub/events.js +0 -3
  153. package/cjs/kusamaAssetHub/index.js +0 -19
  154. package/cjs/kusamaAssetHub/query.js +0 -3
  155. package/cjs/kusamaAssetHub/rpc.js +0 -3
  156. package/cjs/kusamaAssetHub/runtime.js +0 -3
  157. package/cjs/kusamaAssetHub/tx.js +0 -3
  158. package/cjs/kusamaAssetHub/types.js +0 -3
  159. package/cjs/moonbeam/consts.js +0 -3
  160. package/cjs/moonbeam/errors.js +0 -3
  161. package/cjs/moonbeam/events.js +0 -3
  162. package/cjs/moonbeam/index.js +0 -19
  163. package/cjs/moonbeam/query.js +0 -3
  164. package/cjs/moonbeam/rpc.js +0 -3
  165. package/cjs/moonbeam/runtime.js +0 -3
  166. package/cjs/moonbeam/tx.js +0 -3
  167. package/cjs/moonbeam/types.js +0 -3
  168. package/cjs/package.json +0 -1
  169. package/cjs/packageInfo.js +0 -5
  170. package/cjs/polkadot/consts.js +0 -3
  171. package/cjs/polkadot/errors.js +0 -3
  172. package/cjs/polkadot/events.js +0 -3
  173. package/cjs/polkadot/index.js +0 -19
  174. package/cjs/polkadot/query.js +0 -3
  175. package/cjs/polkadot/rpc.js +0 -3
  176. package/cjs/polkadot/runtime.js +0 -3
  177. package/cjs/polkadot/tx.js +0 -3
  178. package/cjs/polkadot/types.js +0 -3
  179. package/cjs/polkadotAssetHub/consts.js +0 -3
  180. package/cjs/polkadotAssetHub/errors.js +0 -3
  181. package/cjs/polkadotAssetHub/events.js +0 -3
  182. package/cjs/polkadotAssetHub/index.js +0 -19
  183. package/cjs/polkadotAssetHub/query.js +0 -3
  184. package/cjs/polkadotAssetHub/rpc.js +0 -3
  185. package/cjs/polkadotAssetHub/runtime.js +0 -3
  186. package/cjs/polkadotAssetHub/tx.js +0 -3
  187. package/cjs/polkadotAssetHub/types.js +0 -3
  188. package/cjs/rococoAssetHub/consts.js +0 -3
  189. package/cjs/rococoAssetHub/errors.js +0 -3
  190. package/cjs/rococoAssetHub/events.js +0 -3
  191. package/cjs/rococoAssetHub/index.js +0 -19
  192. package/cjs/rococoAssetHub/query.js +0 -3
  193. package/cjs/rococoAssetHub/rpc.js +0 -3
  194. package/cjs/rococoAssetHub/runtime.js +0 -3
  195. package/cjs/rococoAssetHub/tx.js +0 -3
  196. package/cjs/rococoAssetHub/types.js +0 -3
  197. package/cjs/substrate/consts.js +0 -3
  198. package/cjs/substrate/errors.js +0 -3
  199. package/cjs/substrate/events.js +0 -3
  200. package/cjs/substrate/index.js +0 -19
  201. package/cjs/substrate/query.js +0 -3
  202. package/cjs/substrate/rpc.js +0 -3
  203. package/cjs/substrate/runtime.js +0 -3
  204. package/cjs/substrate/tx.js +0 -3
  205. package/cjs/substrate/types.js +0 -3
  206. package/cjs/westendAssetHub/consts.js +0 -3
  207. package/cjs/westendAssetHub/errors.js +0 -3
  208. package/cjs/westendAssetHub/events.js +0 -3
  209. package/cjs/westendAssetHub/index.js +0 -19
  210. package/cjs/westendAssetHub/query.js +0 -3
  211. package/cjs/westendAssetHub/rpc.js +0 -3
  212. package/cjs/westendAssetHub/runtime.js +0 -3
  213. package/cjs/westendAssetHub/tx.js +0 -3
  214. package/cjs/westendAssetHub/types.js +0 -3
  215. package/kusama/consts.js +0 -2
  216. package/kusama/errors.js +0 -2
  217. package/kusama/events.js +0 -2
  218. package/kusama/index.js +0 -3
  219. package/kusama/query.js +0 -2
  220. package/kusama/rpc.js +0 -2
  221. package/kusama/runtime.js +0 -2
  222. package/kusama/tx.js +0 -2
  223. package/kusama/types.js +0 -2
  224. package/kusamaAssetHub/consts.js +0 -2
  225. package/kusamaAssetHub/errors.js +0 -2
  226. package/kusamaAssetHub/events.js +0 -2
  227. package/kusamaAssetHub/index.js +0 -3
  228. package/kusamaAssetHub/query.js +0 -2
  229. package/kusamaAssetHub/rpc.js +0 -2
  230. package/kusamaAssetHub/runtime.js +0 -2
  231. package/kusamaAssetHub/tx.js +0 -2
  232. package/kusamaAssetHub/types.js +0 -2
  233. package/moonbeam/consts.js +0 -2
  234. package/moonbeam/errors.js +0 -2
  235. package/moonbeam/events.js +0 -2
  236. package/moonbeam/index.js +0 -3
  237. package/moonbeam/query.js +0 -2
  238. package/moonbeam/rpc.js +0 -2
  239. package/moonbeam/runtime.js +0 -2
  240. package/moonbeam/tx.js +0 -2
  241. package/moonbeam/types.js +0 -2
  242. package/packageInfo.d.ts +0 -4
  243. package/packageInfo.js +0 -2
  244. package/polkadot/consts.js +0 -2
  245. package/polkadot/errors.js +0 -2
  246. package/polkadot/events.js +0 -2
  247. package/polkadot/index.js +0 -3
  248. package/polkadot/query.js +0 -2
  249. package/polkadot/rpc.js +0 -2
  250. package/polkadot/runtime.js +0 -2
  251. package/polkadot/tx.js +0 -2
  252. package/polkadot/types.js +0 -2
  253. package/polkadotAssetHub/consts.js +0 -2
  254. package/polkadotAssetHub/errors.js +0 -2
  255. package/polkadotAssetHub/events.js +0 -2
  256. package/polkadotAssetHub/index.js +0 -3
  257. package/polkadotAssetHub/query.js +0 -2
  258. package/polkadotAssetHub/rpc.js +0 -2
  259. package/polkadotAssetHub/runtime.js +0 -2
  260. package/polkadotAssetHub/tx.js +0 -2
  261. package/polkadotAssetHub/types.js +0 -2
  262. package/rococoAssetHub/consts.js +0 -2
  263. package/rococoAssetHub/errors.js +0 -2
  264. package/rococoAssetHub/events.js +0 -2
  265. package/rococoAssetHub/index.js +0 -3
  266. package/rococoAssetHub/query.js +0 -2
  267. package/rococoAssetHub/rpc.js +0 -2
  268. package/rococoAssetHub/runtime.js +0 -2
  269. package/rococoAssetHub/tx.js +0 -2
  270. package/rococoAssetHub/types.js +0 -2
  271. package/substrate/consts.js +0 -2
  272. package/substrate/errors.js +0 -2
  273. package/substrate/events.js +0 -2
  274. package/substrate/index.js +0 -3
  275. package/substrate/query.js +0 -2
  276. package/substrate/rpc.js +0 -2
  277. package/substrate/runtime.js +0 -2
  278. package/substrate/tx.js +0 -2
  279. package/substrate/types.js +0 -2
  280. package/westendAssetHub/consts.js +0 -2
  281. package/westendAssetHub/errors.js +0 -2
  282. package/westendAssetHub/events.js +0 -2
  283. package/westendAssetHub/index.js +0 -3
  284. package/westendAssetHub/query.js +0 -2
  285. package/westendAssetHub/rpc.js +0 -2
  286. package/westendAssetHub/runtime.js +0 -2
  287. package/westendAssetHub/tx.js +0 -2
  288. package/westendAssetHub/types.js +0 -2
@@ -1,410 +1,545 @@
1
+ // Generated by @dedot/codegen
2
+
1
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
- import type { RuntimeVersion, Header, DispatchError, Result, UncheckedExtrinsicLike, UncheckedExtrinsic, H256, Bytes, BytesLike, AccountId32Like } from '@dedot/codecs';
3
- import type { SpRuntimeBlock, SpCoreOpaqueMetadata, SpRuntimeTransactionValidityTransactionValidityError, SpInherentsInherentData, SpInherentsCheckInherentsResult, SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionSource, SpConsensusSlotsSlotDuration, SpConsensusAuraSr25519AppSr25519Public, SpCoreCryptoKeyTypeId, PalletTransactionPaymentRuntimeDispatchInfo, PalletTransactionPaymentFeeDetails, SpWeightsWeightV2Weight, PrimitivesAppPublic, PrimitivesApiError, PrimitivesSessionAuthorityData, PrimitivesSessionCommittee, PrimitivesSessionValidatorError, PalletContractsPrimitivesContractResult, PalletContractsPrimitivesContractResultResult, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsWasmDeterminism, PalletContractsPrimitivesContractAccessError } from './types';
4
+ import type {
5
+ RuntimeVersion,
6
+ Header,
7
+ DispatchError,
8
+ Result,
9
+ UncheckedExtrinsicLike,
10
+ UncheckedExtrinsic,
11
+ H256,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ } from '@dedot/codecs';
16
+ import type {
17
+ SpRuntimeBlock,
18
+ SpCoreOpaqueMetadata,
19
+ SpRuntimeTransactionValidityTransactionValidityError,
20
+ SpInherentsInherentData,
21
+ SpInherentsCheckInherentsResult,
22
+ SpRuntimeTransactionValidityValidTransaction,
23
+ SpRuntimeTransactionValidityTransactionSource,
24
+ SpConsensusSlotsSlotDuration,
25
+ SpConsensusAuraSr25519AppSr25519Public,
26
+ SpCoreCryptoKeyTypeId,
27
+ PalletTransactionPaymentRuntimeDispatchInfo,
28
+ PalletTransactionPaymentFeeDetails,
29
+ SpWeightsWeightV2Weight,
30
+ PrimitivesAppPublic,
31
+ PrimitivesApiError,
32
+ PrimitivesSessionAuthorityData,
33
+ PrimitivesSessionCommittee,
34
+ PrimitivesSessionValidatorError,
35
+ PalletContractsPrimitivesContractResult,
36
+ PalletContractsPrimitivesContractResultResult,
37
+ PalletContractsPrimitivesCode,
38
+ PalletContractsPrimitivesCodeUploadReturnValue,
39
+ PalletContractsWasmDeterminism,
40
+ PalletContractsPrimitivesContractAccessError,
41
+ } from './types';
42
+
4
43
  export interface RuntimeApis extends GenericRuntimeApis {
44
+ /**
45
+ * @runtimeapi: Core - 0xdf6acb689907609b
46
+ **/
47
+ core: {
5
48
  /**
6
- * @runtimeapi: Core - 0xdf6acb689907609b
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 {SpRuntimeBlock} block
20
- **/
21
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => 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
- **/
37
- metadata: {
38
- /**
39
- * Returns the metadata of a runtime.
40
- *
41
- * @callname: Metadata_metadata
42
- **/
43
- metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
44
- /**
45
- * Returns the metadata at a given version.
46
- *
47
- * If the given `version` isn't supported, this will return `None`.
48
- * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
49
- *
50
- * @callname: Metadata_metadata_at_version
51
- * @param {number} version
52
- **/
53
- metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
54
- /**
55
- * Returns the supported metadata versions.
56
- *
57
- * This can be used to call `metadata_at_version`.
58
- *
59
- * @callname: Metadata_metadata_versions
60
- **/
61
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
62
- /**
63
- * Generic runtime api call
64
- **/
65
- [method: string]: GenericRuntimeApiMethod;
66
- };
67
- /**
68
- * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
69
- **/
70
- blockBuilder: {
71
- /**
72
- * Apply the given extrinsic.
73
- *
74
- * Returns an inclusion outcome which specifies if this extrinsic is included in
75
- * this block or not.
76
- *
77
- * @callname: BlockBuilder_apply_extrinsic
78
- * @param {UncheckedExtrinsicLike} extrinsic
79
- **/
80
- applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: UncheckedExtrinsicLike) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
81
- /**
82
- * Finish the current block.
83
- *
84
- * @callname: BlockBuilder_finalize_block
85
- **/
86
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
87
- /**
88
- * Generate inherent extrinsics. The inherent data will vary from chain to chain.
89
- *
90
- * @callname: BlockBuilder_inherent_extrinsics
91
- * @param {SpInherentsInherentData} inherent
92
- **/
93
- inherentExtrinsics: GenericRuntimeApiMethod<(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>>;
94
- /**
95
- * Check that the inherents are valid. The inherent data will vary from chain to chain.
96
- *
97
- * @callname: BlockBuilder_check_inherents
98
- * @param {SpRuntimeBlock} block
99
- * @param {SpInherentsInherentData} data
100
- **/
101
- checkInherents: GenericRuntimeApiMethod<(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>>;
102
- /**
103
- * Generic runtime api call
104
- **/
105
- [method: string]: GenericRuntimeApiMethod;
106
- };
107
- /**
108
- * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
109
- **/
110
- taggedTransactionQueue: {
111
- /**
112
- * Validate the transaction.
113
- *
114
- * This method is invoked by the transaction pool to learn details about given transaction.
115
- * The implementation should make sure to verify the correctness of the transaction
116
- * against current state. The given `block_hash` corresponds to the hash of the block
117
- * that is used as current state.
118
- *
119
- * Note that this call may be performed by the pool multiple times and transactions
120
- * might be verified in any possible order.
121
- *
122
- * @callname: TaggedTransactionQueue_validate_transaction
123
- * @param {SpRuntimeTransactionValidityTransactionSource} source
124
- * @param {UncheckedExtrinsicLike} tx
125
- * @param {H256} block_hash
126
- **/
127
- validateTransaction: GenericRuntimeApiMethod<(source: SpRuntimeTransactionValidityTransactionSource, tx: UncheckedExtrinsicLike, blockHash: H256) => Promise<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
128
- /**
129
- * Generic runtime api call
130
- **/
131
- [method: string]: GenericRuntimeApiMethod;
132
- };
133
- /**
134
- * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
135
- **/
136
- auraApi: {
137
- /**
138
- * Returns the slot duration for Aura.
139
- *
140
- * Currently, only the value provided by this type at genesis will be used.
141
- *
142
- * @callname: AuraApi_slot_duration
143
- **/
144
- slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
145
- /**
146
- * Return the current set of authorities.
147
- *
148
- * @callname: AuraApi_authorities
149
- **/
150
- authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
151
- /**
152
- * Generic runtime api call
153
- **/
154
- [method: string]: GenericRuntimeApiMethod;
155
- };
156
- /**
157
- * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
158
- **/
159
- offchainWorkerApi: {
160
- /**
161
- * Starts the off-chain task for given block header.
162
- *
163
- * @callname: OffchainWorkerApi_offchain_worker
164
- * @param {Header} header
165
- **/
166
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
167
- /**
168
- * Generic runtime api call
169
- **/
170
- [method: string]: GenericRuntimeApiMethod;
171
- };
172
- /**
173
- * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
174
- **/
175
- sessionKeys: {
176
- /**
177
- * Generate a set of session keys with optionally using the given seed.
178
- * The keys should be stored within the keystore exposed via runtime
179
- * externalities.
180
- *
181
- * The seed needs to be a valid `utf8` string.
182
- *
183
- * Returns the concatenated SCALE encoded public keys.
184
- *
185
- * @callname: SessionKeys_generate_session_keys
186
- * @param {BytesLike | undefined} seed
187
- **/
188
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
189
- /**
190
- * Decode the given public session keys.
191
- *
192
- * Returns the list of public raw public keys + key type.
193
- *
194
- * @callname: SessionKeys_decode_session_keys
195
- * @param {BytesLike} encoded
196
- **/
197
- decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
198
- /**
199
- * Generic runtime api call
200
- **/
201
- [method: string]: GenericRuntimeApiMethod;
202
- };
203
- /**
204
- * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
205
- **/
206
- accountNonceApi: {
207
- /**
208
- * Get current account nonce of given `AccountId`.
209
- *
210
- * @callname: AccountNonceApi_account_nonce
211
- * @param {AccountId32Like} account
212
- **/
213
- accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
214
- /**
215
- * Generic runtime api call
216
- **/
217
- [method: string]: GenericRuntimeApiMethod;
218
- };
219
- /**
220
- * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
221
- **/
222
- transactionPaymentApi: {
223
- /**
224
- *
225
- * @callname: TransactionPaymentApi_query_info
226
- * @param {UncheckedExtrinsicLike} uxt
227
- * @param {number} len
228
- **/
229
- queryInfo: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
230
- /**
231
- *
232
- * @callname: TransactionPaymentApi_query_fee_details
233
- * @param {UncheckedExtrinsicLike} uxt
234
- * @param {number} len
235
- **/
236
- queryFeeDetails: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
237
- /**
238
- *
239
- * @callname: TransactionPaymentApi_query_weight_to_fee
240
- * @param {SpWeightsWeightV2Weight} weight
241
- **/
242
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
243
- /**
244
- *
245
- * @callname: TransactionPaymentApi_query_length_to_fee
246
- * @param {number} length
247
- **/
248
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
249
- /**
250
- * Generic runtime api call
251
- **/
252
- [method: string]: GenericRuntimeApiMethod;
253
- };
254
- /**
255
- * @runtimeapi: AlephSessionApi - 0x2be3f75b696ad1f6
256
- **/
257
- alephSessionApi: {
258
- /**
259
- *
260
- * @callname: AlephSessionApi_next_session_authorities
261
- **/
262
- nextSessionAuthorities: GenericRuntimeApiMethod<() => Promise<Result<Array<PrimitivesAppPublic>, PrimitivesApiError>>>;
263
- /**
264
- *
265
- * @callname: AlephSessionApi_authorities
266
- **/
267
- authorities: GenericRuntimeApiMethod<() => Promise<Array<PrimitivesAppPublic>>>;
268
- /**
269
- *
270
- * @callname: AlephSessionApi_next_session_authority_data
271
- **/
272
- nextSessionAuthorityData: GenericRuntimeApiMethod<() => Promise<Result<PrimitivesSessionAuthorityData, PrimitivesApiError>>>;
273
- /**
274
- *
275
- * @callname: AlephSessionApi_authority_data
276
- **/
277
- authorityData: GenericRuntimeApiMethod<() => Promise<PrimitivesSessionAuthorityData>>;
278
- /**
279
- *
280
- * @callname: AlephSessionApi_session_period
281
- **/
282
- sessionPeriod: GenericRuntimeApiMethod<() => Promise<number>>;
283
- /**
284
- *
285
- * @callname: AlephSessionApi_millisecs_per_block
286
- **/
287
- millisecsPerBlock: GenericRuntimeApiMethod<() => Promise<bigint>>;
288
- /**
289
- *
290
- * @callname: AlephSessionApi_finality_version
291
- **/
292
- finalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
293
- /**
294
- *
295
- * @callname: AlephSessionApi_next_session_finality_version
296
- **/
297
- nextSessionFinalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
298
- /**
299
- * Predict finality committee and block producers for the given session. `session` must be
300
- * within the current era (current, in the staking context).
301
- *
302
- * If the active era `E` starts in the session `a`, and ends in session `b` then from
303
- * session `a` to session `b-1` this function can answer question who will be in the
304
- * committee in the era `E`. In the last session of the era `E` (`b`) this can be used to
305
- * determine all of the sessions in the era `E+1`.
306
- *
307
- * @callname: AlephSessionApi_predict_session_committee
308
- * @param {number} session
309
- **/
310
- predictSessionCommittee: GenericRuntimeApiMethod<(session: number) => Promise<Result<PrimitivesSessionCommittee, PrimitivesSessionValidatorError>>>;
311
- /**
312
- * Generic runtime api call
313
- **/
314
- [method: string]: GenericRuntimeApiMethod;
315
- };
316
- /**
317
- * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
318
- **/
319
- nominationPoolsApi: {
320
- /**
321
- * Returns the pending rewards for the member that the AccountId was given for.
322
- *
323
- * @callname: NominationPoolsApi_pending_rewards
324
- * @param {AccountId32Like} who
325
- **/
326
- pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
327
- /**
328
- * Returns the equivalent balance of `points` for a given pool.
329
- *
330
- * @callname: NominationPoolsApi_points_to_balance
331
- * @param {number} pool_id
332
- * @param {bigint} points
333
- **/
334
- pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
335
- /**
336
- * Returns the equivalent points of `new_funds` for a given pool.
337
- *
338
- * @callname: NominationPoolsApi_balance_to_points
339
- * @param {number} pool_id
340
- * @param {bigint} new_funds
341
- **/
342
- balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
343
- /**
344
- * Generic runtime api call
345
- **/
346
- [method: string]: GenericRuntimeApiMethod;
347
- };
348
- /**
349
- * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
350
- **/
351
- contractsApi: {
352
- /**
353
- * Perform a call from a specified account to a given contract.
354
- *
355
- * See [`crate::Pallet::bare_call`].
356
- *
357
- * @callname: ContractsApi_call
358
- * @param {AccountId32Like} origin
359
- * @param {AccountId32Like} dest
360
- * @param {bigint} value
361
- * @param {SpWeightsWeightV2Weight | undefined} gas_limit
362
- * @param {bigint | undefined} storage_deposit_limit
363
- * @param {BytesLike} input_data
364
- **/
365
- call: GenericRuntimeApiMethod<(origin: AccountId32Like, dest: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletContractsPrimitivesContractResult>>;
366
- /**
367
- * Instantiate a new contract.
368
- *
369
- * See `[crate::Pallet::bare_instantiate]`.
370
- *
371
- * @callname: ContractsApi_instantiate
372
- * @param {AccountId32Like} origin
373
- * @param {bigint} value
374
- * @param {SpWeightsWeightV2Weight | undefined} gas_limit
375
- * @param {bigint | undefined} storage_deposit_limit
376
- * @param {PalletContractsPrimitivesCode} code
377
- * @param {BytesLike} data
378
- * @param {BytesLike} salt
379
- **/
380
- instantiate: GenericRuntimeApiMethod<(origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletContractsPrimitivesCode, data: BytesLike, salt: BytesLike) => Promise<PalletContractsPrimitivesContractResultResult>>;
381
- /**
382
- * Upload new code without instantiating a contract from it.
383
- *
384
- * See [`crate::Pallet::bare_upload_code`].
385
- *
386
- * @callname: ContractsApi_upload_code
387
- * @param {AccountId32Like} origin
388
- * @param {BytesLike} code
389
- * @param {bigint | undefined} storage_deposit_limit
390
- * @param {PalletContractsWasmDeterminism} determinism
391
- **/
392
- uploadCode: GenericRuntimeApiMethod<(origin: AccountId32Like, code: BytesLike, storageDepositLimit: bigint | undefined, determinism: PalletContractsWasmDeterminism) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>>;
393
- /**
394
- * Query a given storage key in a given contract.
395
- *
396
- * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
397
- * specified account and `Ok(None)` if it doesn't. If the account specified by the address
398
- * doesn't exist, or doesn't have a contract then `Err` is returned.
399
- *
400
- * @callname: ContractsApi_get_storage
401
- * @param {AccountId32Like} address
402
- * @param {BytesLike} key
403
- **/
404
- getStorage: GenericRuntimeApiMethod<(address: AccountId32Like, key: BytesLike) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>>;
405
- /**
406
- * Generic runtime api call
407
- **/
408
- [method: string]: GenericRuntimeApiMethod;
409
- };
49
+ * Returns the version of the runtime.
50
+ *
51
+ * @callname: Core_version
52
+ **/
53
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
54
+
55
+ /**
56
+ * Execute the given block.
57
+ *
58
+ * @callname: Core_execute_block
59
+ * @param {SpRuntimeBlock} block
60
+ **/
61
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
62
+
63
+ /**
64
+ * Initialize a block with the given header.
65
+ *
66
+ * @callname: Core_initialize_block
67
+ * @param {Header} header
68
+ **/
69
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
70
+
71
+ /**
72
+ * Generic runtime api call
73
+ **/
74
+ [method: string]: GenericRuntimeApiMethod;
75
+ };
76
+ /**
77
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
78
+ **/
79
+ metadata: {
80
+ /**
81
+ * Returns the metadata of a runtime.
82
+ *
83
+ * @callname: Metadata_metadata
84
+ **/
85
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
86
+
87
+ /**
88
+ * Returns the metadata at a given version.
89
+ *
90
+ * If the given `version` isn't supported, this will return `None`.
91
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
92
+ *
93
+ * @callname: Metadata_metadata_at_version
94
+ * @param {number} version
95
+ **/
96
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
97
+
98
+ /**
99
+ * Returns the supported metadata versions.
100
+ *
101
+ * This can be used to call `metadata_at_version`.
102
+ *
103
+ * @callname: Metadata_metadata_versions
104
+ **/
105
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
106
+
107
+ /**
108
+ * Generic runtime api call
109
+ **/
110
+ [method: string]: GenericRuntimeApiMethod;
111
+ };
112
+ /**
113
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
114
+ **/
115
+ blockBuilder: {
116
+ /**
117
+ * Apply the given extrinsic.
118
+ *
119
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
120
+ * this block or not.
121
+ *
122
+ * @callname: BlockBuilder_apply_extrinsic
123
+ * @param {UncheckedExtrinsicLike} extrinsic
124
+ **/
125
+ applyExtrinsic: GenericRuntimeApiMethod<
126
+ (
127
+ extrinsic: UncheckedExtrinsicLike,
128
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
129
+ >;
130
+
131
+ /**
132
+ * Finish the current block.
133
+ *
134
+ * @callname: BlockBuilder_finalize_block
135
+ **/
136
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
137
+
138
+ /**
139
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
140
+ *
141
+ * @callname: BlockBuilder_inherent_extrinsics
142
+ * @param {SpInherentsInherentData} inherent
143
+ **/
144
+ inherentExtrinsics: GenericRuntimeApiMethod<
145
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
146
+ >;
147
+
148
+ /**
149
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
150
+ *
151
+ * @callname: BlockBuilder_check_inherents
152
+ * @param {SpRuntimeBlock} block
153
+ * @param {SpInherentsInherentData} data
154
+ **/
155
+ checkInherents: GenericRuntimeApiMethod<
156
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
157
+ >;
158
+
159
+ /**
160
+ * Generic runtime api call
161
+ **/
162
+ [method: string]: GenericRuntimeApiMethod;
163
+ };
164
+ /**
165
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
166
+ **/
167
+ taggedTransactionQueue: {
168
+ /**
169
+ * Validate the transaction.
170
+ *
171
+ * This method is invoked by the transaction pool to learn details about given transaction.
172
+ * The implementation should make sure to verify the correctness of the transaction
173
+ * against current state. The given `block_hash` corresponds to the hash of the block
174
+ * that is used as current state.
175
+ *
176
+ * Note that this call may be performed by the pool multiple times and transactions
177
+ * might be verified in any possible order.
178
+ *
179
+ * @callname: TaggedTransactionQueue_validate_transaction
180
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
181
+ * @param {UncheckedExtrinsicLike} tx
182
+ * @param {H256} block_hash
183
+ **/
184
+ validateTransaction: GenericRuntimeApiMethod<
185
+ (
186
+ source: SpRuntimeTransactionValidityTransactionSource,
187
+ tx: UncheckedExtrinsicLike,
188
+ blockHash: H256,
189
+ ) => Promise<
190
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
191
+ >
192
+ >;
193
+
194
+ /**
195
+ * Generic runtime api call
196
+ **/
197
+ [method: string]: GenericRuntimeApiMethod;
198
+ };
199
+ /**
200
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
201
+ **/
202
+ auraApi: {
203
+ /**
204
+ * Returns the slot duration for Aura.
205
+ *
206
+ * Currently, only the value provided by this type at genesis will be used.
207
+ *
208
+ * @callname: AuraApi_slot_duration
209
+ **/
210
+ slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
211
+
212
+ /**
213
+ * Return the current set of authorities.
214
+ *
215
+ * @callname: AuraApi_authorities
216
+ **/
217
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
218
+
219
+ /**
220
+ * Generic runtime api call
221
+ **/
222
+ [method: string]: GenericRuntimeApiMethod;
223
+ };
224
+ /**
225
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
226
+ **/
227
+ offchainWorkerApi: {
228
+ /**
229
+ * Starts the off-chain task for given block header.
230
+ *
231
+ * @callname: OffchainWorkerApi_offchain_worker
232
+ * @param {Header} header
233
+ **/
234
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
235
+
236
+ /**
237
+ * Generic runtime api call
238
+ **/
239
+ [method: string]: GenericRuntimeApiMethod;
240
+ };
241
+ /**
242
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
243
+ **/
244
+ sessionKeys: {
245
+ /**
246
+ * Generate a set of session keys with optionally using the given seed.
247
+ * The keys should be stored within the keystore exposed via runtime
248
+ * externalities.
249
+ *
250
+ * The seed needs to be a valid `utf8` string.
251
+ *
252
+ * Returns the concatenated SCALE encoded public keys.
253
+ *
254
+ * @callname: SessionKeys_generate_session_keys
255
+ * @param {BytesLike | undefined} seed
256
+ **/
257
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
258
+
259
+ /**
260
+ * Decode the given public session keys.
261
+ *
262
+ * Returns the list of public raw public keys + key type.
263
+ *
264
+ * @callname: SessionKeys_decode_session_keys
265
+ * @param {BytesLike} encoded
266
+ **/
267
+ decodeSessionKeys: GenericRuntimeApiMethod<
268
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
269
+ >;
270
+
271
+ /**
272
+ * Generic runtime api call
273
+ **/
274
+ [method: string]: GenericRuntimeApiMethod;
275
+ };
276
+ /**
277
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
278
+ **/
279
+ accountNonceApi: {
280
+ /**
281
+ * Get current account nonce of given `AccountId`.
282
+ *
283
+ * @callname: AccountNonceApi_account_nonce
284
+ * @param {AccountId32Like} account
285
+ **/
286
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
287
+
288
+ /**
289
+ * Generic runtime api call
290
+ **/
291
+ [method: string]: GenericRuntimeApiMethod;
292
+ };
293
+ /**
294
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
295
+ **/
296
+ transactionPaymentApi: {
297
+ /**
298
+ *
299
+ * @callname: TransactionPaymentApi_query_info
300
+ * @param {UncheckedExtrinsicLike} uxt
301
+ * @param {number} len
302
+ **/
303
+ queryInfo: GenericRuntimeApiMethod<
304
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
305
+ >;
306
+
307
+ /**
308
+ *
309
+ * @callname: TransactionPaymentApi_query_fee_details
310
+ * @param {UncheckedExtrinsicLike} uxt
311
+ * @param {number} len
312
+ **/
313
+ queryFeeDetails: GenericRuntimeApiMethod<
314
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
315
+ >;
316
+
317
+ /**
318
+ *
319
+ * @callname: TransactionPaymentApi_query_weight_to_fee
320
+ * @param {SpWeightsWeightV2Weight} weight
321
+ **/
322
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
323
+
324
+ /**
325
+ *
326
+ * @callname: TransactionPaymentApi_query_length_to_fee
327
+ * @param {number} length
328
+ **/
329
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
330
+
331
+ /**
332
+ * Generic runtime api call
333
+ **/
334
+ [method: string]: GenericRuntimeApiMethod;
335
+ };
336
+ /**
337
+ * @runtimeapi: AlephSessionApi - 0x2be3f75b696ad1f6
338
+ **/
339
+ alephSessionApi: {
340
+ /**
341
+ *
342
+ * @callname: AlephSessionApi_next_session_authorities
343
+ **/
344
+ nextSessionAuthorities: GenericRuntimeApiMethod<
345
+ () => Promise<Result<Array<PrimitivesAppPublic>, PrimitivesApiError>>
346
+ >;
347
+
348
+ /**
349
+ *
350
+ * @callname: AlephSessionApi_authorities
351
+ **/
352
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<PrimitivesAppPublic>>>;
353
+
354
+ /**
355
+ *
356
+ * @callname: AlephSessionApi_next_session_authority_data
357
+ **/
358
+ nextSessionAuthorityData: GenericRuntimeApiMethod<
359
+ () => Promise<Result<PrimitivesSessionAuthorityData, PrimitivesApiError>>
360
+ >;
361
+
362
+ /**
363
+ *
364
+ * @callname: AlephSessionApi_authority_data
365
+ **/
366
+ authorityData: GenericRuntimeApiMethod<() => Promise<PrimitivesSessionAuthorityData>>;
367
+
368
+ /**
369
+ *
370
+ * @callname: AlephSessionApi_session_period
371
+ **/
372
+ sessionPeriod: GenericRuntimeApiMethod<() => Promise<number>>;
373
+
374
+ /**
375
+ *
376
+ * @callname: AlephSessionApi_millisecs_per_block
377
+ **/
378
+ millisecsPerBlock: GenericRuntimeApiMethod<() => Promise<bigint>>;
379
+
380
+ /**
381
+ *
382
+ * @callname: AlephSessionApi_finality_version
383
+ **/
384
+ finalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
385
+
386
+ /**
387
+ *
388
+ * @callname: AlephSessionApi_next_session_finality_version
389
+ **/
390
+ nextSessionFinalityVersion: GenericRuntimeApiMethod<() => Promise<number>>;
391
+
392
+ /**
393
+ * Predict finality committee and block producers for the given session. `session` must be
394
+ * within the current era (current, in the staking context).
395
+ *
396
+ * If the active era `E` starts in the session `a`, and ends in session `b` then from
397
+ * session `a` to session `b-1` this function can answer question who will be in the
398
+ * committee in the era `E`. In the last session of the era `E` (`b`) this can be used to
399
+ * determine all of the sessions in the era `E+1`.
400
+ *
401
+ * @callname: AlephSessionApi_predict_session_committee
402
+ * @param {number} session
403
+ **/
404
+ predictSessionCommittee: GenericRuntimeApiMethod<
405
+ (session: number) => Promise<Result<PrimitivesSessionCommittee, PrimitivesSessionValidatorError>>
406
+ >;
407
+
408
+ /**
409
+ * Generic runtime api call
410
+ **/
411
+ [method: string]: GenericRuntimeApiMethod;
412
+ };
413
+ /**
414
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
415
+ **/
416
+ nominationPoolsApi: {
417
+ /**
418
+ * Returns the pending rewards for the member that the AccountId was given for.
419
+ *
420
+ * @callname: NominationPoolsApi_pending_rewards
421
+ * @param {AccountId32Like} who
422
+ **/
423
+ pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
424
+
425
+ /**
426
+ * Returns the equivalent balance of `points` for a given pool.
427
+ *
428
+ * @callname: NominationPoolsApi_points_to_balance
429
+ * @param {number} pool_id
430
+ * @param {bigint} points
431
+ **/
432
+ pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
433
+
434
+ /**
435
+ * Returns the equivalent points of `new_funds` for a given pool.
436
+ *
437
+ * @callname: NominationPoolsApi_balance_to_points
438
+ * @param {number} pool_id
439
+ * @param {bigint} new_funds
440
+ **/
441
+ balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
442
+
443
+ /**
444
+ * Generic runtime api call
445
+ **/
446
+ [method: string]: GenericRuntimeApiMethod;
447
+ };
448
+ /**
449
+ * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
450
+ **/
451
+ contractsApi: {
452
+ /**
453
+ * Perform a call from a specified account to a given contract.
454
+ *
455
+ * See [`crate::Pallet::bare_call`].
456
+ *
457
+ * @callname: ContractsApi_call
458
+ * @param {AccountId32Like} origin
459
+ * @param {AccountId32Like} dest
460
+ * @param {bigint} value
461
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
462
+ * @param {bigint | undefined} storage_deposit_limit
463
+ * @param {BytesLike} input_data
464
+ **/
465
+ call: GenericRuntimeApiMethod<
466
+ (
467
+ origin: AccountId32Like,
468
+ dest: AccountId32Like,
469
+ value: bigint,
470
+ gasLimit: SpWeightsWeightV2Weight | undefined,
471
+ storageDepositLimit: bigint | undefined,
472
+ inputData: BytesLike,
473
+ ) => Promise<PalletContractsPrimitivesContractResult>
474
+ >;
475
+
476
+ /**
477
+ * Instantiate a new contract.
478
+ *
479
+ * See `[crate::Pallet::bare_instantiate]`.
480
+ *
481
+ * @callname: ContractsApi_instantiate
482
+ * @param {AccountId32Like} origin
483
+ * @param {bigint} value
484
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
485
+ * @param {bigint | undefined} storage_deposit_limit
486
+ * @param {PalletContractsPrimitivesCode} code
487
+ * @param {BytesLike} data
488
+ * @param {BytesLike} salt
489
+ **/
490
+ instantiate: GenericRuntimeApiMethod<
491
+ (
492
+ origin: AccountId32Like,
493
+ value: bigint,
494
+ gasLimit: SpWeightsWeightV2Weight | undefined,
495
+ storageDepositLimit: bigint | undefined,
496
+ code: PalletContractsPrimitivesCode,
497
+ data: BytesLike,
498
+ salt: BytesLike,
499
+ ) => Promise<PalletContractsPrimitivesContractResultResult>
500
+ >;
501
+
502
+ /**
503
+ * Upload new code without instantiating a contract from it.
504
+ *
505
+ * See [`crate::Pallet::bare_upload_code`].
506
+ *
507
+ * @callname: ContractsApi_upload_code
508
+ * @param {AccountId32Like} origin
509
+ * @param {BytesLike} code
510
+ * @param {bigint | undefined} storage_deposit_limit
511
+ * @param {PalletContractsWasmDeterminism} determinism
512
+ **/
513
+ uploadCode: GenericRuntimeApiMethod<
514
+ (
515
+ origin: AccountId32Like,
516
+ code: BytesLike,
517
+ storageDepositLimit: bigint | undefined,
518
+ determinism: PalletContractsWasmDeterminism,
519
+ ) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>
520
+ >;
521
+
522
+ /**
523
+ * Query a given storage key in a given contract.
524
+ *
525
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
526
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
527
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
528
+ *
529
+ * @callname: ContractsApi_get_storage
530
+ * @param {AccountId32Like} address
531
+ * @param {BytesLike} key
532
+ **/
533
+ getStorage: GenericRuntimeApiMethod<
534
+ (
535
+ address: AccountId32Like,
536
+ key: BytesLike,
537
+ ) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>
538
+ >;
539
+
540
+ /**
541
+ * Generic runtime api call
542
+ **/
543
+ [method: string]: GenericRuntimeApiMethod;
544
+ };
410
545
  }