Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Work-in-progress prototype of the Substrate-to-Substrate bridge relay service

Notifications You must be signed in to change notification settings

paritytech/substrate-bridge-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

The implementation efforts continue in Parity Bridges repository.

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

About

Work-in-progress prototype of the Substrate-to-Substrate bridge relay service

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages