[marketplace] reordering
Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
parent
019c1c34c0
commit
3bb077db7a
|
@ -21,6 +21,19 @@ contract Marketplace is Collateral, Proofs, StateRetrieval {
|
|||
mapping(RequestId => RequestContext) private requestContexts;
|
||||
mapping(SlotId => Slot) private slots;
|
||||
|
||||
struct RequestContext {
|
||||
RequestState state;
|
||||
uint256 slotsFilled;
|
||||
uint256 startedAt;
|
||||
uint256 endsAt;
|
||||
}
|
||||
|
||||
struct Slot {
|
||||
SlotState state;
|
||||
RequestId requestId;
|
||||
address host;
|
||||
}
|
||||
|
||||
constructor(
|
||||
IERC20 token,
|
||||
MarketplaceConfig memory configuration
|
||||
|
@ -268,19 +281,6 @@ contract Marketplace is Collateral, Proofs, StateRetrieval {
|
|||
return slot.state;
|
||||
}
|
||||
|
||||
struct RequestContext {
|
||||
RequestState state;
|
||||
uint256 slotsFilled;
|
||||
uint256 startedAt;
|
||||
uint256 endsAt;
|
||||
}
|
||||
|
||||
struct Slot {
|
||||
SlotState state;
|
||||
RequestId requestId;
|
||||
address host;
|
||||
}
|
||||
|
||||
event StorageRequested(RequestId requestId, Ask ask);
|
||||
event RequestFulfilled(RequestId indexed requestId);
|
||||
event RequestFailed(RequestId indexed requestId);
|
||||
|
|
Loading…
Reference in New Issue