anchor/tests/swap
acheron 020a304658
Upgrade Solana to v2 and SPL to the latest (#3219)
2024-09-17 19:02:09 +02:00
..
migrations Switch to using @coral-xyz/anchor packages (#2318) 2022-12-16 13:21:50 +00:00
prebuilt-programs Upgrade Solana to v2 and SPL to the latest (#3219) 2024-09-17 19:02:09 +02:00
programs/swap spl: Remove `dex` feature (#3257) 2024-09-16 17:01:26 +02:00
tests Switch to using @coral-xyz/anchor packages (#2318) 2022-12-16 13:21:50 +00:00
Anchor.toml Upgrade Solana to v2 and SPL to the latest (#3219) 2024-09-17 19:02:09 +02:00
Cargo.toml cli: Require explicit `overflow-checks` flag (#2716) 2023-11-30 00:55:12 +01:00
README.md Add /tests dir (#676) 2021-09-04 05:33:39 -07:00
package.json v0.30.1 (#3040) 2024-06-20 17:20:02 +02: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