Simple smart-contract system for conclusion of a storage agreements.
- guarantees that the provider stores the file
- no storage - no payment
- no penalties, if provider doesn't store file client can stop payment at any time
- no control that provider upload the file: client can stop payment at any time if not satisfied
Storage provider deploy storage agreements fabric. Any client may request fabric to deploy storage agreement contract.
Fabric provides get-method get_storage_params
which returns
accept_new_contracts?
- whether provider accepts new contractsrate_per_mb_day
- price in nanoTON per Megabyte per daymax_span
- maximal timespan between proving file storage which will be paidminimal_file_size
- minimal file size accepted by providermaximal_file_size
- maximal file size accepted by provider
Agreement contract has client account and accept deposits to this account.
It also knows merkle root and allows provider to withdraw money from client account by providing merkle proof of file storage.
Client can stop agreement at any time.