@bgd-labs/aave-address-book 1.2.0 → 1.3.0
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/.editorconfig +13 -0
- package/.prettierignore +4 -0
- package/.prettierrc +15 -0
- package/CHANGELOG.md +14 -0
- package/README.md +80 -36
- package/dist/AaveAddressBook.d.ts +6 -1
- package/dist/AaveAddressBook.js +8 -2
- package/dist/AaveGovernanceV2.d.ts +4 -0
- package/dist/AaveGovernanceV2.js +7 -0
- package/dist/AaveSafetyModule.d.ts +2 -0
- package/dist/AaveSafetyModule.js +5 -0
- package/dist/AaveV2Avalanche.d.ts +4 -0
- package/dist/AaveV2Avalanche.js +5 -1
- package/dist/AaveV2Ethereum.d.ts +4 -0
- package/dist/AaveV2Ethereum.js +5 -1
- package/dist/AaveV2EthereumAMM.d.ts +4 -0
- package/dist/AaveV2EthereumAMM.js +5 -1
- package/dist/AaveV2EthereumArc.d.ts +1 -0
- package/dist/AaveV2EthereumArc.js +2 -1
- package/dist/AaveV2Fuji.d.ts +3 -0
- package/dist/AaveV2Fuji.js +4 -1
- package/dist/AaveV2Goerli.d.ts +12 -0
- package/dist/AaveV2Goerli.js +15 -0
- package/dist/AaveV2Mumbai.d.ts +3 -0
- package/dist/AaveV2Mumbai.js +4 -1
- package/dist/AaveV2Polygon.d.ts +5 -1
- package/dist/AaveV2Polygon.js +6 -2
- package/dist/AaveV3Arbitrum.d.ts +8 -0
- package/dist/AaveV3Arbitrum.js +9 -1
- package/dist/AaveV3ArbitrumGoerli.d.ts +16 -0
- package/dist/AaveV3ArbitrumGoerli.js +19 -0
- package/dist/AaveV3Avalanche.d.ts +8 -0
- package/dist/AaveV3Avalanche.js +9 -1
- package/dist/AaveV3Fantom.d.ts +8 -0
- package/dist/AaveV3Fantom.js +9 -1
- package/dist/AaveV3FantomTestnet.d.ts +7 -0
- package/dist/AaveV3FantomTestnet.js +8 -1
- package/dist/AaveV3Fuji.d.ts +7 -0
- package/dist/AaveV3Fuji.js +8 -1
- package/dist/AaveV3Goerli.d.ts +16 -0
- package/dist/AaveV3Goerli.js +19 -0
- package/dist/AaveV3Harmony.d.ts +6 -0
- package/dist/AaveV3Harmony.js +7 -1
- package/dist/AaveV3Mumbai.d.ts +7 -0
- package/dist/AaveV3Mumbai.js +8 -1
- package/dist/AaveV3Optimism.d.ts +8 -0
- package/dist/AaveV3Optimism.js +9 -1
- package/dist/AaveV3OptimismGoerli.d.ts +16 -0
- package/dist/AaveV3OptimismGoerli.js +19 -0
- package/dist/AaveV3OptimismKovan.d.ts +1 -0
- package/dist/AaveV3OptimismKovan.js +2 -1
- package/dist/AaveV3Polygon.d.ts +9 -1
- package/dist/AaveV3Polygon.js +10 -2
- package/package.json +2 -2
- package/src/AaveAddressBook.sol +5 -7
- package/src/AaveMisc.sol +86 -0
- package/src/AaveV2.sol +15 -0
- package/src/AaveV2Avalanche.sol +0 -1
- package/src/AaveV2Ethereum.sol +0 -1
- package/src/AaveV2EthereumAMM.sol +0 -1
- package/src/AaveV2EthereumArc.sol +0 -1
- package/src/AaveV2Fuji.sol +0 -1
- package/src/AaveV2Goerli.sol +34 -0
- package/src/AaveV2Mumbai.sol +0 -1
- package/src/AaveV2Polygon.sol +2 -2
- package/src/AaveV3.sol +70 -8
- package/src/AaveV3Arbitrum.sol +15 -4
- package/src/AaveV3ArbitrumGoerli.sol +45 -0
- package/src/AaveV3Avalanche.sol +15 -4
- package/src/AaveV3Fantom.sol +15 -4
- package/src/AaveV3FantomTestnet.sol +15 -4
- package/src/AaveV3Fuji.sol +15 -4
- package/src/AaveV3Goerli.sol +45 -0
- package/src/AaveV3Harmony.sol +15 -4
- package/src/AaveV3Mumbai.sol +15 -4
- package/src/AaveV3Optimism.sol +15 -4
- package/src/AaveV3OptimismGoerli.sol +45 -0
- package/src/AaveV3Polygon.sol +15 -4
- package/src/test/AaveV2Misfits.t.sol +2 -3
- package/src/test/AaveV3Avalanche.t.sol +3 -3
- package/src/ts/AaveAddressBook.ts +7 -1
- package/src/ts/AaveGovernanceV2.ts +4 -0
- package/src/ts/AaveSafetyModule.ts +2 -0
- package/src/ts/AaveV2Avalanche.ts +6 -0
- package/src/ts/AaveV2Ethereum.ts +6 -0
- package/src/ts/AaveV2EthereumAMM.ts +6 -0
- package/src/ts/AaveV2EthereumArc.ts +1 -0
- package/src/ts/AaveV2Fuji.ts +3 -0
- package/src/ts/AaveV2Goerli.ts +14 -0
- package/src/ts/AaveV2Mumbai.ts +3 -0
- package/src/ts/AaveV2Polygon.ts +8 -1
- package/src/ts/AaveV3Arbitrum.ts +14 -0
- package/src/ts/AaveV3ArbitrumGoerli.ts +23 -0
- package/src/ts/AaveV3Avalanche.ts +14 -0
- package/src/ts/AaveV3Fantom.ts +14 -0
- package/src/ts/AaveV3FantomTestnet.ts +11 -0
- package/src/ts/AaveV3Fuji.ts +11 -0
- package/src/ts/AaveV3Goerli.ts +23 -0
- package/src/ts/AaveV3Harmony.ts +10 -0
- package/src/ts/AaveV3Mumbai.ts +11 -0
- package/src/ts/AaveV3Optimism.ts +14 -0
- package/src/ts/AaveV3OptimismGoerli.ts +23 -0
- package/src/ts/AaveV3Polygon.ts +15 -1
- package/src/AaveAddressBookV2.sol +0 -143
- package/src/AaveAddressBookV2Testnet.sol +0 -74
- package/src/AaveAddressBookV3.sol +0 -166
- package/src/AaveAddressBookV3Testnet.sol +0 -120
- package/src/AaveV3HarmonyTestnet.sol +0 -34
- package/src/AaveV3OptimismKovan.sol +0 -34
- package/src/Common.sol +0 -9
- package/src/ts/AaveV3OptimismKovan.ts +0 -12
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.6.0;
|
|
3
|
-
|
|
4
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider, IACLManager} from "./AaveV3.sol";
|
|
5
|
-
import {Token} from "./Common.sol";
|
|
6
|
-
|
|
7
|
-
library AaveAddressBookV3Testnet {
|
|
8
|
-
string public constant AaveV3Mumbai = "AaveV3Mumbai";
|
|
9
|
-
string public constant AaveV3Fuji = "AaveV3Fuji";
|
|
10
|
-
string public constant AaveV3FantomTestnet = "AaveV3FantomTestnet";
|
|
11
|
-
string public constant AaveV3OptimismKovan = "AaveV3OptimismKovan";
|
|
12
|
-
|
|
13
|
-
struct Market {
|
|
14
|
-
IPoolAddressesProvider POOL_ADDRESSES_PROVIDER;
|
|
15
|
-
IPool POOL;
|
|
16
|
-
IPoolConfigurator POOL_CONFIGURATOR;
|
|
17
|
-
IAaveOracle ORACLE;
|
|
18
|
-
IAaveProtocolDataProvider POOL_DATA_PROVIDER;
|
|
19
|
-
IACLManager ACL_MANAGER;
|
|
20
|
-
address ACL_ADMIN;
|
|
21
|
-
address COLLECTOR;
|
|
22
|
-
address COLLECTOR_CONTROLLER;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function getMarket(string calldata market)
|
|
26
|
-
public
|
|
27
|
-
pure
|
|
28
|
-
returns (Market memory m)
|
|
29
|
-
{
|
|
30
|
-
if (
|
|
31
|
-
keccak256(abi.encodePacked((market))) ==
|
|
32
|
-
keccak256(abi.encodePacked((AaveV3Mumbai)))
|
|
33
|
-
) {
|
|
34
|
-
return
|
|
35
|
-
Market(
|
|
36
|
-
IPoolAddressesProvider(
|
|
37
|
-
0x5343b5bA672Ae99d627A1C87866b8E53F47Db2E6
|
|
38
|
-
),
|
|
39
|
-
IPool(0x6C9fB0D5bD9429eb9Cd96B85B81d872281771E6B),
|
|
40
|
-
IPoolConfigurator(
|
|
41
|
-
0x7b47e727eC539CB74A744ae5259ef26743294fca
|
|
42
|
-
),
|
|
43
|
-
IAaveOracle(0x520D14AE678b41067f029Ad770E2870F85E76588),
|
|
44
|
-
IAaveProtocolDataProvider(
|
|
45
|
-
0x8f57153F18b7273f9A814b93b31Cb3f9b035e7C2
|
|
46
|
-
),
|
|
47
|
-
IACLManager(0x6437b6E14D7ECa1Fa9854df92eB067253D5f683A),
|
|
48
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254,
|
|
49
|
-
0x3B6E7a4750e478D7f7d6A5d464099A02ef164bCC,
|
|
50
|
-
0x810d913542D399F3680F0E806DEDf6EACf0e3383
|
|
51
|
-
);
|
|
52
|
-
} else if (
|
|
53
|
-
keccak256(abi.encodePacked((market))) ==
|
|
54
|
-
keccak256(abi.encodePacked((AaveV3Fuji)))
|
|
55
|
-
) {
|
|
56
|
-
return
|
|
57
|
-
Market(
|
|
58
|
-
IPoolAddressesProvider(
|
|
59
|
-
0x1775ECC8362dB6CaB0c7A9C0957cF656A5276c29
|
|
60
|
-
),
|
|
61
|
-
IPool(0xb47673b7a73D78743AFF1487AF69dBB5763F00cA),
|
|
62
|
-
IPoolConfigurator(
|
|
63
|
-
0x01743372F0F0318AaDF690f960A4c6c4eab58782
|
|
64
|
-
),
|
|
65
|
-
IAaveOracle(0xAc6D153BF94aFBdC296e72163735B0f94581F736),
|
|
66
|
-
IAaveProtocolDataProvider(
|
|
67
|
-
0x8e0988b28f9CdDe0134A206dfF94111578498C63
|
|
68
|
-
),
|
|
69
|
-
IACLManager(0xAa6Fd640173bcA58e5a5CC373531F9038eF3F9e1),
|
|
70
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254,
|
|
71
|
-
0xBaaCc99123133851Ba2D6d34952aa08CBDf5A4E4,
|
|
72
|
-
0xFCadBDefd30E11258559Ba239C8a5A8A8D28CB00
|
|
73
|
-
);
|
|
74
|
-
} else if (
|
|
75
|
-
keccak256(abi.encodePacked((market))) ==
|
|
76
|
-
keccak256(abi.encodePacked((AaveV3FantomTestnet)))
|
|
77
|
-
) {
|
|
78
|
-
return
|
|
79
|
-
Market(
|
|
80
|
-
IPoolAddressesProvider(
|
|
81
|
-
0xE339D30cBa24C70dCCb82B234589E3C83249e658
|
|
82
|
-
),
|
|
83
|
-
IPool(0x771A45a19cE333a19356694C5fc80c76fe9bc741),
|
|
84
|
-
IPoolConfigurator(
|
|
85
|
-
0x59B84a6C943dD655D9E3B4024fC6AdC0E3f4Ff60
|
|
86
|
-
),
|
|
87
|
-
IAaveOracle(0xA840C768f7143495790eC8dc2D5f32B71B6Dc113),
|
|
88
|
-
IAaveProtocolDataProvider(
|
|
89
|
-
0xCbAcff915f2d10727844ab0f2A4D9768954981e4
|
|
90
|
-
),
|
|
91
|
-
IACLManager(0x94f154aba287b3024fb32386463FC52d488bb09B),
|
|
92
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254,
|
|
93
|
-
0xF49dA7a22463D140f9f8dc7C91468C8721215496,
|
|
94
|
-
0x7aaB2c2CC186131851d6B1876D16eDc849846042
|
|
95
|
-
);
|
|
96
|
-
} else if (
|
|
97
|
-
keccak256(abi.encodePacked((market))) ==
|
|
98
|
-
keccak256(abi.encodePacked((AaveV3OptimismKovan)))
|
|
99
|
-
) {
|
|
100
|
-
return
|
|
101
|
-
Market(
|
|
102
|
-
IPoolAddressesProvider(
|
|
103
|
-
0xD15d36975A0200D11B8a8964F4F267982D2a1cFe
|
|
104
|
-
),
|
|
105
|
-
IPool(0x139d8F557f70D1903787e929D7C42165c4667229),
|
|
106
|
-
IPoolConfigurator(
|
|
107
|
-
0x12F6E19b968e34fEE34763469c7EAf902Af6914B
|
|
108
|
-
),
|
|
109
|
-
IAaveOracle(0xce87225e5A0ABFe6241C6A60158840d509a84B47),
|
|
110
|
-
IAaveProtocolDataProvider(
|
|
111
|
-
0x2f733c0389bfF96a3f930Deb2f6DB1d767Cd3215
|
|
112
|
-
),
|
|
113
|
-
IACLManager(0x552626e2E6e35566d53CE0C5Ad97d72E95bC3fc3),
|
|
114
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254,
|
|
115
|
-
0x733DC8C72B189791B28Dc8c6Fb09D9201b01eF2f,
|
|
116
|
-
0x9b791f6A34B2C87c360902F050dA5e0075b7A567
|
|
117
|
-
);
|
|
118
|
-
} else revert("Market does not exist");
|
|
119
|
-
}
|
|
120
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.6.0;
|
|
3
|
-
|
|
4
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider, IACLManager} from "./AaveV3.sol";
|
|
5
|
-
import {Token} from "./Common.sol";
|
|
6
|
-
|
|
7
|
-
library AaveV3HarmonyTestnet {
|
|
8
|
-
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
|
|
9
|
-
IPoolAddressesProvider(0xd19443202328A66875a51560c28276868B8C61C2);
|
|
10
|
-
|
|
11
|
-
IPool internal constant POOL =
|
|
12
|
-
IPool(0x85C1F3f1bB439180f7Bfda9DFD61De82e10bD554);
|
|
13
|
-
|
|
14
|
-
IPoolConfigurator internal constant POOL_CONFIGURATOR =
|
|
15
|
-
IPoolConfigurator(0xdb903B5a28260E87cF1d8B56740a90Dba1c8fe15);
|
|
16
|
-
|
|
17
|
-
IAaveOracle internal constant ORACLE =
|
|
18
|
-
IAaveOracle(0x29Ff3c19C6853A0b6544b3CC241c360f422aBaD1);
|
|
19
|
-
|
|
20
|
-
IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
|
|
21
|
-
IAaveProtocolDataProvider(0xFc7215C9498Fc12b22Bc0ed335871Db4315f03d3);
|
|
22
|
-
|
|
23
|
-
IACLManager internal constant ACL_MANAGER =
|
|
24
|
-
IACLManager(0x1758d4e6f68166C4B2d9d0F049F33dEB399Daa1F);
|
|
25
|
-
|
|
26
|
-
address internal constant ACL_ADMIN =
|
|
27
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254;
|
|
28
|
-
|
|
29
|
-
address internal constant COLLECTOR =
|
|
30
|
-
0x9aa7fEc87CA69695Dd1f879567CcF49F3ba417E2;
|
|
31
|
-
|
|
32
|
-
address internal constant COLLECTOR_CONTROLLER =
|
|
33
|
-
0x85E44420b6137bbc75a85CAB5c9A3371af976FdE;
|
|
34
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.6.0;
|
|
3
|
-
|
|
4
|
-
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IAaveProtocolDataProvider, IACLManager} from "./AaveV3.sol";
|
|
5
|
-
import {Token} from "./Common.sol";
|
|
6
|
-
|
|
7
|
-
library AaveV3OptimismKovan {
|
|
8
|
-
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
|
|
9
|
-
IPoolAddressesProvider(0xD15d36975A0200D11B8a8964F4F267982D2a1cFe);
|
|
10
|
-
|
|
11
|
-
IPool internal constant POOL =
|
|
12
|
-
IPool(0x139d8F557f70D1903787e929D7C42165c4667229);
|
|
13
|
-
|
|
14
|
-
IPoolConfigurator internal constant POOL_CONFIGURATOR =
|
|
15
|
-
IPoolConfigurator(0x12F6E19b968e34fEE34763469c7EAf902Af6914B);
|
|
16
|
-
|
|
17
|
-
IAaveOracle internal constant ORACLE =
|
|
18
|
-
IAaveOracle(0xce87225e5A0ABFe6241C6A60158840d509a84B47);
|
|
19
|
-
|
|
20
|
-
IAaveProtocolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
|
|
21
|
-
IAaveProtocolDataProvider(0x2f733c0389bfF96a3f930Deb2f6DB1d767Cd3215);
|
|
22
|
-
|
|
23
|
-
IACLManager internal constant ACL_MANAGER =
|
|
24
|
-
IACLManager(0x552626e2E6e35566d53CE0C5Ad97d72E95bC3fc3);
|
|
25
|
-
|
|
26
|
-
address internal constant ACL_ADMIN =
|
|
27
|
-
0x77c45699A715A64A7a7796d5CEe884cf617D5254;
|
|
28
|
-
|
|
29
|
-
address internal constant COLLECTOR =
|
|
30
|
-
0x733DC8C72B189791B28Dc8c6Fb09D9201b01eF2f;
|
|
31
|
-
|
|
32
|
-
address internal constant COLLECTOR_CONTROLLER =
|
|
33
|
-
0x9b791f6A34B2C87c360902F050dA5e0075b7A567;
|
|
34
|
-
}
|
package/src/Common.sol
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export const POOL_ADDRESSES_PROVIDER =
|
|
2
|
-
"0xD15d36975A0200D11B8a8964F4F267982D2a1cFe";
|
|
3
|
-
export const POOL = "0x139d8F557f70D1903787e929D7C42165c4667229";
|
|
4
|
-
export const POOL_CONFIGURATOR = "0x12F6E19b968e34fEE34763469c7EAf902Af6914B";
|
|
5
|
-
export const ORACLE = "0xce87225e5A0ABFe6241C6A60158840d509a84B47";
|
|
6
|
-
export const AAVE_PROTOCOL_DATA_PROVIDER =
|
|
7
|
-
"0x2f733c0389bfF96a3f930Deb2f6DB1d767Cd3215";
|
|
8
|
-
export const ACL_MANAGER = "0x552626e2E6e35566d53CE0C5Ad97d72E95bC3fc3";
|
|
9
|
-
export const ACL_ADMIN = "0x77c45699A715A64A7a7796d5CEe884cf617D5254";
|
|
10
|
-
export const COLLECTOR = "0x733DC8C72B189791B28Dc8c6Fb09D9201b01eF2f";
|
|
11
|
-
export const COLLECTOR_CONTROLLER =
|
|
12
|
-
"0x9b791f6A34B2C87c360902F050dA5e0075b7A567";
|