Skip to content

Commit

Permalink
fix: components imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekidd committed Jul 8, 2024
1 parent edfae0d commit 558d183
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion script/child/DeployQWAaveV2.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {DeployBase} from '../helpers/DeployBase.sol';

import {QWManager} from 'contracts/QWManager.sol';
import {QWRegistry} from 'contracts/QWRegistry.sol';
import {QWAaveV2} from 'contracts/child/QWAaveV2.sol';
import {QWAaveV2} from 'contracts/components/QWAaveV2.sol';
import {Script} from 'forge-std/Script.sol';

/**
Expand Down
2 changes: 1 addition & 1 deletion script/child/DeployQWAaveV3.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {DeployBase} from '../helpers/DeployBase.sol';

import {QWManager} from 'contracts/QWManager.sol';
import {QWRegistry} from 'contracts/QWRegistry.sol';
import {QWAaveV3} from 'contracts/child/QWAaveV3.sol';
import {QWAaveV3} from 'contracts/components/QWAaveV3.sol';
import {Script} from 'forge-std/Script.sol';

/**
Expand Down
2 changes: 1 addition & 1 deletion script/child/DeployQWCompound.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {DeployBase} from '../helpers/DeployBase.sol';

import {QWManager} from 'contracts/QWManager.sol';
import {QWRegistry} from 'contracts/QWRegistry.sol';
import {QWCompound} from 'contracts/child/QWCompound.sol';
import {QWCompound} from 'contracts/components/QWCompound.sol';
import {Script} from 'forge-std/Script.sol';

/**
Expand Down
2 changes: 1 addition & 1 deletion script/child/DeployQWUniswapV3Stable.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {DeployBase} from '../helpers/DeployBase.sol';

import {QWManager} from 'contracts/QWManager.sol';
import {QWRegistry} from 'contracts/QWRegistry.sol';
import {QWUniswapV3Stable} from 'contracts/child/QWUniswapV3Stable.sol';
import {QWUniswapV3Stable} from 'contracts/components/QWUniswapV3Stable.sol';
import {Script} from 'forge-std/Script.sol';

/**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.23;

import {IntegrationBase} from '../IntegrationBase.t.sol';
import {IQWManager} from 'interfaces/IQWManager.sol';
import {IERC20, ILendingPool, QWAaveV2} from 'contracts/child/QWAaveV2.sol';
import {IERC20, ILendingPool, QWAaveV2} from 'contracts/components/QWAaveV2.sol';

import {IIncentivesController} from 'interfaces/aave-v2/IIncentivesController.sol';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ pragma solidity 0.8.23;
import {IntegrationBase} from '../IntegrationBase.t.sol';

import {IRewardsController} from '@aave/periphery-v3/contracts/rewards/interfaces/IRewardsController.sol';
import {IERC20, IPool, IQWChild, QWAaveV3} from 'contracts/child/QWAaveV3.sol';
import {IERC20, IPool, QWAaveV3} from 'contracts/components/QWAaveV3.sol';
import {IQWComponent} from 'interfaces/IQWComponent.sol';

contract AaveIntegrationV3 is IntegrationBase {
IPool internal _aavePool = IPool(0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2);
IERC20 internal _aUsdc = IERC20(0x98C23E9d8f34FEFb1B7BD6a91B7FF122F4e16F5c);
IRewardsController internal _rewards = IRewardsController(0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb);
IQWChild internal _QWAaveV3;
IQWComponent internal _QWAaveV3;

Check warning on line 14 in test/integration/components/QWAaveV3.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Variable name must be in mixedCase

function setUp() public virtual override {
IntegrationBase.setUp();
Expand All @@ -20,7 +21,7 @@ contract AaveIntegrationV3 is IntegrationBase {

_QWAaveV3 = new QWAaveV3(address(_qwManager), address(_aavePool), investmentToken, assetToken);
vm.prank(_owner);
_qwRegistry.registerChild(address(_QWAaveV3));
_qwRegistry.registerComponent(address(_QWAaveV3));
}

function test_CreateAaveV3() public {

Check warning on line 27 in test/integration/components/QWAaveV3.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Function name must be in mixedCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity 0.8.23;

import {IntegrationBase} from '../IntegrationBase.t.sol';
import {IComet, IERC20, IQWChild, QWCompound} from 'contracts/child/QWCompound.sol';
import {IComet, IERC20, IQWChild, QWCompound} from 'contracts/components/QWCompound.sol';
import {Test, console2} from 'forge-std/Test.sol';

Check warning on line 6 in test/integration/components/QWCompound.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Variable "Test" is unused

Check warning on line 6 in test/integration/components/QWCompound.t.sol

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Variable "console2" is unused

contract CompoundIntegration is IntegrationBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
IQWChild,
IUniswapV3Pool,
QWUniswapV3Stable
} from 'contracts/child/QWUniswapV3Stable.sol';
} from 'contracts/components/QWUniswapV3Stable.sol';

contract UniswapV3stableIntegration is IntegrationBase {
IUniswapV3Pool internal _uniswapUSDCUSDTPool = IUniswapV3Pool(0x7858E59e0C01EA06Df3aF3D20aC7B0003275D4Bf);
Expand Down
4 changes: 2 additions & 2 deletions test/unit/child/QWAaveV3.t.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: APACHE
pragma solidity 0.8.23;

import {IERC20, IPool, IQWChild, QWAaveV3} from 'contracts/child/QWAaveV3.sol';
import {IERC20, IPool, IQWChild, QWAaveV3} from 'contracts/components/QWAaveV3.sol';
import {Test} from 'forge-std/Test.sol';
import {MockQWAaveV3} from 'test/smock/child/MockQWAaveV3.sol';
import {MockQWAaveV3} from 'test/smock/components/MockQWAaveV3.sol';

contract UnitQWAaveV3Test is Test {
MockQWAaveV3 public mockQWAaveV3;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/child/QWCompound.t.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: APACHE
pragma solidity 0.8.23;

import {IComet, IERC20, IQWChild, QWCompound} from 'contracts/child/QWCompound.sol';
import {IComet, IERC20, IQWChild, QWCompound} from 'contracts/components/QWCompound.sol';
import {Test} from 'forge-std/Test.sol';
import {MockQWCompound} from 'test/smock/child/MockQWCompound.sol';
import {MockQWCompound} from 'test/smock/components/MockQWCompound.sol';

contract UnitQWAaveV3Test is Test {
MockQWCompound public mockQWCompund;
Expand Down

0 comments on commit 558d183

Please sign in to comment.