diff --git a/venus-shared/api/market/v0/method.md b/venus-shared/api/market/v0/method.md index c101be2e3e..0ff18a4423 100644 --- a/venus-shared/api/market/v0/method.md +++ b/venus-shared/api/market/v0/method.md @@ -239,7 +239,8 @@ Inputs: "MinPieceSize": 42, "MinUsedSpace": 42, "StartEpoch": 10101, - "EndEpoch": 10101 + "EndEpoch": 10101, + "SectorExpiration": 10101 } ] ``` @@ -1019,7 +1020,8 @@ Inputs: "MinPieceSize": 42, "MinUsedSpace": 42, "StartEpoch": 10101, - "EndEpoch": 10101 + "EndEpoch": 10101, + "SectorExpiration": 10101 } ] ``` diff --git a/venus-shared/api/market/v1/method.md b/venus-shared/api/market/v1/method.md index 1a5f90bacb..c0a0c40c89 100644 --- a/venus-shared/api/market/v1/method.md +++ b/venus-shared/api/market/v1/method.md @@ -240,7 +240,8 @@ Inputs: "MinPieceSize": 42, "MinUsedSpace": 42, "StartEpoch": 10101, - "EndEpoch": 10101 + "EndEpoch": 10101, + "SectorExpiration": 10101 } ] ``` @@ -1020,7 +1021,8 @@ Inputs: "MinPieceSize": 42, "MinUsedSpace": 42, "StartEpoch": 10101, - "EndEpoch": 10101 + "EndEpoch": 10101, + "SectorExpiration": 10101 } ] ``` diff --git a/venus-shared/types/market/assigner_type.go b/venus-shared/types/market/assigner_type.go index b5f122e8b1..dfb3f259d0 100644 --- a/venus-shared/types/market/assigner_type.go +++ b/venus-shared/types/market/assigner_type.go @@ -51,6 +51,9 @@ type GetDealSpec struct { // end epoch limit of the chosen deals // if set, the deals should not be alive after or equal than the this epoch EndEpoch abi.ChainEpoch + + // Filter by sector lifetime, for snapdeal + SectorExpiration *abi.ChainEpoch } type DealInfoIncludePath struct {