@bgd-labs/aave-address-book 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +12 -3
- package/CHANGELOG.md +14 -0
- package/dist/AaveAddressBook.d.ts +23 -23
- package/dist/AaveGovernanceV2.d.ts +6 -0
- package/dist/AaveGovernanceV2.js +11 -5
- package/dist/AaveSafetyModule.js +2 -2
- package/dist/AaveV2Avalanche.js +13 -13
- package/dist/AaveV2Ethereum.js +13 -13
- package/dist/AaveV2EthereumAMM.js +13 -13
- package/dist/AaveV2EthereumArc.js +10 -10
- package/dist/AaveV2Fuji.js +12 -12
- package/dist/AaveV2Goerli.js +12 -12
- package/dist/AaveV2Mumbai.js +12 -12
- package/dist/AaveV2Polygon.js +13 -13
- package/dist/AaveV3Arbitrum.js +18 -18
- package/dist/AaveV3ArbitrumGoerli.js +17 -17
- package/dist/AaveV3Avalanche.js +18 -18
- package/dist/AaveV3Ethereum.js +19 -19
- package/dist/AaveV3Fantom.js +18 -18
- package/dist/AaveV3FantomTestnet.js +17 -17
- package/dist/AaveV3Fuji.js +17 -17
- package/dist/AaveV3Goerli.js +17 -17
- package/dist/AaveV3Harmony.js +16 -16
- package/dist/AaveV3Mumbai.js +17 -17
- package/dist/AaveV3Optimism.js +18 -18
- package/dist/AaveV3OptimismGoerli.js +17 -17
- package/dist/AaveV3Polygon.js +18 -18
- package/package.json +6 -6
- package/src/AaveAddressBook.sol +23 -23
- package/src/AaveGovernanceV2.sol +17 -59
- package/src/AaveMisc.sol +3 -7
- package/src/AaveV2.sol +38 -84
- package/src/AaveV2Avalanche.sol +19 -28
- package/src/AaveV2Ethereum.sol +19 -29
- package/src/AaveV2EthereumAMM.sol +18 -29
- package/src/AaveV2EthereumArc.sol +14 -23
- package/src/AaveV2Fuji.sol +17 -26
- package/src/AaveV2Goerli.sol +17 -26
- package/src/AaveV2Mumbai.sol +17 -26
- package/src/AaveV2Polygon.sol +19 -29
- package/src/AaveV3.sol +2 -0
- package/src/AaveV3Arbitrum.sol +29 -37
- package/src/AaveV3ArbitrumGoerli.sol +27 -35
- package/src/AaveV3Avalanche.sol +29 -37
- package/src/AaveV3Ethereum.sol +29 -39
- package/src/AaveV3Fantom.sol +29 -37
- package/src/AaveV3FantomTestnet.sol +27 -35
- package/src/AaveV3Fuji.sol +27 -35
- package/src/AaveV3Goerli.sol +27 -35
- package/src/AaveV3Harmony.sol +26 -33
- package/src/AaveV3Mumbai.sol +27 -35
- package/src/AaveV3Optimism.sol +29 -37
- package/src/AaveV3OptimismGoerli.sol +27 -35
- package/src/AaveV3Polygon.sol +29 -37
- package/src/test/AaveV2Ethereum.t.sol +5 -20
- package/src/test/AaveV3Avalanche.t.sol +4 -16
- package/src/ts/AaveAddressBook.ts +23 -23
- package/src/ts/AaveGovernanceV2.ts +10 -4
- package/src/ts/AaveSafetyModule.ts +2 -2
- package/src/ts/AaveV2Avalanche.ts +13 -18
- package/src/ts/AaveV2Ethereum.ts +13 -19
- package/src/ts/AaveV2EthereumAMM.ts +13 -19
- package/src/ts/AaveV2EthereumArc.ts +10 -13
- package/src/ts/AaveV2Fuji.ts +12 -15
- package/src/ts/AaveV2Goerli.ts +12 -15
- package/src/ts/AaveV2Mumbai.ts +12 -15
- package/src/ts/AaveV2Polygon.ts +13 -19
- package/src/ts/AaveV3Arbitrum.ts +18 -28
- package/src/ts/AaveV3ArbitrumGoerli.ts +17 -25
- package/src/ts/AaveV3Avalanche.ts +18 -28
- package/src/ts/AaveV3Ethereum.ts +19 -29
- package/src/ts/AaveV3Fantom.ts +18 -28
- package/src/ts/AaveV3FantomTestnet.ts +17 -25
- package/src/ts/AaveV3Fuji.ts +17 -25
- package/src/ts/AaveV3Goerli.ts +17 -25
- package/src/ts/AaveV3Harmony.ts +16 -24
- package/src/ts/AaveV3Mumbai.ts +17 -25
- package/src/ts/AaveV3Optimism.ts +18 -28
- package/src/ts/AaveV3OptimismGoerli.ts +17 -25
- package/src/ts/AaveV3Polygon.ts +18 -28
package/src/AaveV3Optimism.sol
CHANGED
|
@@ -2,60 +2,52 @@
|
|
|
2
2
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
3
3
|
pragma solidity >=0.6.0;
|
|
4
4
|
|
|
5
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from
|
|
5
|
+
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from './AaveV3.sol';
|
|
6
6
|
|
|
7
7
|
library AaveV3Optimism {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
|
|
9
|
+
IPoolAddressesProvider(0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);
|
|
11
|
+
IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
IPoolConfigurator internal constant POOL_CONFIGURATOR =
|
|
14
|
+
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
IAaveOracle(0xD81eb3728a631871a7eBBaD631b5f424909f0c77);
|
|
16
|
+
IAaveOracle internal constant ORACLE = IAaveOracle(0xD81eb3728a631871a7eBBaD631b5f424909f0c77);
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
|
|
19
|
+
IPoolDataProvider(0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654);
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
IACLManager internal constant ACL_MANAGER =
|
|
22
|
+
IACLManager(0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B);
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
0xE50c8C619d05ff98b22Adf991F17602C774F785c;
|
|
24
|
+
address internal constant ACL_ADMIN = 0xE50c8C619d05ff98b22Adf991F17602C774F785c;
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
0xB2289E329D2F85F1eD31Adbb30eA345278F21bcf;
|
|
26
|
+
address internal constant COLLECTOR = 0xB2289E329D2F85F1eD31Adbb30eA345278F21bcf;
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
ICollector internal constant COLLECTOR_CONTROLLER =
|
|
29
|
+
ICollector(0xA77E4A084d7d4f064E326C0F6c0aCefd47A5Cb21);
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
address internal constant DEFAULT_INCENTIVES_CONTROLLER =
|
|
32
|
+
0x929EC64c34a17401F460460D4B9390518E5B473e;
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B;
|
|
34
|
+
address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B;
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
37
|
+
0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3;
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
address internal constant DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
40
|
+
0x52A1CeB68Ee6b7B5D13E0376A1E0E4423A8cE26e;
|
|
46
41
|
|
|
47
|
-
|
|
48
|
-
0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73;
|
|
42
|
+
address internal constant EMISSION_MANAGER = 0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73;
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
45
|
+
0x770ef9f4fe897e59daCc474EF11238303F9552b6;
|
|
52
46
|
|
|
53
|
-
|
|
54
|
-
0x76D3030728e52DEB8848d5613aBaDE88441cbc59;
|
|
47
|
+
address internal constant WETH_GATEWAY = 0x76D3030728e52DEB8848d5613aBaDE88441cbc59;
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
0xC7524B08101dBe695d7ad671a332760b5d967Cbd;
|
|
49
|
+
address internal constant SWAP_COLLATERAL_ADAPTER = 0xC7524B08101dBe695d7ad671a332760b5d967Cbd;
|
|
58
50
|
|
|
59
|
-
|
|
60
|
-
|
|
51
|
+
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
|
|
52
|
+
0x70371a494f73A8Df658C5cd29E2C1601787e1009;
|
|
61
53
|
}
|
|
@@ -2,57 +2,49 @@
|
|
|
2
2
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
3
3
|
pragma solidity >=0.6.0;
|
|
4
4
|
|
|
5
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from
|
|
5
|
+
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from './AaveV3.sol';
|
|
6
6
|
|
|
7
7
|
library AaveV3OptimismGoerli {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
|
|
9
|
+
IPoolAddressesProvider(0x74a328ED938160D702378Daeb7aB2504714B4E4b);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
IPool(0x4b529A5d8268d74B687aC3dbb00e1b85bF4BF0d4);
|
|
11
|
+
IPool internal constant POOL = IPool(0x4b529A5d8268d74B687aC3dbb00e1b85bF4BF0d4);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
IPoolConfigurator internal constant POOL_CONFIGURATOR =
|
|
14
|
+
IPoolConfigurator(0x598fCb66f358d0C1396972a1BC30DeC2daB87E46);
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
IAaveOracle(0x171Af9229972716f28DBB04DBFC712F05B45B021);
|
|
16
|
+
IAaveOracle internal constant ORACLE = IAaveOracle(0x171Af9229972716f28DBB04DBFC712F05B45B021);
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
|
|
19
|
+
IPoolDataProvider(0x42BdE9c98B80e83F1B051B4bb11812aDa314213a);
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
IACLManager internal constant ACL_MANAGER =
|
|
22
|
+
IACLManager(0x9B14C2DEe92CE731da32bf861Ca4Fb2202662248);
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
0x4365F8e70CF38C6cA67DE41448508F2da8825500;
|
|
24
|
+
address internal constant ACL_ADMIN = 0x4365F8e70CF38C6cA67DE41448508F2da8825500;
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
0x8Ee63E24D91317f9DabFf3c5361d747244c0f16c;
|
|
26
|
+
address internal constant COLLECTOR = 0x8Ee63E24D91317f9DabFf3c5361d747244c0f16c;
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
ICollector internal constant COLLECTOR_CONTROLLER =
|
|
29
|
+
ICollector(0xADDcE1e19761577d7FBB278B1b3158891679a066);
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
address internal constant DEFAULT_INCENTIVES_CONTROLLER =
|
|
32
|
+
0x0C501fB73808e1BD73cBDdd0c99237bbc481Bb58;
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
0x08483a8d324C94942D9B9071e5e4aB6F28da0DF1;
|
|
34
|
+
address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0x08483a8d324C94942D9B9071e5e4aB6F28da0DF1;
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
37
|
+
0xC642A760bE9F04b453b899f7F454b2AFe21C1C61;
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
address internal constant DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
40
|
+
0xff01517f8811E532900a46e6AdB4484BDB3f2B8a;
|
|
46
41
|
|
|
47
|
-
|
|
48
|
-
0x46382F2A0E5BF6cbBa72821DFfe3b1CB9630C6E6;
|
|
42
|
+
address internal constant EMISSION_MANAGER = 0x46382F2A0E5BF6cbBa72821DFfe3b1CB9630C6E6;
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
45
|
+
0xA33cB62d453891A1DC80F4A092F4990539e5FA07;
|
|
52
46
|
|
|
53
|
-
|
|
54
|
-
0x6f7f2440006221F893c587b88f01afc42B6F8d2e;
|
|
47
|
+
address internal constant WETH_GATEWAY = 0x6f7f2440006221F893c587b88f01afc42B6F8d2e;
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
0xC52eA1F19C22E5a3725105BC0cf4988614e84D98;
|
|
49
|
+
address internal constant FAUCET = 0xC52eA1F19C22E5a3725105BC0cf4988614e84D98;
|
|
58
50
|
}
|
package/src/AaveV3Polygon.sol
CHANGED
|
@@ -2,60 +2,52 @@
|
|
|
2
2
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
3
3
|
pragma solidity >=0.6.0;
|
|
4
4
|
|
|
5
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from
|
|
5
|
+
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager, ICollector} from './AaveV3.sol';
|
|
6
6
|
|
|
7
7
|
library AaveV3Polygon {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
|
|
9
|
+
IPoolAddressesProvider(0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb);
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);
|
|
11
|
+
IPool internal constant POOL = IPool(0x794a61358D6845594F94dc1DB02A252b5b4814aD);
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
IPoolConfigurator internal constant POOL_CONFIGURATOR =
|
|
14
|
+
IPoolConfigurator(0x8145eddDf43f50276641b55bd3AD95944510021E);
|
|
16
15
|
|
|
17
|
-
|
|
18
|
-
IAaveOracle(0xb023e699F5a33916Ea823A16485e259257cA8Bd1);
|
|
16
|
+
IAaveOracle internal constant ORACLE = IAaveOracle(0xb023e699F5a33916Ea823A16485e259257cA8Bd1);
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
|
|
19
|
+
IPoolDataProvider(0x69FA688f1Dc47d4B5d8029D5a35FB7a548310654);
|
|
22
20
|
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
IACLManager internal constant ACL_MANAGER =
|
|
22
|
+
IACLManager(0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B);
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772;
|
|
24
|
+
address internal constant ACL_ADMIN = 0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772;
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
0xe8599F3cc5D38a9aD6F3684cd5CEa72f10Dbc383;
|
|
26
|
+
address internal constant COLLECTOR = 0xe8599F3cc5D38a9aD6F3684cd5CEa72f10Dbc383;
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
ICollector internal constant COLLECTOR_CONTROLLER =
|
|
29
|
+
ICollector(0xDB89487A449274478e984665b8692AfC67459deF);
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
address internal constant DEFAULT_INCENTIVES_CONTROLLER =
|
|
32
|
+
0x929EC64c34a17401F460460D4B9390518E5B473e;
|
|
37
33
|
|
|
38
|
-
|
|
39
|
-
0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B;
|
|
34
|
+
address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0xa5ba6E5EC19a1Bf23C857991c857dB62b2Aa187B;
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
37
|
+
0x81387c40EB75acB02757C1Ae55D5936E78c9dEd3;
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
|
|
39
|
+
address internal constant DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 =
|
|
40
|
+
0x52A1CeB68Ee6b7B5D13E0376A1E0E4423A8cE26e;
|
|
46
41
|
|
|
47
|
-
|
|
48
|
-
0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73;
|
|
42
|
+
address internal constant EMISSION_MANAGER = 0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73;
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
45
|
+
0x770ef9f4fe897e59daCc474EF11238303F9552b6;
|
|
52
46
|
|
|
53
|
-
|
|
54
|
-
0x1e4b7A6b903680eab0c5dAbcb8fD429cD2a9598c;
|
|
47
|
+
address internal constant WETH_GATEWAY = 0x1e4b7A6b903680eab0c5dAbcb8fD429cD2a9598c;
|
|
55
48
|
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
|
|
50
|
+
0xA125561fca253f19eA93970534Bb0364ea74187a;
|
|
58
51
|
|
|
59
|
-
|
|
60
|
-
0x301F221bc732907E2da2dbBFaA8F8F6847c170c3;
|
|
52
|
+
address internal constant SWAP_COLLATERAL_ADAPTER = 0x301F221bc732907E2da2dbBFaA8F8F6847c170c3;
|
|
61
53
|
}
|
|
@@ -15,10 +15,7 @@ contract AaveAddressBookTest is Test {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
function testPoolAddressIsCorrect() public {
|
|
18
|
-
assertEq(
|
|
19
|
-
address(AaveV2Ethereum.POOL),
|
|
20
|
-
address(0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9)
|
|
21
|
-
);
|
|
18
|
+
assertEq(address(AaveV2Ethereum.POOL), address(0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9));
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
function testPoolConfiguratorIsCorrect() public {
|
|
@@ -29,10 +26,7 @@ contract AaveAddressBookTest is Test {
|
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
function testOracleIsCorrect() public {
|
|
32
|
-
assertEq(
|
|
33
|
-
address(AaveV2Ethereum.ORACLE),
|
|
34
|
-
address(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9)
|
|
35
|
-
);
|
|
29
|
+
assertEq(address(AaveV2Ethereum.ORACLE), address(0xA50ba011c48153De246E5192C8f9258A2ba79Ca9));
|
|
36
30
|
}
|
|
37
31
|
|
|
38
32
|
function testAaveProtocolDataProviderIsCorrect() public {
|
|
@@ -43,24 +37,15 @@ contract AaveAddressBookTest is Test {
|
|
|
43
37
|
}
|
|
44
38
|
|
|
45
39
|
function testPoolAdminIsCorrect() public {
|
|
46
|
-
assertEq(
|
|
47
|
-
AaveV2Ethereum.POOL_ADMIN,
|
|
48
|
-
address(0xEE56e2B3D491590B5b31738cC34d5232F378a8D5)
|
|
49
|
-
);
|
|
40
|
+
assertEq(AaveV2Ethereum.POOL_ADMIN, address(0xEE56e2B3D491590B5b31738cC34d5232F378a8D5));
|
|
50
41
|
}
|
|
51
42
|
|
|
52
43
|
function testEmergencyAdminIsCorrect() public {
|
|
53
|
-
assertEq(
|
|
54
|
-
AaveV2Ethereum.EMERGENCY_ADMIN,
|
|
55
|
-
address(0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633)
|
|
56
|
-
);
|
|
44
|
+
assertEq(AaveV2Ethereum.EMERGENCY_ADMIN, address(0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633));
|
|
57
45
|
}
|
|
58
46
|
|
|
59
47
|
function testCollectorIsCorrect() public {
|
|
60
|
-
assertEq(
|
|
61
|
-
AaveV2Ethereum.COLLECTOR,
|
|
62
|
-
address(0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c)
|
|
63
|
-
);
|
|
48
|
+
assertEq(AaveV2Ethereum.COLLECTOR, address(0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c));
|
|
64
49
|
}
|
|
65
50
|
|
|
66
51
|
function testCollectorControllerIsCorrect() public {
|
|
@@ -16,10 +16,7 @@ contract AaveAddressBookTest is Test {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
function testPoolAddressIsCorrect() public {
|
|
19
|
-
assertEq(
|
|
20
|
-
address(AaveV3Avalanche.POOL),
|
|
21
|
-
address(0x794a61358D6845594F94dc1DB02A252b5b4814aD)
|
|
22
|
-
);
|
|
19
|
+
assertEq(address(AaveV3Avalanche.POOL), address(0x794a61358D6845594F94dc1DB02A252b5b4814aD));
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
function testPoolConfiguratorIsCorrect() public {
|
|
@@ -30,10 +27,7 @@ contract AaveAddressBookTest is Test {
|
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
function testOracleIsCorrect() public {
|
|
33
|
-
assertEq(
|
|
34
|
-
address(AaveV3Avalanche.ORACLE),
|
|
35
|
-
address(0xEBd36016B3eD09D4693Ed4251c67Bd858c3c7C9C)
|
|
36
|
-
);
|
|
30
|
+
assertEq(address(AaveV3Avalanche.ORACLE), address(0xEBd36016B3eD09D4693Ed4251c67Bd858c3c7C9C));
|
|
37
31
|
}
|
|
38
32
|
|
|
39
33
|
function testACLManagerIsCorrect() public {
|
|
@@ -44,17 +38,11 @@ contract AaveAddressBookTest is Test {
|
|
|
44
38
|
}
|
|
45
39
|
|
|
46
40
|
function testACLAdminIsCorrect() public {
|
|
47
|
-
assertEq(
|
|
48
|
-
AaveV3Avalanche.ACL_ADMIN,
|
|
49
|
-
address(0xa35b76E4935449E33C56aB24b23fcd3246f13470)
|
|
50
|
-
);
|
|
41
|
+
assertEq(AaveV3Avalanche.ACL_ADMIN, address(0xa35b76E4935449E33C56aB24b23fcd3246f13470));
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
function testCollectorIsCorrect() public {
|
|
54
|
-
assertEq(
|
|
55
|
-
AaveV3Avalanche.COLLECTOR,
|
|
56
|
-
address(0x5ba7fd868c40c16f7aDfAe6CF87121E13FC2F7a0)
|
|
57
|
-
);
|
|
45
|
+
assertEq(AaveV3Avalanche.COLLECTOR, address(0x5ba7fd868c40c16f7aDfAe6CF87121E13FC2F7a0));
|
|
58
46
|
}
|
|
59
47
|
|
|
60
48
|
function testCollectorControllerIsCorrect() public {
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * as AaveGovernanceV2 from
|
|
2
|
-
export * as AaveSafetyModule from
|
|
1
|
+
export * as AaveGovernanceV2 from './AaveGovernanceV2';
|
|
2
|
+
export * as AaveSafetyModule from './AaveSafetyModule';
|
|
3
3
|
// autogenerated entrypoints
|
|
4
|
-
export * as AaveV2Ethereum from
|
|
5
|
-
export * as AaveV2EthereumAMM from
|
|
6
|
-
export * as AaveV2EthereumArc from
|
|
7
|
-
export * as AaveV2Goerli from
|
|
8
|
-
export * as AaveV3Goerli from
|
|
9
|
-
export * as AaveV2Mumbai from
|
|
10
|
-
export * as AaveV3Mumbai from
|
|
11
|
-
export * as AaveV2Polygon from
|
|
12
|
-
export * as AaveV3Polygon from
|
|
13
|
-
export * as AaveV2Fuji from
|
|
14
|
-
export * as AaveV3Fuji from
|
|
15
|
-
export * as AaveV2Avalanche from
|
|
16
|
-
export * as AaveV3Avalanche from
|
|
17
|
-
export * as AaveV3Arbitrum from
|
|
18
|
-
export * as AaveV3ArbitrumGoerli from
|
|
19
|
-
export * as AaveV3FantomTestnet from
|
|
20
|
-
export * as AaveV3Fantom from
|
|
21
|
-
export * as AaveV3Harmony from
|
|
22
|
-
export * as AaveV3Optimism from
|
|
23
|
-
export * as AaveV3OptimismGoerli from
|
|
24
|
-
export * as AaveV3Ethereum from
|
|
4
|
+
export * as AaveV2Ethereum from './AaveV2Ethereum';
|
|
5
|
+
export * as AaveV2EthereumAMM from './AaveV2EthereumAMM';
|
|
6
|
+
export * as AaveV2EthereumArc from './AaveV2EthereumArc';
|
|
7
|
+
export * as AaveV2Goerli from './AaveV2Goerli';
|
|
8
|
+
export * as AaveV3Goerli from './AaveV3Goerli';
|
|
9
|
+
export * as AaveV2Mumbai from './AaveV2Mumbai';
|
|
10
|
+
export * as AaveV3Mumbai from './AaveV3Mumbai';
|
|
11
|
+
export * as AaveV2Polygon from './AaveV2Polygon';
|
|
12
|
+
export * as AaveV3Polygon from './AaveV3Polygon';
|
|
13
|
+
export * as AaveV2Fuji from './AaveV2Fuji';
|
|
14
|
+
export * as AaveV3Fuji from './AaveV3Fuji';
|
|
15
|
+
export * as AaveV2Avalanche from './AaveV2Avalanche';
|
|
16
|
+
export * as AaveV3Avalanche from './AaveV3Avalanche';
|
|
17
|
+
export * as AaveV3Arbitrum from './AaveV3Arbitrum';
|
|
18
|
+
export * as AaveV3ArbitrumGoerli from './AaveV3ArbitrumGoerli';
|
|
19
|
+
export * as AaveV3FantomTestnet from './AaveV3FantomTestnet';
|
|
20
|
+
export * as AaveV3Fantom from './AaveV3Fantom';
|
|
21
|
+
export * as AaveV3Harmony from './AaveV3Harmony';
|
|
22
|
+
export * as AaveV3Optimism from './AaveV3Optimism';
|
|
23
|
+
export * as AaveV3OptimismGoerli from './AaveV3OptimismGoerli';
|
|
24
|
+
export * as AaveV3Ethereum from './AaveV3Ethereum';
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
export const GOV =
|
|
2
|
-
export const SHORT_EXECUTOR =
|
|
3
|
-
export const LONG_EXECUTOR =
|
|
4
|
-
export const ARC_TIMELOCK =
|
|
1
|
+
export const GOV = '0xEC568fffba86c094cf06b22134B23074DFE2252c';
|
|
2
|
+
export const SHORT_EXECUTOR = '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5';
|
|
3
|
+
export const LONG_EXECUTOR = '0x79426A1c24B2978D90d7A5070a46C65B07bC4299';
|
|
4
|
+
export const ARC_TIMELOCK = '0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218';
|
|
5
|
+
export const POLYGON_BRIDGE_EXECUTOR = '0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772';
|
|
6
|
+
export const OPTIMISM_BRIDGE_EXECUTOR = '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611';
|
|
7
|
+
export const ARBITRUM_BRIDGE_EXECUTOR = '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611';
|
|
8
|
+
export const CROSSCHAIN_FORWARDER_POLYGON = '0x158a6bC04F0828318821baE797f50B0A1299d45b';
|
|
9
|
+
export const CROSSCHAIN_FORWARDER_OPTIMISM = '0x5f5C02875a8e9B5A26fbd09040ABCfDeb2AA6711';
|
|
10
|
+
export const CROSSCHAIN_FORWARDER_ARBITRUM = '0x2e2B1F112C4D79A9D22464F0D345dE9b792705f1';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const STK_AAVE =
|
|
2
|
-
export const STK_ABPT =
|
|
1
|
+
export const STK_AAVE = '0x4da27a545c0c5B758a6BA100e3a049001de870f5';
|
|
2
|
+
export const STK_ABPT = '0xa1116930326D21fB917d5A27F1E9943A9595fb47';
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
2
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const COLLECTOR = "0x467b92aF281d14cB6809913AD016a607b5ba8A36";
|
|
12
|
-
export const COLLECTOR_CONTROLLER = "address(0)";
|
|
2
|
+
export const POOL_ADDRESSES_PROVIDER = '0xb6A86025F0FE1862B372cb0ca18CE3EDe02A318f';
|
|
3
|
+
export const POOL = '0x4F01AeD16D97E3aB5ab2B501154DC9bb0F1A5A2C';
|
|
4
|
+
export const POOL_CONFIGURATOR = '0x230B618aD4C475393A7239aE03630042281BD86e';
|
|
5
|
+
export const ORACLE = '0xdC336Cd4769f4cC7E9d726DA53e6d3fC710cEB89';
|
|
6
|
+
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x65285E9dfab318f57051ab2b139ccCf232945451';
|
|
7
|
+
export const POOL_ADMIN = '0x01244E7842254e3FD229CD263472076B1439D1Cd';
|
|
8
|
+
export const EMERGENCY_ADMIN = '0x01244E7842254e3FD229CD263472076B1439D1Cd';
|
|
9
|
+
export const COLLECTOR = '0x467b92aF281d14cB6809913AD016a607b5ba8A36';
|
|
10
|
+
export const COLLECTOR_CONTROLLER = 'address(0)';
|
|
13
11
|
export const CHAIN_ID = 43114;
|
|
14
|
-
export const POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
15
|
-
|
|
16
|
-
export const
|
|
17
|
-
export const
|
|
18
|
-
"0x2EcF2a2e74B19Aab2a62312167aFF4B78E93B6C5";
|
|
19
|
-
export const REPAY_WITH_COLLATERAL_ADAPTER =
|
|
20
|
-
"0x935b362EE3E1f342cc48118C528AAbee5118F6e6";
|
|
12
|
+
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x4235E22d9C3f28DCDA82b58276cb6370B01265C2';
|
|
13
|
+
export const WETH_GATEWAY = '0xC27d4dBefc2C0CE57916a699971b58a3BD9C7d5b';
|
|
14
|
+
export const SWAP_COLLATERAL_ADAPTER = '0x2EcF2a2e74B19Aab2a62312167aFF4B78E93B6C5';
|
|
15
|
+
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x935b362EE3E1f342cc48118C528AAbee5118F6e6';
|
package/src/ts/AaveV2Ethereum.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
2
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const COLLECTOR = "0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c";
|
|
12
|
-
export const COLLECTOR_CONTROLLER =
|
|
13
|
-
"0x3d569673dAa0575c936c7c67c4E6AedA69CC630C";
|
|
2
|
+
export const POOL_ADDRESSES_PROVIDER = '0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5';
|
|
3
|
+
export const POOL = '0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9';
|
|
4
|
+
export const POOL_CONFIGURATOR = '0x311Bb771e4F8952E6Da169b425E7e92d6Ac45756';
|
|
5
|
+
export const ORACLE = '0xA50ba011c48153De246E5192C8f9258A2ba79Ca9';
|
|
6
|
+
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x057835Ad21a177dbdd3090bB1CAE03EaCF78Fc6d';
|
|
7
|
+
export const POOL_ADMIN = '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5';
|
|
8
|
+
export const EMERGENCY_ADMIN = '0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633';
|
|
9
|
+
export const COLLECTOR = '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c';
|
|
10
|
+
export const COLLECTOR_CONTROLLER = '0x3d569673dAa0575c936c7c67c4E6AedA69CC630C';
|
|
14
11
|
export const CHAIN_ID = 1;
|
|
15
|
-
export const POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
16
|
-
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
"0x80Aca0C645fEdABaa20fd2Bf0Daf57885A309FE6";
|
|
20
|
-
export const SWAP_COLLATERAL_ADAPTER =
|
|
21
|
-
"0x135896DE8421be2ec868E0b811006171D9df802A";
|
|
12
|
+
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x52D306e36E3B6B02c153d0266ff0f85d18BCD413';
|
|
13
|
+
export const WETH_GATEWAY = '0xEFFC18fC3b7eb8E676dac549E0c693ad50D1Ce31';
|
|
14
|
+
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x80Aca0C645fEdABaa20fd2Bf0Daf57885A309FE6';
|
|
15
|
+
export const SWAP_COLLATERAL_ADAPTER = '0x135896DE8421be2ec868E0b811006171D9df802A';
|
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
2
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const COLLECTOR = "0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c";
|
|
12
|
-
export const COLLECTOR_CONTROLLER =
|
|
13
|
-
"0x3d569673dAa0575c936c7c67c4E6AedA69CC630C";
|
|
2
|
+
export const POOL_ADDRESSES_PROVIDER = '0xAcc030EF66f9dFEAE9CbB0cd1B25654b82cFA8d5';
|
|
3
|
+
export const POOL = '0x7937D4799803FbBe595ed57278Bc4cA21f3bFfCB';
|
|
4
|
+
export const POOL_CONFIGURATOR = '0x23A875eDe3F1030138701683e42E9b16A7F87768';
|
|
5
|
+
export const ORACLE = '0xA50ba011c48153De246E5192C8f9258A2ba79Ca9';
|
|
6
|
+
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x0000000000000000000000000000000000000000';
|
|
7
|
+
export const POOL_ADMIN = '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5';
|
|
8
|
+
export const EMERGENCY_ADMIN = '0xB9062896ec3A615a4e4444DF183F0531a77218AE';
|
|
9
|
+
export const COLLECTOR = '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c';
|
|
10
|
+
export const COLLECTOR_CONTROLLER = '0x3d569673dAa0575c936c7c67c4E6AedA69CC630C';
|
|
14
11
|
export const CHAIN_ID = 1;
|
|
15
|
-
export const POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
16
|
-
|
|
17
|
-
export const
|
|
18
|
-
export const
|
|
19
|
-
"0x8E8dAd5409E0263a51C0aB5055dA66Be28cFF922";
|
|
20
|
-
export const UI_POOL_DATA_PROVIDER =
|
|
21
|
-
"0x30375522F67a6308630d49A694ca1491fA2D3BC6";
|
|
12
|
+
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x52D306e36E3B6B02c153d0266ff0f85d18BCD413';
|
|
13
|
+
export const WETH_GATEWAY = '0x1C4a4e31231F71Fc34867D034a9E68f6fC798249';
|
|
14
|
+
export const WALLET_BALANCE_PROVIDER = '0x8E8dAd5409E0263a51C0aB5055dA66Be28cFF922';
|
|
15
|
+
export const UI_POOL_DATA_PROVIDER = '0x30375522F67a6308630d49A694ca1491fA2D3BC6';
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
2
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const COLLECTOR = "0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c";
|
|
12
|
-
export const COLLECTOR_CONTROLLER =
|
|
13
|
-
"0x3d569673dAa0575c936c7c67c4E6AedA69CC630C";
|
|
2
|
+
export const POOL_ADDRESSES_PROVIDER = '0x6FdfafB66d39cD72CFE7984D3Bbcc76632faAb00';
|
|
3
|
+
export const POOL = '0x37D7306019a38Af123e4b245Eb6C28AF552e0bB0';
|
|
4
|
+
export const POOL_CONFIGURATOR = '0x4e1c7865e7BE78A7748724Fa0409e88dc14E67aA';
|
|
5
|
+
export const ORACLE = '0xB8a7bc0d13B1f5460513040a97F404b4fea7D2f3';
|
|
6
|
+
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x71B53fC437cCD988b1b89B1D4605c3c3d0C810ea';
|
|
7
|
+
export const POOL_ADMIN = '0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218';
|
|
8
|
+
export const EMERGENCY_ADMIN = '0x33B09130b035d6D7e57d76fEa0873d9545FA7557';
|
|
9
|
+
export const COLLECTOR = '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c';
|
|
10
|
+
export const COLLECTOR_CONTROLLER = '0x3d569673dAa0575c936c7c67c4E6AedA69CC630C';
|
|
14
11
|
export const CHAIN_ID = 1;
|
|
15
|
-
export const PERMISSION_MANAGER =
|
|
12
|
+
export const PERMISSION_MANAGER = '0xF4a1F5fEA79C3609514A417425971FadC10eCfBE';
|
package/src/ts/AaveV2Fuji.ts
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
2
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
3
|
-
|
|
4
|
-
export const
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const COLLECTOR = "0xB45F5C501A22288dfdb897e5f73E189597e09288";
|
|
12
|
-
export const COLLECTOR_CONTROLLER = "address(0)";
|
|
2
|
+
export const POOL_ADDRESSES_PROVIDER = '0x7fdC1FdF79BE3309bf82f4abdAD9f111A6590C0f';
|
|
3
|
+
export const POOL = '0x76cc67FF2CC77821A70ED14321111Ce381C2594D';
|
|
4
|
+
export const POOL_CONFIGURATOR = '0x4ceBAFAAcc6Cb26FD90E4cDe138Eb812442bb5f3';
|
|
5
|
+
export const ORACLE = '0xfa4f5B081632c4709667D467F817C09d9008A46A';
|
|
6
|
+
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x0668EDE013c1c475724523409b8B6bE633469585';
|
|
7
|
+
export const POOL_ADMIN = '0x1128d177BdaA74Ae68EB06e693f4CbA6BF427a5e';
|
|
8
|
+
export const EMERGENCY_ADMIN = '0x1128d177BdaA74Ae68EB06e693f4CbA6BF427a5e';
|
|
9
|
+
export const COLLECTOR = '0xB45F5C501A22288dfdb897e5f73E189597e09288';
|
|
10
|
+
export const COLLECTOR_CONTROLLER = 'address(0)';
|
|
13
11
|
export const CHAIN_ID = 43113;
|
|
14
|
-
export const POOL_ADDRESSES_PROVIDER_REGISTRY =
|
|
15
|
-
|
|
16
|
-
export const
|
|
17
|
-
export const FAUCET = "0x90E5BAc5A98fff59617080848959f44eACB4Cd7B";
|
|
12
|
+
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x04A6Fa9999E3C807Ee7b6Ca58eFAb93713d405BF';
|
|
13
|
+
export const WETH_GATEWAY = '0x1648C14DbB6ccdd5846969cE23DeEC4C66a03335';
|
|
14
|
+
export const FAUCET = '0x90E5BAc5A98fff59617080848959f44eACB4Cd7B';
|