From 1730238e29e5e54d5fca414c0400a209ca352d05 Mon Sep 17 00:00:00 2001 From: Igor Sobolev Date: Fri, 27 Sep 2024 17:45:56 +0100 Subject: [PATCH] xlayer deployment --- hardhat.config.ts | 12 ++++++++++++ package.json | 2 +- scripts/deployment.js | 5 +++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 2cdf03eb..7dc33745 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -111,6 +111,9 @@ const config: HardhatUserConfig = { taiko: { url: 'https://rpc.zerion.io/v1/taiko', }, + xlayer: { + url: 'https://rpc.zerion.io/v1/okbchain', + }, zora: { url: 'https://rpc.zora.energy', }, @@ -135,6 +138,7 @@ const config: HardhatUserConfig = { 'polygon-zkevm': process.env.POLYGON_ZKEVM_API_KEY ? process.env.POLYGON_ZKEVM_API_KEY.toString() : '', scroll: process.env.SCROLL_API_KEY ? process.env.SCROLL_API_KEY.toString() : '', taiko: process.env.TAIKO_API_KEY ? process.env.TAIKO_API_KEY.toString() : '', + xlayer: process.env.XLAYER_API_KEY ? process.env.XLAYER_API_KEY.toString() : '', zora: "zora", }, customChains: [ @@ -210,6 +214,14 @@ const config: HardhatUserConfig = { browserURL: "https://explorer.mode.network" } }, + { + network: "xlayer", + chainId: 196, + urls: { + apiURL: "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER", + browserURL: "https://www.okx.com/web3/explorer/xlayer" + } + }, ], }, docgen: { diff --git a/package.json b/package.json index cc8829bb..790449f5 100755 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "deploy:univ2caller": "npx hardhat run scripts/deploy_uniswap_v2_caller.js --network truffle-dashboard", "deploy:univ3caller": "npx hardhat run scripts/deploy_uniswap_v3_caller.js --network truffle-dashboard", "initialize:router": "npx hardhat run scripts/setup_router_fee.js --network truffle-dashboard", - "verify": "npx hardhat run scripts/verify.js --network base", + "verify": "npx hardhat run scripts/verify.js --network xlayer", "docs:serve": "npx @techdocs/cli serve:mkdocs -p 3333" }, "lint-staged": { diff --git a/scripts/deployment.js b/scripts/deployment.js index dff997f5..86bd2e90 100644 --- a/scripts/deployment.js +++ b/scripts/deployment.js @@ -4,6 +4,7 @@ const deploymentAddresses = { 56: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', 100: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', 137: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', + 196: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', 250: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', 324: '0xe4C82643A4F9Fd288322cc6fBd7C48AB068B38D3', 1101: '0xd7F1Dd5D49206349CaE8b585fcB0Ce3D96f1696F', @@ -26,6 +27,7 @@ const deploymentAddresses = { 56: '0xC629Bf86f02ef13E8F1f5F75adE8a8165587998F', 100: '0xC629Bf86f02ef13E8F1f5F75adE8a8165587998F', 137: '0xC629Bf86f02ef13E8F1f5F75adE8a8165587998F', + 196: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE', 250: '0xC629Bf86f02ef13E8F1f5F75adE8a8165587998F', 324: '0xB18Bb3d1775f9a1AdFF9Bc14CcCe1510A55148D9', 1101: '0xC629Bf86f02ef13E8F1f5F75adE8a8165587998F', @@ -47,6 +49,7 @@ const deploymentAddresses = { 56: '0xE81B24bcD0a706ae3Ece36C42CF96c010EEeF37a', 100: '0xE81B24bcD0a706ae3Ece36C42CF96c010EEeF37a', 137: '0x53F5D89914327C3900FC2C9D297B9B30129F463e', + 196: '0xE81B24bcD0a706ae3Ece36C42CF96c010EEeF37a', 250: '0xE81B24bcD0a706ae3Ece36C42CF96c010EEeF37a', 1101: '0xe76BA87E04555e1a5afcCb0c8c5AC4d0b29e3dBE', 5000: '0xE81B24bcD0a706ae3Ece36C42CF96c010EEeF37a', @@ -68,6 +71,7 @@ const deploymentAddresses = { 56: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 100: '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', 137: '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', + 196: '0x5A77f1443D16ee5761d310e38b62f77f726bC71c', 250: '0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83', 1101: '0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9', 5000: '0xdEAddEaDdeadDEadDEADDEAddEADDEAddead1111', @@ -87,6 +91,7 @@ const deploymentAddresses = { 56: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54', 100: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54', 137: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54', + 196: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54', 250: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54', 324: '0x5d4C06f4d54bD901b4377241DAB6447b8E19d75c', 1101: '0x4a183b7ED67B9E14b3f45Abfb2Cf44ed22c29E54',