https://github.com/bitfancy/raydium-cpi
raydium cpi
https://github.com/bitfancy/raydium-cpi
Last synced: 10 months ago
JSON representation
raydium cpi
- Host: GitHub
- URL: https://github.com/bitfancy/raydium-cpi
- Owner: BitFancy
- Created: 2025-02-12T07:42:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-12T09:33:45.000Z (about 1 year ago)
- Last Synced: 2025-05-07T13:56:49.919Z (10 months ago)
- Language: Rust
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://github.com/raydium-io/raydium-cpi-example/tree/anchor-0.30.1).