@exodus/solana-api 3.16.0 → 3.17.0

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 CHANGED
@@ -3,6 +3,16 @@
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.17.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.16.0...@exodus/solana-api@3.17.0) (2025-04-09)
7
+
8
+
9
+ ### Features
10
+
11
+
12
+ * feat: demote batch of Solana tokens (#5411)
13
+
14
+
15
+
6
16
  ## [3.16.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.15.1...@exodus/solana-api@3.16.0) (2025-04-08)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.16.0",
3
+ "version": "3.17.0",
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",
@@ -43,10 +43,11 @@
43
43
  "url-join": "^4.0.0"
44
44
  },
45
45
  "devDependencies": {
46
+ "@exodus/asset": "^2.0.2",
46
47
  "@exodus/assets-testing": "^1.0.0",
47
48
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
48
49
  },
49
- "gitHead": "06bfa593f6ed1ccb1905a95ed09b151a5eabe93f",
50
+ "gitHead": "6b30927ad36b7a2e802bf9075f04b8dadc7ea0f0",
50
51
  "bugs": {
51
52
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
52
53
  },
@@ -1,3 +1,4 @@
1
+ import { fetchival } from '@exodus/fetch'
1
2
  import {
2
3
  createUnsignedTx,
3
4
  deserializeTransaction,
@@ -247,17 +248,12 @@ export const maybeAddFeePayer = async ({ unsignedTx, feePayerApiUrl, assetName }
247
248
  try {
248
249
  const unsignedTxVersionedTransaction = prepareForSigning(unsignedTx)
249
250
 
250
- const newTransactionResponse = await fetch(new URL(feePayerApiUrl).toString(), {
251
- method: 'POST',
252
- headers: {
253
- 'Content-Type': 'application/json',
254
- },
255
- body: JSON.stringify({
256
- assetName,
257
- transaction: Buffer.from(unsignedTxVersionedTransaction.serialize()).toString('base64'),
258
- }),
251
+ const { transaction: newTransactionString } = await fetchival(
252
+ new URL(feePayerApiUrl).toString()
253
+ ).post({
254
+ assetName,
255
+ transaction: Buffer.from(unsignedTxVersionedTransaction.serialize()).toString('base64'),
259
256
  })
260
- const { transaction: newTransactionString } = await newTransactionResponse.json()
261
257
 
262
258
  const newTransactionBuffer = Buffer.from(newTransactionString, 'base64')
263
259
  const newTransaction = deserializeTransaction(newTransactionBuffer)