Upload only the changed files of a directory with swarm-cli sync method so that the uploader does not have to upload unchanged files to Swarm again.
Web3 developers update the project directory multiple times because of the new fixes and features
It optimizes the uploads and the uploader only pays/requests for the file changes that happened since the last update.
Tasks
Introduce swarm-cli sync {folderPath} command that creates a new feed update of the same folder updated in the previous feed update
Inform the user about what file/folder changes they had by swarm-cli sync {folderPath} --dry-run command
Use either mantaray-js or manifest-js to list files and folders of the manifest file of the previous feed update
Use bmt-js for calculating Smarm references of files in the folder and compare those with the previous manifest file list.
Handle when user wants to update not related feed topic, e.g. "There are no common files compare to the previous state... Are you sure you chose the correct identity for uploading?"
Approving criteria
A new public repo is opened with open source code and a link to the repo is in the Gitcoin issue.
Include Readme file with instructions on how to use the app
Use open source license Apache 2.0
The command has to be convenient for uploading/updating project directories to Swarm
Timeline
This bounty is estimated to take no longer than 8 hours and should be completed ASAP upon being selected.
Bounty process
One team will be selected and approved to work on the project.
Upon completion, the bounty prize will be awarded to the chosen team, if the judging committee decides that the submission requirements are met.
If the judging committee decides that the submission requirements are not met, another team will be selected and approved. Consequentially the deadline will be extended.
If according to the judging committee no project matches all the judging criteria, no prizes will be awarded.
Motivation / background / user story:
Tasks
swarm-cli sync {folderPath}
command that creates a new feed update of the same folder updated in the previous feed updateswarm-cli sync {folderPath} --dry-run
commandApproving criteria
Timeline
This bounty is estimated to take no longer than 8 hours and should be completed ASAP upon being selected.
Bounty process
References
Use the Fair Data Society Discord for more information and support.
Mind the Fair Data Society Principles in your tasks.