nim-dagger/codex/sales/states
Eric 4c51dca299
feat(slot-reservations): Add SaleSlotReserving state (#917)
* convert EthersError to MarketError

* change `canReserveSlot` and `reserveSlot` parameters

Parameters for `canReserveSlot` and `reserveSlot` were changed from `SlotId` to `RequestId` and `UInt256 slotIndex`.

* Add SaleSlotReserving

Adds a new state, SaleSlotReserving, that attempts to reserve a slot before downloading.
If the slot cannot be reserved, the state moves to SaleIgnored.
On error, the state moves to SaleErrored.

SaleIgnored is also updated to pass in `reprocessSlot` and `returnBytes`, controlling the behaviour in the Sales module after the slot is ignored. This is because previously it was assumed that SaleIgnored was only reached when there was no Availability. This is no longer the case, since SaleIgnored can now be reached when a slot cannot be reserved.

* Update SalePreparing

Specify `reprocessSlot` and `returnBytes` when moving to `SaleIgnored` from `SalePreparing`.

Update tests to include test for a raised CatchableError.

* Fix unit test

* Modify `canReserveSlot` and `reverseSlot` params after rebase

* Update MockMarket with new `canReserveSlot` and `reserveSlot` params

* fix after rebase

also bump codex-contracts-eth to master
2024-10-04 06:16:11 +00:00
..
cancelled.nim feat[marketplace]: add slot queue pausing (#752) 2024-05-26 00:38:38 +00:00
downloading.nim feat[marketplace]: add slot queue pausing (#752) 2024-05-26 00:38:38 +00:00
errored.nim feat[marketplace]: add slot queue pausing (#752) 2024-05-26 00:38:38 +00:00
errorhandling.nim [marketplace] Load sales state from chain (#306) 2023-03-08 14:34:26 +01:00
failed.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
filled.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
filling.nim refactor: multinode integration test refactor (#662) 2024-02-19 04:55:39 +00:00
finished.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
ignored.nim feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
initialproving.nim Wire up prover (#736) 2024-03-12 12:10:14 +00:00
payout.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
preparing.nim feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
proving.nim Cleanup integration tests (#757) 2024-05-23 15:29:30 +00:00
provingsimulated.nim Cleanup integration tests (#757) 2024-05-23 15:29:30 +00:00
slotreserving.nim feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
unknown.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00