From 1306166d5fe01efe52c15625002e35c28d80829c Mon Sep 17 00:00:00 2001 From: Ed Zynda Date: Mon, 25 Nov 2024 16:08:04 +0300 Subject: [PATCH] finish up --- config/dexs.json | 6 ++++++ config/networks.json | 2 +- script/deploy/healthCheck.ts | 7 +------ script/utils/viemScriptHelpers.ts | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/dexs.json b/config/dexs.json index c47c2d14..e0efd4b9 100644 --- a/config/dexs.json +++ b/config/dexs.json @@ -475,6 +475,12 @@ "0xcaA342e4f781d63EF41E220D7622B97E66BAEcF3", "0xf2614A233c7C3e7f08b1F887Ba133a13f1eb2c55" ], + "lisk": [ + "0x603a538477d44064eA5A5d8C345b4Ff6fca1142a", + "0x2321F1a63A683a1F3634Dbe1CbA0d657D5F56d54", + "0x8f023b4193a6b18C227B4a755f8e28B3D30Ef9a1", + "0x50D5a8aCFAe13Dceb217E9a071F6c6Bd5bDB4155" + ], "mantle": [ "0xD9F4e85489aDCD0bAF0Cd63b4231c6af58c26745", "0x6352a56caadC4F1E25CD6c75970Fa768A3304e64", diff --git a/config/networks.json b/config/networks.json index a8d8edcb..31480fea 100644 --- a/config/networks.json +++ b/config/networks.json @@ -337,7 +337,7 @@ "explorerApiUrl": "https://blockscout.lisk.com/api", "multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11", "safeApiUrl": "https://transaction-lisk.safe.optimism.io/api", - "safeAddress": "lisk:0x86E02d7383D6a045848b0a1A842996AC9E943113", + "safeAddress": "0x86E02d7383D6a045848b0a1A842996AC9E943113", "safeWebUrl": "https://safe.optimism.io/home?safe=lisk:0x86E02d7383D6a045848b0a1A842996AC9E943113", "gasZipChainId": 238 }, diff --git a/script/deploy/healthCheck.ts b/script/deploy/healthCheck.ts index ca4ff336..f0b7794e 100644 --- a/script/deploy/healthCheck.ts +++ b/script/deploy/healthCheck.ts @@ -16,11 +16,10 @@ import { } from 'viem' import { Network, + networks, getViemChainForNetworkName, type NetworksObject, } from '../utils/viemScriptHelpers' -import data from '../../config/networks.json' -const networks: NetworksObject = data as NetworksObject const SAFE_THRESHOLD = 3 @@ -65,10 +64,6 @@ const main = defineCommand({ }, }, async run({ args }) { - const { getViemChainForNetworkName, networks } = await import( - '../utils/viemScriptHelpers' - ) - if ((await $`${louperCmd}`.exitCode) !== 0) { const answer = await consola.prompt( 'Louper CLI is required but not installed. Would you like to install it now?', diff --git a/script/utils/viemScriptHelpers.ts b/script/utils/viemScriptHelpers.ts index 357febe8..cbcdae24 100644 --- a/script/utils/viemScriptHelpers.ts +++ b/script/utils/viemScriptHelpers.ts @@ -30,7 +30,7 @@ const colors = { red: '\x1b[31m', green: '\x1b[32m', } -const networks: NetworksObject = networksConfig +export const networks: NetworksObject = networksConfig export const getViemChainForNetworkName = (networkName: string): Chain => { const network = networks[networkName]