I'm trying to run a CPI example of Raydium AMM https://github.com/raydium-io/raydium-cpi-example/blob/master/amm-cpi/
All settings are the same as in GitHub repo.
[dependencies]
anchor-lang = "0.29.0"
anchor-spl = "0.29.0"
amm-anchor = { git = "https://github.com/raydium-io/raydium-contract-instructions", package = "amm-anchor" }
solana-program = ">=1.16, <1.18"
It seems that dependencies versions are wrong.
Cargo.lock
[[package]]
name = "solana-program"
version = "1.16.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
...
[[package]]
name = "solana-program"
version = "2.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
I found that people are playing with versions to solve this problem, but since my experience with Rust and Solana is very low I don't know what versions they are using. And how do they downgrade dependencies that are automatically loaded from other dependencies?