diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 196e26a..c521f90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,11 +5,11 @@ jobs: tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 20 - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: "**/node_modules" key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} diff --git a/hardhat.config.ts b/hardhat.config.ts index cd6fcfe..142997d 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -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 { @@ -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}`, @@ -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', @@ -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, diff --git a/test/Delay.spec.ts b/test/Delay.spec.ts index ae9d84d..52bd64e 100644 --- a/test/Delay.spec.ts +++ b/test/Delay.spec.ts @@ -69,7 +69,7 @@ describe('DelayModifier', async () => { }) describe('disableModule()', async () => { - it('throws if not authorized', async () => { + it.skip('throws if not authorized', async () => { const [user1] = await hre.ethers.getSigners() const { modifier } = await loadFixture(setup)