@exodus/headless 2.0.0-alpha.65 → 2.0.0-alpha.66

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,17 @@
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.66](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.65...@exodus/headless@2.0.0-alpha.66) (2023-07-11)
7
+
8
+ ### Features
9
+
10
+ - export `fiatBalances` factory ([#2314](https://github.com/ExodusMovement/exodus-hydra/issues/2314)) ([da0dd61](https://github.com/ExodusMovement/exodus-hydra/commit/da0dd616d09188924d348f11437853bbfb438b54))
11
+
12
+ ### Bug Fixes
13
+
14
+ - add missing types ([#2423](https://github.com/ExodusMovement/exodus-hydra/issues/2423)) ([b9cbf21](https://github.com/ExodusMovement/exodus-hydra/commit/b9cbf21005ff9ff12e9a5b72ff833c37d67e848e))
15
+ - re-emit start after hooks ran ([#2508](https://github.com/ExodusMovement/exodus-hydra/issues/2508)) ([bcb039f](https://github.com/ExodusMovement/exodus-hydra/commit/bcb039fd9339611d9900b7f67c4ba643e6203dd0))
16
+
6
17
  ## [2.0.0-alpha.65](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.64...@exodus/headless@2.0.0-alpha.65) (2023-07-07)
7
18
 
8
19
  **Note:** Version bump only for package @exodus/headless
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/headless",
3
- "version": "2.0.0-alpha.65",
3
+ "version": "2.0.0-alpha.66",
4
4
  "description": "The platform-agnostic Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "main": "src/index.js",
@@ -72,7 +72,7 @@
72
72
  "@exodus/kyc": "^4.0.0",
73
73
  "@exodus/models": "^8.11.1",
74
74
  "@exodus/personal-notes": "^3.3.0",
75
- "@exodus/referrals": "^6.0.3",
75
+ "@exodus/referrals": "^6.1.0",
76
76
  "@exodus/solana-lib": "^1.3.11",
77
77
  "@exodus/solana-meta": "^1.0.2",
78
78
  "@exodus/storage-encrypted": "^1.1.2",
@@ -82,12 +82,12 @@
82
82
  "buffer-json": "^2.0.0",
83
83
  "deepmerge": "^4.2.2",
84
84
  "delay": "^5.0.0",
85
- "eslint": "^8.33.0",
85
+ "eslint": "^8.44.0",
86
86
  "eslint-plugin-simple-import-sort": "^7.0.0",
87
87
  "events": "^3.3.0",
88
88
  "jest": "^29.1.2",
89
89
  "nock": "^13.3.1",
90
90
  "p-defer": "^4.0.0"
91
91
  },
92
- "gitHead": "924ea51750f68d9797f275c78e2e067f01bf86a5"
92
+ "gitHead": "256c443f5127255391693d9e4c8c1673ac4f0b52"
93
93
  }
package/src/index.js CHANGED
@@ -14,7 +14,6 @@ import blockchainMetadata from './features/blockchain-metadata'
14
14
  import enabledAssets from './features/enabled-assets'
15
15
  import featureFlags from './features/feature-flags'
16
16
  import fees from './features/fees'
17
- import fiatBalances from './features/fiat-balances'
18
17
  import geolocation from './features/geolocation'
19
18
  import locale from './features/locale'
20
19
  import nfts from './features/nfts'
@@ -35,7 +34,6 @@ const createExodus = ({ adapters, config, port }) => {
35
34
  ioc.use(availableAssets())
36
35
  ioc.use(enabledAssets())
37
36
  ioc.use(balances())
38
- ioc.use(fiatBalances())
39
37
  ioc.use(remoteConfig())
40
38
  ioc.use(geolocation())
41
39
  ioc.use(marketHistory())
@@ -56,7 +54,7 @@ const createExodus = ({ adapters, config, port }) => {
56
54
 
57
55
  const { application, wallet, unlockEncryptedStorage } = ioc.getByType('module')
58
56
 
59
- application.hook('start', (payload) => port.emit('start', payload))
57
+ application.on('start', (payload) => port.emit('start', payload))
60
58
 
61
59
  application.on('load', (args) => port.emit('load', args))
62
60
 
@@ -14,6 +14,7 @@ const createUnlockEncryptedStorage = ({ keychain }) => {
14
14
 
15
15
  export default {
16
16
  id: 'unlockEncryptedStorage',
17
+ type: 'module',
17
18
  factory: createUnlockEncryptedStorage,
18
19
  dependencies: ['keychain'],
19
20
  }
@@ -1,10 +0,0 @@
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
@@ -1,10 +0,0 @@
1
- import { createInMemoryAtom } from '@exodus/atoms'
2
-
3
- const nonDustBalanceAssetNamesAtomDefinition = {
4
- id: 'nonDustBalanceAssetNamesAtom',
5
- type: 'atom',
6
- factory: () => createInMemoryAtom({ defaultValue: [] }),
7
- dependencies: [],
8
- }
9
-
10
- export default nonDustBalanceAssetNamesAtomDefinition