Skip to content

Commit

Permalink
fix: child -> component
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekidd committed Jul 8, 2024
1 parent 3d07970 commit 4f9fd55
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions test/integration/components/QWCompound.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
pragma solidity 0.8.23;

import {IntegrationBase} from '../IntegrationBase.t.sol';
import {IComet, IERC20, IQWChild, QWCompound} from 'contracts/components/QWCompound.sol';
import {IComet, IERC20, IQWComponent, 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 {
IComet internal _compoundV3Comet = IComet(0xc3d688B66703497DAA19211EEdff47f25384cdc3);
IERC20 internal _cUsdcV3 = IERC20(0xc3d688B66703497DAA19211EEdff47f25384cdc3);
IQWChild internal _qwCompound;
IQWComponent internal _qwCompound;

function setUp() public virtual override {
IntegrationBase.setUp();

_qwCompound = new QWCompound(address(_qwManager), address(_compoundV3Comet), address(_usdc), address(_cUsdcV3));
vm.prank(_owner);
_qwRegistry.registerChild(address(_qwCompound));
_qwRegistry.registerComponent(address(_qwCompound));
}

function test_OpenCompound() public {

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

View workflow job for this annotation

GitHub Actions / Lint Commit Messages

Function name must be in mixedCase
Expand Down
4 changes: 2 additions & 2 deletions test/integration/components/QWUniswapV3Stable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Test, console2} from 'forge-std/Test.sol';
import {
IERC20,
INonfungiblePositionManager,
IQWChild,
IQWComponent,
IUniswapV3Pool,
QWUniswapV3Stable
} from 'contracts/components/QWUniswapV3Stable.sol';
Expand All @@ -27,7 +27,7 @@ contract UniswapV3stableIntegration is IntegrationBase {
_QWUniswapV3Stable = new QWUniswapV3Stable(
address(_qwManager), address(_nonfungiblePositionManager), _factory, _weth, address(_uniswapUSDCUSDTPool)
);
_qwRegistry.registerChild(address(_QWUniswapV3Stable));
_qwRegistry.registerComponent(address(_QWUniswapV3Stable));
vm.stopPrank();

uint256 amount = 1e10; // 10k usdc/usdt
Expand Down
2 changes: 1 addition & 1 deletion test/smock/MockQWManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity ^0.8.0;

import {
IERC20, IQWChild, IQWManager, IQWRegistry, Ownable, QWManager, QWRegistry
IERC20, IQWComponent, IQWManager, IQWRegistry, Ownable, QWManager, QWRegistry
} from '../../src/contracts/QWManager.sol';
import {Test} from 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion test/smock/MockQWRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity ^0.8.0;

import {IQWChild, IQWRegistry, Ownable, QWRegistry} from '../../src/contracts/QWRegistry.sol';
import {IQWComponent, IQWRegistry, Ownable, QWRegistry} from '../../src/contracts/QWRegistry.sol';
import {Test} from 'forge-std/Test.sol';

contract MockQWRegistry is QWRegistry, Test {
Expand Down
2 changes: 1 addition & 1 deletion test/smock/components/MockQWAaveV2.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity ^0.8.0;

import {IERC20, ILendingPool, IQWChild, QWAaveV2} from '../../../src/contracts/components/QWAaveV2.sol';
import {IERC20, ILendingPool, IQWComponent, QWAaveV2} from '../../../src/contracts/components/QWAaveV2.sol';
import {Test} from 'forge-std/Test.sol';

contract MockQWAaveV2 is QWAaveV2, Test {
Expand Down
2 changes: 1 addition & 1 deletion test/smock/components/MockQWAaveV3.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity ^0.8.0;

import {IERC20, IPool, IQWChild, QWAaveV3} from '../../../src/contracts/components/QWAaveV3.sol';
import {IERC20, IPool, IQWComponent, QWAaveV3} from '../../../src/contracts/components/QWAaveV3.sol';
import {Test} from 'forge-std/Test.sol';

contract MockQWAaveV3 is QWAaveV3, Test {
Expand Down
2 changes: 1 addition & 1 deletion test/smock/components/MockQWCompound.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity ^0.8.0;

import {IComet, IERC20, IQWChild, QWCompound} from '../../../src/contracts/components/QWCompound.sol';
import {IComet, IERC20, IQWComponent, QWCompound} from '../../../src/contracts/components/QWCompound.sol';
import {Test} from 'forge-std/Test.sol';

contract MockQWCompound is QWCompound, Test {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/QWManager.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity 0.8.23;

import {IERC20, IQWChild, IQWManager, QWManager} from 'contracts/QWManager.sol';
import {IERC20, IQWComponent, IQWManager, QWManager} from 'contracts/QWManager.sol';
import {Test} from 'forge-std/Test.sol';
import {MockQWManager} from 'test/smock/MockQWManager.sol';
import {MockQWRegistry} from 'test/smock/MockQWRegistry.sol';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/components/QWAaveV3.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity 0.8.23;

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

Expand Down
2 changes: 1 addition & 1 deletion test/unit/components/QWCompound.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: APACHE
pragma solidity 0.8.23;

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

Expand Down

0 comments on commit 4f9fd55

Please sign in to comment.