diff --git a/emerald-grpc b/emerald-grpc index dc2ee26e..c89cd3f5 160000 --- a/emerald-grpc +++ b/emerald-grpc @@ -1 +1 @@ -Subproject commit dc2ee26eb06c80921df0fe436bb3024c696f6a9f +Subproject commit c89cd3f5ccf57f4e7ede00eaac659714d521505c diff --git a/foundation/src/main/resources/chains.yaml b/foundation/src/main/resources/chains.yaml index 6d70d74c..130671bd 100644 --- a/foundation/src/main/resources/chains.yaml +++ b/foundation/src/main/resources/chains.yaml @@ -1493,3 +1493,25 @@ chain-settings: code: NEUTRON_TESTNET grpcId: 10083 priority: 10 + - id: rootstock + label: Rootstock + type: eth + settings: + fork-choice: quorum + expected-block-time: 45s + lags: + syncing: 6 + lagging: 1 + chains: + - id: Mainnet + chain-id: 0x1e + short-names: [ rootstock, rootstock-mainnet ] + code: ROOTSTOCK_MAINNET_CHAIN + grpcId: 1062 + priority: 100 + - id: Testnet + chain-id: 0x1f + short-names: [ rootstock-testnet ] + code: ROOTSTOCK_TESTNET_CHAIN + grpcId: 10084 + priority: 10 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 3bb1e5be..6af3c1cd 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/calls/DefaultEthereumMethods.kt @@ -328,6 +328,14 @@ class DefaultEthereumMethods( "linea_estimateGas", ) + Chain.ROOTSTOCK__MAINNET, Chain.ROOTSTOCK__TESTNET -> listOf( + "rsk_getRawTransactionReceiptByHash", + "rsk_getTransactionReceiptNodesByHash", + "rsk_getRawBlockHeaderByHash", + "rsk_getRawBlockHeaderByNumber", + "rsk_protocolVersion", + ) + else -> emptyList() } }