|
1 |
| -import { base } from "@ionicprotocol/chains"; |
2 |
| -import { ChainlinkSpecificParams, OracleTypes } from "@ionicprotocol/types"; |
| 1 | +// import { ChainDeployConfig, deployChainlinkOracle } from "../helpers"; |
| 2 | +// import { ChainlinkAsset } from "../../chains/types"; |
3 | 3 |
|
4 |
| -import { ChainDeployConfig, deployChainlinkOracle } from "../helpers"; |
5 |
| -import { ChainlinkAsset } from "../../chains/types"; |
| 4 | +// const assets = base.assets; |
6 | 5 |
|
7 |
| -const assets = base.assets; |
| 6 | +// export const deployConfig: ChainDeployConfig = { |
| 7 | +// blocksPerYear: Number(base.specificParams.blocksPerYear), |
| 8 | +// cgId: base.specificParams.cgId, |
| 9 | +// nativeTokenName: "Base", |
| 10 | +// nativeTokenSymbol: "ETH", |
| 11 | +// stableToken: base.chainAddresses.STABLE_TOKEN, |
| 12 | +// uniswap: { |
| 13 | +// flashSwapFee: 30, // TODO set the correct fee |
| 14 | +// hardcoded: [], |
| 15 | +// uniswapData: [], |
| 16 | +// uniswapOracleInitialDeployTokens: [], |
| 17 | +// uniswapV2FactoryAddress: "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6", |
| 18 | +// uniswapV2RouterAddress: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24", |
| 19 | +// uniswapV3SwapRouter: "0x2626664c2603336E57B271c5C0b26F421741e481", |
| 20 | +// uniswapV3Quoter: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a" |
| 21 | +// }, |
| 22 | +// wtoken: base.chainAddresses.W_TOKEN, |
| 23 | +// nativeTokenUsdChainlinkFeed: base.chainAddresses.W_TOKEN_USD_CHAINLINK_PRICE_FEED |
| 24 | +// }; |
8 | 25 |
|
9 |
| -export const deployConfig: ChainDeployConfig = { |
10 |
| - blocksPerYear: Number(base.specificParams.blocksPerYear), |
11 |
| - cgId: base.specificParams.cgId, |
12 |
| - nativeTokenName: "Base", |
13 |
| - nativeTokenSymbol: "ETH", |
14 |
| - stableToken: base.chainAddresses.STABLE_TOKEN, |
15 |
| - uniswap: { |
16 |
| - flashSwapFee: 30, // TODO set the correct fee |
17 |
| - hardcoded: [], |
18 |
| - uniswapData: [], |
19 |
| - uniswapOracleInitialDeployTokens: [], |
20 |
| - uniswapV2FactoryAddress: "0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6", |
21 |
| - uniswapV2RouterAddress: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24", |
22 |
| - uniswapV3SwapRouter: "0x2626664c2603336E57B271c5C0b26F421741e481", |
23 |
| - uniswapV3Quoter: "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a" |
24 |
| - }, |
25 |
| - wtoken: base.chainAddresses.W_TOKEN, |
26 |
| - nativeTokenUsdChainlinkFeed: base.chainAddresses.W_TOKEN_USD_CHAINLINK_PRICE_FEED |
27 |
| -}; |
| 26 | +// const chainlinkAssets: ChainlinkAsset[] = base.assets |
| 27 | +// .filter((asset) => asset.oracle === OracleTypes.ChainlinkPriceOracleV2) |
| 28 | +// .map((asset) => ({ |
| 29 | +// aggregator: (asset.oracleSpecificParams as ChainlinkSpecificParams).aggregator, |
| 30 | +// feedBaseCurrency: (asset.oracleSpecificParams as ChainlinkSpecificParams).feedBaseCurrency, |
| 31 | +// symbol: asset.symbol |
| 32 | +// })); |
28 | 33 |
|
29 |
| -const chainlinkAssets: ChainlinkAsset[] = base.assets |
30 |
| - .filter((asset) => asset.oracle === OracleTypes.ChainlinkPriceOracleV2) |
31 |
| - .map((asset) => ({ |
32 |
| - aggregator: (asset.oracleSpecificParams as ChainlinkSpecificParams).aggregator, |
33 |
| - feedBaseCurrency: (asset.oracleSpecificParams as ChainlinkSpecificParams).feedBaseCurrency, |
34 |
| - symbol: asset.symbol |
35 |
| - })); |
| 34 | +// export const deploy = async ({ run, ethers, getNamedAccounts, deployments }): Promise<void> => { |
| 35 | +// const { deployer } = await getNamedAccounts(); |
36 | 36 |
|
37 |
| -export const deploy = async ({ run, ethers, getNamedAccounts, deployments }): Promise<void> => { |
38 |
| - const { deployer } = await getNamedAccounts(); |
| 37 | +// //// ChainLinkV2 Oracle |
| 38 | +// await deployChainlinkOracle({ |
| 39 | +// run, |
| 40 | +// ethers, |
| 41 | +// getNamedAccounts, |
| 42 | +// deployments, |
| 43 | +// deployConfig, |
| 44 | +// assets, |
| 45 | +// chainlinkAssets |
| 46 | +// }); |
39 | 47 |
|
40 |
| - //// ChainLinkV2 Oracle |
41 |
| - await deployChainlinkOracle({ |
42 |
| - run, |
43 |
| - ethers, |
44 |
| - getNamedAccounts, |
45 |
| - deployments, |
46 |
| - deployConfig, |
47 |
| - assets, |
48 |
| - chainlinkAssets |
49 |
| - }); |
| 48 | +// //// Uniswap V3 Liquidator Funder |
| 49 | +// const uniswapV3LiquidatorFunder = await deployments.deploy("UniswapV3LiquidatorFunder", { |
| 50 | +// from: deployer, |
| 51 | +// args: [], |
| 52 | +// log: true, |
| 53 | +// waitConfirmations: 1 |
| 54 | +// }); |
| 55 | +// console.log("UniswapV3LiquidatorFunder: ", uniswapV3LiquidatorFunder.address); |
50 | 56 |
|
51 |
| - //// Uniswap V3 Liquidator Funder |
52 |
| - const uniswapV3LiquidatorFunder = await deployments.deploy("UniswapV3LiquidatorFunder", { |
53 |
| - from: deployer, |
54 |
| - args: [], |
55 |
| - log: true, |
56 |
| - waitConfirmations: 1 |
57 |
| - }); |
58 |
| - console.log("UniswapV3LiquidatorFunder: ", uniswapV3LiquidatorFunder.address); |
59 |
| - |
60 |
| - const solidlySwapLiquidator = await deployments.deploy("SolidlySwapLiquidator", { |
61 |
| - from: deployer, |
62 |
| - args: [], |
63 |
| - log: true, |
64 |
| - waitConfirmations: 1 |
65 |
| - }); |
66 |
| - console.log("solidlySwapLiquidator: ", solidlySwapLiquidator.address); |
67 |
| -}; |
| 57 | +// const solidlySwapLiquidator = await deployments.deploy("SolidlySwapLiquidator", { |
| 58 | +// from: deployer, |
| 59 | +// args: [], |
| 60 | +// log: true, |
| 61 | +// waitConfirmations: 1 |
| 62 | +// }); |
| 63 | +// console.log("solidlySwapLiquidator: ", solidlySwapLiquidator.address); |
| 64 | +// }; |
0 commit comments