@exodus/solana-lib 3.23.0 → 3.24.0

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,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
+ ## [3.24.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.23.0...@exodus/solana-lib@3.24.0) (2026-04-27)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: add MoveFunds API for Solana (#7870)
13
+
14
+
15
+
6
16
  ## [3.23.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.22.5...@exodus/solana-lib@3.23.0) (2026-04-21)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-lib",
3
- "version": "3.23.0",
3
+ "version": "3.24.0",
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",
@@ -49,5 +49,5 @@
49
49
  "type": "git",
50
50
  "url": "git+https://github.com/ExodusMovement/assets.git"
51
51
  },
52
- "gitHead": "a500e7aa96e24bfc673f1bb354eb0f662f7d5d82"
52
+ "gitHead": "a6dde437af961c72c62f64eff53207ccfaeacc95"
53
53
  }
package/src/index.js CHANGED
@@ -22,4 +22,9 @@ export {
22
22
  createApproveDelegationTx,
23
23
  createRevokeDelegationTx,
24
24
  } from './helpers/token-delegation.js'
25
- export { createAndSignTxWithMpcKey, getAddressFromMpcKey, isMpcKey } from './mpc.js'
25
+ export {
26
+ createAndSignTxWithMpcKey,
27
+ getAddressFromMpcKey,
28
+ isMpcKey,
29
+ signUnsignedTxWithMpcKey,
30
+ } from './mpc.js'
package/src/mpc.js CHANGED
@@ -51,6 +51,17 @@ export async function createAndSignTxWithMpcKey(input, key) {
51
51
  })
52
52
  }
53
53
 
54
+ export async function signUnsignedTxWithMpcKey(unsignedTx, key) {
55
+ const decoded = bs58.decode(key)
56
+ const publicKey = decoded.slice(32)
57
+ const privateScalar = decoded.slice(0, 32)
58
+
59
+ return signUnsignedTxWithSigner(unsignedTx, {
60
+ getPublicKey: async () => publicKey,
61
+ sign: async ({ data }) => sign(data, privateScalar),
62
+ })
63
+ }
64
+
54
65
  export const getAddressFromMpcKey = (key) => {
55
66
  const decoded = bs58.decode(key)
56
67
  return getAddressFromPublicKey(decoded.slice(32))