-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: abstract contract SablierMerkleLockup to SablierMerkleBase
refactor: library MerkleLockup to MerkleBase refactor: contract MerkleLockupFactory to MerkleFactory
- Loading branch information
1 parent
a1c1cf4
commit cf7e16e
Showing
42 changed files
with
398 additions
and
299 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
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierMerkleLockupFactory } from "../../src/periphery/SablierMerkleLockupFactory.sol"; | ||
import { SablierMerkleFactory } from "../../src/periphery/SablierMerkleFactory.sol"; | ||
|
||
import { BaseScript } from "../Base.s.sol"; | ||
|
||
contract DeployMerkleLockupFactory is BaseScript { | ||
contract DeployMerkleFactory is BaseScript { | ||
/// @dev Deploy via Forge. | ||
function run() public virtual broadcast returns (SablierMerkleLockupFactory merkleLockupFactory) { | ||
merkleLockupFactory = new SablierMerkleLockupFactory(); | ||
function run() public virtual broadcast returns (SablierMerkleFactory merkleFactory) { | ||
merkleFactory = new SablierMerkleFactory(); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity >=0.8.22 <0.9.0; | ||
|
||
import { SablierMerkleLockupFactory } from "../../src/periphery/SablierMerkleLockupFactory.sol"; | ||
import { SablierMerkleFactory } from "../../src/periphery/SablierMerkleFactory.sol"; | ||
import { SablierBatchLockup } from "../../src/periphery/SablierBatchLockup.sol"; | ||
|
||
import { BaseScript } from "../Base.s.sol"; | ||
|
||
/// @notice Deploys all Periphery contract in the following order: | ||
/// | ||
/// 1. {SablierBatchLockup} | ||
/// 2. {SablierMerkleLockupFactory} | ||
/// 2. {SablierMerkleFactory} | ||
contract DeployPeriphery is BaseScript { | ||
/// @dev Deploy via Forge. | ||
function run() | ||
public | ||
virtual | ||
broadcast | ||
returns (SablierBatchLockup batchLockup, SablierMerkleLockupFactory merkleLockupFactory) | ||
returns (SablierBatchLockup batchLockup, SablierMerkleFactory merkleFactory) | ||
{ | ||
batchLockup = new SablierBatchLockup(); | ||
merkleLockupFactory = new SablierMerkleLockupFactory(); | ||
merkleFactory = new SablierMerkleFactory(); | ||
} | ||
} |
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
Oops, something went wrong.