Skip to content

Commit

Permalink
feat: introduce lisk sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
juliopavila committed Feb 8, 2025
1 parent b58fe9f commit a8b3cb1
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ import { HttpNetworkUserConfig } from 'hardhat/types'

dotenv.config()

import "./tasks/deploy-mastercopies";
import "./tasks/deploy-mastercopy";
import "./tasks/extract-mastercopy";
import "./tasks/verify-mastercopies";
import "./tasks/verify-mastercopy";
import './tasks/deploy-mastercopies'
import './tasks/deploy-mastercopy'
import './tasks/extract-mastercopy'
import './tasks/verify-mastercopies'
import './tasks/verify-mastercopy'

const { INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY } = process.env
const { INFURA_KEY, MNEMONIC, ETHERSCAN_API_KEY, PK } = process.env

const sharedNetworkConfig: HttpNetworkUserConfig = {
accounts: {
const sharedNetworkConfig: HttpNetworkUserConfig = {}
if (PK) {
sharedNetworkConfig.accounts = [PK]
} else {
sharedNetworkConfig.accounts = {
mnemonic:
MNEMONIC ||
'candy maple cake sugar pudding cream honey rich smooth crumble sweet treat',
},
}
}

export default {
Expand Down Expand Up @@ -52,10 +55,6 @@ export default {
...sharedNetworkConfig,
url: 'https://rpc.gnosischain.com',
},
goerli: {
...sharedNetworkConfig,
url: `https://goerli.infura.io/v3/${INFURA_KEY}`,
},
mumbai: {
...sharedNetworkConfig,
url: `https://polygon-mumbai.infura.io/v3/${INFURA_KEY}`,
Expand All @@ -80,10 +79,6 @@ export default {
...sharedNetworkConfig,
url: `https://api.avax.network/ext/bc/C/rpc`,
},
rinkeby: {
...sharedNetworkConfig,
url: `https://rinkeby.infura.io/v3/${INFURA_KEY}`,
},
matic: {
...sharedNetworkConfig,
url: 'https://rpc-mainnet.maticvigil.com',
Expand All @@ -92,9 +87,28 @@ export default {
...sharedNetworkConfig,
url: `https://sepolia.infura.io/v3/${INFURA_KEY}`,
},
'lisk-sepolia': {
...sharedNetworkConfig,
chainId: 4202,
url: 'https://rpc.sepolia-api.lisk.com',
gasPrice: 1000000000,
},
},
etherscan: {
apiKey: ETHERSCAN_API_KEY,
customChains: [
{
network: 'lisk-sepolia',
chainId: 4202,
urls: {
apiURL: 'https://sepolia-blockscout.lisk.com/api',
browserURL: 'https://sepolia-blockscout.lisk.com',
},
},
],
},
sourcify: {
enabled: false,
},
gasReporter: {
enabled: true,
Expand Down

0 comments on commit a8b3cb1

Please sign in to comment.