-
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.
chore: update rp contract to use gelato functions
Signed-off-by: Tomás Migone <[email protected]>
- Loading branch information
Showing
14 changed files
with
172 additions
and
183 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
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
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,14 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.16; | ||
|
||
import { IGelato } from "../../gelato/Types.sol"; | ||
|
||
/** | ||
* @title Mock for the Gelato main contract | ||
*/ | ||
contract GelatoMock is IGelato { | ||
// We don't care about the feeCollector for this mock | ||
function feeCollector() external view returns (address) { | ||
return address(0); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
contracts/tests/OpsProxyFactoryMock.sol → ...acts/tests/gelato/OpsProxyFactoryMock.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
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,19 @@ | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
pragma solidity ^0.8.16; | ||
|
||
import { IProxyModule } from "../../gelato/Types.sol"; | ||
|
||
/** | ||
* @title Mock for the Gelato OpsProxyFactory contract | ||
*/ | ||
contract ProxyModuleMock is IProxyModule { | ||
address internal opsProxyFactoryAddress; | ||
|
||
constructor(address _opsProxyFactoryAddress) { | ||
opsProxyFactoryAddress = _opsProxyFactoryAddress; | ||
} | ||
|
||
function opsProxyFactory() external view returns (address) { | ||
return opsProxyFactoryAddress; | ||
} | ||
} |
Oops, something went wrong.