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

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