diff --git a/venus-shared/api/market/method.md b/venus-shared/api/market/method.md index e7006bf078..35aa2d4e85 100644 --- a/venus-shared/api/market/method.md +++ b/venus-shared/api/market/method.md @@ -176,7 +176,9 @@ Inputs: "MaxPieceSize": 42, "MinPiece": 123, "MinPieceSize": 42, - "MinUsedSpace": 42 + "MinUsedSpace": 42, + "StartEpoch": 10101, + "EndEpoch": 10101 } ] ``` @@ -633,7 +635,9 @@ Inputs: "MaxPieceSize": 42, "MinPiece": 123, "MinPieceSize": 42, - "MinUsedSpace": 42 + "MinUsedSpace": 42, + "StartEpoch": 10101, + "EndEpoch": 10101 } ] ``` diff --git a/venus-shared/types/market/assigner_type.go b/venus-shared/types/market/assigner_type.go index 8608b9decf..9fe4538f84 100644 --- a/venus-shared/types/market/assigner_type.go +++ b/venus-shared/types/market/assigner_type.go @@ -43,6 +43,14 @@ type GetDealSpec struct { // min limit of total space used by deals MinUsedSpace uint64 + + // start epoch limit of the chosen deals + // if set, the deals should not be activated before or equal than the this epoch + StartEpoch abi.ChainEpoch + + // 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 } type DealInfoIncludePath struct {