Skip to content

Commit

Permalink
➕ Add Ink/Morph Test and Main Network Deployments (#169)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Add Ink/Morph test and main network deployments:
- [Ink Sepolia
Testnet](https://explorer-sepolia.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
-
[Ink](https://explorer.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
- [Morph Holešky
Testnet](https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed),
-
[Morph](https://explorer.morphl2.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-gel-sepolia.inkonchain.com)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc-gel.inkonchain.com)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc-quicknode-holesky.morphl2.io)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc-quicknode.morphl2.io)
0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f
```

---------

Signed-off-by: Pascal Marco Caversaccio <[email protected]>
  • Loading branch information
pcaversaccio authored Jan 12, 2025
1 parent 98490dd commit a0abca4
Show file tree
Hide file tree
Showing 7 changed files with 118 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Superseed](https://explorer.superseed.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Sonic](https://sonicscan.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [EVM on Flow](https://evm.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Ink](https://explorer.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Morph](https://explorer.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

#### Ethereum Test Networks

Expand Down Expand Up @@ -2294,6 +2296,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
- [Story Testnet (Odyssey)](https://odyssey.storyscan.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Sonic Testnet (Blaze)](https://testnet.sonicscan.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [EVM on Flow Testnet](https://evm-testnet.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Ink Sepolia Testnet](https://explorer-sepolia.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
- [Morph Holešky Testnet](https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)

## Integration With External Tooling

Expand Down
28 changes: 28 additions & 0 deletions deployments/deployments.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,20 @@
"https://evm.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Ink",
"chainId": 57073,
"urls": [
"https://explorer.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Morph",
"chainId": 2818,
"urls": [
"https://explorer.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Sepolia",
"chainId": 11155111,
Expand Down Expand Up @@ -832,5 +846,19 @@
"urls": [
"https://evm-testnet.flowscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Ink Sepolia Testnet",
"chainId": 763373,
"urls": [
"https://explorer-sepolia.inkonchain.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
},
{
"name": "Morph Holešky Testnet",
"chainId": 2810,
"urls": [
"https://explorer-holesky.morphl2.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
]
}
]
64 changes: 64 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,32 @@ const config: HardhatUserConfig = {
url: vars.get("FLOW_MAINNET_URL", "https://mainnet.evm.nodes.onflow.org"),
accounts,
},
inkTestnet: {
chainId: 763373,
url: vars.get(
"INK_TESTNET_URL",
"https://rpc-gel-sepolia.inkonchain.com",
),
accounts,
},
inkMain: {
chainId: 57073,
url: vars.get("INK_MAINNET_URL", "https://rpc-gel.inkonchain.com"),
accounts,
},
morphTestnet: {
chainId: 2810,
url: vars.get(
"MORPH_TESTNET_URL",
"https://rpc-quicknode-holesky.morphl2.io",
),
accounts,
},
morphMain: {
chainId: 2818,
url: vars.get("MORPH_MAINNET_URL", "https://rpc-quicknode.morphl2.io"),
accounts,
},
},
contractSizer: {
alphaSort: true,
Expand Down Expand Up @@ -980,6 +1006,12 @@ const config: HardhatUserConfig = {
// For EVM on Flow testnet & mainnet
flow: vars.get("FLOW_API_KEY", ""),
flowTestnet: vars.get("FLOW_API_KEY", ""),
// For Ink testnet & mainnet
ink: vars.get("INK_API_KEY", ""),
inkTestnet: vars.get("INK_API_KEY", ""),
// For Morph testnet & mainnet
morph: vars.get("MORPH_API_KEY", ""),
morphTestnet: vars.get("MORPH_API_KEY", ""),
},
customChains: [
{
Expand Down Expand Up @@ -1780,6 +1812,38 @@ const config: HardhatUserConfig = {
browserURL: "https://evm-testnet.flowscan.io",
},
},
{
network: "ink",
chainId: 57073,
urls: {
apiURL: "https://explorer.inkonchain.com/api",
browserURL: "https://explorer.inkonchain.com",
},
},
{
network: "inkTestnet",
chainId: 763373,
urls: {
apiURL: "https://explorer-sepolia.inkonchain.com/api",
browserURL: "https://explorer-sepolia.inkonchain.com",
},
},
{
network: "morph",
chainId: 2818,
urls: {
apiURL: "https://explorer.morphl2.io/api",
browserURL: "https://explorer.morphl2.io",
},
},
{
network: "morphTestnet",
chainId: 2810,
urls: {
apiURL: "https://explorer-holesky.morphl2.io/api",
browserURL: "https://explorer-holesky.morphl2.io",
},
},
],
},
};
Expand Down
4 changes: 2 additions & 2 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"@next/eslint-plugin-next": "^15.1.4",
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
"@types/node": "^22.10.5",
"@types/react": "^19.0.4",
"@types/react-dom": "^19.0.2",
"@types/react": "^19.0.5",
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.18.0",
"eslint-config-next": "^15.1.4",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@
"deploy:sonicmain": "npx hardhat run --no-compile --network sonicMain scripts/deploy.ts",
"deploy:flowtestnet": "npx hardhat run --no-compile --network flowTestnet scripts/deploy.ts",
"deploy:flowmain": "npx hardhat run --no-compile --network flowMain scripts/deploy.ts",
"deploy:inktestnet": "npx hardhat run --no-compile --network inkTestnet scripts/deploy.ts",
"deploy:inkmain": "npx hardhat run --no-compile --network inkMain scripts/deploy.ts",
"deploy:morphtestnet": "npx hardhat run --no-compile --network morphTestnet scripts/deploy.ts",
"deploy:morphmain": "npx hardhat run --no-compile --network morphMain scripts/deploy.ts",
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
"prettier:check:interface": "pnpm -C interface prettier:check",
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
Expand Down
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0abca4

Please sign in to comment.