forked from bgd-labs/aave-token-v3
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from bgd-labs/feat/base-delegation-isolation
Draft: BaseDelegation
- Loading branch information
Showing
482 changed files
with
891 additions
and
78,776 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts | ||
#TODO: should be removed | ||
[submodule "lib/aave-token-v2"] | ||
path = lib/aave-token-v2 | ||
url = https://github.com/aave/aave-token-v2 | ||
[submodule "lib/forge-std"] | ||
path = lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
url = https://github.com/OpenZeppelin/openzeppelin-contracts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
```diff | ||
diff --git a/reports/AaveTokenV2_layout.md b/reports/AaveTokenV3_layout.md | ||
index 0936f3f..964f7da 100644 | ||
--- a/reports/AaveTokenV2_layout.md | ||
+++ b/reports/AaveTokenV3_layout.md | ||
@@ -1,19 +1,16 @@ | ||
-| 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 | | ||
+| 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 | | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
[default] | ||
[profile.default] | ||
src = 'src' | ||
out = 'out' | ||
libs = ['lib'] | ||
remappings = [ | ||
'openzeppelin-contracts/=lib/openzeppelin-contracts/contracts' | ||
'openzeppelin-contracts/=lib/openzeppelin-contracts/' | ||
] | ||
|
||
# See more config options https://github.com/gakonst/foundry/tree/master/config | ||
fs_permissions = [{access = "write", path = "./reports"}] | ||
|
||
[rpc_endpoints] | ||
mainnet = "${RPC_MAINNET}" | ||
|
||
[etherscan] | ||
mainnet={key="${ETHERSCAN_API_KEY_MAINNET}",chainId=1} | ||
|
||
# See more config options https://github.com/gakonst/foundry/tree/master/config |
Submodule forge-std
updated
47 files
Submodule openzeppelin-contracts
added at
e50c24
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
lib/openzeppelin-contracts/.github/ISSUE_TEMPLATE/bug_report.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
lib/openzeppelin-contracts/.github/ISSUE_TEMPLATE/feature_request.md
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
lib/openzeppelin-contracts/.github/PULL_REQUEST_TEMPLATE.md
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.