@exodus/solana-api 1.2.18 → 1.2.19
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 +2 -2
- package/src/index.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"node-fetch": "~1.6.3"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "3c07cdab72a42b26fcb199418f7e61f71bf3d91f"
|
|
26
26
|
}
|
package/src/index.js
CHANGED
|
@@ -171,7 +171,10 @@ class Api {
|
|
|
171
171
|
}))
|
|
172
172
|
|
|
173
173
|
// program:type tells us if it's a SOL or Token transfer
|
|
174
|
-
const solanaTx = lodash.find(instructions,
|
|
174
|
+
const solanaTx = lodash.find(instructions, (ix) => {
|
|
175
|
+
if (![ix.source, ix.destination].includes(ownerAddress)) return false
|
|
176
|
+
return ix.program === 'system' && ix.type === 'transfer'
|
|
177
|
+
}) // get SOL transfer
|
|
175
178
|
const stakeTx = lodash.find(instructions, { program: 'system', type: 'createAccountWithSeed' })
|
|
176
179
|
const stakeWithdraw = lodash.find(instructions, { program: 'stake', type: 'withdraw' })
|
|
177
180
|
const stakeUndelegate = lodash.find(instructions, { program: 'stake', type: 'deactivate' })
|