nim-codex/tests/codex
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
..
blockexchange Update advertising (#862) 2024-08-26 13:18:59 +00:00
helpers feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
merkletree Build slots (#668) 2024-01-11 08:45:23 -08:00
node Update advertising (#862) 2024-08-26 13:18:59 +00:00
sales feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
slots Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00
stores Update advertising (#862) 2024-08-26 13:18:59 +00:00
utils Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
examples.nim feat(api): availabilities patch endpoint (#692) 2024-03-21 10:53:45 +00:00
helpers.nim Wire up prover (#736) 2024-03-12 12:10:14 +00:00
testasyncheapqueue.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testasyncstreamwrapper.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testblockexchange.nim Blocks leak and inflight for pending blocks (#315) 2022-11-15 00:12:05 -06:00
testchunking.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
testclock.nim Create memory-leak detecting test suite (#226) 2023-06-22 12:01:21 -06:00
testerasure.nim Bandaid for failing erasure coding (#855) 2024-07-03 14:44:00 +00:00
testindexingstrategy.nim Fix verifiable manifest initialization (#839) 2024-06-21 22:50:56 +00:00
testlogutils.nim refactor: use serde for json de/serialization instead of utils/json (#704) 2024-03-19 03:25:13 +00:00
testmanifest.nim Fix verifiable manifest initialization (#839) 2024-06-21 22:50:56 +00:00
testmerkletree.nim Rework merkle tree (#654) 2023-12-21 06:41:43 +00:00
testnode.nim Contracts handler (#672) 2024-01-15 08:45:04 -08:00
testpurchasing.nim feat: expiry specified with number of seconds (#793) 2024-05-06 17:35:46 +02:00
testsales.nim Fix sales agent (#733) 2024-03-12 06:41:03 +00:00
testslots.nim Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00
teststores.nim Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
teststorestream.nim Fix StoreStream so it doesn't return parity bytes (#838) 2024-06-21 11:09:59 +00:00
testsystemclock.nim Revert "remove call to `waitFor` from clock.now and make it async (#691)" (#707) 2024-02-16 22:12:16 +00:00
testutils.nim Rework AsyncIter (#811) 2024-06-10 22:47:29 +00:00
testvalidation.nim Validator - support partitioning of the slot id space (#890) 2024-10-02 22:00:40 +00:00