forked from sphinx-labs/sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ct): add executor selection to Manager (sphinx-labs#45)
- Loading branch information
1 parent
04ada98
commit d7f930f
Showing
4 changed files
with
68 additions
and
5 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,5 @@ | ||
--- | ||
'@chugsplash/contracts': minor | ||
--- | ||
|
||
Adds executor selection to Manager |
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
20 changes: 20 additions & 0 deletions
20
packages/contracts/contracts/IExecutorSelectionStrategy.sol
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,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
/** | ||
* @notice Interface for the Executor Selection Strategy (ESS). | ||
*/ | ||
interface IExecutorSelectionStrategy { | ||
/** | ||
* @notice Queries the selected executor for a given project/bundle. | ||
* | ||
* @param _project Address of the ChugSplashManager that mananges the project. | ||
* @param _bundleId ID of the bundle currently being executed. | ||
* | ||
* @return Address of the selected executor. | ||
*/ | ||
function getSelectedExecutor(address _project, bytes32 _bundleId) | ||
external | ||
view | ||
returns (address); | ||
} |