💡 Whirlpool program uses Anchor 0.29.0 and Solana 1.17.22, so using Anchor 0.29 and Solana 1.17 is best & free from any trouble if possible.
Cargo.toml
[dependencies]
anchor-lang = "=0.30.1"
anchor-spl = "=0.30.1"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.30.1" }
Cargo.toml
[dependencies]
anchor-lang = "=0.29.0"
anchor-spl = "=0.29.0"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.29.0" }
Cargo.toml
[dependencies]
anchor-lang = "=0.28.0"
anchor-spl = "=0.28.0"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.28.0" }
Cargo.toml
[dependencies]
anchor-lang = "=0.27.0"
anchor-spl = "=0.27.0"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.27.0" }
Cargo.toml
[dependencies]
anchor-lang = "=0.26.0"
anchor-spl = "=0.26.0"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.26.0" }
Cargo.toml
[dependencies]
anchor-lang = "=0.25.0"
anchor-spl = "=0.25.0"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.25.0" }
Cargo.toml
[dependencies]
anchor-lang = "=0.24.2"
anchor-spl = "=0.24.2"
whirlpool-cpi = { git = "https://github.com/orca-so/whirlpool-cpi", branch = "anchor/0.24.2" }
You can find concrete examples in the following repository: