Support DebugRuntimeApi runtime calls (frontier) (#5073)

This commit is contained in:
Jaco
2022-07-15 12:57:11 +03:00
committed by GitHub
parent d15dec1e58
commit 64ddc05bc8
3 changed files with 61 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@ Changes:
- Support Moonbeam author extraction on `derive.chain.*` (w/ shared logic dedupe)
- Cater for older `BlockBuilder 2/3/4` & `GrandpaApi 2` runtime interface definitions
- Support for `NominationPoolsApi` runtime interface
- Support for `DebugRuntimeApi` runtime interface, Frontier-specific
- Support for `NimbusApi` runtime interface (& older `AuthorFilterAPI`)
- Add Kusama 9250 upgrade block
@@ -295,7 +295,31 @@ const types: DefinitionsTypes = objectSpread({}, V0, V1, V2, {
None: 'Null'
}
},
EthTransaction: 'LegacyTransaction',
EthTransaction: {
hash: 'H256',
nonce: 'U256',
blockHash: 'Option<H256>',
blockNumber: 'Option<U256>',
transactionIndex: 'Option<U256>',
from: 'H160',
to: 'Option<H160>',
value: 'U256',
gasPrice: 'Option<U256>',
maxFeePerGas: 'Option<U256>',
maxPriorityFeePerGas: 'Option<U256>',
gas: 'U256',
input: 'Bytes',
creates: 'Option<H160>',
raw: 'Bytes',
publicKey: 'Option<H512>',
chainId: 'Option<U64>',
standardV: 'U256',
v: 'U256',
r: 'U256',
s: 'U256',
accessList: 'Option<Vec<EthAccessListItem>>',
transactionType: 'Option<U256>'
},
EthTransactionSignature: {
v: 'u64',
r: 'H256',
@@ -21,6 +21,41 @@ export const runtime: DefinitionsCall = {
version: 2
}
],
DebugRuntimeApi: [
{
methods: {
trace_block: {
description: 'Trace all block extrinsics',
params: [
{
name: 'extrinsics',
type: 'Vec<Extrinsic>'
},
{
name: 'knownTransactions',
type: 'Vec<H256>'
}
],
type: 'Result<(), DispatchError>'
},
trace_transaction: {
description: 'Trace transaction extrinsics',
params: [
{
name: 'extrinsics',
type: 'Vec<Extrinsic>'
},
{
name: 'transaction',
type: 'EthTransaction'
}
],
type: 'Result<(), DispatchError>'
}
},
version: 4
}
],
EthereumRuntimeRPCApi: [
{
methods: {