add cosmos rpc support

This commit is contained in:
a10zn8
2024-05-30 12:50:51 +03:00
parent a2ae05ed5f
commit 4aff35994f
18 changed files with 350 additions and 16 deletions

View File

@@ -10,7 +10,8 @@ enum class BlockchainType(
POLKADOT(ApiType.JSON_RPC),
SOLANA(ApiType.JSON_RPC),
NEAR(ApiType.JSON_RPC),
ETHEREUM_BEACON_CHAIN(ApiType.REST);
ETHEREUM_BEACON_CHAIN(ApiType.REST),
COSMOS(ApiType.JSON_RPC);
}
enum class ApiType {

View File

@@ -38,6 +38,7 @@ chain-settings:
lags:
syncing: 6
lagging: 1
fork-choice: quorum
chains:
- id: Mainnet
chain-id: 0x1
@@ -182,7 +183,7 @@ chain-settings:
lags:
syncing: 20
lagging: 10
fork-choice: quorum
fork-choice: height
chains:
- id: Mainnet
priority: 100
@@ -1403,3 +1404,25 @@ chain-settings:
grpcId: 1055
short-names: [real]
chain-id: 0x1b254
- id: cosmos-hub
label: Cosmos Hub
type: cosmos
settings:
expected-block-time: 6s
lags:
syncing: 6
lagging: 1
chains:
- id: Mainnet
chain-id: 0x0
short-names: [ cosmos-hub ]
code: COSMOS_HUB
grpcId: 1057
priority: 100
- id: Testnet
chain-id: 0x0
short-names: [ cosmos-hub-testnet ]
code: COSMOS_HUB_TESTNET
grpcId: 10079
priority: 10