-
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.
* refactor: add multiple factories refactor: update deployment scripts to deploy all factories feat: add initial minimumfee in factories test: update tests accordingly test: fix fork setUp * build: update prepare artifacts script * chore: remove ISablierMerkleFactory docs: add natspecs over SablierMerkleFactoryBase test: remove redundant lines from Base test chore: use Merkle Factory contracts instead of Merkle Factories contracts chore: remove redundant imports test(fork): load factory admin in individual contracts test(integration): add missing SetMinimumFee_Integration_Test tests test(integration): use non-default fee value in SetMinimumFee_Integration_Test tests --------- Co-authored-by: smol-ninja <[email protected]>
- Loading branch information
1 parent
50487e0
commit f060524
Showing
88 changed files
with
1,469 additions
and
825 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
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
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: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierMerkleFactoryInstant } from "../src/SablierMerkleFactoryInstant.sol"; | ||
import { SablierMerkleFactoryLL } from "../src/SablierMerkleFactoryLL.sol"; | ||
import { SablierMerkleFactoryLT } from "../src/SablierMerkleFactoryLT.sol"; | ||
import { SablierMerkleFactoryVCA } from "../src/SablierMerkleFactoryVCA.sol"; | ||
|
||
import { BaseScript } from "./Base.s.sol"; | ||
|
||
/// @notice Deploys Merkle factory contracts at deterministic address. | ||
/// | ||
/// @dev Reverts if any contract has already been deployed. | ||
contract DeployDeterministicMerkleFactories is BaseScript { | ||
/// @dev Deploy via Forge. | ||
function run(uint256 initialMinimumFee) | ||
public | ||
broadcast | ||
returns ( | ||
SablierMerkleFactoryInstant merkleFactoryInstant, | ||
SablierMerkleFactoryLL merkleFactoryLL, | ||
SablierMerkleFactoryLT merkleFactoryLT, | ||
SablierMerkleFactoryVCA merkleFactoryVCA | ||
) | ||
{ | ||
address initialAdmin = adminMap[block.chainid]; | ||
merkleFactoryInstant = new SablierMerkleFactoryInstant{ salt: SALT }(initialAdmin, initialMinimumFee); | ||
merkleFactoryLL = new SablierMerkleFactoryLL{ salt: SALT }(initialAdmin, initialMinimumFee); | ||
merkleFactoryLT = new SablierMerkleFactoryLT{ salt: SALT }(initialAdmin, initialMinimumFee); | ||
merkleFactoryVCA = new SablierMerkleFactoryVCA{ salt: SALT }(initialAdmin, initialMinimumFee); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierMerkleFactoryInstant } from "../src/SablierMerkleFactoryInstant.sol"; | ||
import { SablierMerkleFactoryLL } from "../src/SablierMerkleFactoryLL.sol"; | ||
import { SablierMerkleFactoryLT } from "../src/SablierMerkleFactoryLT.sol"; | ||
import { SablierMerkleFactoryVCA } from "../src/SablierMerkleFactoryVCA.sol"; | ||
|
||
import { BaseScript } from "./Base.s.sol"; | ||
|
||
/// @notice Deploys Merkle factory contracts. | ||
contract DeployMerkleFactories is BaseScript { | ||
/// @dev Deploy via Forge. | ||
function run(uint256 initialMinimumFee) | ||
public | ||
broadcast | ||
returns ( | ||
SablierMerkleFactoryInstant merkleFactoryInstant, | ||
SablierMerkleFactoryLL merkleFactoryLL, | ||
SablierMerkleFactoryLT merkleFactoryLT, | ||
SablierMerkleFactoryVCA merkleFactoryVCA | ||
) | ||
{ | ||
address initialAdmin = adminMap[block.chainid]; | ||
merkleFactoryInstant = new SablierMerkleFactoryInstant(initialAdmin, initialMinimumFee); | ||
merkleFactoryLL = new SablierMerkleFactoryLL(initialAdmin, initialMinimumFee); | ||
merkleFactoryLT = new SablierMerkleFactoryLT(initialAdmin, initialMinimumFee); | ||
merkleFactoryVCA = new SablierMerkleFactoryVCA(initialAdmin, initialMinimumFee); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.