sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update nightly
rustup target add wasm32-unknown-unknown
git clone https://github.com/polytope-labs/hyperbridge.git
cd ./hyperbidge
git checkout v0.3.5
cargo build --release -p hyperbridge
sudo tee /etc/systemd/system/hyperbridge.service > /dev/null <<EOF
[Unit]
Description="hyperbridge daemon node"
After=network-online.target
[Service]
User=$USER
Restart=on-failure
RestartSec=10
ExecStart=$HOME/hyperbridge/target/release/hyperbridge \
--base-path=$HOME/hyperbridge \
--pruning=archive \
--name="YOUR MONIKOR" \
--rpc-cors=all \
--rpc-port=9944 \
--unsafe-rpc-external \
--rpc-methods=unsafe \
--chain=gargantua \
--no-mdns \
--listen-addr=/ip4/0.0.0.0/tcp/30333 \
--listen-addr=/ip6/::/tcp/30333 \
--public-addr=/ip4/your-node-ip-address/tcp/30333 \
--out-peers=32
[Install]
WantedBy=multi-user.target
EOF
systemctl enable hyperbridge.service && \
systemctl start hyperbridge.service
systemctl status hyperbridge.service
journalctl -f -u hyperbridge.service