Skip to content

Commit

Permalink
feat(market): filter deals by sector lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5459 committed Aug 11, 2023
1 parent 20ffb74 commit d34b918
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
SectorExpiration *abi.ChainEpoch
}

type DealInfoIncludePath struct {
Expand Down

0 comments on commit d34b918

Please sign in to comment.