Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b366c3

Browse files
committed
[2.0.0-SNAPSHOT]
EthNetworks cleanup
1 parent 43a0693 commit 9b366c3

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

‎src/main/java/io/goodforgod/api/etherscan/EthNetworks.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
public 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

‎src/test/java/io/goodforgod/api/etherscan/ApiRunner.java

-24
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)