File tree Expand file tree Collapse file tree 2 files changed +1
-28
lines changed
main/java/io/goodforgod/api/etherscan
test/java/io/goodforgod/api/etherscan Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 1010public enum EthNetworks implements EthNetwork {
1111
1212 MAINNET ("api" , "io" ),
13- ROPSTEN ("api-ropsten" , "io" ),
14- KOVAN ("api-kovan" , "io" ),
15- TOBALABA ("api-tobalaba" , "com" ),
1613 GORLI ("api-goerli" , "io" ),
17- RINKEBY ("api-rinkeby " , "io" );
14+ SEPOLIA ("api-sepolia " , "io" );
1815
1916 private final URI domain ;
2017
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ public class ApiRunner extends Assertions {
99 private static final String DEFAULT_KEY = "YourApiKeyToken" ;
1010
1111 private static final EtherScanAPI api ;
12- private static final EtherScanAPI apiRopsten ;
13- private static final EtherScanAPI apiRinkeby ;
14- private static final EtherScanAPI apiKovan ;
1512 private static final String apiKey ;
1613
1714 static {
@@ -23,12 +20,6 @@ public class ApiRunner extends Assertions {
2320 : key ;
2421 api = EtherScanAPI .builder ().withApiKey (ApiRunner .apiKey ).withNetwork (EthNetworks .MAINNET ).withQueue (queueManager )
2522 .build ();
26- apiKovan = EtherScanAPI .builder ().withApiKey (ApiRunner .apiKey ).withNetwork (EthNetworks .KOVAN ).withQueue (queueManager )
27- .build ();
28- apiRopsten = EtherScanAPI .builder ().withApiKey (ApiRunner .apiKey ).withNetwork (EthNetworks .ROPSTEN ).withQueue (queueManager )
29- .build ();
30- apiRinkeby = EtherScanAPI .builder ().withApiKey (ApiRunner .apiKey ).withNetwork (EthNetworks .RINKEBY ).withQueue (queueManager )
31- .build ();
3223 }
3324
3425 public static String getApiKey () {
@@ -39,23 +30,8 @@ public static EtherScanAPI getApi() {
3930 return api ;
4031 }
4132
42- public static EtherScanAPI getApiRopsten () {
43- return apiRopsten ;
44- }
45-
46- public static EtherScanAPI getApiRinkeby () {
47- return apiRinkeby ;
48- }
49-
50- public static EtherScanAPI getApiKovan () {
51- return apiKovan ;
52- }
53-
5433 @ AfterAll
5534 public static void cleanup () throws Exception {
5635 api .close ();
57- apiRopsten .close ();
58- apiRinkeby .close ();
59- apiKovan .close ();
6036 }
6137}
You can’t perform that action at this time.
0 commit comments