Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Sepolia and Holesky Ethereum testnets #17

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
}
Loading