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

Feat: Allow participant to withdraw on behalf of the other participant(s) #20

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

iljabvh
Copy link
Collaborator

@iljabvh iljabvh commented Sep 5, 2024

This PR allows a channel participant to invoke the withdrawal of funds for all participants, including themselves. It works with the respective contract.

…t(s)

* feat(testdata/perun_soroban_multi_contract.wasm): Modify contract to allow one withdrawer to withdraw for the other(s)
* feat(channel/adjudicator.go): Add oneWithdrawer argument and withdrawOther method to invoke two withdrawals from the same user (proposee).
* test(adjudicator_test.go): Add TestHappyChannelOneWithdrawer with one participant withdrawing for all.
* test(channel/test/setup.go): Modify test setup to include oneWithdrawer as an optional argument.
* feat(client): Add buildWithdrawTxArgs, taking the additional oneWithdrawer bool as an argument.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant