diff --git a/chain/ethereum.ts b/chain/ethereum.ts index c7d0de3..6a748ce 100644 --- a/chain/ethereum.ts +++ b/chain/ethereum.ts @@ -352,6 +352,20 @@ export namespace ethereum { size: BigInt | null } + /** + * An Ethereum block with transactions. + */ + export class BlockWithTransactions extends Block { + transactions: Array + } + + /** + * An Ethereum block with transactions and their receipts. + */ + export class BlockWithReceipts extends Block { + transactionsReceipts: Array + } + /** * An Ethereum transaction. */ @@ -366,6 +380,24 @@ export namespace ethereum { input: Bytes } + /** + * An Ethereum transaction with receipt. + */ + export class TransactionWithReceipt { + hash: Bytes + index: BigInt + from: Address + to: Address | null + value: BigInt + status: BigInt + root: Bytes + contractAddress: Address + cumulativeGasUsed: BigInt + gasUsed: BigInt + gasPrice: BigInt + input: Bytes + } + /** * Common representation for Ethereum smart contract calls. */