Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add comprehensive Anchor CPI example (#393)#408

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ayushmishra2005 wants to merge1 commit intosolana-developers:main
base:main
Choose a base branch
Loading
fromayushmishra2005:cpi_new_example

Conversation

@ayushmishra2005
Copy link

Fixes#393

✨ Features:

  • Complete Anchor-based Solana program demonstrating Cross-Program Invocations (CPI)
  • 5 different CPI patterns: initialize, token transfer, SOL transfer, multiple CPIs, PDA authority
  • Comprehensive TypeScript client tests with multiple test approaches
  • Detailed documentation with code examples and explanations

🔧 Technical Implementation:

  • Anchor framework with version 0.31.1 compatibility
  • SPL Token and System Program CPI integrations
  • Program Derived Address (PDA) authority patterns
  • Account validation and state management
  • Multiple test suites for different scenarios

📚 Educational Value:

  • Detailed comments explaining each CPI step
  • README with comprehensive documentation
  • Code examples for common CPI patterns
  • Best practices for Anchor CPI development

✅ Testing:

  • Program builds and compiles successfully
  • Deploys to local test validator
  • Runtime verification of CPI functionality
  • Multiple test approaches (Anchor workspace, custom tests)

Resolves#393

✨ Features:- Complete Anchor-based Solana program demonstrating Cross-Program Invocations (CPI)- 5 different CPI patterns: initialize, token transfer, SOL transfer, multiple CPIs, PDA authority- Comprehensive TypeScript client tests with multiple test approaches- Detailed documentation with code examples and explanations🔧 Technical Implementation:- Anchor framework with version 0.31.1 compatibility- SPL Token and System Program CPI integrations- Program Derived Address (PDA) authority patterns- Account validation and state management- Multiple test suites for different scenarios📚 Educational Value:- Detailed comments explaining each CPI step- README with comprehensive documentation- Code examples for common CPI patterns- Best practices for Anchor CPI development✅ Testing:- Program builds and compiles successfully- Deploys to local test validator- Runtime verification of CPI functionality- Multiple test approaches (Anchor workspace, custom tests)Resolvessolana-developers#393
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add a new Anchor program example demonstrating cross-program invocations (CPI)

1 participant

@ayushmishra2005

[8]ページ先頭

©2009-2025 Movatter.jp