diff --git a/.gitignore b/.gitignore index 6b2c0e7..4678681 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ docs/ # Dotenv file .env .secret +.secret* .infura .DS_Store diff --git a/onchain/README.md b/onchain/README.md index d7eaeb3..59cb669 100644 --- a/onchain/README.md +++ b/onchain/README.md @@ -88,26 +88,6 @@ $ cast --help ``` -## Deployment on Sepolia - -### Harb - -address: 0x087F256D11fe533b0c7d372e44Ee0F9e47C89dF9 - -[abi](../subgraph/harb/abis/Harb.json) - -### Stake - -address: 0xCd21a41a137BCAf8743E47D048F57D92398f7Da9 - -[abi](../subgraph/harb/abis/Stake.json) - -### LP - -address: 0xCc7467616bBDB574D04C7e9d2B0982c59F33D43c - -[abi](../subgraph/harb/abis/BaseLineLP.json) - ## Deployment on Base Sepolia ### Multisig @@ -127,6 +107,21 @@ address: 0xe28020BCdEeAf2779dd47c670A8eFC2973316EE2 address: 0x3d6a8797693a0bC598210782B6a889E11A2340Cd +## Deployment on Base + +### Harberg + +address: 0x45caa5929f6ee038039984205bdecf968b954820 + +### Stake + +address: 0xed70707fab05d973ad41eae8d17e2bcd36192cfc + +### LP + +address: 0x7fd4e645ce258dd3942eddbeb2f99137da8ba13b + + ## References open features: diff --git a/onchain/script/BaseDeploy.sol b/onchain/script/BaseDeploy.sol index e83e700..39774ee 100644 --- a/onchain/script/BaseDeploy.sol +++ b/onchain/script/BaseDeploy.sol @@ -5,11 +5,11 @@ import {DeployScript} from "./DeployScript.sol"; contract BaseDeploy is DeployScript { function setUp() public { - // Sepolia data - feeDest = 0x0000000000000000000000000000000000000000; + // Base data + feeDest = 0x31ea4993dd336158E1536a1851b76B738BDd24c8; weth = 0x4200000000000000000000000000000000000006; v3Factory = 0x33128a8fC17869897dcE68Ed026d694621f6FDfD; // comment out if new deployment - // twabc = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd; + //twabc = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd; } } diff --git a/onchain/script/DeployScript.sol b/onchain/script/DeployScript.sol index 4e6e482..5a4488b 100644 --- a/onchain/script/DeployScript.sol +++ b/onchain/script/DeployScript.sol @@ -25,9 +25,9 @@ contract DeployScript is Script { string memory seedPhrase = vm.readFile(".secret"); uint256 privateKey = vm.deriveKey(seedPhrase, 0); vm.startBroadcast(privateKey); - //address sender = vm.addr(privateKey); - - Harberg harb = new Harberg("Harbergerger Tax", "HARB"); + address sender = vm.addr(privateKey); + console.log(sender); + Harberg harb = new Harberg("Kraiken", "KRK"); token0isWeth = address(weth) < address(harb); Stake stake = new Stake(address(harb), feeDest); harb.setStakingPool(address(stake)); @@ -41,7 +41,7 @@ contract DeployScript is Script { liquidityManager.setFeeDestination(feeDest); // note: this delayed initialization is not a security issue. harb.setLiquidityManager(address(liquidityManager)); - (bool sent, ) = address(liquidityManager).call{value: 0.1 ether}(""); + (bool sent, ) = address(liquidityManager).call{value: 0.01 ether}(""); require(sent, "Failed to send Ether"); //TODO: wait few minutes and call recenter vm.stopBroadcast();