sudo apt-get install -y build-essential cmake clang-11 git curl python3-pip protobuf-compiler libssl-dev pkg-config
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
brew install rustup
rustup update
rustup toolchain install stable
rustup target add wasm32-unknown-unknown
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
sudo pip3 install solc-select
solc-select install 0.8.16
solc-select use 0.8.16
cargo install svm-rs
svm install 0.8.16
svm use 0.8.16
cargo install --git https://github.com/foundry-rs/foundry --profile local --locked foundry-cli anvil
git clone https://github.com/serai-dex/serai
cd serai
cargo build --release --all-features
Running tests requires:
- A rootless Docker setup
- A properly configured Bitcoin regtest node (available via Docker)
- A properly configured Monero regtest node (available via Docker)
- A properly configured monero-wallet-rpc instance
- A debug Serai node (
cd substrate/node && cargo build
)
cargo test --all-features
./target/release/serai-node --dev
Under /orchestration
, you can find our orchestration components for running
the entire infrastructure of Serai in a local environment using Docker Compose
or Kubernetes.