-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
67 lines (62 loc) · 1.58 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
import '@nomicfoundation/hardhat-toolbox'
import '@openzeppelin/hardhat-upgrades'
import { resolve } from 'node:path'
import { config as dotenvConfig } from 'dotenv'
import type { HardhatUserConfig } from 'hardhat/config'
import './tasks'
const dotenvConfigPath: string = process.env.DOTENV_CONFIG_PATH || './.env'
dotenvConfig({ path: resolve(__dirname, dotenvConfigPath) })
const config: HardhatUserConfig = {
solidity: {
version: '0.8.0',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
etherscan: {
apiKey: {
neonevm: 'test',
},
customChains: [
{
network: 'neonevm',
chainId: 245022926,
urls: {
apiURL: 'https://devnet-api.neonscan.org/hardhat/verify',
browserURL: 'https://devnet.neonscan.org',
},
},
{
network: 'neonevm',
chainId: 245022934,
urls: {
apiURL: 'https://api.neonscan.org/hardhat/verify',
browserURL: 'https://neonscan.org',
},
},
],
},
defaultNetwork: 'neondevnet',
networks: {
neondevnet: {
url: 'https://devnet.neonevm.org',
chainId: 245022926,
allowUnlimitedContractSize: false,
accounts: [process.env.PRIVATE_KEY_OWNER!],
gas: 'auto',
gasPrice: 'auto',
},
neonmainnet: {
url: 'https://neon-proxy-mainnet.solana.p2p.org',
chainId: 245022934,
allowUnlimitedContractSize: false,
accounts: [process.env.PRIVATE_KEY_OWNER!],
gas: 'auto',
gasPrice: 'auto',
},
},
}
export default config