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.
[x] fix typedef for fastSell* methods — rootChain is a Web3, not ExtendedWeb3
[x] change fastSell* methods to return PromiEvent and emit transfer event as soon as exiting utxo is transferred to exitHandler contract
[x] 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)
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.
fastSell*
methods —rootChain
is aWeb3
, notExtendedWeb3
fastSell*
methods to return PromiEvent and emittransfer
event as soon as exiting utxo is transferred to exitHandler contractfastSell
helper in two parts:fastSell
andsignAndSendFastSellRequest
. The latter allows to resume fast exit after the exiting utxo already spent to exitHandler contract (see Bridge UI for usage example)