Skip to content

Commit

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

Add Taiko test and main network deployments:
- [Taiko Holešky
Testnet](https://hekla.taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
-
[Taiko](https://taikoscan.io/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.hekla.taiko.xyz)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.taiko.xyz)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------
Signed-off-by: Pascal Marco Caversaccio <pascal.caversaccio@hotmail.ch>
  • Loading branch information
pcaversaccio authored Aug 21, 2024
1 parent 0e6c173 commit 7b9fd88
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 127 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2217,6 +2217,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Chiliz](https://chiliscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Taraxa](https://mainnet.explorer.taraxa.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Gravity Alpha](https://explorer.gravity.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Taiko](https://taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2263,6 +2264,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Rootstock Testnet](https://rootstock-testnet.blockscout.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Chiliz Testnet (Spicy)](https://testnet.chiliscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Taraxa Testnet](https://testnet.explorer.taraxa.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Taiko Holešky Testnet](https://hekla.taikoscan.io/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 @@ -331,6 +331,13 @@
"https://explorer.gravity.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Taiko",
"chainId": 167000,
"urls": [
"https://taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -630,5 +637,12 @@
"urls": [
"https://testnet.explorer.taraxa.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Taiko Holešky Testnet",
"chainId": 167009,
"urls": [
"https://hekla.taikoscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
29 changes: 29 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,16 @@ const config: HardhatUserConfig = {
url: vars.get("GRAVITY_ALPHA_MAINNET_URL", "https://rpc.gravity.xyz"),
accounts,
},
taikoTestnet: {
chainId: 167009,
url: vars.get("TAIKO_TESTNET_URL", "https://rpc.hekla.taiko.xyz"),
accounts,
},
taikoMain: {
chainId: 167000,
url: vars.get("TAIKO_MAINNET_URL", "https://rpc.taiko.xyz"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -782,6 +792,9 @@ const config: HardhatUserConfig = {
// For Gravity Alpha testnet & mainnet
gravityAlpha: vars.get("GRAVITY_ALPHA_API_KEY", ""),
gravityAlphaTestnet: vars.get("GRAVITY_ALPHA_API_KEY", ""),
// For Taiko testnet & mainnet
taiko: vars.get("TAIKO_API_KEY", ""),
taikoTestnet: vars.get("TAIKO_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1358,6 +1371,22 @@ const config: HardhatUserConfig = {
browserURL: "https://explorer-sepolia.gravity.xyz",
},
},
{
network: "taiko",
chainId: 167000,
urls: {
apiURL: "https://api.taikoscan.io/api",
browserURL: "https://taikoscan.io",
},
},
{
network: "taikoTestnet",
chainId: 167009,
urls: {
apiURL: "https://api-hekla.taikoscan.io/api",
browserURL: "https://hekla.taikoscan.io",
},
},
],
},
};
Expand Down
2 changes: 1 addition & 1 deletion interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@eslint/js": "^9.9.0",
"@next/eslint-plugin-next": "^14.2.5",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^22.4.0",
"@types/node": "^22.4.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
Expand Down
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
"deploy:taraxamain": "npx hardhat run --no-compile --network taraxaMain scripts/deploy.ts",
"deploy:gravityalphatestnet": "npx hardhat run --no-compile --network gravityAlphaTestnet scripts/deploy.ts",
"deploy:gravityalphamain": "npx hardhat run --no-compile --network gravityAlphaMain scripts/deploy.ts",
"deploy:taikotestnet": "npx hardhat run --no-compile --network taikoTestnet scripts/deploy.ts",
"deploy:taikomain": "npx hardhat run --no-compile --network taikoMain 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 Expand Up @@ -168,6 +170,6 @@
"ts-node": "^10.9.2",
"typechain": "^8.3.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.1.0"
"typescript-eslint": "^8.2.0"
}
}
Loading

0 comments on commit 7b9fd88

Please sign in to comment.