Skip to content

Commit

Permalink
Moved the Withdrawals interface above BlockOutput.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymonye committed Mar 28, 2024
1 parent 38a5b21 commit 8fdfa11
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/web3-types/src/eth_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ export interface BlockInput {
readonly baseFeePerGas?: HexString;
}

export interface Withdrawals {
readonly index: Numbers;
readonly validatorIndex: Numbers;
readonly address: Address;
readonly amount: Numbers;
}

export interface BlockOutput {
readonly gasLimit: bigint | number;
readonly gasUsed: bigint | number;
Expand Down Expand Up @@ -161,13 +168,6 @@ export interface BlockOutput {
readonly withdrawals?: Withdrawals[];
}

export interface Withdrawals {
readonly index: Numbers;
readonly validatorIndex: Numbers;
readonly address: Address;
readonly amount: Numbers;
}

export interface BlockHeaderOutput {
readonly baseFeePerGas?: Numbers;
readonly blobGasUsed?: Numbers;
Expand Down

0 comments on commit 8fdfa11

Please sign in to comment.