Skip to content

Commit

Permalink
feat: testnet updates (#218)
Browse files Browse the repository at this point in the history
* feat: updated v3 testnet addresses

* fix: regenerate

* fix: remove v3 goerli config
  • Loading branch information
grothem authored Aug 28, 2023
1 parent cab5960 commit 456fab9
Show file tree
Hide file tree
Showing 24 changed files with 993 additions and 1,216 deletions.
147 changes: 66 additions & 81 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,29 +349,15 @@ export const pools = [
{
name: 'AaveV3Sepolia',
chainId: ChainId.sepolia,
addressProvider: '0x0496275d34753A48320CA58103d5220d394FF77F',
addressProvider: '0x012bAC54348C0E635dCAc9D5FB99f06F24136C9A',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0x1f885520b7BD528E46b390040F12E753Dce43004',
UI_INCENTIVE_DATA_PROVIDER: '0x7cE1062e0688BC3D7699987A38bba84353F69881',
UI_POOL_DATA_PROVIDER: '0xe38c93180a6CE4173d88793c0671AD1Dd417c7d8',
WALLET_BALANCE_PROVIDER: '0x4f04218ECC7D2756f84836D2DC267293504cAbCc',
WETH_GATEWAY: '0xe70cDC67C91d5519DD4682cA162E40480773255a',
},
},
{
name: 'AaveV3Goerli',
chainId: ChainId.goerli,
addressProvider: '0xC911B590248d127aD18546B186cC6B324e99F02c',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0xA70D8aD6d26931d0188c642A66de3B6202cDc5FA',
UI_INCENTIVE_DATA_PROVIDER: '0xf4Ce3624c8D047aF8b069D044f00bF6774B4dEc0',
UI_POOL_DATA_PROVIDER: '0xb00A75686293Fea5DA122E8361f6815A0B0AF48E',
WALLET_BALANCE_PROVIDER: '0xe0bb4593f74B804B9aBd9a2Ec6C71663cEE64E29',
WETH_GATEWAY: '0x2A498323aCaD2971a8b1936fD7540596dC9BBacD',
FAUCET: '0xC959483DBa39aa9E78757139af0e9a2EDEb3f42D',
UI_INCENTIVE_DATA_PROVIDER: '0xBA25de9a7DC623B30799F33B770d31B44c2C3b77',
UI_POOL_DATA_PROVIDER: '0x69529987FA4A075D0C00B0128fa848dc9ebbE9CE',
WALLET_BALANCE_PROVIDER: '0xCD4e0d6D2b1252E2A709B8aE97DBA31164C5a709',
WETH_GATEWAY: '0x387d311e47e80b498169e6fb51d3193167d89F7D',
},
},
{
Expand Down Expand Up @@ -406,15 +392,15 @@ export const pools = [
{
name: 'AaveV3Mumbai',
chainId: ChainId.mumbai,
addressProvider: '0xeb7A892BB04A8f836bDEeBbf60897A7Af1Bf5d7F',
addressProvider: '0x4CeDCB57Af02293231BAA9D39354D6BFDFD251e0',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0xB00b414F9E45ba73B44fFC3E3Ce64a806552cD02',
UI_INCENTIVE_DATA_PROVIDER: '0xf7Dd602B3Cf90B2A20FC0F84E0419BeE104BdF16',
UI_POOL_DATA_PROVIDER: '0x928d9A76705aA6e4a6650BFb7E7912e413Fe7341',
WALLET_BALANCE_PROVIDER: '0xdbaeF5FC90a979426E2cE5C3F0125430d0e2023e',
WETH_GATEWAY: '0x2a58E9bbb5434FdA7FF78051a4B82cb0EF669C17',
FAUCET: '0x2c95d10bA4BBEc79e562e8B3f48687751808C925',
UI_INCENTIVE_DATA_PROVIDER: '0x322bCff7b69F832B1a1F56E6BC600C9229CFb907',
UI_POOL_DATA_PROVIDER: '0xD64dDe119f11C88850FD596BE11CE398CC5893e6',
WALLET_BALANCE_PROVIDER: '0xD8A70FC58BC069CFE6529EBF0c1Db067f2b5347E',
WETH_GATEWAY: '0x8dA9412AbB78db20d0B496573D9066C474eA21B8',
},
},
{
Expand Down Expand Up @@ -474,15 +460,15 @@ export const pools = [
{
name: 'AaveV3Fuji',
chainId: ChainId.fuji,
addressProvider: '0x220c6A7D868FC38ECB47d5E69b99e9906300286A',
addressProvider: '0xfb87056c0587923f15EB0aABc7d0572450Cc8003',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0x66B3b92Fb1b2635504Cd5f878E26ABD8826aAf1E',
UI_INCENTIVE_DATA_PROVIDER: '0xD764968BdAAdD2120F0E48a16fB29a6c73c13340',
UI_POOL_DATA_PROVIDER: '0x08D07a855306400c8e499664f7f5247046274C77',
WALLET_BALANCE_PROVIDER: '0xd2495B9f9F78092858e09e294Ed5c17Dbc5fCfA8',
WETH_GATEWAY: '0x8f57153F18b7273f9A814b93b31Cb3f9b035e7C2',
FAUCET: '0xBCcD21ae43139bEF545e72e20E78f039A3Ac1b96',
UI_INCENTIVE_DATA_PROVIDER: '0x1EFf285a4E34217495b5531151bffa222A94A4F9',
UI_POOL_DATA_PROVIDER: '0x279c790Afcd547e2f20d896c5DDEe3846b9790B5',
WALLET_BALANCE_PROVIDER: '0xfFE3778c51e93EBf68f5d0a83c794E7f623024dd',
WETH_GATEWAY: '0x8A007E495449ffeda4C2d65f14eE31f8Bcb022CF',
},
},
{
Expand Down Expand Up @@ -552,30 +538,30 @@ export const pools = [
{
name: 'AaveV3ArbitrumGoerli',
chainId: ChainId.arbitrum_goerli,
addressProvider: '0x4EEE0BB72C2717310318f27628B3c8a708E4951C',
addressProvider: '0xD64dDe119f11C88850FD596BE11CE398CC5893e6',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0x0E0effeEFD42C108288b0EcDDc901222a4149e08',
L2_ENCODER: '0xE8BA4db946a310A1Aca92571A53D3bdE834B5409',
UI_INCENTIVE_DATA_PROVIDER: '0xB9107870a2e22b9cd4B51ED5483212Cb9eAE0329',
UI_POOL_DATA_PROVIDER: '0x583F04c0C4BDE3D7706e939F3Ea890Be9A20A5CF',
WALLET_BALANCE_PROVIDER: '0x39fDBFDBF1127F31F485a1228D44010F5130cCAC',
WETH_GATEWAY: '0xBCca2fc5F30A65cE2155d739364f3fc8F57E6999',
FAUCET: '0xc1b3cc37cf2f922abDFE7F01A17bc932F4078665',
L2_ENCODER: '0x46605375317C3E8bd19E0ED70987354Cb6D16720',
UI_INCENTIVE_DATA_PROVIDER: '0x159E642e34ad712242F6057477277b093eb43950',
UI_POOL_DATA_PROVIDER: '0x1d5a0287E4ac7Ff805D8399D0177c75C8C95d4dC',
WALLET_BALANCE_PROVIDER: '0x8c7914af3926CfA5131Ce294c48E03C6d3aDc916',
WETH_GATEWAY: '0xcD1065F2c3A0e0a94d543Ce41720BFF515f753B7',
},
},
{
name: 'AaveV3FantomTestnet',
chainId: ChainId.fantom_testnet,
addressProvider: '0xC809bea009Ca8DAA680f6A1c4Ca020D550210736',
addressProvider: '0x1558c6FadDe1bEaf0f6628BDd1DFf3461185eA24',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0x77523cB4402d241e324Bcf1EcEa91C4f63033B1b',
UI_INCENTIVE_DATA_PROVIDER: '0xFBBdDFfFFcFBD55a6DF325d2be47077875Ef9eB9',
UI_POOL_DATA_PROVIDER: '0x9a00043F98941DD4e02E1c7e78676df64F5e37a6',
WALLET_BALANCE_PROVIDER: '0x4E2e1F992A2ba1137fB6e1FcfbEdcaC95cA788e5',
WETH_GATEWAY: '0x87770f04Bbece8092d777860907798138825f303',
FAUCET: '0x021BE22Bdfa497D6643D4035E530095E7b452967',
UI_INCENTIVE_DATA_PROVIDER: '0xf24dc19cFb9A25bbc4DDcaAdb116DfD17472207B',
UI_POOL_DATA_PROVIDER: '0xC91dB4F736b6Acf5A2e379a58280D1b06BD24E7d',
WALLET_BALANCE_PROVIDER: '0x49cC86071dEcC7999BA656763b8389f23058bB34',
WETH_GATEWAY: '0xd2B0C9778d088Fc79C28Da719bC02158E64796bD',
},
},
{
Expand Down Expand Up @@ -630,16 +616,16 @@ export const pools = [
{
name: 'AaveV3OptimismGoerli',
chainId: ChainId.optimism_goerli,
addressProvider: '0x0b8FAe5f9Bf5a1a5867FB5b39fF4C028b1C2ebA9',
addressProvider: '0xf3a4595bD9FBf129DEb80802a4785873F0ceB65c',
version: 3,
testnet: true,
additionalAddresses: {
FAUCET: '0x777A5810352302A2D6d79d5B7323237c467845d9',
L2_ENCODER: '0x14AA09449fac437b5c0110614be2C08610e38f62',
UI_INCENTIVE_DATA_PROVIDER: '0x4157398c5abB5211F51F5B551E3e240c5568dbD4',
UI_POOL_DATA_PROVIDER: '0x9277eFbB991536a98a1aA8b735E9D26d887104C1',
WALLET_BALANCE_PROVIDER: '0xb463057Eb60E1575e2a69aa17C63CCd2F3161a5f',
WETH_GATEWAY: '0x6f7f2440006221F893c587b88f01afc42B6F8d2e',
FAUCET: '0x387d311e47e80b498169e6fb51d3193167d89F7D',
L2_ENCODER: '0x19cdecE64EDE475ba0EB114ff4E319d64Ef8ECCf',
UI_INCENTIVE_DATA_PROVIDER: '0x72A9c57cD5E2Ff20450e409cF6A542f1E6c710fc',
UI_POOL_DATA_PROVIDER: '0xD2f5680976c86ADd3978b7ad3422Ee5c7690ddb4',
WALLET_BALANCE_PROVIDER: '0x56033E114c61183590d39BA847400F02022Ebe47',
WETH_GATEWAY: '0xf556C102F47d806E21E8E78438E58ac06A14A29E',
},
},
{
Expand Down Expand Up @@ -716,38 +702,37 @@ export const pools = [
provider: RPC_PROVIDERS[m.chainId as keyof typeof RPC_PROVIDERS] as unknown as PublicClient,
// fix checksums
addressProvider: getAddress(m.addressProvider),
additionalAddresses: Object.keys(m.additionalAddresses).reduce((acc, key) => {
acc[key] = getAddress(m.additionalAddresses[key as keyof Pool['additionalAddresses']] as Hex);
return acc;
}, {} as {[key: string]: Hex}) as Pool['additionalAddresses'],
additionalAddresses: Object.keys(m.additionalAddresses).reduce(
(acc, key) => {
acc[key] = getAddress(m.additionalAddresses[key as keyof Pool['additionalAddresses']] as Hex);
return acc;
},
{} as {[key: string]: Hex},
) as Pool['additionalAddresses'],
})) as Pool[];

export const governanceV2 = Object.fromEntries(
Object.entries(
{
GOV: '0xEC568fffba86c094cf06b22134B23074DFE2252c',
GOV_STRATEGY: '0xb7e383ef9B1E9189Fc0F71fb30af8aa14377429e',
SHORT_EXECUTOR: '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5',
LONG_EXECUTOR: '0x79426A1c24B2978D90d7A5070a46C65B07bC4299',
ARC_TIMELOCK: '0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218',
POLYGON_BRIDGE_EXECUTOR: '0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772',
OPTIMISM_BRIDGE_EXECUTOR: '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611',
ARBITRUM_BRIDGE_EXECUTOR: '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611',
METIS_BRIDGE_EXECUTOR: '0x8EC77963068474a45016938Deb95E603Ca82a029',
BASE_BRIDGE_EXECUTOR: '0xA9F30e6ED4098e9439B2ac8aEA2d3fc26BcEbb45',
CROSSCHAIN_FORWARDER_POLYGON: '0x158a6bC04F0828318821baE797f50B0A1299d45b',
CROSSCHAIN_FORWARDER_OPTIMISM: '0x5f5C02875a8e9B5A26fbd09040ABCfDeb2AA6711',
CROSSCHAIN_FORWARDER_ARBITRUM: '0xd1B3E25fD7C8AE7CADDC6F71b461b79CD4ddcFa3',
CROSSCHAIN_FORWARDER_METIS: '0x2fE52eF191F0BE1D98459BdaD2F1d3160336C08f',
CROSSCHAIN_FORWARDER_BASE: '0x3215225538da1546FE0DA88ee13019f402078942'
} as GovernanceV2
).map(
([key, value]) => [key, getAddress(value)]
)
Object.entries({
GOV: '0xEC568fffba86c094cf06b22134B23074DFE2252c',
GOV_STRATEGY: '0xb7e383ef9B1E9189Fc0F71fb30af8aa14377429e',
SHORT_EXECUTOR: '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5',
LONG_EXECUTOR: '0x79426A1c24B2978D90d7A5070a46C65B07bC4299',
ARC_TIMELOCK: '0xAce1d11d836cb3F51Ef658FD4D353fFb3c301218',
POLYGON_BRIDGE_EXECUTOR: '0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772',
OPTIMISM_BRIDGE_EXECUTOR: '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611',
ARBITRUM_BRIDGE_EXECUTOR: '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611',
METIS_BRIDGE_EXECUTOR: '0x8EC77963068474a45016938Deb95E603Ca82a029',
BASE_BRIDGE_EXECUTOR: '0xA9F30e6ED4098e9439B2ac8aEA2d3fc26BcEbb45',
CROSSCHAIN_FORWARDER_POLYGON: '0x158a6bC04F0828318821baE797f50B0A1299d45b',
CROSSCHAIN_FORWARDER_OPTIMISM: '0x5f5C02875a8e9B5A26fbd09040ABCfDeb2AA6711',
CROSSCHAIN_FORWARDER_ARBITRUM: '0xd1B3E25fD7C8AE7CADDC6F71b461b79CD4ddcFa3',
CROSSCHAIN_FORWARDER_METIS: '0x2fE52eF191F0BE1D98459BdaD2F1d3160336C08f',
CROSSCHAIN_FORWARDER_BASE: '0x3215225538da1546FE0DA88ee13019f402078942',
} as GovernanceV2).map(([key, value]) => [key, getAddress(value)]),
) as unknown as GovernanceV2;

export const misc = Object.fromEntries(Object.entries(
{
export const misc = Object.fromEntries(
Object.entries({
ECOSYSTEM_RESERVE: '0x25F2226B597E8F9514B3F68F00f494cF4f286491',
AAVE_ECOSYSTEM_RESERVE_CONTROLLER: '0x3d569673dAa0575c936c7c67c4E6AedA69CC630C',
TRANSPARENT_PROXY_FACTORY_ETHEREUM: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
Expand All @@ -765,5 +750,5 @@ export const misc = Object.fromEntries(Object.entries(
PROXY_ADMIN_METIS: '0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97',
TRANSPARENT_PROXY_FACTORY_BASE: '0x05225Cd708bCa9253789C1374e4337a019e99D56',
PROXY_ADMIN_BASE: '0xc85b1E333aecc99340b2320493Fe2d22b8734795',
} as Misc
).map(([key, value]) => [key, getAddress(value)])) as unknown as Misc;
} as Misc).map(([key, value]) => [key, getAddress(value)]),
) as unknown as Misc;
1 change: 0 additions & 1 deletion src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {AaveV2EthereumAMM} from './AaveV2EthereumAMM.sol';
import {AaveV2EthereumArc} from './AaveV2EthereumArc.sol';
import {AaveV2Goerli} from './AaveV2Goerli.sol';
import {AaveV3Sepolia} from './AaveV3Sepolia.sol';
import {AaveV3Goerli} from './AaveV3Goerli.sol';
import {AaveV3GoerliGho} from './AaveV3GoerliGho.sol';
import {AaveV2Mumbai} from './AaveV2Mumbai.sol';
import {AaveV3Mumbai} from './AaveV3Mumbai.sol';
Expand Down
Loading

0 comments on commit 456fab9

Please sign in to comment.