Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete EIP-6110, EIP-7002, and EIP-7251 types #170

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
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
3 changes: 0 additions & 3 deletions web3/conversions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ FilterOptions.useDefaultSerializationIn JrpcConv
TransactionArgs.useDefaultSerializationIn JrpcConv
FeeHistoryResult.useDefaultSerializationIn JrpcConv
AuthorizationObject.useDefaultSerializationIn JrpcConv
DepositRequestObject.useDefaultSerializationIn JrpcConv
WithdrawalRequestObject.useDefaultSerializationIn JrpcConv
ConsolidationRequestObject.useDefaultSerializationIn JrpcConv

derefType(BlockHeader).useDefaultSerializationIn JrpcConv
derefType(BlockObject).useDefaultSerializationIn JrpcConv
Expand Down
22 changes: 1 addition & 21 deletions web3/eth_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,6 @@ type
address*: Address
amount*: Quantity

DepositRequestObject* = object # EIP-6110
pubkey* : Bytes48
withdrawalCredentials*: Bytes32
amount* : Quantity
signature* : Bytes96
index* : Quantity

WithdrawalRequestObject* = object # EIP-7002
sourceAddress* : Address
validatorPubkey*: Bytes48
amount* : Quantity

ConsolidationRequestObject* = object # EIP-7251
sourceAddress*: Address
sourcePubkey* : Bytes48
targetPubkey* : Bytes48

## A block object, or null when no block was found
BlockObject* = ref object
number*: Quantity # the block number. null when its pending block.
Expand Down Expand Up @@ -144,10 +127,7 @@ type
blobGasUsed*: Opt[Quantity] # EIP-4844
excessBlobGas*: Opt[Quantity] # EIP-4844
parentBeaconBlockRoot*: Opt[Hash32] # EIP-4788
depositRequests*: Opt[seq[DepositRequestObject]] # EIP-6110
withdrawalRequests*: Opt[seq[WithdrawalRequestObject]] # EIP-7002
consolidationRequests*: Opt[seq[ConsolidationRequestObject]] # EIP-7251
requestsRoot*: Opt[Hash32] # EIP-7685
requestsHash*: Opt[Hash32] # EIP-7685

TxOrHashKind* = enum
tohHash
Expand Down
Loading