@dedot/chaintypes 0.0.1-alpha.100

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 (105) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +5 -0
  3. package/aleph/consts.d.ts +676 -0
  4. package/aleph/errors.d.ts +1054 -0
  5. package/aleph/events.d.ts +1201 -0
  6. package/aleph/index.d.ts +27 -0
  7. package/aleph/json-rpc.d.ts +85 -0
  8. package/aleph/query.d.ts +1573 -0
  9. package/aleph/runtime.d.ts +596 -0
  10. package/aleph/tx.d.ts +3440 -0
  11. package/aleph/types.d.ts +3951 -0
  12. package/astar/consts.d.ts +737 -0
  13. package/astar/errors.d.ts +1508 -0
  14. package/astar/events.d.ts +1878 -0
  15. package/astar/index.d.ts +27 -0
  16. package/astar/json-rpc.d.ts +131 -0
  17. package/astar/query.d.ts +1851 -0
  18. package/astar/runtime.d.ts +803 -0
  19. package/astar/tx.d.ts +4516 -0
  20. package/astar/types.d.ts +6141 -0
  21. package/index.d.ts +11 -0
  22. package/index.js +1 -0
  23. package/index.ts +11 -0
  24. package/kusama/consts.d.ts +1578 -0
  25. package/kusama/errors.d.ts +3152 -0
  26. package/kusama/events.d.ts +3579 -0
  27. package/kusama/index.d.ts +27 -0
  28. package/kusama/json-rpc.d.ts +103 -0
  29. package/kusama/query.d.ts +4229 -0
  30. package/kusama/runtime.d.ts +1196 -0
  31. package/kusama/tx.d.ts +9040 -0
  32. package/kusama/types.d.ts +11369 -0
  33. package/kusamaAssetHub/consts.d.ts +759 -0
  34. package/kusamaAssetHub/errors.d.ts +1494 -0
  35. package/kusamaAssetHub/events.d.ts +2491 -0
  36. package/kusamaAssetHub/index.d.ts +27 -0
  37. package/kusamaAssetHub/json-rpc.d.ts +89 -0
  38. package/kusamaAssetHub/query.d.ts +1662 -0
  39. package/kusamaAssetHub/runtime.d.ts +555 -0
  40. package/kusamaAssetHub/tx.d.ts +6192 -0
  41. package/kusamaAssetHub/types.d.ts +6831 -0
  42. package/moonbeam/consts.d.ts +1010 -0
  43. package/moonbeam/errors.d.ts +1932 -0
  44. package/moonbeam/events.d.ts +2928 -0
  45. package/moonbeam/index.d.ts +27 -0
  46. package/moonbeam/json-rpc.d.ts +137 -0
  47. package/moonbeam/query.d.ts +2282 -0
  48. package/moonbeam/runtime.d.ts +724 -0
  49. package/moonbeam/tx.d.ts +6222 -0
  50. package/moonbeam/types.d.ts +8165 -0
  51. package/package.json +25 -0
  52. package/polkadot/consts.d.ts +1313 -0
  53. package/polkadot/errors.d.ts +2575 -0
  54. package/polkadot/events.d.ts +2757 -0
  55. package/polkadot/index.d.ts +27 -0
  56. package/polkadot/json-rpc.d.ts +103 -0
  57. package/polkadot/query.d.ts +3693 -0
  58. package/polkadot/runtime.d.ts +1196 -0
  59. package/polkadot/tx.d.ts +7706 -0
  60. package/polkadot/types.d.ts +9893 -0
  61. package/polkadotAssetHub/consts.d.ts +724 -0
  62. package/polkadotAssetHub/errors.d.ts +1465 -0
  63. package/polkadotAssetHub/events.d.ts +2462 -0
  64. package/polkadotAssetHub/index.d.ts +27 -0
  65. package/polkadotAssetHub/json-rpc.d.ts +89 -0
  66. package/polkadotAssetHub/query.d.ts +1640 -0
  67. package/polkadotAssetHub/runtime.d.ts +558 -0
  68. package/polkadotAssetHub/tx.d.ts +6121 -0
  69. package/polkadotAssetHub/types.d.ts +6739 -0
  70. package/rococo/consts.d.ts +1423 -0
  71. package/rococo/errors.d.ts +2783 -0
  72. package/rococo/events.d.ts +3361 -0
  73. package/rococo/index.d.ts +27 -0
  74. package/rococo/json-rpc.d.ts +103 -0
  75. package/rococo/query.d.ts +3561 -0
  76. package/rococo/runtime.d.ts +1257 -0
  77. package/rococo/tx.d.ts +10721 -0
  78. package/rococo/types.d.ts +14828 -0
  79. package/rococoAssetHub/consts.d.ts +787 -0
  80. package/rococoAssetHub/errors.d.ts +1523 -0
  81. package/rococoAssetHub/events.d.ts +2517 -0
  82. package/rococoAssetHub/index.d.ts +27 -0
  83. package/rococoAssetHub/json-rpc.d.ts +89 -0
  84. package/rococoAssetHub/query.d.ts +1682 -0
  85. package/rococoAssetHub/runtime.d.ts +704 -0
  86. package/rococoAssetHub/tx.d.ts +9013 -0
  87. package/rococoAssetHub/types.d.ts +12352 -0
  88. package/substrate/consts.d.ts +2223 -0
  89. package/substrate/errors.d.ts +4023 -0
  90. package/substrate/events.d.ts +5430 -0
  91. package/substrate/index.d.ts +27 -0
  92. package/substrate/json-rpc.d.ts +101 -0
  93. package/substrate/query.d.ts +4083 -0
  94. package/substrate/runtime.d.ts +971 -0
  95. package/substrate/tx.d.ts +12501 -0
  96. package/substrate/types.d.ts +13380 -0
  97. package/westendAssetHub/consts.d.ts +787 -0
  98. package/westendAssetHub/errors.d.ts +1523 -0
  99. package/westendAssetHub/events.d.ts +2477 -0
  100. package/westendAssetHub/index.d.ts +27 -0
  101. package/westendAssetHub/json-rpc.d.ts +89 -0
  102. package/westendAssetHub/query.d.ts +1656 -0
  103. package/westendAssetHub/runtime.d.ts +652 -0
  104. package/westendAssetHub/tx.d.ts +8984 -0
  105. package/westendAssetHub/types.d.ts +12292 -0
@@ -0,0 +1,652 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ H256,
6
+ RuntimeVersion,
7
+ Header,
8
+ DispatchError,
9
+ Result,
10
+ UncheckedExtrinsicLike,
11
+ UncheckedExtrinsic,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ 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
+
40
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
41
+ /**
42
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
43
+ **/
44
+ auraApi: {
45
+ /**
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<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
53
+
54
+ /**
55
+ * Return the current set of authorities.
56
+ *
57
+ * @callname: AuraApi_authorities
58
+ **/
59
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
60
+
61
+ /**
62
+ * Generic runtime api call
63
+ **/
64
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
87
+
88
+ /**
89
+ * Generic runtime api call
90
+ **/
91
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, () => Promise<RuntimeVersion>>;
103
+
104
+ /**
105
+ * Execute the given block.
106
+ *
107
+ * @callname: Core_execute_block
108
+ * @param {SpRuntimeBlock} block
109
+ **/
110
+ executeBlock: GenericRuntimeApiMethod<Rv, (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<Rv, (header: Header) => Promise<SpRuntimeExtrinsicInclusionMode>>;
119
+
120
+ /**
121
+ * Generic runtime api call
122
+ **/
123
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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<Rv, () => 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<Rv, (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<Rv, () => Promise<Array<number>>>;
155
+
156
+ /**
157
+ * Generic runtime api call
158
+ **/
159
+ [method: string]: GenericRuntimeApiMethod<Rv>;
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
+ Rv,
176
+ (
177
+ extrinsic: UncheckedExtrinsicLike,
178
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
179
+ >;
180
+
181
+ /**
182
+ * Finish the current block.
183
+ *
184
+ * @callname: BlockBuilder_finalize_block
185
+ **/
186
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
187
+
188
+ /**
189
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
190
+ *
191
+ * @callname: BlockBuilder_inherent_extrinsics
192
+ * @param {SpInherentsInherentData} inherent
193
+ **/
194
+ inherentExtrinsics: GenericRuntimeApiMethod<
195
+ Rv,
196
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
197
+ >;
198
+
199
+ /**
200
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
201
+ *
202
+ * @callname: BlockBuilder_check_inherents
203
+ * @param {SpRuntimeBlock} block
204
+ * @param {SpInherentsInherentData} data
205
+ **/
206
+ checkInherents: GenericRuntimeApiMethod<
207
+ Rv,
208
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
209
+ >;
210
+
211
+ /**
212
+ * Generic runtime api call
213
+ **/
214
+ [method: string]: GenericRuntimeApiMethod<Rv>;
215
+ };
216
+ /**
217
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
218
+ **/
219
+ taggedTransactionQueue: {
220
+ /**
221
+ * Validate the transaction.
222
+ *
223
+ * This method is invoked by the transaction pool to learn details about given transaction.
224
+ * The implementation should make sure to verify the correctness of the transaction
225
+ * against current state. The given `block_hash` corresponds to the hash of the block
226
+ * that is used as current state.
227
+ *
228
+ * Note that this call may be performed by the pool multiple times and transactions
229
+ * might be verified in any possible order.
230
+ *
231
+ * @callname: TaggedTransactionQueue_validate_transaction
232
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
233
+ * @param {UncheckedExtrinsicLike} tx
234
+ * @param {H256} block_hash
235
+ **/
236
+ validateTransaction: GenericRuntimeApiMethod<
237
+ Rv,
238
+ (
239
+ source: SpRuntimeTransactionValidityTransactionSource,
240
+ tx: UncheckedExtrinsicLike,
241
+ blockHash: H256,
242
+ ) => Promise<
243
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
244
+ >
245
+ >;
246
+
247
+ /**
248
+ * Generic runtime api call
249
+ **/
250
+ [method: string]: GenericRuntimeApiMethod<Rv>;
251
+ };
252
+ /**
253
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
254
+ **/
255
+ offchainWorkerApi: {
256
+ /**
257
+ * Starts the off-chain task for given block header.
258
+ *
259
+ * @callname: OffchainWorkerApi_offchain_worker
260
+ * @param {Header} header
261
+ **/
262
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
263
+
264
+ /**
265
+ * Generic runtime api call
266
+ **/
267
+ [method: string]: GenericRuntimeApiMethod<Rv>;
268
+ };
269
+ /**
270
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
271
+ **/
272
+ sessionKeys: {
273
+ /**
274
+ * Generate a set of session keys with optionally using the given seed.
275
+ * The keys should be stored within the keystore exposed via runtime
276
+ * externalities.
277
+ *
278
+ * The seed needs to be a valid `utf8` string.
279
+ *
280
+ * Returns the concatenated SCALE encoded public keys.
281
+ *
282
+ * @callname: SessionKeys_generate_session_keys
283
+ * @param {BytesLike | undefined} seed
284
+ **/
285
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
286
+
287
+ /**
288
+ * Decode the given public session keys.
289
+ *
290
+ * Returns the list of public raw public keys + key type.
291
+ *
292
+ * @callname: SessionKeys_decode_session_keys
293
+ * @param {BytesLike} encoded
294
+ **/
295
+ decodeSessionKeys: GenericRuntimeApiMethod<
296
+ Rv,
297
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
298
+ >;
299
+
300
+ /**
301
+ * Generic runtime api call
302
+ **/
303
+ [method: string]: GenericRuntimeApiMethod<Rv>;
304
+ };
305
+ /**
306
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
307
+ **/
308
+ accountNonceApi: {
309
+ /**
310
+ * Get current account nonce of given `AccountId`.
311
+ *
312
+ * @callname: AccountNonceApi_account_nonce
313
+ * @param {AccountId32Like} account
314
+ **/
315
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
316
+
317
+ /**
318
+ * Generic runtime api call
319
+ **/
320
+ [method: string]: GenericRuntimeApiMethod<Rv>;
321
+ };
322
+ /**
323
+ * @runtimeapi: NftsApi - 0x899a250cbe84f250
324
+ **/
325
+ nftsApi: {
326
+ /**
327
+ *
328
+ * @callname: NftsApi_owner
329
+ * @param {number} collection
330
+ * @param {number} item
331
+ **/
332
+ owner: GenericRuntimeApiMethod<Rv, (collection: number, item: number) => Promise<AccountId32 | undefined>>;
333
+
334
+ /**
335
+ *
336
+ * @callname: NftsApi_collection_owner
337
+ * @param {number} collection
338
+ **/
339
+ collectionOwner: GenericRuntimeApiMethod<Rv, (collection: number) => Promise<AccountId32 | undefined>>;
340
+
341
+ /**
342
+ *
343
+ * @callname: NftsApi_attribute
344
+ * @param {number} collection
345
+ * @param {number} item
346
+ * @param {BytesLike} key
347
+ **/
348
+ attribute: GenericRuntimeApiMethod<
349
+ Rv,
350
+ (collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
351
+ >;
352
+
353
+ /**
354
+ *
355
+ * @callname: NftsApi_custom_attribute
356
+ * @param {AccountId32Like} account
357
+ * @param {number} collection
358
+ * @param {number} item
359
+ * @param {BytesLike} key
360
+ **/
361
+ customAttribute: GenericRuntimeApiMethod<
362
+ Rv,
363
+ (account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
364
+ >;
365
+
366
+ /**
367
+ *
368
+ * @callname: NftsApi_system_attribute
369
+ * @param {number} collection
370
+ * @param {number | undefined} item
371
+ * @param {BytesLike} key
372
+ **/
373
+ systemAttribute: GenericRuntimeApiMethod<
374
+ Rv,
375
+ (collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>
376
+ >;
377
+
378
+ /**
379
+ *
380
+ * @callname: NftsApi_collection_attribute
381
+ * @param {number} collection
382
+ * @param {BytesLike} key
383
+ **/
384
+ collectionAttribute: GenericRuntimeApiMethod<
385
+ Rv,
386
+ (collection: number, key: BytesLike) => Promise<Bytes | undefined>
387
+ >;
388
+
389
+ /**
390
+ * Generic runtime api call
391
+ **/
392
+ [method: string]: GenericRuntimeApiMethod<Rv>;
393
+ };
394
+ /**
395
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
396
+ **/
397
+ assetConversionApi: {
398
+ /**
399
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
400
+ *
401
+ * Note that the price may have changed by the time the transaction is executed.
402
+ * (Use `amount_in_max` to control slippage.)
403
+ *
404
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
405
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
406
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
407
+ * @param {bigint} amount
408
+ * @param {boolean} include_fee
409
+ **/
410
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
411
+ Rv,
412
+ (
413
+ asset1: StagingXcmV3MultilocationMultiLocation,
414
+ asset2: StagingXcmV3MultilocationMultiLocation,
415
+ amount: bigint,
416
+ includeFee: boolean,
417
+ ) => Promise<bigint | undefined>
418
+ >;
419
+
420
+ /**
421
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
422
+ *
423
+ * Note that the price may have changed by the time the transaction is executed.
424
+ * (Use `amount_out_min` to control slippage.)
425
+ *
426
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
427
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
428
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
429
+ * @param {bigint} amount
430
+ * @param {boolean} include_fee
431
+ **/
432
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
433
+ Rv,
434
+ (
435
+ asset1: StagingXcmV3MultilocationMultiLocation,
436
+ asset2: StagingXcmV3MultilocationMultiLocation,
437
+ amount: bigint,
438
+ includeFee: boolean,
439
+ ) => Promise<bigint | undefined>
440
+ >;
441
+
442
+ /**
443
+ * Returns the size of the liquidity pool for the given asset pair.
444
+ *
445
+ * @callname: AssetConversionApi_get_reserves
446
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
447
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
448
+ **/
449
+ getReserves: GenericRuntimeApiMethod<
450
+ Rv,
451
+ (
452
+ asset1: StagingXcmV3MultilocationMultiLocation,
453
+ asset2: StagingXcmV3MultilocationMultiLocation,
454
+ ) => Promise<[bigint, bigint] | undefined>
455
+ >;
456
+
457
+ /**
458
+ * Generic runtime api call
459
+ **/
460
+ [method: string]: GenericRuntimeApiMethod<Rv>;
461
+ };
462
+ /**
463
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
464
+ **/
465
+ transactionPaymentApi: {
466
+ /**
467
+ *
468
+ * @callname: TransactionPaymentApi_query_info
469
+ * @param {UncheckedExtrinsicLike} uxt
470
+ * @param {number} len
471
+ **/
472
+ queryInfo: GenericRuntimeApiMethod<
473
+ Rv,
474
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
475
+ >;
476
+
477
+ /**
478
+ *
479
+ * @callname: TransactionPaymentApi_query_fee_details
480
+ * @param {UncheckedExtrinsicLike} uxt
481
+ * @param {number} len
482
+ **/
483
+ queryFeeDetails: GenericRuntimeApiMethod<
484
+ Rv,
485
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
486
+ >;
487
+
488
+ /**
489
+ *
490
+ * @callname: TransactionPaymentApi_query_weight_to_fee
491
+ * @param {SpWeightsWeightV2Weight} weight
492
+ **/
493
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
494
+
495
+ /**
496
+ *
497
+ * @callname: TransactionPaymentApi_query_length_to_fee
498
+ * @param {number} length
499
+ **/
500
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
501
+
502
+ /**
503
+ * Generic runtime api call
504
+ **/
505
+ [method: string]: GenericRuntimeApiMethod<Rv>;
506
+ };
507
+ /**
508
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
509
+ **/
510
+ transactionPaymentCallApi: {
511
+ /**
512
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
513
+ *
514
+ * @callname: TransactionPaymentCallApi_query_call_info
515
+ * @param {AssetHubWestendRuntimeRuntimeCallLike} call
516
+ * @param {number} len
517
+ **/
518
+ queryCallInfo: GenericRuntimeApiMethod<
519
+ Rv,
520
+ (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
521
+ >;
522
+
523
+ /**
524
+ * Query fee details of a given encoded `Call`.
525
+ *
526
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
527
+ * @param {AssetHubWestendRuntimeRuntimeCallLike} call
528
+ * @param {number} len
529
+ **/
530
+ queryCallFeeDetails: GenericRuntimeApiMethod<
531
+ Rv,
532
+ (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
533
+ >;
534
+
535
+ /**
536
+ * Query the output of the current `WeightToFee` given some input.
537
+ *
538
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
539
+ * @param {SpWeightsWeightV2Weight} weight
540
+ **/
541
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
542
+
543
+ /**
544
+ * Query the output of the current `LengthToFee` given some input.
545
+ *
546
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
547
+ * @param {number} length
548
+ **/
549
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
550
+
551
+ /**
552
+ * Generic runtime api call
553
+ **/
554
+ [method: string]: GenericRuntimeApiMethod<Rv>;
555
+ };
556
+ /**
557
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
558
+ **/
559
+ fungiblesApi: {
560
+ /**
561
+ * Returns the list of all [`Asset`] that an `AccountId` has.
562
+ *
563
+ * @callname: FungiblesApi_query_account_balances
564
+ * @param {AccountId32Like} account
565
+ **/
566
+ queryAccountBalances: GenericRuntimeApiMethod<
567
+ Rv,
568
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
569
+ >;
570
+
571
+ /**
572
+ * Generic runtime api call
573
+ **/
574
+ [method: string]: GenericRuntimeApiMethod<Rv>;
575
+ };
576
+ /**
577
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
578
+ **/
579
+ collectCollationInfo: {
580
+ /**
581
+ * Collect information about a collation.
582
+ *
583
+ * The given `header` is the header of the built block for that
584
+ * we are collecting the collation info for.
585
+ *
586
+ * @callname: CollectCollationInfo_collect_collation_info
587
+ * @param {Header} header
588
+ **/
589
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
590
+
591
+ /**
592
+ * Generic runtime api call
593
+ **/
594
+ [method: string]: GenericRuntimeApiMethod<Rv>;
595
+ };
596
+ /**
597
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
598
+ **/
599
+ genesisBuilder: {
600
+ /**
601
+ * Build `RuntimeGenesisConfig` from a JSON blob not using any defaults and store it in the
602
+ * storage.
603
+ *
604
+ * In the case of a FRAME-based runtime, this function deserializes the full `RuntimeGenesisConfig` from the given JSON blob and
605
+ * puts it into the storage. If the provided JSON blob is incorrect or incomplete or the
606
+ * deserialization fails, an error is returned.
607
+ *
608
+ * Please note that provided JSON blob must contain all `RuntimeGenesisConfig` fields, no
609
+ * defaults will be used.
610
+ *
611
+ * @callname: GenesisBuilder_build_state
612
+ * @param {BytesLike} json
613
+ **/
614
+ buildState: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
615
+
616
+ /**
617
+ * Returns a JSON blob representation of the built-in `RuntimeGenesisConfig` identified by
618
+ * `id`.
619
+ *
620
+ * If `id` is `None` the function returns JSON blob representation of the default
621
+ * `RuntimeGenesisConfig` struct of the runtime. Implementation must provide default
622
+ * `RuntimeGenesisConfig`.
623
+ *
624
+ * Otherwise function returns a JSON representation of the built-in, named
625
+ * `RuntimeGenesisConfig` preset identified by `id`, or `None` if such preset does not
626
+ * exists. Returned `Vec<u8>` contains bytes of JSON blob (patch) which comprises a list of
627
+ * (potentially nested) key-value pairs that are intended for customizing the default
628
+ * runtime genesis config. The patch shall be merged (rfc7386) with the JSON representation
629
+ * of the default `RuntimeGenesisConfig` to create a comprehensive genesis config that can
630
+ * be used in `build_state` method.
631
+ *
632
+ * @callname: GenesisBuilder_get_preset
633
+ * @param {string | undefined} id
634
+ **/
635
+ getPreset: GenericRuntimeApiMethod<Rv, (id?: string | undefined) => Promise<Bytes | undefined>>;
636
+
637
+ /**
638
+ * Returns a list of identifiers for available builtin `RuntimeGenesisConfig` presets.
639
+ *
640
+ * The presets from the list can be queried with [`GenesisBuilder::get_preset`] method. If
641
+ * no named presets are provided by the runtime the list is empty.
642
+ *
643
+ * @callname: GenesisBuilder_preset_names
644
+ **/
645
+ presetNames: GenericRuntimeApiMethod<Rv, () => Promise<Array<string>>>;
646
+
647
+ /**
648
+ * Generic runtime api call
649
+ **/
650
+ [method: string]: GenericRuntimeApiMethod<Rv>;
651
+ };
652
+ }