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: add zksync instance contracts #580

Merged
merged 3 commits into from
Sep 10, 2024
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
28 changes: 28 additions & 0 deletions safe.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,34 @@ address,name,chainId
0xBc790382B3686abffE4be14A030A96aC6154023a,AaveV3Fantom WALLET_BALANCE_PROVIDER,250
0x1DcDA4de2Bf6c7AD9a34788D22aE6b7d55016e1f,AaveV3Fantom WETH_GATEWAY,250
0x9abf798f5314BFd793A9E57A654BEd35af4A1D60,MiscFantom PARASWAP_FEE_CLAIMER,250
0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D,AaveV3ZkSync AAVE_PROTOCOL_DATA_PROVIDER,324
0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020,AaveV3ZkSync ACL_ADMIN,324
0xc6150b63c2F02528d4A969a248710A4658ed7928,AaveV3ZkSync ACL_MANAGER,324
0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b,AaveV3ZkSync COLLECTOR,324
0x93E5E329FaCf7d85118b49f0eb250E9c767CA177,AaveV3ZkSync CONFIG_ENGINE,324
0x34be365Fd01ac224F21490aaC6dFd65D25434bbB,AaveV3ZkSync DEFAULT_A_TOKEN_IMPL_REV_1,324
0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e,AaveV3ZkSync DEFAULT_INCENTIVES_CONTROLLER,324
0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19,AaveV3ZkSync DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1,324
0x52E97425D1Fa6885fAaC9260B711fA5047A88d06,AaveV3ZkSync DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1,324
0x92AA83Ce0CC590E6B0627a9E22e84Ef43F389D1f,AaveV3ZkSync EMISSION_MANAGER,324
0x8B9AeE8BdE378e4f2ebdE95432b7547EF4FcD569,AaveV3ZkSync EXTERNAL_LIBRARIES FLASHLOAN_LOGIC,324
0xA68d2F399cFe47d8fFb2C117b500B3Ff1F2D1BCb,AaveV3ZkSync EXTERNAL_LIBRARIES BORROW_LOGIC,324
0xe2e0bF0244eD98125652672787f9d1f86137592c,AaveV3ZkSync EXTERNAL_LIBRARIES BRIDGE_LOGIC,324
0x3c98247955f4Ba627C79A4d1FA0418307c4AD95f,AaveV3ZkSync EXTERNAL_LIBRARIES E_MODE_LOGIC,324
0xBcaA51D1Dc6C1B2b7943eDedA9D0Ad9BcAE3161D,AaveV3ZkSync EXTERNAL_LIBRARIES LIQUIDATION_LOGIC,324
0x32d0D756aF42054c05Bce40B75e7Cab564bB6d37,AaveV3ZkSync EXTERNAL_LIBRARIES POOL_LOGIC,324
0x796aCC91016B333230b77aBAa36B8BC351De47F9,AaveV3ZkSync EXTERNAL_LIBRARIES SUPPLY_LOGIC,324
0xC7F58Fca663a8d377B6D0c9703C697f56dC40088,AaveV3ZkSync ORACLE,324
0x78e30497a3c7527d953c6B1E3541b021A98Ac43c,AaveV3ZkSync POOL,324
0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7,AaveV3ZkSync POOL_ADDRESSES_PROVIDER,324
0x0753E3637ddC6efc40759D9c347251046644F25F,AaveV3ZkSync POOL_ADDRESSES_PROVIDER_REGISTRY,324
0x0207d31b4377C74bEC37356aaD83E3dCc979F40E,AaveV3ZkSync POOL_CONFIGURATOR,324
0x908bCea460F5011046782A4280569c4eAcE1082E,AaveV3ZkSync POOL_CONFIGURATOR_IMPL,324
0xEe8EBB0704F5954Ab281166f35309087E1b81903,AaveV3ZkSync POOL_IMPL,324
0x82B3B951Cf43B42324B915Ab651a83D910f29D67,AaveV3ZkSync UI_INCENTIVE_DATA_PROVIDER,324
0x43312730DB351Dc099924462A42B442c0993F6B5,AaveV3ZkSync UI_POOL_DATA_PROVIDER,324
0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0,AaveV3ZkSync WALLET_BALANCE_PROVIDER,324
0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB,AaveV3ZkSync WETH_GATEWAY,324
0x800813f4714BC7A0a95310e3fB9e4f18872CA92C,GovernanceV3ZkSync CROSS_CHAIN_CONTROLLER,324
0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020,GovernanceV3ZkSync EXECUTOR_LVL_1,324
0x4257bf0746D783f0D962913d7d8AFA408B62547E,GovernanceV3ZkSync GOVERNANCE_GUARDIAN,324
Expand Down
25 changes: 13 additions & 12 deletions scripts/configs/pools/zksync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ import {PoolConfig} from '../types';
export const zkSyncProtoV3: PoolConfig = {
name: 'ZkSync',
chainId: ChainId.zkSync,
POOL_ADDRESSES_PROVIDER: '0xeFD2d8E445391BCD1543ce5Af3ed004DF200BeaD',
POOL_ADDRESSES_PROVIDER: '0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7',
additionalAddresses: {
CONFIG_ENGINE: '0x4b6016ce7a7e6bF48c20225322ae0458cf2d64D5',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xd18cEba655fA0A3C3f00Bb6C990de602AbbE2dB3',
UI_INCENTIVE_DATA_PROVIDER: '0xB88C5362F1e2fF122B3Cf1f4a4fb5F4b2167a271',
UI_POOL_DATA_PROVIDER: '0xff9D92509A5C60636718BE40Be5CA0b4fE3fACcD',
WALLET_BALANCE_PROVIDER: '0x3BE5B5E817440f0CDcA46f89518BE4a67875Acb3',
WETH_GATEWAY: '0x9F07eEBdf3675f60dCeC65a092F1821Fb99726F3',
STATIC_A_TOKEN_FACTORY: '0x9416fA2036662565b0Aa26D18b4948F73A192C96',
CONFIG_ENGINE: '0x93E5E329FaCf7d85118b49f0eb250E9c767CA177',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x0753E3637ddC6efc40759D9c347251046644F25F',
UI_INCENTIVE_DATA_PROVIDER: '0x82B3B951Cf43B42324B915Ab651a83D910f29D67',
UI_POOL_DATA_PROVIDER: '0x43312730DB351Dc099924462A42B442c0993F6B5',
WALLET_BALANCE_PROVIDER: '0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0',
WETH_GATEWAY: '0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB',
STATIC_A_TOKEN_FACTORY: '0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9',
RISK_STEWARD: '0xDeDee21f34eff4e2902B95A106855834a608e19a',
},
initial: {
COLLECTOR: '0x7A0f281b41Cc9da52D2CAB2D23D3343277EbAf96',
DEFAULT_A_TOKEN_IMPL: '0x58C1F5d7Ea1F419588CF8eC9D22cB982C7C630D4',
DEFAULT_VARIABLE_DEBT_TOKEN_IMPL: '0x7c310e97Bdba5E7603D772df324B8dd33771c094',
DEFAULT_STABLE_DEBT_TOKEN_IMPL: '0xc25037446067240880b7B6d81fae544309a5fE02',
COLLECTOR: '0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b',
DEFAULT_A_TOKEN_IMPL: '0x34be365Fd01ac224F21490aaC6dFd65D25434bbB',
DEFAULT_VARIABLE_DEBT_TOKEN_IMPL: '0x52E97425D1Fa6885fAaC9260B711fA5047A88d06',
DEFAULT_STABLE_DEBT_TOKEN_IMPL: '0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19',
},
};
2 changes: 1 addition & 1 deletion scripts/generateAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async function main() {
optimismSepoliaProtoV3,
scrollProtoV3,
scrollSepoliaProtoV3,
// zkSyncProtoV3,
zkSyncProtoV3,
fantomTestnetProtoV3,
fantomProtoV3,
harmonyProtoV3,
Expand Down
6 changes: 5 additions & 1 deletion scripts/generator/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ import {getStorageAt} from 'viem/actions';

function getExplorerLink(chainId: number, address: Hex) {
const client = CHAIN_ID_CLIENT_MAP[chainId];
return `${client.chain?.blockExplorers?.default.url}/address/${getAddress(address)}`;
let url = client.chain?.blockExplorers?.default.url;
if (url && url.endsWith('/')) {
url = url.slice(0, -1); // sanitize explorer url
}
return `${url}/address/${getAddress(address)}`;
}

export function prefixWithPragma(code: string) {
Expand Down
1 change: 1 addition & 0 deletions src/AaveAddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {AaveV3Optimism} from './AaveV3Optimism.sol';
import {AaveV3OptimismSepolia} from './AaveV3OptimismSepolia.sol';
import {AaveV3Scroll} from './AaveV3Scroll.sol';
import {AaveV3ScrollSepolia} from './AaveV3ScrollSepolia.sol';
import {AaveV3ZkSync} from './AaveV3ZkSync.sol';
import {AaveV3FantomTestnet} from './AaveV3FantomTestnet.sol';
import {AaveV3Fantom} from './AaveV3Fantom.sol';
import {AaveV3Harmony} from './AaveV3Harmony.sol';
Expand Down
114 changes: 114 additions & 0 deletions src/AaveV3ZkSync.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// 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 AaveV3ZkSync {
// https://era.zksync.network/address/0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7
IPoolAddressesProvider internal constant POOL_ADDRESSES_PROVIDER =
IPoolAddressesProvider(0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7);

// https://era.zksync.network/address/0x78e30497a3c7527d953c6B1E3541b021A98Ac43c
IPool internal constant POOL = IPool(0x78e30497a3c7527d953c6B1E3541b021A98Ac43c);

// https://era.zksync.network/address/0xEe8EBB0704F5954Ab281166f35309087E1b81903
address internal constant POOL_IMPL = 0xEe8EBB0704F5954Ab281166f35309087E1b81903;

// https://era.zksync.network/address/0x0207d31b4377C74bEC37356aaD83E3dCc979F40E
IPoolConfigurator internal constant POOL_CONFIGURATOR =
IPoolConfigurator(0x0207d31b4377C74bEC37356aaD83E3dCc979F40E);

// https://era.zksync.network/address/0x908bCea460F5011046782A4280569c4eAcE1082E
address internal constant POOL_CONFIGURATOR_IMPL = 0x908bCea460F5011046782A4280569c4eAcE1082E;

// https://era.zksync.network/address/0xC7F58Fca663a8d377B6D0c9703C697f56dC40088
IAaveOracle internal constant ORACLE = IAaveOracle(0xC7F58Fca663a8d377B6D0c9703C697f56dC40088);

// https://era.zksync.network/address/0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D
IPoolDataProvider internal constant AAVE_PROTOCOL_DATA_PROVIDER =
IPoolDataProvider(0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D);

// https://era.zksync.network/address/0xc6150b63c2F02528d4A969a248710A4658ed7928
IACLManager internal constant ACL_MANAGER =
IACLManager(0xc6150b63c2F02528d4A969a248710A4658ed7928);

// https://era.zksync.network/address/0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020
address internal constant ACL_ADMIN = 0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020;

// https://era.zksync.network/address/0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b
ICollector internal constant COLLECTOR = ICollector(0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b);

// https://era.zksync.network/address/0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e
address internal constant DEFAULT_INCENTIVES_CONTROLLER =
0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e;

// https://era.zksync.network/address/0x34be365Fd01ac224F21490aaC6dFd65D25434bbB
address internal constant DEFAULT_A_TOKEN_IMPL_REV_1 = 0x34be365Fd01ac224F21490aaC6dFd65D25434bbB;

// https://era.zksync.network/address/0x52E97425D1Fa6885fAaC9260B711fA5047A88d06
address internal constant DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 =
0x52E97425D1Fa6885fAaC9260B711fA5047A88d06;

// https://era.zksync.network/address/0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19
address internal constant DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 =
0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19;

// https://era.zksync.network/address/0x92AA83Ce0CC590E6B0627a9E22e84Ef43F389D1f
address internal constant EMISSION_MANAGER = 0x92AA83Ce0CC590E6B0627a9E22e84Ef43F389D1f;

// https://era.zksync.network/address/0x93E5E329FaCf7d85118b49f0eb250E9c767CA177
address internal constant CONFIG_ENGINE = 0x93E5E329FaCf7d85118b49f0eb250E9c767CA177;

// https://era.zksync.network/address/0x0753E3637ddC6efc40759D9c347251046644F25F
address internal constant POOL_ADDRESSES_PROVIDER_REGISTRY =
0x0753E3637ddC6efc40759D9c347251046644F25F;

// https://era.zksync.network/address/0x82B3B951Cf43B42324B915Ab651a83D910f29D67
address internal constant UI_INCENTIVE_DATA_PROVIDER = 0x82B3B951Cf43B42324B915Ab651a83D910f29D67;

// https://era.zksync.network/address/0x43312730DB351Dc099924462A42B442c0993F6B5
address internal constant UI_POOL_DATA_PROVIDER = 0x43312730DB351Dc099924462A42B442c0993F6B5;

// https://era.zksync.network/address/0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0
address internal constant WALLET_BALANCE_PROVIDER = 0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0;

// https://era.zksync.network/address/0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB
address internal constant WETH_GATEWAY = 0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB;

// https://era.zksync.network/address/0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9
address internal constant STATIC_A_TOKEN_FACTORY = 0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9;

// https://era.zksync.network/address/0xDeDee21f34eff4e2902B95A106855834a608e19a
address internal constant RISK_STEWARD = 0xDeDee21f34eff4e2902B95A106855834a608e19a;
}

library AaveV3ZkSyncAssets {}

library AaveV3ZkSyncEModes {
uint8 internal constant NONE = 0;
}

library AaveV3ZkSyncExternalLibraries {
// https://era.zksync.network/address/0x8B9AeE8BdE378e4f2ebdE95432b7547EF4FcD569
address internal constant FLASHLOAN_LOGIC = 0x8B9AeE8BdE378e4f2ebdE95432b7547EF4FcD569;

// https://era.zksync.network/address/0xA68d2F399cFe47d8fFb2C117b500B3Ff1F2D1BCb
address internal constant BORROW_LOGIC = 0xA68d2F399cFe47d8fFb2C117b500B3Ff1F2D1BCb;

// https://era.zksync.network/address/0xe2e0bF0244eD98125652672787f9d1f86137592c
address internal constant BRIDGE_LOGIC = 0xe2e0bF0244eD98125652672787f9d1f86137592c;

// https://era.zksync.network/address/0x3c98247955f4Ba627C79A4d1FA0418307c4AD95f
address internal constant E_MODE_LOGIC = 0x3c98247955f4Ba627C79A4d1FA0418307c4AD95f;

// https://era.zksync.network/address/0xBcaA51D1Dc6C1B2b7943eDedA9D0Ad9BcAE3161D
address internal constant LIQUIDATION_LOGIC = 0xBcaA51D1Dc6C1B2b7943eDedA9D0Ad9BcAE3161D;

// https://era.zksync.network/address/0x32d0D756aF42054c05Bce40B75e7Cab564bB6d37
address internal constant POOL_LOGIC = 0x32d0D756aF42054c05Bce40B75e7Cab564bB6d37;

// https://era.zksync.network/address/0x796aCC91016B333230b77aBAa36B8BC351De47F9
address internal constant SUPPLY_LOGIC = 0x796aCC91016B333230b77aBAa36B8BC351De47F9;
}
12 changes: 6 additions & 6 deletions src/GovernanceV3ZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ pragma solidity >=0.6.0;
import {IGovernanceCore, IPayloadsControllerCore, IDataWarehouse, IVotingStrategy} from './GovernanceV3.sol';

library GovernanceV3ZkSync {
// https://era.zksync.network//address/0x800813f4714BC7A0a95310e3fB9e4f18872CA92C
// https://era.zksync.network/address/0x800813f4714BC7A0a95310e3fB9e4f18872CA92C
address internal constant CROSS_CHAIN_CONTROLLER = 0x800813f4714BC7A0a95310e3fB9e4f18872CA92C;

// https://era.zksync.network//address/0x2E79349c3F5e4751E87b966812C9E65E805996F1
// https://era.zksync.network/address/0x2E79349c3F5e4751E87b966812C9E65E805996F1
IPayloadsControllerCore internal constant PAYLOADS_CONTROLLER =
IPayloadsControllerCore(0x2E79349c3F5e4751E87b966812C9E65E805996F1);

// https://era.zksync.network//address/0xe28A3235DCF1Acb8397B546bd588bAAFD7081505
// https://era.zksync.network/address/0xe28A3235DCF1Acb8397B546bd588bAAFD7081505
address internal constant PC_DATA_HELPER = 0xe28A3235DCF1Acb8397B546bd588bAAFD7081505;

// https://era.zksync.network//address/0xe0e23196D42b54F262a3DE952e6B34B197D1A228
// https://era.zksync.network/address/0xe0e23196D42b54F262a3DE952e6B34B197D1A228
address internal constant GRANULAR_GUARDIAN = 0xe0e23196D42b54F262a3DE952e6B34B197D1A228;

// https://era.zksync.network//address/0x4257bf0746D783f0D962913d7d8AFA408B62547E
// https://era.zksync.network/address/0x4257bf0746D783f0D962913d7d8AFA408B62547E
address internal constant GOVERNANCE_GUARDIAN = 0x4257bf0746D783f0D962913d7d8AFA408B62547E;

// https://era.zksync.network//address/0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020
// https://era.zksync.network/address/0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020
address internal constant EXECUTOR_LVL_1 = 0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020;
}
6 changes: 3 additions & 3 deletions src/MiscZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
pragma solidity >=0.6.0;

library MiscZkSync {
// https://era.zksync.network//address/0x903A3228c4C58e94787CB33EE83e087bCFcF0a91
// https://era.zksync.network/address/0x903A3228c4C58e94787CB33EE83e087bCFcF0a91
address internal constant TRANSPARENT_PROXY_FACTORY = 0x903A3228c4C58e94787CB33EE83e087bCFcF0a91;

// https://era.zksync.network//address/0x158d6c497317367CEa3CBAb0BD84E6de236F060D
// https://era.zksync.network/address/0x158d6c497317367CEa3CBAb0BD84E6de236F060D
address internal constant PROXY_ADMIN = 0x158d6c497317367CEa3CBAb0BD84E6de236F060D;

// https://era.zksync.network//address/0xba845c27903F7dDB5c676e5b74728C871057E000
// https://era.zksync.network/address/0xba845c27903F7dDB5c676e5b74728C871057E000
address internal constant PROTOCOL_GUARDIAN = 0xba845c27903F7dDB5c676e5b74728C871057E000;
}
1 change: 1 addition & 0 deletions src/ts/AaveAddressBook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export * as AaveV3Optimism from './AaveV3Optimism';
export * as AaveV3OptimismSepolia from './AaveV3OptimismSepolia';
export * as AaveV3Scroll from './AaveV3Scroll';
export * as AaveV3ScrollSepolia from './AaveV3ScrollSepolia';
export * as AaveV3ZkSync from './AaveV3ZkSync';
export * as AaveV3FantomTestnet from './AaveV3FantomTestnet';
export * as AaveV3Fantom from './AaveV3Fantom';
export * as AaveV3Harmony from './AaveV3Harmony';
Expand Down
84 changes: 84 additions & 0 deletions src/ts/AaveV3ZkSync.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR
// IPoolAddressesProvider https://era.zksync.network/address/0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7
export const POOL_ADDRESSES_PROVIDER = '0x2A3948BB219D6B2Fa83D64100006391a96bE6cb7';

// IPool https://era.zksync.network/address/0x78e30497a3c7527d953c6B1E3541b021A98Ac43c
export const POOL = '0x78e30497a3c7527d953c6B1E3541b021A98Ac43c';

// https://era.zksync.network/address/0xEe8EBB0704F5954Ab281166f35309087E1b81903
export const POOL_IMPL = '0xEe8EBB0704F5954Ab281166f35309087E1b81903';

// IPoolConfigurator https://era.zksync.network/address/0x0207d31b4377C74bEC37356aaD83E3dCc979F40E
export const POOL_CONFIGURATOR = '0x0207d31b4377C74bEC37356aaD83E3dCc979F40E';

// https://era.zksync.network/address/0x908bCea460F5011046782A4280569c4eAcE1082E
export const POOL_CONFIGURATOR_IMPL = '0x908bCea460F5011046782A4280569c4eAcE1082E';

// IAaveOracle https://era.zksync.network/address/0xC7F58Fca663a8d377B6D0c9703C697f56dC40088
export const ORACLE = '0xC7F58Fca663a8d377B6D0c9703C697f56dC40088';

// IPoolDataProvider https://era.zksync.network/address/0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D
export const AAVE_PROTOCOL_DATA_PROVIDER = '0x48B96565291d1B23a014bb9f68E07F4B2bb3Cd6D';

// IACLManager https://era.zksync.network/address/0xc6150b63c2F02528d4A969a248710A4658ed7928
export const ACL_MANAGER = '0xc6150b63c2F02528d4A969a248710A4658ed7928';

// https://era.zksync.network/address/0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020
export const ACL_ADMIN = '0x04cE39789e11a49595cD0ECEf6f4Bd54ABF4d020';

// ICollector https://era.zksync.network/address/0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b
export const COLLECTOR = '0xd69Cbda644c6be817AaFb5Fd9174f50C33803B6b';

// https://era.zksync.network/address/0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e
export const DEFAULT_INCENTIVES_CONTROLLER = '0x37c972C9dDfC2138EBe33eC19dba063AB9f8966e';

// https://era.zksync.network/address/0x34be365Fd01ac224F21490aaC6dFd65D25434bbB
export const DEFAULT_A_TOKEN_IMPL_REV_1 = '0x34be365Fd01ac224F21490aaC6dFd65D25434bbB';

// https://era.zksync.network/address/0x52E97425D1Fa6885fAaC9260B711fA5047A88d06
export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0x52E97425D1Fa6885fAaC9260B711fA5047A88d06';

// https://era.zksync.network/address/0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19
export const DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 = '0x4dF950Ff1352B22dA739c33C35C6f0c81B5d9d19';

// https://era.zksync.network/address/0x92AA83Ce0CC590E6B0627a9E22e84Ef43F389D1f
export const EMISSION_MANAGER = '0x92AA83Ce0CC590E6B0627a9E22e84Ef43F389D1f';

// https://era.zksync.network/address/0x93E5E329FaCf7d85118b49f0eb250E9c767CA177
export const CONFIG_ENGINE = '0x93E5E329FaCf7d85118b49f0eb250E9c767CA177';

// https://era.zksync.network/address/0x0753E3637ddC6efc40759D9c347251046644F25F
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x0753E3637ddC6efc40759D9c347251046644F25F';

// https://era.zksync.network/address/0x82B3B951Cf43B42324B915Ab651a83D910f29D67
export const UI_INCENTIVE_DATA_PROVIDER = '0x82B3B951Cf43B42324B915Ab651a83D910f29D67';

// https://era.zksync.network/address/0x43312730DB351Dc099924462A42B442c0993F6B5
export const UI_POOL_DATA_PROVIDER = '0x43312730DB351Dc099924462A42B442c0993F6B5';

// https://era.zksync.network/address/0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0
export const WALLET_BALANCE_PROVIDER = '0xcb8Dc3C135e59B1252F057da44A8f43EE6B0dAB0';

// https://era.zksync.network/address/0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB
export const WETH_GATEWAY = '0xA72d2e6C79F3e19b5cF51069e5eD1c0177b548EB';

// https://era.zksync.network/address/0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9
export const STATIC_A_TOKEN_FACTORY = '0x1Bc8dbF1f5aF8094Aa166098131116CaAd6B22F9';

// https://era.zksync.network/address/0xDeDee21f34eff4e2902B95A106855834a608e19a
export const RISK_STEWARD = '0xDeDee21f34eff4e2902B95A106855834a608e19a';

export const CHAIN_ID = 324;
export const ASSETS = {} as const;
export const E_MODES = {
NONE: 0,
} as const;
export const EXTERNAL_LIBRARIES = {
FLASHLOAN_LOGIC: '0x8B9AeE8BdE378e4f2ebdE95432b7547EF4FcD569',
BORROW_LOGIC: '0xA68d2F399cFe47d8fFb2C117b500B3Ff1F2D1BCb',
BRIDGE_LOGIC: '0xe2e0bF0244eD98125652672787f9d1f86137592c',
E_MODE_LOGIC: '0x3c98247955f4Ba627C79A4d1FA0418307c4AD95f',
LIQUIDATION_LOGIC: '0xBcaA51D1Dc6C1B2b7943eDedA9D0Ad9BcAE3161D',
POOL_LOGIC: '0x32d0D756aF42054c05Bce40B75e7Cab564bB6d37',
SUPPLY_LOGIC: '0x796aCC91016B333230b77aBAa36B8BC351De47F9',
} as const;
Loading
Loading