File tree Expand file tree Collapse file tree
contracts/zero-ex/tests/transformers/bridges Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: Apache-2.0
2+ /*
3+ Copyright 2023 ZeroEx Intl.
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+ http://www.apache.org/licenses/LICENSE-2.0
8+ Unless required by applicable law or agreed to in writing, software
9+ distributed under the License is distributed on an "AS IS" BASIS,
10+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+ See the License for the specific language governing permissions and
12+ limitations under the License.
13+ */
14+
15+ pragma solidity ^ 0.6.5 ;
16+ pragma experimental ABIEncoderV2;
17+
18+ import "forge-std/Test.sol " ;
19+ import "../../../contracts/src/transformers/bridges/AvalancheBridgeAdapter.sol " ;
20+ import "../../../contracts/src/transformers/bridges/BridgeProtocols.sol " ;
21+
22+ contract AvalancheBridgeAdapterTest is Test {
23+ address constant WAVAX = 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 ;
24+
25+ AvalancheBridgeAdapter private adapter;
26+
27+ function setUp () public {
28+ vm.chainId (43114 );
29+ adapter = new AvalancheBridgeAdapter (IEtherToken (WAVAX));
30+ }
31+
32+ function testSupportsUniswapV3 () public {
33+ assertTrue (adapter.isSupportedSource (bytes32 (uint256 (BridgeProtocols.UNISWAPV3) << 128 )));
34+ }
35+ }
Original file line number Diff line number Diff line change 1+ // SPDX-License-Identifier: Apache-2.0
2+ /*
3+ Copyright 2023 ZeroEx Intl.
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+ http://www.apache.org/licenses/LICENSE-2.0
8+ Unless required by applicable law or agreed to in writing, software
9+ distributed under the License is distributed on an "AS IS" BASIS,
10+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+ See the License for the specific language governing permissions and
12+ limitations under the License.
13+ */
14+
15+ pragma solidity ^ 0.6.5 ;
16+ pragma experimental ABIEncoderV2;
17+
18+ import "forge-std/Test.sol " ;
19+ import "../../../contracts/src/transformers/bridges/BSCBridgeAdapter.sol " ;
20+ import "../../../contracts/src/transformers/bridges/BridgeProtocols.sol " ;
21+
22+ contract BSCBridgeAdapterTest is Test {
23+ address constant WBNB = 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c ;
24+
25+ BSCBridgeAdapter private adapter;
26+
27+ function setUp () public {
28+ vm.chainId (56 );
29+ adapter = new BSCBridgeAdapter (IEtherToken (WBNB));
30+ }
31+
32+ function testSupportsUniswapV3 () public {
33+ assertTrue (adapter.isSupportedSource (bytes32 (uint256 (BridgeProtocols.UNISWAPV3) << 128 )));
34+ }
35+ }
You can’t perform that action at this time.
0 commit comments