Skip to content

Commit

Permalink
♻️ Add Blast & Kroma Network Configurations
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio committed Feb 22, 2024
1 parent 036fd6c commit 3000d3e
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 75 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Fully-Fledged Hardhat Project Template Based on TypeScript

[![🕵️‍♂️ Test smart contracts](https://github.com/pcaversaccio/hardhat-project-template-ts/actions/workflows/test-contracts.yml/badge.svg)](https://github.com/pcaversaccio/hardhat-project-template-ts/actions/workflows/test-contracts.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/license/mit/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/license/mit)

## Installation

Expand Down
48 changes: 48 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,24 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
blastTestnet: {
chainId: 168587773,
url: vars.get("BLAST_TESTNET_URL", "https://sepolia.blast.io"),
accounts,
ledgerAccounts,
},
kromaTestnet: {
chainId: 2358,
url: vars.get("KROMA_TESTNET_URL", "https://api.sepolia.kroma.network"),
accounts,
ledgerAccounts,
},
kromaMain: {
chainId: 255,
url: vars.get("KROMA_MAINNET_URL", "https://api.kroma.network"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -741,6 +759,11 @@ const config: HardhatUserConfig = {
mantaTestnet: vars.get("MANTA_API_KEY", ""),
// For Arthera testnet
artheraTestnet: vars.get("ARTHERA_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 @@ -1049,6 +1072,31 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer-test.arthera.net",
},
},
{
network: "blastTestnet",
chainId: 168587773,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/168587773/etherscan",
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",
},
},
],
},
tenderly: {
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@
"deploy:shardeumtestnet": "npx hardhat run --network shardeumTestnet scripts/deploy.ts",
"deploy:artheratestnet": "npx hardhat run --network artheraTestnet scripts/deploy.ts",
"deploy:frametestnet": "npx hardhat run --network frameTestnet scripts/deploy.ts",
"deploy:blasttestnet": "npx hardhat run --network blastTestnet scripts/deploy.ts",
"deploy:kromatestnet": "npx hardhat run --network kromaTestnet scripts/deploy.ts",
"deploy:kromamain": "npx hardhat run --network kromaMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"solhint:check": "npx solhint \"contracts/**/*.sol\"",
Expand All @@ -120,7 +123,7 @@
"@eslint/js": "^8.56.0",
"@matterlabs/hardhat-zksync-deploy": "^1.1.2",
"@matterlabs/hardhat-zksync-ethers": "1.0.0",
"@matterlabs/hardhat-zksync-solc": "^1.1.2",
"@matterlabs/hardhat-zksync-solc": "^1.1.3",
"@matterlabs/hardhat-zksync-verify": "^1.3.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
Expand Down Expand Up @@ -148,7 +151,7 @@
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.1.1",
"solidity-coverage": "^0.8.7",
"solidity-coverage": "^0.8.8",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.3.3",
Expand Down
Loading

0 comments on commit 3000d3e

Please sign in to comment.