mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 21:48:02 +00:00
Squashed 'bridges/' content from commit 062554430
git-subtree-dir: bridges git-subtree-split: 0625544309ff299307f7e110f252f04eac383102
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -xeu
|
||||
|
||||
# This will allow us to run whichever binary the user wanted
|
||||
# with arguments passed through `docker run`
|
||||
# e.g `docker run -it rialto-bridge-node-dev --dev --tmp`
|
||||
/home/user/$PROJECT $@
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# A script for relaying Millau messages to the Rialto chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
set -xeu
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-messages millau-to-rialto \
|
||||
--lane 00000000 \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--source-signer //Bob \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Bob \
|
||||
--prometheus-host=0.0.0.0
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# A script for relaying Rialto messages to the Millau chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
set -xeu
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-messages rialto-to-millau \
|
||||
--lane 00000000 \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--source-signer //Bob \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--target-signer //Bob \
|
||||
--prometheus-host=0.0.0.0
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# A script for relaying Millau headers to the Rialto chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay init-bridge millau-to-rialto \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Sudo \
|
||||
--source-version-mode Bundle \
|
||||
--target-version-mode Bundle
|
||||
|
||||
sleep 5
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-headers millau-to-rialto \
|
||||
--source-host localhost \
|
||||
--source-port $MILLAU_PORT \
|
||||
--target-host localhost \
|
||||
--target-port $RIALTO_PORT \
|
||||
--target-signer //Alice \
|
||||
--prometheus-host=0.0.0.0
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# A script for relaying Rialto headers to the Millau chain.
|
||||
#
|
||||
# Will not work unless both the Rialto and Millau are running (see `run-rialto-node.sh`
|
||||
# and `run-millau-node.sh).
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay init-bridge rialto-to-millau \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--target-signer //Sudo \
|
||||
|
||||
sleep 5
|
||||
RUST_LOG=bridge=debug \
|
||||
./target/debug/substrate-relay relay-headers rialto-to-millau \
|
||||
--target-host localhost \
|
||||
--target-port $MILLAU_PORT \
|
||||
--source-host localhost \
|
||||
--source-port $RIALTO_PORT \
|
||||
--target-signer //Alice \
|
||||
--prometheus-host=0.0.0.0
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Millau Substrate bridge node.
|
||||
# To override the default port just export MILLAU_PORT=9945
|
||||
|
||||
MILLAU_PORT="${MILLAU_PORT:-9945}"
|
||||
|
||||
RUST_LOG=runtime=trace \
|
||||
./target/debug/millau-bridge-node --dev --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33044 --rpc-port 9934 --ws-port $MILLAU_PORT \
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Rialto Substrate bridge node.
|
||||
# To override the default port just export RIALTO_PORT=9944
|
||||
|
||||
RIALTO_PORT="${RIALTO_PORT:-9944}"
|
||||
|
||||
RUST_LOG=runtime=trace \
|
||||
./target/debug/rialto-bridge-node --dev --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33033 --rpc-port 9933 --ws-port $RIALTO_PORT \
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Run a development instance of the Westend Substrate bridge node.
|
||||
# To override the default port just export WESTEND_PORT=9945
|
||||
#
|
||||
# Note: This script will not work out of the box with the bridges
|
||||
# repo since it relies on a Polkadot binary.
|
||||
|
||||
WESTEND_PORT="${WESTEND_PORT:-9944}"
|
||||
|
||||
RUST_LOG=runtime=trace,runtime::bridge=trace \
|
||||
./target/debug/polkadot --chain=westend-dev --alice --tmp \
|
||||
--rpc-cors=all --unsafe-rpc-external --unsafe-ws-external \
|
||||
--port 33033 --rpc-port 9933 --ws-port $WESTEND_PORT \
|
||||
Reference in New Issue
Block a user