anchor/tests/swap
Armani Ferrante a81ff88d76
v0.20.1 (#1274)
2022-01-09 16:50:10 -05:00
..
deps Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
migrations examples, tests: Setup prettier (#1152) 2021-12-15 18:11:41 -05:00
programs/swap spl: Move permissioned market proxy (#962) 2021-11-30 12:44:15 -08:00
tests ts: remove deprecated commitment settings (#1128) 2021-12-20 10:51:02 +01: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.20.1 (#1274) 2022-01-09 16:50:10 -05: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