Skip to content

Commit

Permalink
Merge branch 'bgd-labs:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
marczeller authored Apr 24, 2024
2 parents 57d9342 + aa141b8 commit 7fe5331
Show file tree
Hide file tree
Showing 42 changed files with 1,598 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## Reserve changes

### Reserves altered

#### GNO ([0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb](https://gnosisscan.io/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb))

| description | value before | value after |
| --- | --- | --- |
| debtCeiling | 1,000,000 $ | 2,000,000 $ |
| ltv | 31 % | 45 % |
| liquidationThreshold | 36 % | 50 % |


## Raw diff

```json
{
"reserves": {
"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb": {
"debtCeiling": {
"from": 100000000,
"to": 200000000
},
"liquidationThreshold": {
"from": 3600,
"to": 5000
},
"ltv": {
"from": 3100,
"to": 4500
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x3829943c53F2d00e20B58475aF19716724bF90Ba": {
"from": true,
"to": null
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Raw diff

```json
{
"forwarderAdaptersByChain": {
"1": {
"0xa198Fac58E02A5C5F8F7e877895d50cFa9ad1E04": {
"from": "0x6Abb61beb5848B476d026C4934E8a6415e2E75a8",
"to": null
},
"0x617332a777780F546261247F621051d0b98975Eb": {
"from": null,
"to": "0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1"
}
}
},
"receiverAdaptersByChain": {
"1": {
"0xa198Fac58E02A5C5F8F7e877895d50cFa9ad1E04": {
"from": true,
"to": null
},
"0x617332a777780F546261247F621051d0b98975Eb": {
"from": null,
"to": true
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x118DFD5418890c0332042ab05173Db4A2C1d283c": {
"from": true,
"to": null
},
"0x3F006299eC88985c18E6e885EeA29A49eC579882": {
"from": null,
"to": true
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x7b62461a3570c6AC8a9f8330421576e417B71EE7": {
"from": true,
"to": null
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
## Raw diff

```json
{
"forwarderAdaptersByChain": {
"56": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": "0x118DFD5418890c0332042ab05173Db4A2C1d283c",
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": "0x3F006299eC88985c18E6e885EeA29A49eC579882"
}
},
"100": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": "0x4A4c73d563395ad827511F70097d4Ef82E653805",
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": "0xA806DA549FcB2B4912a7dFFE4c1aA7A1ed0Bd5C9"
}
},
"137": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": "0x3c25b96fF62D21E90556869272a277eE2E229747",
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": "0x3e72665008dC237bdd91C04C10782Ed1987a4019"
}
},
"43114": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": "0xa198Fac58E02A5C5F8F7e877895d50cFa9ad1E04",
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": "0x617332a777780F546261247F621051d0b98975Eb"
}
}
},
"receiverAdaptersByChain": {
"137": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": true,
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": true
}
},
"43114": {
"0x6Abb61beb5848B476d026C4934E8a6415e2E75a8": {
"from": true,
"to": null
},
"0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1": {
"from": null,
"to": true
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x4A4c73d563395ad827511F70097d4Ef82E653805": {
"from": true,
"to": null
},
"0xA806DA549FcB2B4912a7dFFE4c1aA7A1ed0Bd5C9": {
"from": null,
"to": true
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x746c675dAB49Bcd5BB9Dc85161f2d7Eb435009bf": {
"from": true,
"to": null
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x81d32B36380e6266e1BDd490eAC56cdB300afBe0": {
"from": true,
"to": null
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Raw diff

```json
{
"forwarderAdaptersByChain": {
"1": {
"0x3c25b96fF62D21E90556869272a277eE2E229747": {
"from": "0x6Abb61beb5848B476d026C4934E8a6415e2E75a8",
"to": null
},
"0x3e72665008dC237bdd91C04C10782Ed1987a4019": {
"from": null,
"to": "0x01dcb90Cf13b82Cde4A0BAcC655585a83Af3cCC1"
}
}
},
"receiverAdaptersByChain": {
"1": {
"0x3c25b96fF62D21E90556869272a277eE2E229747": {
"from": true,
"to": null
},
"0x3e72665008dC237bdd91C04C10782Ed1987a4019": {
"from": null,
"to": true
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Raw diff

```json
{
"receiverAdaptersByChain": {
"1": {
"0x118DFD5418890c0332042ab05173Db4A2C1d283c": {
"from": true,
"to": null
}
}
}
}
```
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"vitest": "^1.4.0"
},
"dependencies": {
"@bgd-labs/aave-address-book": "^2.25.0",
"@bgd-labs/aave-cli": "0.9.3",
"@bgd-labs/aave-address-book": "^2.26.1",
"@bgd-labs/aave-cli": "0.12.0",
"@bgd-labs/js-utils": "^1.3.0",
"@inquirer/prompts": "^3.3.0",
"@inquirer/testing": "^2.1.13",
Expand All @@ -41,7 +41,7 @@
"husky": "^8.0.3",
"lint-staged": "^15.2.2",
"tsx": "^4.7.1",
"viem": "^2.8.16"
"viem": "^2.9.25"
},
"lint-staged": {
"*": "prettier --ignore-unknown --write"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import 'aave-helpers/adi/SimpleReceiverAdapterUpdate.sol';
import {GovernanceV3Arbitrum} from 'aave-address-book/GovernanceV3Arbitrum.sol';
import {ChainIds} from 'aave-helpers/ChainIds.sol';

/**
* @title Hyperlane bridge adapter update to V3
* @author BGD Labs @bgdlabs
* - Discussion: https://governance.aave.com/t/bgd-technical-maintenance-proposals/15274/31
*/
contract AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320 is
SimpleReceiverAdapterUpdate(
SimpleReceiverAdapterUpdate.ConstructorInput({
ccc: GovernanceV3Arbitrum.CROSS_CHAIN_CONTROLLER,
newAdapter: address(0), // no new adapter
adapterToRemove: 0x3829943c53F2d00e20B58475aF19716724bF90Ba
})
)
{
function getChainsToReceive() public pure override returns (uint256[] memory) {
uint256[] memory chains = new uint256[](1);
chains[0] = ChainIds.MAINNET;
return chains;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import 'aave-helpers/adi/test/ADITestBase.sol';
import {GovernanceV3Arbitrum} from 'aave-address-book/GovernanceV3Arbitrum.sol';
import {AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320} from './AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320.sol';

/**
* @dev Test for AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320
* command: make test-contract filter=AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320
*/
contract AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320_Test is ADITestBase {
AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320 internal payload;

function setUp() public {
vm.createSelectFork(vm.rpcUrl('arbitrum'), 201314733);
payload = new AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320();
}

/**
* @dev executes the generic test suite including e2e and config snapshots
*/
function test_defaultProposalExecution() public {
defaultTest(
'AaveV3Arbitrum_HyperlaneBridgeAdapterUpdateToV3_20240320',
GovernanceV3Arbitrum.CROSS_CHAIN_CONTROLLER,
address(payload),
true
);
}
}
Loading

0 comments on commit 7fe5331

Please sign in to comment.