From e9078dca6131af755d4a72d1fd4e4ecf5050dc66 Mon Sep 17 00:00:00 2001 From: Vaibhav Khanna Date: Fri, 15 Apr 2022 16:32:53 +0530 Subject: [PATCH] added proxy interface --- contracts/infiniteProxy/IProxy.sol | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 contracts/infiniteProxy/IProxy.sol diff --git a/contracts/infiniteProxy/IProxy.sol b/contracts/infiniteProxy/IProxy.sol new file mode 100644 index 0000000..2aa7183 --- /dev/null +++ b/contracts/infiniteProxy/IProxy.sol @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +interface IProxy { + function setAdmin(address newAdmin_) external; + + function setDummyImplementation(address newDummyImplementation_) external; + + function addImplementation(address implementation_, bytes4[] calldata sigs_) + external; + + function removeImplementation(address implementation_) external; + + function getAdmin() external view returns (address); + + function getDummyImplementation() external view returns (address); + + function getImplementationSigs(address impl_) + external + view + returns (bytes4[] memory); + + function getSigsImplementation(bytes4 sig_) external view returns (address); +}