Crate chain_registry_interface

Crate chain_registry_interface 

Source
Expand description

Runtime types and minimal runtime helpers for the Cosmos chain-registry schemas.

  • Exact field names via serde rename
  • Optional fields will use Option in follow-up commits
  • Open-ended maps will use HashMap<String, serde_json::Value>

Structs§

Asset
AssetList
Binaries
Chain
Chain corresponds to chain.schema.json root object (initial pass: required fields only).
ChainInfo
ChainVersion
Channel
ChannelInfo
ChannelTags
ConsensusInfo
CosmwasmInfo
DenomUnit
IbcData
IbcInfo
LanguageInfo
LogoUris
MemoKey
MemoKeys
Operator
OperatorInfo
SdkInfo
Versions

Functions§

fetch_asset_list
Fetch an assetlist.json by chain name.
fetch_chain
Fetch a chain.json by chain name from the public registry. No caching or validation beyond JSON parsing.
fetch_ibc_connection
Fetch IBC connection data for a pair of chains from _IBC/-.json (alphabetically sorted).
fetch_memo_keys
Fetch memo_keys.json (root of registry). Name parameter kept for signature symmetry.
fetch_versions
Fetch versions.json by chain name.
ibc_connection_url