Closed ChiTimesChi closed 2 months ago
A new Solidity contract named FastBridgeV2GasBenchmarkSrcProtocolFeesTest
has been introduced to facilitate gas benchmarking tests for the FastBridge V2 protocol. This contract includes two public view functions for testing bridge transactions. Additionally, modifications have been made to the FastBridgeV2GasBenchmarkSrcTest
contract, particularly in transaction ID handling and assertions related to token and ETH claims, enhancing clarity and validation of the claim process.
File Path | Change Summary |
---|---|
packages/contracts-rfq/test/FastBridgeV2.GasBench.Encoding.t.sol | - Added FastBridgeV2GasBenchmarkSrcProtocolFeesTest contract.- Introduced test_getBridgeTransaction and test_getBridgeTransactionV2 functions. |
packages/contracts-rfq/test/FastBridgeV2.GasBench.Src.t.sol | - Updated test_claim_token and test_claimWithAddress_token to use local txId variable.- Modified assertions in test_claim_eth and test_claimWithAddress_eth to reference txId . |
FastBridgeV2
contract is directly related to the new gas benchmarking contract.prove
function affect transaction validation, connected to the new testing functions.relay
function enhance transaction management, pertinent to the new tests.refund
function ensure proper transaction status checks, relevant to the new benchmarks.size/s
, needs-go-generate-services/rfq
🐰 In the meadow, we hop and play,
New tests for gas, hip-hip-hooray!
With tokens and ETH, we claim with glee,
FastBridge V2, come dance with me!
As we benchmark and validate,
Our code shines bright, it’s truly great! 🌟
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?
Generated at commit: 38e54b8e7c1cce4f4bc74d95934109c2366a37f6, compared to commit: 12668b55c03135b501456689e2d07c9e07aab815
Contract | Method | Avg (+/-) | % |
---|
Latest commit: |
0145376
|
Status: | ✅ Deploy successful! |
Preview URL: | https://87568a21.sanguine-fe.pages.dev |
Branch Preview URL: | https://fix-fast-bridge-gas-bench-vi.sanguine-fe.pages.dev |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 28.14426%. Comparing base (
ad48cb0
) to head (0145376
). 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.
Bundle size has no change :white_check_mark:
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
Bug Fixes