Skip to content

Commit

Permalink
♻️ Add Further 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 Jan 14, 2025
1 parent 7d27c34 commit 3986944
Show file tree
Hide file tree
Showing 3 changed files with 331 additions and 166 deletions.
155 changes: 155 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,66 @@ const config: HardhatUserConfig = {
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
inkTestnet: {
chainId: 763373,
url: process.env.INK_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
inkMain: {
chainId: 57073,
url: process.env.INK_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
morphTestnet: {
chainId: 2810,
url: process.env.MORPH_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
morphMain: {
chainId: 2818,
url: process.env.MORPH_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
shapeTestnet: {
chainId: 11011,
url: process.env.SHAPE_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
shapeMain: {
chainId: 360,
url: process.env.SHAPE_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
etherlinkTestnet: {
chainId: 128123,
url: process.env.ETHERLINK_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
etherlinkMain: {
chainId: 42793,
url: process.env.ETHERLINK_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
soneiumTestnet: {
chainId: 1946,
url: process.env.SONEIUM_TESTNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
soneiumMain: {
chainId: 1868,
url: process.env.SONEIUM_MAINNET_URL || "",
accounts:
process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -1060,6 +1120,21 @@ const config: HardhatUserConfig = {
// For EVM on Flow testnet & mainnet
flow: process.env.FLOW_API_KEY || "",
flowTestnet: process.env.FLOW_API_KEY || "",
// For Ink testnet & mainnet
ink: process.env.INK_API_KEY || "",
inkTestnet: process.env.INK_API_KEY || "",
// For Morph testnet & mainnet
morph: process.env.MORPH_API_KEY || "",
morphTestnet: process.env.MORPH_API_KEY || "",
// For Shape testnet & mainnet
shape: process.env.SHAPE_API_KEY || "",
shapeTestnet: process.env.SHAPE_API_KEY || "",
// For Etherlink testnet & mainnet
etherlink: process.env.ETHERLINK_API_KEY || "",
etherlinkTestnet: process.env.ETHERLINK_API_KEY || "",
// For Soneium testnet & mainnet
soneium: process.env.SONEIUM_API_KEY || "",
soneiumTestnet: process.env.SONEIUM_API_KEY || "",
},
customChains: [
{
Expand Down Expand Up @@ -1884,6 +1959,86 @@ const config: HardhatUserConfig = {
browserURL: "https://evm-testnet.flowscan.io",
},
},
{
network: "ink",
chainId: 57073,
urls: {
apiURL: "https://explorer.inkonchain.com/api",
browserURL: "https://explorer.inkonchain.com",
},
},
{
network: "inkTestnet",
chainId: 763373,
urls: {
apiURL: "https://explorer-sepolia.inkonchain.com/api",
browserURL: "https://explorer-sepolia.inkonchain.com",
},
},
{
network: "morph",
chainId: 2818,
urls: {
apiURL: "https://explorer.morphl2.io/api",
browserURL: "https://explorer.morphl2.io",
},
},
{
network: "morphTestnet",
chainId: 2810,
urls: {
apiURL: "https://explorer-holesky.morphl2.io/api",
browserURL: "https://explorer-holesky.morphl2.io",
},
},
{
network: "shape",
chainId: 360,
urls: {
apiURL: "https://shapescan.xyz/api",
browserURL: "https://shapescan.xyz",
},
},
{
network: "shapeTestnet",
chainId: 11011,
urls: {
apiURL: "https://explorer-sepolia.shape.network/api",
browserURL: "https://explorer-sepolia.shape.network",
},
},
{
network: "etherlink",
chainId: 42793,
urls: {
apiURL: "https://explorer.etherlink.com/api",
browserURL: "https://explorer.etherlink.com",
},
},
{
network: "etherlinkTestnet",
chainId: 128123,
urls: {
apiURL: "https://testnet.explorer.etherlink.com/api",
browserURL: "https://testnet.explorer.etherlink.com",
},
},
{
network: "soneium",
chainId: 1868,
urls: {
apiURL: "https://soneium.blockscout.com/api",
browserURL: "https://soneium.blockscout.com",
},
},
{
network: "soneiumTestnet",
chainId: 1946,
urls: {
apiURL: "https://soneium-minato.blockscout.com/api",
browserURL: "https://soneium-minato.blockscout.com",
},
},
],
},
};
Expand Down
18 changes: 14 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@
"deploy:sonicmain": "npx hardhat run --network sonicMain scripts/deploy.ts",
"deploy:flowtestnet": "npx hardhat run --network flowTestnet scripts/deploy.ts",
"deploy:flowmain": "npx hardhat run --network flowMain scripts/deploy.ts",
"deploy:inktestnet": "npx hardhat run --network inkTestnet scripts/deploy.ts",
"deploy:inkmain": "npx hardhat run --network inkMain scripts/deploy.ts",
"deploy:morphtestnet": "npx hardhat run --network morphTestnet scripts/deploy.ts",
"deploy:morphmain": "npx hardhat run --network morphMain scripts/deploy.ts",
"deploy:shapetestnet": "npx hardhat run --network shapeTestnet scripts/deploy.ts",
"deploy:shapemain": "npx hardhat run --network shapeMain scripts/deploy.ts",
"deploy:etherlinktestnet": "npx hardhat run --network etherlinkTestnet scripts/deploy.ts",
"deploy:etherlinkmain": "npx hardhat run --network etherlinkMain scripts/deploy.ts",
"deploy:soneiumtestnet": "npx hardhat run --network soneiumTestnet scripts/deploy.ts",
"deploy:soneiummain": "npx hardhat run --network soneiumMain 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 @@ -179,13 +189,13 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.20",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.5",
"@types/node": "^22.10.6",
"chai": "^4.5.0",
"dotenv": "^16.4.7",
"eslint": "^9.18.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-prettier": "^10.0.1",
"ethers": "^6.13.5",
"hardhat": "^2.22.17",
"hardhat": "^2.22.18",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.2",
Expand All @@ -196,7 +206,7 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1",
"typescript-eslint": "^8.20.0",
"zksync-ethers": "^6.15.3"
}
}
Loading

0 comments on commit 3986944

Please sign in to comment.