nim-codex/tests/codex
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
..
blockexchange Replace protobuf serialization for Block exchange with minprotobuf (#271) 2022-10-13 18:58:57 -05:00
helpers [marketplace] add/remove proofs for contract state 2022-10-25 15:10:35 +11:00
storageproofs [node] add SQLiteStore backend 2022-08-08 02:12:43 -05:00
stores Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
examples.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
helpers.nim [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
testasyncheapqueue.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
testblockexchange.nim Por serialize (#106) 2022-05-23 23:24:15 -06:00
testchunking.nim Download files without padding (#218) 2022-08-24 15:15:59 +03:00
testerasure.nim WIP: Harmonize BlockStore API (remaining functions) (#123) (#130) 2022-07-28 03:39:17 +03:00
testmanifest.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
testnode.nim Changes required for reasonable upload/download speed (#265) 2022-10-06 23:01:25 +03:00
testproving.nim [marketplace] add/remove proofs for contract state 2022-10-25 15:10:35 +11:00
testpurchasing.nim [purchasing] Withdraw funds when request times out 2022-10-25 15:10:35 +11:00
testsales.nim [marketplace] add/remove proofs for contract state 2022-10-25 15:10:35 +11:00
teststorageproofs.nim Upload authenticators (#108) 2022-05-25 20:29:31 -06:00
teststores.nim Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
teststorestream.nim WIP: Harmonize BlockStore API (remaining functions) (#123) (#130) 2022-07-28 03:39:17 +03:00