Skip to content

v1.0.3

Compare
Choose a tag to compare
@oliviera9 oliviera9 released this 22 Oct 11:10
· 4 commits to master since this release
5ae3b6c
  • Add output transaction confirmation tracking by setting a provider in the destination asset.
    In this case, i.e. the destination asset has a provider, swap.execute() fires the following events:
    • depositAddress -> fired with the deposit address where a user would transfer the source asset (applies for source pTokensUtxoAsset only);
    • inputTxBroadcasted -> fired with hash of the transaction initiating the swap when it is broadcasted;
    • inputTxConfirmed-> fired with hash of the transaction initiating the swap when it is confirmed;
    • inputTxDetected -> fired with a InnerTransactionStatus object related to the input transaction, when the pNetwork detects the swap request;
    • outputTxDetected -> fired with a InnerTransactionStatus object related to the output transaction, when the pNetwork builds the output transaction;
    • outputTxBroadcasted -> fired with a InnerTransactionStatus object related to the output transaction, when the pNetwork broadcasts the output transaction;
    • outputTxConfirmed -> fired with a InnerTransactionStatus object related to the output transaction, when it is confirmed, only when the destination asset has a provider;