@exodus/headless 2.0.0-alpha.65 → 2.0.0-alpha.67
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 +17 -0
- package/package.json +5 -4
- package/src/atoms/base-asset-names-to-monitor.js +1 -0
- package/src/constants.js +1 -0
- package/src/features/blockchain-metadata/api.js +1 -0
- package/src/features/blockchain-metadata/plugin.js +1 -0
- package/src/features/enabled-assets/api.js +1 -0
- package/src/features/enabled-assets/plugin.js +1 -0
- package/src/features/feature-flags/api.js +1 -0
- package/src/features/feature-flags/plugin.js +1 -0
- package/src/features/fees/plugin.js +1 -0
- package/src/features/geolocation/plugin.js +1 -0
- package/src/features/locale/api.js +1 -0
- package/src/features/locale/plugin.js +1 -0
- package/src/features/nfts/api.js +1 -0
- package/src/features/nfts/plugin.js +1 -0
- package/src/features/pricing/api.js +1 -0
- package/src/features/rates/api.js +1 -0
- package/src/features/rates/plugin.js +1 -0
- package/src/features/remote-config/api.js +1 -0
- package/src/features/remote-config/plugin.js +1 -0
- package/src/index.js +6 -4
- package/src/unlock-encrypted-storage.js +2 -0
- package/src/features/fiat-balances/index.js +0 -10
- package/src/features/fiat-balances/non-dust-balance-asset-names-atom.js +0 -10
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.67](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.66...@exodus/headless@2.0.0-alpha.67) (2023-07-13)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- use restore-progress-plugin ([#2499](https://github.com/ExodusMovement/exodus-hydra/issues/2499)) ([618f6ea](https://github.com/ExodusMovement/exodus-hydra/commit/618f6ea139e8e1c702a1a7d6af020b89c68e7d1d))
|
|
11
|
+
|
|
12
|
+
## [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)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- export `fiatBalances` factory ([#2314](https://github.com/ExodusMovement/exodus-hydra/issues/2314)) ([da0dd61](https://github.com/ExodusMovement/exodus-hydra/commit/da0dd616d09188924d348f11437853bbfb438b54))
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
- add missing types ([#2423](https://github.com/ExodusMovement/exodus-hydra/issues/2423)) ([b9cbf21](https://github.com/ExodusMovement/exodus-hydra/commit/b9cbf21005ff9ff12e9a5b72ff833c37d67e848e))
|
|
21
|
+
- re-emit start after hooks ran ([#2508](https://github.com/ExodusMovement/exodus-hydra/issues/2508)) ([bcb039f](https://github.com/ExodusMovement/exodus-hydra/commit/bcb039fd9339611d9900b7f67c4ba643e6203dd0))
|
|
22
|
+
|
|
6
23
|
## [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
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.
|
|
3
|
+
"version": "2.0.0-alpha.67",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@exodus/module": "^1.0.0",
|
|
50
50
|
"@exodus/nfts": "^2.1.1",
|
|
51
51
|
"@exodus/rates-monitor": "^2.0.1",
|
|
52
|
+
"@exodus/restore-progress-tracker": "^2.0.0",
|
|
52
53
|
"@exodus/wallet": "^6.3.0",
|
|
53
54
|
"@exodus/wallet-accounts": "^10.1.0",
|
|
54
55
|
"@exodus/wallet-compatibility-modes": "^2.0.0",
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
"@exodus/kyc": "^4.0.0",
|
|
73
74
|
"@exodus/models": "^8.11.1",
|
|
74
75
|
"@exodus/personal-notes": "^3.3.0",
|
|
75
|
-
"@exodus/referrals": "^6.0
|
|
76
|
+
"@exodus/referrals": "^6.2.0",
|
|
76
77
|
"@exodus/solana-lib": "^1.3.11",
|
|
77
78
|
"@exodus/solana-meta": "^1.0.2",
|
|
78
79
|
"@exodus/storage-encrypted": "^1.1.2",
|
|
@@ -82,12 +83,12 @@
|
|
|
82
83
|
"buffer-json": "^2.0.0",
|
|
83
84
|
"deepmerge": "^4.2.2",
|
|
84
85
|
"delay": "^5.0.0",
|
|
85
|
-
"eslint": "^8.
|
|
86
|
+
"eslint": "^8.44.0",
|
|
86
87
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
87
88
|
"events": "^3.3.0",
|
|
88
89
|
"jest": "^29.1.2",
|
|
89
90
|
"nock": "^13.3.1",
|
|
90
91
|
"p-defer": "^4.0.0"
|
|
91
92
|
},
|
|
92
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "4854a1f2e047c7aa5ca5894fbb78a537e06901a3"
|
|
93
94
|
}
|
package/src/constants.js
CHANGED
package/src/features/nfts/api.js
CHANGED
package/src/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import addressProvider from '@exodus/address-provider'
|
|
|
2
2
|
import { pick } from '@exodus/basic-utils'
|
|
3
3
|
import keychain from '@exodus/keychain'
|
|
4
4
|
import marketHistory from '@exodus/market-history'
|
|
5
|
+
import restoreProgressTracker from '@exodus/restore-progress-tracker'
|
|
5
6
|
import wallet from '@exodus/wallet'
|
|
6
7
|
import walletAccounts from '@exodus/wallet-accounts'
|
|
7
8
|
|
|
@@ -14,7 +15,6 @@ import blockchainMetadata from './features/blockchain-metadata'
|
|
|
14
15
|
import enabledAssets from './features/enabled-assets'
|
|
15
16
|
import featureFlags from './features/feature-flags'
|
|
16
17
|
import fees from './features/fees'
|
|
17
|
-
import fiatBalances from './features/fiat-balances'
|
|
18
18
|
import geolocation from './features/geolocation'
|
|
19
19
|
import locale from './features/locale'
|
|
20
20
|
import nfts from './features/nfts'
|
|
@@ -35,7 +35,6 @@ const createExodus = ({ adapters, config, port }) => {
|
|
|
35
35
|
ioc.use(availableAssets())
|
|
36
36
|
ioc.use(enabledAssets())
|
|
37
37
|
ioc.use(balances())
|
|
38
|
-
ioc.use(fiatBalances())
|
|
39
38
|
ioc.use(remoteConfig())
|
|
40
39
|
ioc.use(geolocation())
|
|
41
40
|
ioc.use(marketHistory())
|
|
@@ -46,6 +45,7 @@ const createExodus = ({ adapters, config, port }) => {
|
|
|
46
45
|
ioc.use(locale())
|
|
47
46
|
ioc.use(nfts())
|
|
48
47
|
ioc.use(addressProvider({ config: config.addressProvider }))
|
|
48
|
+
ioc.use(restoreProgressTracker())
|
|
49
49
|
|
|
50
50
|
ioc.register({ definition: { id: 'port', type: 'port', factory: () => port } })
|
|
51
51
|
|
|
@@ -56,7 +56,7 @@ const createExodus = ({ adapters, config, port }) => {
|
|
|
56
56
|
|
|
57
57
|
const { application, wallet, unlockEncryptedStorage } = ioc.getByType('module')
|
|
58
58
|
|
|
59
|
-
application.
|
|
59
|
+
application.on('start', (payload) => port.emit('start', payload))
|
|
60
60
|
|
|
61
61
|
application.on('load', (args) => port.emit('load', args))
|
|
62
62
|
|
|
@@ -80,7 +80,9 @@ const createExodus = ({ adapters, config, port }) => {
|
|
|
80
80
|
|
|
81
81
|
application.on('restore', () => port.emit('restore'))
|
|
82
82
|
|
|
83
|
-
application.on('restore-completed', () =>
|
|
83
|
+
application.on('restore-completed', () => {
|
|
84
|
+
port.emit('restore-completed')
|
|
85
|
+
})
|
|
84
86
|
|
|
85
87
|
application.on('change-passphrase', () => port.emit('passphrase-changed'))
|
|
86
88
|
|
|
@@ -12,8 +12,10 @@ const createUnlockEncryptedStorage = ({ keychain }) => {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @exodus/export-default/named
|
|
15
16
|
export default {
|
|
16
17
|
id: 'unlockEncryptedStorage',
|
|
18
|
+
type: 'module',
|
|
17
19
|
factory: createUnlockEncryptedStorage,
|
|
18
20
|
dependencies: ['keychain'],
|
|
19
21
|
}
|
|
@@ -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
|