anchor/tests/swap
Armani Ferrante 24ccaea903
v0.22.0 (#1484)
2022-02-20 20:32:38 -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 error redesign (#1462) 2022-02-20 17:28:24 -05:00
tests ts: remove deprecated commitment settings (#1128) 2021-12-20 10:51:02 +01:00
Anchor.toml cli: add --skip-lint option (#1482) 2022-02-20 19:43:19 -05: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.22.0 (#1484) 2022-02-20 20:32:38 -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