nim-codex/codex
Eric Mastro 0c3fbad470 [purchasing] Withdraw funds when request times out
When a request for storage times out (not enough slots filled), the client will initiate a withdraw request to retrieve its funds out of the contract, setting the state of the request to RequestState.Cancelled. The client will also emit a RequestCancelled event for others to listen to (ie hosts will need to listen for this event to withdraw its collateral).

Add unit test that checks for emission of RequestCancelled after request is purchased request expires.

Update dagger-contracts dependency to commit that holds the changes supporting withdrawing of 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
contracts [purchasing] Withdraw funds when request times out 2022-10-25 15:10:35 +11:00
erasure [stores] update getBlock return type 2022-08-22 20:52:51 -05:00
manifest Download files without padding (#218) 2022-08-24 15:15:59 +03:00
rest [chore] make RequestId, SlotId, Nonce, PurcahseId distinct 2022-08-26 13:29:09 +10:00
storageproofs [chore] make RequestId, SlotId, Nonce, PurcahseId distinct 2022-08-26 13:29:09 +10:00
stores Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
streams Download files without padding (#218) 2022-08-24 15:15:59 +03:00
utils Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
blockexchange.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
blocktype.nim Changes required for reasonable upload/download speed (#265) 2022-10-06 23:01:25 +03:00
chunker.nim Download files without padding (#218) 2022-08-24 15:15:59 +03:00
clock.nim [purchasing] Update to latest dagger-contracts 2022-07-20 13:43:20 +02:00
codex.nim Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
conf.nim Better command line options for Ethereum (#181) 2022-08-09 06:29:06 +02:00
contracts.nim Cleanup: remove StorageOffer everywhere 2022-07-20 13:43:20 +02:00
discovery.nim Remove local providers (#268) 2022-10-05 10:01:21 -06:00
erasure.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
errors.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
manifest.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
market.nim [purchasing] Withdraw funds when request times out 2022-10-25 15:10:35 +11:00
namespaces.nim Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
node.nim Changes required for reasonable upload/download speed (#265) 2022-10-06 23:01:25 +03:00
proving.nim [chore] clean up `array[32, byte]` types 2022-08-26 13:29:09 +10:00
purchasing.nim [purchasing] Withdraw funds when request times out 2022-10-25 15:10:35 +11:00
rng.nim Change every dagger to codex (#102) 2022-05-19 13:56:03 -06:00
sales.nim [chore] clean up `array[32, byte]` types 2022-08-26 13:29:09 +10:00
storageproofs.nim Upload authenticators (#108) 2022-05-25 20:29:31 -06:00
stores.nim Persist Dht providers (#257) 2022-09-29 20:16:59 -06:00
streams.nim adding AsyncStreamWrapper (#110) 2022-06-14 09:19:35 -06:00
utils.nim Download files without padding (#218) 2022-08-24 15:15:59 +03:00