Files
pezkuwi-subxt/bridges/scripts/send-message-from-millau-rialto.sh
T
Branislav Kontur fcc1574aac Merge commit 'd2b7ee2575c5132ef050e2523955382e1fae00ec' as 'bridges'
(git subtree add --prefix=bridges bridges master --squash)
2022-12-01 23:13:25 +01:00

34 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Used for manually sending a message to a running network.
#
# You could for example spin up a full network using the Docker Compose files
# we have (to make sure the message relays are running), but remove the message
# generator service. From there you may submit messages manually using this script.
# TODO: Fix demeo scripts https://github.com/paritytech/parity-bridges-common/issues/1406
MILLAU_PORT="${RIALTO_PORT:-9945}"
case "$1" in
remark)
RUST_LOG=runtime=trace,substrate-relay=trace,bridge=trace \
./target/debug/substrate-relay send-message millau-to-rialto \
--source-host localhost \
--source-port $MILLAU_PORT \
--source-signer //Alice \
raw 020419ac
;;
transfer)
RUST_LOG=runtime=trace,substrate-relay=trace,bridge=trace \
./target/debug/substrate-relay send-message millau-to-rialto \
--source-host localhost \
--source-port $MILLAU_PORT \
--source-signer //Alice \
transfer \
--amount 100000000000000 \
--recipient 5DZvVvd1udr61vL7Xks17TFQ4fi9NiagYLaBobnbPCP14ewA \
;;
*) echo "A message type is require. Supported messages: remark, transfer."; exit 1;;
esac