anchor/tests/swap
Sohrab 55e0c5d9dd
fix: align links to coral-xyz/anchor github repo (#1988)
2022-06-19 22:16:16 -04: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 Bump up rust to 2021 edition (#1430) 2022-03-12 17:39:21 -05:00
tests ts: make `Provider` an interface, add `AnchorProvider` class, and update provider functions (#1707) 2022-04-11 15:48:58 -04: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 fix: align links to coral-xyz/anchor github repo (#1988) 2022-06-19 22:16:16 -04: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