base deployment
This commit is contained in:
parent
78b48f1639
commit
31bc86fcd5
4 changed files with 23 additions and 27 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue