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:
parent
dbf68f7e93
commit
731fe3e5da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue