Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Overview of Orca Whirlpools SDK Suite #471

Merged
merged 5 commits into from
Nov 7, 2024

Conversation

calintje
Copy link
Contributor

@calintje calintje commented Nov 6, 2024

Title
Add Overview of Orca Whirlpools SDK Suite

Details

Screenshot 2024-11-06 155109

image

- Query the state of pools to retrieve information about asset prices, liquidity, and fees.
#### 1. High-Level SDK
- **TypeScript**: [@orca-so/whirlpools](https://www.npmjs.com/package/@orca-so/whirlpools) (Requires Solana Web3.js SDK ≥v2.0)
- **Rust**: orca_whirlpools (in development)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will most likely only work with a single solana version

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Succesfully tried creating an rpc and call fetchAllWhirlpoolWithFilter with v2.0.0-rc.1, v2.0.0-rc-3, v2.0.0-rc.4. Does that still count as a single Solana version, namely 2.0.0?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant the rust sdk. Will only work with solana-(program|client|sdk) v1.18


#### 3. Low-Level SDK
- **TypeScript**: [@orca-so/whirlpools-client](https://www.npmjs.com/package/@orca-so/whirlpools-client) (Requires Solana Web3.js SDK ≥v2.0)
- **Rust**: [orca_whirlpools_client](https://crates.io/crates/orca_whirlpools_client) (Requires Solana SDK v1.18)
Copy link
Member

@wjthieme wjthieme Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Planning to have this work with a range of solana/anchor versions #472

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I will update to Requires Solana SDK <v2

@calintje calintje marked this pull request as ready for review November 6, 2024 23:51
Copy link
Member

@wjthieme wjthieme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚀

@calintje calintje merged commit d9bf7e1 into main Nov 7, 2024
5 checks passed
@calintje calintje deleted the calintje/overview-sdk-suite branch November 7, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants