Support beacon chain (#436)

This commit is contained in:
KirillPamPam
2024-03-15 17:46:29 +04:00
committed by GitHub
parent d5414f947e
commit d44b72ec69
152 changed files with 2498 additions and 1382 deletions

View File

@@ -1,5 +1,18 @@
package io.emeraldpay.dshackle
enum class BlockchainType {
UNKNOWN, BITCOIN, ETHEREUM, STARKNET, POLKADOT, SOLANA, NEAR;
enum class BlockchainType(
val apiType: ApiType,
) {
UNKNOWN(ApiType.JSON_RPC),
BITCOIN(ApiType.JSON_RPC),
ETHEREUM(ApiType.JSON_RPC),
STARKNET(ApiType.JSON_RPC),
POLKADOT(ApiType.JSON_RPC),
SOLANA(ApiType.JSON_RPC),
NEAR(ApiType.JSON_RPC),
ETHEREUM_BEACON_CHAIN(ApiType.REST);
}
enum class ApiType {
JSON_RPC, REST;
}

View File

@@ -1361,3 +1361,36 @@ chain-settings:
grpcId: 1052
short-names: [dymension]
chain-id: 0x44c
- id: eth-beacon-chain
label: Ethereum Beacon Chain
type: eth-beacon-chain
settings:
expected-block-time: 12s
lags:
syncing: 6
lagging: 1
chains:
- id: Mainnet
chain-id: 0x0
short-names: [eth-beacon-chain]
code: ETH_BEACON_CHAIN
grpcId: 1053
priority: 100
- id: Goerli
chain-id: 0x0
code: GOERLI_BEACON_CHAIN
grpcId: 10069
priority: 1
short-names: [eth-beacon-chain-goerli]
- id: Sepolia
code: SEPOLIA_BEACON_CHAIN
grpcId: 10070
priority: 10
chain-id: 0x0
short-names: [eth-beacon-chain-sepolia]
- id: Holesky
code: HOLESKY_BEACON_CHAIN
grpcId: 10071
priority: 5
chain-id: 0x0
short-names: [eth-beacon-chain-holesky]