serum-dex
Deploying the DEX
Using the do.sh
script from the repository's top level directory,
Run unit tests
Compile the dex binary
Deploy the dex to the configured solana cluster
DEX_PROGRAM_ID=""
Run the fuzz tests
Using the crank client utility
# read the autogenerated help text
# supported options are localnet, mainnet, testnet, devnet
CLUSTER=localnet
# verify that you have SOL balances for gas
KEYPAIR=
/.config/solana/id.json
# run the demo script (this is mostly a smoke test)
# list a market with the default tick size and minimum quantity.
# if both assets have 6 decimals, this will be a quantity of 1 and a tick size of 0.01
COIN_MINT="..."
PRICE_CURRENCY_MINT="..."
First-time setup
# Building the dex
|
|
# run a solana cluster. in a new shell:
NDEBUG=1
# Deploy the dex to our cluster (in the old shell)
DEX_PROGRAM_ID=""
CLUSTER=localnet
KEYPAIR=
/.config/solana/id.json# run the demo script (this is mostly a smoke test)