Skip to content

Commit

Permalink
feat: add missing abis (#438)
Browse files Browse the repository at this point in the history
* feat: add missing abis

* fix: update index

* fix: add configurator abi
  • Loading branch information
sakulstra authored Apr 25, 2024
1 parent 405e6b4 commit aa24a81
Show file tree
Hide file tree
Showing 16 changed files with 5,632 additions and 60 deletions.
6 changes: 6 additions & 0 deletions scripts/configs/abis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ export const ABI_INTERFACES = [
'IWithGuardian',
'IRescuable',
'IOwnable',
'ILendingPool',
'ILendingPoolAddressesProvider',
'ILendingPoolConfigurator',
'IPool',
'IPoolAddressesProvider',
'IPoolConfigurator',
];

export const DOWNLOAD_ABI_INTERFACES = [
Expand Down
12 changes: 6 additions & 6 deletions src/AaveV2Avalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ library AaveV2AvalancheAssets {
// https://snowscan.xyz/address/0x3676E4EE689D527dDb89812B63fAD0B7501772B3
address internal constant DAIe_S_TOKEN = 0x3676E4EE689D527dDb89812B63fAD0B7501772B3;

// https://snowscan.xyz/address/0x51D7180edA2260cc4F6e4EebB82FEF5c3c2B8300
address internal constant DAIe_ORACLE = 0x51D7180edA2260cc4F6e4EebB82FEF5c3c2B8300;
// https://snowscan.xyz/address/0xf82da795727633aFA9BB0f1B08A87c0F6A38723f
address internal constant DAIe_ORACLE = 0xf82da795727633aFA9BB0f1B08A87c0F6A38723f;

// https://snowscan.xyz/address/0x7e7B8d96C08881c3e1F506E3a81baE759aeFacA7
address internal constant DAIe_INTEREST_RATE_STRATEGY =
Expand All @@ -154,8 +154,8 @@ library AaveV2AvalancheAssets {
// https://snowscan.xyz/address/0x9c7B81A867499B7387ed05017a13d4172a0c17bF
address internal constant USDTe_S_TOKEN = 0x9c7B81A867499B7387ed05017a13d4172a0c17bF;

// https://snowscan.xyz/address/0xEBE676ee90Fe1112671f19b6B7459bC678B67e8a
address internal constant USDTe_ORACLE = 0xEBE676ee90Fe1112671f19b6B7459bC678B67e8a;
// https://snowscan.xyz/address/0x39185f2236A6022b682e8BB93C040d125DA093CF
address internal constant USDTe_ORACLE = 0x39185f2236A6022b682e8BB93C040d125DA093CF;

// https://snowscan.xyz/address/0x7e7B8d96C08881c3e1F506E3a81baE759aeFacA7
address internal constant USDTe_INTEREST_RATE_STRATEGY =
Expand All @@ -175,8 +175,8 @@ library AaveV2AvalancheAssets {
// https://snowscan.xyz/address/0x5B14679135dbE8B02015ec3Ca4924a12E4C6C85a
address internal constant USDCe_S_TOKEN = 0x5B14679135dbE8B02015ec3Ca4924a12E4C6C85a;

// https://snowscan.xyz/address/0xF096872672F44d6EBA71458D74fe67F9a77a23B9
address internal constant USDCe_ORACLE = 0xF096872672F44d6EBA71458D74fe67F9a77a23B9;
// https://snowscan.xyz/address/0xD8277249e871BE9A402fa286C2C5ec16046dC512
address internal constant USDCe_ORACLE = 0xD8277249e871BE9A402fa286C2C5ec16046dC512;

// https://snowscan.xyz/address/0xb1f13B58D6a3B1aEdB211Db58D9e42d28D09DbF4
address internal constant USDCe_INTEREST_RATE_STRATEGY =
Expand Down
44 changes: 22 additions & 22 deletions src/AaveV2Ethereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0xe91D55AB2240594855aBd11b3faAE801Fd4c4687
address internal constant USDT_S_TOKEN = 0xe91D55AB2240594855aBd11b3faAE801Fd4c4687;

// https://etherscan.io/address/0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46
address internal constant USDT_ORACLE = 0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46;
// https://etherscan.io/address/0xEfF57B0c8987eea8C491bdDD2F64c1c21297Cf74
address internal constant USDT_ORACLE = 0xEfF57B0c8987eea8C491bdDD2F64c1c21297Cf74;

// https://etherscan.io/address/0x13828736b5e2CcF7811A2012ff9eB3e685a815b2
address internal constant USDT_INTEREST_RATE_STRATEGY =
Expand Down Expand Up @@ -266,8 +266,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x4A7A63909A72D268b1D8a93a9395d098688e0e5C
address internal constant BUSD_S_TOKEN = 0x4A7A63909A72D268b1D8a93a9395d098688e0e5C;

// https://etherscan.io/address/0x614715d2Af89E6EC99A233818275142cE88d1Cfd
address internal constant BUSD_ORACLE = 0x614715d2Af89E6EC99A233818275142cE88d1Cfd;
// https://etherscan.io/address/0x378E959C0eCBbA793217913cE1D8745f6d6B7aC7
address internal constant BUSD_ORACLE = 0x378E959C0eCBbA793217913cE1D8745f6d6B7aC7;

// https://etherscan.io/address/0x65A3De6d805c2A25A8E53e69da6A5a11848f25b3
address internal constant BUSD_INTEREST_RATE_STRATEGY =
Expand All @@ -287,8 +287,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x778A13D3eeb110A4f7bb6529F99c000119a08E92
address internal constant DAI_S_TOKEN = 0x778A13D3eeb110A4f7bb6529F99c000119a08E92;

// https://etherscan.io/address/0x773616E4d11A78F511299002da57A0a94577F1f4
address internal constant DAI_ORACLE = 0x773616E4d11A78F511299002da57A0a94577F1f4;
// https://etherscan.io/address/0xd486FE27AAB0b3CAd1462D767292dd7a84F06E58
address internal constant DAI_ORACLE = 0xd486FE27AAB0b3CAd1462D767292dd7a84F06E58;

// https://etherscan.io/address/0xBbE678b3E03E885B477f97af40671c1182582aD4
address internal constant DAI_INTEREST_RATE_STRATEGY = 0xBbE678b3E03E885B477f97af40671c1182582aD4;
Expand Down Expand Up @@ -449,8 +449,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x30B0f7324feDF89d8eff397275F8983397eFe4af
address internal constant sUSD_S_TOKEN = 0x30B0f7324feDF89d8eff397275F8983397eFe4af;

// https://etherscan.io/address/0x8e0b7e6062272B5eF4524250bFFF8e5Bd3497757
address internal constant sUSD_ORACLE = 0x8e0b7e6062272B5eF4524250bFFF8e5Bd3497757;
// https://etherscan.io/address/0x00753D870Ceda60b38A9efeb47a724160BD8A749
address internal constant sUSD_ORACLE = 0x00753D870Ceda60b38A9efeb47a724160BD8A749;

// https://etherscan.io/address/0x6959f4a661FDF1f3405CaDd56d0Af73a4b082Cb2
address internal constant sUSD_INTEREST_RATE_STRATEGY =
Expand All @@ -470,8 +470,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x7f38d60D94652072b2C44a18c0e14A481EC3C0dd
address internal constant TUSD_S_TOKEN = 0x7f38d60D94652072b2C44a18c0e14A481EC3C0dd;

// https://etherscan.io/address/0x3886BA987236181D98F2401c507Fb8BeA7871dF2
address internal constant TUSD_ORACLE = 0x3886BA987236181D98F2401c507Fb8BeA7871dF2;
// https://etherscan.io/address/0x65f05c3bC078bf24EdeaCFD48D6312c103AC4a61
address internal constant TUSD_ORACLE = 0x65f05c3bC078bf24EdeaCFD48D6312c103AC4a61;

// https://etherscan.io/address/0x65A3De6d805c2A25A8E53e69da6A5a11848f25b3
address internal constant TUSD_INTEREST_RATE_STRATEGY =
Expand All @@ -491,8 +491,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0xE4922afAB0BbaDd8ab2a88E0C79d884Ad337fcA6
address internal constant USDC_S_TOKEN = 0xE4922afAB0BbaDd8ab2a88E0C79d884Ad337fcA6;

// https://etherscan.io/address/0x986b5E1e1755e3C2440e960477f25201B0a8bbD4
address internal constant USDC_ORACLE = 0x986b5E1e1755e3C2440e960477f25201B0a8bbD4;
// https://etherscan.io/address/0x9f2817536Cfd48BF59243d9D8802a5670F5Be05d
address internal constant USDC_ORACLE = 0x9f2817536Cfd48BF59243d9D8802a5670F5Be05d;

// https://etherscan.io/address/0xfA4dEC495522ea25f617113fA0633a5BeCD4918E
address internal constant USDC_INTEREST_RATE_STRATEGY =
Expand Down Expand Up @@ -656,8 +656,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x2387119bc85A74e0BBcbe190d80676CB16F10D4F
address internal constant USDP_S_TOKEN = 0x2387119bc85A74e0BBcbe190d80676CB16F10D4F;

// https://etherscan.io/address/0x3a08ebBaB125224b7b6474384Ee39fBb247D2200
address internal constant USDP_ORACLE = 0x3a08ebBaB125224b7b6474384Ee39fBb247D2200;
// https://etherscan.io/address/0x776292E6eb3eD2D28C0CFa77BaB9378A771424Be
address internal constant USDP_ORACLE = 0x776292E6eb3eD2D28C0CFa77BaB9378A771424Be;

// https://etherscan.io/address/0x45d54d48ca90C03Eb8352ADf228DeA4D1E0bc19b
address internal constant USDP_INTEREST_RATE_STRATEGY =
Expand All @@ -677,8 +677,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0xa3953F07f389d719F99FC378ebDb9276177d8A6e
address internal constant DPI_S_TOKEN = 0xa3953F07f389d719F99FC378ebDb9276177d8A6e;

// https://etherscan.io/address/0x029849bbc0b1d93b85a8b6190e979fd38F5760E2
address internal constant DPI_ORACLE = 0x029849bbc0b1d93b85a8b6190e979fd38F5760E2;
// https://etherscan.io/address/0x2fe9EcF3024B5A63f50Ec0eFC53b8fF2C09F2E93
address internal constant DPI_ORACLE = 0x2fe9EcF3024B5A63f50Ec0eFC53b8fF2C09F2E93;

// https://etherscan.io/address/0xA12D7bB07379ad6de4497B80088e28D4C00932D1
address internal constant DPI_INTEREST_RATE_STRATEGY = 0xA12D7bB07379ad6de4497B80088e28D4C00932D1;
Expand All @@ -697,8 +697,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x3916e3B6c84b161df1b2733dFfc9569a1dA710c2
address internal constant FRAX_S_TOKEN = 0x3916e3B6c84b161df1b2733dFfc9569a1dA710c2;

// https://etherscan.io/address/0x14d04Fff8D21bd62987a5cE9ce543d2F1edF5D3E
address internal constant FRAX_ORACLE = 0x14d04Fff8D21bd62987a5cE9ce543d2F1edF5D3E;
// https://etherscan.io/address/0x1f7e2ccd6702a5c587160390A52111aF6020ac92
address internal constant FRAX_ORACLE = 0x1f7e2ccd6702a5c587160390A52111aF6020ac92;

// https://etherscan.io/address/0x6959f4a661FDF1f3405CaDd56d0Af73a4b082Cb2
address internal constant FRAX_INTEREST_RATE_STRATEGY =
Expand Down Expand Up @@ -779,8 +779,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x7FDbfB0412700D94403c42cA3CAEeeA183F07B26
address internal constant UST_S_TOKEN = 0x7FDbfB0412700D94403c42cA3CAEeeA183F07B26;

// https://etherscan.io/address/0xa20623070413d42a5C01Db2c8111640DD7A5A03a
address internal constant UST_ORACLE = 0xa20623070413d42a5C01Db2c8111640DD7A5A03a;
// https://etherscan.io/address/0x51d08b4912d33d051b57d784c7CAfC0cD42c0f45
address internal constant UST_ORACLE = 0x51d08b4912d33d051b57d784c7CAfC0cD42c0f45;

// https://etherscan.io/address/0xc83cDb49F234EC6666D7857B3EAa1302b109394C
address internal constant UST_INTEREST_RATE_STRATEGY = 0xc83cDb49F234EC6666D7857B3EAa1302b109394C;
Expand Down Expand Up @@ -840,8 +840,8 @@ library AaveV2EthereumAssets {
// https://etherscan.io/address/0x39f010127274b2dBdB770B45e1de54d974974526
address internal constant LUSD_S_TOKEN = 0x39f010127274b2dBdB770B45e1de54d974974526;

// https://etherscan.io/address/0x60c0b047133f696334a2b7f68af0b49d2F3D4F72
address internal constant LUSD_ORACLE = 0x60c0b047133f696334a2b7f68af0b49d2F3D4F72;
// https://etherscan.io/address/0x3a1b874ec865c466046cf131516d26Cc228dF0b3
address internal constant LUSD_ORACLE = 0x3a1b874ec865c466046cf131516d26Cc228dF0b3;

// https://etherscan.io/address/0xBbE678b3E03E885B477f97af40671c1182582aD4
address internal constant LUSD_INTEREST_RATE_STRATEGY =
Expand Down
12 changes: 6 additions & 6 deletions src/AaveV2EthereumAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ library AaveV2EthereumAMMAssets {
// https://etherscan.io/address/0x8da51a5a3129343468a63A96ccae1ff1352a3dfE
address internal constant DAI_S_TOKEN = 0x8da51a5a3129343468a63A96ccae1ff1352a3dfE;

// https://etherscan.io/address/0x773616E4d11A78F511299002da57A0a94577F1f4
address internal constant DAI_ORACLE = 0x773616E4d11A78F511299002da57A0a94577F1f4;
// https://etherscan.io/address/0xd486FE27AAB0b3CAd1462D767292dd7a84F06E58
address internal constant DAI_ORACLE = 0xd486FE27AAB0b3CAd1462D767292dd7a84F06E58;

// https://etherscan.io/address/0xA57cDBfE9FA29Ad842f53100d68789999c04AA36
address internal constant DAI_INTEREST_RATE_STRATEGY = 0xA57cDBfE9FA29Ad842f53100d68789999c04AA36;
Expand All @@ -126,8 +126,8 @@ library AaveV2EthereumAMMAssets {
// https://etherscan.io/address/0xE5971a8a741892F3b3ac3E9c94d02588190cE220
address internal constant USDC_S_TOKEN = 0xE5971a8a741892F3b3ac3E9c94d02588190cE220;

// https://etherscan.io/address/0x986b5E1e1755e3C2440e960477f25201B0a8bbD4
address internal constant USDC_ORACLE = 0x986b5E1e1755e3C2440e960477f25201B0a8bbD4;
// https://etherscan.io/address/0x9f2817536Cfd48BF59243d9D8802a5670F5Be05d
address internal constant USDC_ORACLE = 0x9f2817536Cfd48BF59243d9D8802a5670F5Be05d;

// https://etherscan.io/address/0xA57cDBfE9FA29Ad842f53100d68789999c04AA36
address internal constant USDC_INTEREST_RATE_STRATEGY =
Expand All @@ -147,8 +147,8 @@ library AaveV2EthereumAMMAssets {
// https://etherscan.io/address/0x04A0577a89E1b9E8f6c87ee26cCe6a168fFfC5b5
address internal constant USDT_S_TOKEN = 0x04A0577a89E1b9E8f6c87ee26cCe6a168fFfC5b5;

// https://etherscan.io/address/0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46
address internal constant USDT_ORACLE = 0xEe9F2375b4bdF6387aa8265dD4FB8F16512A1d46;
// https://etherscan.io/address/0xEfF57B0c8987eea8C491bdDD2F64c1c21297Cf74
address internal constant USDT_ORACLE = 0xEfF57B0c8987eea8C491bdDD2F64c1c21297Cf74;

// https://etherscan.io/address/0x2223cd25f60F3e4035fcEfE44612773AFEbFd8ab
address internal constant USDT_INTEREST_RATE_STRATEGY =
Expand Down
12 changes: 6 additions & 6 deletions src/AaveV2Polygon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ library AaveV2PolygonAssets {
// https://polygonscan.com/address/0x2238101B7014C279aaF6b408A284E49cDBd5DB55
address internal constant DAI_S_TOKEN = 0x2238101B7014C279aaF6b408A284E49cDBd5DB55;

// https://polygonscan.com/address/0xFC539A559e170f848323e19dfD66007520510085
address internal constant DAI_ORACLE = 0xFC539A559e170f848323e19dfD66007520510085;
// https://polygonscan.com/address/0x08EDd9E1DF3b0b8498864C60a2FD6cDb13148885
address internal constant DAI_ORACLE = 0x08EDd9E1DF3b0b8498864C60a2FD6cDb13148885;

// https://polygonscan.com/address/0xc4d392a7Bfe01E80A07272F5D8a34D49E9cce966
address internal constant DAI_INTEREST_RATE_STRATEGY = 0xc4d392a7Bfe01E80A07272F5D8a34D49E9cce966;
Expand All @@ -125,8 +125,8 @@ library AaveV2PolygonAssets {
// https://polygonscan.com/address/0xdeb05676dB0DB85cecafE8933c903466Bf20C572
address internal constant USDC_S_TOKEN = 0xdeb05676dB0DB85cecafE8933c903466Bf20C572;

// https://polygonscan.com/address/0xefb7e6be8356cCc6827799B6A7348eE674A80EaE
address internal constant USDC_ORACLE = 0xefb7e6be8356cCc6827799B6A7348eE674A80EaE;
// https://polygonscan.com/address/0xB611AA5E98112C7c3711Ca3a5187dC025B83C8e4
address internal constant USDC_ORACLE = 0xB611AA5E98112C7c3711Ca3a5187dC025B83C8e4;

// https://polygonscan.com/address/0x40648f731198AD8ba5757a0bE5DaDaE034ffCf76
address internal constant USDC_INTEREST_RATE_STRATEGY =
Expand All @@ -146,8 +146,8 @@ library AaveV2PolygonAssets {
// https://polygonscan.com/address/0xe590cfca10e81FeD9B0e4496381f02256f5d2f61
address internal constant USDT_S_TOKEN = 0xe590cfca10e81FeD9B0e4496381f02256f5d2f61;

// https://polygonscan.com/address/0xf9d5AAC6E5572AEFa6bd64108ff86a222F69B64d
address internal constant USDT_ORACLE = 0xf9d5AAC6E5572AEFa6bd64108ff86a222F69B64d;
// https://polygonscan.com/address/0xf840c80932908EF206056dF0882bC595e7150607
address internal constant USDT_ORACLE = 0xf840c80932908EF206056dF0882bC595e7150607;

// https://polygonscan.com/address/0x1233847129541c166ad585FaC0727CcBF6cf28eC
address internal constant USDT_INTEREST_RATE_STRATEGY =
Expand Down
6 changes: 6 additions & 0 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ export {ICrossChainController_ABI} from './abis/ICrossChainController';
export {IWithGuardian_ABI} from './abis/IWithGuardian';
export {IRescuable_ABI} from './abis/IRescuable';
export {IOwnable_ABI} from './abis/IOwnable';
export {ILendingPool_ABI} from './abis/ILendingPool';
export {ILendingPoolAddressesProvider_ABI} from './abis/ILendingPoolAddressesProvider';
export {ILendingPoolConfigurator_ABI} from './abis/ILendingPoolConfigurator';
export {IPool_ABI} from './abis/IPool';
export {IPoolAddressesProvider_ABI} from './abis/IPoolAddressesProvider';
export {IPoolConfigurator_ABI} from './abis/IPoolConfigurator';
export {IPayloadsControllerDataHelper_ABI} from './abis/IPayloadsControllerDataHelper';
export {IGovernanceDataHelper_ABI} from './abis/IGovernanceDataHelper';
export {IMetaDelegateHelper_ABI} from './abis/IMetaDelegateHelper';
Expand Down
6 changes: 3 additions & 3 deletions src/ts/AaveV2Avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ASSETS = {
S_TOKEN: '0x3676E4EE689D527dDb89812B63fAD0B7501772B3',
V_TOKEN: '0x1852DC24d1a8956a0B356AA18eDe954c7a0Ca5ae',
INTEREST_RATE_STRATEGY: '0x7e7B8d96C08881c3e1F506E3a81baE759aeFacA7',
ORACLE: '0x51D7180edA2260cc4F6e4EebB82FEF5c3c2B8300',
ORACLE: '0xf82da795727633aFA9BB0f1B08A87c0F6A38723f',
},
USDTe: {
UNDERLYING: '0xc7198437980c041c805A1EDcbA50c1Ce5db95118',
Expand All @@ -107,7 +107,7 @@ export const ASSETS = {
S_TOKEN: '0x9c7B81A867499B7387ed05017a13d4172a0c17bF',
V_TOKEN: '0xfc1AdA7A288d6fCe0d29CcfAAa57Bc9114bb2DbE',
INTEREST_RATE_STRATEGY: '0x7e7B8d96C08881c3e1F506E3a81baE759aeFacA7',
ORACLE: '0xEBE676ee90Fe1112671f19b6B7459bC678B67e8a',
ORACLE: '0x39185f2236A6022b682e8BB93C040d125DA093CF',
},
USDCe: {
UNDERLYING: '0xA7D7079b0FEaD91F3e65f86E8915Cb59c1a4C664',
Expand All @@ -116,7 +116,7 @@ export const ASSETS = {
S_TOKEN: '0x5B14679135dbE8B02015ec3Ca4924a12E4C6C85a',
V_TOKEN: '0x848c080d2700CBE1B894a3374AD5E887E5cCb89c',
INTEREST_RATE_STRATEGY: '0xb1f13B58D6a3B1aEdB211Db58D9e42d28D09DbF4',
ORACLE: '0xF096872672F44d6EBA71458D74fe67F9a77a23B9',
ORACLE: '0xD8277249e871BE9A402fa286C2C5ec16046dC512',
},
AAVEe: {
UNDERLYING: '0x63a72806098Bd3D9520cC43356dD78afe5D386D9',
Expand Down
Loading

0 comments on commit aa24a81

Please sign in to comment.