idle_moloch/lib/v3-periphery/test/shared/poolAtAddress.ts
2024-11-01 11:55:27 +01: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
}