@dedot/chaintypes 0.0.1-alpha.8 → 0.0.1-alpha.80

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 (298) hide show
  1. package/README.md +3 -1
  2. package/aleph/consts.d.ts +675 -532
  3. package/aleph/errors.d.ts +1053 -821
  4. package/aleph/events.d.ts +1144 -940
  5. package/aleph/index.d.ts +19 -11
  6. package/aleph/json-rpc.d.ts +85 -0
  7. package/aleph/query.d.ts +1572 -1270
  8. package/aleph/runtime.d.ts +595 -409
  9. package/aleph/tx.d.ts +3439 -2205
  10. package/aleph/types.d.ts +3756 -5365
  11. package/astar/consts.d.ts +694 -678
  12. package/astar/errors.d.ts +1468 -1316
  13. package/astar/events.d.ts +1745 -1630
  14. package/astar/index.d.ts +19 -11
  15. package/astar/json-rpc.d.ts +82 -0
  16. package/astar/query.d.ts +1761 -1473
  17. package/astar/runtime.d.ts +769 -261
  18. package/astar/tx.d.ts +4423 -4809
  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 +1577 -1426
  23. package/kusama/errors.d.ts +3151 -2493
  24. package/kusama/events.d.ts +3323 -2704
  25. package/kusama/index.d.ts +19 -11
  26. package/kusama/json-rpc.d.ts +103 -0
  27. package/kusama/query.d.ts +4228 -3250
  28. package/kusama/runtime.d.ts +1195 -843
  29. package/kusama/tx.d.ts +9039 -6013
  30. package/kusama/types.d.ts +10866 -15400
  31. package/kusamaAssetHub/consts.d.ts +758 -631
  32. package/kusamaAssetHub/errors.d.ts +1493 -1163
  33. package/kusamaAssetHub/events.d.ts +2369 -2040
  34. package/kusamaAssetHub/index.d.ts +19 -11
  35. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  36. package/kusamaAssetHub/query.d.ts +1661 -1300
  37. package/kusamaAssetHub/runtime.d.ts +554 -401
  38. package/kusamaAssetHub/tx.d.ts +6191 -4216
  39. package/kusamaAssetHub/types.d.ts +6551 -10138
  40. package/moonbeam/consts.d.ts +1022 -960
  41. package/moonbeam/errors.d.ts +1938 -1796
  42. package/moonbeam/events.d.ts +2832 -2685
  43. package/moonbeam/index.d.ts +19 -11
  44. package/moonbeam/json-rpc.d.ts +137 -0
  45. package/moonbeam/query.d.ts +2396 -2026
  46. package/moonbeam/runtime.d.ts +686 -505
  47. package/moonbeam/tx.d.ts +6368 -5204
  48. package/moonbeam/types.d.ts +7782 -12033
  49. package/package.json +8 -16
  50. package/polkadot/consts.d.ts +1312 -1159
  51. package/polkadot/errors.d.ts +2574 -2019
  52. package/polkadot/events.d.ts +2591 -2069
  53. package/polkadot/index.d.ts +19 -11
  54. package/polkadot/json-rpc.d.ts +103 -0
  55. package/polkadot/query.d.ts +3692 -2810
  56. package/polkadot/runtime.d.ts +1195 -843
  57. package/polkadot/tx.d.ts +7705 -5008
  58. package/polkadot/types.d.ts +9490 -13326
  59. package/polkadotAssetHub/consts.d.ts +723 -523
  60. package/polkadotAssetHub/errors.d.ts +1464 -924
  61. package/polkadotAssetHub/events.d.ts +2346 -1671
  62. package/polkadotAssetHub/index.d.ts +19 -11
  63. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  64. package/polkadotAssetHub/query.d.ts +1639 -1221
  65. package/polkadotAssetHub/runtime.d.ts +557 -358
  66. package/polkadotAssetHub/tx.d.ts +6120 -3491
  67. package/polkadotAssetHub/types.d.ts +6474 -8899
  68. package/rococo/consts.d.ts +1423 -0
  69. package/rococo/errors.d.ts +2783 -0
  70. package/rococo/events.d.ts +3361 -0
  71. package/rococo/index.d.ts +27 -0
  72. package/rococo/json-rpc.d.ts +103 -0
  73. package/rococo/query.d.ts +3535 -0
  74. package/rococo/runtime.d.ts +1217 -0
  75. package/rococo/tx.d.ts +10657 -0
  76. package/rococo/types.d.ts +14776 -0
  77. package/rococoAssetHub/consts.d.ts +820 -657
  78. package/rococoAssetHub/errors.d.ts +1567 -1230
  79. package/rococoAssetHub/events.d.ts +2382 -2040
  80. package/rococoAssetHub/index.d.ts +19 -11
  81. package/rococoAssetHub/json-rpc.d.ts +89 -0
  82. package/rococoAssetHub/query.d.ts +1694 -1268
  83. package/rococoAssetHub/runtime.d.ts +578 -427
  84. package/rococoAssetHub/tx.d.ts +9171 -4306
  85. package/rococoAssetHub/types.d.ts +12252 -10796
  86. package/substrate/consts.d.ts +2222 -1970
  87. package/substrate/errors.d.ts +4022 -3336
  88. package/substrate/events.d.ts +4924 -4271
  89. package/substrate/index.d.ts +19 -11
  90. package/substrate/json-rpc.d.ts +101 -0
  91. package/substrate/query.d.ts +4082 -3349
  92. package/substrate/runtime.d.ts +970 -707
  93. package/substrate/tx.d.ts +12500 -8799
  94. package/substrate/types.d.ts +12809 -19761
  95. package/westendAssetHub/consts.d.ts +786 -657
  96. package/westendAssetHub/errors.d.ts +1522 -1230
  97. package/westendAssetHub/events.d.ts +2345 -2040
  98. package/westendAssetHub/index.d.ts +19 -11
  99. package/westendAssetHub/json-rpc.d.ts +89 -0
  100. package/westendAssetHub/query.d.ts +1655 -1268
  101. package/westendAssetHub/runtime.d.ts +651 -455
  102. package/westendAssetHub/tx.d.ts +8983 -4306
  103. package/westendAssetHub/types.d.ts +12027 -10797
  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.d.ts +0 -575
  110. package/aleph/rpc.js +0 -2
  111. package/aleph/runtime.js +0 -2
  112. package/aleph/tx.js +0 -2
  113. package/aleph/types.js +0 -2
  114. package/astar/consts.js +0 -2
  115. package/astar/errors.js +0 -2
  116. package/astar/events.js +0 -2
  117. package/astar/index.js +0 -3
  118. package/astar/query.js +0 -2
  119. package/astar/rpc.d.ts +0 -775
  120. package/astar/rpc.js +0 -2
  121. package/astar/runtime.js +0 -2
  122. package/astar/tx.js +0 -2
  123. package/astar/types.js +0 -2
  124. package/cjs/aleph/consts.js +0 -3
  125. package/cjs/aleph/errors.js +0 -3
  126. package/cjs/aleph/events.js +0 -3
  127. package/cjs/aleph/index.js +0 -19
  128. package/cjs/aleph/query.js +0 -3
  129. package/cjs/aleph/rpc.js +0 -3
  130. package/cjs/aleph/runtime.js +0 -3
  131. package/cjs/aleph/tx.js +0 -3
  132. package/cjs/aleph/types.js +0 -3
  133. package/cjs/astar/consts.js +0 -3
  134. package/cjs/astar/errors.js +0 -3
  135. package/cjs/astar/events.js +0 -3
  136. package/cjs/astar/index.js +0 -19
  137. package/cjs/astar/query.js +0 -3
  138. package/cjs/astar/rpc.js +0 -3
  139. package/cjs/astar/runtime.js +0 -3
  140. package/cjs/astar/tx.js +0 -3
  141. package/cjs/astar/types.js +0 -3
  142. package/cjs/index.js +0 -2
  143. package/cjs/kusama/consts.js +0 -3
  144. package/cjs/kusama/errors.js +0 -3
  145. package/cjs/kusama/events.js +0 -3
  146. package/cjs/kusama/index.js +0 -19
  147. package/cjs/kusama/query.js +0 -3
  148. package/cjs/kusama/rpc.js +0 -3
  149. package/cjs/kusama/runtime.js +0 -3
  150. package/cjs/kusama/tx.js +0 -3
  151. package/cjs/kusama/types.js +0 -3
  152. package/cjs/kusamaAssetHub/consts.js +0 -3
  153. package/cjs/kusamaAssetHub/errors.js +0 -3
  154. package/cjs/kusamaAssetHub/events.js +0 -3
  155. package/cjs/kusamaAssetHub/index.js +0 -19
  156. package/cjs/kusamaAssetHub/query.js +0 -3
  157. package/cjs/kusamaAssetHub/rpc.js +0 -3
  158. package/cjs/kusamaAssetHub/runtime.js +0 -3
  159. package/cjs/kusamaAssetHub/tx.js +0 -3
  160. package/cjs/kusamaAssetHub/types.js +0 -3
  161. package/cjs/moonbeam/consts.js +0 -3
  162. package/cjs/moonbeam/errors.js +0 -3
  163. package/cjs/moonbeam/events.js +0 -3
  164. package/cjs/moonbeam/index.js +0 -19
  165. package/cjs/moonbeam/query.js +0 -3
  166. package/cjs/moonbeam/rpc.js +0 -3
  167. package/cjs/moonbeam/runtime.js +0 -3
  168. package/cjs/moonbeam/tx.js +0 -3
  169. package/cjs/moonbeam/types.js +0 -3
  170. package/cjs/package.json +0 -1
  171. package/cjs/packageInfo.js +0 -5
  172. package/cjs/polkadot/consts.js +0 -3
  173. package/cjs/polkadot/errors.js +0 -3
  174. package/cjs/polkadot/events.js +0 -3
  175. package/cjs/polkadot/index.js +0 -19
  176. package/cjs/polkadot/query.js +0 -3
  177. package/cjs/polkadot/rpc.js +0 -3
  178. package/cjs/polkadot/runtime.js +0 -3
  179. package/cjs/polkadot/tx.js +0 -3
  180. package/cjs/polkadot/types.js +0 -3
  181. package/cjs/polkadotAssetHub/consts.js +0 -3
  182. package/cjs/polkadotAssetHub/errors.js +0 -3
  183. package/cjs/polkadotAssetHub/events.js +0 -3
  184. package/cjs/polkadotAssetHub/index.js +0 -19
  185. package/cjs/polkadotAssetHub/query.js +0 -3
  186. package/cjs/polkadotAssetHub/rpc.js +0 -3
  187. package/cjs/polkadotAssetHub/runtime.js +0 -3
  188. package/cjs/polkadotAssetHub/tx.js +0 -3
  189. package/cjs/polkadotAssetHub/types.js +0 -3
  190. package/cjs/rococoAssetHub/consts.js +0 -3
  191. package/cjs/rococoAssetHub/errors.js +0 -3
  192. package/cjs/rococoAssetHub/events.js +0 -3
  193. package/cjs/rococoAssetHub/index.js +0 -19
  194. package/cjs/rococoAssetHub/query.js +0 -3
  195. package/cjs/rococoAssetHub/rpc.js +0 -3
  196. package/cjs/rococoAssetHub/runtime.js +0 -3
  197. package/cjs/rococoAssetHub/tx.js +0 -3
  198. package/cjs/rococoAssetHub/types.js +0 -3
  199. package/cjs/substrate/consts.js +0 -3
  200. package/cjs/substrate/errors.js +0 -3
  201. package/cjs/substrate/events.js +0 -3
  202. package/cjs/substrate/index.js +0 -19
  203. package/cjs/substrate/query.js +0 -3
  204. package/cjs/substrate/rpc.js +0 -3
  205. package/cjs/substrate/runtime.js +0 -3
  206. package/cjs/substrate/tx.js +0 -3
  207. package/cjs/substrate/types.js +0 -3
  208. package/cjs/westendAssetHub/consts.js +0 -3
  209. package/cjs/westendAssetHub/errors.js +0 -3
  210. package/cjs/westendAssetHub/events.js +0 -3
  211. package/cjs/westendAssetHub/index.js +0 -19
  212. package/cjs/westendAssetHub/query.js +0 -3
  213. package/cjs/westendAssetHub/rpc.js +0 -3
  214. package/cjs/westendAssetHub/runtime.js +0 -3
  215. package/cjs/westendAssetHub/tx.js +0 -3
  216. package/cjs/westendAssetHub/types.js +0 -3
  217. package/kusama/consts.js +0 -2
  218. package/kusama/errors.js +0 -2
  219. package/kusama/events.js +0 -2
  220. package/kusama/index.js +0 -3
  221. package/kusama/query.js +0 -2
  222. package/kusama/rpc.d.ts +0 -726
  223. package/kusama/rpc.js +0 -2
  224. package/kusama/runtime.js +0 -2
  225. package/kusama/tx.js +0 -2
  226. package/kusama/types.js +0 -2
  227. package/kusamaAssetHub/consts.js +0 -2
  228. package/kusamaAssetHub/errors.js +0 -2
  229. package/kusamaAssetHub/events.js +0 -2
  230. package/kusamaAssetHub/index.js +0 -3
  231. package/kusamaAssetHub/query.js +0 -2
  232. package/kusamaAssetHub/rpc.d.ts +0 -590
  233. package/kusamaAssetHub/rpc.js +0 -2
  234. package/kusamaAssetHub/runtime.js +0 -2
  235. package/kusamaAssetHub/tx.js +0 -2
  236. package/kusamaAssetHub/types.js +0 -2
  237. package/moonbeam/consts.js +0 -2
  238. package/moonbeam/errors.js +0 -2
  239. package/moonbeam/events.js +0 -2
  240. package/moonbeam/index.js +0 -3
  241. package/moonbeam/query.js +0 -2
  242. package/moonbeam/rpc.d.ts +0 -809
  243. package/moonbeam/rpc.js +0 -2
  244. package/moonbeam/runtime.js +0 -2
  245. package/moonbeam/tx.js +0 -2
  246. package/moonbeam/types.js +0 -2
  247. package/packageInfo.d.ts +0 -4
  248. package/packageInfo.js +0 -2
  249. package/polkadot/consts.js +0 -2
  250. package/polkadot/errors.js +0 -2
  251. package/polkadot/events.js +0 -2
  252. package/polkadot/index.js +0 -3
  253. package/polkadot/query.js +0 -2
  254. package/polkadot/rpc.d.ts +0 -726
  255. package/polkadot/rpc.js +0 -2
  256. package/polkadot/runtime.js +0 -2
  257. package/polkadot/tx.js +0 -2
  258. package/polkadot/types.js +0 -2
  259. package/polkadotAssetHub/consts.js +0 -2
  260. package/polkadotAssetHub/errors.js +0 -2
  261. package/polkadotAssetHub/events.js +0 -2
  262. package/polkadotAssetHub/index.js +0 -3
  263. package/polkadotAssetHub/query.js +0 -2
  264. package/polkadotAssetHub/rpc.d.ts +0 -590
  265. package/polkadotAssetHub/rpc.js +0 -2
  266. package/polkadotAssetHub/runtime.js +0 -2
  267. package/polkadotAssetHub/tx.js +0 -2
  268. package/polkadotAssetHub/types.js +0 -2
  269. package/rococoAssetHub/consts.js +0 -2
  270. package/rococoAssetHub/errors.js +0 -2
  271. package/rococoAssetHub/events.js +0 -2
  272. package/rococoAssetHub/index.js +0 -3
  273. package/rococoAssetHub/query.js +0 -2
  274. package/rococoAssetHub/rpc.d.ts +0 -590
  275. package/rococoAssetHub/rpc.js +0 -2
  276. package/rococoAssetHub/runtime.js +0 -2
  277. package/rococoAssetHub/tx.js +0 -2
  278. package/rococoAssetHub/types.js +0 -2
  279. package/substrate/consts.js +0 -2
  280. package/substrate/errors.js +0 -2
  281. package/substrate/events.js +0 -2
  282. package/substrate/index.js +0 -3
  283. package/substrate/query.js +0 -2
  284. package/substrate/rpc.d.ts +0 -718
  285. package/substrate/rpc.js +0 -2
  286. package/substrate/runtime.js +0 -2
  287. package/substrate/tx.js +0 -2
  288. package/substrate/types.js +0 -2
  289. package/westendAssetHub/consts.js +0 -2
  290. package/westendAssetHub/errors.js +0 -2
  291. package/westendAssetHub/events.js +0 -2
  292. package/westendAssetHub/index.js +0 -3
  293. package/westendAssetHub/query.js +0 -2
  294. package/westendAssetHub/rpc.d.ts +0 -590
  295. package/westendAssetHub/rpc.js +0 -2
  296. package/westendAssetHub/runtime.js +0 -2
  297. package/westendAssetHub/tx.js +0 -2
  298. package/westendAssetHub/types.js +0 -2
@@ -1,428 +1,579 @@
1
- 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
- export interface RuntimeApis extends GenericRuntimeApis {
5
- /**
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
- };
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/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
+
39
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
40
+ /**
41
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
42
+ **/
43
+ auraApi: {
44
+ /**
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<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
52
+
53
+ /**
54
+ * Return the current set of authorities.
55
+ *
56
+ * @callname: AuraApi_authorities
57
+ **/
58
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
59
+
60
+ /**
61
+ * Generic runtime api call
62
+ **/
63
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
86
+
87
+ /**
88
+ * Generic runtime api call
89
+ **/
90
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, () => Promise<RuntimeVersion>>;
102
+
103
+ /**
104
+ * Execute the given block.
105
+ *
106
+ * @callname: Core_execute_block
107
+ * @param {SpRuntimeBlock} block
108
+ **/
109
+ executeBlock: GenericRuntimeApiMethod<Rv, (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<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
118
+
119
+ /**
120
+ * Generic runtime api call
121
+ **/
122
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, () => 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<Rv, (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<Rv, () => Promise<Array<number>>>;
154
+
155
+ /**
156
+ * Generic runtime api call
157
+ **/
158
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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
+ Rv,
175
+ (
176
+ extrinsic: UncheckedExtrinsicLike,
177
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
178
+ >;
179
+
180
+ /**
181
+ * Finish the current block.
182
+ *
183
+ * @callname: BlockBuilder_finalize_block
184
+ **/
185
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
186
+
187
+ /**
188
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
189
+ *
190
+ * @callname: BlockBuilder_inherent_extrinsics
191
+ * @param {SpInherentsInherentData} inherent
192
+ **/
193
+ inherentExtrinsics: GenericRuntimeApiMethod<
194
+ Rv,
195
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
196
+ >;
197
+
198
+ /**
199
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
200
+ *
201
+ * @callname: BlockBuilder_check_inherents
202
+ * @param {SpRuntimeBlock} block
203
+ * @param {SpInherentsInherentData} data
204
+ **/
205
+ checkInherents: GenericRuntimeApiMethod<
206
+ Rv,
207
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
208
+ >;
209
+
210
+ /**
211
+ * Generic runtime api call
212
+ **/
213
+ [method: string]: GenericRuntimeApiMethod<Rv>;
214
+ };
215
+ /**
216
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
217
+ **/
218
+ taggedTransactionQueue: {
219
+ /**
220
+ * Validate the transaction.
221
+ *
222
+ * This method is invoked by the transaction pool to learn details about given transaction.
223
+ * The implementation should make sure to verify the correctness of the transaction
224
+ * against current state. The given `block_hash` corresponds to the hash of the block
225
+ * that is used as current state.
226
+ *
227
+ * Note that this call may be performed by the pool multiple times and transactions
228
+ * might be verified in any possible order.
229
+ *
230
+ * @callname: TaggedTransactionQueue_validate_transaction
231
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
232
+ * @param {UncheckedExtrinsicLike} tx
233
+ * @param {H256} block_hash
234
+ **/
235
+ validateTransaction: GenericRuntimeApiMethod<
236
+ Rv,
237
+ (
238
+ source: SpRuntimeTransactionValidityTransactionSource,
239
+ tx: UncheckedExtrinsicLike,
240
+ blockHash: H256,
241
+ ) => Promise<
242
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
243
+ >
244
+ >;
245
+
246
+ /**
247
+ * Generic runtime api call
248
+ **/
249
+ [method: string]: GenericRuntimeApiMethod<Rv>;
250
+ };
251
+ /**
252
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
253
+ **/
254
+ offchainWorkerApi: {
255
+ /**
256
+ * Starts the off-chain task for given block header.
257
+ *
258
+ * @callname: OffchainWorkerApi_offchain_worker
259
+ * @param {Header} header
260
+ **/
261
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
262
+
263
+ /**
264
+ * Generic runtime api call
265
+ **/
266
+ [method: string]: GenericRuntimeApiMethod<Rv>;
267
+ };
268
+ /**
269
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
270
+ **/
271
+ sessionKeys: {
272
+ /**
273
+ * Generate a set of session keys with optionally using the given seed.
274
+ * The keys should be stored within the keystore exposed via runtime
275
+ * externalities.
276
+ *
277
+ * The seed needs to be a valid `utf8` string.
278
+ *
279
+ * Returns the concatenated SCALE encoded public keys.
280
+ *
281
+ * @callname: SessionKeys_generate_session_keys
282
+ * @param {BytesLike | undefined} seed
283
+ **/
284
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
285
+
286
+ /**
287
+ * Decode the given public session keys.
288
+ *
289
+ * Returns the list of public raw public keys + key type.
290
+ *
291
+ * @callname: SessionKeys_decode_session_keys
292
+ * @param {BytesLike} encoded
293
+ **/
294
+ decodeSessionKeys: GenericRuntimeApiMethod<
295
+ Rv,
296
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
297
+ >;
298
+
299
+ /**
300
+ * Generic runtime api call
301
+ **/
302
+ [method: string]: GenericRuntimeApiMethod<Rv>;
303
+ };
304
+ /**
305
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
306
+ **/
307
+ accountNonceApi: {
308
+ /**
309
+ * Get current account nonce of given `AccountId`.
310
+ *
311
+ * @callname: AccountNonceApi_account_nonce
312
+ * @param {AccountId32Like} account
313
+ **/
314
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
315
+
316
+ /**
317
+ * Generic runtime api call
318
+ **/
319
+ [method: string]: GenericRuntimeApiMethod<Rv>;
320
+ };
321
+ /**
322
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
323
+ **/
324
+ assetConversionApi: {
325
+ /**
326
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
327
+ *
328
+ * Note that the price may have changed by the time the transaction is executed.
329
+ * (Use `amount_in_max` to control slippage.)
330
+ *
331
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
332
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
333
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
334
+ * @param {bigint} amount
335
+ * @param {boolean} include_fee
336
+ **/
337
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
338
+ Rv,
339
+ (
340
+ asset1: StagingXcmV3MultilocationMultiLocation,
341
+ asset2: StagingXcmV3MultilocationMultiLocation,
342
+ amount: bigint,
343
+ includeFee: boolean,
344
+ ) => Promise<bigint | undefined>
345
+ >;
346
+
347
+ /**
348
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
349
+ *
350
+ * Note that the price may have changed by the time the transaction is executed.
351
+ * (Use `amount_out_min` to control slippage.)
352
+ *
353
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
354
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
355
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
356
+ * @param {bigint} amount
357
+ * @param {boolean} include_fee
358
+ **/
359
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
360
+ Rv,
361
+ (
362
+ asset1: StagingXcmV3MultilocationMultiLocation,
363
+ asset2: StagingXcmV3MultilocationMultiLocation,
364
+ amount: bigint,
365
+ includeFee: boolean,
366
+ ) => Promise<bigint | undefined>
367
+ >;
368
+
369
+ /**
370
+ * Returns the size of the liquidity pool for the given asset pair.
371
+ *
372
+ * @callname: AssetConversionApi_get_reserves
373
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
374
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
375
+ **/
376
+ getReserves: GenericRuntimeApiMethod<
377
+ Rv,
378
+ (
379
+ asset1: StagingXcmV3MultilocationMultiLocation,
380
+ asset2: StagingXcmV3MultilocationMultiLocation,
381
+ ) => Promise<[bigint, bigint] | undefined>
382
+ >;
383
+
384
+ /**
385
+ * Generic runtime api call
386
+ **/
387
+ [method: string]: GenericRuntimeApiMethod<Rv>;
388
+ };
389
+ /**
390
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
391
+ **/
392
+ transactionPaymentApi: {
393
+ /**
394
+ *
395
+ * @callname: TransactionPaymentApi_query_info
396
+ * @param {UncheckedExtrinsicLike} uxt
397
+ * @param {number} len
398
+ **/
399
+ queryInfo: GenericRuntimeApiMethod<
400
+ Rv,
401
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
402
+ >;
403
+
404
+ /**
405
+ *
406
+ * @callname: TransactionPaymentApi_query_fee_details
407
+ * @param {UncheckedExtrinsicLike} uxt
408
+ * @param {number} len
409
+ **/
410
+ queryFeeDetails: GenericRuntimeApiMethod<
411
+ Rv,
412
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
413
+ >;
414
+
415
+ /**
416
+ *
417
+ * @callname: TransactionPaymentApi_query_weight_to_fee
418
+ * @param {SpWeightsWeightV2Weight} weight
419
+ **/
420
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
421
+
422
+ /**
423
+ *
424
+ * @callname: TransactionPaymentApi_query_length_to_fee
425
+ * @param {number} length
426
+ **/
427
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
428
+
429
+ /**
430
+ * Generic runtime api call
431
+ **/
432
+ [method: string]: GenericRuntimeApiMethod<Rv>;
433
+ };
434
+ /**
435
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
436
+ **/
437
+ transactionPaymentCallApi: {
438
+ /**
439
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
440
+ *
441
+ * @callname: TransactionPaymentCallApi_query_call_info
442
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
443
+ * @param {number} len
444
+ **/
445
+ queryCallInfo: GenericRuntimeApiMethod<
446
+ Rv,
447
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
448
+ >;
449
+
450
+ /**
451
+ * Query fee details of a given encoded `Call`.
452
+ *
453
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
454
+ * @param {AssetHubRococoRuntimeRuntimeCallLike} call
455
+ * @param {number} len
456
+ **/
457
+ queryCallFeeDetails: GenericRuntimeApiMethod<
458
+ Rv,
459
+ (call: AssetHubRococoRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
460
+ >;
461
+
462
+ /**
463
+ * Query the output of the current `WeightToFee` given some input.
464
+ *
465
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
466
+ * @param {SpWeightsWeightV2Weight} weight
467
+ **/
468
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
469
+
470
+ /**
471
+ * Query the output of the current `LengthToFee` given some input.
472
+ *
473
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
474
+ * @param {number} length
475
+ **/
476
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
477
+
478
+ /**
479
+ * Generic runtime api call
480
+ **/
481
+ [method: string]: GenericRuntimeApiMethod<Rv>;
482
+ };
483
+ /**
484
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
485
+ **/
486
+ fungiblesApi: {
487
+ /**
488
+ * Returns the list of all [`Asset`] that an `AccountId` has.
489
+ *
490
+ * @callname: FungiblesApi_query_account_balances
491
+ * @param {AccountId32Like} account
492
+ **/
493
+ queryAccountBalances: GenericRuntimeApiMethod<
494
+ Rv,
495
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
496
+ >;
497
+
498
+ /**
499
+ * Generic runtime api call
500
+ **/
501
+ [method: string]: GenericRuntimeApiMethod<Rv>;
502
+ };
503
+ /**
504
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
505
+ **/
506
+ collectCollationInfo: {
507
+ /**
508
+ * Collect information about a collation.
509
+ *
510
+ * The given `header` is the header of the built block for that
511
+ * we are collecting the collation info for.
512
+ *
513
+ * @callname: CollectCollationInfo_collect_collation_info
514
+ * @param {Header} header
515
+ **/
516
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
517
+
518
+ /**
519
+ * Generic runtime api call
520
+ **/
521
+ [method: string]: GenericRuntimeApiMethod<Rv>;
522
+ };
523
+ /**
524
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
525
+ **/
526
+ genesisBuilder: {
527
+ /**
528
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
529
+ * storage.
530
+ *
531
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
532
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
533
+ * deserialization fails, an error is returned.
534
+ *
535
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
536
+ * defaults will be used.
537
+ *
538
+ * @callname: GenesisBuilder_build_state
539
+ * @param {BytesLike} json
540
+ **/
541
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
542
+
543
+ /**
544
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
545
+ * `id`.
546
+ *
547
+ * If `id` is `None` the function returns JSON blob representation of the default
548
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
549
+ * `RuntimeGenesisConfig`.
550
+ *
551
+ * Otherwise function returns a JSON representation of the built-in, named
552
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
553
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
554
+ * (potentially nested) key-value pairs that are intended for customizing the default
555
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
556
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
557
+ * be used in `build_state` method.
558
+ *
559
+ * @callname: GenesisBuilder_get_preset
560
+ * @param {string | undefined} id
561
+ **/
562
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
563
+
564
+ /**
565
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
566
+ *
567
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
568
+ * no named presets are provided by the runtime the list is empty.
569
+ *
570
+ * @callname: GenesisBuilder_preset_names
571
+ **/
572
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
573
+
574
+ /**
575
+ * Generic runtime api call
576
+ **/
577
+ [method: string]: GenericRuntimeApiMethod<Rv>;
578
+ };
428
579
  }