Skip to content

Commit

Permalink
add linea configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 committed Nov 21, 2024
1 parent 558131a commit 8fe579e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 16 deletions.
48 changes: 36 additions & 12 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import 'solidity-docgen';
// import '@matterlabs/hardhat-zksync-verify';

// If you're running on hardhat, import the following
import '@nomicfoundation/hardhat-verify'
import '@openzeppelin/hardhat-upgrades'
import '@nomicfoundation/hardhat-verify';
import '@openzeppelin/hardhat-upgrades';

import {AragonPluginRepos, TestingFork} from './utils/types';

Expand Down Expand Up @@ -69,7 +69,7 @@ task('deploy-contracts').setAction(async (args, hre) => {
task('test-contracts').setAction(async (args, hre) => {
await hre.run('build-contracts');
const imp = await import('./test/test-utils/wrapper');

const wrapper = await imp.Wrapper.create(
hre.network.name,
hre.ethers.provider
Expand All @@ -82,10 +82,14 @@ task('test-contracts').setAction(async (args, hre) => {
// Extend HardhatRuntimeEnvironment
extendEnvironment((hre: HardhatRuntimeEnvironment) => {
const aragonPluginRepos: AragonPluginRepos = {
'address-list-voting': '',
'token-voting': '',
admin: '',
multisig: '',
'address-list-voting': {
address: '',
blockNumber: null,
transactionHash: null,
},
'token-voting': {address: '', blockNumber: null, transactionHash: null},
admin: {address: '', blockNumber: null, transactionHash: null},
multisig: {address: '', blockNumber: null, transactionHash: null},
};
const testingFork: TestingFork = {
network: '',
Expand Down Expand Up @@ -129,9 +133,9 @@ const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url: 'https://sepolia.mode.network',
blockNumber: 18922281
}
url: 'https://linea-sepolia.g.alchemy.com/v2/FWqy_q0diVe4Nwb7_tOwxRLgjI3rBLFT',
blockNumber: 6048520,
},
},
// hardhat: {
// throwOnTransactionFailures: true,
Expand Down Expand Up @@ -208,6 +212,8 @@ const config: HardhatUserConfig = {
},
etherscan: {
apiKey: {
lineaSepolia: process.env.LINEASCAN_KEY || '',
lineaMainnet: process.env.LINEASCAN_KEY || '',
modeTestnet: 'modeTestnet',
modeMainnet: 'modeMainnet',
mainnet: process.env.ETHERSCAN_KEY || '',
Expand Down Expand Up @@ -269,18 +275,36 @@ const config: HardhatUserConfig = {
network: 'modeTestnet',
chainId: 919,
urls: {
apiURL: 'https://api.routescan.io/v2/network/testnet/evm/919/etherscan',
apiURL:
'https://api.routescan.io/v2/network/testnet/evm/919/etherscan',
browserURL: 'https://testnet.modescan.io',
},
},
{
network: 'modeMainnet',
chainId: 34443,
urls: {
apiURL: 'https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan',
apiURL:
'https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan',
browserURL: 'https://modescan.io',
},
},
{
network: 'lineaSepolia',
chainId: 59141,
urls: {
apiURL: 'https://api-sepolia.lineascan.build/api',
browserURL: 'https://sepolia.lineascan.build',
},
},
{
network: 'lineaMainnet',
chainId: 59144,
urls: {
apiURL: 'https://api.lineascan.build/api',
browserURL: 'https://lineascan.build',
},
},
],
},
namedAccounts: {
Expand Down
18 changes: 14 additions & 4 deletions packages/contracts/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"deploy": ["./deploy/new", "./deploy/verification"],
"forceDeploy": true
},
"lineaSepolia": {
"url": "https://linea-sepolia.g.alchemy.com/v2/FWqy_q0diVe4Nwb7_tOwxRLgjI3rBLFT",
"chainId": 59141,
"deploy": ["./deploy/new", "./deploy/verification"]
},
"lineaMainnet": {
"url": "https://linea-mainnet.g.alchemy.com/v2/FWqy_q0diVe4Nwb7_tOwxRLgjI3rBLFT",
"chainId": 59144,
"deploy": ["./deploy/new", "./deploy/verification"]
},
"modeTestnet": {
"url": "https://sepolia.mode.network",
"chainId": 919,
Expand All @@ -28,10 +38,10 @@
"chainId": 34443,
"deploy": ["./deploy/new", "./deploy/verification"]
},
"holesky": {
"chainId": 17000,
"url": "https://ethereum-holesky.publicnode.com",
"deploy": ["./deploy/new", "./deploy/verification"]
"holesky": {
"chainId": 17000,
"url": "https://ethereum-holesky.publicnode.com",
"deploy": ["./deploy/new", "./deploy/verification"]
},
"polygon": {
"url": "https://polygon-mainnet.infura.io/v3/481a4cdc7c774286b8627f21c6827f48",
Expand Down

0 comments on commit 8fe579e

Please sign in to comment.