@exodus/headless 2.0.0-alpha.50 → 2.0.0-alpha.52

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,18 @@
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
+ ## [2.0.0-alpha.52](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.51...@exodus/headless@2.0.0-alpha.52) (2023-06-23)
7
+
8
+ ### Bug Fixes
9
+
10
+ - avoid wrapping with `enforceObservableRules` again ([#2088](https://github.com/ExodusMovement/exodus-hydra/issues/2088)) ([7004c19](https://github.com/ExodusMovement/exodus-hydra/commit/7004c193968c445ea0e854f521fb6f4fc7f791e0))
11
+
12
+ ## [2.0.0-alpha.51](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.50...@exodus/headless@2.0.0-alpha.51) (2023-06-21)
13
+
14
+ ### Features
15
+
16
+ - **headless:** use(balances) ([#2049](https://github.com/ExodusMovement/exodus-hydra/issues/2049)) ([a5d5b79](https://github.com/ExodusMovement/exodus-hydra/commit/a5d5b79755f1bbdd346af0bb5bc009a96b7ba85a))
17
+
6
18
  ## [2.0.0-alpha.50](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.49...@exodus/headless@2.0.0-alpha.50) (2023-06-21)
7
19
 
8
20
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/headless",
3
- "version": "2.0.0-alpha.50",
3
+ "version": "2.0.0-alpha.52",
4
4
  "description": "The headless Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc",
6
6
  "main": "src/index.js",
@@ -29,7 +29,7 @@
29
29
  "@exodus/ab-testing": "^5.1.2",
30
30
  "@exodus/address-provider": "^4.1.1",
31
31
  "@exodus/apy-rates": "^2.1.1",
32
- "@exodus/atoms": "^5.1.0",
32
+ "@exodus/atoms": "^5.2.0",
33
33
  "@exodus/auto-enable-assets-plugin": "^4.0.1",
34
34
  "@exodus/available-assets": "^2.0.2",
35
35
  "@exodus/balances": "^6.0.1",
@@ -39,7 +39,7 @@
39
39
  "@exodus/connected-origins": "^1.1.3",
40
40
  "@exodus/crypto-news-monitor": "^2.0.0",
41
41
  "@exodus/dependency-injection": "^2.0.0",
42
- "@exodus/dependency-preprocessors": "^2.8.1",
42
+ "@exodus/dependency-preprocessors": "^2.8.2",
43
43
  "@exodus/enabled-assets": "^6.0.2",
44
44
  "@exodus/exodus-pricing-client": "^1.2.0",
45
45
  "@exodus/feature-flags": "^2.1.2",
@@ -89,5 +89,5 @@
89
89
  "nock": "^13.3.1",
90
90
  "p-defer": "^4.0.0"
91
91
  },
92
- "gitHead": "99176e5d6e7a9e0d01ee9dd28d4c1aa364cfc1b4"
92
+ "gitHead": "610a4fa47f3181e0efd8ad2575199757ee49ab7e"
93
93
  }
@@ -1,17 +1,12 @@
1
1
  import { createStorageAtomFactory } from '@exodus/atoms'
2
2
  import { availableAssetNamesAtomDefinition } from '@exodus/available-assets/atoms'
3
- import { balancesAtomDefinition } from '@exodus/balances/atoms'
4
3
 
5
4
  import baseAssetNamesToMonitorAtomDefinition from '../atoms/base-asset-names-to-monitor'
6
- import nonDustBalanceAssetNamesAtomDefinition from '../atoms/non-dust-balance-asset-names-atom'
7
5
  import { withType } from './utils'
8
6
 
9
7
  const createAtomDependencies = () =>
10
8
  [
11
9
  { definition: availableAssetNamesAtomDefinition },
12
- {
13
- definition: nonDustBalanceAssetNamesAtomDefinition,
14
- },
15
10
  {
16
11
  definition: {
17
12
  id: 'mockConfigAtom',
@@ -31,7 +26,6 @@ const createAtomDependencies = () =>
31
26
  },
32
27
  ],
33
28
  },
34
- { definition: balancesAtomDefinition },
35
29
  { definition: baseAssetNamesToMonitorAtomDefinition },
36
30
  ].map(withType('atom'))
37
31
 
@@ -1,5 +1,4 @@
1
1
  import availableAssetsModuleDefinition from '@exodus/available-assets/module'
2
- import balancesDefinition from '@exodus/balances/module'
3
2
  import createKeyIdentifierProvider from '@exodus/key-identifier-provider'
4
3
  import keychainDefinition from '@exodus/keychain/module'
5
4
  import walletCompatibilityModesDefinition from '@exodus/wallet-compatibility-modes/module'
@@ -32,7 +31,6 @@ const createModuleDependencies = ({ config }) =>
32
31
  },
33
32
  { definition: unlockEncryptedStorageDefinition },
34
33
  { definition: availableAssetsModuleDefinition, writesAtoms: ['availableAssetNamesAtom'] },
35
- { definition: balancesDefinition, writesAtoms: ['balancesAtom'] },
36
34
  ].map(withType('module'))
37
35
 
38
36
  export default createModuleDependencies
package/src/index.js CHANGED
@@ -7,12 +7,14 @@ import createIOC from './ioc'
7
7
  import abTesting from './modules/ab-testing'
8
8
  import addressProvider from './modules/address-provider'
9
9
  import apyRates from './modules/apy-rates'
10
+ import balances from './modules/balances'
10
11
  import blockchainMetadata from './modules/blockchain-metadata'
11
12
  import connectedOrigins from './modules/connected-origins'
12
13
  import cryptoNews from './modules/crypto-news'
13
14
  import enabledAssets from './modules/enabled-assets'
14
15
  import featureFlags from './modules/feature-flags'
15
16
  import fees from './modules/fees'
17
+ import fiatBalances from './modules/fiat-balances'
16
18
  import geolocation from './modules/geolocation'
17
19
  import kyc from './modules/kyc'
18
20
  import locale from './modules/locale'
@@ -36,6 +38,8 @@ const createExodus = ({ adapters, config, port }) => {
36
38
  ioc.use(walletAccounts())
37
39
  ioc.use(blockchainMetadata())
38
40
  ioc.use(enabledAssets())
41
+ ioc.use(balances())
42
+ ioc.use(fiatBalances())
39
43
  ioc.use(remoteConfig())
40
44
  ioc.use(geolocation())
41
45
  ioc.use(marketHistory())
@@ -0,0 +1,14 @@
1
+ import { balancesAtomDefinition } from '@exodus/balances/atoms'
2
+ import balancesDefinition from '@exodus/balances/module'
3
+
4
+ const balances = () => {
5
+ return {
6
+ id: 'balances',
7
+ definitions: [
8
+ { definition: balancesDefinition, writesAtoms: ['balancesAtom'] },
9
+ { definition: balancesAtomDefinition },
10
+ ],
11
+ }
12
+ }
13
+
14
+ export default balances
@@ -0,0 +1,10 @@
1
+ import nonDustBalanceAssetNamesAtomDefinition from './non-dust-balance-asset-names-atom'
2
+
3
+ const fiatBalances = () => {
4
+ return {
5
+ id: 'fiatBalances',
6
+ definitions: [{ definition: nonDustBalanceAssetNamesAtomDefinition }],
7
+ }
8
+ }
9
+
10
+ export default fiatBalances