-
Notifications
You must be signed in to change notification settings - Fork 60
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
4583dcd
commit 1d6fe10
Showing
8 changed files
with
245 additions
and
13 deletions.
There are no files selected for viewing
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,16 @@ | ||
import {ChainId} from '@bgd-labs/rpc-env'; | ||
import {PoolConfig} from '../types'; | ||
|
||
export const celoProtoV3: PoolConfig = { | ||
name: 'Celo', | ||
chainId: ChainId.celo, | ||
POOL_ADDRESSES_PROVIDER: '0x9F7Cf9417D5251C59fE94fB9147feEe1aAd9Cea5', | ||
additionalAddresses: { | ||
CONFIG_ENGINE: '0xB25a5D144626a0D488e52AE717A051a2E9997076', | ||
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xB4B6939D0804DCE8d0Ac3e59b2eD5C072829d56b', | ||
UI_INCENTIVE_DATA_PROVIDER: '0x3A1Ea5fB3098b9767E0e85D63E28A5c0EAa44099', | ||
UI_POOL_DATA_PROVIDER: '0xf07fFd12b119b921C4a2ce8d4A13C5d1E3000d6e', | ||
WALLET_BALANCE_PROVIDER: '0xB91DA65093d54a1a7cb0fe684860F568A5E57123', | ||
// STATA_FACTORY: '0x33992721c565dA3248bd3af80524e054F5F05b42', | ||
}, | ||
}; |
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,87 @@ | ||
// 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 AaveV3Celo { | ||
// https://celoscan.io/address/0x9F7Cf9417D5251C59fE94fB9147feEe1aAd9Cea5 | ||
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER = | ||
IPoolAddressesProvider(0x9F7Cf9417D5251C59fE94fB9147feEe1aAd9Cea5); | ||
|
||
// https://celoscan.io/address/0x3E59A31363E2ad014dcbc521c4a0d5757d9f3402 | ||
IPool internal constant POOL = IPool(0x3E59A31363E2ad014dcbc521c4a0d5757d9f3402); | ||
|
||
// https://celoscan.io/address/0x7567E3434CC1BEf724AB595e6072367Ef4914691 | ||
IPoolConfigurator internal constant POOL_CONFIGURATOR = | ||
IPoolConfigurator(0x7567E3434CC1BEf724AB595e6072367Ef4914691); | ||
|
||
// https://celoscan.io/address/0x1e693D088ceFD1E95ba4c4a5F7EeA41a1Ec37e8b | ||
IAaveOracle internal constant ORACLE = IAaveOracle(0x1e693D088ceFD1E95ba4c4a5F7EeA41a1Ec37e8b); | ||
|
||
// https://celoscan.io/address/0x1dF462e2712496373A347f8ad10802a5E95f053D | ||
address internal constant ACL_ADMIN = 0x1dF462e2712496373A347f8ad10802a5E95f053D; | ||
|
||
// https://celoscan.io/address/0x7a12dCfd73C1B4cddf294da4cFce75FcaBBa314C | ||
IACLManager internal constant ACL_MANAGER = | ||
IACLManager(0x7a12dCfd73C1B4cddf294da4cFce75FcaBBa314C); | ||
|
||
// https://celoscan.io/address/0x33b7d355613110b4E842f5f7057Ccd36fb4cee28 | ||
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = | ||
IPoolDataProvider(0x33b7d355613110b4E842f5f7057Ccd36fb4cee28); | ||
|
||
// https://celoscan.io/address/0x44D38b18a99E50E51B99F05C1f418Db26Ded315f | ||
address internal constant POOL_IMPL = 0x44D38b18a99E50E51B99F05C1f418Db26Ded315f; | ||
|
||
// https://celoscan.io/address/0x87f6224536d9BD1d4FE6052e06f9647B51843e33 | ||
address internal constant POOL_CONFIGURATOR_IMPL = 0x87f6224536d9BD1d4FE6052e06f9647B51843e33; | ||
|
||
// https://celoscan.io/address/0x4725A0FdbEB14A77964bC1C221eE3a7982263103 | ||
address internal constant DEFAULT_INCENTIVES_CONTROLLER = | ||
0x4725A0FdbEB14A77964bC1C221eE3a7982263103; | ||
|
||
// https://celoscan.io/address/0x9e04Cb339163b06068397d9b6af2dA78440954e0 | ||
address internal constant EMISSION_MANAGER = 0x9e04Cb339163b06068397d9b6af2dA78440954e0; | ||
|
||
// https://celoscan.io/address/0xB25a5D144626a0D488e52AE717A051a2E9997076 | ||
address internal constant CONFIG_ENGINE = 0xB25a5D144626a0D488e52AE717A051a2E9997076; | ||
|
||
// https://celoscan.io/address/0xB4B6939D0804DCE8d0Ac3e59b2eD5C072829d56b | ||
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = | ||
0xB4B6939D0804DCE8d0Ac3e59b2eD5C072829d56b; | ||
|
||
// https://celoscan.io/address/0x3A1Ea5fB3098b9767E0e85D63E28A5c0EAa44099 | ||
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0x3A1Ea5fB3098b9767E0e85D63E28A5c0EAa44099; | ||
|
||
// https://celoscan.io/address/0xf07fFd12b119b921C4a2ce8d4A13C5d1E3000d6e | ||
address internal constant UI_POOL_DATA_PROVIDER = 0xf07fFd12b119b921C4a2ce8d4A13C5d1E3000d6e; | ||
|
||
// https://celoscan.io/address/0xB91DA65093d54a1a7cb0fe684860F568A5E57123 | ||
address internal constant WALLET_BALANCE_PROVIDER = 0xB91DA65093d54a1a7cb0fe684860F568A5E57123; | ||
} | ||
library AaveV3CeloAssets {} | ||
library AaveV3CeloEModes { | ||
uint8 internal constant NONE = 0; | ||
} | ||
library AaveV3CeloExternalLibraries { | ||
// https://celoscan.io/address/0x0b3486805D3bda7ACb2d5aa7E26f0b68aF647bc5 | ||
address internal constant FLASHLOAN_LOGIC = 0x0b3486805D3bda7ACb2d5aa7E26f0b68aF647bc5; | ||
|
||
// https://celoscan.io/address/0xAB3218d0900Ba992084a6592b43f66926D4F5757 | ||
address internal constant BORROW_LOGIC = 0xAB3218d0900Ba992084a6592b43f66926D4F5757; | ||
|
||
// https://celoscan.io/address/0x028a1Bc3769209345C9476aFBa72EE4274Cd2A5A | ||
address internal constant BRIDGE_LOGIC = 0x028a1Bc3769209345C9476aFBa72EE4274Cd2A5A; | ||
|
||
// https://celoscan.io/address/0xc463D0Ef209A60318F6aF2e8D29958a665d89B1e | ||
address internal constant E_MODE_LOGIC = 0xc463D0Ef209A60318F6aF2e8D29958a665d89B1e; | ||
|
||
// https://celoscan.io/address/0x70Ac8F684eED3769960b2f863e405afc90CabCD4 | ||
address internal constant LIQUIDATION_LOGIC = 0x70Ac8F684eED3769960b2f863e405afc90CabCD4; | ||
|
||
// https://celoscan.io/address/0x50B8ed003a371cc498c57518e3581a059834c70c | ||
address internal constant POOL_LOGIC = 0x50B8ed003a371cc498c57518e3581a059834c70c; | ||
|
||
// https://celoscan.io/address/0x0742d8afd443B9D9B0587536d3750Ef94d69e4b7 | ||
address internal constant SUPPLY_LOGIC = 0x0742d8afd443B9D9B0587536d3750Ef94d69e4b7; | ||
} |
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,53 @@ | ||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
// IPoolAddressesProvider https://celoscan.io/address/0x9F7Cf9417D5251C59fE94fB9147feEe1aAd9Cea5 | ||
export const POOL_ADDRESSES_PROVIDER = '0x9F7Cf9417D5251C59fE94fB9147feEe1aAd9Cea5'; | ||
|
||
// IPool https://celoscan.io/address/0x3E59A31363E2ad014dcbc521c4a0d5757d9f3402 | ||
export const POOL = '0x3E59A31363E2ad014dcbc521c4a0d5757d9f3402'; | ||
|
||
// IPoolConfigurator https://celoscan.io/address/0x7567E3434CC1BEf724AB595e6072367Ef4914691 | ||
export const POOL_CONFIGURATOR = '0x7567E3434CC1BEf724AB595e6072367Ef4914691'; | ||
|
||
// IAaveOracle https://celoscan.io/address/0x1e693D088ceFD1E95ba4c4a5F7EeA41a1Ec37e8b | ||
export const ORACLE = '0x1e693D088ceFD1E95ba4c4a5F7EeA41a1Ec37e8b'; | ||
|
||
// https://celoscan.io/address/0x1dF462e2712496373A347f8ad10802a5E95f053D | ||
export const ACL_ADMIN = '0x1dF462e2712496373A347f8ad10802a5E95f053D'; | ||
|
||
// IACLManager https://celoscan.io/address/0x7a12dCfd73C1B4cddf294da4cFce75FcaBBa314C | ||
export const ACL_MANAGER = '0x7a12dCfd73C1B4cddf294da4cFce75FcaBBa314C'; | ||
|
||
// IPoolDataProvider https://celoscan.io/address/0x33b7d355613110b4E842f5f7057Ccd36fb4cee28 | ||
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x33b7d355613110b4E842f5f7057Ccd36fb4cee28'; | ||
|
||
// https://celoscan.io/address/0x44D38b18a99E50E51B99F05C1f418Db26Ded315f | ||
export const POOL_IMPL = '0x44D38b18a99E50E51B99F05C1f418Db26Ded315f'; | ||
|
||
// https://celoscan.io/address/0x87f6224536d9BD1d4FE6052e06f9647B51843e33 | ||
export const POOL_CONFIGURATOR_IMPL = '0x87f6224536d9BD1d4FE6052e06f9647B51843e33'; | ||
|
||
// https://celoscan.io/address/0x4725A0FdbEB14A77964bC1C221eE3a7982263103 | ||
export const DEFAULT_INCENTIVES_CONTROLLER = '0x4725A0FdbEB14A77964bC1C221eE3a7982263103'; | ||
|
||
// https://celoscan.io/address/0x9e04Cb339163b06068397d9b6af2dA78440954e0 | ||
export const EMISSION_MANAGER = '0x9e04Cb339163b06068397d9b6af2dA78440954e0'; | ||
|
||
// https://celoscan.io/address/0xB25a5D144626a0D488e52AE717A051a2E9997076 | ||
export const CONFIG_ENGINE = '0xB25a5D144626a0D488e52AE717A051a2E9997076'; | ||
|
||
// https://celoscan.io/address/0xB4B6939D0804DCE8d0Ac3e59b2eD5C072829d56b | ||
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0xB4B6939D0804DCE8d0Ac3e59b2eD5C072829d56b'; | ||
|
||
// https://celoscan.io/address/0x3A1Ea5fB3098b9767E0e85D63E28A5c0EAa44099 | ||
export const UI_INCENTIVE_DATA_PROVIDER = '0x3A1Ea5fB3098b9767E0e85D63E28A5c0EAa44099'; | ||
|
||
// https://celoscan.io/address/0xf07fFd12b119b921C4a2ce8d4A13C5d1E3000d6e | ||
export const UI_POOL_DATA_PROVIDER = '0xf07fFd12b119b921C4a2ce8d4A13C5d1E3000d6e'; | ||
|
||
// https://celoscan.io/address/0xB91DA65093d54a1a7cb0fe684860F568A5E57123 | ||
export const WALLET_BALANCE_PROVIDER = '0xB91DA65093d54a1a7cb0fe684860F568A5E57123'; | ||
|
||
export const CHAIN_ID = 42220; | ||
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
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