Closed m-Peter closed 2 months ago
The changes involve significant modifications to the PullAPI
methods in api/pull.go
, enhancing error handling and adjusting transaction data structures. Additionally, the test suite for Ethereum filter-related RPC methods has been expanded to include comprehensive tests for various scenarios. A new configuration parameter for filter expiration has also been introduced in the testing setup, improving the service's configuration capabilities.
Files | Change Summary |
---|---|
api/pull.go |
Enhanced error handling in GetFilterLogs , GetFilterChanges , and modified getTransactions to change transaction slice type. |
tests/e2e_web3js_test.go |
Renamed test case from "test get filter logs" to "test filter-related endpoints" and updated argument in runWeb3Test . |
tests/helpers.go |
Introduced new configuration parameter FilterExpiry in the servicesSetup function. |
tests/web3js/eth_filter_endpoints_test.js |
Added a new test suite for Ethereum filter-related RPC methods, covering various scenarios for eth_uninstallFilter , eth_getFilterLogs , and eth_getFilterChanges . |
sequenceDiagram
participant Client
participant PullAPI
participant TransactionHandler
Client->>PullAPI: Request GetFilterLogs
PullAPI->>TransactionHandler: Fetch logs
TransactionHandler-->>PullAPI: Return logs
PullAPI-->>Client: Return logs response
sequenceDiagram
participant Client
participant PullAPI
participant TransactionHandler
Client->>PullAPI: Request GetFilterChanges
PullAPI->>TransactionHandler: Fetch changes
TransactionHandler-->>PullAPI: Return changes
PullAPI-->>Client: Return changes response
🐰 In the meadow where the changes bloom,
A hop of joy dispels the gloom.
With filters fresh and errors tamed,
Our API dances, unashamed!
So let us cheer, both near and far,
For every fix, a shining star! ✨
[!TIP] We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
eth_getFilterChanges
for pending transaction filtersNote: EthClient does not expose any methods for the filter endpoints, so I chose to write the tests using our JavaScript suite, it seems to have less friction.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
FilterExpiry
, allowing for better control of filter expiration times.Bug Fixes