From dfe13f27599b00efcb31777589fe964516896a18 Mon Sep 17 00:00:00 2001 From: Ivan Zhelyazkov Date: Mon, 27 May 2024 14:57:37 +0300 Subject: [PATCH] add sei deployment config --- .env.example | 2 ++ hardhat.config.ts | 16 ++++++++++++++++ utils/Constants.ts | 3 ++- utils/chainIds.json | 1 + utils/rpcUrls.json | 3 ++- 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 5a723bba..eab7cd38 100644 --- a/.env.example +++ b/.env.example @@ -16,3 +16,5 @@ TENDERLY_TEMP_PROJECT= TENDERLY_NETWORK_NAME=mainnet # Dev addresses to fund on tenderly forks or testnets DEV_ADDRESSES= +# Sei RPC api key +SEI_RPC_API_KEY= diff --git a/hardhat.config.ts b/hardhat.config.ts index 1a505870..2f53a1bd 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -434,6 +434,22 @@ const config: HardhatUserConfig = { } } }, + [DeploymentNetwork.Sei]: { + chainId: chainIds[DeploymentNetwork.Sei], + url: rpcUrls[DeploymentNetwork.Sei], + gasPrice, + saveDeployments: true, + live: true, + deploy: [`deploy/scripts/${DeploymentNetwork.Sei}`], + verify: { + etherscan: { + apiKey: VERIFY_API_KEY + } + }, + httpHeaders: { + 'x-apikey': process.env.SEI_RPC_API_KEY || '' + } + }, [DeploymentNetwork.Sepolia]: { chainId: chainIds[DeploymentNetwork.Sepolia], url: rpcUrls[DeploymentNetwork.Sepolia], diff --git a/utils/Constants.ts b/utils/Constants.ts index a2eb6f1e..7e5ad39f 100644 --- a/utils/Constants.ts +++ b/utils/Constants.ts @@ -35,7 +35,8 @@ export enum MainnetNetwork { Rootstock = 'rootstock', Scroll = 'scroll', Telos = 'telos', - ZkSync = 'zksync' + ZkSync = 'zksync', + Sei = 'sei' } export enum TestnetNetwork { diff --git a/utils/chainIds.json b/utils/chainIds.json index b9ffc5f6..b941ec25 100644 --- a/utils/chainIds.json +++ b/utils/chainIds.json @@ -12,6 +12,7 @@ "hedera": 295, "zksync": 324, "pulsechain": 369, + "sei": 531, "astar": 592, "metis": 1088, "moonbeam": 1284, diff --git a/utils/rpcUrls.json b/utils/rpcUrls.json index 09773245..3577f5ef 100644 --- a/utils/rpcUrls.json +++ b/utils/rpcUrls.json @@ -28,5 +28,6 @@ "linea": "https://linea.decubate.com", "scroll": "https://rpc.scroll.io", "sepolia": "https://rpc.sepolia.ethpandaops.io", - "aurora": "https://mainnet.aurora.dev" + "aurora": "https://mainnet.aurora.dev", + "sei": "https://sei-apis.com" }