Closed MrToph closed 4 years ago
Hi, this is the initial idea that would be useful for us and hopefully for others as well. We can discuss LiquidAccount uploads based on this.
This is wonderful. Opening up internally for review. Once we have approved / made changes / declined (not likely) there, I will update here.
Thank you for your contribution.
few modifications to make things work, otherwise accepted as is
New changes:
updated PR internally, running tests
fixed bug, merged internally, thank you for the PR!
Changelog
public_upload_vaccount
endpoint. This endpoint can be used directly from the frontend by vaccounts. The vaccount signs the file to upload, sends it to the DSP, which verifies and stores the file. Optionally, it does some additional quota checks defined by the consumer contract: It can define max file sizes, daily global upload limits, and daily limits on a per vaccount level.storageconsumer
contract testing the vaccount uploads + limits checking.upload_public
endpoint to acommon.js
file as most functionality is now also required by the newupload_public_vaccount
endpoint.external
andbox
to thesync-builtin-boxes
command, because it did not work with the public zeus-sdk repo. External should be set to true when using the public repo. The default args are chosen in a way that they shouldn’t change anything if invoked as usual.Update:
In partnership with MaltaBlock