@@ -29,6 +29,8 @@ const chainIds = {
29
29
optimism_testnet : 69 ,
30
30
arbitrum : 42161 ,
31
31
arbitrum_testnet : 421611 ,
32
+ binance : 56 ,
33
+ binance_testnet : 97
32
34
} ;
33
35
34
36
// Ensure that we have all the environment variables we need.
@@ -73,6 +75,12 @@ function createTestnetConfig(network: keyof typeof chainIds): NetworkUserConfig
73
75
case "fantom_testnet" :
74
76
nodeUrl = "https://rpc.testnet.fantom.network" ;
75
77
break ;
78
+ case "binance" :
79
+ nodeUrl = "https://bsc-dataseed1.binance.org/" ;
80
+ break ;
81
+ case "binance_testnet" :
82
+ nodeUrl = "https://data-seed-prebsc-1-s1.binance.org:8545/" ;
83
+ break ;
76
84
}
77
85
78
86
return {
@@ -127,6 +135,8 @@ const config: HardhatUserConfig = {
127
135
optimisticKovan : process . env . OPTIMISM_SCAN_API_KEY || process . env . SCAN_API_KEY ,
128
136
arbitrumOne : process . env . ARBITRUM_SCAN_API_KEY || process . env . SCAN_API_KEY ,
129
137
arbitrumTestnet : process . env . ARBITRUM_SCAN_API_KEY || process . env . SCAN_API_KEY ,
138
+ bsc : process . env . BINANCE_SCAN_API_KEY || process . env . SCAN_API_KEY ,
139
+ bscTestnet : process . env . BINANCE_SCAN_API_KEY || process . env . SCAN_API_KEY ,
130
140
} ,
131
141
} ,
132
142
gasReporter : {
@@ -156,6 +166,8 @@ if (testPrivateKey) {
156
166
arbitrum_testnet : createTestnetConfig ( "arbitrum_testnet" ) ,
157
167
optimism : createTestnetConfig ( "optimism" ) ,
158
168
optimism_testnet : createTestnetConfig ( "optimism_testnet" ) ,
169
+ binance : createTestnetConfig ( "binance" ) ,
170
+ binance_testnet : createTestnetConfig ( "binance_testnet" ) ,
159
171
} ;
160
172
}
161
173
0 commit comments