-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: consolidate external positions in release dirs
- Loading branch information
1 parent
9851130
commit 32b84c8
Showing
70 changed files
with
88 additions
and
83 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
17 changes: 17 additions & 0 deletions
17
contracts/persistent/external-positions/IExternalPositionLibCore.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,17 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
/* | ||
This file is part of the Enzyme Protocol. | ||
(c) Enzyme Council <[email protected]> | ||
For the full license information, please view the LICENSE | ||
file that was distributed with this source code. | ||
*/ | ||
|
||
pragma solidity >=0.6.0 <0.9.0; | ||
|
||
/// @title IExternalPositionLibCore interface | ||
/// @author Enzyme Council <[email protected]> | ||
/// @notice An interface for core required functions of an IExternalPositionLib instance | ||
interface IExternalPositionLibCore { | ||
function receiveCallFromVault(bytes memory _data) external; | ||
} |
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 |
---|---|---|
|
@@ -13,7 +13,9 @@ pragma solidity >=0.6.0 <0.9.0; | |
/// @author Enzyme Council <[email protected]> | ||
/// @notice An interface for publicly accessible functions on the ExternalPositionProxy | ||
interface IExternalPositionProxy { | ||
function getExternalPositionType() external view returns (uint256); | ||
function getExternalPositionType() external view returns (uint256 typeId_); | ||
|
||
function getVaultProxy() external view returns (address); | ||
function getVaultProxy() external view returns (address vaultProxy_); | ||
|
||
function receiveCallFromVault(bytes memory _data) external; | ||
} |
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 |
---|---|---|
|
@@ -11,15 +11,15 @@ | |
|
||
pragma solidity 0.6.12; | ||
|
||
import {IExternalPosition} from "../../../persistent/external-positions/IExternalPosition.sol"; | ||
import {IExternalPositionFactory} from "../../../persistent/external-positions/IExternalPositionFactory.sol"; | ||
import {IExternalPositionProxy} from "../../../persistent/external-positions/IExternalPositionProxy.sol"; | ||
import {IVault} from "../../core/fund/vault/IVault.sol"; | ||
import {IPolicyManager} from "../policy-manager/IPolicyManager.sol"; | ||
import {ExtensionBase} from "../utils/ExtensionBase.sol"; | ||
import {PermissionedVaultActionMixin} from "../utils/PermissionedVaultActionMixin.sol"; | ||
import {IExternalPositionParser} from "./external-positions/IExternalPositionParser.sol"; | ||
import {IExternalPosition} from "./IExternalPosition.sol"; | ||
import {IExternalPositionManager} from "./IExternalPositionManager.sol"; | ||
import {IExternalPositionParser} from "./IExternalPositionParser.sol"; | ||
|
||
/// @title ExternalPositionManager | ||
/// @author Enzyme Council <[email protected]> | ||
|
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 |
---|---|---|
|
@@ -9,14 +9,14 @@ | |
|
||
pragma solidity >=0.6.0 <0.9.0; | ||
|
||
import {IExternalPositionLibCore} from "../../../persistent/external-positions/IExternalPositionLibCore.sol"; | ||
|
||
/// @title IExternalPosition Contract | ||
/// @author Enzyme Council <[email protected]> | ||
interface IExternalPosition { | ||
function getDebtAssets() external returns (address[] memory, uint256[] memory); | ||
|
||
function getManagedAssets() external returns (address[] memory, uint256[] memory); | ||
interface IExternalPosition is IExternalPositionLibCore { | ||
function getDebtAssets() external returns (address[] memory assets_, uint256[] memory amounts_); | ||
|
||
function init(bytes memory) external; | ||
function getManagedAssets() external returns (address[] memory assets_, uint256[] memory amounts_); | ||
|
||
function receiveCallFromVault(bytes memory) external; | ||
function init(bytes memory _data) external; | ||
} |
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -14,8 +14,8 @@ pragma experimental ABIEncoderV2; | |
|
||
import {SafeMath} from "openzeppelin-solc-0.6/math/SafeMath.sol"; | ||
import {SignedSafeMath} from "openzeppelin-solc-0.6/math/SignedSafeMath.sol"; | ||
import {IArbitraryLoanAccountingModule} from "./IArbitraryLoanAccountingModule.sol"; | ||
import {IArbitraryValueOracle} from "../../../../../../persistent/arbitrary-value-oracles/IArbitraryValueOracle.sol"; | ||
import {IArbitraryLoanAccountingModule} from "./IArbitraryLoanAccountingModule.sol"; | ||
|
||
/// @title ArbitraryLoanTotalNominalDeltaOracleModule Contract | ||
/// @author Enzyme Council <[email protected]> | ||
|
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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.