-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add tests cases for binPool migrator
- Loading branch information
1 parent
7971c3b
commit c48480b
Showing
20 changed files
with
1,754 additions
and
3 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV2Test#testMigrateFromV2IncludingInit.snap
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 @@ | ||
1016136 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV2Test#testMigrateFromV2WithoutInit.snap
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 @@ | ||
976173 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV2Test#testMigrateFromV2WithoutNativeToken.snap
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 @@ | ||
1020620 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV3Test#testMigrateFromV3IncludingInit.snap
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 @@ | ||
1095907 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV3Test#testMigrateFromV3WithoutInit.snap
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 @@ | ||
1056008 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromPancakeswapV3Test#testMigrateFromV3WithoutNativeToken.snap
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 @@ | ||
1093854 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV2Test#testMigrateFromV2IncludingInit.snap
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 @@ | ||
1016148 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV2Test#testMigrateFromV2WithoutInit.snap
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 @@ | ||
976185 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV2Test#testMigrateFromV2WithoutNativeToken.snap
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 @@ | ||
1020617 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV3Test#testMigrateFromV3IncludingInit.snap
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 @@ | ||
1093889 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV3Test#testMigrateFromV3WithoutInit.snap
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 @@ | ||
1053990 |
1 change: 1 addition & 0 deletions
1
.forge-snapshots/BinMigratorFromUniswapV3Test#testMigrateFromV3WithoutNativeToken.snap
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 @@ | ||
1091832 |
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
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,18 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Test.sol"; | ||
import {BinMigratorFromV2} from "./BinMigratorFromV2.sol"; | ||
|
||
contract BinMigratorFromPancakeswapV2Test is BinMigratorFromV2 { | ||
function _getBytecodePath() internal pure override returns (string memory) { | ||
// Create a Pancakeswap V2 pair | ||
// relative to the root of the project | ||
// https://etherscan.io/address/0x1097053Fd2ea711dad45caCcc45EfF7548fCB362#code | ||
return "./test/bin/pcsV2Factory.bytecode"; | ||
} | ||
|
||
function _getContractName() internal pure override returns (string memory) { | ||
return "BinMigratorFromPancakeswapV2Test"; | ||
} | ||
} |
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,26 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Test.sol"; | ||
import {BinMigratorFromV3} from "./BinMigratorFromV3.sol"; | ||
|
||
contract BinMigratorFromPancakeswapV3Test is BinMigratorFromV3 { | ||
function _getDeployerBytecodePath() internal pure override returns (string memory) { | ||
// https://etherscan.io/address/0x41ff9AA7e16B8B1a8a8dc4f0eFacd93D02d071c9#code | ||
return "./test/bin/pcsV3Deployer.bytecode"; | ||
} | ||
|
||
function _getFactoryBytecodePath() internal pure override returns (string memory) { | ||
// https://etherscan.io/address/0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865#code | ||
return "./test/bin/pcsV3Factory.bytecode"; | ||
} | ||
|
||
function _getNfpmBytecodePath() internal pure override returns (string memory) { | ||
// https://etherscan.io/address/0x46A15B0b27311cedF172AB29E4f4766fbE7F4364#code | ||
return "./test/bin/pcsV3Nfpm.bytecode"; | ||
} | ||
|
||
function _getContractName() internal pure override returns (string memory) { | ||
return "BinMigratorFromPancakeswapV3Test"; | ||
} | ||
} |
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,18 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Test.sol"; | ||
import {BinMigratorFromV2} from "./BinMigratorFromV2.sol"; | ||
|
||
contract BinMigratorFromUniswapV2Test is BinMigratorFromV2 { | ||
function _getBytecodePath() internal pure override returns (string memory) { | ||
// Create a Uniswap V2 pair | ||
// relative to the root of the project | ||
// https://etherscan.io/address/0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f#code | ||
return "./test/bin/uniV2Factory.bytecode"; | ||
} | ||
|
||
function _getContractName() internal pure override returns (string memory) { | ||
return "BinMigratorFromUniswapV2Test"; | ||
} | ||
} |
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,25 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Test.sol"; | ||
import {BinMigratorFromV3} from "./BinMigratorFromV3.sol"; | ||
|
||
contract BinMigratorFromUniswapV3Test is BinMigratorFromV3 { | ||
function _getDeployerBytecodePath() internal pure override returns (string memory) { | ||
return ""; | ||
} | ||
|
||
function _getFactoryBytecodePath() internal pure override returns (string memory) { | ||
// https://etherscan.io/address/0x1F98431c8aD98523631AE4a59f267346ea31F984#code | ||
return "./test/bin/uniV3Factory.bytecode"; | ||
} | ||
|
||
function _getNfpmBytecodePath() internal pure override returns (string memory) { | ||
// https://etherscan.io/address/0xC36442b4a4522E871399CD717aBDD847Ab11FE88#code | ||
return "./test/bin/uniV3Nfpm.bytecode"; | ||
} | ||
|
||
function _getContractName() internal pure override returns (string memory) { | ||
return "BinMigratorFromUniswapV3Test"; | ||
} | ||
} |
Oops, something went wrong.