@exodus/headless 2.0.0-alpha.62 → 2.0.0-alpha.63

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,23 @@
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.63](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.62...@exodus/headless@2.0.0-alpha.63) (2023-07-06)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **headless:** do not ship top-movers (#2333)
11
+ - **headless:** do not ship apy-rates (#2329)
12
+ - **headless:** do not ship kyc (#2327)
13
+
14
+ ### Features
15
+
16
+ - export `wallet` feature ([#2345](https://github.com/ExodusMovement/exodus-hydra/issues/2345)) ([3c5f636](https://github.com/ExodusMovement/exodus-hydra/commit/3c5f6363b7d158ab4b47c28475907e33587f7587))
17
+ - **headless:** do not ship ab-testing ([#2330](https://github.com/ExodusMovement/exodus-hydra/issues/2330)) ([70be5ce](https://github.com/ExodusMovement/exodus-hydra/commit/70be5ce74c5ac1e197f2f03dcb6914248f1017d6))
18
+ - **headless:** do not ship apy-rates ([#2329](https://github.com/ExodusMovement/exodus-hydra/issues/2329)) ([94a4419](https://github.com/ExodusMovement/exodus-hydra/commit/94a441968d45d593c1853a2664415a28d515b4f9))
19
+ - **headless:** do not ship crypto-news ([#2332](https://github.com/ExodusMovement/exodus-hydra/issues/2332)) ([54f5775](https://github.com/ExodusMovement/exodus-hydra/commit/54f5775b1195bab98e6dca1bb85779d613de58bc))
20
+ - **headless:** do not ship kyc ([#2327](https://github.com/ExodusMovement/exodus-hydra/issues/2327)) ([38bf19e](https://github.com/ExodusMovement/exodus-hydra/commit/38bf19edac7337b757a3444b3275f46a85394931))
21
+ - **headless:** do not ship top-movers ([#2333](https://github.com/ExodusMovement/exodus-hydra/issues/2333)) ([10adeab](https://github.com/ExodusMovement/exodus-hydra/commit/10adeab9fa3059cdc6ac68a2c803a10c6225fa5c))
22
+
6
23
  ## [2.0.0-alpha.62](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.61...@exodus/headless@2.0.0-alpha.62) (2023-07-05)
7
24
 
8
25
  **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.62",
3
+ "version": "2.0.0-alpha.63",
4
4
  "description": "The platform-agnostic Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc.",
6
6
  "main": "src/index.js",
@@ -26,9 +26,7 @@
26
26
  "test": "jest --runInBand"
27
27
  },
28
28
  "dependencies": {
29
- "@exodus/ab-testing": "^6.0.0",
30
29
  "@exodus/address-provider": "^5.0.0",
31
- "@exodus/apy-rates": "^3.0.0",
32
30
  "@exodus/atoms": "^5.2.1",
33
31
  "@exodus/auto-enable-assets-plugin": "^4.0.1",
34
32
  "@exodus/available-assets": "^2.0.2",
@@ -37,7 +35,6 @@
37
35
  "@exodus/blockchain-metadata": "^8.1.0",
38
36
  "@exodus/config": "^7.0.0",
39
37
  "@exodus/connected-origins": "^2.0.0",
40
- "@exodus/crypto-news-monitor": "^3.0.0",
41
38
  "@exodus/dependency-injection": "^2.0.0",
42
39
  "@exodus/dependency-preprocessors": "^2.8.2",
43
40
  "@exodus/enabled-assets": "^6.0.2",
@@ -49,13 +46,11 @@
49
46
  "@exodus/geolocation": "^2.0.1",
50
47
  "@exodus/key-identifier-provider": "^1.1.3",
51
48
  "@exodus/keychain": "^4.1.0",
52
- "@exodus/kyc": "^4.0.0",
53
49
  "@exodus/market-history": "^4.0.0",
54
50
  "@exodus/module": "^1.0.0",
55
51
  "@exodus/nfts": "^2.1.1",
56
52
  "@exodus/rates-monitor": "^2.0.1",
57
- "@exodus/top-movers-monitor": "^3.0.0",
58
- "@exodus/wallet": "^6.0.1",
53
+ "@exodus/wallet": "^6.3.0",
59
54
  "@exodus/wallet-accounts": "^8.0.1",
60
55
  "@exodus/wallet-compatibility-modes": "^2.0.0",
61
56
  "bip39": "^2.6.0",
@@ -64,20 +59,25 @@
64
59
  "minimalistic-assert": "^1.0.1"
65
60
  },
66
61
  "devDependencies": {
62
+ "@exodus/ab-testing": "^6.0.0",
67
63
  "@exodus/algorand-lib": "^2.0.1",
68
64
  "@exodus/algorand-meta": "^1.1.4",
65
+ "@exodus/apy-rates": "^3.0.0",
69
66
  "@exodus/bitcoin-lib": "^2.2.1",
70
67
  "@exodus/bitcoin-meta": "^1.0.0",
68
+ "@exodus/crypto-news-monitor": "^3.0.0",
71
69
  "@exodus/currency": "^2.2.0",
72
70
  "@exodus/ethereum-lib": "^2.22.2",
73
71
  "@exodus/ethereum-meta": "^1.0.23",
72
+ "@exodus/kyc": "^4.0.0",
74
73
  "@exodus/models": "^8.11.1",
75
74
  "@exodus/personal-notes": "^3.3.0",
76
- "@exodus/referrals": "^6.0.2",
75
+ "@exodus/referrals": "^6.0.3",
77
76
  "@exodus/solana-lib": "^1.3.11",
78
77
  "@exodus/solana-meta": "^1.0.2",
79
78
  "@exodus/storage-encrypted": "^1.1.2",
80
79
  "@exodus/storage-memory": "^2.1.0",
80
+ "@exodus/top-movers-monitor": "^3.0.0",
81
81
  "@exodus/wild-emitter": "^1.0.0",
82
82
  "buffer-json": "^2.0.0",
83
83
  "deepmerge": "^4.2.2",
@@ -89,5 +89,5 @@
89
89
  "nock": "^13.3.1",
90
90
  "p-defer": "^4.0.0"
91
91
  },
92
- "gitHead": "2739821618eaa4f38e65279697d7ed6619e79146"
92
+ "gitHead": "76e3b93971896e937c1fff63b01d0adbe9938b4b"
93
93
  }
package/src/index.js CHANGED
@@ -1,12 +1,8 @@
1
- import abTesting from '@exodus/ab-testing'
2
1
  import addressProvider from '@exodus/address-provider'
3
- import apyRates from '@exodus/apy-rates'
4
2
  import { pick } from '@exodus/basic-utils'
5
3
  import connectedOrigins from '@exodus/connected-origins'
6
- import cryptoNews from '@exodus/crypto-news-monitor'
7
4
  import keychain from '@exodus/keychain'
8
- import kyc from '@exodus/kyc'
9
- import topMovers from '@exodus/top-movers-monitor'
5
+ import wallet from '@exodus/wallet'
10
6
 
11
7
  import createApi from './api'
12
8
  import attachAtoms from './atoms/attach'
@@ -25,14 +21,13 @@ import nfts from './features/nfts'
25
21
  import pricing from './features/pricing'
26
22
  import rates from './features/rates'
27
23
  import remoteConfig from './features/remote-config'
28
- import wallet from './features/wallet'
29
24
  import walletAccounts from './features/wallet-accounts'
30
25
  import createIOC from './ioc'
31
26
  import attachPlugins from './plugins/attach'
32
27
 
33
28
  const createExodus = ({ adapters, config, port }) => {
34
29
  const ioc = createIOC({ adapters, config })
35
- const { headless: headlessConfig, topMoversMonitor } = config
30
+ const { headless: headlessConfig } = config
36
31
 
37
32
  ioc.use(wallet())
38
33
  ioc.use(keychain(config.keychain))
@@ -48,15 +43,10 @@ const createExodus = ({ adapters, config, port }) => {
48
43
  ioc.use(pricing())
49
44
  ioc.use(fees())
50
45
  ioc.use(rates())
51
- ioc.use(apyRates())
52
46
  ioc.use(featureFlags())
53
47
  ioc.use(locale())
54
48
  ioc.use(nfts())
55
- ioc.use(kyc())
56
49
  ioc.use(connectedOrigins())
57
- ioc.use(abTesting())
58
- ioc.use(cryptoNews())
59
- ioc.use(topMovers({ config: topMoversMonitor }))
60
50
  ioc.use(addressProvider({ config: config.addressProvider }))
61
51
 
62
52
  ioc.register({ definition: { id: 'port', type: 'port', factory: () => port } })
@@ -1,34 +0,0 @@
1
- const createWalletApi = ({ wallet, application, passphraseCache }) => {
2
- const restoreFromCurrentPhrase = async ({ passphrase } = {}) => {
3
- if (!passphrase) passphrase = await passphraseCache.get()
4
- const mnemonic = await application.getMnemonic({ passphrase })
5
- await application.import({ passphrase, mnemonic })
6
- }
7
-
8
- return {
9
- wallet: {
10
- exists: () => wallet.exists(),
11
- start: application.start,
12
- load: application.load,
13
- unload: application.unload,
14
- create: application.create,
15
- lock: application.lock,
16
- unlock: application.unlock,
17
- import: application.import,
18
- delete: application.delete,
19
- getMnemonic: application.getMnemonic,
20
- setBackedUp: application.setBackedUp,
21
- changePassphrase: application.changePassphrase,
22
- changeLockTimer: application.changeLockTimer,
23
- restoreFromCurrentPhrase,
24
- isLocked: () => wallet.isLocked(),
25
- },
26
- }
27
- }
28
-
29
- export default {
30
- id: 'walletApi',
31
- type: 'api',
32
- factory: createWalletApi,
33
- dependencies: ['wallet', 'application', 'passphraseCache'],
34
- }
@@ -1,24 +0,0 @@
1
- import walletDefinition from '@exodus/wallet/module'
2
-
3
- import walletApi from './api'
4
- import lockedAtomDefinition from './locked-atom'
5
- import restoreAtomDefinition from './restore-atom'
6
- import restorePluginDefinition from './restore-plugin'
7
-
8
- const wallet = () => {
9
- return {
10
- id: 'wallet',
11
- definitions: [
12
- {
13
- definition: { type: 'module', ...walletDefinition },
14
- writesAtoms: ['lockedAtom'],
15
- },
16
- { definition: lockedAtomDefinition },
17
- { definition: restoreAtomDefinition },
18
- { definition: restorePluginDefinition, writesAtoms: ['restoreAtom'] },
19
- { definition: walletApi },
20
- ],
21
- }
22
- }
23
-
24
- export default wallet
@@ -1,10 +0,0 @@
1
- import { createInMemoryAtom } from '@exodus/atoms'
2
-
3
- const lockedAtomDefinition = {
4
- id: 'lockedAtom',
5
- type: 'atom',
6
- factory: () => createInMemoryAtom({ defaultValue: true }),
7
- dependencies: [],
8
- }
9
-
10
- export default lockedAtomDefinition
@@ -1,10 +0,0 @@
1
- import { createInMemoryAtom } from '@exodus/atoms'
2
-
3
- const restoreAtomDefinition = {
4
- id: 'restoreAtom',
5
- type: 'atom',
6
- factory: () => createInMemoryAtom(),
7
- dependencies: [],
8
- }
9
-
10
- export default restoreAtomDefinition
@@ -1,17 +0,0 @@
1
- const restorePlugin = ({ restoreAtom }) => {
2
- return {
3
- onStart: async ({ isRestoring }) => {
4
- await restoreAtom.set(!!isRestoring)
5
- },
6
- onAssetsSynced: async () => {
7
- await restoreAtom.set(false)
8
- },
9
- }
10
- }
11
-
12
- export default {
13
- id: 'restorePlugin',
14
- type: 'plugin',
15
- factory: restorePlugin,
16
- dependencies: ['restoreAtom'],
17
- }