Skip to content

Commit edb207a

Browse files
authored
➕ Add Arc Test Network Deployment (#267)
### 🕓 Changelog Add Arc test network deployment (resolves #266): - [Arc Testnet](https://testnet.arcscan.app/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.arc.network) 0xbd8a7ea8cfca7b4e5f5041d7d4b17bc317c5ce42cfbc42066a00cf26b43eb53f ``` --------- Signed-off-by: pcaversaccio <pascal.caversaccio@hotmail.ch>
1 parent 894c58b commit edb207a

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer
23632363
- [MemeCore Testnet (Insectarium)](https://insectarium.blockscout.memecore.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23642364
- [LightLink Testnet (Pegasus)](https://pegasus.lightlink.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23652365
- [XRPL EVM Testnet](https://explorer.testnet.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
2366+
- [Arc Testnet](https://testnet.arcscan.app/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed)
23662367

23672368
## Integration With External Tooling
23682369

deployments/deployments.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,5 +1328,13 @@
13281328
"urls": [
13291329
"https://explorer.testnet.xrplevm.org/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
13301330
]
1331+
},
1332+
{
1333+
"name": "Arc Testnet",
1334+
"chainId": 5042002,
1335+
"urls": [
1336+
"https://testnet.arcscan.app/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed",
1337+
"https://repo.sourcify.dev/5042002/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed"
1338+
]
13311339
}
13321340
]

hardhat.config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,11 @@ const config: HardhatUserConfig = {
12131213
url: vars.get("XRPLEVM_MAINNET_URL", "https://rpc.xrplevm.org"),
12141214
accounts,
12151215
},
1216+
arcTestnet: {
1217+
chainId: 5042002,
1218+
url: vars.get("ARC_TESTNET_URL", "https://rpc.testnet.arc.network"),
1219+
accounts,
1220+
},
12161221
},
12171222
contractSizer: {
12181223
alphaSort: true,
@@ -1515,6 +1520,8 @@ const config: HardhatUserConfig = {
15151520
// For XRPL EVM testnet & mainnet
15161521
xrplEVM: vars.get("XRPLEVM_API_KEY", ""),
15171522
xrplEVMTestnet: vars.get("XRPLEVM_API_KEY", ""),
1523+
// For Arc testnet
1524+
arcTestnet: vars.get("ARC_API_KEY", ""),
15181525
},
15191526
customChains: [
15201527
{
@@ -2851,6 +2858,14 @@ const config: HardhatUserConfig = {
28512858
browserURL: "https://explorer.testnet.xrplevm.org",
28522859
},
28532860
},
2861+
{
2862+
network: "arcTestnet",
2863+
chainId: 5042002,
2864+
urls: {
2865+
apiURL: "https://testnet.arcscan.app/api",
2866+
browserURL: "https://testnet.arcscan.app",
2867+
},
2868+
},
28542869
],
28552870
},
28562871
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
"deploy:lightlinkmain": "npx hardhat run --no-compile --network lightlinkMain scripts/deploy.ts",
238238
"deploy:xrplevmtestnet": "npx hardhat run --no-compile --network xrplEVMTestnet scripts/deploy.ts",
239239
"deploy:xrplevmmain": "npx hardhat run --no-compile --network xrplEVMMain scripts/deploy.ts",
240+
"deploy:arctestnet": "npx hardhat run --no-compile --network arcTestnet scripts/deploy.ts",
240241
"prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"",
241242
"prettier:check:interface": "pnpm -C interface prettier:check",
242243
"prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)