diff --git a/docs/04-upstream-config.adoc b/docs/04-upstream-config.adoc index 2816c8cc5..9f9202822 100644 --- a/docs/04-upstream-config.adoc +++ b/docs/04-upstream-config.adoc @@ -147,6 +147,7 @@ Currently, dshackle supports next chains (should be used as chain names in confi - goerli (goerli-testnet) - rinkeby (rinkeby-testnet) - ropsten (ropsten-testnet) +- ethereum-holesky - bitcoin (bitcoin-testnet) - base - base-goerli diff --git a/emerald-grpc b/emerald-grpc index f09ac8be0..1bda79548 160000 --- a/emerald-grpc +++ b/emerald-grpc @@ -1 +1 @@ -Subproject commit f09ac8be09093ef04aefa33651b28faad6d7bd4c +Subproject commit 1bda79548a965629cdf4c75e709fd4d8cd821f20 diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt b/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt index 12cc4456a..2eb8c7104 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt @@ -106,7 +106,8 @@ enum class Chain(val id: Int, val chainCode: String, val chainName: String) { MANTLE__TESTNET(10023, "MANTLE_TESTNET", "Mantle Testnet"), KLAYTN__BAOBAB(10024, "KLAYTN_BAOBAB", "Klaytn Baobab"), SCROLL__SEPOLIA(10025, "SCROLL_SEPOLIA", "Scroll Sepolia"), - BSC__TESTNET(10026, "BSC_TESTNET", "Binance Smart Chain Testnet"); + BSC__TESTNET(10026, "BSC_TESTNET", "Binance Smart Chain Testnet"), + ETHEREUM__HOLESKY(10027, "ETHEREUM_HOLESKY", "Ethereum Holesky"); companion object { fun byId(id: Int): Chain { diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Global.kt b/src/main/kotlin/io/emeraldpay/dshackle/Global.kt index 414549d4e..246300706 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Global.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Global.kt @@ -70,6 +70,7 @@ class Global { "bitcoin-testnet" to Chain.BITCOIN__TESTNET, "sepolia" to Chain.ETHEREUM__SEPOLIA, "sepolia-testnet" to Chain.ETHEREUM__SEPOLIA, + "ethereum-holesky" to Chain.ETHEREUM__HOLESKY, "optimism-testnet" to Chain.OPTIMISM__GOERLI, "arbitrum-testnet" to Chain.ARBITRUM__GOERLI, "arbitrum-nova" to Chain.ARBITRUM_NOVA__MAINNET, diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt index 2a1473419..5e708f398 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -79,6 +79,7 @@ class DefaultEthereumMethods( Chain.ETHEREUM__KOVAN to createHardcodedData("\"42\"", "\"0x2a\""), Chain.ETHEREUM__GOERLI to createHardcodedData("\"5\"", "\"0x5\""), Chain.ETHEREUM__SEPOLIA to createHardcodedData("\"11155111\"", "\"0xaa36a7\""), + Chain.ETHEREUM__HOLESKY to createHardcodedData("\"17000\"", "\"0x4268\""), Chain.ETHEREUM_CLASSIC__MAINNET to createHardcodedData("\"1\"", "\"0x3d\""),