2025-07-11 13:47:42 +02:00
|
|
|
pragma solidity ^0.8.19;
|
|
|
|
|
|
|
|
|
|
import "../src/Kraiken.sol";
|
2025-10-02 15:14:50 +00:00
|
|
|
|
|
|
|
|
import { LiquidityManager } from "../src/LiquidityManager.sol";
|
2025-07-11 13:47:42 +02:00
|
|
|
import "../src/Optimizer.sol";
|
2025-10-02 15:14:50 +00:00
|
|
|
import "../src/Stake.sol";
|
2025-07-11 13:47:42 +02:00
|
|
|
import "../src/helpers/UniswapHelpers.sol";
|
2025-10-02 15:14:50 +00:00
|
|
|
import { ERC1967Proxy } from "@openzeppelin/proxy/ERC1967/ERC1967Proxy.sol";
|
|
|
|
|
import "@uniswap-v3-core/interfaces/IUniswapV3Factory.sol";
|
|
|
|
|
import "@uniswap-v3-core/interfaces/IUniswapV3Pool.sol";
|
|
|
|
|
import "forge-std/Script.sol";
|
2025-07-11 13:47:42 +02:00
|
|
|
|
|
|
|
|
uint24 constant FEE = uint24(10_000);
|
|
|
|
|
|
|
|
|
|
contract DeployScript is Script {
|
|
|
|
|
using UniswapHelpers for IUniswapV3Pool;
|
|
|
|
|
|
2025-10-02 15:14:50 +00:00
|
|
|
bool internal token0isWeth;
|
|
|
|
|
address internal feeDest;
|
|
|
|
|
address internal weth;
|
|
|
|
|
address internal v3Factory;
|
|
|
|
|
address internal twabc;
|
2025-07-11 13:47:42 +02:00
|
|
|
|
|
|
|
|
function run() public {
|
|
|
|
|
string memory seedPhrase = vm.readFile(".secret");
|
|
|
|
|
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
|
|
|
|
|
vm.startBroadcast(privateKey);
|
|
|
|
|
address sender = vm.addr(privateKey);
|
|
|
|
|
console.log(sender);
|
|
|
|
|
}
|
|
|
|
|
}
|