light-client
light-client copied to clipboard
Move blockchain-interacting logic from Raiden class to state machine
Description
Currently, there're some methods on the Raiden class (public interface of SDK) which, although not changing directly the state, interact with blockchain in a read-write manner and should be put in the state machine as their own epics instead, and through their own AsyncActionCreators
Acceptance criteria
- No rw blockchain logic is present on Raiden
Tasks
- [ ]
mintbecomes an AAC and epic (suggestion: onchannels/) - [x]
depositToUDCbecomes an AAC and epic (suggestion: onservices/) - [ ]
transferOnchainBalancebecomes an AAC and epic (suggestion: onchannels/) - [ ]
transferOnchainTokensbecomes an AAC and epic (suggestion: onchannels/)
Why do this?
Improves code quality, logging and testability of the functions. Long wanted tech debt that makes for better readability and maintainability of the code.