anchor/tests/swap
Tom Linton 1319dc65d6
v0.18.2 (#1011)
2021-11-13 18:58:10 -08: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 cli, examples, tests: Remove global JavaScript dependencies in favour of local (#990) 2021-11-11 22:38:35 +00: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
package.json v0.18.2 (#1011) 2021-11-13 18:58:10 -08: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