Skip to content

Commit

Permalink
Re-implement JSON-RPC server using the jsonrpsee framework (ethereu…
Browse files Browse the repository at this point in the history
…m#508)

* Add new `rpc` workspace member

* ethportal-api: Fix server feature rpc macro for trait apis

* rpc: Setup rpc endpoints template

* rpc: Rename server API implementations

* rpc: Add network handlers for server API implementations

* Extract `launch_jsonrpc_server` outside trin_core two fix two-way dependency issue with the rpc crate.

* trin-core: Remove depreciated http json-rpc code

* trin-history: Change history endpoint interface

* ethportal-api: Implement From<HistoryContentItem> for Vec<u8>

* rpc: Add proxy method in HistoryNetworkApi to query history network jsonrpc

* trin-core: Fix locks comparison error

* rpc: Replace trin json-rpc IPC interface with reth-ipc and remove depreciated code

* trin-core: Depreciate `JsonRpcHandler`

* trin-state: Remove support for state network json-rpc endpoints

* trin-state: Remove depreciated json-rpc eth mod

* trin-state: Remove depreciated json-rpc param types

* rpc: Finish server APIs implementations

* peertest: Refactor paginate test

* ethportal-api: Add enum variants for unknown content keys and values

* peertest: Remove state network json-rpc tests

* peertest: Fix recursive_find_content_invalid_params test

* peertest: Disable `eth` endpoint tests

* trin-history: Return distance in `traceRecursiveFindContent` endpoint as hex string

* trin-history: Fix `SendOffer` rpc response and update offer/accept peertest test

* ethportal-api: Update BitList type

* ethportal-api: Set `RoutingTableInfo` type as json Value

* rpc: Implement `discv5_routingTableInfo` endpoint

* peertest: Remove `historyStore` endpoint test with invalid content because the json-rpc server returns json error when invalid content is provided.

* trin-history: Handle errors when converting between trin and ethportal-api content keys

* ethportal-api: Update unknown history content key type to bytes

* trin-history: Fix `historyPing` endpoint response and peertest test

* ethportal-api: Update FindNodes response type

* rpc: Update FindNodes response

* ethportal-api: Add `historyRadius` endpoint

* trin-core: Fix accumulator tests

* circleci: Build whole workspace in utp testing pipeline, This prevents dependency discrepancies with main Cargo.toml file

* Set explicitly `reth-ipc` version

* Add newsfagment file

* ethportal-api: Change OverlayContentKey bytes() method to return vector instead of array

* Fix rebase conflict

* Add `rpc` crate to Dockerfile

* Address PR comments

* Fix rebase conflict

* Address PR comments 2

* Fix rebase conflicts
  • Loading branch information
ogenev authored Feb 13, 2023
1 parent aa2202f commit 7c47598
Show file tree
Hide file tree
Showing 45 changed files with 1,067 additions and 2,081 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
command: curl https://sh.rustup.rs -sSf | sh -s -- -y
- run:
name: Build utp-testing package
command: cargo build -p utp-testing --release
command: cargo build --workspace --release
- run:
name: Move docker artifacts
command: mv -t utp-testing/docker/circleci/ target/release/utp-test-app utp-testing/docker/run_endpoint.sh utp-testing/docker/setup.sh
Expand Down
Loading

0 comments on commit 7c47598

Please sign in to comment.