@exodus/solana-plugin 1.19.0 → 1.20.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/package.json +4 -4
- package/src/create-asset.js +7 -4
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.20.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.20.0...@exodus/solana-plugin@1.20.1) (2025-04-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: SOL fees for Desktop (#5417)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.20.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.19.0...@exodus/solana-plugin@1.20.0) (2025-04-08)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat: Solana rent except sender validation (#5394)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [1.19.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.18.3...@exodus/solana-plugin@1.19.0) (2025-04-03)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.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.
|
|
26
|
+
"@exodus/solana-api": "^3.17.2",
|
|
27
|
+
"@exodus/solana-lib": "^3.11.1",
|
|
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": "2e550990ef9db4209f8fe4e6e0485579d1afeedf"
|
|
44
44
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -5,7 +5,6 @@ import {
|
|
|
5
5
|
createAndBroadcastTXFactory,
|
|
6
6
|
getBalancesFactory,
|
|
7
7
|
getFeeAsyncFactory,
|
|
8
|
-
getUnstakingFee,
|
|
9
8
|
isSolanaRewardsActivityTx,
|
|
10
9
|
SolanaMonitor,
|
|
11
10
|
} from '@exodus/solana-api'
|
|
@@ -137,7 +136,12 @@ export const createSolanaAssetFactory =
|
|
|
137
136
|
const getFee = ({ feeData }) => {
|
|
138
137
|
const priorityFee = feeData.priorityFee ?? 0
|
|
139
138
|
// NOTE: fee is bumped via remote config, eventually fee = feeData.fee + (priorityFee * unitsConsumed * feeData.computeUnitsMultiplier)
|
|
140
|
-
const
|
|
139
|
+
const computeUnits = 450 // standard SOL transfer // HACK: solana needs to use getFeeAsync
|
|
140
|
+
|
|
141
|
+
const fee = feeData.baseFee.add(
|
|
142
|
+
base.currency.baseUnit(priorityFee).mul(computeUnits).div(1_000_000) // micro lamports to lamports
|
|
143
|
+
)
|
|
144
|
+
|
|
141
145
|
return { fee, priorityFee }
|
|
142
146
|
}
|
|
143
147
|
|
|
@@ -175,7 +179,6 @@ export const createSolanaAssetFactory =
|
|
|
175
179
|
Object.values(assets)
|
|
176
180
|
.filter((asset) => asset.name !== base.name)
|
|
177
181
|
.map(createToken),
|
|
178
|
-
getUnstakingFee,
|
|
179
182
|
hasFeature: (feature) => !!features[feature], // @deprecated use api.features instead
|
|
180
183
|
privateKeyEncodingDefinition: { encoding: 'base58', data: 'priv|pub' },
|
|
181
184
|
sendTx,
|
|
@@ -206,6 +209,7 @@ export const createSolanaAssetFactory =
|
|
|
206
209
|
accountReserve,
|
|
207
210
|
lowBalance,
|
|
208
211
|
MIN_STAKING_AMOUNT,
|
|
212
|
+
serverApi,
|
|
209
213
|
}
|
|
210
214
|
|
|
211
215
|
return overrideCallback({
|
|
@@ -222,6 +226,5 @@ export const createSolanaAssetFactory =
|
|
|
222
226
|
txsLimit,
|
|
223
227
|
signWithSigner,
|
|
224
228
|
},
|
|
225
|
-
serverApi,
|
|
226
229
|
})
|
|
227
230
|
}
|