IBC Relayer in Rust
Hermes IBC relayer
[![Cosmos ecosystem][cosmos-shield]][cosmos-link]
[![Build Status][build-image]][build-link] [![Integration tests][test-image]][test-link] [![Apache 2.0 Licensed][license-image]][license-link] ![Rust Stable][rustc-image] ![Rust 1.85+][rustc-version]
Rust implementation of an Inter-Blockchain Communication (IBC) relayer.
This project comprises primarily of 6 crates:
- [
ibc-relayer][relayer-crate-link] provides an implementation of an IBC relayer, as a library. - [
ibc-relayer-cli][relayer-cli-crate-link] is a CLI (a wrapper over theibc-relayerlibrary),
hermes binary.
- [
ibc-chain-registry][ibc-chain-registry-crate-link] provides functions to fetch data from
- [
ibc-telemetry][ibc-telemetry-crate-link] is a library for use in the Hermes CLI,
- [
ibc-relayer-rest][ibc-telemetry-crate-link] is a library for use in the Hermes CLI,
- [
ibc-test-framework][ibc-test-framework-crate-link] provides the infrastructure and framework
See the table below for more details.
โ ๏ธ The [ibc][ibc-rs-repo] and [ibc-proto][ibc-proto-rs-repo] crates have been moved to their own repositories.
The repository also includes TLA+ specifications.
Status
| Crate name | Type | Version | Docs | |:-------------:|:------:|:-------------:|:-----:| | ibc-relayer-cli | bin: hermes | [![IBC Relayer CLI Crate][relayer-cli-crate-image]][relayer-cli-crate-link] | [![IBC Relayer CLI Docs][relayer-cli-docs-image]][relayer-cli-docs-link] | | ibc-relayer | lib | [![IBC Relayer Crate][relayer-crate-image]][relayer-crate-link] | [![IBC Relayer Docs][relayer-docs-image]][relayer-docs-link] | | ibc-chain-registry | lib | [![Chain Registry Crate][ibc-chain-registry-crate-image]][ibc-chain-registry-crate-link] | [![Chain Registry Docs][ibc-chain-registry-docs-image]][ibc-chain-registry-docs-link] | | ibc-relayer-rest | lib | [![IBC Relayer REST Crate][relayer-rest-crate-image]][relayer-rest-crate-link] | [![IBC Relayer REST Docs][relayer-rest-docs-image]][relayer-rest-docs-link] | | ibc-telemetry | lib | [![IBC Telemetry Crate][ibc-telemetry-crate-image]][ibc-telemetry-crate-link] | [![IBC Telemetry Docs][ibc-telemetry-docs-image]][ibc-telemetry-docs-link] | | ibc-test-framework | lib | [![IBC Test Framework Crate][ibc-test-framework-crate-image]][ibc-test-framework-crate-link] | [![IBC Test Framework Docs][ibc-test-framework-docs-image]][ibc-test-framework-docs-link] |
Requirements
The crates in this project require Rust 1.85.0.
Hermes Guide
We have a comprehensive guide at hermes.informal.systems.
Support
If you encounter any issues or have questions related to Hermes, we encourage you to open a GitHub issue. This ensures a streamlined process for tracking and resolving problems.
Please use the following link to report your issue: https://github.com/informalsystems/hermes/issues/new?assignees=&labels=&projects=&template=bug-report.md
Providing clear and detailed information in your issue will help us address it more efficiently.
Contributing
IBC is specified in English in the cosmos/ibc repo. Any protocol changes or clarifications should be contributed there.
This repo contains the TLA+ specification and Rust implementation for the IBC modules and relayer. If you're interested in contributing, please comment on an issue or open a new one!
See also CONTRIBUTING.md.
Versioning
We follow Semantic Versioning, though APIs are still under active development.
Resources
License
Copyright ยฉ 2023 Informal Systems Inc. and Hermes authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use the files in this repository except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
[relayer-crate-image]: https://img.shields.io/crates/v/ibc-relayer.svg [relayer-crate-link]: https://crates.io/crates/ibc-relayer [relayer-docs-image]: https://docs.rs/ibc-relayer/badge.svg [relayer-docs-link]: https://docs.rs/ibc-relayer/ [relayer-cli-crate-image]: https://img.shields.io/crates/v/ibc-relayer-cli.svg [relayer-cli-crate-link]: https://crates.io/crates/ibc-relayer-cli [relayer-cli-docs-image]: https://docs.rs/ibc-relayer-cli/badge.svg [relayer-cli-docs-link]: https://docs.rs/ibc-relayer-cli/ [relayer-rest-crate-image]: https://img.shields.io/crates/v/ibc-relayer-rest.svg [relayer-rest-crate-link]: https://crates.io/crates/ibc-relayer-rest [relayer-rest-docs-image]: https://docs.rs/ibc-relayer-rest/badge.svg [relayer-rest-docs-link]: https://docs.rs/ibc-relayer-rest/ [ibc-telemetry-crate-image]: https://img.shields.io/crates/v/ibc-telemetry.svg [ibc-telemetry-crate-link]: https://crates.io/crates/ibc-telemetry [ibc-telemetry-docs-image]: https://docs.rs/ibc-telemetry/badge.svg [ibc-telemetry-docs-link]: https://docs.rs/ibc-telemetry/ [ibc-test-framework-crate-image]: https://img.shields.io/crates/v/ibc-test-framework.svg [ibc-test-framework-crate-link]: https://crates.io/crates/ibc-test-framework [ibc-test-framework-docs-image]: https://docs.rs/ibc-test-framework/badge.svg [ibc-test-framework-docs-link]: https://docs.rs/ibc-test-framework/ [ibc-chain-registry-crate-image]: https://img.shields.io/crates/v/ibc-chain-registry.svg [ibc-chain-registry-crate-link]: https://crates.io/crates/ibc-chain-registry [ibc-chain-registry-docs-image]: https://docs.rs/ibc-chain-registry/badge.svg [ibc-chain-registry-docs-link]: https://docs.rs/ibc-chain-registry/ [ibc-rs-repo]: https://github.com/cosmos/ibc-rs [ibc-proto-rs-repo]: https://github.com/cosmos/ibc-proto-rs
[build-image]: https://github.com/informalsystems/hermes/workflows/Rust/badge.svg [build-link]: https://github.com/informalsystems/hermes/actions?query=workflow%3ARust [test-image]: https://github.com/informalsystems/hermes/actions/workflows/integration.yaml/badge.svg?branch=master [test-link]: https://github.com/informalsystems/hermes/actions?query=workflow%3A%22Integration%22 [license-image]: https://img.shields.io/badge/license-Apache_2.0-blue.svg [license-link]: https://github.com/informalsystems/hermes/blob/master/LICENSE [rustc-image]: https://img.shields.io/badge/rustc-stable-blue.svg [rustc-version]: https://img.shields.io/badge/rustc-1.76+-blue.svg [cosmos-shield]: https://img.shields.io/static/v1?label=&labelColor=1B1E36&color=1B1E36&message=cosmos%20ecosystem&style=for-the-badge&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtL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