Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rename to config engine #266

Merged
merged 5 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 3 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,60 +21,18 @@ import {AaveV2Ethereum} from "aave-address-book/AaveV2Ethereum.sol";
import {AaveV3Avalanche} from "aave-address-book/AaveV3Avalanche.sol";
```

Included addresses:

```sh
// v2 libraries
ILendingPoolAddressesProvider POOL_ADDRESSES_PROVIDER;
ILendingPool POOL;
ILendingPoolConfigurator POOL_CONFIGURATOR;
IAaveOracle ORACLE;
IAaveProtocolDataProvider AAVE_PROTOCOL_DATA_PROVIDER;
address POOL_ADMIN;
address EMERGENCY_ADMIN;
ICollector COLLECTOR;

// v3 libraries
IPoolAddressesProvider POOL_ADDRESSES_PROVIDER;
IPool POOL;
IPoolConfigurator POOL_CONFIGURATOR;
IAaveOracle ORACLE;
IAaveProtocolDataProvider AAVE_PROTOCOL_DATA_PROVIDER;
IACLManager ACL_MANAGER;
address ACL_ADMIN;
ICollector COLLECTOR;
address DEFAULT_INCENTIVES_CONTROLLER;
address DEFAULT_A_TOKEN_IMPL_REV_1;
address DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1;
address DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1;
```

**Import addresses and interfaces to interact with Governance:**

```sh
import {AaveGovernanceV2} from "aave-address-book/AaveGovernanceV2.sol";
```

Included addresses:
import {IGovernanceCore} from "aave-address-book/GovernanceV3.sol";

```sh
IAaveGovernanceV2 GOV;
address SHORT_EXECUTOR;
address LONG_EXECUTOR;
address ARC_TIMELOCK;
```

**Import miscellaneous addresses and interfaces relevant to the aave protocol:**

```sh
import {AaveMisc} from "aave-address-book/AaveMisc.sol";
```

Included addresses:
**Import miscellaneous network addresses and interfaces relevant to the aave protocol:**

```sh
IAaveEcosystemReserveController AAVE_ECOSYSTEM_RESERVE_CONTROLLER;
address ECOSYSTEM_RESERVE;
import {Misc<Network>} from "aave-address-book/Aave<Network>.sol";
```

### Production Recommendations
Expand Down
7 changes: 6 additions & 1 deletion scripts/configs/networks/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ import {NetworkAddresses} from '../types';
export const arbitrumAddresses: NetworkAddresses = {
name: 'Arbitrum',
chainId: ChainId.arbitrum_one,
addresses: {PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'},
addresses: {
PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60',
TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
7 changes: 6 additions & 1 deletion scripts/configs/networks/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ import {NetworkAddresses} from '../types';
export const avalancheAddresses: NetworkAddresses = {
name: 'Avalanche',
chainId: ChainId.avalanche,
addresses: {PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'},
addresses: {
PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60',
TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
7 changes: 6 additions & 1 deletion scripts/configs/networks/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ import {NetworkAddresses} from '../types';
export const baseAddresses: NetworkAddresses = {
name: 'Base',
chainId: ChainId.base,
addresses: {PARASWAP_FEE_CLAIMER: '0xAe940e61E9863178b71500c9B5faE2a04Da361a1'},
addresses: {
PARASWAP_FEE_CLAIMER: '0xAe940e61E9863178b71500c9B5faE2a04Da361a1',
TRANSPARENT_PROXY_FACTORY: '0x05225Cd708bCa9253789C1374e4337a019e99D56',
PROXY_ADMIN: '0xc85b1E333aecc99340b2320493Fe2d22b8734795',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
12 changes: 12 additions & 0 deletions scripts/configs/networks/bnb.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {ChainId} from '../../generator/chains';
import {NetworkAddresses} from '../types';

export const bnbAddresses: NetworkAddresses = {
name: 'BNB',
chainId: ChainId.bnb,
addresses: {
TRANSPARENT_PROXY_FACTORY: '0x47aAdaAE1F05C978E6aBb7568d11B7F6e0FC4d6A',
PROXY_ADMIN: '0x39EBFfc7679c62Dfcc4A3E2c09Bcb0be255Ae63c',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
26 changes: 23 additions & 3 deletions scripts/configs/networks/ethereum.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
import {Hex} from 'viem';
import {ChainId} from '../../generator/chains';
import {NetworkAddresses} from '../types';
import {AddressInfo, NetworkAddresses} from '../types';

export const ethereumAddresses: NetworkAddresses = {
export const ethereumAddresses: NetworkAddresses<{
ECOSYSTEM_RESERVE: Hex;
AAVE_ECOSYSTEM_RESERVE_CONTROLLER: AddressInfo;
PROXY_ADMIN_LONG: Hex;
AAVE_SWAPPER: Hex;
AAVE_POL_ETH_BRIDGE: Hex;
}> = {
name: 'Ethereum',
chainId: ChainId.mainnet,
addresses: {PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'},
addresses: {
AAVE_ECOSYSTEM_RESERVE_CONTROLLER: {
value: '0x3d569673dAa0575c936c7c67c4E6AedA69CC630C',
type: 'IAaveEcosystemReserveController',
},
ECOSYSTEM_RESERVE: '0x25F2226B597E8F9514B3F68F00f494cF4f286491',
PROXY_ADMIN_LONG: '0x86C3FfeE349A7cFf7cA88C449717B1b133bfb517',
AAVE_SWAPPER: '0x3ea64b1C0194524b48F9118462C8E9cd61a243c7',
AAVE_POL_ETH_BRIDGE: '0xc928002904Ec475663A83063D492EA2aE09EbDA1',
PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60',
TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476',
CREATE_3_FACTORY: '0xcc3C54B95f3f1867A43009B80ed4DD930E3cE2F7',
},
};
12 changes: 12 additions & 0 deletions scripts/configs/networks/metis.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {ChainId} from '../../generator/chains';
import {NetworkAddresses} from '../types';

export const metisAddresses: NetworkAddresses = {
name: 'Metis',
chainId: ChainId.metis,
addresses: {
TRANSPARENT_PROXY_FACTORY: '0x1dad86dC5990BCE5bFe3A150A4E0ece990d6EBcB',
PROXY_ADMIN: '0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97',
CREATE_3_FACTORY: '0x2e649f6b54B07E210b31c9cC2eB8a0d5997c3D4A',
},
};
7 changes: 6 additions & 1 deletion scripts/configs/networks/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ import {NetworkAddresses} from '../types';
export const optimismAddresses: NetworkAddresses = {
name: 'Optimism',
chainId: ChainId.optimism,
addresses: {PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'},
addresses: {
PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60',
TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
11 changes: 9 additions & 2 deletions scripts/configs/networks/polygon.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import {Hex} from 'viem';
import {ChainId} from '../../generator/chains';
import {NetworkAddresses} from '../types';

export const polygonAddresses: NetworkAddresses = {
export const polygonAddresses: NetworkAddresses<{AAVE_POL_ETH_BRIDGE: Hex}> = {
name: 'Polygon',
chainId: ChainId.polygon,
addresses: {PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60'},
addresses: {
AAVE_POL_ETH_BRIDGE: '0xc928002904Ec475663A83063D492EA2aE09EbDA1',
PARASWAP_FEE_CLAIMER: '0x9abf798f5314BFd793A9E57A654BEd35af4A1D60',
TRANSPARENT_PROXY_FACTORY: '0xB4e496f70602fE2AC6Ae511D028BA4D194773B29',
PROXY_ADMIN: '0xD3cF979e676265e4f6379749DECe4708B9A22476',
CREATE_3_FACTORY: '0x3b56998Ec06477704622ca8e2eA1b4db134cec32',
},
};
2 changes: 1 addition & 1 deletion scripts/configs/pools/arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const arbitrumProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0xADf86b537eF08591c2777E144322E8b0Ca7E82a7',
DEBT_SWAP_ADAPTER: '0x9E8e9D6b0D24216F59043db68BDda1620892f549',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
LISTING_ENGINE: '0x0EfdfC1A940DE4E7E6acC9Bb801481f81B17fd20',
CONFIG_ENGINE: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0x28201C152DC5B69A86FA54FCfd21bcA4C0eff3BA',
Expand Down
4 changes: 2 additions & 2 deletions scripts/configs/pools/avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const avalancheProtoV2: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xb6A86025F0FE1862B372cb0ca18CE3EDe02A318f',
additionalAddresses: {
DEBT_SWAP_ADAPTER: '0xc1D40f4cF36e4aE4108Ffa08818cD16c2d9aEF73',
LISTING_ENGINE: '0x7902F3c60f05b5A6b7e4Ce0Cac11Cb17bC8e607c',
CONFIG_ENGINE: '0x7902F3c60f05b5A6b7e4Ce0Cac11Cb17bC8e607c',
MIGRATION_HELPER: '0xf50a080aC535e531EC33cC05b227E910De2fb1fA',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x4235E22d9C3f28DCDA82b58276cb6370B01265C2',
PROOF_OF_RESERVE: '0x7fc3FCb14eF04A48Bb0c12f0c39CD74C249c37d8',
Expand All @@ -56,7 +56,7 @@ export const avalancheProtoV3: PoolConfig = {
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xD2C92b5A793e196aB11dBefBe3Af6BddeD6c3DD5',
DEBT_SWAP_ADAPTER: '0x8A9b2c132EA7676EE267F5b97b622083d6E3a2d4',
LISTING_ENGINE: '0x49581e5575F49263f556b91daf8fb41D7854D94B',
CONFIG_ENGINE: '0x0587B66Bc824368cFA5849bc56216a59260Df2c5',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
PROOF_OF_RESERVE: '0xab22988D93d5F942fC6B6c6Ea285744809D1d9Cc',
PROOF_OF_RESERVE_AGGREGATOR: '0x80f2c02224a2E548FC67c0bF705eBFA825dd5439',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const baseProtoV3: PoolConfig = {
WITHDRAW_SWAP_ADAPTER: '0x5598BbFA2f4fE8151f45bBA0a3edE1b54B51a0a9',
SWAP_COLLATERAL_ADAPTER: '0x2E549104c516b8657A7D888494DfbAbD7C70b464',
REPAY_WITH_COLLATERAL_ADAPTER: '0x78F8Bd884C3D738B74B420540659c82f392820e0',
LISTING_ENGINE: '0xc7751400F809cdB0C167F87985083C558a0610F7',
CONFIG_ENGINE: '0xc7751400F809cdB0C167F87985083C558a0610F7',
RATES_FACTORY: '0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832',
L2_ENCODER: '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2',
Expand Down
6 changes: 3 additions & 3 deletions scripts/configs/pools/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const mainnetProtoV2Pool: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5',
additionalAddresses: {
DEBT_SWAP_ADAPTER: '0x6A6FA664D4Fa49a6a780a1D6143f079f8dd7C33d',
LISTING_ENGINE: '0x9eCed0293e7B73CFf4a2b4F9C82aAc8346158bd9',
CONFIG_ENGINE: '0x9eCed0293e7B73CFf4a2b4F9C82aAc8346158bd9',
MIGRATION_HELPER: '0xb748952c7bc638f31775245964707bcc5ddfabfc',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x52D306e36E3B6B02c153d0266ff0f85d18BCD413',
RATES_FACTORY: '0xbD37610BBB1ddc2a22797F7e3f531B59902b7bA7',
Expand All @@ -65,7 +65,7 @@ export const mainnetAmmV2Pool: PoolConfig = {
chainId: ChainId.mainnet,
POOL_ADDRESSES_PROVIDER: '0xacc030ef66f9dfeae9cbb0cd1b25654b82cfa8d5',
additionalAddresses: {
LISTING_ENGINE: '0xcfC26009618ec2Ca8787180116a37Caa354a465C',
CONFIG_ENGINE: '0xcfC26009618ec2Ca8787180116a37Caa354a465C',
MIGRATION_HELPER: '0x3cd1dFB81C50A5300C60a181ED145a7286d81e0a',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x52D306e36E3B6B02c153d0266ff0f85d18BCD413',
RATES_FACTORY: '0x6e4D068105052C3877116DCF86f5FF36B7eCa2B8',
Expand Down Expand Up @@ -94,7 +94,7 @@ export const mainnetProtoV3Pool: PoolConfig = {
DEBT_SWAP_ADAPTER: '0x8761e0370f94f68Db8EaA731f4fC581f6AD0Bd68',
DELEGATION_AWARE_A_TOKEN_IMPL_REV_1: '0x21714092D90c7265F52fdfDae068EC11a23C6248',
GHO_TOKEN: '0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f',
LISTING_ENGINE: '0xE202F2fc4b6A37Ba53cfD15bE42a762A645FCA07',
CONFIG_ENGINE: '0xA3e44d830440dF5098520F62Ebec285B1198c51E',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xbaA999AC55EAce41CcAE355c77809e68Bb345170',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0x02e7B8511831B1b02d9018215a0f8f500Ea5c6B3',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/metis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const metisProtoV3: PoolConfig = {
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0x5f4d15d761528c57a5C30c43c1DAb26Fc5452731',
L2_ENCODER: '0x9f3A1B399A9074eBA63Dc4fc274bE2A2b2d80cB9',
LISTING_ENGINE: '0x857720ad258db0ACb180e76A5526c72CFCe6F8A7',
CONFIG_ENGINE: '0x8be473dCfA93132658821E67CbEB684ec8Ea2E74',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x9E7B73ffD9D2026F3ff4212c29E209E09C8A91F5',
RATES_FACTORY: '0x87Aaba7cf8e1F319d0E3402d68017171201dEcd5',
UI_INCENTIVE_DATA_PROVIDER: '0x3e7BC5EcE0f22DbB16c3e3EeA288a10A57d68927',
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/pools/optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const optimismProtoV3: PoolConfig = {
CAPS_PLUS_RISK_STEWARD: '0x5E76E98E0963EcDC6A065d1435F84065b7523f39',
DEBT_SWAP_ADAPTER: '0xcFaE0D8c5707FCc6478D6a65fFA31efADeF8b8EC',
L2_ENCODER: '0x9abADECD08572e0eA5aF4d47A9C7984a5AA503dC',
LISTING_ENGINE: '0x7A9A9c14B35E58ffa1cC84aB421acE0FdcD289E3',
CONFIG_ENGINE: '0x893411580e590D62dDBca8a703d61Cc4A8c7b2b9',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0xa12734e64417f61f8442E7D5132EdBFdbDDeF0fa',
Expand Down
4 changes: 2 additions & 2 deletions scripts/configs/pools/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const polygonProtoV2: PoolConfig = {
POOL_ADDRESSES_PROVIDER: '0xd05e3E715d945B59290df0ae8eF85c1BdB684744',
additionalAddresses: {
DEBT_SWAP_ADAPTER: '0x1E623A311948b531B07B6EA7CC34a9A2bCADADd0',
LISTING_ENGINE: '0x9eCed0293e7B73CFf4a2b4F9C82aAc8346158bd9',
CONFIG_ENGINE: '0x9eCed0293e7B73CFf4a2b4F9C82aAc8346158bd9',
MIGRATION_HELPER: '0x3db487975aB1728DB5787b798866c2021B24ec52',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x3ac4e9aa29940770aeC38fe853a4bbabb2dA9C19',
RATES_FACTORY: '0xD05003a24A17d9117B11eC04cF9743b050779c08',
Expand All @@ -54,7 +54,7 @@ export const polygonProtoV3: PoolConfig = {
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
DEBT_SWAP_ADAPTER: '0xb58Fd91558fa213D97Ac94C97F831c7289278084',
LISTING_ENGINE: '0xE202F2fc4b6A37Ba53cfD15bE42a762A645FCA07',
CONFIG_ENGINE: '0xfFD6F13c9574bedb3f4E131e9C4320186AF83c1D',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0xE3090207A2de94A856EA10a7e1Bd36dD6145712B',
Expand Down
9 changes: 6 additions & 3 deletions scripts/configs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface PoolConfig {
DEBT_SWAP_ADAPTER?: Hex;
WITHDRAW_SWAP_ADAPTER?: Hex;
POOL_ADDRESSES_PROVIDER_REGISTRY?: Hex;
LISTING_ENGINE?: Hex;
CONFIG_ENGINE?: Hex;
MIGRATION_HELPER?: Hex;
UI_POOL_DATA_PROVIDER?: Hex;
UI_INCENTIVE_DATA_PROVIDER?: Hex;
Expand Down Expand Up @@ -86,11 +86,14 @@ export type ReserveData = {
/**
* @dev config for addresses that belong more to a network then to a specific pool
*/
export interface NetworkAddresses {
export interface NetworkAddresses<T extends Record<string, AddressInfo> = {}> {
name: string;
chainId: ChainId;
addresses: {
// https://github.com/bgd-labs/aave-paraswap-claimer
PARASWAP_FEE_CLAIMER?: Hex;
};
TRANSPARENT_PROXY_FACTORY?: Hex;
PROXY_ADMIN?: Hex;
CREATE_3_FACTORY?: Hex;
} & T;
}
6 changes: 2 additions & 4 deletions scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {scrollAlphaProtoV3, scrollSepoliaProtoV3} from './configs/pools/scroll';
import {generateGovernanceLibrary} from './generator/governanceV3Generator';
import {generateProtocolV2Library} from './generator/protocolV2Generator';
import {generateProtocolV3Library} from './generator/protocolV3Generator';
import {generateMisc} from './generator/miscGenerator';
import {generateGovV2} from './generator/governanceV2Generator';
import {prefixWithGeneratedWarning, prefixWithPragma} from './generator/utils';
import {generateSafetyModule} from './generator/safetyModuleGenerator';
Expand All @@ -51,6 +50,7 @@ import {ethereumAddresses} from './configs/networks/ethereum';
import {polygonAddresses} from './configs/networks/polygon';
import {fantomAddresses} from './configs/networks/fantom';
import {optimismAddresses} from './configs/networks/optimism';
import {metisAddresses} from './configs/networks/metis';

async function main() {
// cleanup ts artifacts
Expand Down Expand Up @@ -122,10 +122,9 @@ async function main() {
fantomAddresses,
optimismAddresses,
polygonAddresses,
metisAddresses,
].map((addresses) => generateNetworkAddresses(addresses));

const miscImports = generateMisc();

const govImports = generateGovV2();

const smImports = generateSafetyModule();
Expand All @@ -137,7 +136,6 @@ async function main() {
v2LibraryNames,
v3LibraryNames,
networkAddresses,
miscImports,
govImports,
smImports,
abis,
Expand Down
1 change: 0 additions & 1 deletion scripts/generator/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export const RPC_PROVIDERS = {
[ChainId.mainnet]: createPublicClient({
chain: mainnet,
transport: fallback([
http('https://eth.llamarpc.com'),
http('https://ethereum.publicnode.com'),
http('https://cloudflare-eth.com'),
]),
Expand Down
Loading