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(exit): emit signed exit transfer tx details before signing an exit message #164

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

troggy
Copy link
Member

@troggy troggy commented Nov 25, 2019

This way the client has a chance to store the transfer tx, to resume exit process later e.g.
if the user rejected exit signature.

  • fix typedef for fastSell* methods — rootChain is a Web3, not ExtendedWeb3
  • change fastSell* methods to return PromiEvent and emit transfer event as soon as exiting utxo is transferred to exitHandler contract
  • split fastSell helper in two parts: fastSell and signAndSendFastSellRequest. The latter allows to resume fast exit after the exiting utxo already spent to exitHandler contract (see Bridge UI for usage example)

…xit message.

This way the client has a chance to store the transfer tx, to resume exit process later e.g.
if the user rejected exit signature.
@troggy troggy mentioned this pull request Nov 25, 2019
6 tasks
Copy link
Member

@MaxStalker MaxStalker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@troggy troggy merged commit d08f4f5 into master Dec 16, 2019
@troggy troggy deleted the feat/fast-exit-return-signed-transfer branch December 16, 2019 09:18
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.

2 participants