Skip to content

Commit

Permalink
added bsc testnet (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
a10zn8 authored Aug 31, 2023
1 parent 2893723 commit ba40de9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/04-upstream-config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion emerald-grpc
3 changes: 2 additions & 1 deletion src/main/kotlin/io/emeraldpay/dshackle/Chain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/io/emeraldpay/dshackle/Global.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\""),
Expand Down

0 comments on commit ba40de9

Please sign in to comment.