Skip to content

feat: add Aptos file upload example for testnet#28

Open
0xbyt4 wants to merge 2 commits intoshelby:mainfrom
0xbyt4:feature/aptos-file-upload
Open

feat: add Aptos file upload example for testnet#28
0xbyt4 wants to merge 2 commits intoshelby:mainfrom
0xbyt4:feature/aptos-file-upload

Conversation

@0xbyt4
Copy link
Copy Markdown

@0xbyt4 0xbyt4 commented Mar 9, 2026

Summary

Screenshot 2026-03-09 at 14 58 50
  • Adds apps/aptos/file-upload — a Next.js 16 web app demonstrating native Aptos file upload to Shelby Protocol
  • Uses @aptos-labs/wallet-adapter-react with AIP-62 wallet auto-detection (Petra, Nightly, etc.)
  • Uses @shelby-protocol/react useUploadBlobs hook for storage operations
  • Targets Network.TESTNET (early access testnet)
  • Wallet address is used directly as storage account (no cross-chain derivation needed)
  • Follows the same structure and conventions as the existing Solana file upload example
  • Adds apps/aptos/* to pnpm-workspace.yaml

Note

Medium Risk
Mostly additive, but the pnpm-lock.yaml upgrades Shelby SDK/react/solana-kit versions which could affect other example apps’ behavior and builds.

Overview
Adds a new apps/aptos/file-upload Next.js 16 example that connects an Aptos wallet and uploads a selected file to Shelby storage on testnet, showing upload status and linking to the Shelby Explorer.

Includes the app’s wallet-connect UI (WalletButton modal/dropdown), react-query/Aptos wallet providers, a shared ShelbyClient configured via NEXT_PUBLIC_SHELBY_API_KEY, plus Tailwind-based styling and setup docs. Updates pnpm-workspace.yaml to include apps/aptos/* and refreshes pnpm-lock.yaml with the new app and newer Shelby package versions.

Written by Cursor Bugbot for commit c825011. This will update automatically on new commits. Configure here.

Adds a Next.js web app demonstrating Aptos native file upload to Shelby Protocol
using @aptos-labs/wallet-adapter-react and @shelby-protocol/react hooks.

- AIP-62 wallet auto-detection (Petra, Nightly, etc.)
- Upload files with useUploadBlobs hook
- Network.TESTNET (early access testnet)
- Wallet address used directly as storage account (no derivation)
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

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.

1 participant