Skip to content

Commit

Permalink
chore: fix remappings (#45)
Browse files Browse the repository at this point in the history
* chore: fix remappings

* fix: compile fix

* Revert "fix: compile fix"

This reverts commit 5426104.

---------

Co-authored-by: Vladyslav Burtsevych <[email protected]>
  • Loading branch information
brotherlymite and Vladyslav Burtsevych authored Dec 5, 2024
1 parent 7910097 commit fe75753
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
3 changes: 1 addition & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ script = 'scripts'
out = 'out'
libs = ['lib']
fs_permissions = [{access = "write", path = "./reports"}]
solc = '0.8.19'
solc = '0.8.20'
evm_version = 'shanghai'
auto_detect-remappings=false
no_match_path = "*.s.sol"

[rpc_endpoints]
Expand Down
26 changes: 4 additions & 22 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
aave-v3-origin/=lib/aave-address-book/lib/aave-v3-origin/src/
aave-governance-v3=lib/aave-governance-v3/src
solidity-utils/=lib/aave-governance-v3/lib/solidity-utils/src
@aave/core-v3/=lib/aave-governance-v3/lib/aave-address-book/lib/aave-v3-core/
@aave/periphery-v3/=lib/aave-governance-v3/lib/aave-address-book/lib/aave-v3-periphery/
@openzeppelin/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/lib/openzeppelin-contracts/
aave-address-book/=lib/aave-address-book/src/
aave-delivery-infrastructure-scripts/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/scripts/
aave-delivery-infrastructure/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/
aave-token-v2/=lib/aave-governance-v3/lib/aave-token-v3/lib/aave-token-v2/contracts/
aave-token-v3/=lib/aave-governance-v3/lib/aave-token-v3/
aave-v3-core/=lib/aave-address-book/lib/aave-v3-origin/src/core/
aave-v3-periphery/=lib/aave-address-book/lib/aave-v3-origin/src/periphery/
ds-test/=lib/forge-std/lib/ds-test/src/
erc4626-tests/=lib/aave-governance-v3/lib/openzeppelin-contracts/lib/erc4626-tests/
forge-std/=lib/forge-std/src/
fx-portal/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/lib/fx-portal/contracts/
hyperlane-monorepo/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/lib/hyperlane-monorepo/
nitro-contracts/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/lib/nitro-contracts/src/
openzeppelin-contracts-upgradeable/=lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/
openzeppelin-contracts/=lib/aave-governance-v3/lib/openzeppelin-contracts/
openzeppelin/=lib/aave-governance-v3/lib/openzeppelin-contracts/contracts/
solidity-examples/=lib/aave-governance-v3/lib/aave-delivery-infrastructure/lib/solidity-examples/contracts/
aave-governance-v3/=lib/aave-governance-v3/src/
solidity-utils/=lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/
openzeppelin-contracts/=lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/
lib/aave-governance-v3:solidity-utils/=lib/aave-governance-v3/lib/solidity-utils/src
5 changes: 3 additions & 2 deletions scripts/PermissionedPayloadsControllerAndExecutor.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {Executor} from 'aave-governance-v3/contracts/payloads/Executor.sol';
import {PermissionedPayloadsController, IPayloadsControllerCore, PayloadsControllerUtils, IPermissionedPayloadsController}
from 'aave-governance-v3/contracts/payloads/PermissionedPayloadsController.sol';
import {TransparentProxyFactory} from 'solidity-utils/contracts/transparent-proxy/TransparentProxyFactory.sol';
import {IOwnable} from 'solidity-utils/contracts/transparent-proxy/interfaces/IOwnable.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {IOwnable} from 'aave-address-book/common/IOwnable.sol';

contract PermissionedPayloadsControllerAndExecutorDeploy is Script {
function run(
Expand All @@ -31,7 +32,7 @@ contract PermissionedPayloadsControllerAndExecutorDeploy is Script {
permissionedPayloadsController = IPermissionedPayloadsController(
proxyFactory.create(
address(permissionedPayloadsController),
proxyOwner,
ProxyAdmin(proxyOwner),
abi.encodeWithSelector(
IPermissionedPayloadsController.initialize.selector,
guardian,
Expand Down
5 changes: 3 additions & 2 deletions tests/PermissionedControllerEmissionTestMATICXPolygon.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import {LMSetupBaseTest} from './utils/LMSetupBaseTest.sol';
import {IPermissionedPayloadsController, PayloadsControllerUtils, IPayloadsControllerCore} from 'aave-address-book/governance-v3/IPermissionedPayloadsController.sol';

// TEMPORARY IMPORTS
import {IOwnable} from 'solidity-utils/contracts/transparent-proxy/interfaces/IOwnable.sol';
import {IOwnable} from 'aave-address-book/common/IOwnable.sol';
import {TransparentProxyFactory} from 'solidity-utils/contracts/transparent-proxy/TransparentProxyFactory.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {Executor} from 'aave-governance-v3/contracts/payloads/Executor.sol';
import {PermissionedPayloadsController} from 'aave-governance-v3/contracts/payloads/PermissionedPayloadsController.sol';
import {IERC20} from 'forge-std/interfaces/IERC20.sol';
Expand Down Expand Up @@ -136,7 +137,7 @@ contract PermissionedControllerEmissionTestMATICXPolygon is LMSetupBaseTest {
PAYLOADS_CONTROLLER = IPermissionedPayloadsController(
proxyFactory.create(
address(permissionedPayloadsControllerImpl),
address(728),
ProxyAdmin(address(728)),
abi.encodeWithSelector(
IPermissionedPayloadsController.initialize.selector,
address(490),
Expand Down

0 comments on commit fe75753

Please sign in to comment.