@dedot/chaintypes 0.0.1-alpha.8 → 0.0.1-next.0

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 (273) hide show
  1. package/cjs/packageInfo.js +1 -1
  2. package/package.json +6 -6
  3. package/packageInfo.js +1 -1
  4. package/aleph/consts.d.ts +0 -533
  5. package/aleph/consts.js +0 -2
  6. package/aleph/errors.d.ts +0 -822
  7. package/aleph/errors.js +0 -2
  8. package/aleph/events.d.ts +0 -997
  9. package/aleph/events.js +0 -2
  10. package/aleph/index.d.ts +0 -19
  11. package/aleph/index.js +0 -3
  12. package/aleph/query.d.ts +0 -1271
  13. package/aleph/query.js +0 -2
  14. package/aleph/rpc.d.ts +0 -575
  15. package/aleph/rpc.js +0 -2
  16. package/aleph/runtime.d.ts +0 -410
  17. package/aleph/runtime.js +0 -2
  18. package/aleph/tx.d.ts +0 -2206
  19. package/aleph/tx.js +0 -2
  20. package/aleph/types.d.ts +0 -5560
  21. package/aleph/types.js +0 -2
  22. package/astar/consts.d.ts +0 -679
  23. package/astar/consts.js +0 -2
  24. package/astar/errors.d.ts +0 -1317
  25. package/astar/errors.js +0 -2
  26. package/astar/events.d.ts +0 -1707
  27. package/astar/events.js +0 -2
  28. package/astar/index.d.ts +0 -19
  29. package/astar/index.js +0 -3
  30. package/astar/query.d.ts +0 -1474
  31. package/astar/query.js +0 -2
  32. package/astar/rpc.d.ts +0 -775
  33. package/astar/rpc.js +0 -2
  34. package/astar/runtime.d.ts +0 -262
  35. package/astar/runtime.js +0 -2
  36. package/astar/tx.d.ts +0 -4810
  37. package/astar/tx.js +0 -2
  38. package/astar/types.d.ts +0 -12338
  39. package/astar/types.js +0 -2
  40. package/cjs/aleph/consts.js +0 -3
  41. package/cjs/aleph/errors.js +0 -3
  42. package/cjs/aleph/events.js +0 -3
  43. package/cjs/aleph/index.js +0 -19
  44. package/cjs/aleph/query.js +0 -3
  45. package/cjs/aleph/rpc.js +0 -3
  46. package/cjs/aleph/runtime.js +0 -3
  47. package/cjs/aleph/tx.js +0 -3
  48. package/cjs/aleph/types.js +0 -3
  49. package/cjs/astar/consts.js +0 -3
  50. package/cjs/astar/errors.js +0 -3
  51. package/cjs/astar/events.js +0 -3
  52. package/cjs/astar/index.js +0 -19
  53. package/cjs/astar/query.js +0 -3
  54. package/cjs/astar/rpc.js +0 -3
  55. package/cjs/astar/runtime.js +0 -3
  56. package/cjs/astar/tx.js +0 -3
  57. package/cjs/astar/types.js +0 -3
  58. package/cjs/kusama/consts.js +0 -3
  59. package/cjs/kusama/errors.js +0 -3
  60. package/cjs/kusama/events.js +0 -3
  61. package/cjs/kusama/index.js +0 -19
  62. package/cjs/kusama/query.js +0 -3
  63. package/cjs/kusama/rpc.js +0 -3
  64. package/cjs/kusama/runtime.js +0 -3
  65. package/cjs/kusama/tx.js +0 -3
  66. package/cjs/kusama/types.js +0 -3
  67. package/cjs/kusamaAssetHub/consts.js +0 -3
  68. package/cjs/kusamaAssetHub/errors.js +0 -3
  69. package/cjs/kusamaAssetHub/events.js +0 -3
  70. package/cjs/kusamaAssetHub/index.js +0 -19
  71. package/cjs/kusamaAssetHub/query.js +0 -3
  72. package/cjs/kusamaAssetHub/rpc.js +0 -3
  73. package/cjs/kusamaAssetHub/runtime.js +0 -3
  74. package/cjs/kusamaAssetHub/tx.js +0 -3
  75. package/cjs/kusamaAssetHub/types.js +0 -3
  76. package/cjs/moonbeam/consts.js +0 -3
  77. package/cjs/moonbeam/errors.js +0 -3
  78. package/cjs/moonbeam/events.js +0 -3
  79. package/cjs/moonbeam/index.js +0 -19
  80. package/cjs/moonbeam/query.js +0 -3
  81. package/cjs/moonbeam/rpc.js +0 -3
  82. package/cjs/moonbeam/runtime.js +0 -3
  83. package/cjs/moonbeam/tx.js +0 -3
  84. package/cjs/moonbeam/types.js +0 -3
  85. package/cjs/polkadot/consts.js +0 -3
  86. package/cjs/polkadot/errors.js +0 -3
  87. package/cjs/polkadot/events.js +0 -3
  88. package/cjs/polkadot/index.js +0 -19
  89. package/cjs/polkadot/query.js +0 -3
  90. package/cjs/polkadot/rpc.js +0 -3
  91. package/cjs/polkadot/runtime.js +0 -3
  92. package/cjs/polkadot/tx.js +0 -3
  93. package/cjs/polkadot/types.js +0 -3
  94. package/cjs/polkadotAssetHub/consts.js +0 -3
  95. package/cjs/polkadotAssetHub/errors.js +0 -3
  96. package/cjs/polkadotAssetHub/events.js +0 -3
  97. package/cjs/polkadotAssetHub/index.js +0 -19
  98. package/cjs/polkadotAssetHub/query.js +0 -3
  99. package/cjs/polkadotAssetHub/rpc.js +0 -3
  100. package/cjs/polkadotAssetHub/runtime.js +0 -3
  101. package/cjs/polkadotAssetHub/tx.js +0 -3
  102. package/cjs/polkadotAssetHub/types.js +0 -3
  103. package/cjs/rococoAssetHub/consts.js +0 -3
  104. package/cjs/rococoAssetHub/errors.js +0 -3
  105. package/cjs/rococoAssetHub/events.js +0 -3
  106. package/cjs/rococoAssetHub/index.js +0 -19
  107. package/cjs/rococoAssetHub/query.js +0 -3
  108. package/cjs/rococoAssetHub/rpc.js +0 -3
  109. package/cjs/rococoAssetHub/runtime.js +0 -3
  110. package/cjs/rococoAssetHub/tx.js +0 -3
  111. package/cjs/rococoAssetHub/types.js +0 -3
  112. package/cjs/substrate/consts.js +0 -3
  113. package/cjs/substrate/errors.js +0 -3
  114. package/cjs/substrate/events.js +0 -3
  115. package/cjs/substrate/index.js +0 -19
  116. package/cjs/substrate/query.js +0 -3
  117. package/cjs/substrate/rpc.js +0 -3
  118. package/cjs/substrate/runtime.js +0 -3
  119. package/cjs/substrate/tx.js +0 -3
  120. package/cjs/substrate/types.js +0 -3
  121. package/cjs/westendAssetHub/consts.js +0 -3
  122. package/cjs/westendAssetHub/errors.js +0 -3
  123. package/cjs/westendAssetHub/events.js +0 -3
  124. package/cjs/westendAssetHub/index.js +0 -19
  125. package/cjs/westendAssetHub/query.js +0 -3
  126. package/cjs/westendAssetHub/rpc.js +0 -3
  127. package/cjs/westendAssetHub/runtime.js +0 -3
  128. package/cjs/westendAssetHub/tx.js +0 -3
  129. package/cjs/westendAssetHub/types.js +0 -3
  130. package/kusama/consts.d.ts +0 -1427
  131. package/kusama/consts.js +0 -2
  132. package/kusama/errors.d.ts +0 -2494
  133. package/kusama/errors.js +0 -2
  134. package/kusama/events.d.ts +0 -2960
  135. package/kusama/events.js +0 -2
  136. package/kusama/index.d.ts +0 -19
  137. package/kusama/index.js +0 -3
  138. package/kusama/query.d.ts +0 -3251
  139. package/kusama/query.js +0 -2
  140. package/kusama/rpc.d.ts +0 -726
  141. package/kusama/rpc.js +0 -2
  142. package/kusama/runtime.d.ts +0 -844
  143. package/kusama/runtime.js +0 -2
  144. package/kusama/tx.d.ts +0 -6014
  145. package/kusama/tx.js +0 -2
  146. package/kusama/types.d.ts +0 -15903
  147. package/kusama/types.js +0 -2
  148. package/kusamaAssetHub/consts.d.ts +0 -632
  149. package/kusamaAssetHub/consts.js +0 -2
  150. package/kusamaAssetHub/errors.d.ts +0 -1164
  151. package/kusamaAssetHub/errors.js +0 -2
  152. package/kusamaAssetHub/events.d.ts +0 -2162
  153. package/kusamaAssetHub/events.js +0 -2
  154. package/kusamaAssetHub/index.d.ts +0 -19
  155. package/kusamaAssetHub/index.js +0 -3
  156. package/kusamaAssetHub/query.d.ts +0 -1301
  157. package/kusamaAssetHub/query.js +0 -2
  158. package/kusamaAssetHub/rpc.d.ts +0 -590
  159. package/kusamaAssetHub/rpc.js +0 -2
  160. package/kusamaAssetHub/runtime.d.ts +0 -402
  161. package/kusamaAssetHub/runtime.js +0 -2
  162. package/kusamaAssetHub/tx.d.ts +0 -4217
  163. package/kusamaAssetHub/tx.js +0 -2
  164. package/kusamaAssetHub/types.d.ts +0 -10418
  165. package/kusamaAssetHub/types.js +0 -2
  166. package/moonbeam/consts.d.ts +0 -961
  167. package/moonbeam/consts.js +0 -2
  168. package/moonbeam/errors.d.ts +0 -1797
  169. package/moonbeam/errors.js +0 -2
  170. package/moonbeam/events.d.ts +0 -2840
  171. package/moonbeam/events.js +0 -2
  172. package/moonbeam/index.d.ts +0 -19
  173. package/moonbeam/index.js +0 -3
  174. package/moonbeam/query.d.ts +0 -2027
  175. package/moonbeam/query.js +0 -2
  176. package/moonbeam/rpc.d.ts +0 -809
  177. package/moonbeam/rpc.js +0 -2
  178. package/moonbeam/runtime.d.ts +0 -506
  179. package/moonbeam/runtime.js +0 -2
  180. package/moonbeam/tx.d.ts +0 -5205
  181. package/moonbeam/tx.js +0 -2
  182. package/moonbeam/types.d.ts +0 -12349
  183. package/moonbeam/types.js +0 -2
  184. package/polkadot/consts.d.ts +0 -1160
  185. package/polkadot/consts.js +0 -2
  186. package/polkadot/errors.d.ts +0 -2020
  187. package/polkadot/errors.js +0 -2
  188. package/polkadot/events.d.ts +0 -2235
  189. package/polkadot/events.js +0 -2
  190. package/polkadot/index.d.ts +0 -19
  191. package/polkadot/index.js +0 -3
  192. package/polkadot/query.d.ts +0 -2811
  193. package/polkadot/query.js +0 -2
  194. package/polkadot/rpc.d.ts +0 -726
  195. package/polkadot/rpc.js +0 -2
  196. package/polkadot/runtime.d.ts +0 -844
  197. package/polkadot/runtime.js +0 -2
  198. package/polkadot/tx.d.ts +0 -5009
  199. package/polkadot/tx.js +0 -2
  200. package/polkadot/types.d.ts +0 -13729
  201. package/polkadot/types.js +0 -2
  202. package/polkadotAssetHub/consts.d.ts +0 -524
  203. package/polkadotAssetHub/consts.js +0 -2
  204. package/polkadotAssetHub/errors.d.ts +0 -925
  205. package/polkadotAssetHub/errors.js +0 -2
  206. package/polkadotAssetHub/events.d.ts +0 -1787
  207. package/polkadotAssetHub/events.js +0 -2
  208. package/polkadotAssetHub/index.d.ts +0 -19
  209. package/polkadotAssetHub/index.js +0 -3
  210. package/polkadotAssetHub/query.d.ts +0 -1222
  211. package/polkadotAssetHub/query.js +0 -2
  212. package/polkadotAssetHub/rpc.d.ts +0 -590
  213. package/polkadotAssetHub/rpc.js +0 -2
  214. package/polkadotAssetHub/runtime.d.ts +0 -359
  215. package/polkadotAssetHub/runtime.js +0 -2
  216. package/polkadotAssetHub/tx.d.ts +0 -3492
  217. package/polkadotAssetHub/tx.js +0 -2
  218. package/polkadotAssetHub/types.d.ts +0 -9164
  219. package/polkadotAssetHub/types.js +0 -2
  220. package/rococoAssetHub/consts.d.ts +0 -658
  221. package/rococoAssetHub/consts.js +0 -2
  222. package/rococoAssetHub/errors.d.ts +0 -1231
  223. package/rococoAssetHub/errors.js +0 -2
  224. package/rococoAssetHub/events.d.ts +0 -2172
  225. package/rococoAssetHub/events.js +0 -2
  226. package/rococoAssetHub/index.d.ts +0 -19
  227. package/rococoAssetHub/index.js +0 -3
  228. package/rococoAssetHub/query.d.ts +0 -1269
  229. package/rococoAssetHub/query.js +0 -2
  230. package/rococoAssetHub/rpc.d.ts +0 -590
  231. package/rococoAssetHub/rpc.js +0 -2
  232. package/rococoAssetHub/runtime.d.ts +0 -428
  233. package/rococoAssetHub/runtime.js +0 -2
  234. package/rococoAssetHub/tx.d.ts +0 -4307
  235. package/rococoAssetHub/tx.js +0 -2
  236. package/rococoAssetHub/types.d.ts +0 -11066
  237. package/rococoAssetHub/types.js +0 -2
  238. package/substrate/consts.d.ts +0 -1971
  239. package/substrate/consts.js +0 -2
  240. package/substrate/errors.d.ts +0 -3337
  241. package/substrate/errors.js +0 -2
  242. package/substrate/events.d.ts +0 -4777
  243. package/substrate/events.js +0 -2
  244. package/substrate/index.d.ts +0 -19
  245. package/substrate/index.js +0 -3
  246. package/substrate/query.d.ts +0 -3350
  247. package/substrate/query.js +0 -2
  248. package/substrate/rpc.d.ts +0 -718
  249. package/substrate/rpc.js +0 -2
  250. package/substrate/runtime.d.ts +0 -708
  251. package/substrate/runtime.js +0 -2
  252. package/substrate/tx.d.ts +0 -8800
  253. package/substrate/tx.js +0 -2
  254. package/substrate/types.d.ts +0 -20332
  255. package/substrate/types.js +0 -2
  256. package/westendAssetHub/consts.d.ts +0 -658
  257. package/westendAssetHub/consts.js +0 -2
  258. package/westendAssetHub/errors.d.ts +0 -1231
  259. package/westendAssetHub/errors.js +0 -2
  260. package/westendAssetHub/events.d.ts +0 -2172
  261. package/westendAssetHub/events.js +0 -2
  262. package/westendAssetHub/index.d.ts +0 -19
  263. package/westendAssetHub/index.js +0 -3
  264. package/westendAssetHub/query.d.ts +0 -1269
  265. package/westendAssetHub/query.js +0 -2
  266. package/westendAssetHub/rpc.d.ts +0 -590
  267. package/westendAssetHub/rpc.js +0 -2
  268. package/westendAssetHub/runtime.d.ts +0 -456
  269. package/westendAssetHub/runtime.js +0 -2
  270. package/westendAssetHub/tx.d.ts +0 -4307
  271. package/westendAssetHub/tx.js +0 -2
  272. package/westendAssetHub/types.d.ts +0 -11062
  273. package/westendAssetHub/types.js +0 -2
@@ -1,402 +0,0 @@
1
- import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
2
- import type { RuntimeVersion, Header, DispatchError, Result, UncheckedExtrinsicLike, UncheckedExtrinsic, H256, Bytes, BytesLike, AccountId32Like } from '@dedot/codecs';
3
- import type { SpConsensusSlotsSlotDuration, SpConsensusAuraSr25519AppSr25519Public, SpRuntimeBlock, SpCoreOpaqueMetadata, SpRuntimeTransactionValidityTransactionValidityError, SpInherentsInherentData, SpInherentsCheckInherentsResult, SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionSource, SpCoreCryptoKeyTypeId, StagingXcmV3MultilocationMultiLocation, PalletTransactionPaymentRuntimeDispatchInfo, PalletTransactionPaymentFeeDetails, SpWeightsWeightV2Weight, AssetHubKusamaRuntimeRuntimeCallLike, XcmVersionedMultiAssets, 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: 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: AssetConversionApi - 0x8a8047a53a8277ec
221
- **/
222
- assetConversionApi: {
223
- /**
224
- * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
225
- *
226
- * Note that the price may have changed by the time the transaction is executed.
227
- * (Use `amount_in_max` to control slippage.)
228
- *
229
- * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
230
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
231
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
232
- * @param {bigint} amount
233
- * @param {boolean} include_fee
234
- **/
235
- quotePriceTokensForExactTokens: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
236
- /**
237
- * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
238
- *
239
- * Note that the price may have changed by the time the transaction is executed.
240
- * (Use `amount_out_min` to control slippage.)
241
- *
242
- * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
243
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
244
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
245
- * @param {bigint} amount
246
- * @param {boolean} include_fee
247
- **/
248
- quotePriceExactTokensForTokens: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation, amount: bigint, includeFee: boolean) => Promise<bigint | undefined>>;
249
- /**
250
- * Returns the size of the liquidity pool for the given asset pair.
251
- *
252
- * @callname: AssetConversionApi_get_reserves
253
- * @param {StagingXcmV3MultilocationMultiLocation} asset1
254
- * @param {StagingXcmV3MultilocationMultiLocation} asset2
255
- **/
256
- getReserves: GenericRuntimeApiMethod<(asset1: StagingXcmV3MultilocationMultiLocation, asset2: StagingXcmV3MultilocationMultiLocation) => Promise<[bigint, bigint] | undefined>>;
257
- /**
258
- * Generic runtime api call
259
- **/
260
- [method: string]: GenericRuntimeApiMethod;
261
- };
262
- /**
263
- * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
264
- **/
265
- transactionPaymentApi: {
266
- /**
267
- *
268
- * @callname: TransactionPaymentApi_query_info
269
- * @param {UncheckedExtrinsicLike} uxt
270
- * @param {number} len
271
- **/
272
- queryInfo: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
273
- /**
274
- *
275
- * @callname: TransactionPaymentApi_query_fee_details
276
- * @param {UncheckedExtrinsicLike} uxt
277
- * @param {number} len
278
- **/
279
- queryFeeDetails: GenericRuntimeApiMethod<(uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
280
- /**
281
- *
282
- * @callname: TransactionPaymentApi_query_weight_to_fee
283
- * @param {SpWeightsWeightV2Weight} weight
284
- **/
285
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
286
- /**
287
- *
288
- * @callname: TransactionPaymentApi_query_length_to_fee
289
- * @param {number} length
290
- **/
291
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
292
- /**
293
- * Generic runtime api call
294
- **/
295
- [method: string]: GenericRuntimeApiMethod;
296
- };
297
- /**
298
- * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
299
- **/
300
- transactionPaymentCallApi: {
301
- /**
302
- * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
303
- *
304
- * @callname: TransactionPaymentCallApi_query_call_info
305
- * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
306
- * @param {number} len
307
- **/
308
- queryCallInfo: GenericRuntimeApiMethod<(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>>;
309
- /**
310
- * Query fee details of a given encoded `Call`.
311
- *
312
- * @callname: TransactionPaymentCallApi_query_call_fee_details
313
- * @param {AssetHubKusamaRuntimeRuntimeCallLike} call
314
- * @param {number} len
315
- **/
316
- queryCallFeeDetails: GenericRuntimeApiMethod<(call: AssetHubKusamaRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>>;
317
- /**
318
- * Query the output of the current `WeightToFee` given some input.
319
- *
320
- * @callname: TransactionPaymentCallApi_query_weight_to_fee
321
- * @param {SpWeightsWeightV2Weight} weight
322
- **/
323
- queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
324
- /**
325
- * Query the output of the current `LengthToFee` given some input.
326
- *
327
- * @callname: TransactionPaymentCallApi_query_length_to_fee
328
- * @param {number} length
329
- **/
330
- queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
331
- /**
332
- * Generic runtime api call
333
- **/
334
- [method: string]: GenericRuntimeApiMethod;
335
- };
336
- /**
337
- * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
338
- **/
339
- fungiblesApi: {
340
- /**
341
- * Returns the list of all [`MultiAsset`] that an `AccountId` has.
342
- *
343
- * @callname: FungiblesApi_query_account_balances
344
- * @param {AccountId32Like} account
345
- **/
346
- queryAccountBalances: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<Result<XcmVersionedMultiAssets, AssetsCommonRuntimeApiFungiblesAccessError>>>;
347
- /**
348
- * Generic runtime api call
349
- **/
350
- [method: string]: GenericRuntimeApiMethod;
351
- };
352
- /**
353
- * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
354
- **/
355
- collectCollationInfo: {
356
- /**
357
- * Collect information about a collation.
358
- *
359
- * The given `header` is the header of the built block for that
360
- * we are collecting the collation info for.
361
- *
362
- * @callname: CollectCollationInfo_collect_collation_info
363
- * @param {Header} header
364
- **/
365
- collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
366
- /**
367
- * Generic runtime api call
368
- **/
369
- [method: string]: GenericRuntimeApiMethod;
370
- };
371
- /**
372
- * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
373
- **/
374
- genesisBuilder: {
375
- /**
376
- * Creates the default `GenesisConfig` and returns it as a JSON blob.
377
- *
378
- * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
379
- * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
380
- *
381
- * @callname: GenesisBuilder_create_default_config
382
- **/
383
- createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
384
- /**
385
- * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
386
- *
387
- * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
388
- * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
389
- * It is recommended to log any errors encountered during the process.
390
- *
391
- * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
392
- *
393
- * @callname: GenesisBuilder_build_config
394
- * @param {BytesLike} json
395
- **/
396
- buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
397
- /**
398
- * Generic runtime api call
399
- **/
400
- [method: string]: GenericRuntimeApiMethod;
401
- };
402
- }
@@ -1,2 +0,0 @@
1
- // Generated by @dedot/codegen
2
- export {};