-
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
fc3cec7
commit ec4d89c
Showing
3 changed files
with
53 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
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,12 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierV2OpenEnded } from "src/SablierV2OpenEnded.sol"; | ||
|
||
import { BaseScript } from "./Base.s.sol"; | ||
|
||
contract DeployOpenEnded is BaseScript { | ||
function run() public broadcast returns (SablierV2OpenEnded openEnded) { | ||
openEnded = new SablierV2OpenEnded(); | ||
} | ||
} |
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,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierV2OpenEnded } from "src/SablierV2OpenEnded.sol"; | ||
|
||
import { BaseScript } from "./Base.s.sol"; | ||
|
||
/// @notice Deploys {SablierV2OpenEnded} at a deterministic address across chains. | ||
/// @dev Reverts if the contract has already been deployed. | ||
contract DeployOpenEnded is BaseScript { | ||
function run() public broadcast returns (SablierV2OpenEnded openEnded) { | ||
openEnded = new SablierV2OpenEnded{ salt: constructCreate2Salt() }(); | ||
} | ||
} |