diff --git a/script/DeployPosm.s.sol b/script/DeployPosm.s.sol new file mode 100644 index 00000000..92084bdc --- /dev/null +++ b/script/DeployPosm.s.sol @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.20; + +import "forge-std/console2.sol"; +import "forge-std/Script.sol"; + +import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol"; +import {StateView} from "../src/lens/StateView.sol"; +import {PositionManager} from "../src/PositionManager.sol"; +import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol"; + +contract DeployPosmTest is Script { + function setUp() public {} + + function run(address poolManager, address permit2) public returns (PositionManager posm) { + vm.startBroadcast(); + + posm = new PositionManager{salt: hex"03"}(IPoolManager(poolManager), IAllowanceTransfer(permit2)); + console2.log("PositionManager", address(posm)); + + vm.stopBroadcast(); + } +}