@@ -4,12 +4,10 @@ require('@openzeppelin/hardhat-upgrades');
44require ( 'hardhat-contract-sizer' ) ;
55require ( '@openzeppelin/hardhat-upgrades' ) ;
66require ( 'hardhat-dependency-compiler' ) ;
7- require ( 'dotenv' ) . config ( ) ;
7+ const env = require ( './ config/env.cjs' ) ;
88
99// TODO format
1010
11- const { WALLET_PRIVATE_KEY } = process . env ;
12-
1311const bellecourBase = {
1412 gasPrice : 0 ,
1513 blockGasLimit : 6_700_000 ,
@@ -37,14 +35,36 @@ module.exports = {
3735 bellecour : {
3836 ...bellecourBase ,
3937 url : 'https://bellecour.iex.ec' ,
40- accounts : WALLET_PRIVATE_KEY ? [ WALLET_PRIVATE_KEY ] : [ ] ,
38+ accounts : env . PRIVATE_KEY ? [ env . PRIVATE_KEY ] : [ ] ,
39+ } ,
40+ avalancheFujiTestnet : {
41+ chainId : 43113 ,
42+ url : env . FUJI_RPC_URL || 'https://api.avax-test.network/ext/bc/C/rpc' ,
43+ accounts : [
44+ env . PRIVATE_KEY ||
45+ '0x0000000000000000000000000000000000000000000000000000000000000000' ,
46+ ] ,
47+ blockGasLimit : 8_000_000 ,
48+ } ,
49+ arbitrumSepolia : {
50+ chainId : 421614 ,
51+ url : env . ARBITRUM_SEPOLIA_RPC_URL || 'https://sepolia-rollup.arbitrum.io/rpc' ,
52+ accounts : [
53+ process . env . PRIVATE_KEY ||
54+ '0x0000000000000000000000000000000000000000000000000000000000000000' ,
55+ ] ,
56+ blockGasLimit : 30_000_000 ,
57+ } ,
58+ 'local-bellecour-fork' : {
59+ ...bellecourBase ,
60+ url : 'http://127.0.0.1:8545' ,
4161 } ,
4262 // poco-chain native config
4363 'dev-native' : {
4464 chainId : 65535 ,
45- url : process . env . RPC_URL ?? 'http://localhost:8545' ,
65+ url : env . RPC_URL ?? 'http://localhost:8545' ,
4666 accounts : {
47- mnemonic : process . env . MNEMONIC ?? '' ,
67+ mnemonic : env . MNEMONIC ?? '' ,
4868 } ,
4969 gasPrice : 0 ,
5070 } ,
0 commit comments