diff --git a/docs/04-upstream-config.adoc b/docs/04-upstream-config.adoc index 8e53b196f..2816c8cc5 100644 --- a/docs/04-upstream-config.adoc +++ b/docs/04-upstream-config.adoc @@ -137,6 +137,7 @@ Currently, dshackle supports next chains (should be used as chain names in confi - optimism - optimism-testnet - binance (bsc, bnb-smart-chain) +- bsc-testnet - zksync - zksync-testnet - polygon-zkevm diff --git a/emerald-grpc b/emerald-grpc index 58aed19ed..f09ac8be0 160000 --- a/emerald-grpc +++ b/emerald-grpc @@ -1 +1 @@ -Subproject commit 58aed19ed53fb9f0c849fcab488eff4eb2e19342 +Subproject commit f09ac8be09093ef04aefa33651b28faad6d7bd4c diff --git a/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt b/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt index 71db908d8..12cc4456a 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Chain.kt @@ -105,7 +105,8 @@ enum class Chain(val id: Int, val chainCode: String, val chainName: String) { SCROLL__ALPHANET(10022, "SCROLL_ALPHANET", "Scroll Alphanet"), MANTLE__TESTNET(10023, "MANTLE_TESTNET", "Mantle Testnet"), KLAYTN__BAOBAB(10024, "KLAYTN_BAOBAB", "Klaytn Baobab"), - SCROLL__SEPOLIA(10022, "SCROLL_SEPOLIA", "Scroll Sepolia"); + SCROLL__SEPOLIA(10025, "SCROLL_SEPOLIA", "Scroll Sepolia"), + BSC__TESTNET(10026, "BSC_TESTNET", "Binance Smart Chain Testnet"); 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 f07cffdf8..414549d4e 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/Global.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/Global.kt @@ -55,6 +55,7 @@ class Global { "binance" to Chain.BSC__MAINNET, "bsc" to Chain.BSC__MAINNET, "bnb-smart-chain" to Chain.BSC__MAINNET, + "bsc-testnet" to Chain.BSC__TESTNET, "etc" to Chain.ETHEREUM_CLASSIC__MAINNET, "morden" to Chain.ETHEREUM__MORDEN, "kovan" to Chain.ETHEREUM__KOVAN, 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 fe85737ca..2a1473419 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -100,6 +100,7 @@ class DefaultEthereumMethods( Chain.ZKSYNC__TESTNET to createHardcodedData("\"280\"", "\"0x118\""), Chain.BSC__MAINNET to createHardcodedData("\"56\"", "\"0x38\""), + Chain.BSC__TESTNET to createHardcodedData("\"97\"", "\"0x61\""), Chain.BASE__MAINNET to createHardcodedData("\"8453\"", "\"0x2105\""), Chain.BASE__GOERLI to createHardcodedData("\"84531\"", "\"0x14a33\""),