Scaffolding to setup an Anchor program with a liquid Serum orderbook running locally.
If you're looking to build an on-chain program that composes with Serum but don't know how to get everything up and running, i.e. a localnet with the DEX deployed and an orderbook listed, this repo hopes to help.
Clone the repo and all of its submodules
git clone --recursive https://github.com/armaniferrante/serum-quickstart.git
Setup Anchor with the instructions here.
cd deps/serum-dex/dex/ && cargo build-bpf && cd ../../../
yarn
anchor test
If you're not using Anchor, you can just snag the script used by the tests to initialize the orderbook.