@exodus/solana-plugin 1.20.1 → 1.21.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.21.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.20.1...@exodus/solana-plugin@1.21.0) (2025-05-01)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat(solana): make shouldUpdateBalanceBeforeHistory configurable (#5544)
13
+
14
+
15
+
6
16
  ## [1.20.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.20.0...@exodus/solana-plugin@1.20.1) (2025-04-21)
7
17
 
8
18
 
package/README.md CHANGED
@@ -36,6 +36,7 @@ const asset = createAsset({
36
36
  stakingFeatureAvailable: true,
37
37
  includeUnparsed: false,
38
38
  monitorInterval: ms('30s'),
39
+ shouldUpdateBalanceBeforeHistory: true,
39
40
  defaultAccountReserve: DEFAULT_ACCOUNT_RESERVE,
40
41
  defaultLowBalance: DEFAULT_LOW_BALANCE,
41
42
  defaultMinStakingAmount: DEFAULT_MIN_STAKING_AMOUNT,
@@ -62,6 +63,7 @@ Creates a factory function for creating Solana assets.
62
63
  - `stakingFeatureAvailable` (Boolean): Indicates if staking feature is available.
63
64
  - `includeUnparsed` (Boolean): Whether to include unparsed transactions.
64
65
  - `monitorInterval` (String): Interval for monitoring transactions, e.g., '30s'.
66
+ - `shouldUpdateBalanceBeforeHistory` (Boolean): Indicates if we should update balance independently from history.
65
67
  - `defaultAccountReserve` (Number): Default reserve amount for accounts.
66
68
  - `defaultLowBalance` (Number): Default low balance threshold.
67
69
  - `defaultMinStakingAmount` (Number): Default minimum staking amount.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.20.1",
3
+ "version": "1.21.0",
4
4
  "description": "Solana plugin for Exodus SDK powered wallets.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@exodus/assets": "^11.0.0",
25
25
  "@exodus/bip44-constants": "^195.0.0",
26
- "@exodus/solana-api": "^3.17.2",
26
+ "@exodus/solana-api": "^3.18.0",
27
27
  "@exodus/solana-lib": "^3.11.1",
28
28
  "@exodus/solana-meta": "^2.3.1",
29
29
  "@exodus/web3-solana-utils": "^2.9.0",
@@ -40,5 +40,5 @@
40
40
  "type": "git",
41
41
  "url": "git+https://github.com/ExodusMovement/assets.git"
42
42
  },
43
- "gitHead": "2e550990ef9db4209f8fe4e6e0485579d1afeedf"
43
+ "gitHead": "74fe0904cd863e2674e4c2e705a2e8624a8a92be"
44
44
  }
@@ -39,6 +39,7 @@ export const createSolanaAssetFactory =
39
39
  includeUnparsed = false,
40
40
  allowSendingAll = true,
41
41
  monitorInterval = ms('30s'),
42
+ shouldUpdateBalanceBeforeHistory = true,
42
43
  defaultAccountReserve = DEFAULT_ACCOUNT_RESERVE,
43
44
  defaultLowBalance = DEFAULT_LOW_BALANCE,
44
45
  defaultMinStakingAmount = DEFAULT_MIN_STAKING_AMOUNT,
@@ -156,6 +157,7 @@ export const createSolanaAssetFactory =
156
157
  new SolanaMonitor({
157
158
  assetClientInterface,
158
159
  interval: monitorInterval,
160
+ shouldUpdateBalanceBeforeHistory,
159
161
  ticksBetweenHistoryFetches,
160
162
  ticksBetweenStakeFetches,
161
163
  includeUnparsed,
@@ -218,6 +220,7 @@ export const createSolanaAssetFactory =
218
220
  stakingFeatureAvailable,
219
221
  includeUnparsed,
220
222
  monitorInterval,
223
+ shouldUpdateBalanceBeforeHistory,
221
224
  defaultAccountReserve,
222
225
  defaultLowBalance,
223
226
  defaultMinStakingAmount,