Before running the sequencer, you must start a local Solana test validator and deploy the bridge program. The sequencer listens to bridge events over a WebSocket connection, which requires the validator to be running.
System dependencies
sudo apt update && sudo apt install \
build-essential \
pkg-config \
libssl-dev \
clang \
libclang-devRust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/envSolana CLI
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo 'export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc # If using Bash
solana --version
agave-install updateSurfpool
curl -sL https://run.surfpool.run/ | bash
source ~/.bashrc # If using Bash
surfpool --versionsurfpool startsolana config set --url http://127.0.0.1:8899solana program deploy ../../onchain-programs/bridge/target/deploy/bridge.soAfter deployment:
- Copy the deployed program ID
- Update it in
lib.rs - Re-deploy the program so the change is applied
RUST_LOG=info cargo run -p core --releasecargo run -p core --example bench_throughput --releasecargo run -p core --example bridge --releasecargo run -p core --example full_lifecycle --releasecargo run -p core --example transaction --releasecargo run -p provercargo build -p coreLicensed under the Apache License, Version 2.0.