@stellar-expert/ui-framework 1.11.7 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.11.7",
3
+ "version": "1.12.1",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",
@@ -14,14 +14,14 @@
14
14
  "author": "orbitlens <orbit@stellar.expert>",
15
15
  "license": "MIT",
16
16
  "peerDependencies": {
17
- "@stellar/stellar-base": "^11.0.0",
18
- "@stellar/stellar-sdk": "^11.2.2",
17
+ "@stellar/stellar-base": "^12.0.0",
18
+ "@stellar/stellar-sdk": "^12.0.1",
19
19
  "@stellar-expert/asset-descriptor": "^1.3.0",
20
20
  "@stellar-expert/claimable-balance-utils": "^1.4.1",
21
21
  "@stellar-expert/client-cache": "github:stellar-expert/client-cache",
22
22
  "@stellar-expert/formatter": "^2.3.0",
23
23
  "@stellar-expert/navigation": "github:stellar-expert/navigation#v1.0.2",
24
- "@stellar-expert/tx-meta-effects-parser": "^5.2.0",
24
+ "@stellar-expert/tx-meta-effects-parser": "^5.5.0",
25
25
  "classnames": ">=2",
26
26
  "prop-types": ">=15",
27
27
  "qrcode.react": "^3.1.0",
@@ -39,10 +39,12 @@ import TxMatcher from './tx-matcher'
39
39
  * @param {TxFiltersContext} [context] - Filters applied to transactions search
40
40
  * @param {String} [createdAt] - Ledger execution timestamp
41
41
  * @param {Boolean} [skipUnrelated] - Ledger execution timestamp
42
+ * @param {Number} [protocol] – Specific Stellar protocol version for the executed transaction
42
43
  * @return {ParsedTxDetails}
43
44
  */
44
- export function parseTxDetails({network, txEnvelope, result, meta, id, context, createdAt, skipUnrelated}) {
45
- const {tx, effects, operations, isEphemeral, failed} = parseTxOperationsMeta({network, tx: txEnvelope, meta, result})
45
+ export function parseTxDetails({network, txEnvelope, result, meta, id, context, createdAt, skipUnrelated, protocol}) {
46
+ const parsedTx = parseTxOperationsMeta({network, tx: txEnvelope, meta, result, protocol})
47
+ const {tx, effects, operations, isEphemeral, failed} = parsedTx
46
48
  const txHash = tx.hash().toString('hex')
47
49
  const txMatcher = new TxMatcher(context, skipUnrelated)
48
50
  let parsedOps = OperationDescriptor.parseOperations(operations, txHash, isEphemeral, !isEphemeral && !failed)