Skip to content

Commit

Permalink
added scroll sepolia (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
a10zn8 authored Aug 30, 2023
1 parent b43d282 commit 2893723
Show file tree
Hide file tree
Showing 6 changed files with 13 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 @@ -160,6 +160,7 @@ Currently, dshackle supports next chains (should be used as chain names in confi
- aurora
- aurora-testnet
- scroll-alphanet
- scroll-sepolia
- mantle
- mantle-testnet
- klaytn
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 @@ -104,7 +104,8 @@ enum class Chain(val id: Int, val chainCode: String, val chainName: String) {
AURORA__TESTNET(10021, "AURORA_TESTNET", "Aurora Testnet"),
SCROLL__ALPHANET(10022, "SCROLL_ALPHANET", "Scroll Alphanet"),
MANTLE__TESTNET(10023, "MANTLE_TESTNET", "Mantle Testnet"),
KLAYTN__BAOBAB(10024, "KLAYTN_BAOBAB", "Klaytn Baobab");
KLAYTN__BAOBAB(10024, "KLAYTN_BAOBAB", "Klaytn Baobab"),
SCROLL__SEPOLIA(10022, "SCROLL_SEPOLIA", "Scroll Sepolia");

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 @@ -94,6 +94,7 @@ class Global {
"aurora-testnet" to Chain.AURORA__TESTNET,
// "scroll" to Chain.CHAIN_SCROLL__MAINNET,
"scroll-alphanet" to Chain.SCROLL__ALPHANET,
"scroll-sepolia" to Chain.SCROLL__SEPOLIA,
"mantle" to Chain.MANTLE__MAINNET,
"mantle-testnet" to Chain.MANTLE__TESTNET,
"klaytn" to Chain.KLAYTN__MAINNET,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class DefaultEthereumMethods(
Chain.AURORA__TESTNET to createHardcodedData("\"1313161555\"", "\"0x4e454153\""),
// Chain.CHAIN_SCROLL__MAINNET to createHardcodedData(""43114"", ""0xa86a""), doesn't exist now for L2
Chain.SCROLL__ALPHANET to createHardcodedData("\"534353\"", "\"0x82751\""),
Chain.SCROLL__SEPOLIA to createHardcodedData("\"534351\"", "\"0x8274f\""),
Chain.MANTLE__MAINNET to createHardcodedData("\"5000\"", "\"0x1388\""),
Chain.MANTLE__TESTNET to createHardcodedData("\"5001\"", "\"0x1389\""),
Chain.KLAYTN__MAINNET to createHardcodedData("\"8217\"", "\"0x2019\""),
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ chain-settings:
lags:
syncing: 10
lagging: 5
- id: scroll-sepolia
expected-block-time: 4s
options:
validate-peers: false
lags:
syncing: 10
lagging: 5
- id: mantle
expected-block-time: 500ms
options:
Expand Down

0 comments on commit 2893723

Please sign in to comment.