Using RaaS
This page is a tutorial on how to replicate, renew and repair storage deals on Filecoin.
Interacting with the Smart Contract
// contractInstance is the address of the contract you deployed or the FullInterface address above.
const dealStatus = await ethers.getContractAt("DealStatus", contractInstance);
// Submit the CID of the file you want to upload to the Filecoin network in the following way.
await dealStatus.submit(ethers.utils.toUtf8Bytes(newJob.cid));Add Replication, Renewal, Repair Workers
Last updated