@exodus/solana-plugin 1.16.2 → 1.16.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 +10 -0
- package/package.json +4 -4
- package/src/create-asset.js +9 -4
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.16.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.16.2...@exodus/solana-plugin@1.16.3) (2024-12-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: include rentExemptAmount in balance calculation (#4738)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [1.16.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.16.1...@exodus/solana-plugin@1.16.2) (2024-12-12)
|
|
7
17
|
|
|
8
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.3",
|
|
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.11.
|
|
27
|
-
"@exodus/solana-lib": "^3.9.
|
|
26
|
+
"@exodus/solana-api": "^3.11.9",
|
|
27
|
+
"@exodus/solana-lib": "^3.9.3",
|
|
28
28
|
"@exodus/solana-meta": "^2.1.1",
|
|
29
29
|
"@exodus/web3-solana-utils": "^2.2.5",
|
|
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": "44b274a6a6f0228014aa0eaac5af850dcaf76fed"
|
|
44
44
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -127,6 +127,13 @@ export const createSolanaAssetFactory =
|
|
|
127
127
|
|
|
128
128
|
const defaultAddressPath = 'm/0/0'
|
|
129
129
|
|
|
130
|
+
const getFee = ({ feeData }) => {
|
|
131
|
+
const priorityFee = feeData.priorityFee ?? 0
|
|
132
|
+
// NOTE: fee is bumped via remote config, eventually fee = feeData.fee + (priorityFee * unitsConsumed * feeData.computeUnitsMultiplier)
|
|
133
|
+
const fee = feeData.fee
|
|
134
|
+
return { fee, priorityFee }
|
|
135
|
+
}
|
|
136
|
+
|
|
130
137
|
const api = {
|
|
131
138
|
getActivityTxs,
|
|
132
139
|
addressHasHistory: (...args) => serverApi.getAccountInfo(...args).then((acc) => !!acc),
|
|
@@ -150,10 +157,8 @@ export const createSolanaAssetFactory =
|
|
|
150
157
|
getBalances,
|
|
151
158
|
getBalanceForAddress: createGetBalanceForAddress({ api: serverApi, asset: base }),
|
|
152
159
|
getDefaultAddressPath: () => defaultAddressPath,
|
|
153
|
-
getFee
|
|
154
|
-
getFeeAsync:
|
|
155
|
-
return { fee: feeData.fee }
|
|
156
|
-
},
|
|
160
|
+
getFee,
|
|
161
|
+
getFeeAsync: getFee, // for now they are the same, eventually prioirtyFee May be calculated
|
|
157
162
|
getFeeData: () => feeData,
|
|
158
163
|
getSupportedPurposes: () => [44],
|
|
159
164
|
getKeyIdentifier: createGetKeyIdentifier({ bip44, assetName: base.name }),
|