Skip to content

Commit

Permalink
posm deploy script (#294)
Browse files Browse the repository at this point in the history
* posm deploy script

* remove TODO
  • Loading branch information
snreynolds authored Aug 13, 2024
1 parent 98571f5 commit 0adab03
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions script/DeployPosm.s.sol
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 0adab03

Please sign in to comment.