From 8ddb500e57b0c56728f601d1444aa6b6f0b7edf7 Mon Sep 17 00:00:00 2001 From: eboado Date: Thu, 28 Sep 2023 11:37:44 +0200 Subject: [PATCH] misc organization changes --- .env.example | 3 +++ README.md | 2 +- reports/AaveTokenV2_layout.md | 19 ------------------- reports/AaveTokenV3_layout.md | 16 ---------------- 4 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 reports/AaveTokenV2_layout.md delete mode 100644 reports/AaveTokenV3_layout.md diff --git a/.env.example b/.env.example index 22da89a..6c65dbc 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,5 @@ RPC_MAINNET=https://eth-mainnet.alchemyapi.io/v2/ALCHEMY_API_KEY FORK_BLOCK=someBlockNumber + +# Optional +ETHERSCAN_API_KEY_MAINNET= \ No newline at end of file diff --git a/README.md b/README.md index 51540c3..9df0647 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ More detailed description and specification [HERE](./properties.md) This repository requires having Foundry installed in the running machine. Instructions on how to do it [HERE](https://github.com/foundry-rs/foundry#installation). After having installed Foundry: -1. Add a `.env` file with properly configured `ETH_RPC_URL` and `FORK_BLOCK`, following the example on `.env.example` +1. Add a `.env` file with properly configured `RPC_MAINNET` and `FORK_BLOCK`, following the example on `.env.example` 2. `make test` to run the simulation tests.
diff --git a/reports/AaveTokenV2_layout.md b/reports/AaveTokenV2_layout.md deleted file mode 100644 index 0936f3f..0000000 --- a/reports/AaveTokenV2_layout.md +++ /dev/null @@ -1,19 +0,0 @@ -| Name | Type | Slot | Offset | Bytes | Contract | -|----------------------------------|----------------------------------------------------------------------------------------|------|--------|-------|---------------------------------------------------------------| -| _balances | mapping(address => uint256) | 0 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _allowances | mapping(address => mapping(address => uint256)) | 1 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _totalSupply | uint256 | 2 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _name | string | 3 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _symbol | string | 4 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _decimals | uint8 | 5 | 0 | 1 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| lastInitializedRevision | uint256 | 6 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| ______gap | uint256[50] | 7 | 0 | 1600 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _nonces | mapping(address => uint256) | 57 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _votingSnapshots | mapping(address => mapping(uint256 => struct GovernancePowerDelegationERC20.Snapshot)) | 58 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _votingSnapshotsCounts | mapping(address => uint256) | 59 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _aaveGovernance | contract ITransferHook | 60 | 0 | 20 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| DOMAIN_SEPARATOR | bytes32 | 61 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _votingDelegates | mapping(address => address) | 62 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _propositionPowerSnapshots | mapping(address => mapping(uint256 => struct GovernancePowerDelegationERC20.Snapshot)) | 63 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _propositionPowerSnapshotsCounts | mapping(address => uint256) | 64 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | -| _propositionPowerDelegates | mapping(address => address) | 65 | 0 | 32 | lib/aave-token-v2/contracts/token/AaveTokenV2.sol:AaveTokenV2 | diff --git a/reports/AaveTokenV3_layout.md b/reports/AaveTokenV3_layout.md deleted file mode 100644 index 964f7da..0000000 --- a/reports/AaveTokenV3_layout.md +++ /dev/null @@ -1,16 +0,0 @@ -| Name | Type | Slot | Offset | Bytes | Contract | -|-------------------------------------|-----------------------------------------------------------------|------|--------|-------|---------------------------------| -| _balances | mapping(address => struct BaseAaveToken.DelegationAwareBalance) | 0 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| _allowances | mapping(address => mapping(address => uint256)) | 1 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| _totalSupply | uint256 | 2 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| _name | string | 3 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| _symbol | string | 4 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| ______DEPRECATED_OLD_ERC20_DECIMALS | uint8 | 5 | 0 | 1 | src/AaveTokenV3.sol:AaveTokenV3 | -| lastInitializedRevision | uint256 | 6 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| ______gap | uint256[50] | 7 | 0 | 1600 | src/AaveTokenV3.sol:AaveTokenV3 | -| _nonces | mapping(address => uint256) | 57 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| ______DEPRECATED_FROM_AAVE_V1 | uint256[3] | 58 | 0 | 96 | src/AaveTokenV3.sol:AaveTokenV3 | -| __DEPRECATED_DOMAIN_SEPARATOR | bytes32 | 61 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| ______DEPRECATED_FROM_AAVE_V2 | uint256[4] | 62 | 0 | 128 | src/AaveTokenV3.sol:AaveTokenV3 | -| _votingDelegatee | mapping(address => address) | 66 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 | -| _propositionDelegatee | mapping(address => address) | 67 | 0 | 32 | src/AaveTokenV3.sol:AaveTokenV3 |