@exodus/balances 1.0.1 → 1.1.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.
Files changed (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +4 -3
package/index.js CHANGED
@@ -101,7 +101,7 @@ class Balances extends ExodusModule {
101
101
  }
102
102
 
103
103
  #getBalancesForWalletAccount = async ({ walletAccount }) => {
104
- const assetNames = this.#assetsModule.getBaseAssetNames()
104
+ const assetNames = this.#getSupportedAssetNames()
105
105
  const balances = await Promise.all(
106
106
  assetNames.map((assetName) => this.#getBalancesForAssetSource({ assetName, walletAccount }))
107
107
  )
@@ -143,6 +143,8 @@ class Balances extends ExodusModule {
143
143
  }
144
144
 
145
145
  #isSupportedAsset = (assetName) => !this.#getAsset(assetName).isCombined
146
+ #getSupportedAssetNames = () =>
147
+ Object.keys(this.#assetsModule.getAssets()).filter(this.#isSupportedAsset)
146
148
 
147
149
  #isHistoryBasedBalanceAsset = (assetName) => {
148
150
  const asset = this.#getAsset(assetName)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/balances",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "balances",
5
5
  "author": "Exodus Movement Inc",
6
6
  "license": "UNLICENSED",
@@ -28,7 +28,8 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@exodus/atoms": "^1.0.0",
31
- "@exodus/basic-utils": "^0.7.0",
31
+ "@exodus/basic-utils": "^1.0.0",
32
32
  "@exodus/models": "^8.9.0"
33
- }
33
+ },
34
+ "gitHead": "8dc3595d4bd5750bdf649fafef7fd5d9dd345824"
34
35
  }