-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/celo-new-deployment
- Loading branch information
Showing
20 changed files
with
424 additions
and
6 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
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,15 @@ | ||
import {ChainId} from '@bgd-labs/rpc-env'; | ||
import {GovernanceConfig} from '../types'; | ||
|
||
export const governanceConfigSonic: GovernanceConfig = { | ||
name: 'Sonic', | ||
CHAIN_ID: ChainId.sonic, | ||
ADDRESSES: { | ||
CROSS_CHAIN_CONTROLLER: '0x58e003a3C6f2Aeed6a2a6Bc77B504566523cb15c', | ||
PAYLOADS_CONTROLLER: '0x0846C28Dd54DEA4Fd7Fb31bcc5EB81673D68c695', | ||
PC_DATA_HELPER: '0x6fD45D32375d5aDB8D76275A3932c740F03a8718', | ||
GRANULAR_GUARDIAN: '0x10078c1D8E46dd1ed5D8df2C42d5ABb969b11566', | ||
GOVERNANCE_GUARDIAN: '0x63C4422D6cc849549daeb600B7EcE52bD18fAd7f', | ||
CL_EMERGENCY_ORACLE: '0xECB564e91f620fBFb59d0C4A41d7f10aDb0D1934' | ||
}, | ||
}; |
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,23 @@ | ||
import {ChainId} from '@bgd-labs/rpc-env'; | ||
import {PoolConfig} from '../types'; | ||
|
||
export const sonicProtoV3: PoolConfig = { | ||
name: 'Sonic', | ||
chainId: ChainId.sonic, | ||
POOL_ADDRESSES_PROVIDER: '0x5C2e738F6E27bCE0F7558051Bf90605dD6176900', | ||
additionalAddresses: { | ||
CONFIG_ENGINE: '0xa119F84bC1b8083F5061E4cf53705cBf1065bA27', | ||
RISK_STEWARD: '0xAe13e4DA0952f0B8fE04E21df53716fCF799a923', | ||
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x5E5D87858592d211fdb4503F09FB2B5cf805cB51', | ||
UI_INCENTIVE_DATA_PROVIDER: '0xeC859AED64e87004FA724892D5aB474901825B2D', | ||
UI_POOL_DATA_PROVIDER: '0x9005A69fE088680827f292e8aE885Be4BE1beb2f', | ||
WALLET_BALANCE_PROVIDER: '0x6637Ef9c6b41Fa62d69b7E88C5Dd9eF30BbEE945', | ||
WETH_GATEWAY: '0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9', | ||
STATA_FACTORY: '0xFeeb6FE430B7523fEF2a38327241eE7153779535' | ||
}, | ||
initial: { | ||
COLLECTOR: '0x1aB55bBdD5DF0782BBCf73553Af93BC6B29A286B', | ||
DEFAULT_A_TOKEN_IMPL: '0x91FC11136d5615575a0fC5981Ab5C0C54418E2C6', | ||
DEFAULT_VARIABLE_DEBT_TOKEN_IMPL: '0xcb85C501B3A5e9851850d66648d69B26A4c90942' | ||
}, | ||
}; |
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,106 @@ | ||
// 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 AaveV3Sonic { | ||
// https://sonicscan.org/address/0x5C2e738F6E27bCE0F7558051Bf90605dD6176900 | ||
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER = | ||
IPoolAddressesProvider(0x5C2e738F6E27bCE0F7558051Bf90605dD6176900); | ||
|
||
// https://sonicscan.org/address/0x5362dBb1e601abF3a4c14c22ffEdA64042E5eAA3 | ||
IPool internal constant POOL = IPool(0x5362dBb1e601abF3a4c14c22ffEdA64042E5eAA3); | ||
|
||
// https://sonicscan.org/address/0x50c70FEB95aBC1A92FC30b9aCc41Bd349E5dE2f0 | ||
IPoolConfigurator internal constant POOL_CONFIGURATOR = | ||
IPoolConfigurator(0x50c70FEB95aBC1A92FC30b9aCc41Bd349E5dE2f0); | ||
|
||
// https://sonicscan.org/address/0xD63f7658C66B2934Bd234D79D06aEF5290734B30 | ||
IAaveOracle internal constant ORACLE = IAaveOracle(0xD63f7658C66B2934Bd234D79D06aEF5290734B30); | ||
|
||
// https://sonicscan.org/address/0x7b62461a3570c6AC8a9f8330421576e417B71EE7 | ||
address internal constant ACL_ADMIN = 0x7b62461a3570c6AC8a9f8330421576e417B71EE7; | ||
|
||
// https://sonicscan.org/address/0x3a790a47c4d531FD333FAD24f70B0ccb521B3b5A | ||
IACLManager internal constant ACL_MANAGER = | ||
IACLManager(0x3a790a47c4d531FD333FAD24f70B0ccb521B3b5A); | ||
|
||
// https://sonicscan.org/address/0x306c124fFba5f2Bc0BcAf40D249cf19D492440b9 | ||
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER = | ||
IPoolDataProvider(0x306c124fFba5f2Bc0BcAf40D249cf19D492440b9); | ||
|
||
// https://sonicscan.org/address/0x46Dcd5F4600319b02649Fd76B55aA6c1035CA478 | ||
address internal constant POOL_IMPL = 0x46Dcd5F4600319b02649Fd76B55aA6c1035CA478; | ||
|
||
// https://sonicscan.org/address/0x5cC4f782cFe249286476A7eFfD9D7bd215768194 | ||
address internal constant POOL_CONFIGURATOR_IMPL = 0x5cC4f782cFe249286476A7eFfD9D7bd215768194; | ||
|
||
// https://sonicscan.org/address/0x24bD6e9ca54F1737467DEf82dCA9702925B3Aa59 | ||
address internal constant DEFAULT_INCENTIVES_CONTROLLER = | ||
0x24bD6e9ca54F1737467DEf82dCA9702925B3Aa59; | ||
|
||
// https://sonicscan.org/address/0xd3A0A19Cdb7d1615f30988763BEA5f8feCc17a87 | ||
address internal constant EMISSION_MANAGER = 0xd3A0A19Cdb7d1615f30988763BEA5f8feCc17a87; | ||
|
||
// https://sonicscan.org/address/0x1aB55bBdD5DF0782BBCf73553Af93BC6B29A286B | ||
ICollector internal constant COLLECTOR = ICollector(0x1aB55bBdD5DF0782BBCf73553Af93BC6B29A286B); | ||
|
||
// https://sonicscan.org/address/0x91FC11136d5615575a0fC5981Ab5C0C54418E2C6 | ||
address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0x91FC11136d5615575a0fC5981Ab5C0C54418E2C6; | ||
|
||
// https://sonicscan.org/address/0xcb85C501B3A5e9851850d66648d69B26A4c90942 | ||
address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = | ||
0xcb85C501B3A5e9851850d66648d69B26A4c90942; | ||
|
||
// https://sonicscan.org/address/0xa119F84bC1b8083F5061E4cf53705cBf1065bA27 | ||
address internal constant CONFIG_ENGINE = 0xa119F84bC1b8083F5061E4cf53705cBf1065bA27; | ||
|
||
// https://sonicscan.org/address/0xAe13e4DA0952f0B8fE04E21df53716fCF799a923 | ||
address internal constant RISK_STEWARD = 0xAe13e4DA0952f0B8fE04E21df53716fCF799a923; | ||
|
||
// https://sonicscan.org/address/0x5E5D87858592d211fdb4503F09FB2B5cf805cB51 | ||
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY = | ||
0x5E5D87858592d211fdb4503F09FB2B5cf805cB51; | ||
|
||
// https://sonicscan.org/address/0xeC859AED64e87004FA724892D5aB474901825B2D | ||
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0xeC859AED64e87004FA724892D5aB474901825B2D; | ||
|
||
// https://sonicscan.org/address/0x9005A69fE088680827f292e8aE885Be4BE1beb2f | ||
address internal constant UI_POOL_DATA_PROVIDER = 0x9005A69fE088680827f292e8aE885Be4BE1beb2f; | ||
|
||
// https://sonicscan.org/address/0x6637Ef9c6b41Fa62d69b7E88C5Dd9eF30BbEE945 | ||
address internal constant WALLET_BALANCE_PROVIDER = 0x6637Ef9c6b41Fa62d69b7E88C5Dd9eF30BbEE945; | ||
|
||
// https://sonicscan.org/address/0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9 | ||
address internal constant WETH_GATEWAY = 0x061D8e131F26512348ee5FA42e2DF1bA9d6505E9; | ||
|
||
// https://sonicscan.org/address/0xFeeb6FE430B7523fEF2a38327241eE7153779535 | ||
address internal constant STATA_FACTORY = 0xFeeb6FE430B7523fEF2a38327241eE7153779535; | ||
} | ||
library AaveV3SonicAssets {} | ||
library AaveV3SonicEModes { | ||
uint8 internal constant NONE = 0; | ||
} | ||
library AaveV3SonicExternalLibraries { | ||
// https://sonicscan.org/address/0x34039100cc9584Ae5D741d322e16d0d18CEE8770 | ||
address internal constant FLASHLOAN_LOGIC = 0x34039100cc9584Ae5D741d322e16d0d18CEE8770; | ||
|
||
// https://sonicscan.org/address/0x62325c94E1c49dcDb5937726aB5D8A4c37bCAd36 | ||
address internal constant BORROW_LOGIC = 0x62325c94E1c49dcDb5937726aB5D8A4c37bCAd36; | ||
|
||
// https://sonicscan.org/address/0x621Ef86D8A5C693a06295BC288B95C12D4CE4994 | ||
address internal constant BRIDGE_LOGIC = 0x621Ef86D8A5C693a06295BC288B95C12D4CE4994; | ||
|
||
// https://sonicscan.org/address/0xC31d2362fAeD85dF79d0bec99693D0EB0Abd3f74 | ||
address internal constant E_MODE_LOGIC = 0xC31d2362fAeD85dF79d0bec99693D0EB0Abd3f74; | ||
|
||
// https://sonicscan.org/address/0x4731bF01583F991278692E8727d0700a00A1fBBf | ||
address internal constant LIQUIDATION_LOGIC = 0x4731bF01583F991278692E8727d0700a00A1fBBf; | ||
|
||
// https://sonicscan.org/address/0xf8C97539934ee66a67C26010e8e027D77E821B0C | ||
address internal constant POOL_LOGIC = 0xf8C97539934ee66a67C26010e8e027D77E821B0C; | ||
|
||
// https://sonicscan.org/address/0x185477906B46D9b8DE0DEB73A1bBfb87b5b51BC3 | ||
address internal constant SUPPLY_LOGIC = 0x185477906B46D9b8DE0DEB73A1bBfb87b5b51BC3; | ||
} |
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,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.6.0; | ||
|
||
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR | ||
import {IGovernanceCore, IPayloadsControllerCore, IDataWarehouse, IVotingStrategy} from './GovernanceV3.sol'; | ||
library GovernanceV3Sonic { | ||
// https://sonicscan.org/address/0x58e003a3C6f2Aeed6a2a6Bc77B504566523cb15c | ||
address internal constant CROSS_CHAIN_CONTROLLER = 0x58e003a3C6f2Aeed6a2a6Bc77B504566523cb15c; | ||
|
||
// https://sonicscan.org/address/0x0846C28Dd54DEA4Fd7Fb31bcc5EB81673D68c695 | ||
IPayloadsControllerCore internal constant PAYLOADS_CONTROLLER = | ||
IPayloadsControllerCore(0x0846C28Dd54DEA4Fd7Fb31bcc5EB81673D68c695); | ||
|
||
// https://sonicscan.org/address/0x6fD45D32375d5aDB8D76275A3932c740F03a8718 | ||
address internal constant PC_DATA_HELPER = 0x6fD45D32375d5aDB8D76275A3932c740F03a8718; | ||
|
||
// https://sonicscan.org/address/0x10078c1D8E46dd1ed5D8df2C42d5ABb969b11566 | ||
address internal constant GRANULAR_GUARDIAN = 0x10078c1D8E46dd1ed5D8df2C42d5ABb969b11566; | ||
|
||
// https://sonicscan.org/address/0x63C4422D6cc849549daeb600B7EcE52bD18fAd7f | ||
address internal constant GOVERNANCE_GUARDIAN = 0x63C4422D6cc849549daeb600B7EcE52bD18fAd7f; | ||
|
||
// https://sonicscan.org/address/0xECB564e91f620fBFb59d0C4A41d7f10aDb0D1934 | ||
address internal constant CL_EMERGENCY_ORACLE = 0xECB564e91f620fBFb59d0C4A41d7f10aDb0D1934; | ||
|
||
// https://sonicscan.org/address/0x7b62461a3570c6AC8a9f8330421576e417B71EE7 | ||
address internal constant EXECUTOR_LVL_1 = 0x7b62461a3570c6AC8a9f8330421576e417B71EE7; | ||
} |
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
Oops, something went wrong.