@exodus/solana-api 2.5.32 → 2.5.34

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/solana-api",
3
- "version": "2.5.32",
3
+ "version": "2.5.34",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -44,5 +44,5 @@
44
44
  "devDependencies": {
45
45
  "@exodus/assets-testing": "^1.0.0"
46
46
  },
47
- "gitHead": "6b37a481bbf82a7ff63a453ca66446fbd45fb4a8"
47
+ "gitHead": "9da341db0c5c18d52690699d241675c1f7392d71"
48
48
  }
@@ -21,6 +21,7 @@ export class SolanaMonitor extends BaseMonitor {
21
21
  includeUnparsed = false,
22
22
  ticksBetweenHistoryFetches = TICKS_BETWEEN_HISTORY_FETCHES,
23
23
  ticksBetweenStakeFetches = TICKS_BETWEEN_STAKE_FETCHES,
24
+ txsLimit,
24
25
  ...args
25
26
  }) {
26
27
  super(args)
@@ -32,6 +33,7 @@ export class SolanaMonitor extends BaseMonitor {
32
33
  this.ticksBetweenStakeFetches = ticksBetweenStakeFetches
33
34
  this.ticksBetweenHistoryFetches = ticksBetweenHistoryFetches
34
35
  this.includeUnparsed = includeUnparsed
36
+ this.txsLimit = txsLimit
35
37
  this.addHook('before-stop', (...args) => this.beforeStop(...args))
36
38
  }
37
39
 
@@ -124,7 +126,7 @@ export class SolanaMonitor extends BaseMonitor {
124
126
  const txSet = await this.aci.getTxLog({ assetName, walletAccount })
125
127
  const { stale } = this.getUnconfirmed({ txSet, staleTxAge: TX_STALE_AFTER })
126
128
  if (stale.length > 0) {
127
- clearedLogItems[assetName] = _.unionBy(stale, logItemsByAsset[assetName], 'txId')
129
+ clearedLogItems[assetName] = _.unionBy(logItemsByAsset[assetName], stale, 'txId')
128
130
  }
129
131
  }
130
132
 
@@ -195,6 +197,7 @@ export class SolanaMonitor extends BaseMonitor {
195
197
  const { transactions, newCursor } = await this.api.getTransactions(address, {
196
198
  cursor,
197
199
  includeUnparsed: this.includeUnparsed,
200
+ limit: this.txsLimit,
198
201
  })
199
202
 
200
203
  const mappedTransactions = []