@dedot/chaintypes 0.0.1-alpha.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +3 -0
  3. package/aleph/consts.d.ts +533 -0
  4. package/aleph/consts.js +2 -0
  5. package/aleph/errors.d.ts +822 -0
  6. package/aleph/errors.js +2 -0
  7. package/aleph/events.d.ts +997 -0
  8. package/aleph/events.js +2 -0
  9. package/aleph/index.d.ts +19 -0
  10. package/aleph/index.js +3 -0
  11. package/aleph/query.d.ts +1271 -0
  12. package/aleph/query.js +2 -0
  13. package/aleph/rpc.d.ts +575 -0
  14. package/aleph/rpc.js +2 -0
  15. package/aleph/runtime.d.ts +410 -0
  16. package/aleph/runtime.js +2 -0
  17. package/aleph/tx.d.ts +2206 -0
  18. package/aleph/tx.js +2 -0
  19. package/aleph/types.d.ts +5560 -0
  20. package/aleph/types.js +2 -0
  21. package/astar/consts.d.ts +679 -0
  22. package/astar/consts.js +2 -0
  23. package/astar/errors.d.ts +1317 -0
  24. package/astar/errors.js +2 -0
  25. package/astar/events.d.ts +1707 -0
  26. package/astar/events.js +2 -0
  27. package/astar/index.d.ts +19 -0
  28. package/astar/index.js +3 -0
  29. package/astar/query.d.ts +1474 -0
  30. package/astar/query.js +2 -0
  31. package/astar/rpc.d.ts +775 -0
  32. package/astar/rpc.js +2 -0
  33. package/astar/runtime.d.ts +262 -0
  34. package/astar/runtime.js +2 -0
  35. package/astar/tx.d.ts +4810 -0
  36. package/astar/tx.js +2 -0
  37. package/astar/types.d.ts +12338 -0
  38. package/astar/types.js +2 -0
  39. package/cjs/aleph/consts.js +3 -0
  40. package/cjs/aleph/errors.js +3 -0
  41. package/cjs/aleph/events.js +3 -0
  42. package/cjs/aleph/index.js +19 -0
  43. package/cjs/aleph/query.js +3 -0
  44. package/cjs/aleph/rpc.js +3 -0
  45. package/cjs/aleph/runtime.js +3 -0
  46. package/cjs/aleph/tx.js +3 -0
  47. package/cjs/aleph/types.js +3 -0
  48. package/cjs/astar/consts.js +3 -0
  49. package/cjs/astar/errors.js +3 -0
  50. package/cjs/astar/events.js +3 -0
  51. package/cjs/astar/index.js +19 -0
  52. package/cjs/astar/query.js +3 -0
  53. package/cjs/astar/rpc.js +3 -0
  54. package/cjs/astar/runtime.js +3 -0
  55. package/cjs/astar/tx.js +3 -0
  56. package/cjs/astar/types.js +3 -0
  57. package/cjs/index.js +2 -0
  58. package/cjs/kusama/consts.js +3 -0
  59. package/cjs/kusama/errors.js +3 -0
  60. package/cjs/kusama/events.js +3 -0
  61. package/cjs/kusama/index.js +19 -0
  62. package/cjs/kusama/query.js +3 -0
  63. package/cjs/kusama/rpc.js +3 -0
  64. package/cjs/kusama/runtime.js +3 -0
  65. package/cjs/kusama/tx.js +3 -0
  66. package/cjs/kusama/types.js +3 -0
  67. package/cjs/kusamaAssetHub/consts.js +3 -0
  68. package/cjs/kusamaAssetHub/errors.js +3 -0
  69. package/cjs/kusamaAssetHub/events.js +3 -0
  70. package/cjs/kusamaAssetHub/index.js +19 -0
  71. package/cjs/kusamaAssetHub/query.js +3 -0
  72. package/cjs/kusamaAssetHub/rpc.js +3 -0
  73. package/cjs/kusamaAssetHub/runtime.js +3 -0
  74. package/cjs/kusamaAssetHub/tx.js +3 -0
  75. package/cjs/kusamaAssetHub/types.js +3 -0
  76. package/cjs/moonbeam/consts.js +3 -0
  77. package/cjs/moonbeam/errors.js +3 -0
  78. package/cjs/moonbeam/events.js +3 -0
  79. package/cjs/moonbeam/index.js +19 -0
  80. package/cjs/moonbeam/query.js +3 -0
  81. package/cjs/moonbeam/rpc.js +3 -0
  82. package/cjs/moonbeam/runtime.js +3 -0
  83. package/cjs/moonbeam/tx.js +3 -0
  84. package/cjs/moonbeam/types.js +3 -0
  85. package/cjs/package.json +1 -0
  86. package/cjs/packageInfo.js +5 -0
  87. package/cjs/polkadot/consts.js +3 -0
  88. package/cjs/polkadot/errors.js +3 -0
  89. package/cjs/polkadot/events.js +3 -0
  90. package/cjs/polkadot/index.js +19 -0
  91. package/cjs/polkadot/query.js +3 -0
  92. package/cjs/polkadot/rpc.js +3 -0
  93. package/cjs/polkadot/runtime.js +3 -0
  94. package/cjs/polkadot/tx.js +3 -0
  95. package/cjs/polkadot/types.js +3 -0
  96. package/cjs/polkadotAssetHub/consts.js +3 -0
  97. package/cjs/polkadotAssetHub/errors.js +3 -0
  98. package/cjs/polkadotAssetHub/events.js +3 -0
  99. package/cjs/polkadotAssetHub/index.js +19 -0
  100. package/cjs/polkadotAssetHub/query.js +3 -0
  101. package/cjs/polkadotAssetHub/rpc.js +3 -0
  102. package/cjs/polkadotAssetHub/runtime.js +3 -0
  103. package/cjs/polkadotAssetHub/tx.js +3 -0
  104. package/cjs/polkadotAssetHub/types.js +3 -0
  105. package/cjs/rococoAssetHub/consts.js +3 -0
  106. package/cjs/rococoAssetHub/errors.js +3 -0
  107. package/cjs/rococoAssetHub/events.js +3 -0
  108. package/cjs/rococoAssetHub/index.js +19 -0
  109. package/cjs/rococoAssetHub/query.js +3 -0
  110. package/cjs/rococoAssetHub/rpc.js +3 -0
  111. package/cjs/rococoAssetHub/runtime.js +3 -0
  112. package/cjs/rococoAssetHub/tx.js +3 -0
  113. package/cjs/rococoAssetHub/types.js +3 -0
  114. package/cjs/substrate/consts.js +3 -0
  115. package/cjs/substrate/errors.js +3 -0
  116. package/cjs/substrate/events.js +3 -0
  117. package/cjs/substrate/index.js +19 -0
  118. package/cjs/substrate/query.js +3 -0
  119. package/cjs/substrate/rpc.js +3 -0
  120. package/cjs/substrate/runtime.js +3 -0
  121. package/cjs/substrate/tx.js +3 -0
  122. package/cjs/substrate/types.js +3 -0
  123. package/cjs/westendAssetHub/consts.js +3 -0
  124. package/cjs/westendAssetHub/errors.js +3 -0
  125. package/cjs/westendAssetHub/events.js +3 -0
  126. package/cjs/westendAssetHub/index.js +19 -0
  127. package/cjs/westendAssetHub/query.js +3 -0
  128. package/cjs/westendAssetHub/rpc.js +3 -0
  129. package/cjs/westendAssetHub/runtime.js +3 -0
  130. package/cjs/westendAssetHub/tx.js +3 -0
  131. package/cjs/westendAssetHub/types.js +3 -0
  132. package/index.d.ts +5 -0
  133. package/index.js +1 -0
  134. package/kusama/consts.d.ts +1427 -0
  135. package/kusama/consts.js +2 -0
  136. package/kusama/errors.d.ts +2494 -0
  137. package/kusama/errors.js +2 -0
  138. package/kusama/events.d.ts +2960 -0
  139. package/kusama/events.js +2 -0
  140. package/kusama/index.d.ts +19 -0
  141. package/kusama/index.js +3 -0
  142. package/kusama/query.d.ts +3251 -0
  143. package/kusama/query.js +2 -0
  144. package/kusama/rpc.d.ts +726 -0
  145. package/kusama/rpc.js +2 -0
  146. package/kusama/runtime.d.ts +844 -0
  147. package/kusama/runtime.js +2 -0
  148. package/kusama/tx.d.ts +6014 -0
  149. package/kusama/tx.js +2 -0
  150. package/kusama/types.d.ts +15903 -0
  151. package/kusama/types.js +2 -0
  152. package/kusamaAssetHub/consts.d.ts +632 -0
  153. package/kusamaAssetHub/consts.js +2 -0
  154. package/kusamaAssetHub/errors.d.ts +1164 -0
  155. package/kusamaAssetHub/errors.js +2 -0
  156. package/kusamaAssetHub/events.d.ts +2162 -0
  157. package/kusamaAssetHub/events.js +2 -0
  158. package/kusamaAssetHub/index.d.ts +19 -0
  159. package/kusamaAssetHub/index.js +3 -0
  160. package/kusamaAssetHub/query.d.ts +1301 -0
  161. package/kusamaAssetHub/query.js +2 -0
  162. package/kusamaAssetHub/rpc.d.ts +590 -0
  163. package/kusamaAssetHub/rpc.js +2 -0
  164. package/kusamaAssetHub/runtime.d.ts +402 -0
  165. package/kusamaAssetHub/runtime.js +2 -0
  166. package/kusamaAssetHub/tx.d.ts +4217 -0
  167. package/kusamaAssetHub/tx.js +2 -0
  168. package/kusamaAssetHub/types.d.ts +10418 -0
  169. package/kusamaAssetHub/types.js +2 -0
  170. package/moonbeam/consts.d.ts +961 -0
  171. package/moonbeam/consts.js +2 -0
  172. package/moonbeam/errors.d.ts +1797 -0
  173. package/moonbeam/errors.js +2 -0
  174. package/moonbeam/events.d.ts +2840 -0
  175. package/moonbeam/events.js +2 -0
  176. package/moonbeam/index.d.ts +19 -0
  177. package/moonbeam/index.js +3 -0
  178. package/moonbeam/query.d.ts +2027 -0
  179. package/moonbeam/query.js +2 -0
  180. package/moonbeam/rpc.d.ts +809 -0
  181. package/moonbeam/rpc.js +2 -0
  182. package/moonbeam/runtime.d.ts +506 -0
  183. package/moonbeam/runtime.js +2 -0
  184. package/moonbeam/tx.d.ts +5205 -0
  185. package/moonbeam/tx.js +2 -0
  186. package/moonbeam/types.d.ts +12349 -0
  187. package/moonbeam/types.js +2 -0
  188. package/package.json +33 -0
  189. package/packageInfo.d.ts +4 -0
  190. package/packageInfo.js +3 -0
  191. package/polkadot/consts.d.ts +1160 -0
  192. package/polkadot/consts.js +2 -0
  193. package/polkadot/errors.d.ts +2020 -0
  194. package/polkadot/errors.js +2 -0
  195. package/polkadot/events.d.ts +2235 -0
  196. package/polkadot/events.js +2 -0
  197. package/polkadot/index.d.ts +19 -0
  198. package/polkadot/index.js +3 -0
  199. package/polkadot/query.d.ts +2811 -0
  200. package/polkadot/query.js +2 -0
  201. package/polkadot/rpc.d.ts +726 -0
  202. package/polkadot/rpc.js +2 -0
  203. package/polkadot/runtime.d.ts +844 -0
  204. package/polkadot/runtime.js +2 -0
  205. package/polkadot/tx.d.ts +5009 -0
  206. package/polkadot/tx.js +2 -0
  207. package/polkadot/types.d.ts +13729 -0
  208. package/polkadot/types.js +2 -0
  209. package/polkadotAssetHub/consts.d.ts +524 -0
  210. package/polkadotAssetHub/consts.js +2 -0
  211. package/polkadotAssetHub/errors.d.ts +925 -0
  212. package/polkadotAssetHub/errors.js +2 -0
  213. package/polkadotAssetHub/events.d.ts +1787 -0
  214. package/polkadotAssetHub/events.js +2 -0
  215. package/polkadotAssetHub/index.d.ts +19 -0
  216. package/polkadotAssetHub/index.js +3 -0
  217. package/polkadotAssetHub/query.d.ts +1222 -0
  218. package/polkadotAssetHub/query.js +2 -0
  219. package/polkadotAssetHub/rpc.d.ts +590 -0
  220. package/polkadotAssetHub/rpc.js +2 -0
  221. package/polkadotAssetHub/runtime.d.ts +359 -0
  222. package/polkadotAssetHub/runtime.js +2 -0
  223. package/polkadotAssetHub/tx.d.ts +3492 -0
  224. package/polkadotAssetHub/tx.js +2 -0
  225. package/polkadotAssetHub/types.d.ts +9164 -0
  226. package/polkadotAssetHub/types.js +2 -0
  227. package/rococoAssetHub/consts.d.ts +658 -0
  228. package/rococoAssetHub/consts.js +2 -0
  229. package/rococoAssetHub/errors.d.ts +1231 -0
  230. package/rococoAssetHub/errors.js +2 -0
  231. package/rococoAssetHub/events.d.ts +2172 -0
  232. package/rococoAssetHub/events.js +2 -0
  233. package/rococoAssetHub/index.d.ts +19 -0
  234. package/rococoAssetHub/index.js +3 -0
  235. package/rococoAssetHub/query.d.ts +1269 -0
  236. package/rococoAssetHub/query.js +2 -0
  237. package/rococoAssetHub/rpc.d.ts +590 -0
  238. package/rococoAssetHub/rpc.js +2 -0
  239. package/rococoAssetHub/runtime.d.ts +428 -0
  240. package/rococoAssetHub/runtime.js +2 -0
  241. package/rococoAssetHub/tx.d.ts +4307 -0
  242. package/rococoAssetHub/tx.js +2 -0
  243. package/rococoAssetHub/types.d.ts +11066 -0
  244. package/rococoAssetHub/types.js +2 -0
  245. package/substrate/consts.d.ts +1971 -0
  246. package/substrate/consts.js +2 -0
  247. package/substrate/errors.d.ts +3337 -0
  248. package/substrate/errors.js +2 -0
  249. package/substrate/events.d.ts +4777 -0
  250. package/substrate/events.js +2 -0
  251. package/substrate/index.d.ts +19 -0
  252. package/substrate/index.js +3 -0
  253. package/substrate/query.d.ts +3350 -0
  254. package/substrate/query.js +2 -0
  255. package/substrate/rpc.d.ts +718 -0
  256. package/substrate/rpc.js +2 -0
  257. package/substrate/runtime.d.ts +708 -0
  258. package/substrate/runtime.js +2 -0
  259. package/substrate/tx.d.ts +8800 -0
  260. package/substrate/tx.js +2 -0
  261. package/substrate/types.d.ts +20332 -0
  262. package/substrate/types.js +2 -0
  263. package/westendAssetHub/consts.d.ts +658 -0
  264. package/westendAssetHub/consts.js +2 -0
  265. package/westendAssetHub/errors.d.ts +1231 -0
  266. package/westendAssetHub/errors.js +2 -0
  267. package/westendAssetHub/events.d.ts +2172 -0
  268. package/westendAssetHub/events.js +2 -0
  269. package/westendAssetHub/index.d.ts +19 -0
  270. package/westendAssetHub/index.js +3 -0
  271. package/westendAssetHub/query.d.ts +1269 -0
  272. package/westendAssetHub/query.js +2 -0
  273. package/westendAssetHub/rpc.d.ts +590 -0
  274. package/westendAssetHub/rpc.js +2 -0
  275. package/westendAssetHub/runtime.d.ts +456 -0
  276. package/westendAssetHub/runtime.js +2 -0
  277. package/westendAssetHub/tx.d.ts +4307 -0
  278. package/westendAssetHub/tx.js +2 -0
  279. package/westendAssetHub/types.d.ts +11062 -0
  280. package/westendAssetHub/types.js +2 -0
@@ -0,0 +1,428 @@
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
+ };
428
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by @dedot/codegen
2
+ export {};