@exodus/solana-api 3.11.0 → 3.11.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 CHANGED
@@ -3,6 +3,15 @@
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.11.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.11.0...@exodus/solana-api@3.11.1) (2024-09-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * disable unused SOL ws connection ([#3571](https://github.com/ExodusMovement/assets/issues/3571)) ([c7c790c](https://github.com/ExodusMovement/assets/commit/c7c790c0c710c3d46b5fb653713e7b4cd3c05e0c))
12
+
13
+
14
+
6
15
  ## [3.11.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.10.1...@exodus/solana-api@3.11.0) (2024-09-11)
7
16
 
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -47,7 +47,7 @@
47
47
  "@exodus/assets-testing": "^1.0.0",
48
48
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc2"
49
49
  },
50
- "gitHead": "b41d4471ed86010b8eed3e22af9503f01e5ff595",
50
+ "gitHead": "732c0d1ea9b13de6eac6edc49aa8ab866575d8d7",
51
51
  "bugs": {
52
52
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
53
53
  },
@@ -14,6 +14,7 @@ const DEFAULT_REMOTE_CONFIG = {
14
14
  const TICKS_BETWEEN_HISTORY_FETCHES = 10
15
15
  const TICKS_BETWEEN_STAKE_FETCHES = 5
16
16
  const TX_STALE_AFTER = ms('2m') // mark txs as dropped after N minutes
17
+ const FORCE_HTTP = true // use https over ws
17
18
 
18
19
  export class SolanaMonitor extends BaseMonitor {
19
20
  constructor({
@@ -49,6 +50,8 @@ export class SolanaMonitor extends BaseMonitor {
49
50
  }
50
51
 
51
52
  async startListener({ walletAccount }) {
53
+ if (FORCE_HTTP) return null
54
+
52
55
  const address = await this.aci.getReceiveAddress({
53
56
  assetName: this.asset.name,
54
57
  walletAccount,
@@ -65,6 +68,8 @@ export class SolanaMonitor extends BaseMonitor {
65
68
  }
66
69
 
67
70
  async stopListener({ walletAccount }) {
71
+ if (FORCE_HTTP) return null
72
+
68
73
  const address = await this.aci.getReceiveAddress({
69
74
  assetName: this.asset.name,
70
75
  walletAccount,