@exodus/solana-plugin 1.0.8 → 1.0.9
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 +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
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": "^2.5.
|
|
25
|
+
"@exodus/solana-api": "^2.5.30",
|
|
26
26
|
"@exodus/solana-lib": "^1.7.5",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
28
|
"minimalistic-assert": "^1.0.1"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@exodus/assets-testing": "file:../../../__testing__"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "5270d4cf5f0a0ae9486533f237e6abe6f026ed16"
|
|
34
34
|
}
|
package/src/index.js
CHANGED
|
@@ -81,6 +81,11 @@ const createAsset = ({
|
|
|
81
81
|
feeMonitor: true,
|
|
82
82
|
feesApi: true,
|
|
83
83
|
nfts: true,
|
|
84
|
+
staking: {},
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const assetStakingApi = {
|
|
88
|
+
isStaking: ({ accountState }) => accountState.staking.isDelegating,
|
|
84
89
|
}
|
|
85
90
|
|
|
86
91
|
const api = {
|
|
@@ -115,6 +120,7 @@ const createAsset = ({
|
|
|
115
120
|
sendTx,
|
|
116
121
|
signTx: ({ unsignedTx, privateKey }) => signUnsignedTx(unsignedTx, privateKey),
|
|
117
122
|
signUnsignedTx,
|
|
123
|
+
staking: assetStakingApi,
|
|
118
124
|
validateAssetId: isValidAddress,
|
|
119
125
|
}
|
|
120
126
|
|