@exodus/solana-plugin 1.0.10-alpha.1 → 1.0.11
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 +9 -8
- package/src/index.js +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -14,20 +14,21 @@
|
|
|
14
14
|
"access": "restricted"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"lint": "eslint ./src",
|
|
17
|
+
"test": "run -T jest",
|
|
18
|
+
"lint": "run -T eslint ./src",
|
|
20
19
|
"lint:fix": "yarn lint --fix"
|
|
21
20
|
},
|
|
22
21
|
"dependencies": {
|
|
23
22
|
"@exodus/assets": "^9.0.1",
|
|
24
23
|
"@exodus/bip44-constants": "^195.0.0",
|
|
25
|
-
"@exodus/solana-api": "^2.5.
|
|
24
|
+
"@exodus/solana-api": "^2.5.30",
|
|
26
25
|
"@exodus/solana-lib": "^1.7.5",
|
|
27
26
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
|
-
"minimalistic-assert": "^1.0.1"
|
|
27
|
+
"minimalistic-assert": "^1.0.1",
|
|
28
|
+
"ms": "^2.1.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@exodus/assets-testing": "
|
|
32
|
-
}
|
|
31
|
+
"@exodus/assets-testing": "^1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "67b09d4e08547177a66e34a22ba5fd825dd324d0"
|
|
33
34
|
}
|
package/src/index.js
CHANGED
|
@@ -79,14 +79,14 @@ const createAsset = ({
|
|
|
79
79
|
const features = {
|
|
80
80
|
accountState: true,
|
|
81
81
|
customTokens: true,
|
|
82
|
-
feeMonitor:
|
|
82
|
+
feeMonitor: false,
|
|
83
83
|
feesApi: true,
|
|
84
84
|
nfts: true,
|
|
85
85
|
staking: {},
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
const assetStakingApi = {
|
|
89
|
-
isStaking: ({ accountState }) => accountState.
|
|
89
|
+
isStaking: ({ accountState }) => accountState.mem.isDelegating,
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
const api = {
|
|
@@ -102,8 +102,8 @@ const createAsset = ({
|
|
|
102
102
|
defaultAddressPath: 'm/0/0',
|
|
103
103
|
features,
|
|
104
104
|
getBalances,
|
|
105
|
-
getFee: () => feeData.fee,
|
|
106
|
-
getFeeAsync: async () => feeData.fee,
|
|
105
|
+
getFee: ({ feeData }) => feeData.fee,
|
|
106
|
+
getFeeAsync: async ({ feeData }) => feeData.fee,
|
|
107
107
|
getFeeData: () => feeData,
|
|
108
108
|
getKeyIdentifier: createGetKeyIdentifier({ bip44 }),
|
|
109
109
|
getTokens: () =>
|
|
@@ -136,4 +136,5 @@ const createAsset = ({
|
|
|
136
136
|
return overrideCallback({ asset: fullAsset })
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
const defaultExport = { createAsset }
|
|
140
|
+
export default defaultExport
|