Skip to content

Commit

Permalink
add sei deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzhelyazkov committed May 27, 2024
1 parent d06152e commit dfe13f2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=
16 changes: 16 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
3 changes: 2 additions & 1 deletion utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export enum MainnetNetwork {
Rootstock = 'rootstock',
Scroll = 'scroll',
Telos = 'telos',
ZkSync = 'zksync'
ZkSync = 'zksync',
Sei = 'sei'
}

export enum TestnetNetwork {
Expand Down
1 change: 1 addition & 0 deletions utils/chainIds.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"hedera": 295,
"zksync": 324,
"pulsechain": 369,
"sei": 531,
"astar": 592,
"metis": 1088,
"moonbeam": 1284,
Expand Down
3 changes: 2 additions & 1 deletion utils/rpcUrls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit dfe13f2

Please sign in to comment.