Files
pezkuwi-subxt/bridges/relays/substrate
Tomasz Drwięga ca8b370de2 Revert "Bump async-std from 1.5.0 to 1.6.0" (#127)
* Revert "Bump async-std from 1.5.0 to 1.6.0 (#126)"

This reverts commit 3c15a65929447a12aa23c1f34c9b783d117deed2.

* Add async-std=1.6 to ignore.
2024-04-10 10:28:37 +02:00
..

Substrate-to-Substrate Bridge Relay

The bridge relay is a process that connects to running Substrate nodes and sends data over the Substrate-to-Substrate bridge. The process communicates with the nodes over the JSON-RPC interface and reads data from the relays information required by the bridge pallet using runtime calls and writes data to the modules by constructing and submitting extrinsics.

For more details, see the design document.

Status

This is a not-in-progress prototype.

Running in development

Run two development Substrate chains:

> TMPDIR=(mktemp -d)
> cd $TMPDIR
> substrate build-spec --dev > red-spec.json
> cp red-spec.json blue-spec.json
# Modify the chain spec in an editor so that the genesis hashes of the two chains differ.
# For example, double one of the balances in '$.genesis.runtime.balances.balances'.
> substrate --chain red-spec.json --alice --base-path ./red --port 30343 --ws-port 9954
> substrate --chain blue-spec.json --alice --base-path ./blue --port 30353 --ws-port 9964

Now run the bridge relay:

> target/release/substrate-bridge --base-path ./relay \
    --rpc-url ws://localhost:9954 \
    --rpc-url ws://localhost:9964