Skip to content

Commit

Permalink
deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkatsios committed Oct 24, 2024
1 parent c5be959 commit 115251b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
26 changes: 20 additions & 6 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,27 @@ pragma solidity ^0.8.15;
import "foundry-huff/HuffDeployer.sol";
import "forge-std/Script.sol";

interface SimpleStore {
function setValue(uint256) external;
function getValue() external returns (uint256);
interface SunriseHuff {
function callSunrise() external returns (uint256);
}

contract Deploy is Script {
function run() public returns (SimpleStore simpleStore) {
simpleStore = SimpleStore(HuffDeployer.deploy("SimpleStore"));
}
function run() public returns (SunriseHuff sunriseHuff) {
address owner = 0x5F65cD7D792E9746EF82929D60de9a1C526f93A5;
address receipient = 0x5F65cD7D792E9746EF82929D60de9a1C526f93A5;
address ARB_BEANSTALK =
address(0xD1A0060ba708BC4BCD3DA6C37EFa8deDF015FB70);
sunriseHuff = SunriseHuff(
HuffDeployer
.config()
.with_args(
bytes.concat(
abi.encode(address(owner)),
abi.encode(address(ARB_BEANSTALK)),
abi.encode(address(receipient))
)
)
.deploy("Sunrise")
);
}
}
4 changes: 2 additions & 2 deletions test/Sunrise.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ contract SunriseCallTest is Test {

function setUp() public {
forkIdMainnet = vm.createFork(
vm.rpcUrl("mainnet"),
"mainnet",
preSunriseMainnetBlock
);
forkIdArb = vm.createFork(
vm.rpcUrl("arbitrum"),
"arbitrum",
preSunriseArbitrumBlock
);
}
Expand Down

0 comments on commit 115251b

Please sign in to comment.