@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,1134 @@
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
+ AccountId32Like,
12
+ H256,
13
+ Bytes,
14
+ BytesLike,
15
+ } from '@dedot/codecs';
16
+ import type {
17
+ SpRuntimeBlock,
18
+ SpCoreOpaqueMetadata,
19
+ SpRuntimeTransactionValidityTransactionValidityError,
20
+ SpInherentsInherentData,
21
+ SpInherentsCheckInherentsResult,
22
+ SpRuntimeTransactionValidityValidTransaction,
23
+ SpRuntimeTransactionValidityTransactionSource,
24
+ PolkadotPrimitivesV6ValidatorAppPublic,
25
+ PolkadotPrimitivesV6ValidatorIndex,
26
+ PolkadotPrimitivesV6GroupRotationInfo,
27
+ PolkadotPrimitivesV6CoreState,
28
+ PolkadotPrimitivesV6PersistedValidationData,
29
+ PolkadotParachainPrimitivesPrimitivesId,
30
+ PolkadotPrimitivesV6OccupiedCoreAssumption,
31
+ PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
32
+ PolkadotPrimitivesV6CandidateCommitments,
33
+ PolkadotParachainPrimitivesPrimitivesValidationCode,
34
+ PolkadotPrimitivesV6CommittedCandidateReceipt,
35
+ PolkadotPrimitivesV6CandidateEvent,
36
+ PolkadotCorePrimitivesInboundDownwardMessage,
37
+ PolkadotCorePrimitivesInboundHrmpMessage,
38
+ PolkadotPrimitivesV6ScrapedOnChainVotes,
39
+ PolkadotPrimitivesV6SessionInfo,
40
+ PolkadotPrimitivesV6PvfCheckStatement,
41
+ PolkadotPrimitivesV6ValidatorAppSignature,
42
+ PolkadotCorePrimitivesCandidateHash,
43
+ PolkadotPrimitivesV6DisputeState,
44
+ PolkadotPrimitivesV6ExecutorParams,
45
+ PolkadotPrimitivesV6SlashingPendingSlashes,
46
+ PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof,
47
+ PolkadotPrimitivesV6SlashingDisputeProof,
48
+ PolkadotPrimitivesV6AsyncBackingBackingState,
49
+ PolkadotPrimitivesV6AsyncBackingAsyncBackingParams,
50
+ SpConsensusBeefyValidatorSet,
51
+ SpConsensusBeefyEquivocationProof,
52
+ SpConsensusBeefyOpaqueKeyOwnershipProof,
53
+ SpConsensusBeefyEcdsaCryptoPublic,
54
+ SpMmrPrimitivesError,
55
+ SpMmrPrimitivesEncodableOpaqueLeaf,
56
+ SpMmrPrimitivesProof,
57
+ SpConsensusBeefyMmrBeefyAuthoritySet,
58
+ SpConsensusGrandpaAppPublic,
59
+ SpConsensusGrandpaEquivocationProof,
60
+ SpConsensusGrandpaOpaqueKeyOwnershipProof,
61
+ SpConsensusBabeBabeConfiguration,
62
+ SpConsensusSlotsSlot,
63
+ SpConsensusBabeEpoch,
64
+ SpConsensusBabeOpaqueKeyOwnershipProof,
65
+ SpConsensusBabeAppPublic,
66
+ SpConsensusSlotsEquivocationProof,
67
+ SpAuthorityDiscoveryAppPublic,
68
+ SpCoreCryptoKeyTypeId,
69
+ PalletTransactionPaymentRuntimeDispatchInfo,
70
+ PalletTransactionPaymentFeeDetails,
71
+ SpWeightsWeightV2Weight,
72
+ PolkadotRuntimeRuntimeCallLike,
73
+ } from './types';
74
+
75
+ export interface RuntimeApis extends GenericRuntimeApis {
76
+ /**
77
+ * @runtimeapi: Core - 0xdf6acb689907609b
78
+ **/
79
+ core: {
80
+ /**
81
+ * Returns the version of the runtime.
82
+ *
83
+ * @callname: Core_version
84
+ **/
85
+ version: GenericRuntimeApiMethod<() => Promise<RuntimeVersion>>;
86
+
87
+ /**
88
+ * Execute the given block.
89
+ *
90
+ * @callname: Core_execute_block
91
+ * @param {SpRuntimeBlock} block
92
+ **/
93
+ executeBlock: GenericRuntimeApiMethod<(block: SpRuntimeBlock) => Promise<[]>>;
94
+
95
+ /**
96
+ * Initialize a block with the given header.
97
+ *
98
+ * @callname: Core_initialize_block
99
+ * @param {Header} header
100
+ **/
101
+ initializeBlock: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
102
+
103
+ /**
104
+ * Generic runtime api call
105
+ **/
106
+ [method: string]: GenericRuntimeApiMethod;
107
+ };
108
+ /**
109
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
110
+ **/
111
+ metadata: {
112
+ /**
113
+ * Returns the metadata of a runtime.
114
+ *
115
+ * @callname: Metadata_metadata
116
+ **/
117
+ metadata: GenericRuntimeApiMethod<() => Promise<SpCoreOpaqueMetadata>>;
118
+
119
+ /**
120
+ * Returns the metadata at a given version.
121
+ *
122
+ * If the given `version` isn't supported, this will return `None`.
123
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
124
+ *
125
+ * @callname: Metadata_metadata_at_version
126
+ * @param {number} version
127
+ **/
128
+ metadataAtVersion: GenericRuntimeApiMethod<(version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
129
+
130
+ /**
131
+ * Returns the supported metadata versions.
132
+ *
133
+ * This can be used to call `metadata_at_version`.
134
+ *
135
+ * @callname: Metadata_metadata_versions
136
+ **/
137
+ metadataVersions: GenericRuntimeApiMethod<() => Promise<Array<number>>>;
138
+
139
+ /**
140
+ * Generic runtime api call
141
+ **/
142
+ [method: string]: GenericRuntimeApiMethod;
143
+ };
144
+ /**
145
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
146
+ **/
147
+ blockBuilder: {
148
+ /**
149
+ * Apply the given extrinsic.
150
+ *
151
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
152
+ * this block or not.
153
+ *
154
+ * @callname: BlockBuilder_apply_extrinsic
155
+ * @param {UncheckedExtrinsicLike} extrinsic
156
+ **/
157
+ applyExtrinsic: GenericRuntimeApiMethod<
158
+ (
159
+ extrinsic: UncheckedExtrinsicLike,
160
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
161
+ >;
162
+
163
+ /**
164
+ * Finish the current block.
165
+ *
166
+ * @callname: BlockBuilder_finalize_block
167
+ **/
168
+ finalizeBlock: GenericRuntimeApiMethod<() => Promise<Header>>;
169
+
170
+ /**
171
+ * Generate inherent extrinsics. The inherent data will vary from chain to chain.
172
+ *
173
+ * @callname: BlockBuilder_inherent_extrinsics
174
+ * @param {SpInherentsInherentData} inherent
175
+ **/
176
+ inherentExtrinsics: GenericRuntimeApiMethod<
177
+ (inherent: SpInherentsInherentData) => Promise<Array<UncheckedExtrinsic>>
178
+ >;
179
+
180
+ /**
181
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
182
+ *
183
+ * @callname: BlockBuilder_check_inherents
184
+ * @param {SpRuntimeBlock} block
185
+ * @param {SpInherentsInherentData} data
186
+ **/
187
+ checkInherents: GenericRuntimeApiMethod<
188
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
189
+ >;
190
+
191
+ /**
192
+ * Generic runtime api call
193
+ **/
194
+ [method: string]: GenericRuntimeApiMethod;
195
+ };
196
+ /**
197
+ * @runtimeapi: NominationPoolsApi - 0x17a6bc0d0062aeb3
198
+ **/
199
+ nominationPoolsApi: {
200
+ /**
201
+ * Returns the pending rewards for the member that the AccountId was given for.
202
+ *
203
+ * @callname: NominationPoolsApi_pending_rewards
204
+ * @param {AccountId32Like} who
205
+ **/
206
+ pendingRewards: GenericRuntimeApiMethod<(who: AccountId32Like) => Promise<bigint>>;
207
+
208
+ /**
209
+ * Returns the equivalent balance of `points` for a given pool.
210
+ *
211
+ * @callname: NominationPoolsApi_points_to_balance
212
+ * @param {number} pool_id
213
+ * @param {bigint} points
214
+ **/
215
+ pointsToBalance: GenericRuntimeApiMethod<(poolId: number, points: bigint) => Promise<bigint>>;
216
+
217
+ /**
218
+ * Returns the equivalent points of `new_funds` for a given pool.
219
+ *
220
+ * @callname: NominationPoolsApi_balance_to_points
221
+ * @param {number} pool_id
222
+ * @param {bigint} new_funds
223
+ **/
224
+ balanceToPoints: GenericRuntimeApiMethod<(poolId: number, newFunds: bigint) => Promise<bigint>>;
225
+
226
+ /**
227
+ * Generic runtime api call
228
+ **/
229
+ [method: string]: GenericRuntimeApiMethod;
230
+ };
231
+ /**
232
+ * @runtimeapi: StakingApi - 0x18ef58a3b67ba770
233
+ **/
234
+ stakingApi: {
235
+ /**
236
+ * Returns the nominations quota for a nominator with a given balance.
237
+ *
238
+ * @callname: StakingApi_nominations_quota
239
+ * @param {bigint} balance
240
+ **/
241
+ nominationsQuota: GenericRuntimeApiMethod<(balance: bigint) => Promise<number>>;
242
+
243
+ /**
244
+ * Generic runtime api call
245
+ **/
246
+ [method: string]: GenericRuntimeApiMethod;
247
+ };
248
+ /**
249
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
250
+ **/
251
+ taggedTransactionQueue: {
252
+ /**
253
+ * Validate the transaction.
254
+ *
255
+ * This method is invoked by the transaction pool to learn details about given transaction.
256
+ * The implementation should make sure to verify the correctness of the transaction
257
+ * against current state. The given `block_hash` corresponds to the hash of the block
258
+ * that is used as current state.
259
+ *
260
+ * Note that this call may be performed by the pool multiple times and transactions
261
+ * might be verified in any possible order.
262
+ *
263
+ * @callname: TaggedTransactionQueue_validate_transaction
264
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
265
+ * @param {UncheckedExtrinsicLike} tx
266
+ * @param {H256} block_hash
267
+ **/
268
+ validateTransaction: GenericRuntimeApiMethod<
269
+ (
270
+ source: SpRuntimeTransactionValidityTransactionSource,
271
+ tx: UncheckedExtrinsicLike,
272
+ blockHash: H256,
273
+ ) => Promise<
274
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
275
+ >
276
+ >;
277
+
278
+ /**
279
+ * Generic runtime api call
280
+ **/
281
+ [method: string]: GenericRuntimeApiMethod;
282
+ };
283
+ /**
284
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
285
+ **/
286
+ offchainWorkerApi: {
287
+ /**
288
+ * Starts the off-chain task for given block header.
289
+ *
290
+ * @callname: OffchainWorkerApi_offchain_worker
291
+ * @param {Header} header
292
+ **/
293
+ offchainWorker: GenericRuntimeApiMethod<(header: Header) => Promise<[]>>;
294
+
295
+ /**
296
+ * Generic runtime api call
297
+ **/
298
+ [method: string]: GenericRuntimeApiMethod;
299
+ };
300
+ /**
301
+ * @runtimeapi: ParachainHost - 0xaf2c0297a23e6d3d
302
+ **/
303
+ parachainHost: {
304
+ /**
305
+ * Get the current validators.
306
+ *
307
+ * @callname: ParachainHost_validators
308
+ **/
309
+ validators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV6ValidatorAppPublic>>>;
310
+
311
+ /**
312
+ * Returns the validator groups and rotation info localized based on the hypothetical child
313
+ * of a block whose state this is invoked on. Note that `now` in the `GroupRotationInfo`
314
+ * should be the successor of the number of the block.
315
+ *
316
+ * @callname: ParachainHost_validator_groups
317
+ **/
318
+ validatorGroups: GenericRuntimeApiMethod<
319
+ () => Promise<[Array<Array<PolkadotPrimitivesV6ValidatorIndex>>, PolkadotPrimitivesV6GroupRotationInfo]>
320
+ >;
321
+
322
+ /**
323
+ * Yields information on all availability cores as relevant to the child block.
324
+ * Cores are either free or occupied. Free cores can have paras assigned to them.
325
+ *
326
+ * @callname: ParachainHost_availability_cores
327
+ **/
328
+ availabilityCores: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV6CoreState>>>;
329
+
330
+ /**
331
+ * Yields the persisted validation data for the given `ParaId` along with an assumption that
332
+ * should be used if the para currently occupies a core.
333
+ *
334
+ * Returns `None` if either the para is not registered or the assumption is `Freed`
335
+ * and the para already occupies a core.
336
+ *
337
+ * @callname: ParachainHost_persisted_validation_data
338
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
339
+ * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
340
+ **/
341
+ persistedValidationData: GenericRuntimeApiMethod<
342
+ (
343
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
344
+ assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
345
+ ) => Promise<PolkadotPrimitivesV6PersistedValidationData | undefined>
346
+ >;
347
+
348
+ /**
349
+ * Returns the persisted validation data for the given `ParaId` along with the corresponding
350
+ * validation code hash. Instead of accepting assumption about the para, matches the validation
351
+ * data hash against an expected one and yields `None` if they're not equal.
352
+ *
353
+ * @callname: ParachainHost_assumed_validation_data
354
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
355
+ * @param {H256} expected_persisted_validation_data_hash
356
+ **/
357
+ assumedValidationData: GenericRuntimeApiMethod<
358
+ (
359
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
360
+ expectedPersistedValidationDataHash: H256,
361
+ ) => Promise<
362
+ | [PolkadotPrimitivesV6PersistedValidationData, PolkadotParachainPrimitivesPrimitivesValidationCodeHash]
363
+ | undefined
364
+ >
365
+ >;
366
+
367
+ /**
368
+ * Checks if the given validation outputs pass the acceptance criteria.
369
+ *
370
+ * @callname: ParachainHost_check_validation_outputs
371
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
372
+ * @param {PolkadotPrimitivesV6CandidateCommitments} outputs
373
+ **/
374
+ checkValidationOutputs: GenericRuntimeApiMethod<
375
+ (
376
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
377
+ outputs: PolkadotPrimitivesV6CandidateCommitments,
378
+ ) => Promise<boolean>
379
+ >;
380
+
381
+ /**
382
+ * Returns the session index expected at a child of the block.
383
+ *
384
+ * This can be used to instantiate a `SigningContext`.
385
+ *
386
+ * @callname: ParachainHost_session_index_for_child
387
+ **/
388
+ sessionIndexForChild: GenericRuntimeApiMethod<() => Promise<number>>;
389
+
390
+ /**
391
+ * Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.
392
+ *
393
+ * Returns `None` if either the para is not registered or the assumption is `Freed`
394
+ * and the para already occupies a core.
395
+ *
396
+ * @callname: ParachainHost_validation_code
397
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
398
+ * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
399
+ **/
400
+ validationCode: GenericRuntimeApiMethod<
401
+ (
402
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
403
+ assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
404
+ ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
405
+ >;
406
+
407
+ /**
408
+ * Get the receipt of a candidate pending availability. This returns `Some` for any paras
409
+ * assigned to occupied cores in `availability_cores` and `None` otherwise.
410
+ *
411
+ * @callname: ParachainHost_candidate_pending_availability
412
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
413
+ **/
414
+ candidatePendingAvailability: GenericRuntimeApiMethod<
415
+ (
416
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
417
+ ) => Promise<PolkadotPrimitivesV6CommittedCandidateReceipt | undefined>
418
+ >;
419
+
420
+ /**
421
+ * Get a vector of events concerning candidates that occurred within a block.
422
+ *
423
+ * @callname: ParachainHost_candidate_events
424
+ **/
425
+ candidateEvents: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV6CandidateEvent>>>;
426
+
427
+ /**
428
+ * Get all the pending inbound messages in the downward message queue for a para.
429
+ *
430
+ * @callname: ParachainHost_dmq_contents
431
+ * @param {PolkadotParachainPrimitivesPrimitivesId} recipient
432
+ **/
433
+ dmqContents: GenericRuntimeApiMethod<
434
+ (
435
+ recipient: PolkadotParachainPrimitivesPrimitivesId,
436
+ ) => Promise<Array<PolkadotCorePrimitivesInboundDownwardMessage>>
437
+ >;
438
+
439
+ /**
440
+ * Get the contents of all channels addressed to the given recipient. Channels that have no
441
+ * messages in them are also included.
442
+ *
443
+ * @callname: ParachainHost_inbound_hrmp_channels_contents
444
+ * @param {PolkadotParachainPrimitivesPrimitivesId} recipient
445
+ **/
446
+ inboundHrmpChannelsContents: GenericRuntimeApiMethod<
447
+ (
448
+ recipient: PolkadotParachainPrimitivesPrimitivesId,
449
+ ) => Promise<Array<[PolkadotParachainPrimitivesPrimitivesId, Array<PolkadotCorePrimitivesInboundHrmpMessage>]>>
450
+ >;
451
+
452
+ /**
453
+ * Get the validation code from its hash.
454
+ *
455
+ * @callname: ParachainHost_validation_code_by_hash
456
+ * @param {PolkadotParachainPrimitivesPrimitivesValidationCodeHash} hash
457
+ **/
458
+ validationCodeByHash: GenericRuntimeApiMethod<
459
+ (
460
+ hash: PolkadotParachainPrimitivesPrimitivesValidationCodeHash,
461
+ ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCode | undefined>
462
+ >;
463
+
464
+ /**
465
+ * Scrape dispute relevant from on-chain, backing votes and resolved disputes.
466
+ *
467
+ * @callname: ParachainHost_on_chain_votes
468
+ **/
469
+ onChainVotes: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV6ScrapedOnChainVotes | undefined>>;
470
+
471
+ /**
472
+ * Get the session info for the given session, if stored.
473
+ *
474
+ * NOTE: This function is only available since parachain host version 2.
475
+ *
476
+ * @callname: ParachainHost_session_info
477
+ * @param {number} index
478
+ **/
479
+ sessionInfo: GenericRuntimeApiMethod<(index: number) => Promise<PolkadotPrimitivesV6SessionInfo | undefined>>;
480
+
481
+ /**
482
+ * Submits a PVF pre-checking statement into the transaction pool.
483
+ *
484
+ * NOTE: This function is only available since parachain host version 2.
485
+ *
486
+ * @callname: ParachainHost_submit_pvf_check_statement
487
+ * @param {PolkadotPrimitivesV6PvfCheckStatement} stmt
488
+ * @param {PolkadotPrimitivesV6ValidatorAppSignature} signature
489
+ **/
490
+ submitPvfCheckStatement: GenericRuntimeApiMethod<
491
+ (stmt: PolkadotPrimitivesV6PvfCheckStatement, signature: PolkadotPrimitivesV6ValidatorAppSignature) => Promise<[]>
492
+ >;
493
+
494
+ /**
495
+ * Returns code hashes of PVFs that require pre-checking by validators in the active set.
496
+ *
497
+ * NOTE: This function is only available since parachain host version 2.
498
+ *
499
+ * @callname: ParachainHost_pvfs_require_precheck
500
+ **/
501
+ pvfsRequirePrecheck: GenericRuntimeApiMethod<
502
+ () => Promise<Array<PolkadotParachainPrimitivesPrimitivesValidationCodeHash>>
503
+ >;
504
+
505
+ /**
506
+ * Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.
507
+ *
508
+ * NOTE: This function is only available since parachain host version 2.
509
+ *
510
+ * @callname: ParachainHost_validation_code_hash
511
+ * @param {PolkadotParachainPrimitivesPrimitivesId} para_id
512
+ * @param {PolkadotPrimitivesV6OccupiedCoreAssumption} assumption
513
+ **/
514
+ validationCodeHash: GenericRuntimeApiMethod<
515
+ (
516
+ paraId: PolkadotParachainPrimitivesPrimitivesId,
517
+ assumption: PolkadotPrimitivesV6OccupiedCoreAssumption,
518
+ ) => Promise<PolkadotParachainPrimitivesPrimitivesValidationCodeHash | undefined>
519
+ >;
520
+
521
+ /**
522
+ * Returns all onchain disputes.
523
+ *
524
+ * @callname: ParachainHost_disputes
525
+ **/
526
+ disputes: GenericRuntimeApiMethod<
527
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV6DisputeState]>>
528
+ >;
529
+
530
+ /**
531
+ * Returns execution parameters for the session.
532
+ *
533
+ * @callname: ParachainHost_session_executor_params
534
+ * @param {number} session_index
535
+ **/
536
+ sessionExecutorParams: GenericRuntimeApiMethod<
537
+ (sessionIndex: number) => Promise<PolkadotPrimitivesV6ExecutorParams | undefined>
538
+ >;
539
+
540
+ /**
541
+ * Returns a list of validators that lost a past session dispute and need to be slashed.
542
+ * NOTE: This function is only available since parachain host version 5.
543
+ *
544
+ * @callname: ParachainHost_unapplied_slashes
545
+ **/
546
+ unappliedSlashes: GenericRuntimeApiMethod<
547
+ () => Promise<Array<[number, PolkadotCorePrimitivesCandidateHash, PolkadotPrimitivesV6SlashingPendingSlashes]>>
548
+ >;
549
+
550
+ /**
551
+ * Returns a merkle proof of a validator session key.
552
+ * NOTE: This function is only available since parachain host version 5.
553
+ *
554
+ * @callname: ParachainHost_key_ownership_proof
555
+ * @param {PolkadotPrimitivesV6ValidatorAppPublic} validator_id
556
+ **/
557
+ keyOwnershipProof: GenericRuntimeApiMethod<
558
+ (
559
+ validatorId: PolkadotPrimitivesV6ValidatorAppPublic,
560
+ ) => Promise<PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof | undefined>
561
+ >;
562
+
563
+ /**
564
+ * Submit an unsigned extrinsic to slash validators who lost a dispute about
565
+ * a candidate of a past session.
566
+ * NOTE: This function is only available since parachain host version 5.
567
+ *
568
+ * @callname: ParachainHost_submit_report_dispute_lost
569
+ * @param {PolkadotPrimitivesV6SlashingDisputeProof} dispute_proof
570
+ * @param {PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof} key_ownership_proof
571
+ **/
572
+ submitReportDisputeLost: GenericRuntimeApiMethod<
573
+ (
574
+ disputeProof: PolkadotPrimitivesV6SlashingDisputeProof,
575
+ keyOwnershipProof: PolkadotPrimitivesV6SlashingOpaqueKeyOwnershipProof,
576
+ ) => Promise<[] | undefined>
577
+ >;
578
+
579
+ /**
580
+ * Get the minimum number of backing votes for a parachain candidate.
581
+ * This is a staging method! Do not use on production runtimes!
582
+ *
583
+ * @callname: ParachainHost_minimum_backing_votes
584
+ **/
585
+ minimumBackingVotes: GenericRuntimeApiMethod<() => Promise<number>>;
586
+
587
+ /**
588
+ * Returns the state of parachain backing for a given para.
589
+ *
590
+ * @callname: ParachainHost_para_backing_state
591
+ * @param {PolkadotParachainPrimitivesPrimitivesId} _
592
+ **/
593
+ paraBackingState: GenericRuntimeApiMethod<
594
+ (
595
+ undefined: PolkadotParachainPrimitivesPrimitivesId,
596
+ ) => Promise<PolkadotPrimitivesV6AsyncBackingBackingState | undefined>
597
+ >;
598
+
599
+ /**
600
+ * Returns candidate's acceptance limitations for asynchronous backing for a relay parent.
601
+ *
602
+ * @callname: ParachainHost_async_backing_params
603
+ **/
604
+ asyncBackingParams: GenericRuntimeApiMethod<() => Promise<PolkadotPrimitivesV6AsyncBackingAsyncBackingParams>>;
605
+
606
+ /**
607
+ * Returns a list of all disabled validators at the given block.
608
+ *
609
+ * @callname: ParachainHost_disabled_validators
610
+ **/
611
+ disabledValidators: GenericRuntimeApiMethod<() => Promise<Array<PolkadotPrimitivesV6ValidatorIndex>>>;
612
+
613
+ /**
614
+ * Generic runtime api call
615
+ **/
616
+ [method: string]: GenericRuntimeApiMethod;
617
+ };
618
+ /**
619
+ * @runtimeapi: BeefyApi - 0x49eaaf1b548a0cb0
620
+ **/
621
+ beefyApi: {
622
+ /**
623
+ * Return the block number where BEEFY consensus is enabled/started
624
+ *
625
+ * @callname: BeefyApi_beefy_genesis
626
+ **/
627
+ beefyGenesis: GenericRuntimeApiMethod<() => Promise<number | undefined>>;
628
+
629
+ /**
630
+ * Return the current active BEEFY validator set
631
+ *
632
+ * @callname: BeefyApi_validator_set
633
+ **/
634
+ validatorSet: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyValidatorSet | undefined>>;
635
+
636
+ /**
637
+ * Submits an unsigned extrinsic to report an equivocation. The caller
638
+ * must provide the equivocation proof and a key ownership proof
639
+ * (should be obtained using `generate_key_ownership_proof`). The
640
+ * extrinsic will be unsigned and should only be accepted for local
641
+ * authorship (not to be broadcast to the network). This method returns
642
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
643
+ * reporting is disabled for the given runtime (i.e. this method is
644
+ * hardcoded to return `None`). Only useful in an offchain context.
645
+ *
646
+ * @callname: BeefyApi_submit_report_equivocation_unsigned_extrinsic
647
+ * @param {SpConsensusBeefyEquivocationProof} equivocation_proof
648
+ * @param {SpConsensusBeefyOpaqueKeyOwnershipProof} key_owner_proof
649
+ **/
650
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
651
+ (
652
+ equivocationProof: SpConsensusBeefyEquivocationProof,
653
+ keyOwnerProof: SpConsensusBeefyOpaqueKeyOwnershipProof,
654
+ ) => Promise<[] | undefined>
655
+ >;
656
+
657
+ /**
658
+ * Generates a proof of key ownership for the given authority in the
659
+ * given set. An example usage of this module is coupled with the
660
+ * session historical module to prove that a given authority key is
661
+ * tied to a given staking identity during a specific session. Proofs
662
+ * of key ownership are necessary for submitting equivocation reports.
663
+ * NOTE: even though the API takes a `set_id` as parameter the current
664
+ * implementations ignores this parameter and instead relies on this
665
+ * method being called at the correct block height, i.e. any point at
666
+ * which the given set id is live on-chain. Future implementations will
667
+ * instead use indexed data through an offchain worker, not requiring
668
+ * older states to be available.
669
+ *
670
+ * @callname: BeefyApi_generate_key_ownership_proof
671
+ * @param {bigint} set_id
672
+ * @param {SpConsensusBeefyEcdsaCryptoPublic} authority_id
673
+ **/
674
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<
675
+ (
676
+ setId: bigint,
677
+ authorityId: SpConsensusBeefyEcdsaCryptoPublic,
678
+ ) => Promise<SpConsensusBeefyOpaqueKeyOwnershipProof | undefined>
679
+ >;
680
+
681
+ /**
682
+ * Generic runtime api call
683
+ **/
684
+ [method: string]: GenericRuntimeApiMethod;
685
+ };
686
+ /**
687
+ * @runtimeapi: MmrApi - 0x91d5df18b0d2cf58
688
+ **/
689
+ mmrApi: {
690
+ /**
691
+ * Return the on-chain MMR root hash.
692
+ *
693
+ * @callname: MmrApi_mmr_root
694
+ **/
695
+ mmrRoot: GenericRuntimeApiMethod<() => Promise<Result<H256, SpMmrPrimitivesError>>>;
696
+
697
+ /**
698
+ * Return the number of MMR blocks in the chain.
699
+ *
700
+ * @callname: MmrApi_mmr_leaf_count
701
+ **/
702
+ mmrLeafCount: GenericRuntimeApiMethod<() => Promise<Result<bigint, SpMmrPrimitivesError>>>;
703
+
704
+ /**
705
+ * Generate MMR proof for a series of block numbers. If `best_known_block_number = Some(n)`,
706
+ * use historical MMR state at given block height `n`. Else, use current MMR state.
707
+ *
708
+ * @callname: MmrApi_generate_proof
709
+ * @param {Array<number>} block_numbers
710
+ * @param {number | undefined} best_known_block_number
711
+ **/
712
+ generateProof: GenericRuntimeApiMethod<
713
+ (
714
+ blockNumbers: Array<number>,
715
+ bestKnownBlockNumber?: number | undefined,
716
+ ) => Promise<Result<[Array<SpMmrPrimitivesEncodableOpaqueLeaf>, SpMmrPrimitivesProof], SpMmrPrimitivesError>>
717
+ >;
718
+
719
+ /**
720
+ * Verify MMR proof against on-chain MMR for a batch of leaves.
721
+ *
722
+ * Note this function will use on-chain MMR root hash and check if the proof matches the hash.
723
+ * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
724
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
725
+ *
726
+ * @callname: MmrApi_verify_proof
727
+ * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
728
+ * @param {SpMmrPrimitivesProof} proof
729
+ **/
730
+ verifyProof: GenericRuntimeApiMethod<
731
+ (
732
+ leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
733
+ proof: SpMmrPrimitivesProof,
734
+ ) => Promise<Result<[], SpMmrPrimitivesError>>
735
+ >;
736
+
737
+ /**
738
+ * Verify MMR proof against given root hash for a batch of leaves.
739
+ *
740
+ * Note this function does not require any on-chain storage - the
741
+ * proof is verified against given MMR root hash.
742
+ *
743
+ * Note, the leaves should be sorted such that corresponding leaves and leaf indices have the
744
+ * same position in both the `leaves` vector and the `leaf_indices` vector contained in the [Proof]
745
+ *
746
+ * @callname: MmrApi_verify_proof_stateless
747
+ * @param {H256} root
748
+ * @param {Array<SpMmrPrimitivesEncodableOpaqueLeaf>} leaves
749
+ * @param {SpMmrPrimitivesProof} proof
750
+ **/
751
+ verifyProofStateless: GenericRuntimeApiMethod<
752
+ (
753
+ root: H256,
754
+ leaves: Array<SpMmrPrimitivesEncodableOpaqueLeaf>,
755
+ proof: SpMmrPrimitivesProof,
756
+ ) => Promise<Result<[], SpMmrPrimitivesError>>
757
+ >;
758
+
759
+ /**
760
+ * Generic runtime api call
761
+ **/
762
+ [method: string]: GenericRuntimeApiMethod;
763
+ };
764
+ /**
765
+ * @runtimeapi: BeefyMmrApi - 0x2a5e924655399e60
766
+ **/
767
+ beefyMmrApi: {
768
+ /**
769
+ * Return the currently active BEEFY authority set proof.
770
+ *
771
+ * @callname: BeefyMmrApi_authority_set_proof
772
+ **/
773
+ authoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
774
+
775
+ /**
776
+ * Return the next/queued BEEFY authority set proof.
777
+ *
778
+ * @callname: BeefyMmrApi_next_authority_set_proof
779
+ **/
780
+ nextAuthoritySetProof: GenericRuntimeApiMethod<() => Promise<SpConsensusBeefyMmrBeefyAuthoritySet>>;
781
+
782
+ /**
783
+ * Generic runtime api call
784
+ **/
785
+ [method: string]: GenericRuntimeApiMethod;
786
+ };
787
+ /**
788
+ * @runtimeapi: GrandpaApi - 0xed99c5acb25eedf5
789
+ **/
790
+ grandpaApi: {
791
+ /**
792
+ * Get the current GRANDPA authorities and weights. This should not change except
793
+ * for when changes are scheduled and the corresponding delay has passed.
794
+ *
795
+ * When called at block B, it will return the set of authorities that should be
796
+ * used to finalize descendants of this block (B+1, B+2, ...). The block B itself
797
+ * is finalized by the authorities from block B-1.
798
+ *
799
+ * @callname: GrandpaApi_grandpa_authorities
800
+ **/
801
+ grandpaAuthorities: GenericRuntimeApiMethod<() => Promise<Array<[SpConsensusGrandpaAppPublic, bigint]>>>;
802
+
803
+ /**
804
+ * Submits an unsigned extrinsic to report an equivocation. The caller
805
+ * must provide the equivocation proof and a key ownership proof
806
+ * (should be obtained using `generate_key_ownership_proof`). The
807
+ * extrinsic will be unsigned and should only be accepted for local
808
+ * authorship (not to be broadcast to the network). This method returns
809
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
810
+ * reporting is disabled for the given runtime (i.e. this method is
811
+ * hardcoded to return `None`). Only useful in an offchain context.
812
+ *
813
+ * @callname: GrandpaApi_submit_report_equivocation_unsigned_extrinsic
814
+ * @param {SpConsensusGrandpaEquivocationProof} equivocation_proof
815
+ * @param {SpConsensusGrandpaOpaqueKeyOwnershipProof} key_owner_proof
816
+ **/
817
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
818
+ (
819
+ equivocationProof: SpConsensusGrandpaEquivocationProof,
820
+ keyOwnerProof: SpConsensusGrandpaOpaqueKeyOwnershipProof,
821
+ ) => Promise<[] | undefined>
822
+ >;
823
+
824
+ /**
825
+ * Generates a proof of key ownership for the given authority in the
826
+ * given set. An example usage of this module is coupled with the
827
+ * session historical module to prove that a given authority key is
828
+ * tied to a given staking identity during a specific session. Proofs
829
+ * of key ownership are necessary for submitting equivocation reports.
830
+ * NOTE: even though the API takes a `set_id` as parameter the current
831
+ * implementations ignore this parameter and instead rely on this
832
+ * method being called at the correct block height, i.e. any point at
833
+ * which the given set id is live on-chain. Future implementations will
834
+ * instead use indexed data through an offchain worker, not requiring
835
+ * older states to be available.
836
+ *
837
+ * @callname: GrandpaApi_generate_key_ownership_proof
838
+ * @param {bigint} set_id
839
+ * @param {SpConsensusGrandpaAppPublic} authority_id
840
+ **/
841
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<
842
+ (
843
+ setId: bigint,
844
+ authorityId: SpConsensusGrandpaAppPublic,
845
+ ) => Promise<SpConsensusGrandpaOpaqueKeyOwnershipProof | undefined>
846
+ >;
847
+
848
+ /**
849
+ * Get current GRANDPA authority set id.
850
+ *
851
+ * @callname: GrandpaApi_current_set_id
852
+ **/
853
+ currentSetId: GenericRuntimeApiMethod<() => Promise<bigint>>;
854
+
855
+ /**
856
+ * Generic runtime api call
857
+ **/
858
+ [method: string]: GenericRuntimeApiMethod;
859
+ };
860
+ /**
861
+ * @runtimeapi: BabeApi - 0xcbca25e39f142387
862
+ **/
863
+ babeApi: {
864
+ /**
865
+ * Return the configuration for BABE.
866
+ *
867
+ * @callname: BabeApi_configuration
868
+ **/
869
+ configuration: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeBabeConfiguration>>;
870
+
871
+ /**
872
+ * Returns the slot that started the current epoch.
873
+ *
874
+ * @callname: BabeApi_current_epoch_start
875
+ **/
876
+ currentEpochStart: GenericRuntimeApiMethod<() => Promise<SpConsensusSlotsSlot>>;
877
+
878
+ /**
879
+ * Returns information regarding the current epoch.
880
+ *
881
+ * @callname: BabeApi_current_epoch
882
+ **/
883
+ currentEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
884
+
885
+ /**
886
+ * Returns information regarding the next epoch (which was already
887
+ * previously announced).
888
+ *
889
+ * @callname: BabeApi_next_epoch
890
+ **/
891
+ nextEpoch: GenericRuntimeApiMethod<() => Promise<SpConsensusBabeEpoch>>;
892
+
893
+ /**
894
+ * Generates a proof of key ownership for the given authority in the
895
+ * current epoch. An example usage of this module is coupled with the
896
+ * session historical module to prove that a given authority key is
897
+ * tied to a given staking identity during a specific session. Proofs
898
+ * of key ownership are necessary for submitting equivocation reports.
899
+ * NOTE: even though the API takes a `slot` as parameter the current
900
+ * implementations ignores this parameter and instead relies on this
901
+ * method being called at the correct block height, i.e. any point at
902
+ * which the epoch for the given slot is live on-chain. Future
903
+ * implementations will instead use indexed data through an offchain
904
+ * worker, not requiring older states to be available.
905
+ *
906
+ * @callname: BabeApi_generate_key_ownership_proof
907
+ * @param {SpConsensusSlotsSlot} slot
908
+ * @param {SpConsensusBabeAppPublic} authority_id
909
+ **/
910
+ generateKeyOwnershipProof: GenericRuntimeApiMethod<
911
+ (
912
+ slot: SpConsensusSlotsSlot,
913
+ authorityId: SpConsensusBabeAppPublic,
914
+ ) => Promise<SpConsensusBabeOpaqueKeyOwnershipProof | undefined>
915
+ >;
916
+
917
+ /**
918
+ * Submits an unsigned extrinsic to report an equivocation. The caller
919
+ * must provide the equivocation proof and a key ownership proof
920
+ * (should be obtained using `generate_key_ownership_proof`). The
921
+ * extrinsic will be unsigned and should only be accepted for local
922
+ * authorship (not to be broadcast to the network). This method returns
923
+ * `None` when creation of the extrinsic fails, e.g. if equivocation
924
+ * reporting is disabled for the given runtime (i.e. this method is
925
+ * hardcoded to return `None`). Only useful in an offchain context.
926
+ *
927
+ * @callname: BabeApi_submit_report_equivocation_unsigned_extrinsic
928
+ * @param {SpConsensusSlotsEquivocationProof} equivocation_proof
929
+ * @param {SpConsensusBabeOpaqueKeyOwnershipProof} key_owner_proof
930
+ **/
931
+ submitReportEquivocationUnsignedExtrinsic: GenericRuntimeApiMethod<
932
+ (
933
+ equivocationProof: SpConsensusSlotsEquivocationProof,
934
+ keyOwnerProof: SpConsensusBabeOpaqueKeyOwnershipProof,
935
+ ) => Promise<[] | undefined>
936
+ >;
937
+
938
+ /**
939
+ * Generic runtime api call
940
+ **/
941
+ [method: string]: GenericRuntimeApiMethod;
942
+ };
943
+ /**
944
+ * @runtimeapi: AuthorityDiscoveryApi - 0x687ad44ad37f03c2
945
+ **/
946
+ authorityDiscoveryApi: {
947
+ /**
948
+ * Retrieve authority identifiers of the current and next authority set.
949
+ *
950
+ * @callname: AuthorityDiscoveryApi_authorities
951
+ **/
952
+ authorities: GenericRuntimeApiMethod<() => Promise<Array<SpAuthorityDiscoveryAppPublic>>>;
953
+
954
+ /**
955
+ * Generic runtime api call
956
+ **/
957
+ [method: string]: GenericRuntimeApiMethod;
958
+ };
959
+ /**
960
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
961
+ **/
962
+ sessionKeys: {
963
+ /**
964
+ * Generate a set of session keys with optionally using the given seed.
965
+ * The keys should be stored within the keystore exposed via runtime
966
+ * externalities.
967
+ *
968
+ * The seed needs to be a valid `utf8` string.
969
+ *
970
+ * Returns the concatenated SCALE encoded public keys.
971
+ *
972
+ * @callname: SessionKeys_generate_session_keys
973
+ * @param {BytesLike | undefined} seed
974
+ **/
975
+ generateSessionKeys: GenericRuntimeApiMethod<(seed?: BytesLike | undefined) => Promise<Bytes>>;
976
+
977
+ /**
978
+ * Decode the given public session keys.
979
+ *
980
+ * Returns the list of public raw public keys + key type.
981
+ *
982
+ * @callname: SessionKeys_decode_session_keys
983
+ * @param {BytesLike} encoded
984
+ **/
985
+ decodeSessionKeys: GenericRuntimeApiMethod<
986
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
987
+ >;
988
+
989
+ /**
990
+ * Generic runtime api call
991
+ **/
992
+ [method: string]: GenericRuntimeApiMethod;
993
+ };
994
+ /**
995
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
996
+ **/
997
+ accountNonceApi: {
998
+ /**
999
+ * Get current account nonce of given `AccountId`.
1000
+ *
1001
+ * @callname: AccountNonceApi_account_nonce
1002
+ * @param {AccountId32Like} account
1003
+ **/
1004
+ accountNonce: GenericRuntimeApiMethod<(account: AccountId32Like) => Promise<number>>;
1005
+
1006
+ /**
1007
+ * Generic runtime api call
1008
+ **/
1009
+ [method: string]: GenericRuntimeApiMethod;
1010
+ };
1011
+ /**
1012
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
1013
+ **/
1014
+ transactionPaymentApi: {
1015
+ /**
1016
+ *
1017
+ * @callname: TransactionPaymentApi_query_info
1018
+ * @param {UncheckedExtrinsicLike} uxt
1019
+ * @param {number} len
1020
+ **/
1021
+ queryInfo: GenericRuntimeApiMethod<
1022
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
1023
+ >;
1024
+
1025
+ /**
1026
+ *
1027
+ * @callname: TransactionPaymentApi_query_fee_details
1028
+ * @param {UncheckedExtrinsicLike} uxt
1029
+ * @param {number} len
1030
+ **/
1031
+ queryFeeDetails: GenericRuntimeApiMethod<
1032
+ (uxt: UncheckedExtrinsicLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
1033
+ >;
1034
+
1035
+ /**
1036
+ *
1037
+ * @callname: TransactionPaymentApi_query_weight_to_fee
1038
+ * @param {SpWeightsWeightV2Weight} weight
1039
+ **/
1040
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
1041
+
1042
+ /**
1043
+ *
1044
+ * @callname: TransactionPaymentApi_query_length_to_fee
1045
+ * @param {number} length
1046
+ **/
1047
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
1048
+
1049
+ /**
1050
+ * Generic runtime api call
1051
+ **/
1052
+ [method: string]: GenericRuntimeApiMethod;
1053
+ };
1054
+ /**
1055
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
1056
+ **/
1057
+ transactionPaymentCallApi: {
1058
+ /**
1059
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
1060
+ *
1061
+ * @callname: TransactionPaymentCallApi_query_call_info
1062
+ * @param {PolkadotRuntimeRuntimeCallLike} call
1063
+ * @param {number} len
1064
+ **/
1065
+ queryCallInfo: GenericRuntimeApiMethod<
1066
+ (call: PolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
1067
+ >;
1068
+
1069
+ /**
1070
+ * Query fee details of a given encoded `Call`.
1071
+ *
1072
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
1073
+ * @param {PolkadotRuntimeRuntimeCallLike} call
1074
+ * @param {number} len
1075
+ **/
1076
+ queryCallFeeDetails: GenericRuntimeApiMethod<
1077
+ (call: PolkadotRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
1078
+ >;
1079
+
1080
+ /**
1081
+ * Query the output of the current `WeightToFee` given some input.
1082
+ *
1083
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
1084
+ * @param {SpWeightsWeightV2Weight} weight
1085
+ **/
1086
+ queryWeightToFee: GenericRuntimeApiMethod<(weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
1087
+
1088
+ /**
1089
+ * Query the output of the current `LengthToFee` given some input.
1090
+ *
1091
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
1092
+ * @param {number} length
1093
+ **/
1094
+ queryLengthToFee: GenericRuntimeApiMethod<(length: number) => Promise<bigint>>;
1095
+
1096
+ /**
1097
+ * Generic runtime api call
1098
+ **/
1099
+ [method: string]: GenericRuntimeApiMethod;
1100
+ };
1101
+ /**
1102
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
1103
+ **/
1104
+ genesisBuilder: {
1105
+ /**
1106
+ * Creates the default `GenesisConfig` and returns it as a JSON blob.
1107
+ *
1108
+ * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
1109
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
1110
+ *
1111
+ * @callname: GenesisBuilder_create_default_config
1112
+ **/
1113
+ createDefaultConfig: GenericRuntimeApiMethod<() => Promise<Bytes>>;
1114
+
1115
+ /**
1116
+ * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
1117
+ *
1118
+ * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
1119
+ * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
1120
+ * It is recommended to log any errors encountered during the process.
1121
+ *
1122
+ * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
1123
+ *
1124
+ * @callname: GenesisBuilder_build_config
1125
+ * @param {BytesLike} json
1126
+ **/
1127
+ buildConfig: GenericRuntimeApiMethod<(json: BytesLike) => Promise<Result<[], string>>>;
1128
+
1129
+ /**
1130
+ * Generic runtime api call
1131
+ **/
1132
+ [method: string]: GenericRuntimeApiMethod;
1133
+ };
1134
+ }