-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8ccf37
commit 15baa56
Showing
11 changed files
with
243 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {ChainId} from '@bgd-labs/rpc-env'; | ||
import {NetworkAddresses} from '../types'; | ||
|
||
export const lineaAddresses: NetworkAddresses = { | ||
name: 'Linea', | ||
chainId: ChainId.linea, | ||
addresses: { | ||
TRANSPARENT_PROXY_FACTORY: '0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2', | ||
PROXY_ADMIN: '0x160E35e28fEE90F3656420584e0a990276219b5A', | ||
PROTOCOL_GUARDIAN: '0x0BF186764D8333a938f35e5dD124a7b9b9dccDF9', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {ChainId} from '@bgd-labs/rpc-env'; | ||
import {PoolConfig} from '../types'; | ||
|
||
export const lineaProtoV3: PoolConfig = { | ||
name: 'Linea', | ||
chainId: ChainId.linea, | ||
POOL_ADDRESSES_PROVIDER: '0x89502c3731F69DDC95B65753708A07F8Cd0373F4', | ||
additionalAddresses: { | ||
CONFIG_ENGINE: '0x6c23bAF050ec192afc0B967a93b83e6c5405df43', | ||
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x96dFCCB3F9ACDaF6c8f8a35E814023C3484d1eA2', | ||
UI_INCENTIVE_DATA_PROVIDER: '0x117684358D990E42Eb1649E7e8C4691951dc1E71', | ||
UI_POOL_DATA_PROVIDER: '0xf751969521E20A972A0776CDB0497Fad0F773F1F', | ||
WALLET_BALANCE_PROVIDER: '0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D', | ||
WETH_GATEWAY: '0x4758213271BFdC72224A7a8742dC865fC97756e1', | ||
STATIC_A_TOKEN_FACTORY: '0x28ad75CA21793835b975130e9FdA149A476a2b7c' | ||
}, | ||
initial: { | ||
COLLECTOR: '0x86E2938daE289763D4e09a7e42c5cCcA62Cf9809', | ||
DEFAULT_A_TOKEN_IMPL: '0x589750BA8aF186cE5B55391B0b7148cAD43a1619', | ||
DEFAULT_VARIABLE_DEBT_TOKEN_IMPL: '0xBeC519531F0E78BcDdB295242fA4EC5251B38574' | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0; | ||
|
||
import {IPoolAddressesProvider, IPool, IPoolConfigurator, IAaveOracle, IPoolDataProvider, IACLManager} from './AaveV3.sol'; | ||
import {ICollector} from './common/ICollector.sol'; | ||
library AaveV3Linea { | ||
// https://lineascan.build/address/0x89502c3731F69DDC95B65753708A07F8Cd0373F4 | ||
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER = | ||
IPoolAddressesProvider(0x89502c3731F69DDC95B65753708A07F8Cd0373F4); | ||
|
||
// https://lineascan.build/address/0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac | ||
IPool internal constant POOL = IPool(0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac); | ||
|
||
// https://lineascan.build/address/0x812E7c19421D9f41A6DDCF047d5cc2dE2Ca5Bfa2 | ||
IPoolConfigurator internal constant POOL_CONFIGURATOR = | ||
IPoolConfigurator(0x812E7c19421D9f41A6DDCF047d5cc2dE2Ca5Bfa2); | ||
|
||
// https://lineascan.build/address/0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9 | ||
IAaveOracle internal constant ORACLE = IAaveOracle(0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9); | ||
|
||
// https://lineascan.build/address/0x8c2d95FE7aeB57b86961F3abB296A54f0ADb7F88 | ||
address internal constant ACL_ADMIN = 0x8c2d95FE7aeB57b86961F3abB296A54f0ADb7F88; | ||
|
||
// https://lineascan.build/address/0xbf32c7dFC72b730967072B112927ca0de205dbb5 | ||
IACLManager internal constant ACL_MANAGER = | ||
IACLManager(0xbf32c7dFC72b730967072B112927ca0de205dbb5); | ||
|
||
// https://lineascan.build/address/0x2D97F8FA96886Fd923c065F5457F9DDd494e3877 | ||
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = | ||
IPoolDataProvider(0x2D97F8FA96886Fd923c065F5457F9DDd494e3877); | ||
|
||
// https://lineascan.build/address/0x36616cf17557639614c1cdDb356b1B83fc0B2132 | ||
address internal constant POOL_IMPL = 0x36616cf17557639614c1cdDb356b1B83fc0B2132; | ||
|
||
// https://lineascan.build/address/0x1236010CECea55998384e795B59815D871f5f94d | ||
address internal constant POOL_CONFIGURATOR_IMPL = 0x1236010CECea55998384e795B59815D871f5f94d; | ||
|
||
// https://lineascan.build/address/0xc67bb8F2314fA0df50cBa314c6509A7bdAD500C0 | ||
address internal constant DEFAULT_INCENTIVES_CONTROLLER = | ||
0xc67bb8F2314fA0df50cBa314c6509A7bdAD500C0; | ||
|
||
// https://lineascan.build/address/0x0165C65FB21bDC9Cdc09C627d62AB3a983337158 | ||
address internal constant EMISSION_MANAGER = 0x0165C65FB21bDC9Cdc09C627d62AB3a983337158; | ||
|
||
// https://lineascan.build/address/0x6c23bAF050ec192afc0B967a93b83e6c5405df43 | ||
address internal constant CONFIG_ENGINE = 0x6c23bAF050ec192afc0B967a93b83e6c5405df43; | ||
|
||
// https://lineascan.build/address/0x96dFCCB3F9ACDaF6c8f8a35E814023C3484d1eA2 | ||
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = | ||
0x96dFCCB3F9ACDaF6c8f8a35E814023C3484d1eA2; | ||
|
||
// https://lineascan.build/address/0x117684358D990E42Eb1649E7e8C4691951dc1E71 | ||
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0x117684358D990E42Eb1649E7e8C4691951dc1E71; | ||
|
||
// https://lineascan.build/address/0xf751969521E20A972A0776CDB0497Fad0F773F1F | ||
address internal constant UI_POOL_DATA_PROVIDER = 0xf751969521E20A972A0776CDB0497Fad0F773F1F; | ||
|
||
// https://lineascan.build/address/0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D | ||
address internal constant WALLET_BALANCE_PROVIDER = 0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D; | ||
|
||
// https://lineascan.build/address/0x4758213271BFdC72224A7a8742dC865fC97756e1 | ||
address internal constant WETH_GATEWAY = 0x4758213271BFdC72224A7a8742dC865fC97756e1; | ||
|
||
// https://lineascan.build/address/0x28ad75CA21793835b975130e9FdA149A476a2b7c | ||
address internal constant STATIC_A_TOKEN_FACTORY = 0x28ad75CA21793835b975130e9FdA149A476a2b7c; | ||
} | ||
library AaveV3LineaAssets {} | ||
library AaveV3LineaEModes { | ||
uint8 internal constant NONE = 0; | ||
} | ||
library AaveV3LineaExternalLibraries { | ||
// https://lineascan.build/address/0x6990DFae5c227F1aC5D486b1AC0eecAcC2B3e68d | ||
address internal constant FLASHLOAN_LOGIC = 0x6990DFae5c227F1aC5D486b1AC0eecAcC2B3e68d; | ||
|
||
// https://lineascan.build/address/0xbFEDA4cC9184727Ac7546Ce529D306bB5CffcB4F | ||
address internal constant BORROW_LOGIC = 0xbFEDA4cC9184727Ac7546Ce529D306bB5CffcB4F; | ||
|
||
// https://lineascan.build/address/0x3f399651Fc3FE274F7754Bb240BC80e096c0d1c5 | ||
address internal constant BRIDGE_LOGIC = 0x3f399651Fc3FE274F7754Bb240BC80e096c0d1c5; | ||
|
||
// https://lineascan.build/address/0x848eD9932047Fae0baf74d645450018F424A4367 | ||
address internal constant E_MODE_LOGIC = 0x848eD9932047Fae0baf74d645450018F424A4367; | ||
|
||
// https://lineascan.build/address/0xB84A9FBa16902e990EbCb63A22bB46996E9CfABe | ||
address internal constant LIQUIDATION_LOGIC = 0xB84A9FBa16902e990EbCb63A22bB46996E9CfABe; | ||
|
||
// https://lineascan.build/address/0x7Cc1def95a7eCfb5afF91425D5e828802A8d914E | ||
address internal constant POOL_LOGIC = 0x7Cc1def95a7eCfb5afF91425D5e828802A8d914E; | ||
|
||
// https://lineascan.build/address/0x3c012c5d3Be847F46a1428A3Bc53d70dFe691194 | ||
address internal constant SUPPLY_LOGIC = 0x3c012c5d3Be847F46a1428A3Bc53d70dFe691194; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0; | ||
|
||
library MiscLinea { | ||
// https://lineascan.build/address/0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2 | ||
address internal constant TRANSPARENT_PROXY_FACTORY = 0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2; | ||
|
||
// https://lineascan.build/address/0x160E35e28fEE90F3656420584e0a990276219b5A | ||
address internal constant PROXY_ADMIN = 0x160E35e28fEE90F3656420584e0a990276219b5A; | ||
|
||
// https://lineascan.build/address/0x0BF186764D8333a938f35e5dD124a7b9b9dccDF9 | ||
address internal constant PROTOCOL_GUARDIAN = 0x0BF186764D8333a938f35e5dD124a7b9b9dccDF9; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
// IPoolAddressesProvider https://lineascan.build/address/0x89502c3731F69DDC95B65753708A07F8Cd0373F4 | ||
export const POOL_ADDRESSES_PROVIDER = '0x89502c3731F69DDC95B65753708A07F8Cd0373F4'; | ||
|
||
// IPool https://lineascan.build/address/0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac | ||
export const POOL = '0xc47b8C00b0f69a36fa203Ffeac0334874574a8Ac'; | ||
|
||
// IPoolConfigurator https://lineascan.build/address/0x812E7c19421D9f41A6DDCF047d5cc2dE2Ca5Bfa2 | ||
export const POOL_CONFIGURATOR = '0x812E7c19421D9f41A6DDCF047d5cc2dE2Ca5Bfa2'; | ||
|
||
// IAaveOracle https://lineascan.build/address/0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9 | ||
export const ORACLE = '0xCFDAdA7DCd2e785cF706BaDBC2B8Af5084d595e9'; | ||
|
||
// https://lineascan.build/address/0x8c2d95FE7aeB57b86961F3abB296A54f0ADb7F88 | ||
export const ACL_ADMIN = '0x8c2d95FE7aeB57b86961F3abB296A54f0ADb7F88'; | ||
|
||
// IACLManager https://lineascan.build/address/0xbf32c7dFC72b730967072B112927ca0de205dbb5 | ||
export const ACL_MANAGER = '0xbf32c7dFC72b730967072B112927ca0de205dbb5'; | ||
|
||
// IPoolDataProvider https://lineascan.build/address/0x2D97F8FA96886Fd923c065F5457F9DDd494e3877 | ||
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x2D97F8FA96886Fd923c065F5457F9DDd494e3877'; | ||
|
||
// https://lineascan.build/address/0x36616cf17557639614c1cdDb356b1B83fc0B2132 | ||
export const POOL_IMPL = '0x36616cf17557639614c1cdDb356b1B83fc0B2132'; | ||
|
||
// https://lineascan.build/address/0x1236010CECea55998384e795B59815D871f5f94d | ||
export const POOL_CONFIGURATOR_IMPL = '0x1236010CECea55998384e795B59815D871f5f94d'; | ||
|
||
// https://lineascan.build/address/0xc67bb8F2314fA0df50cBa314c6509A7bdAD500C0 | ||
export const DEFAULT_INCENTIVES_CONTROLLER = '0xc67bb8F2314fA0df50cBa314c6509A7bdAD500C0'; | ||
|
||
// https://lineascan.build/address/0x0165C65FB21bDC9Cdc09C627d62AB3a983337158 | ||
export const EMISSION_MANAGER = '0x0165C65FB21bDC9Cdc09C627d62AB3a983337158'; | ||
|
||
// https://lineascan.build/address/0x6c23bAF050ec192afc0B967a93b83e6c5405df43 | ||
export const CONFIG_ENGINE = '0x6c23bAF050ec192afc0B967a93b83e6c5405df43'; | ||
|
||
// https://lineascan.build/address/0x96dFCCB3F9ACDaF6c8f8a35E814023C3484d1eA2 | ||
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x96dFCCB3F9ACDaF6c8f8a35E814023C3484d1eA2'; | ||
|
||
// https://lineascan.build/address/0x117684358D990E42Eb1649E7e8C4691951dc1E71 | ||
export const UI_INCENTIVE_DATA_PROVIDER = '0x117684358D990E42Eb1649E7e8C4691951dc1E71'; | ||
|
||
// https://lineascan.build/address/0xf751969521E20A972A0776CDB0497Fad0F773F1F | ||
export const UI_POOL_DATA_PROVIDER = '0xf751969521E20A972A0776CDB0497Fad0F773F1F'; | ||
|
||
// https://lineascan.build/address/0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D | ||
export const WALLET_BALANCE_PROVIDER = '0xff75B6da14FfbbfD355Daf7a2731456b3562Ba6D'; | ||
|
||
// https://lineascan.build/address/0x4758213271BFdC72224A7a8742dC865fC97756e1 | ||
export const WETH_GATEWAY = '0x4758213271BFdC72224A7a8742dC865fC97756e1'; | ||
|
||
// https://lineascan.build/address/0x28ad75CA21793835b975130e9FdA149A476a2b7c | ||
export const STATIC_A_TOKEN_FACTORY = '0x28ad75CA21793835b975130e9FdA149A476a2b7c'; | ||
|
||
export const CHAIN_ID = 59144; | ||
export const ASSETS = {} as const; | ||
export const E_MODES = {} as const; | ||
export const EXTERNAL_LIBRARIES = {} as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
// https://lineascan.build/address/0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2 | ||
export const TRANSPARENT_PROXY_FACTORY = '0xDe090EfCD6ef4b86792e2D84E55a5fa8d49D25D2'; | ||
|
||
// https://lineascan.build/address/0x160E35e28fEE90F3656420584e0a990276219b5A | ||
export const PROXY_ADMIN = '0x160E35e28fEE90F3656420584e0a990276219b5A'; | ||
|
||
// https://lineascan.build/address/0x0BF186764D8333a938f35e5dD124a7b9b9dccDF9 | ||
export const PROTOCOL_GUARDIAN = '0x0BF186764D8333a938f35e5dD124a7b9b9dccDF9'; | ||
|
||
export const CHAIN_ID = 59144; |