@exodus/solana-plugin 1.26.1 → 1.28.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 +20 -0
- package/package.json +4 -4
- package/src/create-asset.js +8 -0
- package/src/send-validations.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.28.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.27.0...@exodus/solana-plugin@1.28.0) (2025-10-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* feat: Solana skip rent validation when usedFeePayer and update fee check logic (#6797)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.26.1...@exodus/solana-plugin@1.27.0) (2025-10-27)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* feat: SOL agent accounts (#6757)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [1.26.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.26.0...@exodus/solana-plugin@1.26.1) (2025-10-24)
|
|
7
27
|
|
|
8
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
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.
|
|
31
|
-
"@exodus/solana-lib": "^3.
|
|
30
|
+
"@exodus/solana-api": "^3.25.0",
|
|
31
|
+
"@exodus/solana-lib": "^3.14.0",
|
|
32
32
|
"@exodus/solana-meta": "^2.3.1",
|
|
33
33
|
"@exodus/web3-solana-utils": "^2.9.0",
|
|
34
34
|
"minimalistic-assert": "^1.0.1",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"type": "git",
|
|
45
45
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "747fdeb31c49ca85b21904d406a589c06a3bc101"
|
|
48
48
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ClarityApi,
|
|
6
6
|
createAccountState,
|
|
7
7
|
createAndBroadcastTXFactory,
|
|
8
|
+
createInitAgentWalletFactory,
|
|
8
9
|
createTxFactory,
|
|
9
10
|
feePayerClientFactory,
|
|
10
11
|
getBalancesFactory,
|
|
@@ -112,6 +113,12 @@ export const createSolanaAssetFactory =
|
|
|
112
113
|
assetClientInterface,
|
|
113
114
|
})
|
|
114
115
|
|
|
116
|
+
const initAgentWallet = createInitAgentWalletFactory({
|
|
117
|
+
api: serverApi,
|
|
118
|
+
assetClientInterface,
|
|
119
|
+
sendTx,
|
|
120
|
+
})
|
|
121
|
+
|
|
115
122
|
const createToken = ({ mintAddress, name, ...tokenDef }) => ({
|
|
116
123
|
...tokenDef,
|
|
117
124
|
address,
|
|
@@ -245,6 +252,7 @@ export const createSolanaAssetFactory =
|
|
|
245
252
|
api,
|
|
246
253
|
bip44,
|
|
247
254
|
accountReserve,
|
|
255
|
+
initAgentWallet,
|
|
248
256
|
lowBalance,
|
|
249
257
|
MIN_STAKING_AMOUNT,
|
|
250
258
|
serverApi,
|
package/src/send-validations.js
CHANGED
|
@@ -72,7 +72,7 @@ const sendValidationsFactory = ({ api, assetName, assetClientInterface }) => {
|
|
|
72
72
|
type: VALIDATION_TYPES.ERROR,
|
|
73
73
|
shouldValidate: ({ asset, sendAmount }) => sendAmount,
|
|
74
74
|
isValid: async ({ asset, destinationAddress, sendAmount, baseAssetBalance, fees }) => {
|
|
75
|
-
if (!destinationAddress || !sendAmount || sendAmount.isZero) {
|
|
75
|
+
if (!destinationAddress || !sendAmount || sendAmount.isZero || fees?.usedFeePayer === true) {
|
|
76
76
|
return true
|
|
77
77
|
}
|
|
78
78
|
|