Go to file
Armani Ferrante efe5766dae
Embed program at genesis for tests (#206)
2021-12-16 17:54:58 -05:00
assert-owner assert-owner: Cargo fmt to fix build 2020-10-26 09:50:38 -07:00
common Update testnet and devnet api endpoint. Original config is obsolete. (#185) 2021-10-31 10:17:18 -07:00
dex Check close authority on market init 2021-12-16 12:51:08 -05:00
pool Update borsh version (#96) 2021-01-31 06:39:49 -08:00
scripts/travis Embed program at genesis for tests (#206) 2021-12-16 17:54:58 -05:00
.gitignore dex: Move in permissioned markets (#189) 2021-10-31 05:31:06 -07:00
.travis.yml travis: Update solana cli (#205) 2021-12-16 15:58:53 -05:00
Cargo.lock Run permissioned tests against local crate (#201) 2021-12-06 13:49:05 -05:00
Cargo.toml dex: Move in permissioned markets (#189) 2021-10-31 05:31:06 -07:00
LICENSE Add license (#18) 2020-10-03 10:33:06 -07:00
README.md Swap Academy for Discord (#188) 2021-10-31 10:17:36 -07:00

README.md

serum-dex

Project Serum Rust Monorepo

Build Status Discord Chat License

Website | Discord | Awesome | DEX | TypeScript

Program Deployments

Program Devnet Mainnet Beta
DEX DESVgJVGajEgKGXhb6XmqDHGz3VjdgP7rEVESBgxmroY 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin

Note

  • Serum is in active development so all APIs and protocols are subject to change.
  • The code is unaudited. Use at your own risk.

Contributing

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt

On Linux systems you may need to install additional dependencies. On Ubuntu,

sudo apt-get install -y pkg-config build-essential python3-pip jq

Install Solana

Directions can be found here.

Download the source

git clone https://github.com/project-serum/serum-dex.git

Build, deploy, and test programs

See individual crates for documentation. For example, to build the dex see its README.

Running a local Solana cluster

The easiest way to run a local cluster is to use solana-test-validator.

Directories

  • assert-owner: Solana utility program for checking account ownership.
  • common: Common rust utilities.
  • dex: Serum DEX program and client utility.
  • pool: Serum pool protocol.
  • scripts: Bash scripts for development.