-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contracts-rfq): gas bench tests for the views [SLT-275] (#3217)
* test: add gas bench for encoding * test: add gas bench for canClaim
- Loading branch information
1 parent
ad48cb0
commit 68821a7
Showing
2 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
packages/contracts-rfq/test/FastBridgeV2.GasBench.Encoding.t.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
import {FastBridgeV2SrcBaseTest} from "./FastBridgeV2.Src.Base.t.sol"; | ||
|
||
// solhint-disable func-name-mixedcase, ordering | ||
contract FastBridgeV2GasBenchmarkSrcProtocolFeesTest is FastBridgeV2SrcBaseTest { | ||
// TODO: add more tests with variable length requests once arbitrary call is done | ||
|
||
function test_getBridgeTransaction() public view { | ||
bytes memory request = abi.encode(extractV1(tokenTx)); | ||
fastBridge.getBridgeTransaction(request); | ||
} | ||
|
||
function test_getBridgeTransactionV2() public view { | ||
bytes memory request = abi.encode(tokenTx); | ||
fastBridge.getBridgeTransactionV2(request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters