Closed ChiTimesChi closed 1 week ago
The pull request implements significant updates to the FastBridgeV2
contract and its associated interface, IFastBridgeV2
. Key changes include renaming several functions to reflect a versioning update from V1 to V2, introducing new parameters and validation checks, and updating related tests to ensure compatibility with the new function signatures. The modifications enhance the bridge transaction process and integrate new functionalities, particularly concerning the handling of zap-related features.
File Path | Change Summary |
---|---|
packages/contracts-rfq/contracts/FastBridgeV2.sol |
Functions renamed to include "V2": bridge → bridgeV2 , refund → cancelV2 , relay → relayV2 , prove → proveV2 , claim → claimV2 , getBridgeTransaction → getBridgeTransactionV2 . New structure BridgeParamsV2 introduced. |
packages/contracts-rfq/contracts/interfaces/IFastBridgeV2.sol |
Functions renamed to include "V2": bridge , relay , prove , claim , cancel updated to their respective V2 versions. New structs BridgeParamsV2 and BridgeTransactionV2 added. |
packages/contracts-rfq/test/FastBridgeV2.Dst.Base.t.sol |
Updated method call from fastBridge.relay to fastBridge.relayV2 . No changes to parameters or structure. |
packages/contracts-rfq/test/FastBridgeV2.Dst.t.sol |
Updated test cases to call relayV2 instead of relay . Maintained existing error handling and control flow. |
packages/contracts-rfq/test/FastBridgeV2.Src.Base.t.sol |
Updated method calls to bridgeV2 , proveV2 , claimV2 , and cancelV2 . Structure and logic remain unchanged. |
packages/contracts-rfq/test/FastBridgeV2.Src.t.sol |
Updated tests to use claimV2 and cancelV2 . Enhanced error handling for unsupported versions and invalid requests. |
packages/contracts-rfq/test/integration/FastBridgeV2.TokenZapV1.Src.t.sol |
Updated bridge function to call fastBridge.bridgeV2 with BridgeParamsV2 . No changes to event expectations or balance checks. |
relay
, prove
, and claim
functions in the FastBridgeV2
contract.FastBridgeV2
contract by storing detailed information about relay transactions.bridgeStatuses
and bridgeProofs
mappings.bridge
function.FastBridgeV2
contract by adding new parameters for handling arbitrary calls.FastBridgeV2
contract.FastBridgeV2
contract.size/m
, needs-go-generate-services/rfq
In the meadow where bridges gleam,
FastBridgeV2 is now the dream.
With functions renamed, oh what a sight,
Zapping through tokens, all feels right!
Parameters new, validations tight,
Hopping along, our code takes flight! 🐰✨
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?
Latest commit: |
209fbb1
|
Status: | ✅ Deploy successful! |
Preview URL: | https://f6b6cda4.sanguine-fe.pages.dev |
Branch Preview URL: | https://refactor-fbv2-new-methods.sanguine-fe.pages.dev |
Generated at commit: 68f39952b8bedf6a86b85c15d241ccf7de855d7c, compared to commit: b59c9d0a98cbe1982a28ff4d43c6cb97c7adddce
Contract | Method | Avg (+/-) | % |
---|---|---|---|
FastBridgeV2 | bridgeProofs bridgeRelayDetails canClaim senderNonces |
-22 ✅ +66 ❌ -65 ✅ -22 ✅ |
-3.64% +10.65% -2.15% -2.02% |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 41.80602%. Comparing base (
b59c9d0
) to head (209fbb1
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
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
bridgeV2
,claimV2
).BridgeParamsV2
structure to enhance transaction handling.Bug Fixes
Documentation