@dedot/chaintypes 0.0.1-alpha.22

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 (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/aleph/consts.d.ts +533 -0
  4. package/aleph/consts.js +2 -0
  5. package/aleph/errors.d.ts +822 -0
  6. package/aleph/errors.js +2 -0
  7. package/aleph/events.d.ts +997 -0
  8. package/aleph/events.js +2 -0
  9. package/aleph/index.d.ts +19 -0
  10. package/aleph/index.js +3 -0
  11. package/aleph/query.d.ts +1271 -0
  12. package/aleph/query.js +2 -0
  13. package/aleph/rpc.d.ts +575 -0
  14. package/aleph/rpc.js +2 -0
  15. package/aleph/runtime.d.ts +410 -0
  16. package/aleph/runtime.js +2 -0
  17. package/aleph/tx.d.ts +2206 -0
  18. package/aleph/tx.js +2 -0
  19. package/aleph/types.d.ts +5560 -0
  20. package/aleph/types.js +2 -0
  21. package/astar/consts.d.ts +679 -0
  22. package/astar/consts.js +2 -0
  23. package/astar/errors.d.ts +1317 -0
  24. package/astar/errors.js +2 -0
  25. package/astar/events.d.ts +1707 -0
  26. package/astar/events.js +2 -0
  27. package/astar/index.d.ts +19 -0
  28. package/astar/index.js +3 -0
  29. package/astar/query.d.ts +1474 -0
  30. package/astar/query.js +2 -0
  31. package/astar/rpc.d.ts +775 -0
  32. package/astar/rpc.js +2 -0
  33. package/astar/runtime.d.ts +262 -0
  34. package/astar/runtime.js +2 -0
  35. package/astar/tx.d.ts +4810 -0
  36. package/astar/tx.js +2 -0
  37. package/astar/types.d.ts +12338 -0
  38. package/astar/types.js +2 -0
  39. package/cjs/aleph/consts.js +3 -0
  40. package/cjs/aleph/errors.js +3 -0
  41. package/cjs/aleph/events.js +3 -0
  42. package/cjs/aleph/index.js +19 -0
  43. package/cjs/aleph/query.js +3 -0
  44. package/cjs/aleph/rpc.js +3 -0
  45. package/cjs/aleph/runtime.js +3 -0
  46. package/cjs/aleph/tx.js +3 -0
  47. package/cjs/aleph/types.js +3 -0
  48. package/cjs/astar/consts.js +3 -0
  49. package/cjs/astar/errors.js +3 -0
  50. package/cjs/astar/events.js +3 -0
  51. package/cjs/astar/index.js +19 -0
  52. package/cjs/astar/query.js +3 -0
  53. package/cjs/astar/rpc.js +3 -0
  54. package/cjs/astar/runtime.js +3 -0
  55. package/cjs/astar/tx.js +3 -0
  56. package/cjs/astar/types.js +3 -0
  57. package/cjs/index.js +2 -0
  58. package/cjs/kusama/consts.js +3 -0
  59. package/cjs/kusama/errors.js +3 -0
  60. package/cjs/kusama/events.js +3 -0
  61. package/cjs/kusama/index.js +19 -0
  62. package/cjs/kusama/query.js +3 -0
  63. package/cjs/kusama/rpc.js +3 -0
  64. package/cjs/kusama/runtime.js +3 -0
  65. package/cjs/kusama/tx.js +3 -0
  66. package/cjs/kusama/types.js +3 -0
  67. package/cjs/kusamaAssetHub/consts.js +3 -0
  68. package/cjs/kusamaAssetHub/errors.js +3 -0
  69. package/cjs/kusamaAssetHub/events.js +3 -0
  70. package/cjs/kusamaAssetHub/index.js +19 -0
  71. package/cjs/kusamaAssetHub/query.js +3 -0
  72. package/cjs/kusamaAssetHub/rpc.js +3 -0
  73. package/cjs/kusamaAssetHub/runtime.js +3 -0
  74. package/cjs/kusamaAssetHub/tx.js +3 -0
  75. package/cjs/kusamaAssetHub/types.js +3 -0
  76. package/cjs/moonbeam/consts.js +3 -0
  77. package/cjs/moonbeam/errors.js +3 -0
  78. package/cjs/moonbeam/events.js +3 -0
  79. package/cjs/moonbeam/index.js +19 -0
  80. package/cjs/moonbeam/query.js +3 -0
  81. package/cjs/moonbeam/rpc.js +3 -0
  82. package/cjs/moonbeam/runtime.js +3 -0
  83. package/cjs/moonbeam/tx.js +3 -0
  84. package/cjs/moonbeam/types.js +3 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/packageInfo.js +5 -0
  87. package/cjs/polkadot/consts.js +3 -0
  88. package/cjs/polkadot/errors.js +3 -0
  89. package/cjs/polkadot/events.js +3 -0
  90. package/cjs/polkadot/index.js +19 -0
  91. package/cjs/polkadot/query.js +3 -0
  92. package/cjs/polkadot/rpc.js +3 -0
  93. package/cjs/polkadot/runtime.js +3 -0
  94. package/cjs/polkadot/tx.js +3 -0
  95. package/cjs/polkadot/types.js +3 -0
  96. package/cjs/polkadotAssetHub/consts.js +3 -0
  97. package/cjs/polkadotAssetHub/errors.js +3 -0
  98. package/cjs/polkadotAssetHub/events.js +3 -0
  99. package/cjs/polkadotAssetHub/index.js +19 -0
  100. package/cjs/polkadotAssetHub/query.js +3 -0
  101. package/cjs/polkadotAssetHub/rpc.js +3 -0
  102. package/cjs/polkadotAssetHub/runtime.js +3 -0
  103. package/cjs/polkadotAssetHub/tx.js +3 -0
  104. package/cjs/polkadotAssetHub/types.js +3 -0
  105. package/cjs/rococoAssetHub/consts.js +3 -0
  106. package/cjs/rococoAssetHub/errors.js +3 -0
  107. package/cjs/rococoAssetHub/events.js +3 -0
  108. package/cjs/rococoAssetHub/index.js +19 -0
  109. package/cjs/rococoAssetHub/query.js +3 -0
  110. package/cjs/rococoAssetHub/rpc.js +3 -0
  111. package/cjs/rococoAssetHub/runtime.js +3 -0
  112. package/cjs/rococoAssetHub/tx.js +3 -0
  113. package/cjs/rococoAssetHub/types.js +3 -0
  114. package/cjs/substrate/consts.js +3 -0
  115. package/cjs/substrate/errors.js +3 -0
  116. package/cjs/substrate/events.js +3 -0
  117. package/cjs/substrate/index.js +19 -0
  118. package/cjs/substrate/query.js +3 -0
  119. package/cjs/substrate/rpc.js +3 -0
  120. package/cjs/substrate/runtime.js +3 -0
  121. package/cjs/substrate/tx.js +3 -0
  122. package/cjs/substrate/types.js +3 -0
  123. package/cjs/westendAssetHub/consts.js +3 -0
  124. package/cjs/westendAssetHub/errors.js +3 -0
  125. package/cjs/westendAssetHub/events.js +3 -0
  126. package/cjs/westendAssetHub/index.js +19 -0
  127. package/cjs/westendAssetHub/query.js +3 -0
  128. package/cjs/westendAssetHub/rpc.js +3 -0
  129. package/cjs/westendAssetHub/runtime.js +3 -0
  130. package/cjs/westendAssetHub/tx.js +3 -0
  131. package/cjs/westendAssetHub/types.js +3 -0
  132. package/index.d.ts +5 -0
  133. package/index.js +1 -0
  134. package/kusama/consts.d.ts +1427 -0
  135. package/kusama/consts.js +2 -0
  136. package/kusama/errors.d.ts +2494 -0
  137. package/kusama/errors.js +2 -0
  138. package/kusama/events.d.ts +2960 -0
  139. package/kusama/events.js +2 -0
  140. package/kusama/index.d.ts +19 -0
  141. package/kusama/index.js +3 -0
  142. package/kusama/query.d.ts +3251 -0
  143. package/kusama/query.js +2 -0
  144. package/kusama/rpc.d.ts +726 -0
  145. package/kusama/rpc.js +2 -0
  146. package/kusama/runtime.d.ts +844 -0
  147. package/kusama/runtime.js +2 -0
  148. package/kusama/tx.d.ts +6014 -0
  149. package/kusama/tx.js +2 -0
  150. package/kusama/types.d.ts +15903 -0
  151. package/kusama/types.js +2 -0
  152. package/kusamaAssetHub/consts.d.ts +632 -0
  153. package/kusamaAssetHub/consts.js +2 -0
  154. package/kusamaAssetHub/errors.d.ts +1164 -0
  155. package/kusamaAssetHub/errors.js +2 -0
  156. package/kusamaAssetHub/events.d.ts +2162 -0
  157. package/kusamaAssetHub/events.js +2 -0
  158. package/kusamaAssetHub/index.d.ts +19 -0
  159. package/kusamaAssetHub/index.js +3 -0
  160. package/kusamaAssetHub/query.d.ts +1301 -0
  161. package/kusamaAssetHub/query.js +2 -0
  162. package/kusamaAssetHub/rpc.d.ts +590 -0
  163. package/kusamaAssetHub/rpc.js +2 -0
  164. package/kusamaAssetHub/runtime.d.ts +402 -0
  165. package/kusamaAssetHub/runtime.js +2 -0
  166. package/kusamaAssetHub/tx.d.ts +4217 -0
  167. package/kusamaAssetHub/tx.js +2 -0
  168. package/kusamaAssetHub/types.d.ts +10418 -0
  169. package/kusamaAssetHub/types.js +2 -0
  170. package/moonbeam/consts.d.ts +961 -0
  171. package/moonbeam/consts.js +2 -0
  172. package/moonbeam/errors.d.ts +1797 -0
  173. package/moonbeam/errors.js +2 -0
  174. package/moonbeam/events.d.ts +2840 -0
  175. package/moonbeam/events.js +2 -0
  176. package/moonbeam/index.d.ts +19 -0
  177. package/moonbeam/index.js +3 -0
  178. package/moonbeam/query.d.ts +2027 -0
  179. package/moonbeam/query.js +2 -0
  180. package/moonbeam/rpc.d.ts +809 -0
  181. package/moonbeam/rpc.js +2 -0
  182. package/moonbeam/runtime.d.ts +506 -0
  183. package/moonbeam/runtime.js +2 -0
  184. package/moonbeam/tx.d.ts +5205 -0
  185. package/moonbeam/tx.js +2 -0
  186. package/moonbeam/types.d.ts +12349 -0
  187. package/moonbeam/types.js +2 -0
  188. package/package.json +33 -0
  189. package/packageInfo.d.ts +4 -0
  190. package/packageInfo.js +3 -0
  191. package/polkadot/consts.d.ts +1160 -0
  192. package/polkadot/consts.js +2 -0
  193. package/polkadot/errors.d.ts +2020 -0
  194. package/polkadot/errors.js +2 -0
  195. package/polkadot/events.d.ts +2235 -0
  196. package/polkadot/events.js +2 -0
  197. package/polkadot/index.d.ts +19 -0
  198. package/polkadot/index.js +3 -0
  199. package/polkadot/query.d.ts +2811 -0
  200. package/polkadot/query.js +2 -0
  201. package/polkadot/rpc.d.ts +726 -0
  202. package/polkadot/rpc.js +2 -0
  203. package/polkadot/runtime.d.ts +844 -0
  204. package/polkadot/runtime.js +2 -0
  205. package/polkadot/tx.d.ts +5009 -0
  206. package/polkadot/tx.js +2 -0
  207. package/polkadot/types.d.ts +13729 -0
  208. package/polkadot/types.js +2 -0
  209. package/polkadotAssetHub/consts.d.ts +524 -0
  210. package/polkadotAssetHub/consts.js +2 -0
  211. package/polkadotAssetHub/errors.d.ts +925 -0
  212. package/polkadotAssetHub/errors.js +2 -0
  213. package/polkadotAssetHub/events.d.ts +1787 -0
  214. package/polkadotAssetHub/events.js +2 -0
  215. package/polkadotAssetHub/index.d.ts +19 -0
  216. package/polkadotAssetHub/index.js +3 -0
  217. package/polkadotAssetHub/query.d.ts +1222 -0
  218. package/polkadotAssetHub/query.js +2 -0
  219. package/polkadotAssetHub/rpc.d.ts +590 -0
  220. package/polkadotAssetHub/rpc.js +2 -0
  221. package/polkadotAssetHub/runtime.d.ts +359 -0
  222. package/polkadotAssetHub/runtime.js +2 -0
  223. package/polkadotAssetHub/tx.d.ts +3492 -0
  224. package/polkadotAssetHub/tx.js +2 -0
  225. package/polkadotAssetHub/types.d.ts +9164 -0
  226. package/polkadotAssetHub/types.js +2 -0
  227. package/rococoAssetHub/consts.d.ts +658 -0
  228. package/rococoAssetHub/consts.js +2 -0
  229. package/rococoAssetHub/errors.d.ts +1231 -0
  230. package/rococoAssetHub/errors.js +2 -0
  231. package/rococoAssetHub/events.d.ts +2172 -0
  232. package/rococoAssetHub/events.js +2 -0
  233. package/rococoAssetHub/index.d.ts +19 -0
  234. package/rococoAssetHub/index.js +3 -0
  235. package/rococoAssetHub/query.d.ts +1269 -0
  236. package/rococoAssetHub/query.js +2 -0
  237. package/rococoAssetHub/rpc.d.ts +590 -0
  238. package/rococoAssetHub/rpc.js +2 -0
  239. package/rococoAssetHub/runtime.d.ts +428 -0
  240. package/rococoAssetHub/runtime.js +2 -0
  241. package/rococoAssetHub/tx.d.ts +4307 -0
  242. package/rococoAssetHub/tx.js +2 -0
  243. package/rococoAssetHub/types.d.ts +11066 -0
  244. package/rococoAssetHub/types.js +2 -0
  245. package/substrate/consts.d.ts +1971 -0
  246. package/substrate/consts.js +2 -0
  247. package/substrate/errors.d.ts +3337 -0
  248. package/substrate/errors.js +2 -0
  249. package/substrate/events.d.ts +4777 -0
  250. package/substrate/events.js +2 -0
  251. package/substrate/index.d.ts +19 -0
  252. package/substrate/index.js +3 -0
  253. package/substrate/query.d.ts +3350 -0
  254. package/substrate/query.js +2 -0
  255. package/substrate/rpc.d.ts +718 -0
  256. package/substrate/rpc.js +2 -0
  257. package/substrate/runtime.d.ts +708 -0
  258. package/substrate/runtime.js +2 -0
  259. package/substrate/tx.d.ts +8800 -0
  260. package/substrate/tx.js +2 -0
  261. package/substrate/types.d.ts +20332 -0
  262. package/substrate/types.js +2 -0
  263. package/westendAssetHub/consts.d.ts +658 -0
  264. package/westendAssetHub/consts.js +2 -0
  265. package/westendAssetHub/errors.d.ts +1231 -0
  266. package/westendAssetHub/errors.js +2 -0
  267. package/westendAssetHub/events.d.ts +2172 -0
  268. package/westendAssetHub/events.js +2 -0
  269. package/westendAssetHub/index.d.ts +19 -0
  270. package/westendAssetHub/index.js +3 -0
  271. package/westendAssetHub/query.d.ts +1269 -0
  272. package/westendAssetHub/query.js +2 -0
  273. package/westendAssetHub/rpc.d.ts +590 -0
  274. package/westendAssetHub/rpc.js +2 -0
  275. package/westendAssetHub/runtime.d.ts +456 -0
  276. package/westendAssetHub/runtime.js +2 -0
  277. package/westendAssetHub/tx.d.ts +4307 -0
  278. package/westendAssetHub/tx.js +2 -0
  279. package/westendAssetHub/types.d.ts +11062 -0
  280. package/westendAssetHub/types.js +2 -0
@@ -0,0 +1,708 @@
1
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
+ import type { RuntimeVersion, Header, DispatchError, Result, UncheckedExtrinsicLike, UncheckedExtrinsic, H256, AccountId32Like, BytesLike, Bytes, AccountId32 } from '@dedot/codecs';
3
+ import type { SpRuntimeBlock, SpCoreOpaqueMetadata, SpRuntimeTransactionValidityTransactionValidityError, SpInherentsInherentData, SpInherentsCheckInherentsResult, SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionSource, SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement, SpStatementStoreRuntimeApiStatementSource, SpStatementStoreStatement, SpConsensusGrandpaAppPublic, SpConsensusGrandpaEquivocationProof, SpConsensusGrandpaOpaqueKeyOwnershipProof, SpConsensusBabeBabeConfiguration, SpConsensusSlotsSlot, SpConsensusBabeEpoch, SpConsensusBabeOpaqueKeyOwnershipProof, SpConsensusBabeAppPublic, SpConsensusSlotsEquivocationProof, SpAuthorityDiscoveryAppPublic, PalletContractsPrimitivesContractResult, SpWeightsWeightV2Weight, PalletContractsPrimitivesContractResultResult, PalletContractsPrimitivesCode, PalletContractsPrimitivesCodeUploadReturnValue, PalletContractsWasmDeterminism, PalletContractsPrimitivesContractAccessError, PalletTransactionPaymentRuntimeDispatchInfo, PalletTransactionPaymentFeeDetails, PalletAssetConversionNativeOrAssetId, KitchensinkRuntimeRuntimeCallLike, SpMmrPrimitivesError, SpMmrPrimitivesEncodableOpaqueLeaf, SpMmrPrimitivesProof, SpCoreCryptoKeyTypeId } from './types';
4
+ export interface RuntimeApis extends GenericRuntimeApis {
5
+ /**
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: ValidateStatement - 0xbe9fb0c91a8046cf
135
+ **/
136
+ validateStatement: {
137
+ /**
138
+ * Validate the statement.
139
+ *
140
+ * @callname: ValidateStatement_validate_statement
141
+ * @param {SpStatementStoreRuntimeApiStatementSource} source
142
+ * @param {SpStatementStoreStatement} statement
143
+ **/
144
+ validateStatement: GenericRuntimeApiMethod<(source: SpStatementStoreRuntimeApiStatementSource, statement: SpStatementStoreStatement) => Promise<Result<SpStatementStoreRuntimeApiValidStatement, SpStatementStoreRuntimeApiInvalidStatement>>>;
145
+ /**
146
+ * Generic runtime api call
147
+ **/
148
+ [method: string]: GenericRuntimeApiMethod;
149
+ };
150
+ /**
151
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
152
+ **/
153
+ offchainWorkerApi: {
154
+ /**
155
+ * Starts the off-chain task for given block header.
156
+ *
157
+ * @callname: OffchainWorkerApi_offchain_worker
158
+ * @param {Header} header
159
+ **/
160
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
161
+ /**
162
+ * Generic runtime api call
163
+ **/
164
+ [method: string]: GenericRuntimeApiMethod;
165
+ };
166
+ /**
167
+ * @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
168
+ **/
169
+ grandpaApi: {
170
+ /**
171
+ * Get the current GRANDPA authorities and weights. This should not change except
172
+ * for when changes are scheduled and the corresponding delay has passed.
173
+ *
174
+ * When called at block B, it will return the set of authorities that should be
175
+ * used to finalize descendants of this block (B+1, B+2, ...). The block B itself
176
+ * is finalized by the authorities from block B-1.
177
+ *
178
+ * @callname: GrandpaApi_grandpa_authorities
179
+ **/
180
+ grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
181
+ /**
182
+ * Submits an unsigned extrinsic to report an equivocation. The caller
183
+ * must provide the equivocation proof and a key ownership proof
184
+ * (should be obtained using `generate_key_ownership_proof`). The
185
+ * extrinsic will be unsigned and should only be accepted for local
186
+ * authorship (not to be broadcast to the network). This method returns
187
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
188
+ * reporting is disabled for the given runtime (i.e. this method is
189
+ * hardcoded to return `None`). Only useful in an offchain context.
190
+ *
191
+ * @callname: GrandpaApi_submit_report_equivocation_unsigned_extrinsic
192
+ * @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
193
+ * @param {SpConsensusGrandpaOpaqueKeyOwnershipProof} key_owner_proof
194
+ **/
195
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusGrandpaEquivocationProof, keyOwnerProof: SpConsensusGrandpaOpaqueKeyOwnershipProof) => Promise<[] | undefined>>;
196
+ /**
197
+ * Generates a proof of key ownership for the given authority in the
198
+ * given set. An example usage of this module is coupled with the
199
+ * session historical module to prove that a given authority key is
200
+ * tied to a given staking identity during a specific session. Proofs
201
+ * of key ownership are necessary for submitting equivocation reports.
202
+ * NOTE: even though the API takes a `set_id` as parameter the current
203
+ * implementations ignore this parameter and instead rely on this
204
+ * method being called at the correct block height, i.e. any point at
205
+ * which the given set id is live on-chain. Future implementations will
206
+ * instead use indexed data through an offchain worker, not requiring
207
+ * older states to be available.
208
+ *
209
+ * @callname: GrandpaApi_generate_key_ownership_proof
210
+ * @param {bigint} set_id
211
+ * @param {SpConsensusGrandpaAppPublic} authority_id
212
+ **/
213
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<(setId: bigint, authorityId: SpConsensusGrandpaAppPublic) => Promise<SpConsensusGrandpaOpaqueKeyOwnershipProof | undefined>>;
214
+ /**
215
+ * Get current GRANDPA authority set id.
216
+ *
217
+ * @callname: GrandpaApi_current_set_id
218
+ **/
219
+ currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
220
+ /**
221
+ * Generic runtime api call
222
+ **/
223
+ [method: string]: GenericRuntimeApiMethod;
224
+ };
225
+ /**
226
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
227
+ **/
228
+ nominationPoolsApi: {
229
+ /**
230
+ * Returns the pending rewards for the member that the AccountId was given for.
231
+ *
232
+ * @callname: NominationPoolsApi_pending_rewards
233
+ * @param {AccountId32Like} who
234
+ **/
235
+ pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
236
+ /**
237
+ * Returns the equivalent balance of `points` for a given pool.
238
+ *
239
+ * @callname: NominationPoolsApi_points_to_balance
240
+ * @param {number} pool_id
241
+ * @param {bigint} points
242
+ **/
243
+ pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
244
+ /**
245
+ * Returns the equivalent points of `new_funds` for a given pool.
246
+ *
247
+ * @callname: NominationPoolsApi_balance_to_points
248
+ * @param {number} pool_id
249
+ * @param {bigint} new_funds
250
+ **/
251
+ balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
252
+ /**
253
+ * Generic runtime api call
254
+ **/
255
+ [method: string]: GenericRuntimeApiMethod;
256
+ };
257
+ /**
258
+ * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
259
+ **/
260
+ stakingApi: {
261
+ /**
262
+ * Returns the nominations quota for a nominator with a given balance.
263
+ *
264
+ * @callname: StakingApi_nominations_quota
265
+ * @param {bigint} balance
266
+ **/
267
+ nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
268
+ /**
269
+ * Generic runtime api call
270
+ **/
271
+ [method: string]: GenericRuntimeApiMethod;
272
+ };
273
+ /**
274
+ * @runtimeapi: BabeApi - 0xcbca25e39f142387
275
+ **/
276
+ babeApi: {
277
+ /**
278
+ * Return the configuration for BABE.
279
+ *
280
+ * @callname: BabeApi_configuration
281
+ **/
282
+ configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
283
+ /**
284
+ * Returns the slot that started the current epoch.
285
+ *
286
+ * @callname: BabeApi_current_epoch_start
287
+ **/
288
+ currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
289
+ /**
290
+ * Returns information regarding the current epoch.
291
+ *
292
+ * @callname: BabeApi_current_epoch
293
+ **/
294
+ currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
295
+ /**
296
+ * Returns information regarding the next epoch (which was already
297
+ * previously announced).
298
+ *
299
+ * @callname: BabeApi_next_epoch
300
+ **/
301
+ nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
302
+ /**
303
+ * Generates a proof of key ownership for the given authority in the
304
+ * current epoch. An example usage of this module is coupled with the
305
+ * session historical module to prove that a given authority key is
306
+ * tied to a given staking identity during a specific session. Proofs
307
+ * of key ownership are necessary for submitting equivocation reports.
308
+ * NOTE: even though the API takes a `slot` as parameter the current
309
+ * implementations ignores this parameter and instead relies on this
310
+ * method being called at the correct block height, i.e. any point at
311
+ * which the epoch for the given slot is live on-chain. Future
312
+ * implementations will instead use indexed data through an offchain
313
+ * worker, not requiring older states to be available.
314
+ *
315
+ * @callname: BabeApi_generate_key_ownership_proof
316
+ * @param {SpConsensusSlotsSlot} slot
317
+ * @param {SpConsensusBabeAppPublic} authority_id
318
+ **/
319
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<(slot: SpConsensusSlotsSlot, authorityId: SpConsensusBabeAppPublic) => Promise<SpConsensusBabeOpaqueKeyOwnershipProof | undefined>>;
320
+ /**
321
+ * Submits an unsigned extrinsic to report an equivocation. The caller
322
+ * must provide the equivocation proof and a key ownership proof
323
+ * (should be obtained using `generate_key_ownership_proof`). The
324
+ * extrinsic will be unsigned and should only be accepted for local
325
+ * authorship (not to be broadcast to the network). This method returns
326
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
327
+ * reporting is disabled for the given runtime (i.e. this method is
328
+ * hardcoded to return `None`). Only useful in an offchain context.
329
+ *
330
+ * @callname: BabeApi_submit_report_equivocation_unsigned_extrinsic
331
+ * @param {SpConsensusSlotsEquivocationProof} equivocation_proof
332
+ * @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
333
+ **/
334
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<(equivocationProof: SpConsensusSlotsEquivocationProof, keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof) => Promise<[] | undefined>>;
335
+ /**
336
+ * Generic runtime api call
337
+ **/
338
+ [method: string]: GenericRuntimeApiMethod;
339
+ };
340
+ /**
341
+ * @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
342
+ **/
343
+ authorityDiscoveryApi: {
344
+ /**
345
+ * Retrieve authority identifiers of the current and next authority set.
346
+ *
347
+ * @callname: AuthorityDiscoveryApi_authorities
348
+ **/
349
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
350
+ /**
351
+ * Generic runtime api call
352
+ **/
353
+ [method: string]: GenericRuntimeApiMethod;
354
+ };
355
+ /**
356
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
357
+ **/
358
+ accountNonceApi: {
359
+ /**
360
+ * Get current account nonce of given `AccountId`.
361
+ *
362
+ * @callname: AccountNonceApi_account_nonce
363
+ * @param {AccountId32Like} account
364
+ **/
365
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
366
+ /**
367
+ * Generic runtime api call
368
+ **/
369
+ [method: string]: GenericRuntimeApiMethod;
370
+ };
371
+ /**
372
+ * @runtimeapi: AssetsApi - 0x8453b50b22293977
373
+ **/
374
+ assetsApi: {
375
+ /**
376
+ * Returns the list of `AssetId`s and corresponding balance that an `AccountId` has.
377
+ *
378
+ * @callname: AssetsApi_account_balances
379
+ * @param {AccountId32Like} account
380
+ **/
381
+ accountBalances: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<Array<[number, bigint]>>>;
382
+ /**
383
+ * Generic runtime api call
384
+ **/
385
+ [method: string]: GenericRuntimeApiMethod;
386
+ };
387
+ /**
388
+ * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
389
+ **/
390
+ contractsApi: {
391
+ /**
392
+ * Perform a call from a specified account to a given contract.
393
+ *
394
+ * See [`crate::Pallet::bare_call`].
395
+ *
396
+ * @callname: ContractsApi_call
397
+ * @param {AccountId32Like} origin
398
+ * @param {AccountId32Like} dest
399
+ * @param {bigint} value
400
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
401
+ * @param {bigint | undefined} storage_deposit_limit
402
+ * @param {BytesLike} input_data
403
+ **/
404
+ call: GenericRuntimeApiMethod<(origin: AccountId32Like, dest: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, inputData: BytesLike) => Promise<PalletContractsPrimitivesContractResult>>;
405
+ /**
406
+ * Instantiate a new contract.
407
+ *
408
+ * See `[crate::Pallet::bare_instantiate]`.
409
+ *
410
+ * @callname: ContractsApi_instantiate
411
+ * @param {AccountId32Like} origin
412
+ * @param {bigint} value
413
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
414
+ * @param {bigint | undefined} storage_deposit_limit
415
+ * @param {PalletContractsPrimitivesCode} code
416
+ * @param {BytesLike} data
417
+ * @param {BytesLike} salt
418
+ **/
419
+ instantiate: GenericRuntimeApiMethod<(origin: AccountId32Like, value: bigint, gasLimit: SpWeightsWeightV2Weight | undefined, storageDepositLimit: bigint | undefined, code: PalletContractsPrimitivesCode, data: BytesLike, salt: BytesLike) => Promise<PalletContractsPrimitivesContractResultResult>>;
420
+ /**
421
+ * Upload new code without instantiating a contract from it.
422
+ *
423
+ * See [`crate::Pallet::bare_upload_code`].
424
+ *
425
+ * @callname: ContractsApi_upload_code
426
+ * @param {AccountId32Like} origin
427
+ * @param {BytesLike} code
428
+ * @param {bigint | undefined} storage_deposit_limit
429
+ * @param {PalletContractsWasmDeterminism} determinism
430
+ **/
431
+ uploadCode: GenericRuntimeApiMethod<(origin: AccountId32Like, code: BytesLike, storageDepositLimit: bigint | undefined, determinism: PalletContractsWasmDeterminism) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>>;
432
+ /**
433
+ * Query a given storage key in a given contract.
434
+ *
435
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
436
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
437
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
438
+ *
439
+ * @callname: ContractsApi_get_storage
440
+ * @param {AccountId32Like} address
441
+ * @param {BytesLike} key
442
+ **/
443
+ getStorage: GenericRuntimeApiMethod<(address: AccountId32Like, key: BytesLike) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>>;
444
+ /**
445
+ * Generic runtime api call
446
+ **/
447
+ [method: string]: GenericRuntimeApiMethod;
448
+ };
449
+ /**
450
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
451
+ **/
452
+ transactionPaymentApi: {
453
+ /**
454
+ *
455
+ * @callname: TransactionPaymentApi_query_info
456
+ * @param {UncheckedExtrinsicLike} uxt
457
+ * @param {number} len
458
+ **/
459
+ queryInfo: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
460
+ /**
461
+ *
462
+ * @callname: TransactionPaymentApi_query_fee_details
463
+ * @param {UncheckedExtrinsicLike} uxt
464
+ * @param {number} len
465
+ **/
466
+ queryFeeDetails: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
467
+ /**
468
+ *
469
+ * @callname: TransactionPaymentApi_query_weight_to_fee
470
+ * @param {SpWeightsWeightV2Weight} weight
471
+ **/
472
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
473
+ /**
474
+ *
475
+ * @callname: TransactionPaymentApi_query_length_to_fee
476
+ * @param {number} length
477
+ **/
478
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
479
+ /**
480
+ * Generic runtime api call
481
+ **/
482
+ [method: string]: GenericRuntimeApiMethod;
483
+ };
484
+ /**
485
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
486
+ **/
487
+ assetConversionApi: {
488
+ /**
489
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
490
+ *
491
+ * Note that the price may have changed by the time the transaction is executed.
492
+ * (Use `amount_in_max` to control slippage.)
493
+ *
494
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
495
+ * @param {PalletAssetConversionNativeOrAssetId} asset1
496
+ * @param {PalletAssetConversionNativeOrAssetId} asset2
497
+ * @param {bigint} amount
498
+ * @param {boolean} include_fee
499
+ **/
500
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<(asset1: PalletAssetConversionNativeOrAssetId, asset2: PalletAssetConversionNativeOrAssetId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
501
+ /**
502
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
503
+ *
504
+ * Note that the price may have changed by the time the transaction is executed.
505
+ * (Use `amount_out_min` to control slippage.)
506
+ *
507
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
508
+ * @param {PalletAssetConversionNativeOrAssetId} asset1
509
+ * @param {PalletAssetConversionNativeOrAssetId} asset2
510
+ * @param {bigint} amount
511
+ * @param {boolean} include_fee
512
+ **/
513
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<(asset1: PalletAssetConversionNativeOrAssetId, asset2: PalletAssetConversionNativeOrAssetId, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
514
+ /**
515
+ * Returns the size of the liquidity pool for the given asset pair.
516
+ *
517
+ * @callname: AssetConversionApi_get_reserves
518
+ * @param {PalletAssetConversionNativeOrAssetId} asset1
519
+ * @param {PalletAssetConversionNativeOrAssetId} asset2
520
+ **/
521
+ getReserves: GenericRuntimeApiMethod<(asset1: PalletAssetConversionNativeOrAssetId, asset2: PalletAssetConversionNativeOrAssetId) => Promise<[bigint, bigint] | undefined>>;
522
+ /**
523
+ * Generic runtime api call
524
+ **/
525
+ [method: string]: GenericRuntimeApiMethod;
526
+ };
527
+ /**
528
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
529
+ **/
530
+ transactionPaymentCallApi: {
531
+ /**
532
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
533
+ *
534
+ * @callname: TransactionPaymentCallApi_query_call_info
535
+ * @param {KitchensinkRuntimeRuntimeCallLike} call
536
+ * @param {number} len
537
+ **/
538
+ queryCallInfo: GenericRuntimeApiMethod<(call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
539
+ /**
540
+ * Query fee details of a given encoded `Call`.
541
+ *
542
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
543
+ * @param {KitchensinkRuntimeRuntimeCallLike} call
544
+ * @param {number} len
545
+ **/
546
+ queryCallFeeDetails: GenericRuntimeApiMethod<(call: KitchensinkRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
547
+ /**
548
+ * Query the output of the current `WeightToFee` given some input.
549
+ *
550
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
551
+ * @param {SpWeightsWeightV2Weight} weight
552
+ **/
553
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
554
+ /**
555
+ * Query the output of the current `LengthToFee` given some input.
556
+ *
557
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
558
+ * @param {number} length
559
+ **/
560
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
561
+ /**
562
+ * Generic runtime api call
563
+ **/
564
+ [method: string]: GenericRuntimeApiMethod;
565
+ };
566
+ /**
567
+ * @runtimeapi: NftsApi - 0x899a250cbe84f250
568
+ **/
569
+ nftsApi: {
570
+ /**
571
+ *
572
+ * @callname: NftsApi_owner
573
+ * @param {number} collection
574
+ * @param {number} item
575
+ **/
576
+ owner: GenericRuntimeApiMethod<(collection: number, item: number) => Promise<AccountId32 | undefined>>;
577
+ /**
578
+ *
579
+ * @callname: NftsApi_collection_owner
580
+ * @param {number} collection
581
+ **/
582
+ collectionOwner: GenericRuntimeApiMethod<(collection: number) => Promise<AccountId32 | undefined>>;
583
+ /**
584
+ *
585
+ * @callname: NftsApi_attribute
586
+ * @param {number} collection
587
+ * @param {number} item
588
+ * @param {BytesLike} key
589
+ **/
590
+ attribute: GenericRuntimeApiMethod<(collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
591
+ /**
592
+ *
593
+ * @callname: NftsApi_custom_attribute
594
+ * @param {AccountId32Like} account
595
+ * @param {number} collection
596
+ * @param {number} item
597
+ * @param {BytesLike} key
598
+ **/
599
+ customAttribute: GenericRuntimeApiMethod<(account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
600
+ /**
601
+ *
602
+ * @callname: NftsApi_system_attribute
603
+ * @param {number} collection
604
+ * @param {number} item
605
+ * @param {BytesLike} key
606
+ **/
607
+ systemAttribute: GenericRuntimeApiMethod<(collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>>;
608
+ /**
609
+ *
610
+ * @callname: NftsApi_collection_attribute
611
+ * @param {number} collection
612
+ * @param {BytesLike} key
613
+ **/
614
+ collectionAttribute: GenericRuntimeApiMethod<(collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
615
+ /**
616
+ * Generic runtime api call
617
+ **/
618
+ [method: string]: GenericRuntimeApiMethod;
619
+ };
620
+ /**
621
+ * @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
622
+ **/
623
+ mmrApi: {
624
+ /**
625
+ * Return the on-chain MMR root hash.
626
+ *
627
+ * @callname: MmrApi_mmr_root
628
+ **/
629
+ mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
630
+ /**
631
+ * Return the number of MMR blocks in the chain.
632
+ *
633
+ * @callname: MmrApi_mmr_leaf_count
634
+ **/
635
+ mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
636
+ /**
637
+ * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
638
+ * use historical MMR state at given block height `n`. Else, use current MMR state.
639
+ *
640
+ * @callname: MmrApi_generate_proof
641
+ * @param {Array<number>} block_numbers
642
+ * @param {number | undefined} best_known_block_number
643
+ **/
644
+ generateProof: GenericRuntimeApiMethod<(blockNumbers: Array<number>, bestKnownBlockNumber?: number | undefined) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesProof], SpMmrPrimitivesError>>>;
645
+ /**
646
+ * Verify MMR proof against on-chain MMR for a batch of leaves.
647
+ *
648
+ * Note this function will use on-chain MMR root hash and check if the proof matches the hash.
649
+ * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
650
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
651
+ *
652
+ * @callname: MmrApi_verify_proof
653
+ * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
654
+ * @param {SpMmrPrimitivesProof} proof
655
+ **/
656
+ verifyProof: GenericRuntimeApiMethod<(leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
657
+ /**
658
+ * Verify MMR proof against given root hash for a batch of leaves.
659
+ *
660
+ * Note this function does not require any on-chain storage - the
661
+ * proof is verified against given MMR root hash.
662
+ *
663
+ * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
664
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
665
+ *
666
+ * @callname: MmrApi_verify_proof_stateless
667
+ * @param {H256} root
668
+ * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
669
+ * @param {SpMmrPrimitivesProof} proof
670
+ **/
671
+ verifyProofStateless: GenericRuntimeApiMethod<(root: H256, leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>, proof: SpMmrPrimitivesProof) => Promise<Result<[], SpMmrPrimitivesError>>>;
672
+ /**
673
+ * Generic runtime api call
674
+ **/
675
+ [method: string]: GenericRuntimeApiMethod;
676
+ };
677
+ /**
678
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
679
+ **/
680
+ sessionKeys: {
681
+ /**
682
+ * Generate a set of session keys with optionally using the given seed.
683
+ * The keys should be stored within the keystore exposed via runtime
684
+ * externalities.
685
+ *
686
+ * The seed needs to be a valid `utf8` string.
687
+ *
688
+ * Returns the concatenated SCALE encoded public keys.
689
+ *
690
+ * @callname: SessionKeys_generate_session_keys
691
+ * @param {BytesLike | undefined} seed
692
+ **/
693
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
694
+ /**
695
+ * Decode the given public session keys.
696
+ *
697
+ * Returns the list of public raw public keys + key type.
698
+ *
699
+ * @callname: SessionKeys_decode_session_keys
700
+ * @param {BytesLike} encoded
701
+ **/
702
+ decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
703
+ /**
704
+ * Generic runtime api call
705
+ **/
706
+ [method: string]: GenericRuntimeApiMethod;
707
+ };
708
+ }