New smart contracts now have token withdraw functionality.
Note - in the current code, the withdraw term is being used by the unlock logic. I propose to change reserve this term for the setTotalWithdraw related functionality. See #1496 for this.
TODO:
Logic sequence diagram
SC = smart contract on-chain transaction
STC = StateChange
EV = Raiden Event
MSG = Raiden Message

Feel free to improve naming.
@hackaugusto, please recheck above.
New smart contracts now have token withdraw functionality.
Note - in the current code, the
withdrawterm is being used by theunlocklogic. I propose to change reserve this term for thesetTotalWithdrawrelated functionality. See #1496 for this.TODO:
WithdrawRequest(for node requesting a withdraw signature from the partner node),Withdraw(containing the withdraw signature from the partner node)SendWithdrawRequest,SendWithdraw,ContractSendChannelWithdrawActionWithdraw,ReceiveWithdrawRequest,ReceiveWithdraw,ContractReceiveChannelWithdraw(!note that both Raiden nodes need to process a node's withdraw)ChannelWithdrawevent inblockchain_events_handler.py. Proposed name :handle_channel_(total_)withdrawLogic sequence diagram
SC = smart contract on-chain transaction
STC = StateChange
EV = Raiden Event
MSG = Raiden Message
Feel free to improve naming.
@hackaugusto, please recheck above.