@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.
- package/LICENSE +201 -0
- package/README.md +5 -0
- package/aleph/consts.d.ts +676 -0
- package/aleph/errors.d.ts +1054 -0
- package/aleph/events.d.ts +1201 -0
- package/aleph/index.d.ts +27 -0
- package/aleph/json-rpc.d.ts +85 -0
- package/aleph/query.d.ts +1573 -0
- package/aleph/runtime.d.ts +596 -0
- package/aleph/tx.d.ts +3440 -0
- package/aleph/types.d.ts +3951 -0
- package/astar/consts.d.ts +737 -0
- package/astar/errors.d.ts +1508 -0
- package/astar/events.d.ts +1878 -0
- package/astar/index.d.ts +27 -0
- package/astar/json-rpc.d.ts +131 -0
- package/astar/query.d.ts +1851 -0
- package/astar/runtime.d.ts +803 -0
- package/astar/tx.d.ts +4516 -0
- package/astar/types.d.ts +6141 -0
- package/index.d.ts +11 -0
- package/index.js +1 -0
- package/index.ts +11 -0
- package/kusama/consts.d.ts +1578 -0
- package/kusama/errors.d.ts +3152 -0
- package/kusama/events.d.ts +3579 -0
- package/kusama/index.d.ts +27 -0
- package/kusama/json-rpc.d.ts +103 -0
- package/kusama/query.d.ts +4229 -0
- package/kusama/runtime.d.ts +1196 -0
- package/kusama/tx.d.ts +9040 -0
- package/kusama/types.d.ts +11369 -0
- package/kusamaAssetHub/consts.d.ts +759 -0
- package/kusamaAssetHub/errors.d.ts +1494 -0
- package/kusamaAssetHub/events.d.ts +2491 -0
- package/kusamaAssetHub/index.d.ts +27 -0
- package/kusamaAssetHub/json-rpc.d.ts +89 -0
- package/kusamaAssetHub/query.d.ts +1662 -0
- package/kusamaAssetHub/runtime.d.ts +555 -0
- package/kusamaAssetHub/tx.d.ts +6192 -0
- package/kusamaAssetHub/types.d.ts +6831 -0
- package/moonbeam/consts.d.ts +1010 -0
- package/moonbeam/errors.d.ts +1932 -0
- package/moonbeam/events.d.ts +2928 -0
- package/moonbeam/index.d.ts +27 -0
- package/moonbeam/json-rpc.d.ts +137 -0
- package/moonbeam/query.d.ts +2282 -0
- package/moonbeam/runtime.d.ts +724 -0
- package/moonbeam/tx.d.ts +6222 -0
- package/moonbeam/types.d.ts +8165 -0
- package/package.json +25 -0
- package/polkadot/consts.d.ts +1313 -0
- package/polkadot/errors.d.ts +2575 -0
- package/polkadot/events.d.ts +2757 -0
- package/polkadot/index.d.ts +27 -0
- package/polkadot/json-rpc.d.ts +103 -0
- package/polkadot/query.d.ts +3693 -0
- package/polkadot/runtime.d.ts +1196 -0
- package/polkadot/tx.d.ts +7706 -0
- package/polkadot/types.d.ts +9893 -0
- package/polkadotAssetHub/consts.d.ts +724 -0
- package/polkadotAssetHub/errors.d.ts +1465 -0
- package/polkadotAssetHub/events.d.ts +2462 -0
- package/polkadotAssetHub/index.d.ts +27 -0
- package/polkadotAssetHub/json-rpc.d.ts +89 -0
- package/polkadotAssetHub/query.d.ts +1640 -0
- package/polkadotAssetHub/runtime.d.ts +558 -0
- package/polkadotAssetHub/tx.d.ts +6121 -0
- package/polkadotAssetHub/types.d.ts +6739 -0
- package/rococo/consts.d.ts +1423 -0
- package/rococo/errors.d.ts +2783 -0
- package/rococo/events.d.ts +3361 -0
- package/rococo/index.d.ts +27 -0
- package/rococo/json-rpc.d.ts +103 -0
- package/rococo/query.d.ts +3561 -0
- package/rococo/runtime.d.ts +1257 -0
- package/rococo/tx.d.ts +10721 -0
- package/rococo/types.d.ts +14828 -0
- package/rococoAssetHub/consts.d.ts +787 -0
- package/rococoAssetHub/errors.d.ts +1523 -0
- package/rococoAssetHub/events.d.ts +2517 -0
- package/rococoAssetHub/index.d.ts +27 -0
- package/rococoAssetHub/json-rpc.d.ts +89 -0
- package/rococoAssetHub/query.d.ts +1682 -0
- package/rococoAssetHub/runtime.d.ts +704 -0
- package/rococoAssetHub/tx.d.ts +9013 -0
- package/rococoAssetHub/types.d.ts +12352 -0
- package/substrate/consts.d.ts +2223 -0
- package/substrate/errors.d.ts +4023 -0
- package/substrate/events.d.ts +5430 -0
- package/substrate/index.d.ts +27 -0
- package/substrate/json-rpc.d.ts +101 -0
- package/substrate/query.d.ts +4083 -0
- package/substrate/runtime.d.ts +971 -0
- package/substrate/tx.d.ts +12501 -0
- package/substrate/types.d.ts +13380 -0
- package/westendAssetHub/consts.d.ts +787 -0
- package/westendAssetHub/errors.d.ts +1523 -0
- package/westendAssetHub/events.d.ts +2477 -0
- package/westendAssetHub/index.d.ts +27 -0
- package/westendAssetHub/json-rpc.d.ts +89 -0
- package/westendAssetHub/query.d.ts +1656 -0
- package/westendAssetHub/runtime.d.ts +652 -0
- package/westendAssetHub/tx.d.ts +8984 -0
- package/westendAssetHub/types.d.ts +12292 -0
|
@@ -0,0 +1,724 @@
|
|
|
1
|
+
// Generated by @dedot/codegen
|
|
2
|
+
|
|
3
|
+
import type { GenericRuntimeApis, GenericRuntimeApiMethod, RpcVersion } from 'dedot/types';
|
|
4
|
+
import type {
|
|
5
|
+
Result,
|
|
6
|
+
H256,
|
|
7
|
+
RuntimeVersion,
|
|
8
|
+
Header,
|
|
9
|
+
DispatchError,
|
|
10
|
+
Bytes,
|
|
11
|
+
BytesLike,
|
|
12
|
+
AccountId20Like,
|
|
13
|
+
H160,
|
|
14
|
+
U256,
|
|
15
|
+
Permill,
|
|
16
|
+
} from 'dedot/codecs';
|
|
17
|
+
import type {
|
|
18
|
+
SpRuntimeTransactionValidityValidTransaction,
|
|
19
|
+
SpRuntimeTransactionValidityTransactionValidityError,
|
|
20
|
+
SpRuntimeTransactionValidityTransactionSource,
|
|
21
|
+
FpSelfContainedUncheckedExtrinsic,
|
|
22
|
+
SpConsensusSlotsSlot,
|
|
23
|
+
SpRuntimeBlock,
|
|
24
|
+
SpCoreOpaqueMetadata,
|
|
25
|
+
SpInherentsInherentData,
|
|
26
|
+
SpInherentsCheckInherentsResult,
|
|
27
|
+
SpCoreCryptoKeyTypeId,
|
|
28
|
+
EthereumTransactionTransactionV2,
|
|
29
|
+
MoonbeamRpcPrimitivesTxpoolTxPoolResponse,
|
|
30
|
+
EvmBackendBasic,
|
|
31
|
+
FpEvmExecutionInfoV2,
|
|
32
|
+
FpEvmExecutionInfoV2H160,
|
|
33
|
+
EthereumBlock,
|
|
34
|
+
EthereumReceiptReceiptV3,
|
|
35
|
+
FpRpcTransactionStatus,
|
|
36
|
+
PalletTransactionPaymentRuntimeDispatchInfo,
|
|
37
|
+
PalletTransactionPaymentFeeDetails,
|
|
38
|
+
SpWeightsWeightV2Weight,
|
|
39
|
+
NimbusPrimitivesNimbusCryptoPublic,
|
|
40
|
+
CumulusPrimitivesCoreCollationInfo,
|
|
41
|
+
SessionKeysPrimitivesVrfVrfCryptoPublic,
|
|
42
|
+
} from './types';
|
|
43
|
+
|
|
44
|
+
export interface RuntimeApis<Rv extends RpcVersion> extends GenericRuntimeApis<Rv> {
|
|
45
|
+
/**
|
|
46
|
+
* @runtimeapi: TaggedTransactionQueue - 0xd2bc9897eed08f15
|
|
47
|
+
**/
|
|
48
|
+
taggedTransactionQueue: {
|
|
49
|
+
/**
|
|
50
|
+
* Validate the transaction.
|
|
51
|
+
*
|
|
52
|
+
* This method is invoked by the transaction pool to learn details about given transaction.
|
|
53
|
+
* The implementation should make sure to verify the correctness of the transaction
|
|
54
|
+
* against current state. The given `block_hash` corresponds to the hash of the block
|
|
55
|
+
* that is used as current state.
|
|
56
|
+
*
|
|
57
|
+
* Note that this call may be performed by the pool multiple times and transactions
|
|
58
|
+
* might be verified in any possible order.
|
|
59
|
+
*
|
|
60
|
+
* @callname: TaggedTransactionQueue_validate_transaction
|
|
61
|
+
* @param {SpRuntimeTransactionValidityTransactionSource} source
|
|
62
|
+
* @param {FpSelfContainedUncheckedExtrinsic} tx
|
|
63
|
+
* @param {H256} block_hash
|
|
64
|
+
**/
|
|
65
|
+
validateTransaction: GenericRuntimeApiMethod<
|
|
66
|
+
Rv,
|
|
67
|
+
(
|
|
68
|
+
source: SpRuntimeTransactionValidityTransactionSource,
|
|
69
|
+
tx: FpSelfContainedUncheckedExtrinsic,
|
|
70
|
+
blockHash: H256,
|
|
71
|
+
) => Promise<
|
|
72
|
+
Result<SpRuntimeTransactionValidityValidTransaction, SpRuntimeTransactionValidityTransactionValidityError>
|
|
73
|
+
>
|
|
74
|
+
>;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Generic runtime api call
|
|
78
|
+
**/
|
|
79
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* @runtimeapi: UnincludedSegmentApi - 0xd0399cd053adda2b
|
|
83
|
+
**/
|
|
84
|
+
unincludedSegmentApi: {
|
|
85
|
+
/**
|
|
86
|
+
* Whether it is legal to extend the chain, assuming the given block is the most
|
|
87
|
+
* recently included one as-of the relay parent that will be built against, and
|
|
88
|
+
* the given slot.
|
|
89
|
+
*
|
|
90
|
+
* This should be consistent with the logic the runtime uses when validating blocks to
|
|
91
|
+
* avoid issues.
|
|
92
|
+
*
|
|
93
|
+
* When the unincluded segment is empty, i.e. `included_hash == at`, where at is the block
|
|
94
|
+
* whose state we are querying against, this must always return `true` as long as the slot
|
|
95
|
+
* is more recent than the included block itself.
|
|
96
|
+
*
|
|
97
|
+
* @callname: UnincludedSegmentApi_can_build_upon
|
|
98
|
+
* @param {H256} included_hash
|
|
99
|
+
* @param {SpConsensusSlotsSlot} slot
|
|
100
|
+
**/
|
|
101
|
+
canBuildUpon: GenericRuntimeApiMethod<Rv, (includedHash: H256, slot: SpConsensusSlotsSlot) => Promise<boolean>>;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Generic runtime api call
|
|
105
|
+
**/
|
|
106
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @runtimeapi: Core - 0xdf6acb689907609b
|
|
110
|
+
**/
|
|
111
|
+
core: {
|
|
112
|
+
/**
|
|
113
|
+
* Returns the version of the runtime.
|
|
114
|
+
*
|
|
115
|
+
* @callname: Core_version
|
|
116
|
+
**/
|
|
117
|
+
version: GenericRuntimeApiMethod<Rv, () => Promise<RuntimeVersion>>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Execute the given block.
|
|
121
|
+
*
|
|
122
|
+
* @callname: Core_execute_block
|
|
123
|
+
* @param {SpRuntimeBlock} block
|
|
124
|
+
**/
|
|
125
|
+
executeBlock: GenericRuntimeApiMethod<Rv, (block: SpRuntimeBlock) => Promise<[]>>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Initialize a block with the given header.
|
|
129
|
+
*
|
|
130
|
+
* @callname: Core_initialize_block
|
|
131
|
+
* @param {Header} header
|
|
132
|
+
**/
|
|
133
|
+
initializeBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Generic runtime api call
|
|
137
|
+
**/
|
|
138
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @runtimeapi: Metadata - 0x37e397fc7c91f5e4
|
|
142
|
+
**/
|
|
143
|
+
metadata: {
|
|
144
|
+
/**
|
|
145
|
+
* Returns the metadata of a runtime.
|
|
146
|
+
*
|
|
147
|
+
* @callname: Metadata_metadata
|
|
148
|
+
**/
|
|
149
|
+
metadata: GenericRuntimeApiMethod<Rv, () => Promise<SpCoreOpaqueMetadata>>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Returns the metadata at a given version.
|
|
153
|
+
*
|
|
154
|
+
* If the given `version` isn't supported, this will return `None`.
|
|
155
|
+
* Use [`Self::metadata_versions`] to find out about supported metadata version of the runtime.
|
|
156
|
+
*
|
|
157
|
+
* @callname: Metadata_metadata_at_version
|
|
158
|
+
* @param {number} version
|
|
159
|
+
**/
|
|
160
|
+
metadataAtVersion: GenericRuntimeApiMethod<Rv, (version: number) => Promise<SpCoreOpaqueMetadata | undefined>>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Returns the supported metadata versions.
|
|
164
|
+
*
|
|
165
|
+
* This can be used to call `metadata_at_version`.
|
|
166
|
+
*
|
|
167
|
+
* @callname: Metadata_metadata_versions
|
|
168
|
+
**/
|
|
169
|
+
metadataVersions: GenericRuntimeApiMethod<Rv, () => Promise<Array<number>>>;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Generic runtime api call
|
|
173
|
+
**/
|
|
174
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* @runtimeapi: BlockBuilder - 0x40fe3ad401f8959a
|
|
178
|
+
**/
|
|
179
|
+
blockBuilder: {
|
|
180
|
+
/**
|
|
181
|
+
* Apply the given extrinsic.
|
|
182
|
+
*
|
|
183
|
+
* Returns an inclusion outcome which specifies if this extrinsic is included in
|
|
184
|
+
* this block or not.
|
|
185
|
+
*
|
|
186
|
+
* @callname: BlockBuilder_apply_extrinsic
|
|
187
|
+
* @param {FpSelfContainedUncheckedExtrinsic} extrinsic
|
|
188
|
+
**/
|
|
189
|
+
applyExtrinsic: GenericRuntimeApiMethod<
|
|
190
|
+
Rv,
|
|
191
|
+
(
|
|
192
|
+
extrinsic: FpSelfContainedUncheckedExtrinsic,
|
|
193
|
+
) => Promise<Result<Result<[], DispatchError>, SpRuntimeTransactionValidityTransactionValidityError>>
|
|
194
|
+
>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Finish the current block.
|
|
198
|
+
*
|
|
199
|
+
* @callname: BlockBuilder_finalize_block
|
|
200
|
+
**/
|
|
201
|
+
finalizeBlock: GenericRuntimeApiMethod<Rv, () => Promise<Header>>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Generate inherent extrinsics. The inherent data will vary from chain to chain.
|
|
205
|
+
*
|
|
206
|
+
* @callname: BlockBuilder_inherent_extrinsics
|
|
207
|
+
* @param {SpInherentsInherentData} inherent
|
|
208
|
+
**/
|
|
209
|
+
inherentExtrinsics: GenericRuntimeApiMethod<
|
|
210
|
+
Rv,
|
|
211
|
+
(inherent: SpInherentsInherentData) => Promise<Array<FpSelfContainedUncheckedExtrinsic>>
|
|
212
|
+
>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Check that the inherents are valid. The inherent data will vary from chain to chain.
|
|
216
|
+
*
|
|
217
|
+
* @callname: BlockBuilder_check_inherents
|
|
218
|
+
* @param {SpRuntimeBlock} block
|
|
219
|
+
* @param {SpInherentsInherentData} data
|
|
220
|
+
**/
|
|
221
|
+
checkInherents: GenericRuntimeApiMethod<
|
|
222
|
+
Rv,
|
|
223
|
+
(block: SpRuntimeBlock, data: SpInherentsInherentData) => Promise<SpInherentsCheckInherentsResult>
|
|
224
|
+
>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Generic runtime api call
|
|
228
|
+
**/
|
|
229
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* @runtimeapi: OffchainWorkerApi - 0xf78b278be53f454c
|
|
233
|
+
**/
|
|
234
|
+
offchainWorkerApi: {
|
|
235
|
+
/**
|
|
236
|
+
* Starts the off-chain task for given block header.
|
|
237
|
+
*
|
|
238
|
+
* @callname: OffchainWorkerApi_offchain_worker
|
|
239
|
+
* @param {Header} header
|
|
240
|
+
**/
|
|
241
|
+
offchainWorker: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Generic runtime api call
|
|
245
|
+
**/
|
|
246
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* @runtimeapi: SessionKeys - 0xab3c0572291feb8b
|
|
250
|
+
**/
|
|
251
|
+
sessionKeys: {
|
|
252
|
+
/**
|
|
253
|
+
* Generate a set of session keys with optionally using the given seed.
|
|
254
|
+
* The keys should be stored within the keystore exposed via runtime
|
|
255
|
+
* externalities.
|
|
256
|
+
*
|
|
257
|
+
* The seed needs to be a valid `utf8` string.
|
|
258
|
+
*
|
|
259
|
+
* Returns the concatenated SCALE encoded public keys.
|
|
260
|
+
*
|
|
261
|
+
* @callname: SessionKeys_generate_session_keys
|
|
262
|
+
* @param {BytesLike | undefined} seed
|
|
263
|
+
**/
|
|
264
|
+
generateSessionKeys: GenericRuntimeApiMethod<Rv, (seed?: BytesLike | undefined) => Promise<Bytes>>;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Decode the given public session keys.
|
|
268
|
+
*
|
|
269
|
+
* Returns the list of public raw public keys + key type.
|
|
270
|
+
*
|
|
271
|
+
* @callname: SessionKeys_decode_session_keys
|
|
272
|
+
* @param {BytesLike} encoded
|
|
273
|
+
**/
|
|
274
|
+
decodeSessionKeys: GenericRuntimeApiMethod<
|
|
275
|
+
Rv,
|
|
276
|
+
(encoded: BytesLike) => Promise<Array<[Bytes, SpCoreCryptoKeyTypeId]> | undefined>
|
|
277
|
+
>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Generic runtime api call
|
|
281
|
+
**/
|
|
282
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* @runtimeapi: GenesisBuilder - 0xfbc577b9d747efd6
|
|
286
|
+
**/
|
|
287
|
+
genesisBuilder: {
|
|
288
|
+
/**
|
|
289
|
+
* Creates the default `GenesisConfig` and returns it as a JSON blob.
|
|
290
|
+
*
|
|
291
|
+
* This function instantiates the default `GenesisConfig` struct for the runtime and serializes it into a JSON
|
|
292
|
+
* blob. It returns a `Vec<u8>` containing the JSON representation of the default `GenesisConfig`.
|
|
293
|
+
*
|
|
294
|
+
* @callname: GenesisBuilder_create_default_config
|
|
295
|
+
**/
|
|
296
|
+
createDefaultConfig: GenericRuntimeApiMethod<Rv, () => Promise<Bytes>>;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Build `GenesisConfig` from a JSON blob not using any defaults and store it in the storage.
|
|
300
|
+
*
|
|
301
|
+
* This function deserializes the full `GenesisConfig` from the given JSON blob and puts it into the storage.
|
|
302
|
+
* If the provided JSON blob is incorrect or incomplete or the deserialization fails, an error is returned.
|
|
303
|
+
* It is recommended to log any errors encountered during the process.
|
|
304
|
+
*
|
|
305
|
+
* Please note that provided json blob must contain all `GenesisConfig` fields, no defaults will be used.
|
|
306
|
+
*
|
|
307
|
+
* @callname: GenesisBuilder_build_config
|
|
308
|
+
* @param {BytesLike} json
|
|
309
|
+
**/
|
|
310
|
+
buildConfig: GenericRuntimeApiMethod<Rv, (json: BytesLike) => Promise<Result<[], string>>>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Generic runtime api call
|
|
314
|
+
**/
|
|
315
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* @runtimeapi: AccountNonceApi - 0xbc9d89904f5b923f
|
|
319
|
+
**/
|
|
320
|
+
accountNonceApi: {
|
|
321
|
+
/**
|
|
322
|
+
* Get current account nonce of given `AccountId`.
|
|
323
|
+
*
|
|
324
|
+
* @callname: AccountNonceApi_account_nonce
|
|
325
|
+
* @param {AccountId20Like} account
|
|
326
|
+
**/
|
|
327
|
+
accountNonce: GenericRuntimeApiMethod<Rv, (account: AccountId20Like) => Promise<number>>;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Generic runtime api call
|
|
331
|
+
**/
|
|
332
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* @runtimeapi: DebugRuntimeApi - 0xbd78255d4feeea1f
|
|
336
|
+
**/
|
|
337
|
+
debugRuntimeApi: {
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @callname: DebugRuntimeApi_trace_transaction
|
|
341
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
|
|
342
|
+
* @param {EthereumTransactionTransactionV2} transaction
|
|
343
|
+
* @param {Header} header
|
|
344
|
+
**/
|
|
345
|
+
traceTransaction: GenericRuntimeApiMethod<
|
|
346
|
+
Rv,
|
|
347
|
+
(
|
|
348
|
+
extrinsics: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
349
|
+
transaction: EthereumTransactionTransactionV2,
|
|
350
|
+
header: Header,
|
|
351
|
+
) => Promise<Result<[], DispatchError>>
|
|
352
|
+
>;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
*
|
|
356
|
+
* @callname: DebugRuntimeApi_trace_block
|
|
357
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} extrinsics
|
|
358
|
+
* @param {Array<H256>} known_transactions
|
|
359
|
+
* @param {Header} header
|
|
360
|
+
**/
|
|
361
|
+
traceBlock: GenericRuntimeApiMethod<
|
|
362
|
+
Rv,
|
|
363
|
+
(
|
|
364
|
+
extrinsics: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
365
|
+
knownTransactions: Array<H256>,
|
|
366
|
+
header: Header,
|
|
367
|
+
) => Promise<Result<[], DispatchError>>
|
|
368
|
+
>;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Generic runtime api call
|
|
372
|
+
**/
|
|
373
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* @runtimeapi: TxPoolRuntimeApi - 0xa33d43f58731ad84
|
|
377
|
+
**/
|
|
378
|
+
txPoolRuntimeApi: {
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @callname: TxPoolRuntimeApi_extrinsic_filter
|
|
382
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_ready
|
|
383
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xt_future
|
|
384
|
+
**/
|
|
385
|
+
extrinsicFilter: GenericRuntimeApiMethod<
|
|
386
|
+
Rv,
|
|
387
|
+
(
|
|
388
|
+
xtReady: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
389
|
+
xtFuture: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
390
|
+
) => Promise<MoonbeamRpcPrimitivesTxpoolTxPoolResponse>
|
|
391
|
+
>;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Generic runtime api call
|
|
395
|
+
**/
|
|
396
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* @runtimeapi: EthereumRuntimeRPCApi - 0x582211f65bb14b89
|
|
400
|
+
**/
|
|
401
|
+
ethereumRuntimeRPCApi: {
|
|
402
|
+
/**
|
|
403
|
+
* Returns runtime defined pallet_evm::ChainId.
|
|
404
|
+
*
|
|
405
|
+
* @callname: EthereumRuntimeRPCApi_chain_id
|
|
406
|
+
**/
|
|
407
|
+
chainId: GenericRuntimeApiMethod<Rv, () => Promise<bigint>>;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Returns pallet_evm::Accounts by address.
|
|
411
|
+
*
|
|
412
|
+
* @callname: EthereumRuntimeRPCApi_account_basic
|
|
413
|
+
* @param {H160} address
|
|
414
|
+
**/
|
|
415
|
+
accountBasic: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<EvmBackendBasic>>;
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Returns FixedGasPrice::min_gas_price
|
|
419
|
+
*
|
|
420
|
+
* @callname: EthereumRuntimeRPCApi_gas_price
|
|
421
|
+
**/
|
|
422
|
+
gasPrice: GenericRuntimeApiMethod<Rv, () => Promise<U256>>;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* For a given account address, returns pallet_evm::AccountCodes.
|
|
426
|
+
*
|
|
427
|
+
* @callname: EthereumRuntimeRPCApi_account_code_at
|
|
428
|
+
* @param {H160} address
|
|
429
|
+
**/
|
|
430
|
+
accountCodeAt: GenericRuntimeApiMethod<Rv, (address: H160) => Promise<Bytes>>;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Returns the converted FindAuthor::find_author authority id.
|
|
434
|
+
*
|
|
435
|
+
* @callname: EthereumRuntimeRPCApi_author
|
|
436
|
+
**/
|
|
437
|
+
author: GenericRuntimeApiMethod<Rv, () => Promise<H160>>;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* For a given account address and index, returns pallet_evm::AccountStorages.
|
|
441
|
+
*
|
|
442
|
+
* @callname: EthereumRuntimeRPCApi_storage_at
|
|
443
|
+
* @param {H160} address
|
|
444
|
+
* @param {U256} index
|
|
445
|
+
**/
|
|
446
|
+
storageAt: GenericRuntimeApiMethod<Rv, (address: H160, index: U256) => Promise<H256>>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @callname: EthereumRuntimeRPCApi_call
|
|
451
|
+
* @param {H160} from
|
|
452
|
+
* @param {H160} to
|
|
453
|
+
* @param {BytesLike} data
|
|
454
|
+
* @param {U256} value
|
|
455
|
+
* @param {U256} gas_limit
|
|
456
|
+
* @param {U256 | undefined} max_fee_per_gas
|
|
457
|
+
* @param {U256 | undefined} max_priority_fee_per_gas
|
|
458
|
+
* @param {U256 | undefined} nonce
|
|
459
|
+
* @param {boolean} estimate
|
|
460
|
+
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
461
|
+
**/
|
|
462
|
+
call: GenericRuntimeApiMethod<
|
|
463
|
+
Rv,
|
|
464
|
+
(
|
|
465
|
+
from: H160,
|
|
466
|
+
to: H160,
|
|
467
|
+
data: BytesLike,
|
|
468
|
+
value: U256,
|
|
469
|
+
gasLimit: U256,
|
|
470
|
+
maxFeePerGas: U256 | undefined,
|
|
471
|
+
maxPriorityFeePerGas: U256 | undefined,
|
|
472
|
+
nonce: U256 | undefined,
|
|
473
|
+
estimate: boolean,
|
|
474
|
+
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
475
|
+
) => Promise<Result<FpEvmExecutionInfoV2, DispatchError>>
|
|
476
|
+
>;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @callname: EthereumRuntimeRPCApi_create
|
|
481
|
+
* @param {H160} from
|
|
482
|
+
* @param {BytesLike} data
|
|
483
|
+
* @param {U256} value
|
|
484
|
+
* @param {U256} gas_limit
|
|
485
|
+
* @param {U256 | undefined} max_fee_per_gas
|
|
486
|
+
* @param {U256 | undefined} max_priority_fee_per_gas
|
|
487
|
+
* @param {U256 | undefined} nonce
|
|
488
|
+
* @param {boolean} estimate
|
|
489
|
+
* @param {Array<[H160, Array<H256>]> | undefined} access_list
|
|
490
|
+
**/
|
|
491
|
+
create: GenericRuntimeApiMethod<
|
|
492
|
+
Rv,
|
|
493
|
+
(
|
|
494
|
+
from: H160,
|
|
495
|
+
data: BytesLike,
|
|
496
|
+
value: U256,
|
|
497
|
+
gasLimit: U256,
|
|
498
|
+
maxFeePerGas: U256 | undefined,
|
|
499
|
+
maxPriorityFeePerGas: U256 | undefined,
|
|
500
|
+
nonce: U256 | undefined,
|
|
501
|
+
estimate: boolean,
|
|
502
|
+
accessList?: Array<[H160, Array<H256>]> | undefined,
|
|
503
|
+
) => Promise<Result<FpEvmExecutionInfoV2H160, DispatchError>>
|
|
504
|
+
>;
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Return the current block.
|
|
508
|
+
*
|
|
509
|
+
* @callname: EthereumRuntimeRPCApi_current_block
|
|
510
|
+
**/
|
|
511
|
+
currentBlock: GenericRuntimeApiMethod<Rv, () => Promise<EthereumBlock | undefined>>;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Return the current receipt.
|
|
515
|
+
*
|
|
516
|
+
* @callname: EthereumRuntimeRPCApi_current_receipts
|
|
517
|
+
**/
|
|
518
|
+
currentReceipts: GenericRuntimeApiMethod<Rv, () => Promise<Array<EthereumReceiptReceiptV3> | undefined>>;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Return the current transaction status.
|
|
522
|
+
*
|
|
523
|
+
* @callname: EthereumRuntimeRPCApi_current_transaction_statuses
|
|
524
|
+
**/
|
|
525
|
+
currentTransactionStatuses: GenericRuntimeApiMethod<Rv, () => Promise<Array<FpRpcTransactionStatus> | undefined>>;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @callname: EthereumRuntimeRPCApi_current_all
|
|
530
|
+
**/
|
|
531
|
+
currentAll: GenericRuntimeApiMethod<
|
|
532
|
+
Rv,
|
|
533
|
+
() => Promise<
|
|
534
|
+
[
|
|
535
|
+
EthereumBlock | undefined,
|
|
536
|
+
Array<EthereumReceiptReceiptV3> | undefined,
|
|
537
|
+
Array<FpRpcTransactionStatus> | undefined,
|
|
538
|
+
]
|
|
539
|
+
>
|
|
540
|
+
>;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Receives a `Vec<OpaqueExtrinsic>` and filters all the ethereum transactions.
|
|
544
|
+
*
|
|
545
|
+
* @callname: EthereumRuntimeRPCApi_extrinsic_filter
|
|
546
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
547
|
+
**/
|
|
548
|
+
extrinsicFilter: GenericRuntimeApiMethod<
|
|
549
|
+
Rv,
|
|
550
|
+
(xts: Array<FpSelfContainedUncheckedExtrinsic>) => Promise<Array<EthereumTransactionTransactionV2>>
|
|
551
|
+
>;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Return the elasticity multiplier.
|
|
555
|
+
*
|
|
556
|
+
* @callname: EthereumRuntimeRPCApi_elasticity
|
|
557
|
+
**/
|
|
558
|
+
elasticity: GenericRuntimeApiMethod<Rv, () => Promise<Permill | undefined>>;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Used to determine if gas limit multiplier for non-transactional calls (eth_call/estimateGas)
|
|
562
|
+
* is supported.
|
|
563
|
+
*
|
|
564
|
+
* @callname: EthereumRuntimeRPCApi_gas_limit_multiplier_support
|
|
565
|
+
**/
|
|
566
|
+
gasLimitMultiplierSupport: GenericRuntimeApiMethod<Rv, () => Promise<[]>>;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Return the pending block.
|
|
570
|
+
*
|
|
571
|
+
* @callname: EthereumRuntimeRPCApi_pending_block
|
|
572
|
+
* @param {Array<FpSelfContainedUncheckedExtrinsic>} xts
|
|
573
|
+
**/
|
|
574
|
+
pendingBlock: GenericRuntimeApiMethod<
|
|
575
|
+
Rv,
|
|
576
|
+
(
|
|
577
|
+
xts: Array<FpSelfContainedUncheckedExtrinsic>,
|
|
578
|
+
) => Promise<[EthereumBlock | undefined, Array<FpRpcTransactionStatus> | undefined]>
|
|
579
|
+
>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* initialize the pending block
|
|
583
|
+
*
|
|
584
|
+
* @callname: EthereumRuntimeRPCApi_initialize_pending_block
|
|
585
|
+
* @param {Header} header
|
|
586
|
+
**/
|
|
587
|
+
initializePendingBlock: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<[]>>;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Generic runtime api call
|
|
591
|
+
**/
|
|
592
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* @runtimeapi: ConvertTransactionRuntimeApi - 0xe65b00e46cedd0aa
|
|
596
|
+
**/
|
|
597
|
+
convertTransactionRuntimeApi: {
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @callname: ConvertTransactionRuntimeApi_convert_transaction
|
|
601
|
+
* @param {EthereumTransactionTransactionV2} transaction
|
|
602
|
+
**/
|
|
603
|
+
convertTransaction: GenericRuntimeApiMethod<
|
|
604
|
+
Rv,
|
|
605
|
+
(transaction: EthereumTransactionTransactionV2) => Promise<FpSelfContainedUncheckedExtrinsic>
|
|
606
|
+
>;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* Generic runtime api call
|
|
610
|
+
**/
|
|
611
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
612
|
+
};
|
|
613
|
+
/**
|
|
614
|
+
* @runtimeapi: TransactionPaymentApi - 0x37c8bb1350a9a2a8
|
|
615
|
+
**/
|
|
616
|
+
transactionPaymentApi: {
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @callname: TransactionPaymentApi_query_info
|
|
620
|
+
* @param {FpSelfContainedUncheckedExtrinsic} uxt
|
|
621
|
+
* @param {number} len
|
|
622
|
+
**/
|
|
623
|
+
queryInfo: GenericRuntimeApiMethod<
|
|
624
|
+
Rv,
|
|
625
|
+
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentRuntimeDispatchInfo>
|
|
626
|
+
>;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
* @callname: TransactionPaymentApi_query_fee_details
|
|
631
|
+
* @param {FpSelfContainedUncheckedExtrinsic} uxt
|
|
632
|
+
* @param {number} len
|
|
633
|
+
**/
|
|
634
|
+
queryFeeDetails: GenericRuntimeApiMethod<
|
|
635
|
+
Rv,
|
|
636
|
+
(uxt: FpSelfContainedUncheckedExtrinsic, len: number) => Promise<PalletTransactionPaymentFeeDetails>
|
|
637
|
+
>;
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @callname: TransactionPaymentApi_query_weight_to_fee
|
|
642
|
+
* @param {SpWeightsWeightV2Weight} weight
|
|
643
|
+
**/
|
|
644
|
+
queryWeightToFee: GenericRuntimeApiMethod<Rv, (weight: SpWeightsWeightV2Weight) => Promise<bigint>>;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @callname: TransactionPaymentApi_query_length_to_fee
|
|
649
|
+
* @param {number} length
|
|
650
|
+
**/
|
|
651
|
+
queryLengthToFee: GenericRuntimeApiMethod<Rv, (length: number) => Promise<bigint>>;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Generic runtime api call
|
|
655
|
+
**/
|
|
656
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* @runtimeapi: NimbusApi - 0x2aa62120049dd2d2
|
|
660
|
+
**/
|
|
661
|
+
nimbusApi: {
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @callname: NimbusApi_can_author
|
|
665
|
+
* @param {NimbusPrimitivesNimbusCryptoPublic} author
|
|
666
|
+
* @param {number} relay_parent
|
|
667
|
+
* @param {Header} parent_header
|
|
668
|
+
**/
|
|
669
|
+
canAuthor: GenericRuntimeApiMethod<
|
|
670
|
+
Rv,
|
|
671
|
+
(author: NimbusPrimitivesNimbusCryptoPublic, relayParent: number, parentHeader: Header) => Promise<boolean>
|
|
672
|
+
>;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Generic runtime api call
|
|
676
|
+
**/
|
|
677
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* @runtimeapi: CollectCollationInfo - 0xea93e3f16f3d6962
|
|
681
|
+
**/
|
|
682
|
+
collectCollationInfo: {
|
|
683
|
+
/**
|
|
684
|
+
* Collect information about a collation.
|
|
685
|
+
*
|
|
686
|
+
* The given `header` is the header of the built block for that
|
|
687
|
+
* we are collecting the collation info for.
|
|
688
|
+
*
|
|
689
|
+
* @callname: CollectCollationInfo_collect_collation_info
|
|
690
|
+
* @param {Header} header
|
|
691
|
+
**/
|
|
692
|
+
collectCollationInfo: GenericRuntimeApiMethod<Rv, (header: Header) => Promise<CumulusPrimitivesCoreCollationInfo>>;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Generic runtime api call
|
|
696
|
+
**/
|
|
697
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
698
|
+
};
|
|
699
|
+
/**
|
|
700
|
+
* @runtimeapi: VrfApi - 0xba8173bf23b2e6f8
|
|
701
|
+
**/
|
|
702
|
+
vrfApi: {
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @callname: VrfApi_get_last_vrf_output
|
|
706
|
+
**/
|
|
707
|
+
getLastVrfOutput: GenericRuntimeApiMethod<Rv, () => Promise<H256 | undefined>>;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @callname: VrfApi_vrf_key_lookup
|
|
712
|
+
* @param {NimbusPrimitivesNimbusCryptoPublic} nimbus_id
|
|
713
|
+
**/
|
|
714
|
+
vrfKeyLookup: GenericRuntimeApiMethod<
|
|
715
|
+
Rv,
|
|
716
|
+
(nimbusId: NimbusPrimitivesNimbusCryptoPublic) => Promise<SessionKeysPrimitivesVrfVrfCryptoPublic | undefined>
|
|
717
|
+
>;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Generic runtime api call
|
|
721
|
+
**/
|
|
722
|
+
[method: string]: GenericRuntimeApiMethod<Rv>;
|
|
723
|
+
};
|
|
724
|
+
}
|