anchor/tests/swap
Armani Ferrante 62fcd75401
spl, tests: Use feature flag for dex (#985)
2021-11-11 14:12:50 +00:00
..
deps Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
migrations Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
programs/swap spl, tests: Use feature flag for dex (#985) 2021-11-11 14:12:50 +00:00
tests Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
Anchor.toml lang, spl: Program and Signer types (#705) 2021-09-11 14:43:12 -07:00
Cargo.toml Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
README.md Add /tests dir (#676) 2021-09-04 05:33:39 -07:00

README.md

Swap

An example swap program that provides a convenient API to the Serum orderbook for performing instantly settled token swaps.

Usage

This example requires building the Serum DEX from source, which is done using git submodules.

Install Submodules

Pull the source

git submodule init
git submodule update

Build the DEX

Build it

cd deps/serum-dex/dex/ && cargo build-bpf && cd ../../../

Run the Test

Run the test

anchor test