Skip to content

Commit

Permalink
fix: updates based on upstream changes from bgd-labs#527
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaSethi committed Dec 25, 2024
1 parent ff43141 commit 9faf62d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
## Emodes changed

### EMode: Stablecoins(id: 1)



### EMode: ETH correlated(id: 2)



## Raw diff

```json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
## Emodes changed

### EMode: ETH correlated(id: 1)



### EMode: sUSDe Stablecoins(id: 2)



### EMode: rsETH LST main(id: 3)



## Raw diff

```json
Expand Down
9 changes: 8 additions & 1 deletion remappings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ aave-address-book/=lib/aave-helpers/lib/aave-address-book/src/
aave-helpers/=lib/aave-helpers/
aave-v3-origin/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/src/
forge-std/=lib/aave-helpers/lib/forge-std/src/
solidity-utils/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src
solidity-utils/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/src/
@openzeppelin/contracts-upgradeable/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/contracts/
@openzeppelin/contracts/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/contracts/
aave-v3-origin-tests/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/tests/
ds-test/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/forge-std/lib/ds-test/src/
erc4626-tests/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/
openzeppelin-contracts-upgradeable/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/
openzeppelin-contracts/=lib/aave-helpers/lib/aave-address-book/lib/aave-v3-origin/lib/solidity-utils/lib/openzeppelin-contracts-upgradeable/lib/openzeppelin-contracts/
aave-ccip/=lib/ccip/contracts/src/v0.8/ccip
gho-core/=lib/gho-core/src/contracts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {TransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-proxy/TransparentUpgradeableProxy.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {ITransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-proxy/TransparentUpgradeableProxy.sol';
import {IUpgradeableBurnMintTokenPool_1_4, IUpgradeableBurnMintTokenPool_1_5_1} from 'src/interfaces/ccip/tokenPool/IUpgradeableBurnMintTokenPool.sol';
import {ITokenAdminRegistry} from 'src/interfaces/ccip/ITokenAdminRegistry.sol';
import {IRateLimiter} from 'src/interfaces/ccip/IRateLimiter.sol';
import {ILegacyProxyAdmin} from 'src/interfaces/ILegacyProxyAdmin.sol';
import {IGhoToken} from 'src/interfaces/IGhoToken.sol';
import {IProposalGenericExecutor} from 'aave-helpers/src/interfaces/IProposalGenericExecutor.sol';
import {MiscArbitrum} from 'aave-address-book/MiscArbitrum.sol';
Expand Down Expand Up @@ -108,8 +108,8 @@ contract AaveV3Arbitrum_GHOCCIP151Upgrade_20241209 is IProposalGenericExecutor {
}

function _upgradeExistingTokenPool() internal {
ProxyAdmin(MiscArbitrum.PROXY_ADMIN).upgrade(
TransparentUpgradeableProxy(payable(address(EXISTING_TOKEN_POOL))),
ILegacyProxyAdmin(MiscArbitrum.PROXY_ADMIN).upgrade(
ITransparentUpgradeableProxy(payable(address(EXISTING_TOKEN_POOL))),
EXISTING_TOKEN_POOL_UPGRADE_IMPL
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import {AaveV3Arbitrum} from 'aave-address-book/AaveV3Arbitrum.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol';
import {MiscArbitrum} from 'aave-address-book/MiscArbitrum.sol';
import {GhoArbitrum} from 'aave-address-book/GhoArbitrum.sol';
import {GovernanceV3Arbitrum} from 'aave-address-book/GovernanceV3Arbitrum.sol';

import {TransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-proxy/TransparentUpgradeableProxy.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {UpgradeableBurnMintTokenPool} from 'aave-ccip/pools/GHO/UpgradeableBurnMintTokenPool.sol';
import {GhoCcipSteward} from 'gho-core/misc/GhoCcipSteward.sol';

Expand Down Expand Up @@ -92,7 +94,7 @@ contract AaveV3Arbitrum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {

function _deployNewTokenPoolArb() private returns (address) {
IUpgradeableBurnMintTokenPool_1_4 existingTokenPool = IUpgradeableBurnMintTokenPool_1_4(
MiscArbitrum.GHO_CCIP_TOKEN_POOL
GhoArbitrum.GHO_CCIP_TOKEN_POOL
);
address newTokenPoolImpl = address(
new UpgradeableBurnMintTokenPool(
Expand All @@ -106,7 +108,7 @@ contract AaveV3Arbitrum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
address(
new TransparentUpgradeableProxy(
newTokenPoolImpl,
address(MiscArbitrum.PROXY_ADMIN),
ProxyAdmin(MiscArbitrum.PROXY_ADMIN),
abi.encodeCall(
IUpgradeableBurnMintTokenPool_1_5_1.initialize,
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ import {IGhoCcipSteward} from 'src/interfaces/IGhoCcipSteward.sol';

import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol';
import {GhoEthereum} from 'aave-address-book/GhoEthereum.sol';
import {GhoArbitrum} from 'aave-address-book/GhoArbitrum.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {MiscArbitrum} from 'aave-address-book/MiscArbitrum.sol';
import {GovernanceV3Ethereum} from 'aave-address-book/GovernanceV3Ethereum.sol';
import {GovernanceV3Arbitrum} from 'aave-address-book/GovernanceV3Arbitrum.sol';

import {TransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-proxy/TransparentUpgradeableProxy.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {UpgradeableLockReleaseTokenPool} from 'aave-ccip/pools/GHO/UpgradeableLockReleaseTokenPool.sol';
import {UpgradeableBurnMintTokenPool} from 'aave-ccip/pools/GHO/UpgradeableBurnMintTokenPool.sol';
import {GhoCcipSteward} from 'gho-core/misc/GhoCcipSteward.sol';
Expand Down Expand Up @@ -280,7 +283,7 @@ contract AaveV3E2E_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {

function _deployNewTokenPoolEth() private returns (address) {
IUpgradeableLockReleaseTokenPool_1_4 existingTokenPool = IUpgradeableLockReleaseTokenPool_1_4(
MiscEthereum.GHO_CCIP_TOKEN_POOL
GhoEthereum.GHO_CCIP_TOKEN_POOL
);
address newTokenPoolImpl = address(
new UpgradeableLockReleaseTokenPool(
Expand All @@ -296,7 +299,7 @@ contract AaveV3E2E_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
address(
new TransparentUpgradeableProxy(
newTokenPoolImpl,
MiscEthereum.PROXY_ADMIN,
ProxyAdmin(MiscEthereum.PROXY_ADMIN),
abi.encodeCall(
IUpgradeableLockReleaseTokenPool_1_5_1.initialize,
(
Expand All @@ -312,7 +315,7 @@ contract AaveV3E2E_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {

function _deployNewTokenPoolArb() private returns (address) {
IUpgradeableBurnMintTokenPool_1_4 existingTokenPool = IUpgradeableBurnMintTokenPool_1_4(
MiscArbitrum.GHO_CCIP_TOKEN_POOL
GhoArbitrum.GHO_CCIP_TOKEN_POOL
);
address newTokenPoolImpl = address(
new UpgradeableBurnMintTokenPool(
Expand All @@ -326,7 +329,7 @@ contract AaveV3E2E_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
address(
new TransparentUpgradeableProxy(
newTokenPoolImpl,
address(MiscArbitrum.PROXY_ADMIN),
ProxyAdmin(MiscArbitrum.PROXY_ADMIN),
abi.encodeCall(
IUpgradeableBurnMintTokenPool_1_5_1.initialize,
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ import {IGhoCcipSteward} from 'src/interfaces/IGhoCcipSteward.sol';

import {ProtocolV3TestBase} from 'aave-helpers/src/ProtocolV3TestBase.sol';
import {AaveV3Ethereum} from 'aave-address-book/AaveV3Ethereum.sol';
import {GhoEthereum} from 'aave-address-book/GhoEthereum.sol';
import {MiscEthereum} from 'aave-address-book/MiscEthereum.sol';
import {GovernanceV3Ethereum} from 'aave-address-book/GovernanceV3Ethereum.sol';
import {AaveV3Arbitrum} from 'aave-address-book/AaveV3Arbitrum.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol';

import {TransparentUpgradeableProxy} from 'solidity-utils/contracts/transparent-proxy/TransparentUpgradeableProxy.sol';
import {ProxyAdmin} from 'solidity-utils/contracts/transparent-proxy/ProxyAdmin.sol';
import {UpgradeableLockReleaseTokenPool} from 'aave-ccip/pools/GHO/UpgradeableLockReleaseTokenPool.sol';
import {GhoCcipSteward} from 'gho-core/misc/GhoCcipSteward.sol';

Expand Down Expand Up @@ -98,7 +100,7 @@ contract AaveV3Ethereum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {

function _deployNewTokenPoolEth() private returns (address) {
IUpgradeableLockReleaseTokenPool_1_4 existingTokenPool = IUpgradeableLockReleaseTokenPool_1_4(
MiscEthereum.GHO_CCIP_TOKEN_POOL
GhoEthereum.GHO_CCIP_TOKEN_POOL
);
address newTokenPoolImpl = address(
new UpgradeableLockReleaseTokenPool(
Expand All @@ -114,7 +116,7 @@ contract AaveV3Ethereum_GHOCCIP151Upgrade_20241209_Base is ProtocolV3TestBase {
address(
new TransparentUpgradeableProxy(
newTokenPoolImpl,
MiscEthereum.PROXY_ADMIN,
ProxyAdmin(MiscEthereum.PROXY_ADMIN),
abi.encodeCall(
IUpgradeableLockReleaseTokenPool_1_5_1.initialize,
(
Expand Down

0 comments on commit 9faf62d

Please sign in to comment.