Skip to content

Commit 7e21cb5

Browse files
➕ Add DMD Diamond Test and Main Network Deployments (pcaversaccio#272)
### 🕓 Changelog Add DMD Diamond test and main network deployments: - [DMD Diamond Testnet](https://testnet-explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed), - [DMD Diamond](https://explorer.bit.diamonds/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://testnet-rpc.bit.diamonds) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ~$ cast keccak $(cast code 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed --rpc-url https://rpc.bit.diamonds) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch> Co-authored-by: pcaversaccio <pascal.caversaccio@hotmail.ch>
1 parent d184457 commit 7e21cb5

4 files changed

Lines changed: 47 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,6 +2269,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
22692269
- [MemeCore](https://memecorescan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22702270
- [LightLink Phoenix](https://phoenix.lightlink.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22712271
- [XRPL EVM](https://explorer.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2272+
- [DMD Diamond](https://explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
22722273

22732274
#### Ethereum Test Networks
22742275

@@ -2365,6 +2366,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23652366
- [LightLink Testnet (Pegasus)](https://pegasus.lightlink.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23662367
- [XRPL EVM Testnet](https://explorer.testnet.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23672368
- [Arc Testnet](https://testnet.arcscan.app/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2369+
- [DMD Diamond Testnet](https://testnet-explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23682370

23692371
## Integration With External Tooling
23702372

deployments/deployments.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,13 @@
688688
"https://explorer.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
689689
]
690690
},
691+
{
692+
"name": "DMD Diamond",
693+
"chainId": 17771,
694+
"urls": [
695+
"https://explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
696+
]
697+
},
691698
{
692699
"name": "Sepolia",
693700
"chainId": 11155111,
@@ -1343,5 +1350,12 @@
13431350
"https://testnet.arcscan.app/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
13441351
"https://repo.sourcify.dev/5042002/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
13451352
]
1353+
},
1354+
{
1355+
"name": "DMD Diamond Testnet",
1356+
"chainId": 37373,
1357+
"urls": [
1358+
"https://testnet-explorer.bit.diamonds/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1359+
]
13461360
}
13471361
]

hardhat.config.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,16 @@ const config: HardhatUserConfig = {
12231223
url: vars.get("ARC_TESTNET_URL", "https://rpc.testnet.arc.network"),
12241224
accounts,
12251225
},
1226+
dmdTestnet: {
1227+
chainId: 37373,
1228+
url: vars.get("DMD_TESTNET_URL", "https://testnet-rpc.bit.diamonds"),
1229+
accounts,
1230+
},
1231+
dmdMain: {
1232+
chainId: 17771,
1233+
url: vars.get("DMD_MAINNET_URL", "https://rpc.bit.diamonds"),
1234+
accounts,
1235+
},
12261236
},
12271237
contractSizer: {
12281238
alphaSort: true,
@@ -1530,6 +1540,9 @@ const config: HardhatUserConfig = {
15301540
xrplEVMTestnet: vars.get("XRPLEVM_API_KEY", ""),
15311541
// For Arc testnet
15321542
arcTestnet: vars.get("ARC_API_KEY", ""),
1543+
// For DMD Diamond testnet & mainnet
1544+
dmd: vars.get("DMD_API_KEY", ""),
1545+
dmdTestnet: vars.get("DMD_API_KEY", ""),
15331546
},
15341547
customChains: [
15351548
{
@@ -2890,6 +2903,22 @@ const config: HardhatUserConfig = {
28902903
browserURL: "https://testnet.arcscan.app",
28912904
},
28922905
},
2906+
{
2907+
network: "dmd",
2908+
chainId: 17771,
2909+
urls: {
2910+
apiURL: "https://explorer.bit.diamonds/api",
2911+
browserURL: "https://explorer.bit.diamonds",
2912+
},
2913+
},
2914+
{
2915+
network: "dmdTestnet",
2916+
chainId: 37373,
2917+
urls: {
2918+
apiURL: "https://testnet-explorer.bit.diamonds/api",
2919+
browserURL: "https://testnet-explorer.bit.diamonds",
2920+
},
2921+
},
28932922
],
28942923
},
28952924
};

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@
239239
"deploy:xrplevmtestnet": "hardhat run --no-compile --network xrplEVMTestnet scripts/deploy.ts",
240240
"deploy:xrplevmmain": "hardhat run --no-compile --network xrplEVMMain scripts/deploy.ts",
241241
"deploy:arctestnet": "hardhat run --no-compile --network arcTestnet scripts/deploy.ts",
242+
"deploy:dmdtestnet": "npx hardhat run --no-compile --network dmdTestnet scripts/deploy.ts",
243+
"deploy:dmdmain": "npx hardhat run --no-compile --network dmdMain scripts/deploy.ts",
242244
"prettier:check": "prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
243245
"prettier:check:interface": "pnpm -C interface prettier:check",
244246
"prettier:fix": "prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",

0 commit comments

Comments
 (0)