@exodus/solana-plugin 1.0.9 → 1.0.10-alpha.1
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 -4
- package/src/index.js +4 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10-alpha.1",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,13 +22,12 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@exodus/assets": "^9.0.1",
|
|
24
24
|
"@exodus/bip44-constants": "^195.0.0",
|
|
25
|
-
"@exodus/solana-api": "^2.5.
|
|
25
|
+
"@exodus/solana-api": "^2.5.31-alpha.1",
|
|
26
26
|
"@exodus/solana-lib": "^1.7.5",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
28
|
"minimalistic-assert": "^1.0.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@exodus/assets-testing": "file:../../../__testing__"
|
|
32
|
-
}
|
|
33
|
-
"gitHead": "5270d4cf5f0a0ae9486533f237e6abe6f026ed16"
|
|
32
|
+
}
|
|
34
33
|
}
|
package/src/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
isValidAddress,
|
|
8
8
|
parseUnsignedTx,
|
|
9
9
|
signUnsignedTx,
|
|
10
|
+
signHardware,
|
|
10
11
|
} from '@exodus/solana-lib'
|
|
11
12
|
import { solana as feeData } from '@exodus/solana-lib/src/fee-data'
|
|
12
13
|
import assetList from '@exodus/solana-meta'
|
|
@@ -25,7 +26,7 @@ const createAsset = ({
|
|
|
25
26
|
config: {
|
|
26
27
|
stakingFeatureAvailable = true,
|
|
27
28
|
includeUnparsed = false,
|
|
28
|
-
monitorInterval = ms('
|
|
29
|
+
monitorInterval = ms('300s'),
|
|
29
30
|
} = {},
|
|
30
31
|
overrideCallback = ({ asset }) => asset,
|
|
31
32
|
} = {}) => {
|
|
@@ -104,11 +105,7 @@ const createAsset = ({
|
|
|
104
105
|
getFee: () => feeData.fee,
|
|
105
106
|
getFeeAsync: async () => feeData.fee,
|
|
106
107
|
getFeeData: () => feeData,
|
|
107
|
-
getKeyIdentifier: createGetKeyIdentifier({
|
|
108
|
-
bip44,
|
|
109
|
-
assetName: base.name,
|
|
110
|
-
keyType: 'nacl',
|
|
111
|
-
}),
|
|
108
|
+
getKeyIdentifier: createGetKeyIdentifier({ bip44 }),
|
|
112
109
|
getTokens: () =>
|
|
113
110
|
Object.values(assets)
|
|
114
111
|
.filter((asset) => asset.name !== base.name)
|
|
@@ -120,6 +117,7 @@ const createAsset = ({
|
|
|
120
117
|
sendTx,
|
|
121
118
|
signTx: ({ unsignedTx, privateKey }) => signUnsignedTx(unsignedTx, privateKey),
|
|
122
119
|
signUnsignedTx,
|
|
120
|
+
signHardware,
|
|
123
121
|
staking: assetStakingApi,
|
|
124
122
|
validateAssetId: isValidAddress,
|
|
125
123
|
}
|