Add rootstock support (#497)

* add rootstock chain

* add rootstock chain specific methods
This commit is contained in:
Anton
2024-06-04 15:51:24 +03:00
committed by GitHub
parent 753b7d8503
commit f9e2e7f21f
3 changed files with 31 additions and 1 deletions

View File

@@ -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

View File

@@ -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()
}
}