-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(rpc): remove use of extensible transaction + receipt types #9774
Merged
Merged
Changes from all commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
64777ff
Add EthApiTypes with error as AT and helper traits for conversion fro…
emhane 2f9b4d4
Make it possible to reference EthApiTypes via EthApiServer helper traits
emhane 494b3d9
Fix rpc API impls
emhane e05fd6f
Merge branch 'main' into emhane/rpc-error
emhane 916e509
Fix OpEthApi impl
emhane f1d02a7
Merge branch 'main' into emhane/rpc-error
emhane 09a4192
Merge branch 'main' into emhane/rpc-error
emhane 20fae32
Extend EthApiTypes with alloy_network::Network AT
emhane ade6b8f
Merge branch 'emhane/rpc-error' into emhane/ethapi-types
emhane 8a631dc
Merge branch 'main' into emhane/ethapi-types
emhane 83bd53b
Import OP rpc types from op-alloy-network
emhane ad29246
Rename EthApiTypes::Types to EthApiTypes::NetworkTypes
emhane 6bd0f60
Remove optimism feature from reth-rpc-types-compat lib
emhane e248a65
Incorporate TransactionBuilder into EthTransactions
emhane 624e938
Revert unrelated change
emhane 91ace3a
Fix conflicts from making rpc comapt generic over network for transac…
emhane c506e8e
Add trait for building rpc block response
emhane 0860e1c
Add adapter for network type builders to EthApi and OpEthApi
emhane f48038e
Fix conflicts, resp ty has non-unique builder
emhane 91fe6e0
Merge branch 'main' into emhane/ethapi-types
emhane b052000
Add generics to EthApi trait that are compatible with jsonrpsee
emhane 359eae7
Add temp constraint Network::TransactionResponse = reth_rpc_types::Tr…
emhane e12d811
Replace EthFilterApi and EthPubSubApi generics with jsonrpsee compati…
emhane fa58787
Fix lint
emhane ce48b0f
Merge branch 'main' into emhane/ethapi-types
emhane 4e1d95f
Remove redundant trait bounds
emhane d859c5e
Flatten trait ResponseTypeBuilders into EthApiTypes
emhane b733699
Remove duplicate file
emhane 179bd6b
Add noop impl for EthApiTypes
emhane 626c877
Add EthApiTypes trait bounds to node builder
emhane f24dee5
fixup! Flatten trait ResponseTypeBuilders into EthApiTypes
emhane 34c56e6
Fix tests
emhane fe0297f
Fix optimism crates
emhane f7c7206
Set explicit Ethereum network for reth_e2e_test_utils::TransactionTes…
emhane 75ff7da
Fix docs
emhane de9f909
Merge branch 'main' into emhane/ethapi-types
emhane 43f6808
Remove redundant autotrait impls for EthApi
emhane 57995de
Remove redundant attribute
emhane b62ec37
Make generic naming unfiorm
emhane 7e11a17
Merge branch 'main' into emhane/ethapi-types
emhane 1cb4f44
Merge branch 'main' into emhane/ethapi-types
emhane a499898
Merge branch 'main' into emhane/ethapi-types
emhane 7121475
Merge branch 'main' into emhane/ethapi-types
emhane 474367c
Merge branch 'main' into emhane/ethapi-types
emhane 1b8197f
Remove trait bound TransactionBuilder on EthApiTypes::TransationBuilder
emhane 61ce9bf
Merge branch 'main' into emhane/ethapi-types
emhane a186867
fixup! Remove trait bound TransactionBuilder on EthApiTypes::Transati…
emhane a784b7a
Fix lint
emhane 856f37e
Rename TransactionBuilder to TransactionCompat
emhane 9d911bb
Rename BlockBuilder to BlockCompat
emhane 2bb8a75
Delay trait bound for EthApiTypes::BlockCompat
emhane e5b47e8
Merge branch 'main' into emhane/ethapi-types
emhane b6a2cc9
Remove EthApiTypes::BlockCompat
emhane 9705100
Fix lint
emhane 729716e
Merge branch 'emhane/fix-lint' into emhane/ethapi-types
emhane a5d95bd
Fix lint
emhane 16cc68e
Fix docs
emhane a0a2f35
Checkout EthApiTypes::NetworkTypes from emhane/ethapi-types
emhane e991d9e
Merge branch 'emhane/ethapi-networktypes' into emhane/ethapi-types
emhane 2d6d702
Shrink scope of TransactionCompat trait
emhane 443e9b2
Rename reth_rpc_eth_api::Transaction to RpcTransaction
emhane fe2bf75
Move crates/rpc/rpc-eth-api/src/helpers/types.rs up one dir
emhane 02b38c7
Update docs
emhane 689c67c
Merge branch 'main' into emhane/ethapi-networktypes
emhane 46bad2e
Fix lint
emhane d50649e
Merge branch 'emhane/ethapi-networktypes' into emhane/ethapi-types
emhane 64facc7
Merge branch 'main' into emhane/ethapi-types
emhane 5e09011
Revert unrelated change
emhane 148d4e3
Fix lint
emhane 406848d
Merge branch 'main' into emhane/ethapi-types
emhane 145b71d
Merge branch 'main' into emhane/ethapi-types
emhane 07f2e9f
Fix merge conflicts
emhane cc4dddc
Merge branch 'main' into emhane/ethapi-types
emhane 2dff25a
Fix merge conflicts
emhane 963dab3
Define type reth_optimism_rpc::OpReceiptBuilder
emhane 4ff2ab2
Merge branch 'emhane/op-receipt' into emhane/ethapi-types
emhane ecddc97
Move EthBlocks::block_receipts default impl to impl for EthApi
emhane a0b5cfd
Move LoadReceipt::build_transaction_receipt default impl to impl for …
emhane 2d735fa
Merge branch 'emhane/mv-block-receipts' into emhane/ethapi-types
emhane 7d53b1b
Merge branch 'emhane/mv-build-tx-receipt' into emhane/ethapi-types
emhane b6ad116
Merge branch 'main' into emhane/ethapi-types
emhane 30bd98e
Fix merge conflicts
emhane 00c5adc
Merge branch 'main' into emhane/ethapi-types
emhane 3187093
Merge branch 'main' into emhane/ethapi-types
emhane 79de341
Revert formatting changes
emhane 604df14
Add helper trait FullEthApiTypes linking EthApiTypes::NetworkTypes to…
emhane 68d5c9a
Fix merge conflicts
emhane 3841450
Revert formatting changes
emhane 1756510
Revert formatting changes
emhane 3c1b2cd
Revert bad formatting changes
emhane 472a338
Remove redundant trait bound on RPC transaction response type
emhane 509939f
Bump deps
emhane fd4d588
Merge branch 'emhane/bump-deps' into emhane/ethapi-types
emhane dd61e57
Fix lint
emhane 769fb0a
Merge branch 'main' into emhane/ethapi-types
emhane 237a78a
Fix conflicts eth filter API
emhane 461e7a7
Fix conflicts eth pubsub API
emhane 89ba917
Fix conflicts rpc builder
emhane 011b80b
Fix conflicts tx pool API
emhane 87f8f51
Fix conflicts otterscan API
emhane 15112eb
Fix conflicts optimism
emhane 4794fd4
Fix lint
emhane a430d61
Fix lint
emhane e51f52a
Remove completed todos
emhane 67d4ba8
Revert unrelated changes
emhane a3c203b
Merge branch 'main' into emhane/ethapi-types
emhane d24e7f5
Merge branch 'main' into emhane/ethapi-types
emhane 9ccf619
Update docs
emhane dc7d4d1
Add lost code comment
emhane a625312
Add todo
emhane 5555173
Merge branch 'main' into emhane/ethapi-types
emhane 614cb7f
Fix merge conflicts
emhane 2c6bb1d
Fix merge conflicts
emhane 16dc6df
Merge branch 'main' into emhane/ethapi-types
emhane File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd actually like to remove the Tasks generic everywhere and use Box dyn (followup)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's an unnecessary perf downgrade to use dynamic dispatch for types that are called (i) often and (ii) always return a trait object originating from the same type. I'd try to reserve dynamic dispatch for builders that are called once. or where trait objects are returned that originate from different types for each call.