[marketplace] reordering

Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
Mark Spanbroek 2023-01-19 12:06:38 +01:00 committed by markspanbroek
parent 019c1c34c0
commit 3bb077db7a
1 changed files with 13 additions and 13 deletions

View File

@ -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);