Skip to content

Commit

Permalink
fix: resolve typo in arbitrum v3 (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra authored Aug 31, 2023
1 parent bde6802 commit c739f31
Show file tree
Hide file tree
Showing 10 changed files with 726 additions and 727 deletions.
4 changes: 2 additions & 2 deletions scripts/configs/pools/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ChainId} from '../../generator/chains';
import {PoolConfig} from '../types';

export const arbitrumGoerliProtoV3: PoolConfig = {
name: 'Arbitrum',
name: 'ArbitrumGoerli',
chainId: ChainId.arbitrum_goerli,
POOL_ADDRESSES_PROVIDER: '0xD64dDe119f11C88850FD596BE11CE398CC5893e6',
additionalAddresses: {
Expand All @@ -16,7 +16,7 @@ export const arbitrumGoerliProtoV3: PoolConfig = {
};

export const arbitrumProtoV3: PoolConfig = {
name: 'ArbitrumGoerli',
name: 'Arbitrum',
chainId: ChainId.arbitrum_one,
POOL_ADDRESSES_PROVIDER: '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb',
additionalAddresses: {
Expand Down
1 change: 0 additions & 1 deletion scripts/generator/protocolV3Generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ async function getAdditionalTokenInfo(
getImplementationStorageSlot(publicClient, reservesData[0].V_TOKEN),
getImplementationStorageSlot(publicClient, reservesData[0].S_TOKEN),
]);

const defaultATokenImplementation = bytes32toAddress(aTokenImplSlot);

const aTokenRevision = Number(aTokenImplRevision);
Expand Down
2 changes: 1 addition & 1 deletion src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import {AaveV3Avalanche} from './AaveV3Avalanche.sol';
import {AaveV3Fuji} from './AaveV3Fuji.sol';
import {AaveV3Base} from './AaveV3Base.sol';
import {AaveV3Metis} from './AaveV3Metis.sol';
import {AaveV3Arbitrum} from './AaveV3Arbitrum.sol';
import {AaveV3ArbitrumGoerli} from './AaveV3ArbitrumGoerli.sol';
import {AaveV3Arbitrum} from './AaveV3Arbitrum.sol';
import {AaveV3OptimismGoerli} from './AaveV3OptimismGoerli.sol';
import {AaveV3Optimism} from './AaveV3Optimism.sol';
import {AaveV3ScrollAlpha} from './AaveV3ScrollAlpha.sol';
Expand Down
444 changes: 306 additions & 138 deletions src/AaveV3Arbitrum.sol

Large diffs are not rendered by default.

444 changes: 138 additions & 306 deletions src/AaveV3ArbitrumGoerli.sol

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ export * as AaveV3Base from './AaveV3Base';
export {AaveV3BaseAssets} from './AaveV3BaseAssets';
export * as AaveV3Metis from './AaveV3Metis';
export {AaveV3MetisAssets} from './AaveV3MetisAssets';
export * as AaveV3Arbitrum from './AaveV3Arbitrum';
export {AaveV3ArbitrumAssets} from './AaveV3ArbitrumAssets';
export * as AaveV3ArbitrumGoerli from './AaveV3ArbitrumGoerli';
export {AaveV3ArbitrumGoerliAssets} from './AaveV3ArbitrumGoerliAssets';
export * as AaveV3Arbitrum from './AaveV3Arbitrum';
export {AaveV3ArbitrumAssets} from './AaveV3ArbitrumAssets';
export * as AaveV3OptimismGoerli from './AaveV3OptimismGoerli';
export {AaveV3OptimismGoerliAssets} from './AaveV3OptimismGoerliAssets';
export * as AaveV3Optimism from './AaveV3Optimism';
Expand Down
103 changes: 62 additions & 41 deletions src/ts/AaveV3Arbitrum.ts
Original file line number Diff line number Diff line change
@@ -1,62 +1,83 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// IPoolAddressesProvider https://goerli.arbiscan.io//address/0xD64dDe119f11C88850FD596BE11CE398CC5893e6
export const POOL_ADDRESSES_PROVIDER = '0xD64dDe119f11C88850FD596BE11CE398CC5893e6';
// IPoolAddressesProvider https://arbiscan.io/address/0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb
export const POOL_ADDRESSES_PROVIDER = '0xa97684ead0e402dC232d5A977953DF7ECBaB3CDb';

// IPool https://goerli.arbiscan.io//address/0x20fa38a4f8Af2E36f1Cc14caad2E603fbA5C535c
export const POOL = '0x20fa38a4f8Af2E36f1Cc14caad2E603fbA5C535c';
// IPool https://arbiscan.io/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD
export const POOL = '0x794a61358D6845594F94dc1DB02A252b5b4814aD';

// IPoolConfigurator https://goerli.arbiscan.io//address/0x4850e2E7c92Fe5cC80E64FD9FA32216E0C30E2E9
export const POOL_CONFIGURATOR = '0x4850e2E7c92Fe5cC80E64FD9FA32216E0C30E2E9';
// IPoolConfigurator https://arbiscan.io/address/0x8145eddDf43f50276641b55bd3AD95944510021E
export const POOL_CONFIGURATOR = '0x8145eddDf43f50276641b55bd3AD95944510021E';

// IAaveOracle https://goerli.arbiscan.io//address/0x4C0EBa43c13ac25885fE0edf3E8Fd4fe32b528dE
export const ORACLE = '0x4C0EBa43c13ac25885fE0edf3E8Fd4fe32b528dE';
// IAaveOracle https://arbiscan.io/address/0xb56c2F0B653B2e0b10C9b928C8580Ac5Df02C7C7
export const ORACLE = '0xb56c2F0B653B2e0b10C9b928C8580Ac5Df02C7C7';

// https://goerli.arbiscan.io//address/0x0000000000000000000000000000000000000000
export const PRICE_ORACLE_SENTINEL = '0x0000000000000000000000000000000000000000';
// https://arbiscan.io/address/0xF876d26041a4Fdc7A787d209DC3D2795dDc74f1e
export const PRICE_ORACLE_SENTINEL = '0xF876d26041a4Fdc7A787d209DC3D2795dDc74f1e';

// IPoolDataProvider https://goerli.arbiscan.io//address/0x7E4025a4e9Ae4e7EcA533cDFF1ba269eDD31146F
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x7E4025a4e9Ae4e7EcA533cDFF1ba269eDD31146F';
// IPoolDataProvider https://arbiscan.io/address/0x6b4E260b765B3cA1514e618C0215A6B7839fF93e
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x6b4E260b765B3cA1514e618C0215A6B7839fF93e';

// IACLManager https://goerli.arbiscan.io//address/0xFBeB1c59e7aBb71A93ddc36359e57a116E602668
export const ACL_MANAGER = '0xFBeB1c59e7aBb71A93ddc36359e57a116E602668';
// IACLManager https://arbiscan.io/address/0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B
export const ACL_MANAGER = '0xa72636CbcAa8F5FF95B2cc47F3CDEe83F3294a0B';

// https://goerli.arbiscan.io//address/0x9973Ce75946D56fA3B0C6aa3647d67D440BDAec8
export const ACL_ADMIN = '0x9973Ce75946D56fA3B0C6aa3647d67D440BDAec8';
// https://arbiscan.io/address/0x7d9103572bE58FfE99dc390E8246f02dcAe6f611
export const ACL_ADMIN = '0x7d9103572bE58FfE99dc390E8246f02dcAe6f611';

// ICollector https://goerli.arbiscan.io//address/0xbE46486f69fc2882e5E4769CFBCe704E3EfecD25
export const COLLECTOR = '0xbE46486f69fc2882e5E4769CFBCe704E3EfecD25';
// ICollector https://arbiscan.io/address/0x053D55f9B5AF8694c503EB288a1B7E552f590710
export const COLLECTOR = '0x053D55f9B5AF8694c503EB288a1B7E552f590710';

// https://goerli.arbiscan.io//address/0xC8283AA1fAD9cc32f13334B914a602037772984D
export const DEFAULT_INCENTIVES_CONTROLLER = '0xC8283AA1fAD9cc32f13334B914a602037772984D';
// https://arbiscan.io/address/0x929EC64c34a17401F460460D4B9390518E5B473e
export const DEFAULT_INCENTIVES_CONTROLLER = '0x929EC64c34a17401F460460D4B9390518E5B473e';

// https://goerli.arbiscan.io//address/0x23eA12332Ef09AF8C30799D299A1085a09149d4D
export const DEFAULT_A_TOKEN_IMPL_REV_1 = '0x23eA12332Ef09AF8C30799D299A1085a09149d4D';
// https://arbiscan.io/address/0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a
export const DEFAULT_A_TOKEN_IMPL_REV_2 = '0x1Be1798b70aEe431c2986f7ff48d9D1fa350786a';

// https://goerli.arbiscan.io//address/0x4579e891f735E4d3C0B10aEE041E4672f04636cb
export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0x4579e891f735E4d3C0B10aEE041E4672f04636cb';
// https://arbiscan.io/address/0x5E76E98E0963EcDC6A065d1435F84065b7523f39
export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_2 = '0x5E76E98E0963EcDC6A065d1435F84065b7523f39';

// https://goerli.arbiscan.io//address/0x64be7D8Aed08c7adAEeBBCcca7eC41d5E49f9e74
export const DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 = '0x64be7D8Aed08c7adAEeBBCcca7eC41d5E49f9e74';
// https://arbiscan.io/address/0x0c2C95b24529664fE55D4437D7A31175CFE6c4f7
export const DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_2 = '0x0c2C95b24529664fE55D4437D7A31175CFE6c4f7';

// https://goerli.arbiscan.io//address/0xEF6a0951fE054F78Adc90ee9181297e40637C061
export const EMISSION_MANAGER = '0xEF6a0951fE054F78Adc90ee9181297e40637C061';
// https://arbiscan.io/address/0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73
export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73';

// https://goerli.arbiscan.io//address/0xc1b3cc37cf2f922abDFE7F01A17bc932F4078665
export const FAUCET = '0xc1b3cc37cf2f922abDFE7F01A17bc932F4078665';
// https://arbiscan.io/address/0xADf86b537eF08591c2777E144322E8b0Ca7E82a7
export const CAPS_PLUS_RISK_STEWARD = '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7';

// https://goerli.arbiscan.io//address/0x46605375317C3E8bd19E0ED70987354Cb6D16720
export const L2_ENCODER = '0x46605375317C3E8bd19E0ED70987354Cb6D16720';
// https://arbiscan.io/address/0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE
export const DEBT_SWAP_ADAPTER = '0xCf85FF1c37c594a10195F7A9Ab85CBb0a03f69dE';

// https://goerli.arbiscan.io//address/0x159E642e34ad712242F6057477277b093eb43950
export const UI_INCENTIVE_DATA_PROVIDER = '0x159E642e34ad712242F6057477277b093eb43950';
// https://arbiscan.io/address/0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC
export const L2_ENCODER = '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC';

// https://goerli.arbiscan.io//address/0x1d5a0287E4ac7Ff805D8399D0177c75C8C95d4dC
export const UI_POOL_DATA_PROVIDER = '0x1d5a0287E4ac7Ff805D8399D0177c75C8C95d4dC';
// https://arbiscan.io/address/0x0EfdfC1A940DE4E7E6acC9Bb801481f81B17fd20
export const LISTING_ENGINE = '0x0EfdfC1A940DE4E7E6acC9Bb801481f81B17fd20';

// https://goerli.arbiscan.io//address/0x8c7914af3926CfA5131Ce294c48E03C6d3aDc916
export const WALLET_BALANCE_PROVIDER = '0x8c7914af3926CfA5131Ce294c48E03C6d3aDc916';
// https://arbiscan.io/address/0x770ef9f4fe897e59daCc474EF11238303F9552b6
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6';

// https://goerli.arbiscan.io//address/0xcD1065F2c3A0e0a94d543Ce41720BFF515f753B7
export const WETH_GATEWAY = '0xcD1065F2c3A0e0a94d543Ce41720BFF515f753B7';
// https://arbiscan.io/address/0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896
export const RATES_FACTORY = '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896';

export const CHAIN_ID = 421613;
// https://arbiscan.io/address/0x28201C152DC5B69A86FA54FCfd21bcA4C0eff3BA
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x28201C152DC5B69A86FA54FCfd21bcA4C0eff3BA';

// https://arbiscan.io/address/0xD9419920a9768d6EdaBbe5b93cB4B5B9F3019823
export const STATIC_A_TOKEN_FACTORY = '0xD9419920a9768d6EdaBbe5b93cB4B5B9F3019823';

// https://arbiscan.io/address/0xF3C3F14dd7BDb7E03e6EBc3bc5Ffc6D66De12251
export const SWAP_COLLATERAL_ADAPTER = '0xF3C3F14dd7BDb7E03e6EBc3bc5Ffc6D66De12251';

// https://arbiscan.io/address/0xDA67AF3403555Ce0AE3ffC22fDb7354458277358
export const UI_INCENTIVE_DATA_PROVIDER = '0xDA67AF3403555Ce0AE3ffC22fDb7354458277358';

// https://arbiscan.io/address/0x145dE30c929a065582da84Cf96F88460dB9745A7
export const UI_POOL_DATA_PROVIDER = '0x145dE30c929a065582da84Cf96F88460dB9745A7';

// https://arbiscan.io/address/0xBc790382B3686abffE4be14A030A96aC6154023a
export const WALLET_BALANCE_PROVIDER = '0xBc790382B3686abffE4be14A030A96aC6154023a';

// https://arbiscan.io/address/0xB5Ee21786D28c5Ba61661550879475976B707099
export const WETH_GATEWAY = '0xB5Ee21786D28c5Ba61661550879475976B707099';

export const CHAIN_ID = 42161;
Loading

0 comments on commit c739f31

Please sign in to comment.