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

Update doc site and SDK related recommendations #477

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

calintje
Copy link
Contributor

@calintje calintje commented Nov 7, 2024

Title
Update doc site and SDK related recommendations

Details

  • Update SDK recommendations.
  • Fix links to documentation site.
  • Restructure sidebar, such that it better matches the diagram on the wecome page and the navbar dropdown menu.
    • Add overview of client and core SDKs on documentation site
    • Add Tabs for TS and Rust code samples
  • Add installation guide for legacy SDK.

Screenshot 2024-11-07 134707

@calintje calintje marked this pull request as ready for review November 7, 2024 12:48
README.md Outdated

For specific use-cases you can opt for integrating with lower level packages such as:
* `@orca-so/whirlpools-client` & `orca_whirlpools_client` - auto-generated client for the Whirlpools program that contains account, instruction and error parsing.
* `@orca-so/whirlpools-core` & `orca_whirlpools_core` - utility, math and quoting functions used by other packages.

### Legacy
The legacy Typescript SDK (`@orca-so/whirlpools-sdk`) is still available for use.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe add here that if you are using web3.js <2 you should also use this (since you cannot use the new one)

@@ -4,7 +4,7 @@
![Account Architecture](../../static/img/02-Architecture%20Overview/architecture-overview.png)

## WhirlpoolsConfig
The owner of a Config account has the authority to define the many authorities over the pools that it owns (ex. default fees, collect protocol fees etc) . Whirlpools visible on the ORCA UI are all derived and controlled by a WhirlpoolsConfig account owned by the ORCA foundation. To learn more about managing pools, start [here](../03-Whirlpools%20SDK/02-Whirlpool%20Management/01-Create%20Pool.md).
The owner of a Config account has the authority to define the many authorities over the pools that it owns (ex. default fees, collect protocol fees etc) . Whirlpools visible on the ORCA UI are all derived and controlled by a WhirlpoolsConfig account owned by the ORCA foundation. To learn more about managing pools, start [here](../03-Whirlpools%20SDKs/03-Whirlpools/03-Whirlpool%20Management/01-Create%20Pool.md).
Copy link
Member

Choose a reason for hiding this comment

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

nit: percent encoding in the url looks kinda ugly here. Is it needed?

@@ -1,28 +1,11 @@
import DocCard from '@theme/DocCard';
Copy link
Member

Choose a reason for hiding this comment

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

Does this still need a separate page since it just refers to the same package

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. I will remove it.

@calintje calintje enabled auto-merge (squash) November 7, 2024 13:36
@calintje calintje merged commit 852a822 into main Nov 7, 2024
5 checks passed
@calintje calintje deleted the calintje/update-sdk-recommendations branch November 7, 2024 13:46
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