@bgd-labs/aave-address-book 1.7.0 → 1.8.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/CHANGELOG.md +7 -0
- package/README.md +12 -0
- package/dist/AaveV3Ethereum.d.ts +1 -0
- package/dist/AaveV3Ethereum.js +2 -1
- package/package.json +1 -1
- package/src/AaveV3Ethereum.sol +2 -0
- package/src/ts/AaveV3Ethereum.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.8.0](https://github.com/bgd-labs/aave-address-book/compare/v1.7.0...v1.8.0) (2023-01-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* added LISTING_ENGINE for Aave v3 Ethereum ([#61](https://github.com/bgd-labs/aave-address-book/issues/61)) ([b9e7f36](https://github.com/bgd-labs/aave-address-book/commit/b9e7f3666e9c0cba44e86f0119d49030abf655dc))
|
|
11
|
+
|
|
5
12
|
## [1.7.0](https://github.com/bgd-labs/aave-address-book/compare/v1.6.1...v1.7.0) (2023-01-16)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -137,6 +137,18 @@ forge test
|
|
|
137
137
|
|
|
138
138
|
To list a new pool in the address book, you simply need to add a new pool in the [pools config](./scripts/config.ts) and run `yarn generate`.
|
|
139
139
|
|
|
140
|
+
### Adding new Addresses
|
|
141
|
+
|
|
142
|
+
a) Adding an address that **can be optained via onchain calls** so it doesn't need to be hardcoded on the configs:
|
|
143
|
+
|
|
144
|
+
To achieve an addition here you need to add the address to the respective [v2 type](https://github.com/bgd-labs/aave-address-book/blob/main/scripts/generator_v2.ts#L11) and/or [v3 type](https://github.com/bgd-labs/aave-address-book/blob/main/scripts/generator_v3.ts#L11) and adjust the generator scripts accordingly. New types should be added to the [AaveV2](https://github.com/bgd-labs/aave-address-book/blob/main/src/AaveV2.sol) and [AaveV3](https://github.com/bgd-labs/aave-address-book/blob/main/src/AaveV3.sol) files.
|
|
145
|
+
|
|
146
|
+
b) Adding an address that **cannot be optained via onchain calls** so it needs to be manually maintained:
|
|
147
|
+
|
|
148
|
+
To achieve an addition here, you need to alter the [additionalAddresses section](https://github.com/bgd-labs/aave-address-book/blob/main/scripts/config.ts#L46) on the pool type and add your address to the respecive pools. Additional addresses will currently be exported as type `address`. There's currently no possibility to define a custom type.
|
|
149
|
+
|
|
150
|
+
In any case you need to run `yarn generate` afterwards and commit the altered artifacts.
|
|
151
|
+
|
|
140
152
|
## Sample projects
|
|
141
153
|
|
|
142
154
|
- [aave v2 asset listing template](https://github.com/bgd-labs/example-aave-v2-listing)
|
package/dist/AaveV3Ethereum.d.ts
CHANGED
|
@@ -16,3 +16,4 @@ export declare const DEFAULT_A_TOKEN_IMPL_REV_1 = "0x7EfFD7b47Bfd17e52fB7559d3f9
|
|
|
16
16
|
export declare const DEFAULT_INCENTIVES_CONTROLLER = "0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb";
|
|
17
17
|
export declare const REPAY_WITH_COLLATERAL_ADAPTER = "0x1809f186D680f239420B56948C58F8DbbCdf1E18";
|
|
18
18
|
export declare const SWAP_COLLATERAL_ADAPTER = "0x872fBcb1B582e8Cd0D0DD4327fBFa0B4C2730995";
|
|
19
|
+
export declare const LISTING_ENGINE = "0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633";
|
package/dist/AaveV3Ethereum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SWAP_COLLATERAL_ADAPTER = exports.REPAY_WITH_COLLATERAL_ADAPTER = exports.DEFAULT_INCENTIVES_CONTROLLER = exports.DEFAULT_A_TOKEN_IMPL_REV_1 = exports.DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 = exports.DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = exports.COLLECTOR = exports.COLLECTOR_CONTROLLER = exports.EMISSION_MANAGER = exports.WETH_GATEWAY = exports.CHAIN_ID = exports.ACL_ADMIN = exports.ACL_MANAGER = exports.AAVE_PROTOCOL_DATA_PROVIDER = exports.ORACLE = exports.POOL_CONFIGURATOR = exports.POOL = exports.POOL_ADDRESSES_PROVIDER = void 0;
|
|
3
|
+
exports.LISTING_ENGINE = exports.SWAP_COLLATERAL_ADAPTER = exports.REPAY_WITH_COLLATERAL_ADAPTER = exports.DEFAULT_INCENTIVES_CONTROLLER = exports.DEFAULT_A_TOKEN_IMPL_REV_1 = exports.DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 = exports.DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = exports.COLLECTOR = exports.COLLECTOR_CONTROLLER = exports.EMISSION_MANAGER = exports.WETH_GATEWAY = exports.CHAIN_ID = exports.ACL_ADMIN = exports.ACL_MANAGER = exports.AAVE_PROTOCOL_DATA_PROVIDER = exports.ORACLE = exports.POOL_CONFIGURATOR = exports.POOL = exports.POOL_ADDRESSES_PROVIDER = void 0;
|
|
4
4
|
// AUTOGENERATED - DON'T MANUALLY CHANGE
|
|
5
5
|
exports.POOL_ADDRESSES_PROVIDER = "0x2f39d218133AFaB8F2B819B1066c7E434Ad94E9e";
|
|
6
6
|
exports.POOL = "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2";
|
|
@@ -20,3 +20,4 @@ exports.DEFAULT_A_TOKEN_IMPL_REV_1 = "0x7EfFD7b47Bfd17e52fB7559d3f924201b9DbfF3d
|
|
|
20
20
|
exports.DEFAULT_INCENTIVES_CONTROLLER = "0x8164Cc65827dcFe994AB23944CBC90e0aa80bFcb";
|
|
21
21
|
exports.REPAY_WITH_COLLATERAL_ADAPTER = "0x1809f186D680f239420B56948C58F8DbbCdf1E18";
|
|
22
22
|
exports.SWAP_COLLATERAL_ADAPTER = "0x872fBcb1B582e8Cd0D0DD4327fBFa0B4C2730995";
|
|
23
|
+
exports.LISTING_ENGINE = "0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bgd-labs/aave-address-book",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "This repository contains an up-to-date registry of all addresses of the Aave ecosystem's smart contracts, for its usage in Solidity codebases.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"lib": "lib"
|
package/src/AaveV3Ethereum.sol
CHANGED
|
@@ -46,4 +46,6 @@ library AaveV3Ethereum {
|
|
|
46
46
|
0x1809f186D680f239420B56948C58F8DbbCdf1E18;
|
|
47
47
|
address internal constant SWAP_COLLATERAL_ADAPTER =
|
|
48
48
|
0x872fBcb1B582e8Cd0D0DD4327fBFa0B4C2730995;
|
|
49
|
+
address internal constant LISTING_ENGINE =
|
|
50
|
+
0xCA76Ebd8617a03126B6FB84F9b1c1A0fB71C2633;
|
|
49
51
|
}
|
package/src/ts/AaveV3Ethereum.ts
CHANGED