This page is a tutorial on how to replicate, renew and repair storage deals on Filecoin.
First, you need to:
OR use an existing instance of the FullInterface located at
Calibration Testnet: 0x6ec8722e6543fB5976a547434c8644b51e24785b
Interact with the smart contract by submitting a CID of your choice to the submit
function. This will create a new deal request that will be picked up by the RaaS services.
Before that, you need to know how to register the various RaaS workers. Note that RaaS functionality will NOT function automatically if deals are only created using submit function.
You can add workers to perform replication, renewal, and repair jobs by having them listen to the SubmitAggregatorRequest
. The methods for doing so differ between the Base and Full interfaces.
This event listener performs processing for each job submitted to the contract to add RaaS service workers and eventually to call complete
on the contract.
To use this, call yarn service
in the terminal and proceed through the frontend, as you normally would when uploading a file. Register the workers using the autocompleted CID that appears in the box.
If you want to register the workers manually for a job that you didn't upload, paste in the known CID of your file into the box and register the jobs.