Skip to content

Commit

Permalink
feat: Add support for Sepolia and Holesky Ethereum testnets (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat authored Mar 11, 2024
1 parent 472824b commit 6a87d45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api-definitions
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public static BlockchainType from(Chain chain) {
|| chain == Chain.TESTNET_GOERLI
|| chain == Chain.TESTNET_RINKEBY
|| chain == Chain.TESTNET_ROPSTEN
|| chain == Chain.TESTNET_HOLESKY
|| chain == Chain.TESTNET_SEPOLIA
) {
return BlockchainType.ETHEREUM;
}
Expand Down
6 changes: 4 additions & 2 deletions emerald-api/src/main/java/io/emeraldpay/api/Chain.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ public enum Chain {
// TESTNET_FLOONET(10004, "FLOONET", "Floonet Testnet"),
TESTNET_GOERLI(10005, "GOERLI", "Goerli Testnet"),
TESTNET_ROPSTEN(10006, "ROPSTEN", "Ropsten Testnet"),
TESTNET_RINKEBY(10007, "RINKEBY", "Rinkeby Testnet");
TESTNET_RINKEBY(10007, "RINKEBY", "Rinkeby Testnet"),
TESTNET_HOLESKY(10008, "HOLESKY", "Holesky Testnet"),
TESTNET_SEPOLIA(10009, "SEPOLIA", "Sepolia Testnet");

private final int id;
private final String code;
Expand Down Expand Up @@ -92,4 +94,4 @@ public String getChainCode() {
public String getChainName() {
return fullname;
}
}
}

0 comments on commit 6a87d45

Please sign in to comment.