ComposableFi / composable-ibc

A trustless, cross-chain bridging protocol.
https://picasso.network
76 stars 52 forks source link

Create a guide on how to run the relayer, including the unsafe rpc node #283

Closed blasrodri closed 1 year ago

blasrodri commented 1 year ago

The configuration file for Picasso in Kusama, and Composable in Polkadot is

[chain_a]
chain_id = "picasso_kusama"
type = "picasso_kusama"
name = "picasso"
para_id = 2087
parachain_rpc_url = "" // need to host your own rpc node with unsafe flags turned on
relay_chain_rpc_url = "" // need to host your own rpc node with unsafe flags turned on
client_id = "10-grandpa-28"
connection_id = "connection-23"
channel_whitelist = [["channel-15", "transfer"]]
commitment_prefix = "0x6962632f"
private_key = ""
ss58_version = 49
key_type = "sr25519"
finality_protocol = "Grandpa"

[chain_b]
chain_id = "composable"
type = "composable"
name = "composable"
para_id = 2019
parachain_rpc_url = "" // need to host your own rpc node with unsafe flags turned on
relay_chain_rpc_url = "" // need to host your own rpc node with unsafe flags turned on
client_id = "10-grandpa-28"
connection_id = "connection-23"
channel_whitelist = [["channel-15", "transfer"]]
commitment_prefix = "0x6962632f"
private_key = ""
ss58_version = 50
key_type = "sr25519"
finality_protocol = "Grandpa"

[core]

We'd need to explain how to run the unsafe rpc nodes for the relaychain(s) and parachain(s)

Running hyperspace from docker:

docker run -d \
-e "RUST_LOG=hyperspace=trace,hyperspace_parachain=trace" \
-v <path-to-config>/config.toml:/config.toml composablefi/composable-centauri:latest \
relay \
--config /config.toml 
bostercf commented 1 year ago

Who is the target for the documentation? Is it internal for CF only, or is this for 3rd parties to use?

JafarAz commented 1 year ago

@bostercf hyperspace can be run by anyone so the plan is to create a guide for 3rd parties to use. This involves us first testing to see if two relayers can run efficiently at the same time. Please let me know when you have free time to assist with the testing. It simply requires you or @vmarkushin to spin up another relayer but requires significant vigilance. If all is okay, we can release the guide without creating any refactors to hyperspace.

parveenkaushikmajra commented 3 months ago

@blasrodri I am building hyperspace between parachain and my cosmos chain. I am unable to create connections between chains. Is there any guide for hyperspace?

JafarAz commented 3 months ago

Which parachain and which cosmos chain?

parveenkaushikmajra commented 3 months ago

I am using the example given here in hyperspace the default picasso chains. using this guide https://github.com/ComposableFi/composable-ibc/tree/main/hyperspace I am able to create clients but getting errors in creating connections between them.