https://www.notion.so/filecoindev/Data-Set-Terminations-Clean-up-360dc41950c1801ebf0aff017a322e7f
Summary
Implementation of the FWSS (FilecoinWarmStorageService) contract changes for the data set termination and clean-up design. This is the filecoin-services side of the work; see sibling issues for other repos.
FWSS contract changes
712 typehash rename
terminateService changes
dataSetDeleted callback — two-path listener
CDN rail lifecycle change
Client termination fee
Sibling issues
https://www.notion.so/filecoindev/Data-Set-Terminations-Clean-up-360dc41950c1801ebf0aff017a322e7f
Summary
Implementation of the FWSS (FilecoinWarmStorageService) contract changes for the data set termination and clean-up design. This is the filecoin-services side of the work; see sibling issues for other repos.
FWSS contract changes
712 typehash rename
DeleteDataSet(uint256 dataSetId)→TerminateService(uint256 dataSetId)in test fixtures and signature verification helpers (test(fwss): replace DeleteDataSet 712 sig with TerminateService #480).TERMINATE_SERVICE_TYPEHASHfrom the test contract intoSignatureVerificationLib(production code) when theterminateServiceimpl lands. (feat: termination extra data param #485)terminateServicechangesextraDatacarrying client EIP-712 signature for SP-relayed termination. (feat: termination extra data param #485)modifyRailLockup(railId, 0, 0)to drop lockup period to zero for immediate finalisation. (separate issue Per-operation pricing for FilecoinWarmStorageService #469)extraDataempty: SP-initiated termination, 30-day lockup path, no client fee. (separate issue Per-operation pricing for FilecoinWarmStorageService #469)terminateService— CDN rails now persist through the lockup window and terminate indataSetDeletedinstead. (separate issue Per-operation pricing for FilecoinWarmStorageService #469)dataSetDeletedcallback — two-path listenerterminateService. (separate issue Per-operation pricing for FilecoinWarmStorageService #469)pdpEndEpoch == 0, 30d since last proof, any caller): FWSS performs inline rail tear-down (modifyRailLockup→terminateRail→settleRail), handles both funded and underfunded client states, then clears FWSS state. (separate issue Per-operation pricing for FilecoinWarmStorageService #469)CDN rail lifecycle change
dataSetDeletedwith a shorter lockup period (5 days) to give FilBeam a graceful settle window. (feat: operational pricing #488)Client termination fee
terminateServicewhen client 712 is present (client is provably involved). (separate issue Per-operation pricing for FilecoinWarmStorageService #469, and duplicate of above item)Sibling issues
cleanupPieces): [pdp] Simplified DataSet terminations and cleanup for GA pdp#269