replace serum-dex with openbook-dex (#28873)

* replace serum-dex with openbook-dex

* force using master for anchor in downstream builds

* fix
This commit is contained in:
kirill lykov 2022-11-22 09:41:41 +01:00 committed by GitHub
parent dbf68f7e93
commit 731fe3e5da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -80,17 +80,21 @@ spl() {
)
}
serum_dex() {
openbook_dex() {
(
set -x
rm -rf serum-dex
git clone https://github.com/project-serum/serum-dex.git
cd serum-dex
rm -rf openbook-dex
git clone https://github.com/openbook-dex/program.git openbook-dex
cd openbook-dex
update_solana_dependencies . "$solana_ver"
patch_crates_io_solana Cargo.toml "$solana_dir"
cat >> Cargo.toml <<EOF
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", branch = "master" }
EOF
patch_crates_io_solana dex/Cargo.toml "$solana_dir"
cat >> dex/Cargo.toml <<EOF
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", branch = "master" }
[workspace]
exclude = [
"crank",
@ -109,4 +113,4 @@ EOF
_ example_helloworld
_ spl
_ serum_dex
_ openbook_dex