nim-codex/tests/contracts
Eric Mastro 372f827982 [marketplace] add/remove proofs for contract state
Add or remove proof requirements when a request contract’s state changes. When a request sale has completed (for a slot), the host who purchased that slot now must provide regular proofs for the data they are contracted to hold. This is now enforced by adding the slotId to the HashSet of Ids for which to require proofs. When a request has been cancelled (not all slots were filled before the request expired), proofs no longer need to be provided and the slotId is removed from teh HashSet.

Add `isCancelled` and `isSlotCancelled` checks to query the contract state without relying the on the state context variable in the contract. Because contract state can only be updated in a transaction, and the client withdrawing funds is responsible for changing the contract state to “Cancelled”, the `isCancelled` and `isSlotCancelled` functions were introduced to check the state regardless of whether or not the client had already withdrawn their funds.
2022-10-25 15:10:35 +11:00
..
examples.nim [chore] clean up `array[32, byte]` types 2022-08-26 13:29:09 +10:00
matchers.nim [marketplace] add/remove proofs for contract state 2022-10-25 15:10:35 +11:00
nim.cfg feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
testClock.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
testCollateral.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
testContracts.nim [marketplace] add/remove proofs for contract state 2022-10-25 15:10:35 +11:00
testInteractions.nim Better command line options for Ethereum (#181) 2022-08-09 06:29:06 +02:00
testMarket.nim [chore] clean up `array[32, byte]` types 2022-08-26 13:29:09 +10:00
testProofs.nim [chore] clean up `array[32, byte]` types 2022-08-26 13:29:09 +10:00
time.nim [contracts] Update to new marketplace design 2022-03-28 11:59:01 +02:00