Skip to content

Releases: provable-things/ptokens.js

v1.0.4

25 Nov 12:41
0a25997
Compare
Choose a tag to compare
  • Fix @babel/runtime import error

v1.0.3

22 Oct 11:10
5ae3b6c
Compare
Choose a tag to compare
  • 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;

v1.0.2

19 Oct 11:38
ef42039
Compare
Choose a tag to compare

v1.0.1

18 Oct 13:53
940c1d1
Compare
Choose a tag to compare

First public release of the major update to ptokens.js library.
ptokens.js has been entirely rewritten from scratch (the previous version can be found here.

In particular:

  • It is entirely written in Typescript, but there are ready-to-use bundles to integrate it in your backend/frontend application
  • It is object-oriented designed and implementing the builder pattern to ease objects creation
  • It permits host-to-host swaps, unleashing the pTokens to pTokens bridge feature