Mark Spanbroek
cb5427ca95
[sales] Pass along request and slot index in onStore callback
2022-08-08 14:00:55 +02:00
Mark Spanbroek
3a3d083345
[contracts] Replace size by slotSize
2022-08-08 14:00:55 +02:00
Mark Spanbroek
bf11ef5b55
[sales] Use correct slot price
2022-08-08 14:00:55 +02:00
Mark Spanbroek
057de4e928
[sales] Choose a slot index at random
2022-08-08 14:00:55 +02:00
Mark Spanbroek
dc95c863d2
[sales] replace fulfillRequest() by fillSlot()
2022-08-08 14:00:55 +02:00
Mark Spanbroek
360c03e7c4
[contracts] Rename: maxPrice -> reward
2022-08-08 14:00:55 +02:00
Mark Spanbroek
97a5237d44
[sales] Add documentation
2022-07-20 13:43:20 +02:00
Mark Spanbroek
571aa6f694
[sales] Consistent names for callbacks
2022-07-20 13:43:20 +02:00
Mark Spanbroek
592a3dce4d
[sales] Add callback for clearing storage when no longer needed
2022-07-20 13:43:20 +02:00
Mark Spanbroek
adcb91a5d5
[node] Store datasets locally when sales asks for it
2022-07-20 13:43:20 +02:00
Mark Spanbroek
e06211f827
[sales] rename: negotiation -> sales agent
...
Reason: with the new design there are no offers and
selection, making this less like a negotation, and
more like an agent trying to fulfill a storage request
2022-07-20 13:43:20 +02:00
Mark Spanbroek
96ca1de768
Cleanup: remove StorageOffer everywhere
2022-07-20 13:43:20 +02:00
Mark Spanbroek
f14eeb688b
[WIP sales] Handle request expiry
2022-07-20 13:43:20 +02:00
Mark Spanbroek
9438aba5d2
[WIP sales] Handle other host fulfilling request
2022-07-20 13:43:20 +02:00
Mark Spanbroek
7f864570bd
[WIP sales] call onSale()
2022-07-20 13:43:20 +02:00
Mark Spanbroek
a2570f9380
[WIP sales] fulfill request
2022-07-20 13:43:20 +02:00
Mark Spanbroek
5abd5dd674
[WIP sales] make storage available again upon failure
2022-07-20 13:43:20 +02:00
Mark Spanbroek
dcb8f8a7f7
[WIP sales] Generate proof of storage
2022-07-20 13:43:20 +02:00
Mark Spanbroek
07dbb6ae18
[WIP sales] Retrieve data
2022-07-20 13:43:20 +02:00
Mark Spanbroek
3e6d51754d
[WIP sales] Make tests pass by commenting out code
2022-07-20 13:43:20 +02:00
Michael Bradley
209343087c
Change every dagger to codex ( #102 )
2022-05-19 13:56:03 -06:00