diff --git a/CHANGELOG.md b/CHANGELOG.md index e4788966b2..dae6287e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/types/src/interfaces/eth/definitions.ts b/packages/types/src/interfaces/eth/definitions.ts index 53fc20ab0c..54964d3812 100644 --- a/packages/types/src/interfaces/eth/definitions.ts +++ b/packages/types/src/interfaces/eth/definitions.ts @@ -295,7 +295,31 @@ const types: DefinitionsTypes = objectSpread({}, V0, V1, V2, { None: 'Null' } }, - EthTransaction: 'LegacyTransaction', + EthTransaction: { + hash: 'H256', + nonce: 'U256', + blockHash: 'Option', + blockNumber: 'Option', + transactionIndex: 'Option', + from: 'H160', + to: 'Option', + value: 'U256', + gasPrice: 'Option', + maxFeePerGas: 'Option', + maxPriorityFeePerGas: 'Option', + gas: 'U256', + input: 'Bytes', + creates: 'Option', + raw: 'Bytes', + publicKey: 'Option', + chainId: 'Option', + standardV: 'U256', + v: 'U256', + r: 'U256', + s: 'U256', + accessList: 'Option>', + transactionType: 'Option' + }, EthTransactionSignature: { v: 'u64', r: 'H256', diff --git a/packages/types/src/interfaces/eth/runtime.ts b/packages/types/src/interfaces/eth/runtime.ts index 6f48e6ba88..fbc030fea6 100644 --- a/packages/types/src/interfaces/eth/runtime.ts +++ b/packages/types/src/interfaces/eth/runtime.ts @@ -21,6 +21,41 @@ export const runtime: DefinitionsCall = { version: 2 } ], + DebugRuntimeApi: [ + { + methods: { + trace_block: { + description: 'Trace all block extrinsics', + params: [ + { + name: 'extrinsics', + type: 'Vec' + }, + { + name: 'knownTransactions', + type: 'Vec' + } + ], + type: 'Result<(), DispatchError>' + }, + trace_transaction: { + description: 'Trace transaction extrinsics', + params: [ + { + name: 'extrinsics', + type: 'Vec' + }, + { + name: 'transaction', + type: 'EthTransaction' + } + ], + type: 'Result<(), DispatchError>' + } + }, + version: 4 + } + ], EthereumRuntimeRPCApi: [ { methods: {