@exodus/solana-plugin 1.20.1 → 1.21.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/CHANGELOG.md +20 -0
- package/README.md +2 -0
- package/package.json +4 -4
- package/src/create-asset.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.21.0...@exodus/solana-plugin@1.21.1) (2025-05-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: SOL reserve and units consumed (#5540)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.21.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.20.1...@exodus/solana-plugin@1.21.0) (2025-05-01)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat(solana): make shouldUpdateBalanceBeforeHistory configurable (#5544)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [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
27
|
|
|
8
28
|
|
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.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@exodus/assets": "^11.0.0",
|
|
25
25
|
"@exodus/bip44-constants": "^195.0.0",
|
|
26
|
-
"@exodus/solana-api": "^3.
|
|
27
|
-
"@exodus/solana-lib": "^3.11.
|
|
26
|
+
"@exodus/solana-api": "^3.18.0",
|
|
27
|
+
"@exodus/solana-lib": "^3.11.2",
|
|
28
28
|
"@exodus/solana-meta": "^2.3.1",
|
|
29
29
|
"@exodus/web3-solana-utils": "^2.9.0",
|
|
30
30
|
"minimalistic-assert": "^1.0.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "aeb2c9fa295b25d05938640f32aa6f3d318c6922"
|
|
44
44
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -26,7 +26,7 @@ import ms from 'ms'
|
|
|
26
26
|
import { createGetBalanceForAddress } from './get-balance-for-address.js'
|
|
27
27
|
import { createWeb3API } from './web3/index.js'
|
|
28
28
|
|
|
29
|
-
const DEFAULT_ACCOUNT_RESERVE = 0
|
|
29
|
+
const DEFAULT_ACCOUNT_RESERVE = 0
|
|
30
30
|
const DEFAULT_LOW_BALANCE = 0.01
|
|
31
31
|
const DEFAULT_MIN_STAKING_AMOUNT = 0.01
|
|
32
32
|
|
|
@@ -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,
|