{`Validation Pool Count: ${validationPools.length}`}
Work Contract 1
{`Price: ${work1Price} ETH`}
Stake Availability:
{' '}
{!reputation && <>No reputation available to stake>}
{reputation > 0 && (
<>
{' '}
>
)}
Availability Stake Count:
{' '}
{availabilityStakes.length}
ID |
Worker |
Amount |
End Time |
Assigned |
Reclaimed |
Actions |
{availabilityStakes.filter((x) => !!x).map((s) => (
{s.id.toString()} |
{s.worker.toString()} |
{s.amount.toString()} |
{new Date(Number(s.endTime) * 1000).toLocaleString()} |
{s.assigned.toString()} |
{s.reclaimed.toString()} |
{s.currentUserIsWorker() && (
)}
{s.currentUserIsWorker() && s.timeRemaining <= 0
&& !s.assigned && !s.reclaimed && (
<>
{' '}
>
)}
|
))}
Work Request Count:
{' '}
{workRequests.length}
ID |
Customer |
Fee |
Status |
Stake ID |
Approval |
Pool ID |
Actions |
{workRequests.filter((x) => !!x).map((request) => (
{request.id.toString()} |
{request.customer.toString()} |
{request.feeEther}
{' '}
ETH
|
{request.statusString} |
{request.stakeIndex.toString()} |
{request.approval.toString()} |
{request.poolIndex.toString()} |
{availabilityStakes.length > 0
&& availabilityStakes[Number(request.stakeIndex)]?.currentUserIsWorker()
&& Number(request.status) === 0 && (
)}
{request.currentUserIsCustomer()
&& Number(request.status) === 1 && (
<>
>
)}
|
))}