How to run Hyperspace IBC relayer #2948
Farhad-Shabani
started this conversation in
Non-SDK support
Replies: 2 comments 1 reply
-
Superb, thank you @Farhad-Shabani
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
1. Outline
This manual prepared to serve as a reference for anyone interested in trying another Rust-based IBC relayer, but in Polkadot ecosystem. Here are instructions for running Hyperspace IBC relayer on your local machine.
2. Context
Hyperspace is an off-chain relayer component of ComposableFi’s Centauri bridge protocol. It is an implementation of IBC in Rust, aiming to relay packets between any IBC-enabled chains, but, in its current shape, it already supports Parachains.
3. System requirements
4. Prerequisites
Install Required packages and Rust (Stable & Nightly)
Turn on Rust backtrace and skip building the
wasm
RUST_BACKTRACE=full \ SKIP_WASM_BUILD=1 \
You can also check out this reference to ensure that you are not missing anything
5. Running Nodes
5.1. Using Docker Image
Use the below bash script to create
docker-compose.yml
for running a leaner version of chains including 3 nodes for the relay chain and only one collator per Parachain”For the complete set of nodes (more powerful hardware required!), You can try this:
git clone https://github.com/ComposableFi/centauri.git cd scripts/parachain-launch docker-compose up -d
5.2. Manual Instruction
The following steps guide you through manually building the necessary binaries and running the nodes:
Build Composable binary
git clone https://github.com/ComposableFi/composable.git git checkout centauri make release # Execute in the root of the composable repo
Build Parachain binary
Run Script
cd centauri/scripts/polkadot-launch yarn install yarn dev
6. Run Hyperspace test suite
Run the following command to relay test packets between running Parachains through
hyperspace-testsuite
packagecargo +nightly test -p hyperspace-testsuite --test parachain_parachain -- --nocapture
Highlights
tendermint-rs
andibc-rs
) that should be closely watched to avoid any bugs or conflicts.Beta Was this translation helpful? Give feedback.
All reactions