infrastructure-upgrade/lib/v3-periphery/test/shared/poolAtAddress.ts

8 lines
358 B
TypeScript
Raw Permalink Normal View History

2023-04-08 18:46:18 +00:00
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
}