Skip to content

Commit

Permalink
➕ Add Swellchain Test and Main Network Deployments
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio committed Jan 17, 2025
1 parent 060b66f commit c63c9b4
Show file tree
Hide file tree
Showing 10 changed files with 169 additions and 108 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Shape](https://shapescan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Etherlink](https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Soneium](https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Swellchain](https://explorer.swellnetwork.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2304,6 +2305,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Shape Sepolia Testnet](https://explorer-sepolia.shape.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Etherlink Testnet (Ghostnet)](https://testnet.explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Soneium Sepolia Testnet (Minato)](https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Swellchain Sepolia Testnet](https://swell-testnet-explorer.alt.technology/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
14 changes: 14 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,13 @@
"https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Swellchain",
"chainId": 1923,
"urls": [
"https://explorer.swellnetwork.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -902,5 +909,12 @@
"urls": [
"https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Swellchain Sepolia Testnet",
"chainId": 1924,
"urls": [
"https://swell-testnet-explorer.alt.technology/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
35 changes: 35 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,22 @@ const config: HardhatUserConfig = {
url: vars.get("SONEIUM_MAINNET_URL", "https://rpc.soneium.org"),
accounts,
},
swellTestnet: {
chainId: 1924,
url: vars.get(
"SWELL_TESTNET_URL",
"https://swell-testnet.alt.technology",
),
accounts,
},
swellMain: {
chainId: 1923,
url: vars.get(
"SWELL_MAINNET_URL",
"https://swell-mainnet.alt.technology",
),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -1057,6 +1073,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 @@ -1937,6 +1956,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",
},
},
],
},
};
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@eslint/js": "^9.18.0",
"@next/eslint-plugin-next": "^15.1.4",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/node": "^22.10.6",
"@types/node": "^22.10.7",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
Expand All @@ -54,7 +54,7 @@
"next-seo": "^6.6.0",
"postcss": "^8.5.1",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"prettier-plugin-tailwindcss": "^0.6.10",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"typescript-eslint": "^8.20.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@
"deploy:etherlinkmain": "npx hardhat run --no-compile --network etherlinkMain scripts/deploy.ts",
"deploy:soneiumtestnet": "npx hardhat run --no-compile --network soneiumTestnet scripts/deploy.ts",
"deploy:soneiummain": "npx hardhat run --no-compile --network soneiumMain scripts/deploy.ts",
"deploy:swelltestnet": "npx hardhat run --no-compile --network swellTestnet scripts/deploy.ts",
"deploy:swellmain": "npx hardhat run --no-compile --network swellMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "pnpm -C interface prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down Expand Up @@ -202,7 +204,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",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.7.3",
Expand Down
Loading

0 comments on commit c63c9b4

Please sign in to comment.