@exodus/bitcoin-plugin 1.6.16 → 1.6.18

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": "@exodus/bitcoin-plugin",
3
- "version": "1.6.16",
3
+ "version": "1.6.18",
4
4
  "description": "Exodus bitcoin-plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@exodus/asset-lib": "^4.0.0",
22
22
  "@exodus/basic-utils": "^2.1.0",
23
- "@exodus/bitcoin-api": "^2.7.4",
23
+ "@exodus/bitcoin-api": "^2.7.5",
24
24
  "@exodus/bitcoin-lib": "^2.2.11",
25
25
  "@exodus/models": "^11.0.0",
26
26
  "@exodus/text-encoding-utf8": "^1.0.2",
@@ -29,5 +29,5 @@
29
29
  "devDependencies": {
30
30
  "@exodus/nfts-proxy": "^2.10.1"
31
31
  },
32
- "gitHead": "79ecc918b12dc473b5f293ee50dbf054756e1a55"
32
+ "gitHead": "1a85a74d96022bbe186506c21bafbb02b6e1e533"
33
33
  }
@@ -323,7 +323,8 @@ export const inscriptionsServiceFactory = ({ network, ordinalChainIndex }) => {
323
323
  script: revealTx.script,
324
324
  value: asset.currency.baseUnit(revealTx.value),
325
325
  confirmations: 0,
326
- inscriptionId: revealTx.inscriptionId,
326
+ inscriptions: [{ inscriptionId: revealTx.inscriptionId, offset: 0 }],
327
+ inscriptionIndexed: false,
327
328
  rbfEnabled: false,
328
329
  })
329
330
 
@@ -106,17 +106,17 @@ export const nftsApiFactory = ({ ordinalChainIndex, asset }) => {
106
106
 
107
107
  const expandedNfts = nfts.map((nft) => {
108
108
  const sending = !utxosOutputs.includes(nft.output.toLowerCase())
109
- if (sending) {
110
- const sendingTx = unconfirmedTxs.find((tx) =>
109
+
110
+ const sendingTx =
111
+ sending &&
112
+ unconfirmedTxs.find((tx) =>
111
113
  tx.data.sentInscriptions?.find((i) => i.inscriptionId === nft.tokenId)
112
114
  )
113
- return {
114
- ...nft,
115
- sending,
116
- pendingTxId: sendingTx?.txId,
117
- }
118
- } else {
119
- return nft
115
+ return {
116
+ pendingTxId: sendingTx?.txId,
117
+ sending, // always set the field, if not, nft atoms deep merge could pick the old value
118
+ ...nft,
119
+ receiving: Boolean(nft.receiving),
120
120
  }
121
121
  })
122
122