Prototyping and testing - WIP#26
Open
mudigal wants to merge 5 commits intofeat/s3-storage-interfacefrom
Open
Conversation
Add TypeScript/JavaScript SDKs for Layer 1 storage interfaces: File System SDK (@web3-storage/file-system-sdk): - FileSystemClient with drive, directory, and file operations - Full TypeScript types - Basic usage example S3 SDK (@web3-storage/s3-sdk): - S3Client with bucket and object operations - S3-compatible API - Full TypeScript types - Basic usage example Both SDKs use polkadot-api and tsup bundling (CJS + ESM).
React-based web interface for managing Web3 Storage with both File System and S3-compatible storage interfaces. Features: - Dashboard with network status and storage overview - Drives page for File System drive management - Buckets page for S3-compatible bucket management - Upload page with drag-and-drop file selection - Download page with CID, path, and bucket key support - Explorer for browsing storage contents - Accounts page for keypair management Tech stack: - React 19 + Vite 7 + TypeScript - Tailwind CSS 4 + Radix UI components - polkadot-api for chain interaction
- Add StorageClient wrapper for browser-compatible SDK operations - Create useStorage hook for React context/state management - Wire up Drives page with real drive creation/deletion via SDK - Wire up Buckets page with real S3 bucket operations - Wire up Upload page with real file upload to provider - Wire up Download page with real content retrieval by CID - Update Accounts page to integrate with storage signer The UI now communicates with the actual provider node for: - File uploads (PUT /node + POST /commit) - File downloads (GET /node) - CID computation using blake2 hashing Note: On-chain operations (drive/bucket creation) are simulated until the chain types are generated via papi.
- Add Explorer page with subscription-based event monitoring - Subscribe to finalized block events using polkadot-api - Filter and display Layer 0 events (StorageProvider, DriveRegistry, S3Registry) - Add event styling with icons and colors for different event types - Add manual refresh and live/paused toggle functionality - Fix storage SDK to use correct two-step drive creation workflow - Fix S3 bucket creation with proper parameter handling - Add vite-env.d.ts for CSS module type declarations
The runtime was built with SDK commit c7b9c08 (2026-01-28) but CI downloaded binaries from polkadot-stable2512 tag (2025-12-19). This version mismatch caused polkadot-omni-node to fail executing the runtime WASM in CI, while working locally due to cached binaries. Changes: - Update all SDK references to polkadot-stable2512-2 (00fbc91) - Fix generate_session_keys API change (signature changed in new SDK) - Add node_spawn_timeout = 240 to zombienet.toml for slower CI
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.
Was trying to create a easy way to use S3 and File System for Dragan's Feb hackathon - https://forum.parity.io/t/february-weekend-hackathon/2723.
This is still WIP