Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual channel watching and dispute test (Last part of large Virtual Channel PR) #83

Merged
merged 9 commits into from
Jul 8, 2021

Commits on Jul 8, 2021

  1. ✨ [channel, backend/eth] Add state and sigs to RegisteredEvent

    Preparation for virtual channel watching.
    
    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    60a9703 View commit details
    Browse the repository at this point in the history
  2. ✨ [client] Watch virtual channel

    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    47b5fc5 View commit details
    Browse the repository at this point in the history
  3. ♻️ [client] Improve test funder and adjudicator

    Use logFunder, logAdjudicator instead of DummyFunder, DummyAdjudicator
    Reduce size of codebase. Reduce redundant parts.
    
    Merge logFunder and logFunderWithDelay.
    Merge logFunder and logAdjudicator into logBackend.
    Reduce code complexity. Prepare changes that would require adjudicator logic based on the funder state.
    
    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    f4a3f4b View commit details
    Browse the repository at this point in the history
  4. 🐛 ✨ [client] Fix and enhance test backend

    - Register: Emit events for sub-channels, add state and sigs
    - Subscribe: Only return events for a given channel.
    - Withdraw: Print accumulated outcome.
    
    Also rename to mockBackend because it actually does more than just logging.
    
    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    d8b45de View commit details
    Browse the repository at this point in the history
  5. 🚸 [client] Always settle with sub-channels

    Usage before was clunky. The user needed to gather subchannels manually
    and to know which function to call. Now the framework does that for the user.
    
    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    7d55d71 View commit details
    Browse the repository at this point in the history
  6. 🚚 [client] Move mockBackend to client/test

    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    1bfdfa7 View commit details
    Browse the repository at this point in the history
  7. ✨ [client/test] Add balance logic to mock backend

    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    c253a30 View commit details
    Browse the repository at this point in the history
  8. ✨ [client/test] Mock sub: respect context

    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    ecc7db4 View commit details
    Browse the repository at this point in the history
  9. ✅ [client] Test virtual channel disputes

    Signed-off-by: Matthias Geihs <[email protected]>
    matthiasgeihs committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    2d9efe7 View commit details
    Browse the repository at this point in the history