@exodus/solana-plugin 1.24.1 → 1.24.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 +20 -0
- package/package.json +2 -2
- package/src/create-asset.js +8 -3
- package/src/send-validations.js +1 -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.24.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.24.2...@exodus/solana-plugin@1.24.3) (2025-09-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: solana asset name perf (#6467)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.24.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.24.1...@exodus/solana-plugin@1.24.2) (2025-09-15)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* fix: update Solana base asset name (#6466)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [1.24.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.24.0...@exodus/solana-plugin@1.24.1) (2025-09-15)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.3",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"type": "git",
|
|
44
44
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "f205dceaa506c168cb789204d99fec4c70b86dfd"
|
|
47
47
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -54,8 +54,8 @@ export const createSolanaAssetFactory =
|
|
|
54
54
|
} = {}) => {
|
|
55
55
|
const assets = connectAssetsList(assetList)
|
|
56
56
|
|
|
57
|
-
const
|
|
58
|
-
const base = assets[
|
|
57
|
+
const { name: baseAssetName } = assetList.find((asset) => asset.baseAssetName === asset.name)
|
|
58
|
+
const base = assets[baseAssetName]
|
|
59
59
|
|
|
60
60
|
const smallTxAmount = base.currency.defaultUnit('0.00005')
|
|
61
61
|
const accountReserve = base.currency.defaultUnit(
|
|
@@ -152,7 +152,12 @@ export const createSolanaAssetFactory =
|
|
|
152
152
|
|
|
153
153
|
const getFeeAsync = getFeeAsyncFactory({ api: serverApi })
|
|
154
154
|
|
|
155
|
-
const sendValidations = sendValidationsFactory({
|
|
155
|
+
const sendValidations = sendValidationsFactory({
|
|
156
|
+
api: serverApi,
|
|
157
|
+
assetName: baseAssetName,
|
|
158
|
+
assetClientInterface,
|
|
159
|
+
})
|
|
160
|
+
|
|
156
161
|
const api = {
|
|
157
162
|
getActivityTxs,
|
|
158
163
|
addressHasHistory: (...args) => serverApi.getAccountInfo(...args).then((acc) => !!acc),
|
package/src/send-validations.js
CHANGED
|
@@ -141,7 +141,7 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
|
|
|
141
141
|
|
|
142
142
|
const accountState = await assetClientInterface.getAccountState({
|
|
143
143
|
assetName,
|
|
144
|
-
walletAccount: fromWalletAccount,
|
|
144
|
+
walletAccount: fromWalletAccount.toString(),
|
|
145
145
|
})
|
|
146
146
|
|
|
147
147
|
if (!accountState?.rentExemptAmount) {
|