Skip to content

raydium-io/raydium-cpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raydium CPI adapters are suitable for different Anchor versions. For the stability of the AMM contract, it cannot be updated to the latest versions of Anchor and Solana in a timely manner. If you want to use the latest version of Anchor, please rely on this repository. The master branch maintains the latest version, if relying on an older Anchor, please refer to other branches.

Environmental requirements

solana-cli 1.18.26
anchor-cli 0.30.1

Usage

Call CLMM through CPI.

[dependencies]
anchor-lang = "=0.30.1"
anchor-spl = "=0.30.1"
raydium-clmm-cpi = { git = "https://github.com:raydium-io/raydium-cpi", package = "raydium-clmm-cpi", branch = "anchor-0.30.1" }

Call CPMM through CPI.

[dependencies]
anchor-lang = "=0.30.1"
anchor-spl = "=0.30.1"
raydium-cpmm-cpi = { git = "https://github.com:raydium-io/raydium-cpi", package = "raydium-cpmm-cpi", branch = "anchor-0.30.1" }

Call AMM through CPI.

[dependencies]
anchor-lang = "=0.30.1"
anchor-spl = "=0.30.1"
raydium-amm-cpi = { git = "https://github.com:raydium-io/raydium-cpi", package = "raydium-amm-cpi", branch = "anchor-0.30.1" }

You can find usage examples in this repository.