dagger-contracts/test
Eric Mastro cde5436262
get request from slot id (#34)
* get request from slot id

- Add public function to get request from slot id.
- Add chai test assertion that compares requests. Usage: `expect(await marketplace.getRequestFromSlotId(slotId(slot))).to.be.request(request)`

This is used when restoring active sales, and a node calls `mySlots`, then iterates the slots and needs originating request details.

* merge upstream changes
2023-01-24 15:59:56 +11:00
..
Collateral.test.js [marketplace] Add tests for collateral locking 2022-12-22 10:29:06 +01:00
Marketplace.test.js get request from slot id (#34) 2023-01-24 15:59:56 +11:00
Proofs.test.js [marketplace] introduce MarketplaceConfiguration struct 2023-01-23 15:10:23 +01:00
evm.js [proofs] Test that pointer increases by one every block 2022-04-05 11:36:31 +02:00
examples.js [marketplace] introduce MarketplaceConfiguration struct 2023-01-23 15:10:23 +01:00
ids.js [marketplace] update contract state to failed 2022-09-21 20:52:44 +10:00
marketplace.js [marketplace] introduce SlotState 2023-01-23 15:10:23 +01:00
price.js [marketplace] Reward is paid out per second per slot 2022-08-08 11:51:14 +02:00
requests.js get request from slot id (#34) 2023-01-24 15:59:56 +11:00
time.js clean up tests 2022-10-25 12:38:19 +11:00