@exodus/solana-plugin 1.18.1 → 1.18.3

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,28 @@
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.18.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.18.2...@exodus/solana-plugin@1.18.3) (2025-04-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: SOL staking method param (#5362)
13
+
14
+
15
+
16
+ ## [1.18.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.18.1...@exodus/solana-plugin@1.18.2) (2025-03-25)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: demote KHAI spl token to CT (#5255)
23
+
24
+ * fix: SOL insufficient funds for rent (#5308)
25
+
26
+
27
+
6
28
  ## [1.18.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.18.0...@exodus/solana-plugin@1.18.1) (2025-03-14)
7
29
 
8
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
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.14.3",
26
+ "@exodus/solana-api": "^3.14.7",
27
27
  "@exodus/solana-lib": "^3.9.4",
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": "637668ee215b0aacc959fcac184bf8007e4e9e33"
43
+ "gitHead": "9b7dd58f7b4f5e4ba9e23e869dee7e26e5fe9499"
44
44
  }
@@ -4,9 +4,9 @@ import {
4
4
  createAccountState,
5
5
  createAndBroadcastTXFactory,
6
6
  getBalancesFactory,
7
+ getFeeAsyncFactory,
7
8
  getUnstakingFee,
8
9
  isSolanaRewardsActivityTx,
9
- SolanaAutoWithdrawMonitor,
10
10
  SolanaMonitor,
11
11
  } from '@exodus/solana-api'
12
12
  import {
@@ -38,6 +38,7 @@ export const createSolanaAssetFactory =
38
38
  config: {
39
39
  stakingFeatureAvailable = true,
40
40
  includeUnparsed = false,
41
+ allowSendingAll = true,
41
42
  monitorInterval = ms('30s'),
42
43
  defaultAccountReserve = DEFAULT_ACCOUNT_RESERVE,
43
44
  defaultLowBalance = DEFAULT_LOW_BALANCE,
@@ -76,7 +77,7 @@ export const createSolanaAssetFactory =
76
77
  encodePublic: getAddressFromPublicKey,
77
78
  }
78
79
 
79
- const getBalances = getBalancesFactory({ stakingFeatureAvailable })
80
+ const getBalances = getBalancesFactory({ stakingFeatureAvailable, allowSendingAll })
80
81
 
81
82
  const feeData = createFeeData({ asset: base })
82
83
 
@@ -135,6 +136,8 @@ export const createSolanaAssetFactory =
135
136
  return { fee, priorityFee }
136
137
  }
137
138
 
139
+ const getFeeAsync = getFeeAsyncFactory({ api: serverApi })
140
+
138
141
  const api = {
139
142
  getActivityTxs,
140
143
  addressHasHistory: (...args) => serverApi.getAccountInfo(...args).then((acc) => !!acc),
@@ -159,7 +162,7 @@ export const createSolanaAssetFactory =
159
162
  getBalanceForAddress: createGetBalanceForAddress({ api: serverApi, asset: base }),
160
163
  getDefaultAddressPath: () => defaultAddressPath,
161
164
  getFee,
162
- getFeeAsync: getFee, // for now they are the same, eventually prioirtyFee May be calculated
165
+ getFeeAsync,
163
166
  getFeeData: () => feeData,
164
167
  getSupportedPurposes: () => [44],
165
168
  getKeyIdentifier: createGetKeyIdentifier({ bip44, assetName: base.name }),
@@ -198,8 +201,6 @@ export const createSolanaAssetFactory =
198
201
  accountReserve,
199
202
  lowBalance,
200
203
  MIN_STAKING_AMOUNT,
201
- createAutoWithdrawMonitor: (args) =>
202
- new SolanaAutoWithdrawMonitor({ ...args, assetClientInterface }),
203
204
  }
204
205
 
205
206
  return overrideCallback({