Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] - Build Init Setup For IPFS Upload #11

Open
1 of 5 tasks
0xBoji opened this issue Dec 27, 2024 · 0 comments
Open
1 of 5 tasks

[FEAT] - Build Init Setup For IPFS Upload #11

0xBoji opened this issue Dec 27, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@0xBoji
Copy link
Member

0xBoji commented Dec 27, 2024

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.

CC: @tranvanhai0504

@0xBoji 0xBoji added the enhancement New feature or request label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants