Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
transactionIds for Payments (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morley Zhi authored Dec 12, 2019
1 parent 74547fa commit 300d30d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/data/makeDisplayablePayments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function makeDisplayablePayments(
sourceAmount: isPathPayment(payment)
? new BigNumber(payment.source_amount)
: undefined,
transactionId: payment.transaction_hash,
};
},
);
Expand Down
2 changes: 2 additions & 0 deletions src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ export interface Payment {

sourceToken?: Token;
sourceAmount?: BigNumber;

transactionId: string;
}

export interface Balance {
Expand Down

0 comments on commit 300d30d

Please sign in to comment.