project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

DealFlow

DealFlow: Unlocking Decentralized File Storage on Filecoin with Seamless Autonomy, Verifiable Security, and Robust, Scalable Solutions for Users and Storage Providers. Experience the Future of File Storage with IPC, Stablecoin Payments, and Easy Retrieval—All on-chain

DealFlow

Created At

HackFS 2024

Winner of

Filecoin - Best use of Filecoin or the FVM 1st place

Fleek - Pool Prize

Prize Pool

Project Description

Storing Files in a decentralized way, not having to trust centralized servers, and having the same accessibility, who doesn’t want that?

Filecoin has been leading in the space of decentralized storage and presents a perfect solution to the problem, at least on the protocol level. Still, there are many blockers in connecting users who want to store files and Storage providers who want to store them. Moreover, many of the existing solutions to store data in Filecoin have centralized points, are non-retrievable on-chain and there’s no way to verify the storage easily.

DealFlow aims to solve these problems. It is an on-chain solution for the complete verifiable flow of storing files in Filecoin for SPs and end-users. It aims to give complete autonomy to both SPs to decide on their needs and specs and users to choose from different miners having various deliverables. The main features of DealFlow are:-

  • IPC for scaling: It's on-chain 🙂. Having transaction for each file on mainnet is not at all feasible. IPC comes to the rescue here. Miners can set up their own subnets on-chain from the DealFlow contract, decide its specs, and change or delete them. They can set up their hardware in coherence with subnet for robust deal making process.
  • Stablecoin payment for Storage Providers: SPs can register for payment in native or any other on-chain stablecoin. They can configure their subnet specs like collateral, etc with same coin, giving them complete autonomy.
  • Verifiable storage and Retrieval: If you thought deal making so intensive, there’s another problem, how to verify that your file is actually stored? Typical solutions to this are PODSI or retrievability. User wants his data to be retrievable throughout the deal. DealFlow enables it with help of TELLOR oracles. User can challenge any deal, and tellor reporters would post CID on-chain, which can then be verified and miner can be slashed if not validated. With IPC miner can opt to post PODSI on-chain for deal verifiability as well.
  • Easy UI: In the Filecoin network, there’s no one perfect place for miners and users to get all the options they need. With DealFlow, miner can register themselves with their asks (easily updatable), handle the subnets, view deal status, etc. Users would be able to see all available miners with their specs to choose from and verify retrieval and storage. With DealFlow, we aim to flow deals into Filecoin network, make a free-flowing experience for SPs and miners, and solve the universal problem of centralized storage.

How it's Made

We have used various technologies to make DealFlow functional. First of all, as being on-chain we used a lot of Filecoin-solidity library to get on-chain data on deals, miners, etc. We implemented deal-making through Filecoin-client contracts, keeping deals on-chain.

Next is IPC, we spin subnets directly from our contract for each registered miner. The miner can handle the whole deal-making process through this subnet, and have a choice of tokens, collateral, consensus, etc. IPC gives us options for on-chain PODSI verification, etc with its infinite scaling capabilities. While integrating IPC, had to do it manually due to lack of package, thus collaborated with IPC team, and helped resolve few bugs to unblock package publishing through PRs leading to the first smart contract IPC package.

Tellor comes into play for verification, FileCid and DealStatus specs of tellor help to challenge miner retrieval and deals and slash them in case of failure compensating the user.

We don’t like backends in our dApps but this was not possible without Beryx APIs, they provided us directly usable APIs to fetch metadata for various Tokens miners can choose to pay from, giving them wide options and making our dApp give fast responses as well. Building a dApp and deploying only on centralized services don’t seem apt, we used Fleek to decentralize our deployments

background image mobile

Join the mailing list

Get the latest news and updates