@exodus/solana-api 3.27.0 → 3.27.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/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/src/api.js +2 -2
- package/src/tx-parser.js +5 -4
- package/src/ws-api.js +3 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.27.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.27.0...@exodus/solana-api@3.27.1) (2026-01-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/solana-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [3.27.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.26.6...@exodus/solana-api@3.27.0) (2026-01-08)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "3.27.
|
|
3
|
+
"version": "3.27.1",
|
|
4
4
|
"description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@exodus/fetch": "^1.7.3",
|
|
34
34
|
"@exodus/models": "^12.0.1",
|
|
35
35
|
"@exodus/simple-retry": "^0.0.6",
|
|
36
|
-
"@exodus/solana-lib": "^3.19.
|
|
36
|
+
"@exodus/solana-lib": "^3.19.2",
|
|
37
37
|
"@exodus/solana-meta": "^2.0.2",
|
|
38
38
|
"@exodus/timer": "^1.1.1",
|
|
39
39
|
"debug": "^4.1.1",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@exodus/assets-testing": "^1.0.0",
|
|
50
50
|
"@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "62748839770af085bedc9708a2d2ae5efa4ad84b",
|
|
53
53
|
"bugs": {
|
|
54
54
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
|
|
55
55
|
},
|
package/src/api.js
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
buildRawTransaction,
|
|
8
8
|
computeBalance,
|
|
9
9
|
deserializeMetaplexMetadata,
|
|
10
|
-
EXODUS_TRUSTED_SIGNERS,
|
|
11
10
|
filterAccountsByOwner,
|
|
12
11
|
getMetadataAccount,
|
|
13
12
|
getTransactionSimulationParams,
|
|
@@ -236,7 +235,8 @@ export class Api {
|
|
|
236
235
|
if (
|
|
237
236
|
!parsedTx.ownerIsFeePayer &&
|
|
238
237
|
parsedTx.error &&
|
|
239
|
-
|
|
238
|
+
parsedTx.from === address &&
|
|
239
|
+
!parsedTx.signers.includes(address)
|
|
240
240
|
) {
|
|
241
241
|
return
|
|
242
242
|
} // skip address poisoning txs attempts.
|
package/src/tx-parser.js
CHANGED
|
@@ -25,6 +25,7 @@ export const parseTransaction = (
|
|
|
25
25
|
let { instructions, accountKeys = [] } = txDetails.transaction.message
|
|
26
26
|
const feePayerPubkey = accountKeys[0].pubkey
|
|
27
27
|
const ownerIsFeePayer = feePayerPubkey === ownerAddress
|
|
28
|
+
const signers = accountKeys.filter((key) => key.signer).map((key) => key.pubkey)
|
|
28
29
|
const txId = txDetails.transaction.signatures[0]
|
|
29
30
|
|
|
30
31
|
const getUnparsedTx = () => {
|
|
@@ -88,7 +89,7 @@ export const parseTransaction = (
|
|
|
88
89
|
slot: txDetails.slot,
|
|
89
90
|
error: !(txDetails.meta.err === null),
|
|
90
91
|
ownerIsFeePayer,
|
|
91
|
-
|
|
92
|
+
signers,
|
|
92
93
|
owner,
|
|
93
94
|
from,
|
|
94
95
|
to,
|
|
@@ -222,7 +223,7 @@ export const parseTransaction = (
|
|
|
222
223
|
type: ix.parsed.type,
|
|
223
224
|
slot: txDetails.slot,
|
|
224
225
|
ownerIsFeePayer,
|
|
225
|
-
|
|
226
|
+
signers,
|
|
226
227
|
owner: isSending ? ownerAddress : null,
|
|
227
228
|
from: isSending ? ownerAddress : source,
|
|
228
229
|
to: isSending ? destination : ownerAddress,
|
|
@@ -366,7 +367,7 @@ export const parseTransaction = (
|
|
|
366
367
|
slot: txDetails.slot,
|
|
367
368
|
error: !(txDetails.meta.err === null),
|
|
368
369
|
ownerIsFeePayer,
|
|
369
|
-
|
|
370
|
+
signers,
|
|
370
371
|
...tx,
|
|
371
372
|
}))
|
|
372
373
|
} else if (preTokenBalances && postTokenBalances) {
|
|
@@ -435,7 +436,7 @@ export const parseTransaction = (
|
|
|
435
436
|
slot: txDetails.slot,
|
|
436
437
|
error: !(txDetails.meta.err === null),
|
|
437
438
|
ownerIsFeePayer,
|
|
438
|
-
|
|
439
|
+
signers,
|
|
439
440
|
...tx,
|
|
440
441
|
}
|
|
441
442
|
}
|
package/src/ws-api.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EXODUS_TRUSTED_SIGNERS,
|
|
3
|
-
PublicKey,
|
|
4
|
-
Token,
|
|
5
|
-
TOKEN_2022_PROGRAM_ID,
|
|
6
|
-
TOKEN_PROGRAM_ID,
|
|
7
|
-
U64,
|
|
8
|
-
} from '@exodus/solana-lib'
|
|
1
|
+
import { PublicKey, Token, TOKEN_2022_PROGRAM_ID, TOKEN_PROGRAM_ID, U64 } from '@exodus/solana-lib'
|
|
9
2
|
import lodash from 'lodash'
|
|
10
3
|
|
|
11
4
|
import { Connection } from './connection.js'
|
|
@@ -160,7 +153,8 @@ export class WsApi {
|
|
|
160
153
|
if (
|
|
161
154
|
!parsedTx.ownerIsFeePayer &&
|
|
162
155
|
parsedTx.error &&
|
|
163
|
-
|
|
156
|
+
parsedTx.from === address &&
|
|
157
|
+
!parsedTx.signers.includes(address)
|
|
164
158
|
) {
|
|
165
159
|
return { logItemsByAsset: {} } // skip address poisoning txs attempts.
|
|
166
160
|
}
|