infrastructure-upgrade/lib/v3-periphery/test/shared/poolAtAddress.ts
T-Hax 735546619e
init
Signed-off-by: T-Hax <>
2023-04-08 18:46:18 +00:00

8 lines
358 B
TypeScript

import { abi as POOL_ABI } from '@uniswap/v3-core/artifacts/contracts/UniswapV3Pool.sol/UniswapV3Pool.json'
import { Contract, Wallet } from 'ethers'
import { IUniswapV3Pool } from '../../typechain'
export default function poolAtAddress(address: string, wallet: Wallet): IUniswapV3Pool {
return new Contract(address, POOL_ABI, wallet) as IUniswapV3Pool
}