File tree 2 files changed +1
-28
lines changed
main/java/io/goodforgod/api/etherscan
test/java/io/goodforgod/api/etherscan
2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change 10
10
public enum EthNetworks implements EthNetwork {
11
11
12
12
MAINNET ("api" , "io" ),
13
- ROPSTEN ("api-ropsten" , "io" ),
14
- KOVAN ("api-kovan" , "io" ),
15
- TOBALABA ("api-tobalaba" , "com" ),
16
13
GORLI ("api-goerli" , "io" ),
17
- RINKEBY ("api-rinkeby " , "io" );
14
+ SEPOLIA ("api-sepolia " , "io" );
18
15
19
16
private final URI domain ;
20
17
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ public class ApiRunner extends Assertions {
9
9
private static final String DEFAULT_KEY = "YourApiKeyToken" ;
10
10
11
11
private static final EtherScanAPI api ;
12
- private static final EtherScanAPI apiRopsten ;
13
- private static final EtherScanAPI apiRinkeby ;
14
- private static final EtherScanAPI apiKovan ;
15
12
private static final String apiKey ;
16
13
17
14
static {
@@ -23,12 +20,6 @@ public class ApiRunner extends Assertions {
23
20
: key ;
24
21
api = EtherScanAPI .builder ().withApiKey (ApiRunner .apiKey ).withNetwork (EthNetworks .MAINNET ).withQueue (queueManager )
25
22
.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 ();
32
23
}
33
24
34
25
public static String getApiKey () {
@@ -39,23 +30,8 @@ public static EtherScanAPI getApi() {
39
30
return api ;
40
31
}
41
32
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
-
54
33
@ AfterAll
55
34
public static void cleanup () throws Exception {
56
35
api .close ();
57
- apiRopsten .close ();
58
- apiRinkeby .close ();
59
- apiKovan .close ();
60
36
}
61
37
}
You can’t perform that action at this time.
0 commit comments