Skip to content

Commit

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

Add Chiliz Spicy test network deployment (closes #121):
- [Chiliz Testnet
(Spicy)](https://testnet.chiliscan.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://spicy-rpc.chiliz.com)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

> This marks another milestone for `CreateX`, as the contract is now
deployed across 80 chains!

---------

Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio authored Jun 27, 2024
1 parent d78bd6c commit 6ec1f7b
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 69 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2258,6 +2258,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Core Testnet](https://scan.test.btcs.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Telos Testnet](https://testnet.teloscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Rootstock Testnet](https://rootstock-testnet.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Chiliz Testnet (Spicy)](https://testnet.chiliscan.com/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 @@ -602,5 +602,12 @@
"urls": [
"https://rootstock-testnet.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Chiliz Testnet (Spicy)",
"chainId": 88882,
"urls": [
"https://testnet.chiliscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
16 changes: 16 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,11 @@ const config: HardhatUserConfig = {
url: vars.get("ROOTSTOCK_MAINNET_URL", "https://public-node.rsk.co"),
accounts,
},
chilizTestnet: {
chainId: 88882,
url: vars.get("CHILIZ_TESTNET_URL", "https://spicy-rpc.chiliz.com"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -743,6 +748,8 @@ const config: HardhatUserConfig = {
// For Rootstock testnet & mainnet
rootstock: vars.get("ROOTSTOCK_API_KEY", ""),
rootstockTestnet: vars.get("ROOTSTOCK_API_KEY", ""),
// For Chiliz testnet
chilizTestnet: vars.get("CHILIZ_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1269,6 +1276,15 @@ const config: HardhatUserConfig = {
browserURL: "https://rootstock-testnet.blockscout.com",
},
},
{
network: "chilizTestnet",
chainId: 88882,
urls: {
apiURL:
"https://api.routescan.io/v2/network/testnet/evm/88882/etherscan/api",
browserURL: "https://testnet.chiliscan.com",
},
},
],
},
};
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"lint:fix": "pnpm prettier:fix && npx eslint . --fix"
},
"dependencies": {
"@headlessui/react": "^2.1.0",
"@headlessui/react": "^2.1.1",
"@heroicons/react": "^2.1.4",
"next": "^14.2.4",
"next-themes": "^0.3.0",
Expand All @@ -43,7 +43,7 @@
"@eslint/js": "^9.5.0",
"@next/eslint-plugin-next": "^14.2.4",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.14.8",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.19",
Expand Down
2 changes: 1 addition & 1 deletion interface/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Home = () => {
id: 1,
href: "/deployments",
title: "Deployments",
subtitle: "Deployed on 70+ chains",
subtitle: "Deployed on 80+ chains",
},
{ id: 2, href: "/abi", title: "ABI", subtitle: "In any format" },
{
Expand Down
2 changes: 1 addition & 1 deletion lib/forge-std
2 changes: 1 addition & 1 deletion lib/solady
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"deploy:telosmain": "npx hardhat run --no-compile --network telosMain scripts/deploy.ts",
"deploy:rootstocktestnet": "npx hardhat run --no-compile --network rootstockTestnet scripts/deploy.ts",
"deploy:rootstockmain": "npx hardhat run --no-compile --network rootstockMain scripts/deploy.ts",
"deploy:chiliztestnet": "npx hardhat run --no-compile --network chilizTestnet 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 Down
Loading

0 comments on commit 6ec1f7b

Please sign in to comment.