@exodus/solana-api 3.26.1 → 3.26.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 +8 -0
- package/package.json +2 -2
- package/src/create-unsigned-tx-for-send.js +3 -0
- package/src/tx-send.js +4 -17
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.26.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.26.1...@exodus/solana-api@3.26.2) (2025-12-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/solana-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.26.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.26.0...@exodus/solana-api@3.26.1) (2025-12-12)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.2",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@exodus/assets-testing": "^1.0.0",
|
|
50
50
|
"@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "937ac1707d279c2dda93b162586b5a596236ce08",
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
|
|
55
55
|
},
|
|
@@ -24,6 +24,7 @@ export const createTxFactory = ({ assetClientInterface, api, feePayerClient }) =
|
|
|
24
24
|
feeData: providedFeeData,
|
|
25
25
|
fromAddress: providedFromAddress,
|
|
26
26
|
toAddress,
|
|
27
|
+
address,
|
|
27
28
|
amount,
|
|
28
29
|
reference,
|
|
29
30
|
memo,
|
|
@@ -56,6 +57,8 @@ export const createTxFactory = ({ assetClientInterface, api, feePayerClient }) =
|
|
|
56
57
|
assert(asset, 'asset is required')
|
|
57
58
|
assert(walletAccount, 'walletAccount is required')
|
|
58
59
|
|
|
60
|
+
toAddress = toAddress ?? address
|
|
61
|
+
|
|
59
62
|
let tokenParams = Object.create(null)
|
|
60
63
|
|
|
61
64
|
const baseAsset = asset.baseAsset
|
package/src/tx-send.js
CHANGED
|
@@ -6,26 +6,13 @@ export const createAndBroadcastTXFactory = ({ api, assetClientInterface }) => {
|
|
|
6
6
|
assert(assetClientInterface, 'assetClientInterface is required')
|
|
7
7
|
assert(api, 'api is required')
|
|
8
8
|
|
|
9
|
-
return async ({ asset, walletAccount, unsignedTx:
|
|
9
|
+
return async ({ asset, walletAccount, unsignedTx: providedUnsignedTx, ...legacyParams }) => {
|
|
10
10
|
const assetName = asset.name
|
|
11
11
|
const baseAsset = asset.baseAsset
|
|
12
12
|
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return baseAsset.api.createTx({
|
|
19
|
-
asset,
|
|
20
|
-
walletAccount,
|
|
21
|
-
amount: legacyParams.amount,
|
|
22
|
-
toAddress: legacyParams.address,
|
|
23
|
-
...legacyParams,
|
|
24
|
-
...legacyParams.options,
|
|
25
|
-
})
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const unsignedTx = await resolveTxs()
|
|
13
|
+
const { unsignedTx } = providedUnsignedTx
|
|
14
|
+
? { unsignedTx: providedUnsignedTx }
|
|
15
|
+
: await baseAsset.api.createTx({ asset, walletAccount, ...legacyParams })
|
|
29
16
|
|
|
30
17
|
const signedTx = await assetClientInterface.signTransaction({
|
|
31
18
|
assetName: baseAsset.name,
|