diff --git a/venus-shared/api/market/v0/method.md b/venus-shared/api/market/v0/method.md index e2eac5a1f5..35b68187b8 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 ebf51b1833..9245e08808 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 {