21 lines
No EOL
545 B
Solidity
21 lines
No EOL
545 B
Solidity
pragma solidity ^0.8.4;
|
|
|
|
import "forge-std/Script.sol";
|
|
import "../src/Harb.sol";
|
|
import "../src/Stake.sol";
|
|
|
|
contract GoerliScript is Script {
|
|
function setUp() public {}
|
|
|
|
function run() public {
|
|
string memory seedPhrase = vm.readFile(".secret");
|
|
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
|
|
vm.startBroadcast(privateKey);
|
|
|
|
Harb harb = new Harb("Harberger Tax", "HARB");
|
|
Stake stake = new Stake(address(harb));
|
|
harb.setStakingPool(address(stake));
|
|
|
|
vm.stopBroadcast();
|
|
}
|
|
} |