1
1
import '@nomicfoundation/hardhat-toolbox' ;
2
2
import 'dotenv/config' ;
3
3
import * as fs from 'fs' ;
4
- import * as path from 'path' ;
5
4
import 'hardhat-dependency-compiler' ;
6
5
import 'hardhat-deploy' ;
7
6
import { HardhatUserConfig , task } from 'hardhat/config' ;
@@ -10,10 +9,12 @@ import {
10
9
defaultHardhatNetworkParams ,
11
10
defaultLocalhostNetworkParams ,
12
11
} from 'hardhat/internal/core/config/default-config' ;
12
+ import * as path from 'path' ;
13
13
import 'solidity-docgen' ;
14
14
import { cleanupDeployments , copyDeployments } from './scripts/tools/copy-deployments' ;
15
15
import chainConfig from './utils/config' ;
16
16
17
+ const ZERO_PRIVATE_KEY = '0x0000000000000000000000000000000000000000000000000000000000000000' ;
17
18
const isNativeChainType = chainConfig . isNativeChain ( ) ;
18
19
const isLocalFork = process . env . LOCAL_FORK == 'true' ;
19
20
const isFujiFork = process . env . FUJI_FORK == 'true' ;
@@ -178,8 +179,8 @@ const config: HardhatUserConfig = {
178
179
process . env . RPC_URL || // Defined in Github Actions environments
179
180
'https://api.avax-test.network/ext/bc/C/rpc' ,
180
181
accounts : [
181
- process . env . DEPLOYER_PRIVATE_KEY ||
182
- '0x0000000000000000000000000000000000000000000000000000000000000000' ,
182
+ process . env . DEPLOYER_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
183
+ process . env . ADMIN_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
183
184
] ,
184
185
...fujiBaseConfig ,
185
186
} ,
@@ -189,8 +190,8 @@ const config: HardhatUserConfig = {
189
190
process . env . RPC_URL || // Defined in Github Actions environments
190
191
'https://arbitrum.gateway.tenderly.co' ,
191
192
accounts : [
192
- process . env . DEPLOYER_PRIVATE_KEY ||
193
- '0x0000000000000000000000000000000000000000000000000000000000000000' ,
193
+ process . env . DEPLOYER_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
194
+ process . env . ADMIN_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
194
195
] ,
195
196
...arbitrumBaseConfig ,
196
197
} ,
@@ -200,17 +201,17 @@ const config: HardhatUserConfig = {
200
201
process . env . RPC_URL || // Defined in Github Actions environments
201
202
'https://sepolia-rollup.arbitrum.io/rpc' ,
202
203
accounts : [
203
- process . env . DEPLOYER_PRIVATE_KEY ||
204
- '0x0000000000000000000000000000000000000000000000000000000000000000' ,
204
+ process . env . DEPLOYER_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
205
+ process . env . ADMIN_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
205
206
] ,
206
207
...arbitrumSepoliaBaseConfig ,
207
208
} ,
208
209
bellecour : {
209
210
chainId : 134 ,
210
211
url : 'https://bellecour.iex.ec' ,
211
212
accounts : [
212
- process . env . DEPLOYER_PRIVATE_KEY ||
213
- '0x0000000000000000000000000000000000000000000000000000000000000000' ,
213
+ process . env . DEPLOYER_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
214
+ process . env . ADMIN_PRIVATE_KEY || ZERO_PRIVATE_KEY ,
214
215
] ,
215
216
...bellecourBaseConfig ,
216
217
verify : {
0 commit comments