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 b7d3728 commit 071f698
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 29 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ The current available networks are:
- `shapeTestnet`
- `etherlinkTestnet`
- `soneiumTestnet`
- `swellTestnet`
- **EVM-Based Production Networks:**
- `ethMain`
- `bscMain`
Expand Down Expand Up @@ -311,6 +312,7 @@ The current available networks are:
- `shapeMain`
- `etherlinkMain`
- `soneiumMain`
- `swellMain`

> [!IMPORTANT]
> Note that you must ensure that your deployment account has sufficient funds on **all** target networks.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/chai": "^4.3.20",
"@types/fs-extra": "^11.0.4",
"@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 Down
56 changes: 28 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/utils/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ export const networksInfo = {
url: "https://soneium-minato.blockscout.com",
chainId: 1946,
},
swellTestnet: {
url: "https://swell-testnet-explorer.alt.technology",
chainId: 1924,
},
ethMain: { url: "https://etherscan.io", chainId: 1 },
bscMain: { url: "https://bscscan.com", chainId: 56 },
optimismMain: { url: "https://optimistic.etherscan.io", chainId: 10 },
Expand Down Expand Up @@ -264,6 +268,10 @@ export const networksInfo = {
url: "https://soneium.blockscout.com",
chainId: 1868,
},
swellMain: {
url: "https://explorer.swellnetwork.io",
chainId: 1923,
},
} as const;

// Define a type `SupportedNetwork` that represents the union of all possible network names
Expand Down

0 comments on commit 071f698

Please sign in to comment.