solana-playground / solana-playground

Quickly develop, deploy and test Solana programs from browsers
https://beta.solpg.io
Apache License 2.0
399 stars 135 forks source link

Support Orca's whirpool-cpi crate #223

Open BorkBorked opened 1 month ago

BorkBorked commented 1 month ago

Orca is the second largest Solana DEX and concentrated liquidity AMM. They publish an official crate to use their product : https://github.com/orca-so/whirlpool-cpi

Would love to see SOLPG integrate it, as it's the most dev-friendly DEX rn (there's no Raydium DEX) and their functions and structs can get quite messy with no crate importation.

Have a nice sunday.

acheroncrypto commented 1 month ago

We should be able to add this, but in Anchor 0.30, you'll be able declare program crates (including CPI client) with the declare_program! macro:

declare_program!(whirlpool);

This will mostly remove the need to import crates separately.

Have a nice sunday.

Thanks, you too!