Skip to content

Commit

Permalink
Merge pull request #20 from bgd-labs/refactor/import
Browse files Browse the repository at this point in the history
refactor: change imports
  • Loading branch information
kyzia551 authored Apr 5, 2023
2 parents f32516f + 3363a97 commit e12f827
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ETH_RPC_URL=https://eth-mainnet.alchemyapi.io/v2/ALCHEMY_API_KEY
RPC_MAINNET=https://eth-mainnet.alchemyapi.io/v2/ALCHEMY_API_KEY
FORK_BLOCK=someBlockNumber
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build :; forge build --sizes
.PHONY : test

# IMPORTANT It is highly probable that will be necessary to modify the --fork-block-number, depending on the test
test :; forge test -vvv --rpc-url=${ETH_RPC_URL} --fork-block-number ${FORK_BLOCK}
trace :; forge test -vvvv --rpc-url=${ETH_RPC_URL}
test :; forge test -vvv --rpc-url=${RPC_MAINNET} --fork-block-number ${FORK_BLOCK}
trace :; forge test -vvvv --rpc-url=${RPC_MAINNET}
clean :; forge clean
snapshot :; forge snapshot
snapshot :; forge snapshot
2 changes: 1 addition & 1 deletion lib/forge-std
4 changes: 4 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
aave-token-v2/=lib/aave-token-v2/contracts/
ds-test/=lib/forge-std/lib/ds-test/src/
forge-std/=lib/forge-std/src/
openzeppelin-contracts/=lib/openzeppelin-contracts/
6 changes: 3 additions & 3 deletions src/BaseAaveToken.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Context} from '../lib/openzeppelin-contracts/contracts/utils/Context.sol';
import {IERC20} from '../lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol';
import {IERC20Metadata} from '../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {Context} from 'openzeppelin-contracts/contracts/utils/Context.sol';
import {IERC20} from 'openzeppelin-contracts/contracts/token/ERC20/IERC20.sol';
import {IERC20Metadata} from 'openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {DelegationMode} from './DelegationAwareBalance.sol';

// Inspired by OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)
Expand Down
4 changes: 2 additions & 2 deletions src/test/InternalDelegationFunctionsTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Strings} from '../../lib/openzeppelin-contracts/contracts/utils/Strings.sol';
import {IERC20Metadata} from '../../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {Strings} from 'openzeppelin-contracts/contracts/utils/Strings.sol';
import {IERC20Metadata} from 'openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {AaveTokenV3} from '../AaveTokenV3.sol';
import {DelegationMode} from '../DelegationAwareBalance.sol';

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

import {IERC20Metadata} from '../../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {IERC20Metadata} from 'openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {AaveTokenV3} from '../AaveTokenV3.sol';

import {AaveUtils, console} from './utils/AaveUtils.sol';
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils/AaveUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.0;

import 'forge-std/Test.sol';

import {IERC20Metadata} from '../../../lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';
import {IERC20Metadata} from 'openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol';

import {AaveTokenV3} from '../../AaveTokenV3.sol';

Expand Down

0 comments on commit e12f827

Please sign in to comment.