From 300d30da691610281df9135ef59beccdb9020d83 Mon Sep 17 00:00:00 2001 From: Morley Zhi Date: Thu, 12 Dec 2019 18:06:09 -0500 Subject: [PATCH] transactionIds for Payments (#134) --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- src/data/makeDisplayablePayments.ts | 1 + src/types/data.ts | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2fabf63..43f42fc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## In master + +- [General] Add support for building a commonjs bundle +- [Transfers] Normalize some anchor transactions that almost meet SEP-24 spec +- [Transfers] Support fetching single transactions by their stellar id or + external id +- [Transfers] Fix potential bugs with watching more than one transaction at a + time +- + ## [v0.0.8-rc.1](https://github.com/stellar/js-stellar-wallets/compare/v0.0.7-rc.1...v0.0.8-rc.1) - [Data] Fix a bug where makeDisplayableTrades was outputting tokens with diff --git a/package.json b/package.json index f4a8441d..41936ee9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stellar/wallet-sdk", - "version": "0.0.8-rc.3", + "version": "0.0.8-rc.4", "description": "Libraries to help you write Stellar-enabled wallets in Javascript", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/data/makeDisplayablePayments.ts b/src/data/makeDisplayablePayments.ts index 40730e2b..8c1f5625 100644 --- a/src/data/makeDisplayablePayments.ts +++ b/src/data/makeDisplayablePayments.ts @@ -90,6 +90,7 @@ export function makeDisplayablePayments( sourceAmount: isPathPayment(payment) ? new BigNumber(payment.source_amount) : undefined, + transactionId: payment.transaction_hash, }; }, ); diff --git a/src/types/data.ts b/src/types/data.ts index d0a175b8..795a4a1b 100644 --- a/src/types/data.ts +++ b/src/types/data.ts @@ -125,6 +125,8 @@ export interface Payment { sourceToken?: Token; sourceAmount?: BigNumber; + + transactionId: string; } export interface Balance {