Skip to content

Commit

Permalink
Merge pull request #6093 from filecoin-project/feat/0x5459/market-fil…
Browse files Browse the repository at this point in the history
…ter-deals

feat(market): filter deals by sector lifetime
  • Loading branch information
simlecode authored Aug 15, 2023
2 parents a885fc4 + e471284 commit e757b70
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions venus-shared/api/market/v0/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down Expand Up @@ -1019,7 +1020,8 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down
6 changes: 4 additions & 2 deletions venus-shared/api/market/v1/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down Expand Up @@ -1020,7 +1021,8 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down
3 changes: 3 additions & 0 deletions venus-shared/types/market/assigner_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e757b70

Please sign in to comment.