feat: add Solana file upload example #21
Open
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.
A simple Solana dApp demonstrating file uploads to Shelby Protocol.
What's included
@shelby-protocol/solana-kit/reactAPItoken-gatedexample (create-solana-dapp) but without AnchorPackages used
@solana/react-hooks- wallet connection@shelby-protocol/solana-kit/react- storage account derivation@shelby-protocol/react- blob uploadsFiles
Note
Low Risk
Adds a new standalone Next.js example app and updates the lockfile; no existing production logic is modified beyond dependency resolution.
Overview
Adds a new
apps/solana/file-uploadNext.js example that lets users connect a Solana wallet (via@solana/react-hooks), derives a Shelby storage account with the updated@shelby-protocol/solana-kit/reactAPI, and uploads a selected file as a blob (with basic status/error UI and an Explorer link).Includes app scaffolding/config (
Providerswith React Query + Solana client autodiscovery, Tailwind styling, Next/TS/ESLint configs), plus.env.example/README.mdandpnpm-lock.yamlupdates to pull in the new app’s dependencies.Written by Cursor Bugbot for commit 41c2dd5. This will update automatically on new commits. Configure here.