Skip to content

Commit a4b0c68

Browse files
authored
➕ Add Sophon Test and Main Network Deployments (pcaversaccio#249)
### 🕓 Changelog Add Sophon test and main network deployments (resolves pcaversaccio#247): - [Sophon Sepolia Testnet](https://testnet.sophscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [Sophon](https://sophscan.xyz/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.testnet.sophon.xyz) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.sophon.xyz) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent 8c5702b commit a4b0c68

10 files changed

Lines changed: 171 additions & 104 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,6 +2260,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
22602260
- [TAC](https://explorer.tac.build/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22612261
- [Katana](https://explorer.katanarpc.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22622262
- [Plasma](https://plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2263+
- [Sophon](https://sophscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22632264

22642265
#### Ethereum Test Networks
22652266

@@ -2348,6 +2349,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23482349
- [Botanix Testnet](https://testnet.botanixscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23492350
- [TAC Testnet (Saint Petersburg)](https://spb.explorer.tac.build/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23502351
- [Plasma Testnet](https://testnet.plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2352+
- [Sophon Sepolia Testnet](https://testnet.sophscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23512353

23522354
## Integration With External Tooling
23532355

deployments/deployments.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,13 @@
624624
"https://plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
625625
]
626626
},
627+
{
628+
"name": "Sophon",
629+
"chainId": 50104,
630+
"urls": [
631+
"https://sophscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
632+
]
633+
},
627634
{
628635
"name": "Sepolia",
629636
"chainId": 11155111,
@@ -1223,5 +1230,12 @@
12231230
"urls": [
12241231
"https://testnet.plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
12251232
]
1233+
},
1234+
{
1235+
"name": "Sophon Sepolia Testnet",
1236+
"chainId": 531050104,
1237+
"urls": [
1238+
"https://testnet.sophscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1239+
]
12261240
}
12271241
]

foundry.lock

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"lib/forge-std": {
3+
"branch": {
4+
"name": "master",
5+
"rev": "100b0d756adda67bc70aab816fa5a1a95dcf78b6"
6+
}
7+
},
8+
"lib/openzeppelin-contracts": {
9+
"branch": {
10+
"name": "master",
11+
"rev": "51ab591cd7a47446293a0d5e285792f63cbeb1ea"
12+
}
13+
},
14+
"lib/solady": {
15+
"branch": {
16+
"name": "main",
17+
"rev": "73f13dd1483707ef6b4d16cb0543570b7e1715a8"
18+
}
19+
}
20+
}

hardhat.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,16 @@ const config: HardhatUserConfig = {
11121112
url: vars.get("PLASMA_MAINNET_URL", "https://rpc.plasma.to"),
11131113
accounts,
11141114
},
1115+
sophonTestnet: {
1116+
chainId: 531050104,
1117+
url: vars.get("SOPHON_TESTNET_URL", "https://rpc.testnet.sophon.xyz"),
1118+
accounts,
1119+
},
1120+
sophonMain: {
1121+
chainId: 50104,
1122+
url: vars.get("SOPHON_MAINNET_URL", "https://rpc.sophon.xyz"),
1123+
accounts,
1124+
},
11151125
},
11161126
contractSizer: {
11171127
alphaSort: true,
@@ -1392,6 +1402,9 @@ const config: HardhatUserConfig = {
13921402
// For Plasma testnet & mainnet
13931403
plasma: vars.get("PLASMA_API_KEY", ""),
13941404
plasmaTestnet: vars.get("PLASMA_API_KEY", ""),
1405+
// For Sophon testnet & mainnet
1406+
sophon: vars.get("SOPHON_API_KEY", ""),
1407+
sophonTestnet: vars.get("SOPHON_API_KEY", ""),
13951408
},
13961409
customChains: [
13971410
{
@@ -2608,6 +2621,22 @@ const config: HardhatUserConfig = {
26082621
browserURL: "https://testnet.plasmascan.to",
26092622
},
26102623
},
2624+
{
2625+
network: "sophon",
2626+
chainId: 50104,
2627+
urls: {
2628+
apiURL: "https://api.sophscan.xyz/api",
2629+
browserURL: "https://sophscan.xyz",
2630+
},
2631+
},
2632+
{
2633+
network: "sophonTestnet",
2634+
chainId: 531050104,
2635+
urls: {
2636+
apiURL: "https://api-testnet.sophscan.xyz/api",
2637+
browserURL: "https://testnet.sophscan.xyz",
2638+
},
2639+
},
26112640
],
26122641
},
26132642
};

interface/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"@headlessui/react": "^2.2.9",
3434
"@heroicons/react": "^2.2.0",
35-
"next": "^16.0.0",
35+
"next": "^16.0.1",
3636
"next-themes": "^0.4.6",
3737
"prismjs": "^1.30.0",
3838
"react": "^19.2.0",
@@ -41,15 +41,15 @@
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^9.38.0",
44-
"@next/eslint-plugin-next": "^16.0.0",
44+
"@next/eslint-plugin-next": "^16.0.1",
4545
"@tailwindcss/postcss": "^4.1.16",
4646
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
47-
"@types/node": "^24.9.1",
47+
"@types/node": "^24.9.2",
4848
"@types/react": "^19.2.2",
4949
"@types/react-dom": "^19.2.2",
5050
"autoprefixer": "^10.4.21",
5151
"eslint": "^9.38.0",
52-
"eslint-config-next": "^16.0.0",
52+
"eslint-config-next": "^16.0.1",
5353
"eslint-plugin-react": "^7.37.5",
5454
"eslint-plugin-react-hooks": "^7.0.1",
5555
"next-seo": "^7.0.1",

lib/forge-std

lib/solady

Submodule solady updated 88 files

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"author": "pcaversaccio (https://pcaversaccio.com), Matt Solomon (https://mattsolomon.dev)",
2323
"license": "AGPL-3.0-only",
24-
"packageManager": "pnpm@10.19.0",
24+
"packageManager": "pnpm@10.20.0",
2525
"scripts": {
2626
"clean": "npx hardhat clean && forge clean",
2727
"test": "forge test --out forge-artifacts",
@@ -221,6 +221,8 @@
221221
"deploy:katanamain": "npx hardhat run --no-compile --network katanaMain scripts/deploy.ts",
222222
"deploy:plasmatestnet": "npx hardhat run --no-compile --network plasmaTestnet scripts/deploy.ts",
223223
"deploy:plasmamain": "npx hardhat run --no-compile --network plasmaMain scripts/deploy.ts",
224+
"deploy:sophontestnet": "npx hardhat run --no-compile --network sophonTestnet scripts/deploy.ts",
225+
"deploy:sophonmain": "npx hardhat run --no-compile --network sophonMain scripts/deploy.ts",
224226
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
225227
"prettier:check:interface": "pnpm -C interface prettier:check",
226228
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",

0 commit comments

Comments
 (0)