dagger-contracts/test
Eric Mastro a99827ed39 Reinstate mapping index, add ActiveSlotId
Reinstate the index mapping for `activeSlots`, however with a modified data structure. The main difference comes from a change in `mySlots`: it now requires a `RequestId` as a parameter (which can be obtained using `myRequests`. This allowed for the `activeSlots` mapping to be keyed on `RequestId`, which gives a mapping of `ActiveSlotId => EnumerableSet.Bytes32`. `ActiveSlotId` is a keccak hash of `address + activeSlotIdx`, which not only allows retrieval of all active slot ids per request, but also allows clearing of all active slot ids for a request by incrementing the `activeSlotIdx`.
```
requestId => [ keccak(address + activeSlotIdx) => EnumerableSet.Bytes32 ]
```
2022-12-22 10:29:06 +01:00
..
AccountLocks.test.js Remove proof extension, test clean up 2022-10-25 12:38:19 +11:00
Collateral.test.js clean up tests 2022-10-25 12:38:19 +11:00
Marketplace.test.js Reinstate mapping index, add ActiveSlotId 2022-12-22 10:29:06 +01:00
Proofs.test.js set proof end when storage requested 2022-10-25 12:38:19 +11:00
Storage.test.js remove slot from waitUntilStarted signature 2022-12-22 10:29:06 +01:00
evm.js [proofs] Test that pointer increases by one every block 2022-04-05 11:36:31 +02:00
examples.js clean up tests 2022-10-25 12:38:19 +11:00
ids.js [marketplace] update contract state to failed 2022-09-21 20:52:44 +10:00
marketplace.js remove slot from waitUntilStarted signature 2022-12-22 10:29:06 +01:00
price.js [marketplace] Reward is paid out per second per slot 2022-08-08 11:51:14 +02:00
time.js clean up tests 2022-10-25 12:38:19 +11:00