Skip to content

Commit

Permalink
Add rootstock support (#497)
Browse files Browse the repository at this point in the history
* add rootstock chain

* add rootstock chain specific methods
  • Loading branch information
tonatoz authored Jun 4, 2024
1 parent 753b7d8 commit f9e2e7f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion emerald-grpc
22 changes: 22 additions & 0 deletions foundation/src/main/resources/chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit f9e2e7f

Please sign in to comment.