Skip to content

Commit

Permalink
➕ Add Plume Test Network Deployment (#143)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add Plume test network deployment (closes #142):
- [Plume Sepolia
Testnet](https://test-explorer.plumenetwork.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://test-rpc.plumenetwork.xyz)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio authored Oct 9, 2024
1 parent 0a330cc commit bf53420
Show file tree
Hide file tree
Showing 7 changed files with 245 additions and 221 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2276,6 +2276,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [5ireChain Testnet](https://testnet.5irescan.io/contract/evm/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Oasis Sapphire Testnet](https://explorer.oasis.io/testnet/sapphire/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [World Chain Sepolia Testnet](https://worldchain-sepolia.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Plume Sepolia Testnet](https://test-explorer.plumenetwork.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
7 changes: 7 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -704,5 +704,12 @@
"urls": [
"https://worldchain-sepolia.explorer.alchemy.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Plume Sepolia Testnet",
"chainId": 98864,
"urls": [
"https://test-explorer.plumenetwork.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
15 changes: 15 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,11 @@ const config: HardhatUserConfig = {
),
accounts,
},
plumeTestnet: {
chainId: 98864,
url: vars.get("PLUME_TESTNET_URL", "https://test-rpc.plumenetwork.xyz"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -859,6 +864,8 @@ const config: HardhatUserConfig = {
// For World Chain testnet & mainnet
worldChain: vars.get("WORLD_CHAIN_API_KEY", ""),
worldChainTestnet: vars.get("WORLD_CHAIN_API_KEY", ""),
// For Plume testnet
plumeTestnet: vars.get("PLUME_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1515,6 +1522,14 @@ const config: HardhatUserConfig = {
browserURL: "https://worldchain-sepolia.explorer.alchemy.com",
},
},
{
network: "plumeTestnet",
chainId: 98864,
urls: {
apiURL: "https://test-explorer.plumenetwork.xyz/api",
browserURL: "https://test-explorer.plumenetwork.xyz",
},
},
],
},
};
Expand Down
8 changes: 4 additions & 4 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@headlessui/react": "^2.1.9",
"@heroicons/react": "^2.1.5",
"next": "^14.2.14",
"next": "^14.2.15",
"next-themes": "^0.3.0",
"prismjs": "^1.29.0",
"react": "^18.3.1",
Expand All @@ -41,22 +41,22 @@
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@next/eslint-plugin-next": "^14.2.14",
"@next/eslint-plugin-next": "^14.2.15",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.7.5",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.1",
"eslint-config-next": "^14.2.14",
"eslint-config-next": "^14.2.15",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-react-hooks": "^4.6.2",
"next-seo": "^6.6.0",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"typescript": "^5.6.3",
"typescript-eslint": "^7.18.0"
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
"deploy:sapphiremain": "npx hardhat run --no-compile --network sapphireMain scripts/deploy.ts",
"deploy:worldchaintestnet": "npx hardhat run --no-compile --network worldChainTestnet scripts/deploy.ts",
"deploy:worldchainmain": "npx hardhat run --no-compile --network worldChainMain scripts/deploy.ts",
"deploy:plumetestnet": "npx hardhat run --no-compile --network plumeTestnet scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "cd interface && pnpm prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand All @@ -168,7 +169,7 @@
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"ethers": "^6.13.3",
"hardhat": "^2.22.12",
"hardhat": "^2.22.13",
"hardhat-abi-exporter": "^2.10.1",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.1",
Expand All @@ -177,7 +178,7 @@
"solhint": "^5.0.3",
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.6.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.8.1"
}
}
Loading

0 comments on commit bf53420

Please sign in to comment.