You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Implement the initial setup for uploading and retrieving files using IPFS to support decentralized storage for research proposals, profiles, and DAO metadata.
Tasks
1. Integrate IPFS API:
Set up connection to an IPFS node (e.g., Infura, Pinata, or local node).
Add configuration for IPFS API keys and endpoints in .env.local.
2. Build Upload Functionality:
Implement a utility function to upload files to IPFS.
Return the IPFS hash (CID) after a successful upload.
3. Build Retrieval Functionality:
Add a function to retrieve files using their IPFS hash.
Handle error cases for invalid or unavailable CIDs.
4. UI Integration:
Create a simple upload interface with drag-and-drop or file selection.
Display the generated IPFS hash and a preview of uploaded content.
5. Testing:
Verify successful file uploads and retrievals.
Test error handling for invalid uploads.
Acceptance Criteria
Users can upload files and receive an IPFS hash.
Uploaded files are retrievable using the hash.
Upload functionality is secure and handles errors gracefully.
Priority: Medium Target Milestone: MVP Version
Notes: Focus on a scalable setup compatible with future IPFS integrations for proposals, metadata, and profiles.
Description
Implement the initial setup for uploading and retrieving files using IPFS to support decentralized storage for research proposals, profiles, and DAO metadata.
Tasks
1. Integrate IPFS API:
Set up connection to an IPFS node (e.g., Infura, Pinata, or local node).
Add configuration for IPFS API keys and endpoints in .env.local.
2. Build Upload Functionality:
Implement a utility function to upload files to IPFS.
Return the IPFS hash (CID) after a successful upload.
3. Build Retrieval Functionality:
Add a function to retrieve files using their IPFS hash.
Handle error cases for invalid or unavailable CIDs.
4. UI Integration:
Create a simple upload interface with drag-and-drop or file selection.
Display the generated IPFS hash and a preview of uploaded content.
5. Testing:
Verify successful file uploads and retrievals.
Test error handling for invalid uploads.
Acceptance Criteria
Priority: Medium
Target Milestone: MVP Version
Notes: Focus on a scalable setup compatible with future IPFS integrations for proposals, metadata, and profiles.
CC: @tranvanhai0504
The text was updated successfully, but these errors were encountered: