"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useUniswapPool = void 0;
var react_1 = require("react");
var common_1 = require("../common");
var typechain_1 = require("../../typechain");
function useUniswapPool(chain, address) {
    var signerOrProvider = (0, common_1.useSignerOrProvider)(chain);
    return (0, react_1.useMemo)(function () {
        if (!signerOrProvider || !chain || !address)
            return;
        return typechain_1.IUniswapV3Pool__factory.connect(address, signerOrProvider);
    }, [chain, signerOrProvider, address]);
}
exports.useUniswapPool = useUniswapPool;
//# sourceMappingURL=useUniswapPool.js.map