Releases: provable-things/ptokens.js
Releases · provable-things/ptokens.js
v1.0.4
v1.0.3
- 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
- Fix EOSIO account validator.
In particularRefs: https://developers.eos.io/welcome/v2.0/protocol-guides/accounts_and_permissions/#2-accounts:Each account is identified by a human readable name between 1 and 12 characters in length. The characters can include a-z, 1-5, and optional dots (.) except the last character.
v1.0.1
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