Skip to content

Commit

Permalink
➕ Add Swellchain Test and Main Networks
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 17, 2025
1 parent e8385f1 commit 3a4e3ca
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 400 deletions.
1 change: 1 addition & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": "off",
"func-visibility": ["warn", { "ignoreConstructors": true }],
"no-empty-blocks": "off"
}
Expand Down
37 changes: 37 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,24 @@ const config: HardhatUserConfig = {
accounts,
ledgerAccounts,
},
swellTestnet: {
chainId: 1924,
url: vars.get(
"SWELL_TESTNET_URL",
"https://swell-testnet.alt.technology",
),
accounts,
ledgerAccounts,
},
swellMain: {
chainId: 1923,
url: vars.get(
"SWELL_MAINNET_URL",
"https://swell-mainnet.alt.technology",
),
accounts,
ledgerAccounts,
},
},
xdeploy: {
// Change this name to the name of your main contract
Expand Down Expand Up @@ -1332,6 +1350,9 @@ const config: HardhatUserConfig = {
// For Soneium testnet & mainnet
soneium: vars.get("SONEIUM_API_KEY", ""),
soneiumTestnet: vars.get("SONEIUM_API_KEY", ""),
// For Swellchain testnet & mainnet
swell: vars.get("SWELL_API_KEY", ""),
swellTestnet: vars.get("SWELL_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -2228,6 +2249,22 @@ const config: HardhatUserConfig = {
browserURL: "https://soneium-minato.blockscout.com",
},
},
{
network: "swell",
chainId: 1923,
urls: {
apiURL: "https://explorer.swellnetwork.io/api",
browserURL: "https://explorer.swellnetwork.io",
},
},
{
network: "swellTestnet",
chainId: 1924,
urls: {
apiURL: "https://swell-testnet-explorer.alt.technology/api",
browserURL: "https://swell-testnet-explorer.alt.technology",
},
},
],
},
// tenderly: {
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@
"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",
"deploy:swelltestnet": "npx hardhat run --network swellTestnet scripts/deploy.ts",
"deploy:swellmain": "npx hardhat run --network swellMain 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 @@ -209,7 +211,7 @@
"@typechain/hardhat": "^9.1.0",
"@types/chai": "^4.3.20",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.6",
"@types/node": "^22.10.7",
"chai": "^4.5.0",
"eslint": "^9.18.0",
"eslint-config-prettier": "^10.0.1",
Expand All @@ -220,7 +222,7 @@
"hardhat-gas-reporter": "^2.2.2",
"prettier": "^3.4.2",
"prettier-plugin-solidity": "^1.4.2",
"solhint": "^5.0.4",
"solhint": "^5.0.5",
"solidity-coverage": "^0.8.14",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
Expand Down
Loading

0 comments on commit 3a4e3ca

Please sign in to comment.