@exodus/solana-lib 3.9.1 → 3.9.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 +18 -0
- package/package.json +2 -2
- package/src/fee-data/index.js +1 -2
- package/src/tx/prepare-for-signing.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [3.9.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.9.2...@exodus/solana-lib@3.9.3) (2024-12-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: include rentExemptAmount in balance calculation (#4738)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [3.9.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.9.1...@exodus/solana-lib@3.9.2) (2024-12-13)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @exodus/solana-lib
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [3.9.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.9.0...@exodus/solana-lib@3.9.1) (2024-12-10)
|
|
7
25
|
|
|
8
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-lib",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"description": "Solana utils, such as for cryptography, address encoding/decoding, transaction building, etc.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"type": "git",
|
|
46
46
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "44b274a6a6f0228014aa0eaac5af850dcaf76fed"
|
|
49
49
|
}
|
package/src/fee-data/index.js
CHANGED
|
@@ -4,8 +4,7 @@ export const createFeeData = ({ asset }) =>
|
|
|
4
4
|
new FeeData({
|
|
5
5
|
config: {
|
|
6
6
|
fee: `0.000005 ${asset.ticker}`,
|
|
7
|
-
priorityFee:
|
|
8
|
-
fallbackPriorityFee: 100_000,
|
|
7
|
+
priorityFee: 1_000_000,
|
|
9
8
|
fuelThreshold: `0.000015 ${asset.ticker}`,
|
|
10
9
|
computeUnitsMultiplier: 4, // compute units buffer
|
|
11
10
|
},
|
|
@@ -10,14 +10,14 @@ const addPriorityFeeToTransaction = ({ transaction, priorityFee }) => {
|
|
|
10
10
|
const priorityFeeInstruction = ComputeBudgetProgram.setComputeUnitPrice({
|
|
11
11
|
microLamports: priorityFee,
|
|
12
12
|
}) // 1 microLamport = 0.000001 lamports
|
|
13
|
-
transaction.
|
|
13
|
+
transaction.instructions.unshift(priorityFeeInstruction)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
const addComputeBudgetToTransaction = ({ transaction, computeUnits }) => {
|
|
17
17
|
const computeBudgetInstruction = ComputeBudgetProgram.setComputeUnitLimit({
|
|
18
18
|
units: computeUnits,
|
|
19
19
|
})
|
|
20
|
-
transaction.
|
|
20
|
+
transaction.instructions.unshift(computeBudgetInstruction)
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const deserializeTransactionBytes = (wireTransactionBuffer) => {
|