From 24a7f2c383a7ac817e15f63d727c1b0d284b701f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Duarte?= Date: Thu, 4 Jul 2024 09:27:39 +0100 Subject: [PATCH] docs(market-pallets): fix on_sectors_terminate docs --- primitives/proofs/src/traits.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/primitives/proofs/src/traits.rs b/primitives/proofs/src/traits.rs index 5e0d82488..dd53c6236 100644 --- a/primitives/proofs/src/traits.rs +++ b/primitives/proofs/src/traits.rs @@ -43,12 +43,14 @@ pub trait Market { compute_cid: bool, ) -> Result, ConstU32>, DispatchError>; - /// Activate a set of deals grouped by sector, returning the size and - /// extra info about verified deals. - /// Sectors' deals are activated in parameter-defined order. - /// Each sector's deals are activated or fail as a group, but independently of other sectors. - /// Note that confirming all deals fit within a sector is the caller's responsibility - /// (and is implied by confirming the sector's data commitment is derived from the deal pieces). + /// Terminate a set of deals in response to their sector being terminated. + /// + /// Slashes the provider collateral, refunds the partial unpaid escrow amount to the client. + /// + /// A sector can be terminated voluntarily — the storage provider terminates the sector — + /// or involuntarily — the sector has been faulty for more than 42 consecutive days. + /// + /// Source: fn on_sectors_terminate( storage_provider: &AccountId, sector_ids: BoundedVec>,