-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
afb4e78
commit 82e5437
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.24; | ||
|
||
import { Script } from "forge-std/Script.sol"; | ||
|
||
import { Soho } from "../src/Soho.sol"; | ||
import { SohoBlast } from "../src/SohoBlast.sol"; | ||
|
||
contract Deploy is Script { | ||
Soho public soho; | ||
SohoBlast public sohoBlast; | ||
// This is the default Anvil account | ||
// However | ||
address public engine = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266; | ||
uint256 public tradingFeeBPS = 100; | ||
|
||
uint256 public constant BLAST_CHAIN_ID = 81457; | ||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
_deploy(engine, tradingFeeBPS); | ||
vm.stopBroadcast(); | ||
} | ||
|
||
function _deploy(address _engine, uint256 _tradingFeeBPS) internal { | ||
if (block.chainid == BLAST_CHAIN_ID) { | ||
sohoBlast = new SohoBlast(_engine, _tradingFeeBPS); | ||
} else { | ||
soho = new Soho(_engine, _tradingFeeBPS); | ||
} | ||
} | ||
} |