nim-codex/tests
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
..
circuits/fixtures Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00
codex feat(slot-reservations): Add SaleSlotReserving state (#917) 2024-10-04 06:16:11 +00:00
contracts feat: add `--payout-address` (#870) 2024-09-17 04:18:15 +00:00
fixtures Node setup (#32) 2022-01-10 09:32:56 -06:00
helpers Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
integration API tweaks for OpenAPI, errors and endpoints (#886) 2024-09-24 08:37:08 +00:00
tools/cirdl Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00
asynctest.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
checktest.nim update asynctest to 0.5.1 (#671) 2024-01-29 17:03:51 -03:00
config.nims [build] fix: ignore logging when running singular tests (#369) 2023-03-16 15:32:09 +01:00
coverage.nim Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
coverage.nims Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
ethertest.nim Chronos v4 Update (v3 Compat Mode) (#814) 2024-07-18 21:04:33 +00:00
examples.nim feat: expiry specified with number of seconds (#793) 2024-05-06 17:35:46 +02:00
helpers.nim Metadata in LevelDB (#806) 2024-05-30 06:57:10 +00:00
logging.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
nimlldb.py Bump deps take2 (#492) 2023-08-01 16:47:57 -07:00
testCodex.nim feat: create logging proxy (#663) 2024-01-22 23:35:03 -08:00
testContracts.nim Validator (#387) 2023-04-19 15:06:00 +02:00
testIntegration.nim Fix verifiable manifest constructor (#844) 2024-06-26 20:02:39 +00:00
testTaiko.nim refactor: use serde for json de/serialization instead of utils/json (#704) 2024-03-19 03:25:13 +00:00
testTools.nim Rework circuit downloader (#882) 2024-09-23 14:37:17 +00:00