Reorganize finance examples and move Pyth to basics#43
Merged
Conversation
Reorder the Financial Software section to lead with Escrow (the recommended first finance program), then Order Book based Exchange, then AMM based Exchange, followed by Token Fundraiser and Vault Strategy. Rewrite descriptions to be approachable to readers learning Solana and finance at the same time. Move all finance programs into a new finance/ directory: - finance/escrow (from tokens/) - finance/order-book (from defi/) - finance/token-swap (from tokens/) - finance/token-fundraiser (from tokens/) - finance/vault-strategy (from defi/) defi/ is removed. Pyth is an oracle-reading single-concept example rather than a finance program, so move oracles/pyth to basics/pyth and list it under the renamed 'Single concept examples' section (formerly 'Basics'); oracles/ is removed. Update workspace members in Cargo.toml, ignored paths in .github/.ghaignore, and order-book internal path references. https://claude.ai/code/session_01CfCCGCXne6eViGamZwy7ot
Tokenized assets are just assets — drop the redundant 'tokenized' framing from the Vault Strategy description. https://claude.ai/code/session_01CfCCGCXne6eViGamZwy7ot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR reorganizes the example programs to improve the learning progression and categorization. Finance-related examples are consolidated under a new
finance/directory, and the Pyth oracle example is moved tobasics/since it's a foundational concept rather than a complete application.Key Changes
Reorganized directory structure: Moved all financial application examples from
tokens/anddefi/directories into a new top-levelfinance/directory:tokens/escrow/→finance/escrow/tokens/token-swap/→finance/token-swap/tokens/token-fundraiser/→finance/token-fundraiser/defi/order-book/→finance/order-book/defi/vault-strategy/→finance/vault-strategy/Moved Pyth oracle example: Relocated from
oracles/pyth/tobasics/pyth/to reflect that it's a single-concept building block rather than a complete financial applicationReordered README examples: Updated the Financial Software section to present examples in a more pedagogical order:
Updated documentation: Enhanced descriptions for each example to better explain the concepts and their relationships to real-world systems (Openbook, Phoenix, Raydium, Orca)
Updated build configuration: Modified
Cargo.tomland.ghaignoreto reflect the new directory structureNotable Details
https://claude.ai/code/session_01CfCCGCXne6eViGamZwy7ot