nim-codex/tests/codex/helpers
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
..
always.nim Fix slot queue push (#542) 2023-09-04 16:42:09 +02:00
mockchunker.nim Blockexchange uses merkle root and index to fetch blocks (#566) 2023-11-14 13:02:17 +01:00
mockclock.nim Revert "remove call to `waitFor` from clock.now and make it async (#691)" (#707) 2024-02-16 22:12:16 +00:00
mockdiscovery.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
mockmarket.nim feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
mockrepostore.nim Block deletion with ref count & repostore refactor (#631) 2024-06-20 22:46:06 +00:00
mockreservations.nim feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
mocksalesagent.nim Slot queue (#455) 2023-07-25 12:50:30 +10:00
mockslotqueueitem.nim feat[marketplace]: add slot queue pausing (#752) 2024-05-26 00:38:38 +00:00
mocktimer.nim Improving proc/func formatting consistency (#454) 2023-06-22 08:11:18 -07:00
nodeutils.nim Update advertising (#862) 2024-08-26 13:18:59 +00:00
randomchunker.nim Plumbing in conf types (#472) 2023-07-06 16:23:27 -07:00