You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a client or provider, I would like modification operations with the chain to return immediately, and deliver their results asynchronously
In:
The only chain modifying function in the retrieval market is GetOrCreatePaymentChannel -- and it's made complicated by the fact that it may create a channel or it may add funds to a channel -- both operations create a chain message, but one that is interpreted differently (create channel contains the address in the message receipt, where add funds just has an exit code)
If the returned address == address.Undef that means a payment channel had to be created. If returned address is not address.Undef, that means a payment channel exists, but we're waiting to add funds.
the retrieval client should transition in to one of two states (based on whether returned address = address.Undef):
DealStatusPaymentChannelCreating
DealStatusPaymentChannelAddingFunds
As a client or provider, I would like modification operations with the chain to return immediately, and deliver their results asynchronously
In:
The only chain modifying function in the retrieval market is GetOrCreatePaymentChannel -- and it's made complicated by the fact that it may create a channel or it may add funds to a channel -- both operations create a chain message, but one that is interpreted differently (create channel contains the address in the message receipt, where add funds just has an exit code)
The current signature is as follows:
The new signature should be
Where cid is the message cid to wait for
If the returned address == address.Undef that means a payment channel had to be created. If returned address is not address.Undef, that means a payment channel exists, but we're waiting to add funds.
the retrieval client should transition in to one of two states (based on whether returned address = address.Undef):
DealStatusPaymentChannelCreating
DealStatusPaymentChannelAddingFunds
each state will wait on one of two new APIS:
DealStatusPaymentChannelCreated can be renamed DealStatusPaymentChannelReady since that makes more sense
Assuming the states succeed, they transition to DealStatusPaymentChannelReady and the deal proceeds.
The text was updated successfully, but these errors were encountered: