@exodus/solana-plugin 1.1.0 → 1.2.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/package.json +3 -3
- package/src/index.js +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@exodus/assets": "^9.0.1",
|
|
23
23
|
"@exodus/bip44-constants": "^195.0.0",
|
|
24
|
-
"@exodus/solana-api": "^2.5.
|
|
24
|
+
"@exodus/solana-api": "^2.5.34",
|
|
25
25
|
"@exodus/solana-lib": "^1.7.5",
|
|
26
26
|
"@exodus/solana-meta": "^1.0.7",
|
|
27
27
|
"minimalistic-assert": "^1.0.1",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@exodus/assets-testing": "^1.0.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "9da341db0c5c18d52690699d241675c1f7392d71"
|
|
34
34
|
}
|
package/src/index.js
CHANGED
|
@@ -30,10 +30,13 @@ const createAsset = ({
|
|
|
30
30
|
config: {
|
|
31
31
|
stakingFeatureAvailable = true,
|
|
32
32
|
includeUnparsed = false,
|
|
33
|
-
monitorInterval = ms('
|
|
33
|
+
monitorInterval = ms('30s'),
|
|
34
34
|
defaultAccountReserve = DEFAULT_ACCOUNT_RESERVE,
|
|
35
35
|
defaultLowBalance = DEFAULT_LOW_BALANCE,
|
|
36
36
|
defaultMinStakingAmount = DEFAULT_MIN_STAKING_AMOUNT,
|
|
37
|
+
ticksBetweenHistoryFetches,
|
|
38
|
+
ticksBetweenStakeFetches,
|
|
39
|
+
txsLimit,
|
|
37
40
|
} = {},
|
|
38
41
|
overrideCallback = ({ asset }) => asset,
|
|
39
42
|
} = {}) => {
|
|
@@ -105,7 +108,15 @@ const createAsset = ({
|
|
|
105
108
|
createAccountState: () => SolanaAccountState,
|
|
106
109
|
createFeeMonitor: (args) => new SolanaFeeMonitor({ ...args, api: serverApi }),
|
|
107
110
|
createHistoryMonitor: (args) =>
|
|
108
|
-
new SolanaMonitor({
|
|
111
|
+
new SolanaMonitor({
|
|
112
|
+
interval: monitorInterval,
|
|
113
|
+
ticksBetweenHistoryFetches,
|
|
114
|
+
ticksBetweenStakeFetches,
|
|
115
|
+
includeUnparsed,
|
|
116
|
+
api: serverApi,
|
|
117
|
+
txsLimit,
|
|
118
|
+
...args,
|
|
119
|
+
}),
|
|
109
120
|
createToken: (tokenDef) =>
|
|
110
121
|
tokenDef.isBuiltIn ? createToken(tokenDef) : createCustomToken(tokenDef),
|
|
111
122
|
defaultAddressPath: 'm/0/0',
|