From 231c3c5e676e5831b3606e2f47685325741d842f Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Tue, 12 Sep 2023 17:49:33 +0400 Subject: [PATCH] holesky (#297) --- docs/04-upstream-config.adoc | 1 + emerald-grpc | 2 +- src/main/kotlin/io/emeraldpay/dshackle/Chain.kt | 3 ++- src/main/kotlin/io/emeraldpay/dshackle/Global.kt | 1 + .../dshackle/upstream/calls/DefaultEthereumMethods.kt | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/04-upstream-config.adoc b/docs/04-upstream-config.adoc index 2816c8cc..9f920282 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 f09ac8be..1bda7954 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 12cc4456..2eb8c710 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 414549d4..24630070 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 2a147341..5e708f39 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\""),