From bda2c59f60bd8f93db346614b80a39a0d33313cf Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Thu, 22 Feb 2024 11:19:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Add=20Kroma=20Test=20an?= =?UTF-8?q?d=20Production=20Network=20Configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- hardhat.config.ts | 29 +++++++++++++++++++++++++++++ package.json | 2 ++ 2 files changed, 31 insertions(+) diff --git a/hardhat.config.ts b/hardhat.config.ts index bfa9cf5a..b8d7790e 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -445,6 +445,16 @@ const config: HardhatUserConfig = { url: vars.get("BLAST_TESTNET_URL", "https://sepolia.blast.io"), accounts, }, + kromaTestnet: { + chainId: 2358, + url: vars.get("KROMA_TESTNET_URL", "https://api.sepolia.kroma.network"), + accounts, + }, + kromaMain: { + chainId: 255, + url: vars.get("KROMA_MAINNET_URL", "https://api.kroma.network"), + accounts, + }, }, contractSizer: { alphaSort: true, @@ -568,6 +578,9 @@ const config: HardhatUserConfig = { openduranceTestnet: vars.get("OPENDURANCE_API_KEY", ""), // For Blast testnet blastTestnet: vars.get("BLAST_API_KEY", ""), + // For Kroma testnet & mainnet + kroma: vars.get("KROMA_API_KEY", ""), + kromaTestnet: vars.get("KROMA_API_KEY", ""), }, customChains: [ { @@ -893,6 +906,22 @@ const config: HardhatUserConfig = { browserURL: "https://testnet.blastscan.io", }, }, + { + network: "kroma", + chainId: 255, + urls: { + apiURL: "https://api.kromascan.com/api", + browserURL: "https://kromascan.com", + }, + }, + { + network: "kromaTestnet", + chainId: 2358, + urls: { + apiURL: "https://api-sepolia.kromascan.com", + browserURL: "https://sepolia.kromascan.com", + }, + }, ], }, }; diff --git a/package.json b/package.json index dc5fa779..84b18f62 100644 --- a/package.json +++ b/package.json @@ -104,6 +104,8 @@ "deploy:frametestnet": "npx hardhat run --no-compile --network frameTestnet scripts/deploy.ts", "deploy:opendurancetestnet": "npx hardhat run --no-compile --network openduranceTestnet scripts/deploy.ts", "deploy:blasttestnet": "npx hardhat run --no-compile --network blastTestnet scripts/deploy.ts", + "deploy:kromatestnet": "npx hardhat run --no-compile --network kromaTestnet scripts/deploy.ts", + "deploy:kromamain": "npx hardhat run --no-compile --network kromaMain scripts/deploy.ts", "prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"", "prettier:check:interface": "cd interface && pnpm prettier:check", "prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",