@exodus/solana-plugin 1.30.2 → 1.30.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 +3 -3
- package/src/create-asset-utils.js +10 -5
- package/src/create-asset.js +14 -13
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.30.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.30.2...@exodus/solana-plugin@1.30.3) (2026-01-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: SOL clarity integration for txs (#7256)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [1.30.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.30.1...@exodus/solana-plugin@1.30.2) (2026-01-09)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @exodus/solana-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.3",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@exodus/bip44-constants": "^195.0.0",
|
|
28
28
|
"@exodus/i18n-dummy": "^1.0.0",
|
|
29
29
|
"@exodus/send-validation-model": "^1.0.0",
|
|
30
|
-
"@exodus/solana-api": "^3.27.
|
|
30
|
+
"@exodus/solana-api": "^3.27.3",
|
|
31
31
|
"@exodus/solana-lib": "^3.19.2",
|
|
32
32
|
"@exodus/solana-meta": "^2.3.1",
|
|
33
33
|
"@exodus/web3-solana-utils": "^2.9.0",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"type": "git",
|
|
45
45
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "ecc849a8b24d0d0f5518437dc58d3fb943a2a1cd"
|
|
48
48
|
}
|
|
@@ -9,14 +9,17 @@ export const createHistoryMonitorFactory = ({
|
|
|
9
9
|
ticksBetweenHistoryFetches,
|
|
10
10
|
ticksBetweenStakeFetches,
|
|
11
11
|
includeUnparsed,
|
|
12
|
-
|
|
12
|
+
clarityApi,
|
|
13
|
+
rpcApi,
|
|
13
14
|
wsApi,
|
|
14
15
|
txsLimit,
|
|
15
16
|
}) => {
|
|
16
17
|
assert(assetClientInterface, 'expected assetClientInterface')
|
|
17
18
|
assert(monitorType, 'expected monitorType')
|
|
18
19
|
assert(interval, 'expected monitor interval')
|
|
19
|
-
assert(
|
|
20
|
+
assert(clarityApi, 'expected clarity api server')
|
|
21
|
+
assert(rpcApi, 'expected rpc api server')
|
|
22
|
+
assert(wsApi, 'expected ws api server')
|
|
20
23
|
|
|
21
24
|
return (args) => {
|
|
22
25
|
let monitor
|
|
@@ -26,7 +29,8 @@ export const createHistoryMonitorFactory = ({
|
|
|
26
29
|
assetClientInterface,
|
|
27
30
|
interval,
|
|
28
31
|
includeUnparsed,
|
|
29
|
-
|
|
32
|
+
rpcApi,
|
|
33
|
+
clarityApi,
|
|
30
34
|
wsApi,
|
|
31
35
|
txsLimit,
|
|
32
36
|
...args,
|
|
@@ -40,7 +44,8 @@ export const createHistoryMonitorFactory = ({
|
|
|
40
44
|
ticksBetweenHistoryFetches,
|
|
41
45
|
ticksBetweenStakeFetches,
|
|
42
46
|
includeUnparsed,
|
|
43
|
-
|
|
47
|
+
rpcApi,
|
|
48
|
+
clarityApi,
|
|
44
49
|
txsLimit,
|
|
45
50
|
...args,
|
|
46
51
|
})
|
|
@@ -53,7 +58,7 @@ export const createHistoryMonitorFactory = ({
|
|
|
53
58
|
ticksBetweenHistoryFetches,
|
|
54
59
|
ticksBetweenStakeFetches,
|
|
55
60
|
includeUnparsed,
|
|
56
|
-
|
|
61
|
+
rpcApi,
|
|
57
62
|
txsLimit,
|
|
58
63
|
...args,
|
|
59
64
|
})
|
package/src/create-asset.js
CHANGED
|
@@ -61,10 +61,10 @@ export const createSolanaAssetFactory =
|
|
|
61
61
|
overrideCallback = ({ asset }) => asset,
|
|
62
62
|
} = {}) => {
|
|
63
63
|
const assets = connectAssetsList(assetList)
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
: new Api({ assets })
|
|
64
|
+
const rpcApi = new Api({ assets })
|
|
65
|
+
const clarityApi = new ClarityApi({ assets })
|
|
67
66
|
const wsApi = new WsApi({ assets })
|
|
67
|
+
const defaultApi = ['ws-clarity', 'clarity'].includes(monitorType) ? clarityApi : rpcApi
|
|
68
68
|
|
|
69
69
|
const { name: baseAssetName } = assetList.find((asset) => asset.baseAssetName === asset.name)
|
|
70
70
|
const base = assets[baseAssetName]
|
|
@@ -108,17 +108,17 @@ export const createSolanaAssetFactory =
|
|
|
108
108
|
|
|
109
109
|
const createTx = createTxFactory({
|
|
110
110
|
assetClientInterface,
|
|
111
|
-
api:
|
|
111
|
+
api: defaultApi,
|
|
112
112
|
feePayerClient,
|
|
113
113
|
})
|
|
114
114
|
|
|
115
115
|
const sendTx = createAndBroadcastTXFactory({
|
|
116
|
-
api:
|
|
116
|
+
api: defaultApi,
|
|
117
117
|
assetClientInterface,
|
|
118
118
|
})
|
|
119
119
|
|
|
120
120
|
const initAgentWallet = createInitAgentWalletFactory({
|
|
121
|
-
api:
|
|
121
|
+
api: defaultApi,
|
|
122
122
|
assetClientInterface,
|
|
123
123
|
sendTx,
|
|
124
124
|
})
|
|
@@ -189,7 +189,7 @@ export const createSolanaAssetFactory =
|
|
|
189
189
|
const getFeeAsync = getFeeAsyncFactory({ createTx })
|
|
190
190
|
|
|
191
191
|
const sendValidations = sendValidationsFactory({
|
|
192
|
-
api:
|
|
192
|
+
api: defaultApi,
|
|
193
193
|
assetName: baseAssetName,
|
|
194
194
|
assetClientInterface,
|
|
195
195
|
})
|
|
@@ -202,15 +202,16 @@ export const createSolanaAssetFactory =
|
|
|
202
202
|
ticksBetweenHistoryFetches,
|
|
203
203
|
ticksBetweenStakeFetches,
|
|
204
204
|
includeUnparsed,
|
|
205
|
-
|
|
205
|
+
rpcApi,
|
|
206
|
+
clarityApi,
|
|
206
207
|
wsApi,
|
|
207
208
|
txsLimit,
|
|
208
209
|
})
|
|
209
210
|
|
|
210
211
|
const api = {
|
|
211
212
|
getActivityTxs,
|
|
212
|
-
addressHasHistory: (...args) =>
|
|
213
|
-
broadcastTx: (...args) =>
|
|
213
|
+
addressHasHistory: (...args) => defaultApi.addressHasHistory(...args),
|
|
214
|
+
broadcastTx: (...args) => defaultApi.broadcastTransaction(...args),
|
|
214
215
|
createAccountState: () => SolanaAccountState,
|
|
215
216
|
createHistoryMonitor,
|
|
216
217
|
createToken: (tokenDef) =>
|
|
@@ -219,7 +220,7 @@ export const createSolanaAssetFactory =
|
|
|
219
220
|
defaultAddressPath,
|
|
220
221
|
features,
|
|
221
222
|
getBalances,
|
|
222
|
-
getBalanceForAddress: createGetBalanceForAddress({ api:
|
|
223
|
+
getBalanceForAddress: createGetBalanceForAddress({ api: defaultApi, asset: base }),
|
|
223
224
|
getDefaultAddressPath: () => defaultAddressPath,
|
|
224
225
|
getFee,
|
|
225
226
|
getFeeAsync,
|
|
@@ -238,7 +239,7 @@ export const createSolanaAssetFactory =
|
|
|
238
239
|
signer
|
|
239
240
|
? signUnsignedTxWithSigner(unsignedTx, signer)
|
|
240
241
|
: signUnsignedTx(unsignedTx, privateKey),
|
|
241
|
-
signHardware: createSignHardwareFactory({ getKeyIdentifier, api:
|
|
242
|
+
signHardware: createSignHardwareFactory({ getKeyIdentifier, api: defaultApi }),
|
|
242
243
|
signMessage: ({ privateKey, signer, message }) =>
|
|
243
244
|
signer
|
|
244
245
|
? signMessageWithSigner({ signer, message })
|
|
@@ -262,7 +263,7 @@ export const createSolanaAssetFactory =
|
|
|
262
263
|
initAgentWallet,
|
|
263
264
|
lowBalance,
|
|
264
265
|
MIN_STAKING_AMOUNT,
|
|
265
|
-
serverApi,
|
|
266
|
+
serverApi: defaultApi,
|
|
266
267
|
}
|
|
267
268
|
|
|
268
269
|
return overrideCallback({
|