@exodus/solana-lib 3.9.0 → 3.9.2

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,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.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.9.1...@exodus/solana-lib@3.9.2) (2024-12-13)
7
+
8
+ **Note:** Version bump only for package @exodus/solana-lib
9
+
10
+
11
+
12
+
13
+
14
+ ## [3.9.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.9.0...@exodus/solana-lib@3.9.1) (2024-12-10)
15
+
16
+
17
+ ### License
18
+
19
+
20
+ * license: re-license under MIT license (#4515)
21
+
22
+
23
+
6
24
  ## [3.9.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.8.0...@exodus/solana-lib@3.9.0) (2024-11-29)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-lib",
3
- "version": "3.9.0",
3
+ "version": "3.9.2",
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",
@@ -12,7 +12,7 @@
12
12
  "author": "Exodus Movement, Inc.",
13
13
  "license": "ISC",
14
14
  "publishConfig": {
15
- "access": "restricted"
15
+ "access": "public"
16
16
  },
17
17
  "scripts": {
18
18
  "test": "run -T exodus-test --jest",
@@ -45,5 +45,5 @@
45
45
  "type": "git",
46
46
  "url": "git+https://github.com/ExodusMovement/assets.git"
47
47
  },
48
- "gitHead": "a5ab26da60a57ffb982a7001843af9cf06f899f8"
48
+ "gitHead": "e57505d7c92305a455a623f171b0d1c6dea9ebba"
49
49
  }
@@ -7,6 +7,7 @@ export const createFeeData = ({ asset }) =>
7
7
  priorityFee: 0,
8
8
  fallbackPriorityFee: 100_000,
9
9
  fuelThreshold: `0.000015 ${asset.ticker}`,
10
+ computeUnitsMultiplier: 4, // compute units buffer
10
11
  },
11
12
  mainKey: 'fee',
12
13
  currency: asset.currency,
@@ -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.add(priorityFeeInstruction)
13
+ transaction.instructions.unshift(priorityFeeInstruction)
14
14
  }
15
15
 
16
16
  const addComputeBudgetToTransaction = ({ transaction, computeUnits }) => {
17
17
  const computeBudgetInstruction = ComputeBudgetProgram.setComputeUnitLimit({
18
- units: computeUnits * 4, // add compute unit buffer
18
+ units: computeUnits,
19
19
  })
20
- transaction.add(computeBudgetInstruction)
20
+ transaction.instructions.unshift(computeBudgetInstruction)
21
21
  }
22
22
 
23
23
  const deserializeTransactionBytes = (wireTransactionBuffer) => {