base deployment
This commit is contained in:
parent
78b48f1639
commit
31bc86fcd5
4 changed files with 23 additions and 27 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -13,6 +13,7 @@ docs/
|
||||||
# Dotenv file
|
# Dotenv file
|
||||||
.env
|
.env
|
||||||
.secret
|
.secret
|
||||||
|
.secret*
|
||||||
.infura
|
.infura
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
## Deployment on Base Sepolia
|
||||||
|
|
||||||
### Multisig
|
### Multisig
|
||||||
|
|
@ -127,6 +107,21 @@ address: 0xe28020BCdEeAf2779dd47c670A8eFC2973316EE2
|
||||||
address: 0x3d6a8797693a0bC598210782B6a889E11A2340Cd
|
address: 0x3d6a8797693a0bC598210782B6a889E11A2340Cd
|
||||||
|
|
||||||
|
|
||||||
|
## Deployment on Base
|
||||||
|
|
||||||
|
### Harberg
|
||||||
|
|
||||||
|
address: 0x45caa5929f6ee038039984205bdecf968b954820
|
||||||
|
|
||||||
|
### Stake
|
||||||
|
|
||||||
|
address: 0xed70707fab05d973ad41eae8d17e2bcd36192cfc
|
||||||
|
|
||||||
|
### LP
|
||||||
|
|
||||||
|
address: 0x7fd4e645ce258dd3942eddbeb2f99137da8ba13b
|
||||||
|
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
open features:
|
open features:
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,11 @@ import {DeployScript} from "./DeployScript.sol";
|
||||||
contract BaseDeploy is DeployScript {
|
contract BaseDeploy is DeployScript {
|
||||||
|
|
||||||
function setUp() public {
|
function setUp() public {
|
||||||
// Sepolia data
|
// Base data
|
||||||
feeDest = 0x0000000000000000000000000000000000000000;
|
feeDest = 0x31ea4993dd336158E1536a1851b76B738BDd24c8;
|
||||||
weth = 0x4200000000000000000000000000000000000006;
|
weth = 0x4200000000000000000000000000000000000006;
|
||||||
v3Factory = 0x33128a8fC17869897dcE68Ed026d694621f6FDfD;
|
v3Factory = 0x33128a8fC17869897dcE68Ed026d694621f6FDfD;
|
||||||
// comment out if new deployment
|
// comment out if new deployment
|
||||||
// twabc = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd;
|
//twabc = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,9 @@ contract DeployScript is Script {
|
||||||
string memory seedPhrase = vm.readFile(".secret");
|
string memory seedPhrase = vm.readFile(".secret");
|
||||||
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
|
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
|
||||||
vm.startBroadcast(privateKey);
|
vm.startBroadcast(privateKey);
|
||||||
//address sender = vm.addr(privateKey);
|
address sender = vm.addr(privateKey);
|
||||||
|
console.log(sender);
|
||||||
Harberg harb = new Harberg("Harbergerger Tax", "HARB");
|
Harberg harb = new Harberg("Kraiken", "KRK");
|
||||||
token0isWeth = address(weth) < address(harb);
|
token0isWeth = address(weth) < address(harb);
|
||||||
Stake stake = new Stake(address(harb), feeDest);
|
Stake stake = new Stake(address(harb), feeDest);
|
||||||
harb.setStakingPool(address(stake));
|
harb.setStakingPool(address(stake));
|
||||||
|
|
@ -41,7 +41,7 @@ contract DeployScript is Script {
|
||||||
liquidityManager.setFeeDestination(feeDest);
|
liquidityManager.setFeeDestination(feeDest);
|
||||||
// note: this delayed initialization is not a security issue.
|
// note: this delayed initialization is not a security issue.
|
||||||
harb.setLiquidityManager(address(liquidityManager));
|
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");
|
require(sent, "Failed to send Ether");
|
||||||
//TODO: wait few minutes and call recenter
|
//TODO: wait few minutes and call recenter
|
||||||
vm.stopBroadcast();
|
vm.stopBroadcast();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue