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

Interactive UDC withdraw #2635

Merged
merged 10 commits into from
Mar 25, 2021
Merged

Interactive UDC withdraw #2635

merged 10 commits into from
Mar 25, 2021

Commits on Mar 24, 2021

  1. sdk: refactor: split services epics

    ...into pathfinding, monitor and udc epics, since the generic epic
    module was already too big.
    andrevmatos committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    ab53506 View commit details
    Browse the repository at this point in the history
  2. sdk: refactor: make udcWithdrawn an async action

    Now named udcWithdraw, and the previous udcWithdraw is renamed to
    udcWithdrawPlan. Also, a small refactoring to check if totalDeposit is
    outdated late, right before calling deposit (after approveIfNeeded$).
    andrevmatos committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    76a1266 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3f0ed5f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    01b01f6 View commit details
    Browse the repository at this point in the history
  5. sdk: udcWithdraw can be interactive, introduce config.autoUdcWithdraw

    udcWithdraw phase (after plan) is now a request/success/failure epic.
    udcWithdraw.request is handled, dispatches the transaction, wait for it
    to be mined and output either success or failure.
    If config.autoUdcWithdraw is enabled (default), an epic will watch the
    blockchain for plans from us and dispatch the udcWithdraw.request
    andrevmatos committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    0d9f10b View commit details
    Browse the repository at this point in the history
  6. sdk: adds Raiden.getUdcWithdrawPlan,udcWithdraw methods

    The former queries the UDC for currently planned withdraws, returning
    amount, block in which it becomes available and ready state; the later
    is to be called when config.autoUdcWithdraw is false and after plan is
    'ready', and interactively performs the last UDC withdraw phase.
    andrevmatos committed Mar 24, 2021
    Configuration menu
    Copy the full SHA
    5dfe080 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    809e375 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    63280a5 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. Configuration menu
    Copy the full SHA
    33a87cf View commit details
    Browse the repository at this point in the history
  2. sdk: rename Udc to UDC and address PR comments

    - Raiden.udcWithdraw -> Raiden.withdrawFromUDC
    - Raiden.planUdcWithdraw -> Raiden.planUDCWithdraw
    - config.autoUdcWithdraw -> config.autoUDCWithdraw
    - 100 -> constants.UDC_WITHDRAW_TIMEOUT
    andrevmatos committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    9b6f0a6 View commit details
    Browse the repository at this point in the history