Skip to content

Commit

Permalink
posm hack
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Nov 15, 2024
1 parent 9ed8b49 commit 49e1534
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 31 deletions.
44 changes: 44 additions & 0 deletions broadcast/DeployPosm.s.sol/11155111/run-latest.json

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions broadcast/DeployPosm.s.sol/11155420/run-latest.json

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions broadcast/DeployPosm.s.sol/1301/run-latest.json

Large diffs are not rendered by default.

56 changes: 31 additions & 25 deletions broadcast/DeployPosm.s.sol/84532/run-latest.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# forge script script/DeployQuoter.s.sol --sig "run(address)" 0xcfa0a7b03da220b5d68ffa048aacf48daee1915e --rpc-url base_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_BASE_SEPOLIA --verify --broadcast
# forge script script/DeployQuoter.s.sol --sig "run(address)" 0x1411060f44da12017adbb34de5f9238912db2055 --rpc-url op_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_OP_SEPOLIA --verify --broadcast

# forge script script/DeployStateView.s.sol --sig "run(address)" 0xbac21cdee1c59ccbda4547fc531803bd0d038251 --rpc-url sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_SEPOLIA --verify --broadcast
# forge script script/DeployStateView.s.sol --sig "run(address)" 0xd51ccb81de8426637f7b6fa8405b1990a3b81648 --rpc-url unichain_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_SEPOLIA --verify --broadcast
# forge script script/DeployStateView.s.sol --sig "run(address)" 0xcfa0a7b03da220b5d68ffa048aacf48daee1915e --rpc-url base_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_BASE_SEPOLIA --verify --broadcast
# forge script script/DeployStateView.s.sol --sig "run(address)" 0x1411060f44da12017adbb34de5f9238912db2055 --rpc-url op_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_OP_SEPOLIA --verify --broadcast

forge script script/DeployPosm.s.sol --sig "run(address,address,uint256,address)" 0xbac21cdee1c59ccbda4547fc531803bd0d038251 0x000000000022D473030F116dDEE9F6B43aC78BA3 200000 0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14 --rpc-url sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_SEPOLIA --verify --broadcast
forge script script/DeployPosm.s.sol --sig "run(address,address,uint256,address)" 0xd51ccb81de8426637f7b6fa8405b1990a3b81648 0x000000000022D473030F116dDEE9F6B43aC78BA3 200000 0x4200000000000000000000000000000000000006 --rpc-url unichain_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_SEPOLIA --verify --broadcast
forge script script/DeployPosm.s.sol --sig "run(address,address,uint256,address)" 0xcfa0a7b03da220b5d68ffa048aacf48daee1915e 0x000000000022D473030F116dDEE9F6B43aC78BA3 200000 0x4200000000000000000000000000000000000006 --rpc-url base_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_BASE_SEPOLIA --verify --broadcast
forge script script/DeployPosm.s.sol --sig "run(address,address,uint256,address)" 0x1411060f44da12017adbb34de5f9238912db2055 0x000000000022D473030F116dDEE9F6B43aC78BA3 200000 0x4200000000000000000000000000000000000006 --rpc-url op_sepolia --private-key $SEPOLIA_PK --etherscan-api-key $ETHERSCAN_API_KEY_OP_SEPOLIA --verify --broadcast
11 changes: 5 additions & 6 deletions script/DeployPosm.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,18 @@ contract DeployPosmTest is Script {
address poolManager,
address permit2,
uint256 unsubscribeGasLimit,
address wrappedNative,
string memory nativeCurrencyLabel
address wrappedNative
) public returns (PositionDescriptor positionDescriptor, PositionManager posm) {
vm.startBroadcast();

positionDescriptor = new PositionDescriptor(IPoolManager(poolManager), wrappedNative, nativeCurrencyLabel);
console2.log("PositionDescriptor", address(positionDescriptor));
// positionDescriptor = new PositionDescriptor(IPoolManager(poolManager), wrappedNative, "ETH");
// console2.log("PositionDescriptor", address(positionDescriptor));

posm = new PositionManager{salt: hex"04"}(
posm = new PositionManager(
IPoolManager(poolManager),
IAllowanceTransfer(permit2),
unsubscribeGasLimit,
IPositionDescriptor(address(positionDescriptor)),
IPositionDescriptor(address(0)),
IWETH9(wrappedNative)
);
console2.log("PositionManager", address(posm));
Expand Down

0 comments on commit 49e1534

Please sign in to comment.