@dedot/chaintypes 0.0.1-alpha.24 → 0.0.1-alpha.26

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