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 bab92e1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
8 changes: 6 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,9 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorActivation": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down Expand Up @@ -1019,7 +1021,9 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorActivation": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down
8 changes: 6 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,9 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorActivation": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down Expand Up @@ -1020,7 +1022,9 @@ Inputs:
"MinPieceSize": 42,
"MinUsedSpace": 42,
"StartEpoch": 10101,
"EndEpoch": 10101
"EndEpoch": 10101,
"SectorActivation": 10101,
"SectorExpiration": 10101
}
]
```
Expand Down
4 changes: 4 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,10 @@ 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
SectorActivation *abi.ChainEpoch
SectorExpiration *abi.ChainEpoch
}

type DealInfoIncludePath struct {
Expand Down

0 comments on commit bab92e1

Please sign in to comment.