Skip to content

Commit

Permalink
➕ Add Soneium Test and Main Network Deployments (#171)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add Soneium test and main network deployments:
- [Soneium Sepolia Testnet
(Minato)](https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
-
[Soneium](https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed).

#### Verification

Compare the `keccak256` hash of the runtime bytecode with the canonical
`keccak256` hash of the runtime bytecode
[here](https://github.com/pcaversaccio/createx#security-considerations)
(`0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f`):

```console
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.minato.soneium.org)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.soneium.org)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------

Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio authored Jan 14, 2025
1 parent c81b60b commit 9180af4
Show file tree
Hide file tree
Showing 7 changed files with 236 additions and 189 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2237,6 +2237,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Morph](https://explorer.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Shape](https://shapescan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Etherlink](https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Soneium](https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2302,6 +2303,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Morph Holešky Testnet](https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [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)

## 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 @@ -452,6 +452,13 @@
"https://explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Soneium",
"chainId": 1868,
"urls": [
"https://soneium.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -888,5 +895,12 @@
"urls": [
"https://testnet.explorer.etherlink.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Soneium Sepolia Testnet (Minato)",
"chainId": 1946,
"urls": [
"https://soneium-minato.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
29 changes: 29 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,16 @@ const config: HardhatUserConfig = {
),
accounts,
},
soneiumTestnet: {
chainId: 1946,
url: vars.get("SONEIUM_TESTNET_URL", "https://rpc.minato.soneium.org"),
accounts,
},
soneiumMain: {
chainId: 1868,
url: vars.get("SONEIUM_MAINNET_URL", "https://rpc.soneium.org"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -1044,6 +1054,9 @@ const config: HardhatUserConfig = {
// 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 @@ -1908,6 +1921,22 @@ const config: HardhatUserConfig = {
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
8 changes: 4 additions & 4 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,20 @@
"@eslint/js": "^9.18.0",
"@next/eslint-plugin-next": "^15.1.4",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/node": "^22.10.5",
"@types/react": "^19.0.6",
"@types/node": "^22.10.6",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"next-seo": "^6.6.0",
"postcss": "^8.4.49",
"postcss": "^8.5.0",
"prettier": "^3.4.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1"
"typescript-eslint": "^8.20.0"
}
}
2 changes: 1 addition & 1 deletion interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Home = () => {
id: 1,
href: "/deployments",
title: "Deployments",
subtitle: "Deployed on 110+ chains",
subtitle: "Deployed on 120+ chains",
},
{ id: 2, href: "/abi", title: "ABI", subtitle: "In any format" },
{
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@
"deploy:shapemain": "npx hardhat run --no-compile --network shapeMain scripts/deploy.ts",
"deploy:etherlinktestnet": "npx hardhat run --no-compile --network etherlinkTestnet scripts/deploy.ts",
"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",
"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 All @@ -194,7 +196,7 @@
"eslint": "^9.18.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 @@ -204,6 +206,6 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.7.3",
"typescript-eslint": "^8.19.1"
"typescript-eslint": "^8.20.0"
}
}
Loading

0 comments on commit 9180af4

Please sign in to comment.