@exodus/solana-plugin 1.12.5 → 1.13.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 +9 -0
- package/package.json +3 -3
- package/src/create-asset.js +25 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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.13.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.5...@exodus/solana-plugin@1.13.0) (2024-08-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* move ME solana monitor to the ME codebase ([#3117](https://github.com/ExodusMovement/assets/issues/3117)) ([6e2b25c](https://github.com/ExodusMovement/assets/commit/6e2b25c15d5c43a775b0ab53792882f69aa5c30d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [1.12.5](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.4...@exodus/solana-plugin@1.12.5) (2024-08-07)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@exodus/assets": "^9.0.1",
|
|
24
24
|
"@exodus/bip44-constants": "^195.0.0",
|
|
25
|
-
"@exodus/solana-api": "^3.
|
|
25
|
+
"@exodus/solana-api": "^3.10.0",
|
|
26
26
|
"@exodus/solana-lib": "^3.5.0",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
28
|
"@exodus/web3-solana-utils": "^2.0.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "101deb0e348677bb19d301df54c53557a64f80fe"
|
|
43
43
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
SolanaFeeMonitor,
|
|
11
11
|
SolanaMonitor,
|
|
12
12
|
} from '@exodus/solana-api'
|
|
13
|
-
import { MeSolanaMonitor } from '@exodus/solana-api/src/tx-log/me-solana-monitor'
|
|
14
13
|
import {
|
|
15
14
|
createFeeData,
|
|
16
15
|
createGetKeyIdentifier,
|
|
@@ -33,11 +32,6 @@ const DEFAULT_ACCOUNT_RESERVE = 0.01
|
|
|
33
32
|
const DEFAULT_LOW_BALANCE = 0.01
|
|
34
33
|
const DEFAULT_MIN_STAKING_AMOUNT = 0.01
|
|
35
34
|
|
|
36
|
-
const MonitorType = {
|
|
37
|
-
DEFAULT: 'default',
|
|
38
|
-
ME: 'meMonitor',
|
|
39
|
-
}
|
|
40
|
-
|
|
41
35
|
export const createSolanaAssetFactory =
|
|
42
36
|
({ assetList, serverApi, isTestnet = false }) =>
|
|
43
37
|
({
|
|
@@ -53,7 +47,6 @@ export const createSolanaAssetFactory =
|
|
|
53
47
|
ticksBetweenStakeFetches,
|
|
54
48
|
txsLimit,
|
|
55
49
|
signWithSigner = true,
|
|
56
|
-
monitorType = MonitorType.DEFAULT,
|
|
57
50
|
} = {},
|
|
58
51
|
overrideCallback = ({ asset }) => asset,
|
|
59
52
|
} = {}) => {
|
|
@@ -140,25 +133,15 @@ export const createSolanaAssetFactory =
|
|
|
140
133
|
createAccountState: () => SolanaAccountState,
|
|
141
134
|
createFeeMonitor: (args) => new SolanaFeeMonitor({ ...args, api: serverApi }),
|
|
142
135
|
createHistoryMonitor: (args) =>
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
})
|
|
153
|
-
: new SolanaMonitor({
|
|
154
|
-
interval: monitorInterval,
|
|
155
|
-
ticksBetweenHistoryFetches,
|
|
156
|
-
ticksBetweenStakeFetches,
|
|
157
|
-
includeUnparsed,
|
|
158
|
-
api: serverApi,
|
|
159
|
-
txsLimit,
|
|
160
|
-
...args,
|
|
161
|
-
}),
|
|
136
|
+
new SolanaMonitor({
|
|
137
|
+
interval: monitorInterval,
|
|
138
|
+
ticksBetweenHistoryFetches,
|
|
139
|
+
ticksBetweenStakeFetches,
|
|
140
|
+
includeUnparsed,
|
|
141
|
+
api: serverApi,
|
|
142
|
+
txsLimit,
|
|
143
|
+
...args,
|
|
144
|
+
}),
|
|
162
145
|
createToken: (tokenDef) =>
|
|
163
146
|
tokenDef.isBuiltIn ? createToken(tokenDef) : createCustomToken(tokenDef),
|
|
164
147
|
defaultAddressPath,
|
|
@@ -211,5 +194,20 @@ export const createSolanaAssetFactory =
|
|
|
211
194
|
new SolanaAutoWithdrawMonitor({ ...args, assetClientInterface }),
|
|
212
195
|
}
|
|
213
196
|
|
|
214
|
-
return overrideCallback({
|
|
197
|
+
return overrideCallback({
|
|
198
|
+
asset: fullAsset,
|
|
199
|
+
config: {
|
|
200
|
+
stakingFeatureAvailable,
|
|
201
|
+
includeUnparsed,
|
|
202
|
+
monitorInterval,
|
|
203
|
+
defaultAccountReserve,
|
|
204
|
+
defaultLowBalance,
|
|
205
|
+
defaultMinStakingAmount,
|
|
206
|
+
ticksBetweenHistoryFetches,
|
|
207
|
+
ticksBetweenStakeFetches,
|
|
208
|
+
txsLimit,
|
|
209
|
+
signWithSigner,
|
|
210
|
+
},
|
|
211
|
+
serverApi,
|
|
212
|
+
})
|
|
215
213
|
}
|