UNPKG

web3.db-fileconnector

Version:

GraphQL System Built on web3 technologies. Web3.DB is an open database built on top of web3 technologies. It is a decentralized, open-source database that allows users to store and query data in a secure and efficient manner. The system is designed to be

18 lines (15 loc) 468 B
// utils/ipfs.ts // This file is currently not in use and has been replaced with a placeholder to prevent build errors // Export a dummy function to prevent TypeScript errors export const initIPFS = async () => { return { add: async (fileBuffer: Buffer) => ({ cid: { toString: () => "placeholder-cid", }, }), }; }; export const uploadFileToIPFS = async (fileBuffer: Buffer) => { return "ipfs://placeholder-cid"; };