Skip to content

Reorganize finance examples and move Pyth to basics#43

Merged
mikemaccana merged 2 commits into
mainfrom
claude/wonderful-ritchie-7dyZi
Jun 2, 2026
Merged

Reorganize finance examples and move Pyth to basics#43
mikemaccana merged 2 commits into
mainfrom
claude/wonderful-ritchie-7dyZi

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

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 to basics/ since it's a foundational concept rather than a complete application.

Key Changes

  • Reorganized directory structure: Moved all financial application examples from tokens/ and defi/ directories into a new top-level finance/ 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/ to basics/pyth/ to reflect that it's a single-concept building block rather than a complete financial application

  • Reordered README examples: Updated the Financial Software section to present examples in a more pedagogical order:

    • Escrow is now listed first as "the best first finance program to learn on Solana"
    • Order Book based Exchange follows as the next complexity level
    • AMM based Exchange (formerly "Automated Market Maker") comes after
    • Token Fundraiser and Vault Strategy follow
    • Pyth Price Feeds moved to "Single concept examples" section with expanded explanation
  • 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.toml and .ghaignore to reflect the new directory structure

Notable Details

  • The escrow example is now positioned as the foundational finance program, emphasizing its role in teaching atomic swaps
  • Descriptions were expanded to explain how each concept relates to production systems
  • All path references in documentation and configuration files were updated consistently

https://claude.ai/code/session_01CfCCGCXne6eViGamZwy7ot

claude added 2 commits June 2, 2026 20:01
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
@mikemaccana mikemaccana merged commit 403f003 into main Jun 2, 2026
15 checks passed
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