Open golangisfun123 opened 2 months ago
The pull request introduces significant modifications across various files related to the relayer configuration and transaction handling. Key changes include the addition of a VolumeLimit
field in specific configurations, enhancements to the rate limiter's logic for transaction validation, and updates to test cases to align with new transaction structures. Additionally, new methods are added to retrieve chain-specific confirmation limits, and the overall configuration structure is reorganized to improve clarity and functionality.
File Path | Change Summary |
---|---|
services/rfq/e2e/setup_test.go |
Added VolumeLimit field with value 10_000 in two configuration instances; removed global VolumeLimit declaration. |
services/rfq/relayer/limiter/limiter.go |
Introduced checkReceipt method; updated IsAllowed logic to include volume limit checks; renamed and modified withinSizeLimit to isUnderVolumeLimit . |
services/rfq/relayer/limiter/limiter_test.go |
Updated test cases to reflect new transaction structures; added helper functions for transaction data simulation. |
services/rfq/relayer/limiter/suite_test.go |
Updated chain configuration for chain ID 10 ; added new configuration for chain ID 81457 with specific parameters. |
services/rfq/relayer/relconfig/config.go |
Removed VolumeLimit from Config ; added VolumeLimit and RPCConfirmations to ChainConfig . |
services/rfq/relayer/relconfig/getters.go |
Added GetRPCConfirmations method; modified GetVolumeLimit to use chain-specific limits. |
services/rfq/util/util.go |
Updated QuoteRequestToAttributes function to accept a pointer to QuoteRequest instead of a value. |
getRelayerConfig
function to include a VolumeLimit
field, which is also relevant in the context of the changes made in this PR that involve configuration settings for the RFQ API.VolumeLimit
.NewChain
function to accept configuration settings are directly related to the changes in the main PR that involve the VolumeLimit
and other configuration parameters.M-docs
In the meadow where bunnies play,
New limits and checks have come our way!
With volume set and confirmations right,
Our transactions will hop with delight!
So let's cheer for the code that's bright,
A relayer's dream, taking flight! πβ¨
Attention: Patch coverage is 55.66038%
with 47 lines
in your changes missing coverage. Please review.
Project coverage is 33.07430%. Comparing base (
f0b13bc
) to head (5bc3004
). Report is 264 commits behind head on master.
:exclamation: There is a different number of reports uploaded between BASE (f0b13bc) and HEAD (5bc3004). Click for more details.
HEAD has 2 uploads less than BASE
| Flag | BASE (f0b13bc) | HEAD (5bc3004) | |------|------|------| |solidity|2|0|
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
bfd1761
|
Status: | β Deploy successful! |
Preview URL: | https://eafc0c77.sanguine-fe.pages.dev |
Branch Preview URL: | https://rpc-confirmations.sanguine-fe.pages.dev |
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Description A clear and concise description of the features you're adding in this pull request.
Additional context Add any other context about the problem you're solving.
Metadata
Summary by CodeRabbit
New Features
VolumeLimit
configuration for specific backend chains to enhance transaction management.Bug Fixes
Tests
Chores