@dedot/chaintypes 0.0.1-next.0 → 0.0.1-next.3

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 (96) hide show
  1. package/aleph/consts.d.ts +595 -0
  2. package/aleph/errors.d.ts +985 -0
  3. package/aleph/events.d.ts +984 -0
  4. package/aleph/index.d.ts +22 -0
  5. package/aleph/query.d.ts +1480 -0
  6. package/aleph/rpc.d.ts +727 -0
  7. package/aleph/runtime.d.ts +545 -0
  8. package/aleph/tx.d.ts +2668 -0
  9. package/aleph/types.d.ts +3646 -0
  10. package/astar/consts.d.ts +758 -0
  11. package/astar/errors.d.ts +1580 -0
  12. package/astar/events.d.ts +1788 -0
  13. package/astar/index.d.ts +22 -0
  14. package/astar/query.d.ts +1759 -0
  15. package/astar/rpc.d.ts +974 -0
  16. package/astar/runtime.d.ts +314 -0
  17. package/astar/tx.d.ts +5478 -0
  18. package/astar/types.d.ts +9078 -0
  19. package/index.ts +10 -0
  20. package/kusama/consts.d.ts +1578 -0
  21. package/kusama/errors.d.ts +2999 -0
  22. package/kusama/events.d.ts +3233 -0
  23. package/kusama/index.d.ts +22 -0
  24. package/kusama/query.d.ts +3831 -0
  25. package/kusama/rpc.d.ts +904 -0
  26. package/kusama/runtime.d.ts +1134 -0
  27. package/kusama/tx.d.ts +7077 -0
  28. package/kusama/types.d.ts +10710 -0
  29. package/kusamaAssetHub/consts.d.ts +719 -0
  30. package/kusamaAssetHub/errors.d.ts +1409 -0
  31. package/kusamaAssetHub/events.d.ts +2251 -0
  32. package/kusamaAssetHub/index.d.ts +22 -0
  33. package/kusamaAssetHub/query.d.ts +1554 -0
  34. package/kusamaAssetHub/rpc.d.ts +746 -0
  35. package/kusamaAssetHub/runtime.d.ts +514 -0
  36. package/kusamaAssetHub/tx.d.ts +5055 -0
  37. package/kusamaAssetHub/types.d.ts +6385 -0
  38. package/moonbeam/consts.d.ts +1080 -0
  39. package/moonbeam/errors.d.ts +2135 -0
  40. package/moonbeam/events.d.ts +3091 -0
  41. package/moonbeam/index.d.ts +22 -0
  42. package/moonbeam/query.d.ts +2394 -0
  43. package/moonbeam/rpc.d.ts +1015 -0
  44. package/moonbeam/runtime.d.ts +669 -0
  45. package/moonbeam/tx.d.ts +6156 -0
  46. package/moonbeam/types.d.ts +8045 -0
  47. package/package.json +9 -8
  48. package/packageInfo.ts +3 -0
  49. package/polkadot/consts.d.ts +1277 -0
  50. package/polkadot/errors.d.ts +2424 -0
  51. package/polkadot/events.d.ts +2457 -0
  52. package/polkadot/index.d.ts +22 -0
  53. package/polkadot/query.d.ts +3322 -0
  54. package/polkadot/rpc.d.ts +904 -0
  55. package/polkadot/runtime.d.ts +1134 -0
  56. package/polkadot/tx.d.ts +5913 -0
  57. package/polkadot/types.d.ts +9181 -0
  58. package/polkadotAssetHub/consts.d.ts +591 -0
  59. package/polkadotAssetHub/errors.d.ts +1119 -0
  60. package/polkadotAssetHub/events.d.ts +1855 -0
  61. package/polkadotAssetHub/index.d.ts +22 -0
  62. package/polkadotAssetHub/query.d.ts +1460 -0
  63. package/polkadotAssetHub/rpc.d.ts +746 -0
  64. package/polkadotAssetHub/runtime.d.ts +451 -0
  65. package/polkadotAssetHub/tx.d.ts +4189 -0
  66. package/polkadotAssetHub/types.d.ts +5539 -0
  67. package/rococoAssetHub/consts.d.ts +750 -0
  68. package/rococoAssetHub/errors.d.ts +1494 -0
  69. package/rococoAssetHub/events.d.ts +2252 -0
  70. package/rococoAssetHub/index.d.ts +22 -0
  71. package/rococoAssetHub/query.d.ts +1516 -0
  72. package/rococoAssetHub/rpc.d.ts +746 -0
  73. package/rococoAssetHub/runtime.d.ts +542 -0
  74. package/rococoAssetHub/tx.d.ts +5169 -0
  75. package/rococoAssetHub/types.d.ts +6751 -0
  76. package/substrate/consts.d.ts +2223 -0
  77. package/substrate/errors.d.ts +4023 -0
  78. package/substrate/events.d.ts +5107 -0
  79. package/substrate/index.d.ts +22 -0
  80. package/substrate/query.d.ts +3890 -0
  81. package/substrate/rpc.d.ts +894 -0
  82. package/substrate/runtime.d.ts +941 -0
  83. package/substrate/tx.d.ts +10391 -0
  84. package/substrate/types.d.ts +13380 -0
  85. package/westendAssetHub/consts.d.ts +750 -0
  86. package/westendAssetHub/errors.d.ts +1494 -0
  87. package/westendAssetHub/events.d.ts +2252 -0
  88. package/westendAssetHub/index.d.ts +22 -0
  89. package/westendAssetHub/query.d.ts +1516 -0
  90. package/westendAssetHub/rpc.d.ts +746 -0
  91. package/westendAssetHub/runtime.d.ts +581 -0
  92. package/westendAssetHub/tx.d.ts +5169 -0
  93. package/westendAssetHub/types.d.ts +6750 -0
  94. package/cjs/index.js +0 -2
  95. package/cjs/package.json +0 -1
  96. package/cjs/packageInfo.js +0 -5
@@ -0,0 +1,581 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod } from '@dedot/types';
4
+ import type {
5
+ RuntimeVersion,
6
+ Header,
7
+ DispatchError,
8
+ Result,
9
+ UncheckedExtrinsicLike,
10
+ UncheckedExtrinsic,
11
+ H256,
12
+ Bytes,
13
+ BytesLike,
14
+ AccountId32Like,
15
+ AccountId32,
16
+ } from '@dedot/codecs';
17
+ import type {
18
+ SpConsensusSlotsSlotDuration,
19
+ SpConsensusAuraSr25519AppSr25519Public,
20
+ SpRuntimeBlock,
21
+ SpCoreOpaqueMetadata,
22
+ SpRuntimeTransactionValidityTransactionValidityError,
23
+ SpInherentsInherentData,
24
+ SpInherentsCheckInherentsResult,
25
+ SpRuntimeTransactionValidityValidTransaction,
26
+ SpRuntimeTransactionValidityTransactionSource,
27
+ SpCoreCryptoKeyTypeId,
28
+ StagingXcmV3MultilocationMultiLocation,
29
+ PalletTransactionPaymentRuntimeDispatchInfo,
30
+ PalletTransactionPaymentFeeDetails,
31
+ SpWeightsWeightV2Weight,
32
+ AssetHubWestendRuntimeRuntimeCallLike,
33
+ XcmVersionedAssets,
34
+ AssetsCommonRuntimeApiFungiblesAccessError,
35
+ CumulusPrimitivesCoreCollationInfo,
36
+ } from './types';
37
+
38
+ export interface RuntimeApis extends GenericRuntimeApis {
39
+ /**
40
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
41
+ **/
42
+ auraApi: {
43
+ /**
44
+ * Returns the slot duration for Aura.
45
+ *
46
+ * Currently, only the value provided by this type at genesis will be used.
47
+ *
48
+ * @callname: AuraApi_slot_duration
49
+ **/
50
+ slotDuration: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlotDuration>>;
51
+
52
+ /**
53
+ * Return the current set of authorities.
54
+ *
55
+ * @callname: AuraApi_authorities
56
+ **/
57
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
58
+
59
+ /**
60
+ * Generic runtime api call
61
+ **/
62
+ [method: string]: GenericRuntimeApiMethod;
63
+ };
64
+ /**
65
+ * @runtimeapi: Core - 0xdf6acb689907609b
66
+ **/
67
+ core: {
68
+ /**
69
+ * Returns the version of the runtime.
70
+ *
71
+ * @callname: Core_version
72
+ **/
73
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
74
+
75
+ /**
76
+ * Execute the given block.
77
+ *
78
+ * @callname: Core_execute_block
79
+ * @param {SpRuntimeBlock} block
80
+ **/
81
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
82
+
83
+ /**
84
+ * Initialize a block with the given header.
85
+ *
86
+ * @callname: Core_initialize_block
87
+ * @param {Header} header
88
+ **/
89
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
90
+
91
+ /**
92
+ * Generic runtime api call
93
+ **/
94
+ [method: string]: GenericRuntimeApiMethod;
95
+ };
96
+ /**
97
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
98
+ **/
99
+ metadata: {
100
+ /**
101
+ * Returns the metadata of a runtime.
102
+ *
103
+ * @callname: Metadata_metadata
104
+ **/
105
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
106
+
107
+ /**
108
+ * Returns the metadata at a given version.
109
+ *
110
+ * If the given `version` isn't supported, this will return `None`.
111
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
112
+ *
113
+ * @callname: Metadata_metadata_at_version
114
+ * @param {number} version
115
+ **/
116
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
117
+
118
+ /**
119
+ * Returns the supported metadata versions.
120
+ *
121
+ * This can be used to call `metadata_at_version`.
122
+ *
123
+ * @callname: Metadata_metadata_versions
124
+ **/
125
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
126
+
127
+ /**
128
+ * Generic runtime api call
129
+ **/
130
+ [method: string]: GenericRuntimeApiMethod;
131
+ };
132
+ /**
133
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
134
+ **/
135
+ blockBuilder: {
136
+ /**
137
+ * Apply the given extrinsic.
138
+ *
139
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
140
+ * this block or not.
141
+ *
142
+ * @callname: BlockBuilder_apply_extrinsic
143
+ * @param {UncheckedExtrinsicLike} extrinsic
144
+ **/
145
+ applyExtrinsic: GenericRuntimeApiMethod<
146
+ (
147
+ extrinsic: UncheckedExtrinsicLike,
148
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
149
+ >;
150
+
151
+ /**
152
+ * Finish the current block.
153
+ *
154
+ * @callname: BlockBuilder_finalize_block
155
+ **/
156
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
157
+
158
+ /**
159
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
160
+ *
161
+ * @callname: BlockBuilder_inherent_extrinsics
162
+ * @param {SpInherentsInherentData} inherent
163
+ **/
164
+ inherentExtrinsics: GenericRuntimeApiMethod<
165
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
166
+ >;
167
+
168
+ /**
169
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
170
+ *
171
+ * @callname: BlockBuilder_check_inherents
172
+ * @param {SpRuntimeBlock} block
173
+ * @param {SpInherentsInherentData} data
174
+ **/
175
+ checkInherents: GenericRuntimeApiMethod<
176
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
177
+ >;
178
+
179
+ /**
180
+ * Generic runtime api call
181
+ **/
182
+ [method: string]: GenericRuntimeApiMethod;
183
+ };
184
+ /**
185
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
186
+ **/
187
+ taggedTransactionQueue: {
188
+ /**
189
+ * Validate the transaction.
190
+ *
191
+ * This method is invoked by the transaction pool to learn details about given transaction.
192
+ * The implementation should make sure to verify the correctness of the transaction
193
+ * against current state. The given `block_hash` corresponds to the hash of the block
194
+ * that is used as current state.
195
+ *
196
+ * Note that this call may be performed by the pool multiple times and transactions
197
+ * might be verified in any possible order.
198
+ *
199
+ * @callname: TaggedTransactionQueue_validate_transaction
200
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
201
+ * @param {UncheckedExtrinsicLike} tx
202
+ * @param {H256} block_hash
203
+ **/
204
+ validateTransaction: GenericRuntimeApiMethod<
205
+ (
206
+ source: SpRuntimeTransactionValidityTransactionSource,
207
+ tx: UncheckedExtrinsicLike,
208
+ blockHash: H256,
209
+ ) => Promise<
210
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
211
+ >
212
+ >;
213
+
214
+ /**
215
+ * Generic runtime api call
216
+ **/
217
+ [method: string]: GenericRuntimeApiMethod;
218
+ };
219
+ /**
220
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
221
+ **/
222
+ offchainWorkerApi: {
223
+ /**
224
+ * Starts the off-chain task for given block header.
225
+ *
226
+ * @callname: OffchainWorkerApi_offchain_worker
227
+ * @param {Header} header
228
+ **/
229
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
230
+
231
+ /**
232
+ * Generic runtime api call
233
+ **/
234
+ [method: string]: GenericRuntimeApiMethod;
235
+ };
236
+ /**
237
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
238
+ **/
239
+ sessionKeys: {
240
+ /**
241
+ * Generate a set of session keys with optionally using the given seed.
242
+ * The keys should be stored within the keystore exposed via runtime
243
+ * externalities.
244
+ *
245
+ * The seed needs to be a valid `utf8` string.
246
+ *
247
+ * Returns the concatenated SCALE encoded public keys.
248
+ *
249
+ * @callname: SessionKeys_generate_session_keys
250
+ * @param {BytesLike | undefined} seed
251
+ **/
252
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
253
+
254
+ /**
255
+ * Decode the given public session keys.
256
+ *
257
+ * Returns the list of public raw public keys + key type.
258
+ *
259
+ * @callname: SessionKeys_decode_session_keys
260
+ * @param {BytesLike} encoded
261
+ **/
262
+ decodeSessionKeys: GenericRuntimeApiMethod<
263
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
264
+ >;
265
+
266
+ /**
267
+ * Generic runtime api call
268
+ **/
269
+ [method: string]: GenericRuntimeApiMethod;
270
+ };
271
+ /**
272
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
273
+ **/
274
+ accountNonceApi: {
275
+ /**
276
+ * Get current account nonce of given `AccountId`.
277
+ *
278
+ * @callname: AccountNonceApi_account_nonce
279
+ * @param {AccountId32Like} account
280
+ **/
281
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
282
+
283
+ /**
284
+ * Generic runtime api call
285
+ **/
286
+ [method: string]: GenericRuntimeApiMethod;
287
+ };
288
+ /**
289
+ * @runtimeapi: NftsApi - 0x899a250cbe84f250
290
+ **/
291
+ nftsApi: {
292
+ /**
293
+ *
294
+ * @callname: NftsApi_owner
295
+ * @param {number} collection
296
+ * @param {number} item
297
+ **/
298
+ owner: GenericRuntimeApiMethod<(collection: number, item: number) => Promise<AccountId32 | undefined>>;
299
+
300
+ /**
301
+ *
302
+ * @callname: NftsApi_collection_owner
303
+ * @param {number} collection
304
+ **/
305
+ collectionOwner: GenericRuntimeApiMethod<(collection: number) => Promise<AccountId32 | undefined>>;
306
+
307
+ /**
308
+ *
309
+ * @callname: NftsApi_attribute
310
+ * @param {number} collection
311
+ * @param {number} item
312
+ * @param {BytesLike} key
313
+ **/
314
+ attribute: GenericRuntimeApiMethod<
315
+ (collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
316
+ >;
317
+
318
+ /**
319
+ *
320
+ * @callname: NftsApi_custom_attribute
321
+ * @param {AccountId32Like} account
322
+ * @param {number} collection
323
+ * @param {number} item
324
+ * @param {BytesLike} key
325
+ **/
326
+ customAttribute: GenericRuntimeApiMethod<
327
+ (account: AccountId32Like, collection: number, item: number, key: BytesLike) => Promise<Bytes | undefined>
328
+ >;
329
+
330
+ /**
331
+ *
332
+ * @callname: NftsApi_system_attribute
333
+ * @param {number} collection
334
+ * @param {number | undefined} item
335
+ * @param {BytesLike} key
336
+ **/
337
+ systemAttribute: GenericRuntimeApiMethod<
338
+ (collection: number, item: number | undefined, key: BytesLike) => Promise<Bytes | undefined>
339
+ >;
340
+
341
+ /**
342
+ *
343
+ * @callname: NftsApi_collection_attribute
344
+ * @param {number} collection
345
+ * @param {BytesLike} key
346
+ **/
347
+ collectionAttribute: GenericRuntimeApiMethod<(collection: number, key: BytesLike) => Promise<Bytes | undefined>>;
348
+
349
+ /**
350
+ * Generic runtime api call
351
+ **/
352
+ [method: string]: GenericRuntimeApiMethod;
353
+ };
354
+ /**
355
+ * @runtimeapi: AssetConversionApi - 0x8a8047a53a8277ec
356
+ **/
357
+ assetConversionApi: {
358
+ /**
359
+ * Provides a quote for [`Pallet::swap_tokens_for_exact_tokens`].
360
+ *
361
+ * Note that the price may have changed by the time the transaction is executed.
362
+ * (Use `amount_in_max` to control slippage.)
363
+ *
364
+ * @callname: AssetConversionApi_quote_price_tokens_for_exact_tokens
365
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
366
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
367
+ * @param {bigint} amount
368
+ * @param {boolean} include_fee
369
+ **/
370
+ quotePriceTokensForExactTokens: GenericRuntimeApiMethod<
371
+ (
372
+ asset1: StagingXcmV3MultilocationMultiLocation,
373
+ asset2: StagingXcmV3MultilocationMultiLocation,
374
+ amount: bigint,
375
+ includeFee: boolean,
376
+ ) => Promise<bigint | undefined>
377
+ >;
378
+
379
+ /**
380
+ * Provides a quote for [`Pallet::swap_exact_tokens_for_tokens`].
381
+ *
382
+ * Note that the price may have changed by the time the transaction is executed.
383
+ * (Use `amount_out_min` to control slippage.)
384
+ *
385
+ * @callname: AssetConversionApi_quote_price_exact_tokens_for_tokens
386
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
387
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
388
+ * @param {bigint} amount
389
+ * @param {boolean} include_fee
390
+ **/
391
+ quotePriceExactTokensForTokens: GenericRuntimeApiMethod<
392
+ (
393
+ asset1: StagingXcmV3MultilocationMultiLocation,
394
+ asset2: StagingXcmV3MultilocationMultiLocation,
395
+ amount: bigint,
396
+ includeFee: boolean,
397
+ ) => Promise<bigint | undefined>
398
+ >;
399
+
400
+ /**
401
+ * Returns the size of the liquidity pool for the given asset pair.
402
+ *
403
+ * @callname: AssetConversionApi_get_reserves
404
+ * @param {StagingXcmV3MultilocationMultiLocation} asset1
405
+ * @param {StagingXcmV3MultilocationMultiLocation} asset2
406
+ **/
407
+ getReserves: GenericRuntimeApiMethod<
408
+ (
409
+ asset1: StagingXcmV3MultilocationMultiLocation,
410
+ asset2: StagingXcmV3MultilocationMultiLocation,
411
+ ) => Promise<[bigint, bigint] | undefined>
412
+ >;
413
+
414
+ /**
415
+ * Generic runtime api call
416
+ **/
417
+ [method: string]: GenericRuntimeApiMethod;
418
+ };
419
+ /**
420
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
421
+ **/
422
+ transactionPaymentApi: {
423
+ /**
424
+ *
425
+ * @callname: TransactionPaymentApi_query_info
426
+ * @param {UncheckedExtrinsicLike} uxt
427
+ * @param {number} len
428
+ **/
429
+ queryInfo: GenericRuntimeApiMethod<
430
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
431
+ >;
432
+
433
+ /**
434
+ *
435
+ * @callname: TransactionPaymentApi_query_fee_details
436
+ * @param {UncheckedExtrinsicLike} uxt
437
+ * @param {number} len
438
+ **/
439
+ queryFeeDetails: GenericRuntimeApiMethod<
440
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
441
+ >;
442
+
443
+ /**
444
+ *
445
+ * @callname: TransactionPaymentApi_query_weight_to_fee
446
+ * @param {SpWeightsWeightV2Weight} weight
447
+ **/
448
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
449
+
450
+ /**
451
+ *
452
+ * @callname: TransactionPaymentApi_query_length_to_fee
453
+ * @param {number} length
454
+ **/
455
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
456
+
457
+ /**
458
+ * Generic runtime api call
459
+ **/
460
+ [method: string]: GenericRuntimeApiMethod;
461
+ };
462
+ /**
463
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
464
+ **/
465
+ transactionPaymentCallApi: {
466
+ /**
467
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
468
+ *
469
+ * @callname: TransactionPaymentCallApi_query_call_info
470
+ * @param {AssetHubWestendRuntimeRuntimeCallLike} call
471
+ * @param {number} len
472
+ **/
473
+ queryCallInfo: GenericRuntimeApiMethod<
474
+ (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
475
+ >;
476
+
477
+ /**
478
+ * Query fee details of a given encoded `Call`.
479
+ *
480
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
481
+ * @param {AssetHubWestendRuntimeRuntimeCallLike} call
482
+ * @param {number} len
483
+ **/
484
+ queryCallFeeDetails: GenericRuntimeApiMethod<
485
+ (call: AssetHubWestendRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
486
+ >;
487
+
488
+ /**
489
+ * Query the output of the current `WeightToFee` given some input.
490
+ *
491
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
492
+ * @param {SpWeightsWeightV2Weight} weight
493
+ **/
494
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
495
+
496
+ /**
497
+ * Query the output of the current `LengthToFee` given some input.
498
+ *
499
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
500
+ * @param {number} length
501
+ **/
502
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
503
+
504
+ /**
505
+ * Generic runtime api call
506
+ **/
507
+ [method: string]: GenericRuntimeApiMethod;
508
+ };
509
+ /**
510
+ * @runtimeapi: FungiblesApi - 0xde92b8a0426b9bf6
511
+ **/
512
+ fungiblesApi: {
513
+ /**
514
+ * Returns the list of all [`Asset`] that an `AccountId` has.
515
+ *
516
+ * @callname: FungiblesApi_query_account_balances
517
+ * @param {AccountId32Like} account
518
+ **/
519
+ queryAccountBalances: GenericRuntimeApiMethod<
520
+ (account: AccountId32Like) => Promise<Result<XcmVersionedAssets, AssetsCommonRuntimeApiFungiblesAccessError>>
521
+ >;
522
+
523
+ /**
524
+ * Generic runtime api call
525
+ **/
526
+ [method: string]: GenericRuntimeApiMethod;
527
+ };
528
+ /**
529
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
530
+ **/
531
+ collectCollationInfo: {
532
+ /**
533
+ * Collect information about a collation.
534
+ *
535
+ * The given `header` is the header of the built block for that
536
+ * we are collecting the collation info for.
537
+ *
538
+ * @callname: CollectCollationInfo_collect_collation_info
539
+ * @param {Header} header
540
+ **/
541
+ collectCollationInfo: GenericRuntimeApiMethod<(header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
542
+
543
+ /**
544
+ * Generic runtime api call
545
+ **/
546
+ [method: string]: GenericRuntimeApiMethod;
547
+ };
548
+ /**
549
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
550
+ **/
551
+ genesisBuilder: {
552
+ /**
553
+ * Creates the default `GenesisConfig` and returns it as a JSON blob.
554
+ *
555
+ * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
556
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
557
+ *
558
+ * @callname: GenesisBuilder_create_default_config
559
+ **/
560
+ createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
561
+
562
+ /**
563
+ * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
564
+ *
565
+ * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
566
+ * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
567
+ * It is recommended to log any errors encountered during the process.
568
+ *
569
+ * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
570
+ *
571
+ * @callname: GenesisBuilder_build_config
572
+ * @param {BytesLike} json
573
+ **/
574
+ buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
575
+
576
+ /**
577
+ * Generic runtime api call
578
+ **/
579
+ [method: string]: GenericRuntimeApiMethod;
580
+ };
581
+ }