-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
82 lines (75 loc) · 2.06 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import * as dotenv from 'dotenv'
import { HardhatUserConfig } from 'hardhat/config'
import '@matterlabs/hardhat-zksync-node/dist/type-extensions'
import '@nomicfoundation/hardhat-toolbox'
import '@nomicfoundation/hardhat-chai-matchers'
// Comment these lines if you have troubles with Solidity VSCode extension (uncomment then when you need to compile/run/test)
import '@matterlabs/hardhat-zksync'
import '@matterlabs/hardhat-zksync-upgradable'
dotenv.config()
const config: HardhatUserConfig = {
solidity: {
version: '0.8.26'
},
zksolc: {
version: '1.5.11',
settings: {
// Note: This must be true to call NonceHolder & ContractDeployer system contracts
enableEraVMExtensions: true
}
},
networks: {
abstract: {
chainId: 2741,
url: 'https://api.mainnet.abs.xyz',
ethNetwork: 'sepolia',
zksync: true,
verifyURL: 'https://api.abscan.org/api'
},
abstractTestnet: {
chainId: 11124,
url: 'https://api.testnet.abs.xyz',
ethNetwork: 'sepolia',
zksync: true,
verifyURL: 'https://api-sepolia.abscan.org/api'
// verifyURL: 'https://api-explorer-verify.testnet.abs.xyz/contract_verification'
},
localhost: {
// chainId: 11124,
url: 'http://127.0.0.1:8011',
ethNetwork: 'localhost', // in-memory node doesn't support eth node; removing this line will cause an error
zksync: true
},
hardhat: {
zksync: true
}
},
etherscan: {
apiKey: {
abstract: process.env.EXPLORER_API_KEY as string,
abstractTestnet: process.env.EXPLORER_API_KEY as string
},
customChains: [
{
network: 'abstract',
chainId: 2741,
urls: {
apiURL: 'https://api.abscan.org/api',
browserURL: 'https://abscan.org'
}
},
{
network: 'abstractTestnet',
chainId: 11124,
urls: {
apiURL: 'https://api-sepolia.abscan.org/api',
browserURL: 'https://sepolia.abscan.org'
}
}
]
},
sourcify: {
enabled: true
}
}
export default config