Skip to content

Commit

Permalink
♻️ Add Kroma Test and Production Network Configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Feb 22, 2024
1 parent 9b88f4e commit bda2c59
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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: [
{
Expand Down Expand Up @@ -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",
},
},
],
},
};
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}\"",
Expand Down

0 comments on commit bda2c59

Please sign in to comment.