mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	| .. | ||
| .gitignore | ||
| build.sh | ||
| constants.fc | ||
| embed-provider-code.cpp | ||
| README.md | ||
| storage-contract-code.boc | ||
| storage-contract.fc | ||
| storage-contract.fif | ||
| storage-provider-code.boc | ||
| storage-provider.fc | ||
| storage-provider.fif | ||
Storage Provider
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 Agreements Fabric
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 contracts
- rate_per_mb_day- price in nanoTON per Megabyte per day
- max_span- maximal timespan between proving file storage which will be paid
- minimal_file_size- minimal file size accepted by provider
- maximal_file_size- maximal file size accepted by provider
Storage agreement
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.