Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions chain/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,20 @@ export namespace ethereum {
size: BigInt | null
}

/**
* An Ethereum block with transactions.
*/
export class BlockWithTransactions extends Block {
transactions: Array<Transaction>
}

/**
* An Ethereum block with transactions and their receipts.
*/
export class BlockWithReceipts extends Block {
transactionsReceipts: Array<TransactionWithReceipt>
}

/**
* An Ethereum transaction.
*/
Expand All @@ -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.
*/
Expand Down