A FVM compatible deal bounty contract example that empowers Filecoin Data DAOs uses cases.
This repo contains A solidity contract template that lists data bounties to claim, and pays out the bounty upon the deal proven to be made with the builtin filecoin builtin market.
To build and test you will need to install foundry which depends on cargo
. After installing foundry simple run
make build
to compile the contracts.
If you build an extension to this MVP contract this repo hopes to be a good home for it. Follow the contribution guidelines to add your extended contracts back here where they can be shared with other developers.
A simple deal bounty contract consists a list of the data CIDs that it incentives to store on Filecoin. Once a storage deals is made for the listed data, the data bounty hunter can claims the data bounty by providing the deal ID. The contract will check with the Filecoin storage market to confirm whether the supplied deal ID is activated and stores the claimed data. Once validated, the deal bounty contract will pay the bounty hunter out.
The deal bounty contract consists of three conceptual building blocks
- A simple data DAO can be implemented with a client that adds the bounties through a voting mechanism
- Perpetual storage contracts can by implemented with clients that funds deals with defi mechanisms and recycle cids from expiring deals into their authorization sets
- Trustless third party data funding can be implemented with 1) public ability to list the bounty 2) a funding mechanism that associates payments with particular cids
There are many ways you can store data on Filecoin, you can find more details here. To better design a DataDao or a data bounty operation, you'd benefit a lot from understanding the data onboarding flow with storage providers, see the tutorial here if you haven't already!
You can find us easily at the Filecoin Slack workspace(filecoin.io/slack) - #fil-lotus-dev