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 8fc36f9 commit e8385f1
Show file tree
Hide file tree
Showing 3 changed files with 1,338 additions and 138 deletions.
167 changes: 167 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,78 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
inkTestnet: {
chainId: 763373,
url: vars.get(
"INK_TESTNET_URL",
"https://rpc-gel-sepolia.inkonchain.com",
),
accounts,
ledgerAccounts,
},
inkMain: {
chainId: 57073,
url: vars.get("INK_MAINNET_URL", "https://rpc-gel.inkonchain.com"),
accounts,
ledgerAccounts,
},
morphTestnet: {
chainId: 2810,
url: vars.get(
"MORPH_TESTNET_URL",
"https://rpc-quicknode-holesky.morphl2.io",
),
accounts,
ledgerAccounts,
},
morphMain: {
chainId: 2818,
url: vars.get("MORPH_MAINNET_URL", "https://rpc-quicknode.morphl2.io"),
accounts,
ledgerAccounts,
},
shapeTestnet: {
chainId: 11011,
url: vars.get("SHAPE_TESTNET_URL", "https://sepolia.shape.network"),
accounts,
ledgerAccounts,
},
shapeMain: {
chainId: 360,
url: vars.get("SHAPE_MAINNET_URL", "https://mainnet.shape.network"),
accounts,
ledgerAccounts,
},
etherlinkTestnet: {
chainId: 128123,
url: vars.get(
"ETHERLINK_TESTNET_URL",
"https://node.ghostnet.etherlink.com",
),
accounts,
ledgerAccounts,
},
etherlinkMain: {
chainId: 42793,
url: vars.get(
"ETHERLINK_MAINNET_URL",
"https://node.mainnet.etherlink.com",
),
accounts,
ledgerAccounts,
},
soneiumTestnet: {
chainId: 1946,
url: vars.get("SONEIUM_TESTNET_URL", "https://rpc.minato.soneium.org"),
accounts,
ledgerAccounts,
},
soneiumMain: {
chainId: 1868,
url: vars.get("SONEIUM_MAINNET_URL", "https://rpc.soneium.org"),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -1245,6 +1317,21 @@ const config: HardhatUserConfig = {
// For EVM on Flow testnet & mainnet
flow: vars.get("FLOW_API_KEY", ""),
flowTestnet: vars.get("FLOW_API_KEY", ""),
// For Ink testnet & mainnet
ink: vars.get("INK_API_KEY", ""),
inkTestnet: vars.get("INK_API_KEY", ""),
// For Morph testnet & mainnet
morph: vars.get("MORPH_API_KEY", ""),
morphTestnet: vars.get("MORPH_API_KEY", ""),
// For Shape testnet & mainnet
shape: vars.get("SHAPE_API_KEY", ""),
shapeTestnet: vars.get("SHAPE_API_KEY", ""),
// For Etherlink testnet & mainnet
etherlink: vars.get("ETHERLINK_API_KEY", ""),
etherlinkTestnet: vars.get("ETHERLINK_API_KEY", ""),
// For Soneium testnet & mainnet
soneium: vars.get("SONEIUM_API_KEY", ""),
soneiumTestnet: vars.get("SONEIUM_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -2061,6 +2148,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",
},
},
],
},
// tenderly: {
Expand Down
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,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 Down Expand Up @@ -199,7 +209,7 @@
"@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",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
Expand All @@ -216,7 +226,7 @@
"typechain": "^8.3.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0",
"xdeployer": "^3.1.9",
"xdeployer": "^3.1.10",
"zksync-ethers": "^6.15.3"
}
}
Loading

0 comments on commit e8385f1

Please sign in to comment.