Skip to content

Commit 59ad399

Browse files
authored
➕ Add Citrea/Tempo Test and Citrea Main Network Deployments (#273)
### 🕓 Changelog Add Citrea/Tempo test and Citrea main network deployments: - [Citrea Testnet](https://explorer.testnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [Citrea](https://explorer.mainnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [Tempo Testnet (Moderato)](https://explore.tempo.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://rpc.testnet.citrea.xyz) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.mainnet.citrea.xyz) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.moderato.tempo.xyz) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch>
1 parent 7e21cb5 commit 59ad399

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,6 +2270,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
22702270
- [LightLink Phoenix](https://phoenix.lightlink.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22712271
- [XRPL EVM](https://explorer.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22722272
- [DMD Diamond](https://explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2273+
- [Citrea](https://explorer.mainnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22732274

22742275
#### Ethereum Test Networks
22752276

@@ -2367,6 +2368,8 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23672368
- [XRPL EVM Testnet](https://explorer.testnet.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23682369
- [Arc Testnet](https://testnet.arcscan.app/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23692370
- [DMD Diamond Testnet](https://testnet-explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2371+
- [Citrea Testnet](https://explorer.testnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2372+
- [Tempo Testnet (Moderato)](https://explore.tempo.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23702373

23712374
## Integration With External Tooling
23722375

deployments/deployments.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,13 @@
695695
"https://explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
696696
]
697697
},
698+
{
699+
"name": "Citrea",
700+
"chainId": 4114,
701+
"urls": [
702+
"https://explorer.mainnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
703+
]
704+
},
698705
{
699706
"name": "Sepolia",
700707
"chainId": 11155111,
@@ -1357,5 +1364,21 @@
13571364
"urls": [
13581365
"https://testnet-explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
13591366
]
1367+
},
1368+
{
1369+
"name": "Citrea Testnet",
1370+
"chainId": 5115,
1371+
"urls": [
1372+
"https://explorer.testnet.citrea.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
1373+
"https://repo.sourcify.dev/5115/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1374+
]
1375+
},
1376+
{
1377+
"name": "Tempo Testnet (Moderato)",
1378+
"chainId": 42431,
1379+
"urls": [
1380+
"https://explore.tempo.xyz/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
1381+
"https://repo.sourcify.dev/42431/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1382+
]
13601383
}
13611384
]

hardhat.config.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,21 @@ const config: HardhatUserConfig = {
12331233
url: vars.get("DMD_MAINNET_URL", "https://rpc.bit.diamonds"),
12341234
accounts,
12351235
},
1236+
citreaTestnet: {
1237+
chainId: 5115,
1238+
url: vars.get("CITREA_TESTNET_URL", "https://rpc.testnet.citrea.xyz"),
1239+
accounts,
1240+
},
1241+
citreaMain: {
1242+
chainId: 4114,
1243+
url: vars.get("CITREA_MAINNET_URL", "https://rpc.mainnet.citrea.xyz"),
1244+
accounts,
1245+
},
1246+
tempoTestnet: {
1247+
chainId: 42431,
1248+
url: vars.get("TEMPO_TESTNET_URL", "https://rpc.moderato.tempo.xyz"),
1249+
accounts,
1250+
},
12361251
},
12371252
contractSizer: {
12381253
alphaSort: true,
@@ -1543,6 +1558,11 @@ const config: HardhatUserConfig = {
15431558
// For DMD Diamond testnet & mainnet
15441559
dmd: vars.get("DMD_API_KEY", ""),
15451560
dmdTestnet: vars.get("DMD_API_KEY", ""),
1561+
// For Citrea testnet & mainnet
1562+
citrea: vars.get("CITREA_API_KEY", ""),
1563+
citreaTestnet: vars.get("CITREA_API_KEY", ""),
1564+
// For Tempo testnet
1565+
tempoTestnet: vars.get("TEMPO_API_KEY", ""),
15461566
},
15471567
customChains: [
15481568
{
@@ -2919,6 +2939,30 @@ const config: HardhatUserConfig = {
29192939
browserURL: "https://testnet-explorer.bit.diamonds",
29202940
},
29212941
},
2942+
{
2943+
network: "citrea",
2944+
chainId: 4114,
2945+
urls: {
2946+
apiURL: "https://explorer.mainnet.citrea.xyz/api",
2947+
browserURL: "https://explorer.mainnet.citrea.xyz",
2948+
},
2949+
},
2950+
{
2951+
network: "citreaTestnet",
2952+
chainId: 5115,
2953+
urls: {
2954+
apiURL: "https://explorer.testnet.citrea.xyz/api",
2955+
browserURL: "https://explorer.testnet.citrea.xyz",
2956+
},
2957+
},
2958+
{
2959+
network: "tempoTestnet",
2960+
chainId: 42431,
2961+
urls: {
2962+
apiURL: "https://contracts.tempo.xyz/v2/verify/42431",
2963+
browserURL: "https://explore.tempo.xyz",
2964+
},
2965+
},
29222966
],
29232967
},
29242968
};

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@
241241
"deploy:arctestnet": "hardhat run --no-compile --network arcTestnet scripts/deploy.ts",
242242
"deploy:dmdtestnet": "npx hardhat run --no-compile --network dmdTestnet scripts/deploy.ts",
243243
"deploy:dmdmain": "npx hardhat run --no-compile --network dmdMain scripts/deploy.ts",
244+
"deploy:citreatestnet": "npx hardhat run --no-compile --network citreaTestnet scripts/deploy.ts",
245+
"deploy:citreamain": "npx hardhat run --no-compile --network citreaMain scripts/deploy.ts",
246+
"deploy:tempotestnet": "npx hardhat run --no-compile --network tempoTestnet scripts/deploy.ts",
244247
"prettier:check": "prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
245248
"prettier:check:interface": "pnpm -C interface prettier:check",
246249
"prettier:fix": "prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",

0 commit comments

Comments
 (0)