diff --git a/src/interfaces/IContext.sol b/src/interfaces/IContext.sol new file mode 100644 index 0000000..a603c1c --- /dev/null +++ b/src/interfaces/IContext.sol @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-3.0-or-later +pragma solidity ^0.8; + +/** + * @title IContext + * @notice Interface that combines methods used to interact with the context of the script + * can be used when passing the script into library functions. + */ +interface IContext { + function lookup(string memory contractName) external view returns (address); + + function isCelo() external view returns (bool); + + function isBaklava() external view returns (bool); + + function isAlfajores() external view returns (bool); +} diff --git a/src/interfaces/IContracts.sol b/src/interfaces/IContracts.sol deleted file mode 100644 index b2011c3..0000000 --- a/src/interfaces/IContracts.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later -pragma solidity ^0.8; - -interface IContracts { - function lookup(string memory contractName) external view returns (address); -}