Skip to content

Commit d23c7d4

Browse files
authored
➕ Add Plasma Test and Main Network Deployments (pcaversaccio#239)
### 🕓 Changelog Add Plasma test and main network deployments (resolves pcaversaccio#238): - [Plasma Testnet](https://testnet.plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [Plasma](https://plasmascan.to/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://testnet-rpc.plasma.to) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.plasma.to) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
1 parent bd66334 commit d23c7d4

7 files changed

Lines changed: 126 additions & 77 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
22592259
- [Botanix](https://botanixscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22602260
- [TAC](https://explorer.tac.build/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22612261
- [Katana](https://explorer.katanarpc.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2262+
- [Plasma](https://plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22622263

22632264
#### Ethereum Test Networks
22642265

@@ -2346,6 +2347,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23462347
- [ApeChain Sepolia Testnet (Curtis)](https://curtis.apescan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23472348
- [Botanix Testnet](https://testnet.botanixscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23482349
- [TAC Testnet (Saint Petersburg)](https://spb.explorer.tac.build/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2350+
- [Plasma Testnet](https://testnet.plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23492351

23502352
## Integration With External Tooling
23512353

deployments/deployments.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,13 @@
617617
"https://explorer.katanarpc.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
618618
]
619619
},
620+
{
621+
"name": "Plasma",
622+
"chainId": 9745,
623+
"urls": [
624+
"https://plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
625+
]
626+
},
620627
{
621628
"name": "Sepolia",
622629
"chainId": 11155111,
@@ -1210,5 +1217,12 @@
12101217
"urls": [
12111218
"https://spb.explorer.tac.build/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
12121219
]
1220+
},
1221+
{
1222+
"name": "Plasma Testnet",
1223+
"chainId": 9746,
1224+
"urls": [
1225+
"https://testnet.plasmascan.to/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1226+
]
12131227
}
12141228
]

hardhat.config.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,16 @@ const config: HardhatUserConfig = {
11021102
url: vars.get("KATANA_MAINNET_URL", "https://rpc.katana.network"),
11031103
accounts,
11041104
},
1105+
plasmaTestnet: {
1106+
chainId: 9746,
1107+
url: vars.get("PLASMA_TESTNET_URL", "https://testnet-rpc.plasma.to"),
1108+
accounts,
1109+
},
1110+
plasmaMain: {
1111+
chainId: 9745,
1112+
url: vars.get("PLASMA_MAINNET_URL", "https://rpc.plasma.to"),
1113+
accounts,
1114+
},
11051115
},
11061116
contractSizer: {
11071117
alphaSort: true,
@@ -1379,6 +1389,9 @@ const config: HardhatUserConfig = {
13791389
neonTestnet: vars.get("NEON_API_KEY", ""),
13801390
// For Katana mainnet
13811391
katana: vars.get("KATANA_API_KEY", ""),
1392+
// For Plasma testnet & mainnet
1393+
plasma: vars.get("PLASMA_API_KEY", ""),
1394+
plasmaTestnet: vars.get("PLASMA_API_KEY", ""),
13821395
},
13831396
customChains: [
13841397
{
@@ -2577,6 +2590,24 @@ const config: HardhatUserConfig = {
25772590
browserURL: "https://explorer.katanarpc.com",
25782591
},
25792592
},
2593+
{
2594+
network: "plasma",
2595+
chainId: 9745,
2596+
urls: {
2597+
apiURL:
2598+
"https://api.routescan.io/v2/network/mainnet/evm/9745/etherscan",
2599+
browserURL: "https://plasmascan.to",
2600+
},
2601+
},
2602+
{
2603+
network: "plasmaTestnet",
2604+
chainId: 9746,
2605+
urls: {
2606+
apiURL:
2607+
"https://api.routescan.io/v2/network/mainnet/evm/9746/etherscan",
2608+
browserURL: "https://testnet.plasmascan.to",
2609+
},
2610+
},
25802611
],
25812612
},
25822613
};

interface/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"@headlessui/react": "^2.2.7",
3434
"@heroicons/react": "^2.2.0",
35-
"next": "^15.5.2",
35+
"next": "^15.5.3",
3636
"next-themes": "^0.4.6",
3737
"prismjs": "^1.30.0",
3838
"react": "^19.1.1",
@@ -41,15 +41,15 @@
4141
},
4242
"devDependencies": {
4343
"@eslint/js": "^9.35.0",
44-
"@next/eslint-plugin-next": "^15.5.2",
44+
"@next/eslint-plugin-next": "^15.5.3",
4545
"@tailwindcss/postcss": "^4.1.13",
4646
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
4747
"@types/node": "^24.3.1",
4848
"@types/react": "^19.1.12",
4949
"@types/react-dom": "^19.1.9",
5050
"autoprefixer": "^10.4.21",
5151
"eslint": "^9.35.0",
52-
"eslint-config-next": "^15.5.2",
52+
"eslint-config-next": "^15.5.3",
5353
"eslint-plugin-react": "^7.37.5",
5454
"eslint-plugin-react-hooks": "^5.2.0",
5555
"next-seo": "^6.8.0",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@
219219
"deploy:neontestnet": "npx hardhat run --no-compile --network neonTestnet scripts/deploy.ts",
220220
"deploy:neonmain": "npx hardhat run --no-compile --network neonMain scripts/deploy.ts",
221221
"deploy:katanamain": "npx hardhat run --no-compile --network katanaMain scripts/deploy.ts",
222+
"deploy:plasmatestnet": "npx hardhat run --no-compile --network plasmaTestnet scripts/deploy.ts",
223+
"deploy:plasmamain": "npx hardhat run --no-compile --network plasmaMain scripts/deploy.ts",
222224
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
223225
"prettier:check:interface": "pnpm -C interface prettier:check",
224226
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",

0 commit comments

Comments
 (0)