@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,803 @@
1
+ // Generated by @dedot/codegen
2
+
3
+ import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
4
+ import type {
5
+ RuntimeVersion,
6
+ Header,
7
+ DispatchError,
8
+ Result,
9
+ H256,
10
+ AccountId32Like,
11
+ Bytes,
12
+ BytesLike,
13
+ H160,
14
+ U256,
15
+ Permill,
16
+ } from 'dedot/codecs';
17
+ import type {
18
+ SpRuntimeBlock,
19
+ SpCoreOpaqueMetadata,
20
+ SpConsensusSlotsSlotDuration,
21
+ SpConsensusAuraSr25519AppSr25519Public,
22
+ SpRuntimeTransactionValidityTransactionValidityError,
23
+ FpSelfContainedUncheckedExtrinsic,
24
+ SpInherentsInherentData,
25
+ SpInherentsCheckInherentsResult,
26
+ SpRuntimeTransactionValidityValidTransaction,
27
+ SpRuntimeTransactionValidityTransactionSource,
28
+ PalletTransactionPaymentRuntimeDispatchInfo,
29
+ PalletTransactionPaymentFeeDetails,
30
+ SpWeightsWeightV2Weight,
31
+ AstarRuntimeRuntimeCallLike,
32
+ SpCoreCryptoKeyTypeId,
33
+ CumulusPrimitivesCoreCollationInfo,
34
+ EvmBackendBasic,
35
+ FpEvmExecutionInfoV2,
36
+ FpEvmExecutionInfoV2H160,
37
+ EthereumBlock,
38
+ EthereumReceiptReceiptV3,
39
+ FpRpcTransactionStatus,
40
+ EthereumTransactionTransactionV2,
41
+ PalletContractsPrimitivesContractResult,
42
+ PalletContractsPrimitivesContractResultResult,
43
+ PalletContractsPrimitivesCode,
44
+ PalletContractsPrimitivesCodeUploadReturnValue,
45
+ PalletContractsWasmDeterminism,
46
+ PalletContractsPrimitivesContractAccessError,
47
+ } from './types';
48
+
49
+ export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
50
+ /**
51
+ * @runtimeapi: Core - 0xdf6acb689907609b
52
+ **/
53
+ core: {
54
+ /**
55
+ * Returns the version of the runtime.
56
+ *
57
+ * @callname: Core_version
58
+ **/
59
+ version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
60
+
61
+ /**
62
+ * Execute the given block.
63
+ *
64
+ * @callname: Core_execute_block
65
+ * @param {SpRuntimeBlock} block
66
+ **/
67
+ executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
68
+
69
+ /**
70
+ * Initialize a block with the given header.
71
+ *
72
+ * @callname: Core_initialize_block
73
+ * @param {Header} header
74
+ **/
75
+ initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
76
+
77
+ /**
78
+ * Generic runtime api call
79
+ **/
80
+ [method: string]: GenericRuntimeApiMethod<Rv>;
81
+ };
82
+ /**
83
+ * @runtimeapi: Metadata - 0x37e397fc7c91f5e4
84
+ **/
85
+ metadata: {
86
+ /**
87
+ * Returns the metadata of a runtime.
88
+ *
89
+ * @callname: Metadata_metadata
90
+ **/
91
+ metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
92
+
93
+ /**
94
+ * Returns the metadata at a given version.
95
+ *
96
+ * If the given `version` isn't supported, this will return `None`.
97
+ * Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
98
+ *
99
+ * @callname: Metadata_metadata_at_version
100
+ * @param {number} version
101
+ **/
102
+ metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
103
+
104
+ /**
105
+ * Returns the supported metadata versions.
106
+ *
107
+ * This can be used to call `metadata_at_version`.
108
+ *
109
+ * @callname: Metadata_metadata_versions
110
+ **/
111
+ metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
112
+
113
+ /**
114
+ * Generic runtime api call
115
+ **/
116
+ [method: string]: GenericRuntimeApiMethod<Rv>;
117
+ };
118
+ /**
119
+ * @runtimeapi: AuraApi - 0xdd718d5cc53262d4
120
+ **/
121
+ auraApi: {
122
+ /**
123
+ * Returns the slot duration for Aura.
124
+ *
125
+ * Currently, only the value provided by this type at genesis will be used.
126
+ *
127
+ * @callname: AuraApi_slot_duration
128
+ **/
129
+ slotDuration: GenericRuntimeApiMethod<Rv, () => Promise<SpConsensusSlotsSlotDuration>>;
130
+
131
+ /**
132
+ * Return the current set of authorities.
133
+ *
134
+ * @callname: AuraApi_authorities
135
+ **/
136
+ authorities: GenericRuntimeApiMethod<Rv, () => Promise<Array<SpConsensusAuraSr25519AppSr25519Public>>>;
137
+
138
+ /**
139
+ * Generic runtime api call
140
+ **/
141
+ [method: string]: GenericRuntimeApiMethod<Rv>;
142
+ };
143
+ /**
144
+ * @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
145
+ **/
146
+ blockBuilder: {
147
+ /**
148
+ * Apply the given extrinsic.
149
+ *
150
+ * Returns an inclusion outcome which specifies if this extrinsic is included in
151
+ * this block or not.
152
+ *
153
+ * @callname: BlockBuilder_apply_extrinsic
154
+ * @param {FpSelfContainedUncheckedExtrinsic} extrinsic
155
+ **/
156
+ applyExtrinsic: GenericRuntimeApiMethod<
157
+ Rv,
158
+ (
159
+ extrinsic: FpSelfContainedUncheckedExtrinsic,
160
+ ) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
161
+ >;
162
+
163
+ /**
164
+ * Finish the current block.
165
+ *
166
+ * @callname: BlockBuilder_finalize_block
167
+ **/
168
+ finalizeBlock: GenericRuntimeApiMethod<Rv, () => 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
+ Rv,
178
+ (inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
179
+ >;
180
+
181
+ /**
182
+ * Check that the inherents are valid. The inherent data will vary from chain to chain.
183
+ *
184
+ * @callname: BlockBuilder_check_inherents
185
+ * @param {SpRuntimeBlock} block
186
+ * @param {SpInherentsInherentData} data
187
+ **/
188
+ checkInherents: GenericRuntimeApiMethod<
189
+ Rv,
190
+ (block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
191
+ >;
192
+
193
+ /**
194
+ * Generic runtime api call
195
+ **/
196
+ [method: string]: GenericRuntimeApiMethod<Rv>;
197
+ };
198
+ /**
199
+ * @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
200
+ **/
201
+ taggedTransactionQueue: {
202
+ /**
203
+ * Validate the transaction.
204
+ *
205
+ * This method is invoked by the transaction pool to learn details about given transaction.
206
+ * The implementation should make sure to verify the correctness of the transaction
207
+ * against current state. The given `block_hash` corresponds to the hash of the block
208
+ * that is used as current state.
209
+ *
210
+ * Note that this call may be performed by the pool multiple times and transactions
211
+ * might be verified in any possible order.
212
+ *
213
+ * @callname: TaggedTransactionQueue_validate_transaction
214
+ * @param {SpRuntimeTransactionValidityTransactionSource} source
215
+ * @param {FpSelfContainedUncheckedExtrinsic} tx
216
+ * @param {H256} block_hash
217
+ **/
218
+ validateTransaction: GenericRuntimeApiMethod<
219
+ Rv,
220
+ (
221
+ source: SpRuntimeTransactionValidityTransactionSource,
222
+ tx: FpSelfContainedUncheckedExtrinsic,
223
+ blockHash: H256,
224
+ ) => Promise<
225
+ Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
226
+ >
227
+ >;
228
+
229
+ /**
230
+ * Generic runtime api call
231
+ **/
232
+ [method: string]: GenericRuntimeApiMethod<Rv>;
233
+ };
234
+ /**
235
+ * @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
236
+ **/
237
+ offchainWorkerApi: {
238
+ /**
239
+ * Starts the off-chain task for given block header.
240
+ *
241
+ * @callname: OffchainWorkerApi_offchain_worker
242
+ * @param {Header} header
243
+ **/
244
+ offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
245
+
246
+ /**
247
+ * Generic runtime api call
248
+ **/
249
+ [method: string]: GenericRuntimeApiMethod<Rv>;
250
+ };
251
+ /**
252
+ * @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
253
+ **/
254
+ accountNonceApi: {
255
+ /**
256
+ * Get current account nonce of given `AccountId`.
257
+ *
258
+ * @callname: AccountNonceApi_account_nonce
259
+ * @param {AccountId32Like} account
260
+ **/
261
+ accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId32Like) => Promise<number>>;
262
+
263
+ /**
264
+ * Generic runtime api call
265
+ **/
266
+ [method: string]: GenericRuntimeApiMethod<Rv>;
267
+ };
268
+ /**
269
+ * @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
270
+ **/
271
+ transactionPaymentApi: {
272
+ /**
273
+ *
274
+ * @callname: TransactionPaymentApi_query_info
275
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
276
+ * @param {number} len
277
+ **/
278
+ queryInfo: GenericRuntimeApiMethod<
279
+ Rv,
280
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
281
+ >;
282
+
283
+ /**
284
+ *
285
+ * @callname: TransactionPaymentApi_query_fee_details
286
+ * @param {FpSelfContainedUncheckedExtrinsic} uxt
287
+ * @param {number} len
288
+ **/
289
+ queryFeeDetails: GenericRuntimeApiMethod<
290
+ Rv,
291
+ (uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
292
+ >;
293
+
294
+ /**
295
+ *
296
+ * @callname: TransactionPaymentApi_query_weight_to_fee
297
+ * @param {SpWeightsWeightV2Weight} weight
298
+ **/
299
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
300
+
301
+ /**
302
+ *
303
+ * @callname: TransactionPaymentApi_query_length_to_fee
304
+ * @param {number} length
305
+ **/
306
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
307
+
308
+ /**
309
+ * Generic runtime api call
310
+ **/
311
+ [method: string]: GenericRuntimeApiMethod<Rv>;
312
+ };
313
+ /**
314
+ * @runtimeapi: TransactionPaymentCallApi - 0xf3ff14d5ab527059
315
+ **/
316
+ transactionPaymentCallApi: {
317
+ /**
318
+ * Query information of a dispatch class, weight, and fee of a given encoded `Call`.
319
+ *
320
+ * @callname: TransactionPaymentCallApi_query_call_info
321
+ * @param {AstarRuntimeRuntimeCallLike} call
322
+ * @param {number} len
323
+ **/
324
+ queryCallInfo: GenericRuntimeApiMethod<
325
+ Rv,
326
+ (call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
327
+ >;
328
+
329
+ /**
330
+ * Query fee details of a given encoded `Call`.
331
+ *
332
+ * @callname: TransactionPaymentCallApi_query_call_fee_details
333
+ * @param {AstarRuntimeRuntimeCallLike} call
334
+ * @param {number} len
335
+ **/
336
+ queryCallFeeDetails: GenericRuntimeApiMethod<
337
+ Rv,
338
+ (call: AstarRuntimeRuntimeCallLike, len: number) => Promise<PalletTransactionPaymentFeeDetails>
339
+ >;
340
+
341
+ /**
342
+ * Query the output of the current `WeightToFee` given some input.
343
+ *
344
+ * @callname: TransactionPaymentCallApi_query_weight_to_fee
345
+ * @param {SpWeightsWeightV2Weight} weight
346
+ **/
347
+ queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
348
+
349
+ /**
350
+ * Query the output of the current `LengthToFee` given some input.
351
+ *
352
+ * @callname: TransactionPaymentCallApi_query_length_to_fee
353
+ * @param {number} length
354
+ **/
355
+ queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
356
+
357
+ /**
358
+ * Generic runtime api call
359
+ **/
360
+ [method: string]: GenericRuntimeApiMethod<Rv>;
361
+ };
362
+ /**
363
+ * @runtimeapi: SessionKeys - 0xab3c0572291feb8b
364
+ **/
365
+ sessionKeys: {
366
+ /**
367
+ * Generate a set of session keys with optionally using the given seed.
368
+ * The keys should be stored within the keystore exposed via runtime
369
+ * externalities.
370
+ *
371
+ * The seed needs to be a valid `utf8` string.
372
+ *
373
+ * Returns the concatenated SCALE encoded public keys.
374
+ *
375
+ * @callname: SessionKeys_generate_session_keys
376
+ * @param {BytesLike | undefined} seed
377
+ **/
378
+ generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
379
+
380
+ /**
381
+ * Decode the given public session keys.
382
+ *
383
+ * Returns the list of public raw public keys + key type.
384
+ *
385
+ * @callname: SessionKeys_decode_session_keys
386
+ * @param {BytesLike} encoded
387
+ **/
388
+ decodeSessionKeys: GenericRuntimeApiMethod<
389
+ Rv,
390
+ (encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
391
+ >;
392
+
393
+ /**
394
+ * Generic runtime api call
395
+ **/
396
+ [method: string]: GenericRuntimeApiMethod<Rv>;
397
+ };
398
+ /**
399
+ * @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
400
+ **/
401
+ collectCollationInfo: {
402
+ /**
403
+ * Collect information about a collation.
404
+ *
405
+ * The given `header` is the header of the built block for that
406
+ * we are collecting the collation info for.
407
+ *
408
+ * @callname: CollectCollationInfo_collect_collation_info
409
+ * @param {Header} header
410
+ **/
411
+ collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
412
+
413
+ /**
414
+ * Generic runtime api call
415
+ **/
416
+ [method: string]: GenericRuntimeApiMethod<Rv>;
417
+ };
418
+ /**
419
+ * @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
420
+ **/
421
+ ethereumRuntimeRPCApi: {
422
+ /**
423
+ * Returns runtime defined pallet_evm::ChainId.
424
+ *
425
+ * @callname: EthereumRuntimeRPCApi_chain_id
426
+ **/
427
+ chainId: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
428
+
429
+ /**
430
+ * Returns pallet_evm::Accounts by address.
431
+ *
432
+ * @callname: EthereumRuntimeRPCApi_account_basic
433
+ * @param {H160} address
434
+ **/
435
+ accountBasic: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<EvmBackendBasic>>;
436
+
437
+ /**
438
+ * Returns FixedGasPrice::min_gas_price
439
+ *
440
+ * @callname: EthereumRuntimeRPCApi_gas_price
441
+ **/
442
+ gasPrice: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
443
+
444
+ /**
445
+ * For a given account address, returns pallet_evm::AccountCodes.
446
+ *
447
+ * @callname: EthereumRuntimeRPCApi_account_code_at
448
+ * @param {H160} address
449
+ **/
450
+ accountCodeAt: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<Bytes>>;
451
+
452
+ /**
453
+ * Returns the converted FindAuthor::find_author authority id.
454
+ *
455
+ * @callname: EthereumRuntimeRPCApi_author
456
+ **/
457
+ author: GenericRuntimeApiMethod<Rv, () => Promise<H160>>;
458
+
459
+ /**
460
+ * For a given account address and index, returns pallet_evm::AccountStorages.
461
+ *
462
+ * @callname: EthereumRuntimeRPCApi_storage_at
463
+ * @param {H160} address
464
+ * @param {U256} index
465
+ **/
466
+ storageAt: GenericRuntimeApiMethod<Rv, (address: H160, index: U256) => Promise<H256>>;
467
+
468
+ /**
469
+ *
470
+ * @callname: EthereumRuntimeRPCApi_call
471
+ * @param {H160} from
472
+ * @param {H160} to
473
+ * @param {BytesLike} data
474
+ * @param {U256} value
475
+ * @param {U256} gas_limit
476
+ * @param {U256 | undefined} max_fee_per_gas
477
+ * @param {U256 | undefined} max_priority_fee_per_gas
478
+ * @param {U256 | undefined} nonce
479
+ * @param {boolean} estimate
480
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
481
+ **/
482
+ call: GenericRuntimeApiMethod<
483
+ Rv,
484
+ (
485
+ from: H160,
486
+ to: H160,
487
+ data: BytesLike,
488
+ value: U256,
489
+ gasLimit: U256,
490
+ maxFeePerGas: U256 | undefined,
491
+ maxPriorityFeePerGas: U256 | undefined,
492
+ nonce: U256 | undefined,
493
+ estimate: boolean,
494
+ accessList?: Array<[H160, Array<H256>]> | undefined,
495
+ ) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
496
+ >;
497
+
498
+ /**
499
+ *
500
+ * @callname: EthereumRuntimeRPCApi_create
501
+ * @param {H160} from
502
+ * @param {BytesLike} data
503
+ * @param {U256} value
504
+ * @param {U256} gas_limit
505
+ * @param {U256 | undefined} max_fee_per_gas
506
+ * @param {U256 | undefined} max_priority_fee_per_gas
507
+ * @param {U256 | undefined} nonce
508
+ * @param {boolean} estimate
509
+ * @param {Array<[H160, Array<H256>]> | undefined} access_list
510
+ **/
511
+ create: GenericRuntimeApiMethod<
512
+ Rv,
513
+ (
514
+ from: H160,
515
+ data: BytesLike,
516
+ value: U256,
517
+ gasLimit: U256,
518
+ maxFeePerGas: U256 | undefined,
519
+ maxPriorityFeePerGas: U256 | undefined,
520
+ nonce: U256 | undefined,
521
+ estimate: boolean,
522
+ accessList?: Array<[H160, Array<H256>]> | undefined,
523
+ ) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
524
+ >;
525
+
526
+ /**
527
+ * Return the current block.
528
+ *
529
+ * @callname: EthereumRuntimeRPCApi_current_block
530
+ **/
531
+ currentBlock: GenericRuntimeApiMethod<Rv, () => Promise<EthereumBlock | undefined>>;
532
+
533
+ /**
534
+ * Return the current receipt.
535
+ *
536
+ * @callname: EthereumRuntimeRPCApi_current_receipts
537
+ **/
538
+ currentReceipts: GenericRuntimeApiMethod<Rv, () => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
539
+
540
+ /**
541
+ * Return the current transaction status.
542
+ *
543
+ * @callname: EthereumRuntimeRPCApi_current_transaction_statuses
544
+ **/
545
+ currentTransactionStatuses: GenericRuntimeApiMethod<Rv, () => Promise<Array<FpRpcTransactionStatus> | undefined>>;
546
+
547
+ /**
548
+ *
549
+ * @callname: EthereumRuntimeRPCApi_current_all
550
+ **/
551
+ currentAll: GenericRuntimeApiMethod<
552
+ Rv,
553
+ () => Promise<
554
+ [
555
+ EthereumBlock | undefined,
556
+ Array<EthereumReceiptReceiptV3> | undefined,
557
+ Array<FpRpcTransactionStatus> | undefined,
558
+ ]
559
+ >
560
+ >;
561
+
562
+ /**
563
+ * Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
564
+ *
565
+ * @callname: EthereumRuntimeRPCApi_extrinsic_filter
566
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
567
+ **/
568
+ extrinsicFilter: GenericRuntimeApiMethod<
569
+ Rv,
570
+ (xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
571
+ >;
572
+
573
+ /**
574
+ * Return the elasticity multiplier.
575
+ *
576
+ * @callname: EthereumRuntimeRPCApi_elasticity
577
+ **/
578
+ elasticity: GenericRuntimeApiMethod<Rv, () => Promise<Permill | undefined>>;
579
+
580
+ /**
581
+ * Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
582
+ * is supported.
583
+ *
584
+ * @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
585
+ **/
586
+ gasLimitMultiplierSupport: GenericRuntimeApiMethod<Rv, () => Promise<[]>>;
587
+
588
+ /**
589
+ * Return the pending block.
590
+ *
591
+ * @callname: EthereumRuntimeRPCApi_pending_block
592
+ * @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
593
+ **/
594
+ pendingBlock: GenericRuntimeApiMethod<
595
+ Rv,
596
+ (
597
+ xts: Array<FpSelfContainedUncheckedExtrinsic>,
598
+ ) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
599
+ >;
600
+
601
+ /**
602
+ * Generic runtime api call
603
+ **/
604
+ [method: string]: GenericRuntimeApiMethod<Rv>;
605
+ };
606
+ /**
607
+ * @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
608
+ **/
609
+ convertTransactionRuntimeApi: {
610
+ /**
611
+ *
612
+ * @callname: ConvertTransactionRuntimeApi_convert_transaction
613
+ * @param {EthereumTransactionTransactionV2} transaction
614
+ **/
615
+ convertTransaction: GenericRuntimeApiMethod<
616
+ Rv,
617
+ (transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
618
+ >;
619
+
620
+ /**
621
+ * Generic runtime api call
622
+ **/
623
+ [method: string]: GenericRuntimeApiMethod<Rv>;
624
+ };
625
+ /**
626
+ * @runtimeapi: ContractsApi - 0x68b66ba122c93fa7
627
+ **/
628
+ contractsApi: {
629
+ /**
630
+ * Perform a call from a specified account to a given contract.
631
+ *
632
+ * See [`crate::Pallet::bare_call`].
633
+ *
634
+ * @callname: ContractsApi_call
635
+ * @param {AccountId32Like} origin
636
+ * @param {AccountId32Like} dest
637
+ * @param {bigint} value
638
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
639
+ * @param {bigint | undefined} storage_deposit_limit
640
+ * @param {BytesLike} input_data
641
+ **/
642
+ call: GenericRuntimeApiMethod<
643
+ Rv,
644
+ (
645
+ origin: AccountId32Like,
646
+ dest: AccountId32Like,
647
+ value: bigint,
648
+ gasLimit: SpWeightsWeightV2Weight | undefined,
649
+ storageDepositLimit: bigint | undefined,
650
+ inputData: BytesLike,
651
+ ) => Promise<PalletContractsPrimitivesContractResult>
652
+ >;
653
+
654
+ /**
655
+ * Instantiate a new contract.
656
+ *
657
+ * See `[crate::Pallet::bare_instantiate]`.
658
+ *
659
+ * @callname: ContractsApi_instantiate
660
+ * @param {AccountId32Like} origin
661
+ * @param {bigint} value
662
+ * @param {SpWeightsWeightV2Weight | undefined} gas_limit
663
+ * @param {bigint | undefined} storage_deposit_limit
664
+ * @param {PalletContractsPrimitivesCode} code
665
+ * @param {BytesLike} data
666
+ * @param {BytesLike} salt
667
+ **/
668
+ instantiate: GenericRuntimeApiMethod<
669
+ Rv,
670
+ (
671
+ origin: AccountId32Like,
672
+ value: bigint,
673
+ gasLimit: SpWeightsWeightV2Weight | undefined,
674
+ storageDepositLimit: bigint | undefined,
675
+ code: PalletContractsPrimitivesCode,
676
+ data: BytesLike,
677
+ salt: BytesLike,
678
+ ) => Promise<PalletContractsPrimitivesContractResultResult>
679
+ >;
680
+
681
+ /**
682
+ * Upload new code without instantiating a contract from it.
683
+ *
684
+ * See [`crate::Pallet::bare_upload_code`].
685
+ *
686
+ * @callname: ContractsApi_upload_code
687
+ * @param {AccountId32Like} origin
688
+ * @param {BytesLike} code
689
+ * @param {bigint | undefined} storage_deposit_limit
690
+ * @param {PalletContractsWasmDeterminism} determinism
691
+ **/
692
+ uploadCode: GenericRuntimeApiMethod<
693
+ Rv,
694
+ (
695
+ origin: AccountId32Like,
696
+ code: BytesLike,
697
+ storageDepositLimit: bigint | undefined,
698
+ determinism: PalletContractsWasmDeterminism,
699
+ ) => Promise<Result<PalletContractsPrimitivesCodeUploadReturnValue, DispatchError>>
700
+ >;
701
+
702
+ /**
703
+ * Query a given storage key in a given contract.
704
+ *
705
+ * Returns `Ok(Some(Vec<u8>))` if the storage value exists under the given key in the
706
+ * specified account and `Ok(None)` if it doesn't. If the account specified by the address
707
+ * doesn't exist, or doesn't have a contract then `Err` is returned.
708
+ *
709
+ * @callname: ContractsApi_get_storage
710
+ * @param {AccountId32Like} address
711
+ * @param {BytesLike} key
712
+ **/
713
+ getStorage: GenericRuntimeApiMethod<
714
+ Rv,
715
+ (
716
+ address: AccountId32Like,
717
+ key: BytesLike,
718
+ ) => Promise<Result<Bytes | undefined, PalletContractsPrimitivesContractAccessError>>
719
+ >;
720
+
721
+ /**
722
+ * Generic runtime api call
723
+ **/
724
+ [method: string]: GenericRuntimeApiMethod<Rv>;
725
+ };
726
+ /**
727
+ * @runtimeapi: DappStakingApi - 0xe8accb82fb152951
728
+ **/
729
+ dappStakingApi: {
730
+ /**
731
+ * How many periods are there in one cycle.
732
+ *
733
+ * @callname: DappStakingApi_periods_per_cycle
734
+ **/
735
+ periodsPerCycle: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
736
+
737
+ /**
738
+ * For how many standard era lengths does the voting subperiod last.
739
+ *
740
+ * @callname: DappStakingApi_eras_per_voting_subperiod
741
+ **/
742
+ erasPerVotingSubperiod: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
743
+
744
+ /**
745
+ * How many standard eras are there in the build&earn subperiod.
746
+ *
747
+ * @callname: DappStakingApi_eras_per_build_and_earn_subperiod
748
+ **/
749
+ erasPerBuildAndEarnSubperiod: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
750
+
751
+ /**
752
+ * How many blocks are there per standard era.
753
+ *
754
+ * @callname: DappStakingApi_blocks_per_era
755
+ **/
756
+ blocksPerEra: GenericRuntimeApiMethod<Rv, () => Promise<number>>;
757
+
758
+ /**
759
+ * Get dApp tier assignment for the given dApp.
760
+ *
761
+ * @callname: DappStakingApi_get_dapp_tier_assignment
762
+ **/
763
+ getDappTierAssignment: GenericRuntimeApiMethod<Rv, () => Promise<Array<[number, number]>>>;
764
+
765
+ /**
766
+ * Generic runtime api call
767
+ **/
768
+ [method: string]: GenericRuntimeApiMethod<Rv>;
769
+ };
770
+ /**
771
+ * @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
772
+ **/
773
+ genesisBuilder: {
774
+ /**
775
+ * Creates the default `GenesisConfig` and returns it as a JSON blob.
776
+ *
777
+ * This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
778
+ * blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
779
+ *
780
+ * @callname: GenesisBuilder_create_default_config
781
+ **/
782
+ createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
783
+
784
+ /**
785
+ * Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
786
+ *
787
+ * This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
788
+ * If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
789
+ * It is recommended to log any errors encountered during the process.
790
+ *
791
+ * Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
792
+ *
793
+ * @callname: GenesisBuilder_build_config
794
+ * @param {BytesLike} json
795
+ **/
796
+ buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
797
+
798
+ /**
799
+ * Generic runtime api call
800
+ **/
801
+ [method: string]: GenericRuntimeApiMethod<Rv>;
802
+ };
803
+ }