From 8ad83be2b54ac6282247c65c10d587f0ee0fca53 Mon Sep 17 00:00:00 2001 From: shelchin2023 <149349405+shelchin2023@users.noreply.github.com> Date: Mon, 18 Mar 2024 19:09:26 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20Endurance=20Main=20and=20Test?= =?UTF-8?q?=20Network=20Deployments=20(#97)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shelchin2023 <149349405+shelchin2023@users.noreply.github.com> Signed-off-by: Pascal Marco Caversaccio Co-authored-by: Shelchin Co-authored-by: Pascal Marco Caversaccio --- README.md | 2 ++ deployments/deployments.json | 15 +++++++++++++++ hardhat.config.ts | 36 +++++++++++++++++++++++++++++++++++- package.json | 2 ++ 4 files changed, 54 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9abc1c1a..9482d0e6 100644 --- a/README.md +++ b/README.md @@ -2204,6 +2204,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer - [Manta Pacific](https://pacific-explorer.manta.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [Blast](https://blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [DOS Chain](https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) +- [Endurance](https://explorer-endurance.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) #### Ethereum Test Networks @@ -2241,6 +2242,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer - [Blast Testnet](https://sepolia.blastscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [DOS Chain Testnet](https://test.doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [Fraxtal Testnet](https://holesky.fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) +- [Endurance Testnet](https://myexplorertestnet.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) ## Integration With External Tooling diff --git a/deployments/deployments.json b/deployments/deployments.json index 3d589428..a7774ff8 100644 --- a/deployments/deployments.json +++ b/deployments/deployments.json @@ -231,6 +231,14 @@ "https://doscan.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed" ] }, + { + "name": "Endurance", + "chainId": 648, + "urls": [ + "https://explorer-endurance.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed", + "https://repo.sourcify.dev/contracts/partial_match/648/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/" + ] + }, { "name": "Sepolia", "chainId": 11155111, @@ -462,5 +470,12 @@ "urls": [ "https://holesky.fraxscan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed" ] + }, + { + "name": "Endurance Testnet", + "chainId": 6480, + "urls": [ + "https://myexplorertestnet.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed" + ] } ] diff --git a/hardhat.config.ts b/hardhat.config.ts index cc12a012..37853a3f 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -432,6 +432,14 @@ const config: HardhatUserConfig = { url: vars.get("FRAME_TESTNET_URL", "https://rpc.testnet.frame.xyz/http"), accounts, }, + enduranceTestnet: { + chainId: 6480, + url: vars.get( + "ENDURANCE_TESTNET_URL", + "https://myrpctestnet.fusionist.io", + ), + accounts, + }, openduranceTestnet: { chainId: 6480001001, url: vars.get( @@ -440,6 +448,14 @@ const config: HardhatUserConfig = { ), accounts, }, + enduranceMain: { + chainId: 648, + url: vars.get( + "ENDURANCE_MAINNET_URL", + "https://rpc-endurance.fusionist.io", + ), + accounts, + }, blastTestnet: { chainId: 168587773, url: vars.get("BLAST_TESTNET_URL", "https://sepolia.blast.io"), @@ -594,7 +610,9 @@ const config: HardhatUserConfig = { mantaTestnet: vars.get("MANTA_API_KEY", ""), // For Arthera testnet artheraTestnet: vars.get("ARTHERA_API_KEY", ""), - // For OP-Endurance testnet + // For Endurance testnets & mainnet + endurance: vars.get("ENDURANCE_API_KEY", ""), + enduranceTestnet: vars.get("ENDURANCE_API_KEY", ""), openduranceTestnet: vars.get("OPENDURANCE_API_KEY", ""), // For Blast testnet & mainnet blast: vars.get("BLAST_API_KEY", ""), @@ -915,6 +933,22 @@ const config: HardhatUserConfig = { browserURL: "https://explorer-test.arthera.net", }, }, + { + network: "endurance", + chainId: 648, + urls: { + apiURL: "https://explorer-endurance.fusionist.io/api", + browserURL: "https://explorer-endurance.fusionist.io", + }, + }, + { + network: "enduranceTestnet", + chainId: 6480, + urls: { + apiURL: "https://myexplorertestnet.fusionist.io/api", + browserURL: "https://myexplorertestnet.fusionist.io", + }, + }, { network: "openduranceTestnet", chainId: 6480001001, diff --git a/package.json b/package.json index 0ba84a20..de5fea15 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,9 @@ "deploy:shardeumtestnet": "npx hardhat run --no-compile --network shardeumTestnet scripts/deploy.ts", "deploy:artheratestnet": "npx hardhat run --no-compile --network artheraTestnet scripts/deploy.ts", "deploy:frametestnet": "npx hardhat run --no-compile --network frameTestnet scripts/deploy.ts", + "deploy:endurancetestnet": "npx hardhat run --no-compile --network enduranceTestnet scripts/deploy.ts", "deploy:opendurancetestnet": "npx hardhat run --no-compile --network openduranceTestnet scripts/deploy.ts", + "deploy:endurancemain": "npx hardhat run --no-compile --network enduranceMain scripts/deploy.ts", "deploy:blasttestnet": "npx hardhat run --no-compile --network blastTestnet scripts/deploy.ts", "deploy:blastmain": "npx hardhat run --no-compile --network blastMain scripts/deploy.ts", "deploy:kromatestnet": "npx hardhat run --no-compile --network kromaTestnet scripts/deploy.ts",