mirrorenv keylists
This commit is contained in:
@@ -21,10 +21,16 @@ contract MirrorEnv {
|
|||||||
// map original token addresses to their mock counterparts
|
// map original token addresses to their mock counterparts
|
||||||
mapping(IERC20Metadata=>MockERC20) public tokens;
|
mapping(IERC20Metadata=>MockERC20) public tokens;
|
||||||
IERC20Metadata[] public tokenKeys;
|
IERC20Metadata[] public tokenKeys;
|
||||||
|
function numTokens() external view returns (uint256) {
|
||||||
|
return tokenKeys.length;
|
||||||
|
}
|
||||||
|
|
||||||
// map original pool addresses to their mock counterparts
|
// map original pool addresses to their mock counterparts
|
||||||
mapping(IUniswapV3Pool=>MockPool) public pools;
|
mapping(IUniswapV3Pool=>MockPool) public pools;
|
||||||
IUniswapV3Pool[] public poolKeys;
|
IUniswapV3Pool[] public poolKeys;
|
||||||
|
function numPools() external view returns (uint256) {
|
||||||
|
return poolKeys.length;
|
||||||
|
}
|
||||||
|
|
||||||
INonfungiblePositionManager immutable public nfpm;
|
INonfungiblePositionManager immutable public nfpm;
|
||||||
ISwapRouter immutable public swapRouter;
|
ISwapRouter immutable public swapRouter;
|
||||||
|
|||||||
Reference in New Issue
Block a user