@exodus/solana-api 3.7.0 → 3.7.2

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,24 @@
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.7.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.7.1...@exodus/solana-api@3.7.2) (2024-06-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * me monitor empty accounts error ([#2606](https://github.com/ExodusMovement/assets/issues/2606)) ([4997039](https://github.com/ExodusMovement/assets/commit/4997039a2128dd8281da8aac919075704f4a0e1f))
12
+
13
+
14
+
15
+ ## [3.7.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.7.0...@exodus/solana-api@3.7.1) (2024-06-14)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * load staking for solana when useMeMonitor === false ([#2576](https://github.com/ExodusMovement/assets/issues/2576)) ([d456333](https://github.com/ExodusMovement/assets/commit/d456333bc31618f0bb5c7bac4b0781b667671d6c))
21
+
22
+
23
+
6
24
  ## [3.7.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.6.2...@exodus/solana-api@3.7.0) (2024-06-13)
7
25
 
8
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -46,7 +46,7 @@
46
46
  "@exodus/assets-testing": "^1.0.0",
47
47
  "@solana/web3.js": "^1.91.8"
48
48
  },
49
- "gitHead": "0703f508ef7b1a34bc99f910e6220989382abc00",
49
+ "gitHead": "a2436f7a26e5d0e3baa55be3730eaf31745a82c6",
50
50
  "bugs": {
51
51
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
52
52
  },
@@ -50,7 +50,7 @@ export class MeSolanaMonitor extends SolanaMonitor {
50
50
  }
51
51
 
52
52
  isStakingEnabled() {
53
- return this.staking.enabled
53
+ return !this.useMeMonitor
54
54
  }
55
55
 
56
56
  async getTokenAccounts({ address }) {
@@ -97,7 +97,7 @@ export class MeSolanaMonitor extends SolanaMonitor {
97
97
 
98
98
  async getAccount({ address, staking, tokenAccounts }) {
99
99
  if (!this.useMeMonitor) {
100
- return super.getAccount({ address })
100
+ return super.getAccount({ address, staking, tokenAccounts })
101
101
  }
102
102
 
103
103
  const tokens = this.getTokens()
@@ -111,7 +111,7 @@ export class MeSolanaMonitor extends SolanaMonitor {
111
111
  const { balances } = await this.request('v1/wallet/balances/fungible').post(body).json()
112
112
 
113
113
  const result = {
114
- balance: null,
114
+ balance: this.asset.currency.ZERO,
115
115
  tokenBalances: {},
116
116
  }
117
117