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

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 +1013 -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,428 +1,543 @@
1
+ // Generated by @dedot/codegen
2
+
1
3
  import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
- import type { H256, RuntimeVersion, Header, DispatchError, Result, UncheckedExtrinsicLike, UncheckedExtrinsic, Bytes, BytesLike, AccountId32Like } from '@dedot/codecs';
3
- import type { SpConsensusSlotsSlotDuration, SpConsensusAuraSr25519AppSr25519Public, SpConsensusSlotsSlot, SpRuntimeBlock, SpCoreOpaqueMetadata, SpRuntimeTransactionValidityTransactionValidityError, SpInherentsInherentData, SpInherentsCheckInherentsResult, SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionSource, SpCoreCryptoKeyTypeId, StagingXcmV3MultilocationMultiLocation, PalletTransactionPaymentRuntimeDispatchInfo, PalletTransactionPaymentFeeDetails, SpWeightsWeightV2Weight, AssetHubRococoRuntimeRuntimeCallLike, XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError, CumulusPrimitivesCoreCollationInfo } from './types';
4
+ import type {
5
+ H256,
6
+ RuntimeVersion,
7
+ Header,
8
+ DispatchError,
9
+ Result,
10
+ UncheckedExtrinsicLike,
11
+ UncheckedExtrinsic,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ } from '@dedot/codecs';
16
+ import type {
17
+ SpConsensusSlotsSlotDuration,
18
+ SpConsensusAuraSr25519AppSr25519Public,
19
+ SpConsensusSlotsSlot,
20
+ SpRuntimeBlock,
21
+ SpRuntimeExtrinsicInclusionMode,
22
+ SpCoreOpaqueMetadata,
23
+ SpRuntimeTransactionValidityTransactionValidityError,
24
+ SpInherentsInherentData,
25
+ SpInherentsCheckInherentsResult,
26
+ SpRuntimeTransactionValidityValidTransaction,
27
+ SpRuntimeTransactionValidityTransactionSource,
28
+ SpCoreCryptoKeyTypeId,
29
+ StagingXcmV3MultilocationMultiLocation,
30
+ PalletTransactionPaymentRuntimeDispatchInfo,
31
+ PalletTransactionPaymentFeeDetails,
32
+ SpWeightsWeightV2Weight,
33
+ AssetHubRococoRuntimeRuntimeCallLike,
34
+ XcmVersionedAssets,
35
+ AssetsCommonRuntimeApiFungiblesAccessError,
36
+ CumulusPrimitivesCoreCollationInfo,
37
+ } from './types';
38
+
4
39
  export interface RuntimeApis extends GenericRuntimeApis {
40
+ /**
41
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
42
+ **/
43
+ auraApi: {
5
44
  /**
6
- * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
7
- **/
8
- auraApi: {
9
- /**
10
- * Returns the slot duration for Aura.
11
- *
12
- * Currently, only the value provided by this type at genesis will be used.
13
- *
14
- * @callname: AuraApi_slot_duration
15
- **/
16
- slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
17
- /**
18
- * Return the current set of authorities.
19
- *
20
- * @callname: AuraApi_authorities
21
- **/
22
- authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
23
- /**
24
- * Generic runtime api call
25
- **/
26
- [method: string]: GenericRuntimeApiMethod;
27
- };
28
- /**
29
- * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
30
- **/
31
- auraUnincludedSegmentApi: {
32
- /**
33
- * Whether it is legal to extend the chain, assuming the given block is the most
34
- * recently included one as-of the relay parent that will be built against, and
35
- * the given slot.
36
- *
37
- * This should be consistent with the logic the runtime uses when validating blocks to
38
- * avoid issues.
39
- *
40
- * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
41
- * whose state we are querying against, this must always return `true` as long as the slot
42
- * is more recent than the included block itself.
43
- *
44
- * @callname: AuraUnincludedSegmentApi_can_build_upon
45
- * @param {H256} included_hash
46
- * @param {SpConsensusSlotsSlot} slot
47
- **/
48
- canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
49
- /**
50
- * Generic runtime api call
51
- **/
52
- [method: string]: GenericRuntimeApiMethod;
53
- };
54
- /**
55
- * @runtimeapi: Core - 0xdf6acb689907609b
56
- **/
57
- core: {
58
- /**
59
- * Returns the version of the runtime.
60
- *
61
- * @callname: Core_version
62
- **/
63
- version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
64
- /**
65
- * Execute the given block.
66
- *
67
- * @callname: Core_execute_block
68
- * @param {SpRuntimeBlock} block
69
- **/
70
- executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
71
- /**
72
- * Initialize a block with the given header.
73
- *
74
- * @callname: Core_initialize_block
75
- * @param {Header} header
76
- **/
77
- initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
78
- /**
79
- * Generic runtime api call
80
- **/
81
- [method: string]: GenericRuntimeApiMethod;
82
- };
83
- /**
84
- * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
85
- **/
86
- metadata: {
87
- /**
88
- * Returns the metadata of a runtime.
89
- *
90
- * @callname: Metadata_metadata
91
- **/
92
- metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
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
- * Returns the supported metadata versions.
105
- *
106
- * This can be used to call `metadata_at_version`.
107
- *
108
- * @callname: Metadata_metadata_versions
109
- **/
110
- metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
111
- /**
112
- * Generic runtime api call
113
- **/
114
- [method: string]: GenericRuntimeApiMethod;
115
- };
116
- /**
117
- * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
118
- **/
119
- blockBuilder: {
120
- /**
121
- * Apply the given extrinsic.
122
- *
123
- * Returns an inclusion outcome which specifies if this extrinsic is included in
124
- * this block or not.
125
- *
126
- * @callname: BlockBuilder_apply_extrinsic
127
- * @param {UncheckedExtrinsicLike} extrinsic
128
- **/
129
- applyExtrinsic: GenericRuntimeApiMethod<(extrinsic: UncheckedExtrinsicLike) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>>;
130
- /**
131
- * Finish the current block.
132
- *
133
- * @callname: BlockBuilder_finalize_block
134
- **/
135
- finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
136
- /**
137
- * Generate inherent extrinsics. The inherent data will vary from chain to chain.
138
- *
139
- * @callname: BlockBuilder_inherent_extrinsics
140
- * @param {SpInherentsInherentData} inherent
141
- **/
142
- inherentExtrinsics: GenericRuntimeApiMethod<(inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>>;
143
- /**
144
- * Check that the inherents are valid. The inherent data will vary from chain to chain.
145
- *
146
- * @callname: BlockBuilder_check_inherents
147
- * @param {SpRuntimeBlock} block
148
- * @param {SpInherentsInherentData} data
149
- **/
150
- checkInherents: GenericRuntimeApiMethod<(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>>;
151
- /**
152
- * Generic runtime api call
153
- **/
154
- [method: string]: GenericRuntimeApiMethod;
155
- };
156
- /**
157
- * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
158
- **/
159
- taggedTransactionQueue: {
160
- /**
161
- * Validate the transaction.
162
- *
163
- * This method is invoked by the transaction pool to learn details about given transaction.
164
- * The implementation should make sure to verify the correctness of the transaction
165
- * against current state. The given `block_hash` corresponds to the hash of the block
166
- * that is used as current state.
167
- *
168
- * Note that this call may be performed by the pool multiple times and transactions
169
- * might be verified in any possible order.
170
- *
171
- * @callname: TaggedTransactionQueue_validate_transaction
172
- * @param {SpRuntimeTransactionValidityTransactionSource} source
173
- * @param {UncheckedExtrinsicLike} tx
174
- * @param {H256} block_hash
175
- **/
176
- validateTransaction: GenericRuntimeApiMethod<(source: SpRuntimeTransactionValidityTransactionSource, tx: UncheckedExtrinsicLike, blockHash: H256) => Promise<Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>>>;
177
- /**
178
- * Generic runtime api call
179
- **/
180
- [method: string]: GenericRuntimeApiMethod;
181
- };
182
- /**
183
- * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
184
- **/
185
- offchainWorkerApi: {
186
- /**
187
- * Starts the off-chain task for given block header.
188
- *
189
- * @callname: OffchainWorkerApi_offchain_worker
190
- * @param {Header} header
191
- **/
192
- offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
193
- /**
194
- * Generic runtime api call
195
- **/
196
- [method: string]: GenericRuntimeApiMethod;
197
- };
198
- /**
199
- * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
200
- **/
201
- sessionKeys: {
202
- /**
203
- * Generate a set of session keys with optionally using the given seed.
204
- * The keys should be stored within the keystore exposed via runtime
205
- * externalities.
206
- *
207
- * The seed needs to be a valid `utf8` string.
208
- *
209
- * Returns the concatenated SCALE encoded public keys.
210
- *
211
- * @callname: SessionKeys_generate_session_keys
212
- * @param {BytesLike | undefined} seed
213
- **/
214
- generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
215
- /**
216
- * Decode the given public session keys.
217
- *
218
- * Returns the list of public raw public keys + key type.
219
- *
220
- * @callname: SessionKeys_decode_session_keys
221
- * @param {BytesLike} encoded
222
- **/
223
- decodeSessionKeys: GenericRuntimeApiMethod<(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>>;
224
- /**
225
- * Generic runtime api call
226
- **/
227
- [method: string]: GenericRuntimeApiMethod;
228
- };
229
- /**
230
- * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
231
- **/
232
- accountNonceApi: {
233
- /**
234
- * Get current account nonce of given `AccountId`.
235
- *
236
- * @callname: AccountNonceApi_account_nonce
237
- * @param {AccountId32Like} account
238
- **/
239
- accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
240
- /**
241
- * Generic runtime api call
242
- **/
243
- [method: string]: GenericRuntimeApiMethod;
244
- };
245
- /**
246
- * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
247
- **/
248
- assetConversionApi: {
249
- /**
250
- * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
251
- *
252
- * Note that the price may have changed by the time the transaction is executed.
253
- * (Use `amount_in_max` to control slippage.)
254
- *
255
- * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
256
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
257
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
258
- * @param {bigint} amount
259
- * @param {boolean} include_fee
260
- **/
261
- quotePriceTokensForExactTokens: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
262
- /**
263
- * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
264
- *
265
- * Note that the price may have changed by the time the transaction is executed.
266
- * (Use `amount_out_min` to control slippage.)
267
- *
268
- * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
269
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
270
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
271
- * @param {bigint} amount
272
- * @param {boolean} include_fee
273
- **/
274
- quotePriceExactTokensForTokens: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
275
- /**
276
- * Returns the size of the liquidity pool for the given asset pair.
277
- *
278
- * @callname: AssetConversionApi_get_reserves
279
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
280
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
281
- **/
282
- getReserves: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation) => Promise<[bigint, bigint] | undefined>>;
283
- /**
284
- * Generic runtime api call
285
- **/
286
- [method: string]: GenericRuntimeApiMethod;
287
- };
288
- /**
289
- * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
290
- **/
291
- transactionPaymentApi: {
292
- /**
293
- *
294
- * @callname: TransactionPaymentApi_query_info
295
- * @param {UncheckedExtrinsicLike} uxt
296
- * @param {number} len
297
- **/
298
- queryInfo: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
299
- /**
300
- *
301
- * @callname: TransactionPaymentApi_query_fee_details
302
- * @param {UncheckedExtrinsicLike} uxt
303
- * @param {number} len
304
- **/
305
- queryFeeDetails: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
306
- /**
307
- *
308
- * @callname: TransactionPaymentApi_query_weight_to_fee
309
- * @param {SpWeightsWeightV2Weight} weight
310
- **/
311
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
312
- /**
313
- *
314
- * @callname: TransactionPaymentApi_query_length_to_fee
315
- * @param {number} length
316
- **/
317
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
318
- /**
319
- * Generic runtime api call
320
- **/
321
- [method: string]: GenericRuntimeApiMethod;
322
- };
323
- /**
324
- * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
325
- **/
326
- transactionPaymentCallApi: {
327
- /**
328
- * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
329
- *
330
- * @callname: TransactionPaymentCallApi_query_call_info
331
- * @param {AssetHubRococoRuntimeRuntimeCallLike} call
332
- * @param {number} len
333
- **/
334
- queryCallInfo: GenericRuntimeApiMethod<(call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
335
- /**
336
- * Query fee details of a given encoded `Call`.
337
- *
338
- * @callname: TransactionPaymentCallApi_query_call_fee_details
339
- * @param {AssetHubRococoRuntimeRuntimeCallLike} call
340
- * @param {number} len
341
- **/
342
- queryCallFeeDetails: GenericRuntimeApiMethod<(call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
343
- /**
344
- * Query the output of the current `WeightToFee` given some input.
345
- *
346
- * @callname: TransactionPaymentCallApi_query_weight_to_fee
347
- * @param {SpWeightsWeightV2Weight} weight
348
- **/
349
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
350
- /**
351
- * Query the output of the current `LengthToFee` given some input.
352
- *
353
- * @callname: TransactionPaymentCallApi_query_length_to_fee
354
- * @param {number} length
355
- **/
356
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
357
- /**
358
- * Generic runtime api call
359
- **/
360
- [method: string]: GenericRuntimeApiMethod;
361
- };
362
- /**
363
- * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
364
- **/
365
- fungiblesApi: {
366
- /**
367
- * Returns the list of all [`Asset`] that an `AccountId` has.
368
- *
369
- * @callname: FungiblesApi_query_account_balances
370
- * @param {AccountId32Like} account
371
- **/
372
- queryAccountBalances: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>>;
373
- /**
374
- * Generic runtime api call
375
- **/
376
- [method: string]: GenericRuntimeApiMethod;
377
- };
378
- /**
379
- * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
380
- **/
381
- collectCollationInfo: {
382
- /**
383
- * Collect information about a collation.
384
- *
385
- * The given `header` is the header of the built block for that
386
- * we are collecting the collation info for.
387
- *
388
- * @callname: CollectCollationInfo_collect_collation_info
389
- * @param {Header} header
390
- **/
391
- collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
392
- /**
393
- * Generic runtime api call
394
- **/
395
- [method: string]: GenericRuntimeApiMethod;
396
- };
397
- /**
398
- * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
399
- **/
400
- genesisBuilder: {
401
- /**
402
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
403
- *
404
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
405
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
406
- *
407
- * @callname: GenesisBuilder_create_default_config
408
- **/
409
- createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
410
- /**
411
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
412
- *
413
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
414
- * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
415
- * It is recommended to log any errors encountered during the process.
416
- *
417
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
418
- *
419
- * @callname: GenesisBuilder_build_config
420
- * @param {BytesLike} json
421
- **/
422
- buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
423
- /**
424
- * Generic runtime api call
425
- **/
426
- [method: string]: GenericRuntimeApiMethod;
427
- };
45
+ * Returns the slot duration for Aura.
46
+ *
47
+ * Currently, only the value provided by this type at genesis will be used.
48
+ *
49
+ * @callname: AuraApi_slot_duration
50
+ **/
51
+ slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
52
+
53
+ /**
54
+ * Return the current set of authorities.
55
+ *
56
+ * @callname: AuraApi_authorities
57
+ **/
58
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
59
+
60
+ /**
61
+ * Generic runtime api call
62
+ **/
63
+ [method: string]: GenericRuntimeApiMethod;
64
+ };
65
+ /**
66
+ * @runtimeapi: AuraUnincludedSegmentApi - 0xd7bdd8a272ca0d65
67
+ **/
68
+ auraUnincludedSegmentApi: {
69
+ /**
70
+ * Whether it is legal to extend the chain, assuming the given block is the most
71
+ * recently included one as-of the relay parent that will be built against, and
72
+ * the given slot.
73
+ *
74
+ * This should be consistent with the logic the runtime uses when validating blocks to
75
+ * avoid issues.
76
+ *
77
+ * When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
78
+ * whose state we are querying against, this must always return `true` as long as the slot
79
+ * is more recent than the included block itself.
80
+ *
81
+ * @callname: AuraUnincludedSegmentApi_can_build_upon
82
+ * @param {H256} included_hash
83
+ * @param {SpConsensusSlotsSlot} slot
84
+ **/
85
+ canBuildUpon: GenericRuntimeApiMethod<(includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
86
+
87
+ /**
88
+ * Generic runtime api call
89
+ **/
90
+ [method: string]: GenericRuntimeApiMethod;
91
+ };
92
+ /**
93
+ * @runtimeapi: Core - 0xdf6acb689907609b
94
+ **/
95
+ core: {
96
+ /**
97
+ * Returns the version of the runtime.
98
+ *
99
+ * @callname: Core_version
100
+ **/
101
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
102
+
103
+ /**
104
+ * Execute the given block.
105
+ *
106
+ * @callname: Core_execute_block
107
+ * @param {SpRuntimeBlock} block
108
+ **/
109
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
110
+
111
+ /**
112
+ * Initialize a block with the given header and return the runtime executive mode.
113
+ *
114
+ * @callname: Core_initialize_block
115
+ * @param {Header} header
116
+ **/
117
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
118
+
119
+ /**
120
+ * Generic runtime api call
121
+ **/
122
+ [method: string]: GenericRuntimeApiMethod;
123
+ };
124
+ /**
125
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
126
+ **/
127
+ metadata: {
128
+ /**
129
+ * Returns the metadata of a runtime.
130
+ *
131
+ * @callname: Metadata_metadata
132
+ **/
133
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
134
+
135
+ /**
136
+ * Returns the metadata at a given version.
137
+ *
138
+ * If the given `version` isn't supported, this will return `None`.
139
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
140
+ *
141
+ * @callname: Metadata_metadata_at_version
142
+ * @param {number} version
143
+ **/
144
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
145
+
146
+ /**
147
+ * Returns the supported metadata versions.
148
+ *
149
+ * This can be used to call `metadata_at_version`.
150
+ *
151
+ * @callname: Metadata_metadata_versions
152
+ **/
153
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
154
+
155
+ /**
156
+ * Generic runtime api call
157
+ **/
158
+ [method: string]: GenericRuntimeApiMethod;
159
+ };
160
+ /**
161
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
162
+ **/
163
+ blockBuilder: {
164
+ /**
165
+ * Apply the given extrinsic.
166
+ *
167
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
168
+ * this block or not.
169
+ *
170
+ * @callname: BlockBuilder_apply_extrinsic
171
+ * @param {UncheckedExtrinsicLike} extrinsic
172
+ **/
173
+ applyExtrinsic: GenericRuntimeApiMethod<
174
+ (
175
+ extrinsic: UncheckedExtrinsicLike,
176
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
177
+ >;
178
+
179
+ /**
180
+ * Finish the current block.
181
+ *
182
+ * @callname: BlockBuilder_finalize_block
183
+ **/
184
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
185
+
186
+ /**
187
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
188
+ *
189
+ * @callname: BlockBuilder_inherent_extrinsics
190
+ * @param {SpInherentsInherentData} inherent
191
+ **/
192
+ inherentExtrinsics: GenericRuntimeApiMethod<
193
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
194
+ >;
195
+
196
+ /**
197
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
198
+ *
199
+ * @callname: BlockBuilder_check_inherents
200
+ * @param {SpRuntimeBlock} block
201
+ * @param {SpInherentsInherentData} data
202
+ **/
203
+ checkInherents: GenericRuntimeApiMethod<
204
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
205
+ >;
206
+
207
+ /**
208
+ * Generic runtime api call
209
+ **/
210
+ [method: string]: GenericRuntimeApiMethod;
211
+ };
212
+ /**
213
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
214
+ **/
215
+ taggedTransactionQueue: {
216
+ /**
217
+ * Validate the transaction.
218
+ *
219
+ * This method is invoked by the transaction pool to learn details about given transaction.
220
+ * The implementation should make sure to verify the correctness of the transaction
221
+ * against current state. The given `block_hash` corresponds to the hash of the block
222
+ * that is used as current state.
223
+ *
224
+ * Note that this call may be performed by the pool multiple times and transactions
225
+ * might be verified in any possible order.
226
+ *
227
+ * @callname: TaggedTransactionQueue_validate_transaction
228
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
229
+ * @param {UncheckedExtrinsicLike} tx
230
+ * @param {H256} block_hash
231
+ **/
232
+ validateTransaction: GenericRuntimeApiMethod<
233
+ (
234
+ source: SpRuntimeTransactionValidityTransactionSource,
235
+ tx: UncheckedExtrinsicLike,
236
+ blockHash: H256,
237
+ ) => Promise<
238
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
239
+ >
240
+ >;
241
+
242
+ /**
243
+ * Generic runtime api call
244
+ **/
245
+ [method: string]: GenericRuntimeApiMethod;
246
+ };
247
+ /**
248
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
249
+ **/
250
+ offchainWorkerApi: {
251
+ /**
252
+ * Starts the off-chain task for given block header.
253
+ *
254
+ * @callname: OffchainWorkerApi_offchain_worker
255
+ * @param {Header} header
256
+ **/
257
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
258
+
259
+ /**
260
+ * Generic runtime api call
261
+ **/
262
+ [method: string]: GenericRuntimeApiMethod;
263
+ };
264
+ /**
265
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
266
+ **/
267
+ sessionKeys: {
268
+ /**
269
+ * Generate a set of session keys with optionally using the given seed.
270
+ * The keys should be stored within the keystore exposed via runtime
271
+ * externalities.
272
+ *
273
+ * The seed needs to be a valid `utf8` string.
274
+ *
275
+ * Returns the concatenated SCALE encoded public keys.
276
+ *
277
+ * @callname: SessionKeys_generate_session_keys
278
+ * @param {BytesLike | undefined} seed
279
+ **/
280
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
281
+
282
+ /**
283
+ * Decode the given public session keys.
284
+ *
285
+ * Returns the list of public raw public keys + key type.
286
+ *
287
+ * @callname: SessionKeys_decode_session_keys
288
+ * @param {BytesLike} encoded
289
+ **/
290
+ decodeSessionKeys: GenericRuntimeApiMethod<
291
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
292
+ >;
293
+
294
+ /**
295
+ * Generic runtime api call
296
+ **/
297
+ [method: string]: GenericRuntimeApiMethod;
298
+ };
299
+ /**
300
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
301
+ **/
302
+ accountNonceApi: {
303
+ /**
304
+ * Get current account nonce of given `AccountId`.
305
+ *
306
+ * @callname: AccountNonceApi_account_nonce
307
+ * @param {AccountId32Like} account
308
+ **/
309
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
310
+
311
+ /**
312
+ * Generic runtime api call
313
+ **/
314
+ [method: string]: GenericRuntimeApiMethod;
315
+ };
316
+ /**
317
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
318
+ **/
319
+ assetConversionApi: {
320
+ /**
321
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
322
+ *
323
+ * Note that the price may have changed by the time the transaction is executed.
324
+ * (Use `amount_in_max` to control slippage.)
325
+ *
326
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
327
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
328
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
329
+ * @param {bigint} amount
330
+ * @param {boolean} include_fee
331
+ **/
332
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
333
+ (
334
+ asset1: StagingXcmV3MultilocationMultiLocation,
335
+ asset2: StagingXcmV3MultilocationMultiLocation,
336
+ amount: bigint,
337
+ includeFee: boolean,
338
+ ) => Promise<bigint | undefined>
339
+ >;
340
+
341
+ /**
342
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
343
+ *
344
+ * Note that the price may have changed by the time the transaction is executed.
345
+ * (Use `amount_out_min` to control slippage.)
346
+ *
347
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
348
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
349
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
350
+ * @param {bigint} amount
351
+ * @param {boolean} include_fee
352
+ **/
353
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
354
+ (
355
+ asset1: StagingXcmV3MultilocationMultiLocation,
356
+ asset2: StagingXcmV3MultilocationMultiLocation,
357
+ amount: bigint,
358
+ includeFee: boolean,
359
+ ) => Promise<bigint | undefined>
360
+ >;
361
+
362
+ /**
363
+ * Returns the size of the liquidity pool for the given asset pair.
364
+ *
365
+ * @callname: AssetConversionApi_get_reserves
366
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
367
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
368
+ **/
369
+ getReserves: GenericRuntimeApiMethod<
370
+ (
371
+ asset1: StagingXcmV3MultilocationMultiLocation,
372
+ asset2: StagingXcmV3MultilocationMultiLocation,
373
+ ) => Promise<[bigint, bigint] | undefined>
374
+ >;
375
+
376
+ /**
377
+ * Generic runtime api call
378
+ **/
379
+ [method: string]: GenericRuntimeApiMethod;
380
+ };
381
+ /**
382
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
383
+ **/
384
+ transactionPaymentApi: {
385
+ /**
386
+ *
387
+ * @callname: TransactionPaymentApi_query_info
388
+ * @param {UncheckedExtrinsicLike} uxt
389
+ * @param {number} len
390
+ **/
391
+ queryInfo: GenericRuntimeApiMethod<
392
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
393
+ >;
394
+
395
+ /**
396
+ *
397
+ * @callname: TransactionPaymentApi_query_fee_details
398
+ * @param {UncheckedExtrinsicLike} uxt
399
+ * @param {number} len
400
+ **/
401
+ queryFeeDetails: GenericRuntimeApiMethod<
402
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
403
+ >;
404
+
405
+ /**
406
+ *
407
+ * @callname: TransactionPaymentApi_query_weight_to_fee
408
+ * @param {SpWeightsWeightV2Weight} weight
409
+ **/
410
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
411
+
412
+ /**
413
+ *
414
+ * @callname: TransactionPaymentApi_query_length_to_fee
415
+ * @param {number} length
416
+ **/
417
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
418
+
419
+ /**
420
+ * Generic runtime api call
421
+ **/
422
+ [method: string]: GenericRuntimeApiMethod;
423
+ };
424
+ /**
425
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
426
+ **/
427
+ transactionPaymentCallApi: {
428
+ /**
429
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
430
+ *
431
+ * @callname: TransactionPaymentCallApi_query_call_info
432
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
433
+ * @param {number} len
434
+ **/
435
+ queryCallInfo: GenericRuntimeApiMethod<
436
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
437
+ >;
438
+
439
+ /**
440
+ * Query fee details of a given encoded `Call`.
441
+ *
442
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
443
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
444
+ * @param {number} len
445
+ **/
446
+ queryCallFeeDetails: GenericRuntimeApiMethod<
447
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
448
+ >;
449
+
450
+ /**
451
+ * Query the output of the current `WeightToFee` given some input.
452
+ *
453
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
454
+ * @param {SpWeightsWeightV2Weight} weight
455
+ **/
456
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
457
+
458
+ /**
459
+ * Query the output of the current `LengthToFee` given some input.
460
+ *
461
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
462
+ * @param {number} length
463
+ **/
464
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
465
+
466
+ /**
467
+ * Generic runtime api call
468
+ **/
469
+ [method: string]: GenericRuntimeApiMethod;
470
+ };
471
+ /**
472
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
473
+ **/
474
+ fungiblesApi: {
475
+ /**
476
+ * Returns the list of all [`Asset`] that an `AccountId` has.
477
+ *
478
+ * @callname: FungiblesApi_query_account_balances
479
+ * @param {AccountId32Like} account
480
+ **/
481
+ queryAccountBalances: GenericRuntimeApiMethod<
482
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
483
+ >;
484
+
485
+ /**
486
+ * Generic runtime api call
487
+ **/
488
+ [method: string]: GenericRuntimeApiMethod;
489
+ };
490
+ /**
491
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
492
+ **/
493
+ collectCollationInfo: {
494
+ /**
495
+ * Collect information about a collation.
496
+ *
497
+ * The given `header` is the header of the built block for that
498
+ * we are collecting the collation info for.
499
+ *
500
+ * @callname: CollectCollationInfo_collect_collation_info
501
+ * @param {Header} header
502
+ **/
503
+ collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
504
+
505
+ /**
506
+ * Generic runtime api call
507
+ **/
508
+ [method: string]: GenericRuntimeApiMethod;
509
+ };
510
+ /**
511
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
512
+ **/
513
+ genesisBuilder: {
514
+ /**
515
+ * Creates the default `RuntimeGenesisConfig` and returns it as a JSON blob.
516
+ *
517
+ * This function instantiates the default `RuntimeGenesisConfig` struct for the runtime and serializes it into a JSON
518
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `RuntimeGenesisConfig`.
519
+ *
520
+ * @callname: GenesisBuilder_create_default_config
521
+ **/
522
+ createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
523
+
524
+ /**
525
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the storage.
526
+ *
527
+ * This function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and puts it into the storage.
528
+ * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
529
+ * It is recommended to log any errors encountered during the process.
530
+ *
531
+ * Please note that provided json blob must contain all `RuntimeGenesisConfig` fields, no defaults will be used.
532
+ *
533
+ * @callname: GenesisBuilder_build_config
534
+ * @param {BytesLike} json
535
+ **/
536
+ buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
537
+
538
+ /**
539
+ * Generic runtime api call
540
+ **/
541
+ [method: string]: GenericRuntimeApiMethod;
542
+ };
428
543
  }