@exodus/headless 2.0.0-alpha.90 → 2.0.0-alpha.93
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 +33 -0
- package/package.json +6 -5
- package/src/index.js +2 -2
- package/src/features/fees/index.js +0 -16
- package/src/features/fees/plugin.js +0 -19
- package/src/features/pricing/api.js +0 -15
- package/src/features/pricing/index.js +0 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
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.93](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.89...@exodus/headless@2.0.0-alpha.93) (2023-07-26)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
- fee-monitors feature (#2930)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- fee-monitors feature ([#2930](https://github.com/ExodusMovement/exodus-hydra/issues/2930)) ([9c0a6a0](https://github.com/ExodusMovement/exodus-hydra/commit/9c0a6a0967599fd4007c6987d0ebc539a4bbcb40))
|
|
15
|
+
- pricing feature ([#2933](https://github.com/ExodusMovement/exodus-hydra/issues/2933)) ([4b668a9](https://github.com/ExodusMovement/exodus-hydra/commit/4b668a9ee8f48abf4323379c0923a54a1d1f6c9b))
|
|
16
|
+
- upgrade blockchain-metadata in headless ([#2949](https://github.com/ExodusMovement/exodus-hydra/issues/2949)) ([1204d7f](https://github.com/ExodusMovement/exodus-hydra/commit/1204d7fcd8710ad611e3085f8ed0c95b5d28546b))
|
|
17
|
+
|
|
18
|
+
## [2.0.0-alpha.92](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.89...@exodus/headless@2.0.0-alpha.92) (2023-07-26)
|
|
19
|
+
|
|
20
|
+
### ⚠ BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
- fee-monitors feature (#2930)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
- fee-monitors feature ([#2930](https://github.com/ExodusMovement/exodus-hydra/issues/2930)) ([9c0a6a0](https://github.com/ExodusMovement/exodus-hydra/commit/9c0a6a0967599fd4007c6987d0ebc539a4bbcb40))
|
|
27
|
+
- pricing feature ([#2933](https://github.com/ExodusMovement/exodus-hydra/issues/2933)) ([4b668a9](https://github.com/ExodusMovement/exodus-hydra/commit/4b668a9ee8f48abf4323379c0923a54a1d1f6c9b))
|
|
28
|
+
|
|
29
|
+
## [2.0.0-alpha.91](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.89...@exodus/headless@2.0.0-alpha.91) (2023-07-26)
|
|
30
|
+
|
|
31
|
+
### ⚠ BREAKING CHANGES
|
|
32
|
+
|
|
33
|
+
- fee-monitors feature (#2930)
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
- fee-monitors feature ([#2930](https://github.com/ExodusMovement/exodus-hydra/issues/2930)) ([9c0a6a0](https://github.com/ExodusMovement/exodus-hydra/commit/9c0a6a0967599fd4007c6987d0ebc539a4bbcb40))
|
|
38
|
+
|
|
6
39
|
## [2.0.0-alpha.90](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.89...@exodus/headless@2.0.0-alpha.90) (2023-07-26)
|
|
7
40
|
|
|
8
41
|
### BREAKING CHANGES
|
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.93",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -32,13 +32,12 @@
|
|
|
32
32
|
"@exodus/available-assets": "^3.0.0",
|
|
33
33
|
"@exodus/balances": "^7.0.0",
|
|
34
34
|
"@exodus/basic-utils": "^2.0.0",
|
|
35
|
-
"@exodus/blockchain-metadata": "^
|
|
35
|
+
"@exodus/blockchain-metadata": "^11.0.0",
|
|
36
36
|
"@exodus/dependency-injection": "^2.0.1",
|
|
37
37
|
"@exodus/dependency-preprocessors": "^2.8.4",
|
|
38
38
|
"@exodus/enabled-assets": "^7.0.0",
|
|
39
|
-
"@exodus/exodus-pricing-client": "^1.2.0",
|
|
40
39
|
"@exodus/feature-flags": "^4.0.0",
|
|
41
|
-
"@exodus/fee-monitors": "^
|
|
40
|
+
"@exodus/fee-monitors": "^2.0.0",
|
|
42
41
|
"@exodus/fetch": "^1.2.1",
|
|
43
42
|
"@exodus/fusion": "^6.0.0",
|
|
44
43
|
"@exodus/geolocation": "^2.1.1",
|
|
@@ -46,6 +45,7 @@
|
|
|
46
45
|
"@exodus/keychain": "^4.1.0",
|
|
47
46
|
"@exodus/locale": "^1.1.0",
|
|
48
47
|
"@exodus/module": "^1.0.0",
|
|
48
|
+
"@exodus/pricing": "^1.1.0",
|
|
49
49
|
"@exodus/rates-monitor": "^3.0.0",
|
|
50
50
|
"@exodus/remote-config": "^2.0.0",
|
|
51
51
|
"@exodus/restore-progress-tracker": "^2.0.5",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"@exodus/currency": "^2.2.0",
|
|
70
70
|
"@exodus/ethereum-lib": "^2.22.2",
|
|
71
71
|
"@exodus/ethereum-meta": "^1.0.23",
|
|
72
|
+
"@exodus/exodus-pricing-client": "^1.2.0",
|
|
72
73
|
"@exodus/kyc": "^4.0.0",
|
|
73
74
|
"@exodus/market-history": "^5.0.1",
|
|
74
75
|
"@exodus/models": "^8.11.1",
|
|
@@ -91,5 +92,5 @@
|
|
|
91
92
|
"nock": "^13.3.1",
|
|
92
93
|
"p-defer": "^4.0.0"
|
|
93
94
|
},
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "80688ef57625f6eec6f957ca807c39f74e6c8250"
|
|
95
96
|
}
|
package/src/index.js
CHANGED
|
@@ -5,9 +5,11 @@ import { pick } from '@exodus/basic-utils'
|
|
|
5
5
|
import blockchainMetadata from '@exodus/blockchain-metadata'
|
|
6
6
|
import enabledAssets from '@exodus/enabled-assets'
|
|
7
7
|
import featureFlags from '@exodus/feature-flags'
|
|
8
|
+
import fees from '@exodus/fee-monitors'
|
|
8
9
|
import geolocation from '@exodus/geolocation'
|
|
9
10
|
import keychain from '@exodus/keychain'
|
|
10
11
|
import locale from '@exodus/locale'
|
|
12
|
+
import pricing from '@exodus/pricing'
|
|
11
13
|
import rates from '@exodus/rates-monitor'
|
|
12
14
|
import remoteConfig from '@exodus/remote-config'
|
|
13
15
|
import restoreProgressTracker from '@exodus/restore-progress-tracker'
|
|
@@ -17,8 +19,6 @@ import walletAccounts from '@exodus/wallet-accounts'
|
|
|
17
19
|
import createApi from './api'
|
|
18
20
|
import attachAtoms from './atoms/attach'
|
|
19
21
|
import { atomsToAttach } from './constants'
|
|
20
|
-
import fees from './features/fees'
|
|
21
|
-
import pricing from './features/pricing'
|
|
22
22
|
import createIOC from './ioc'
|
|
23
23
|
import attachPlugins from './plugins/attach'
|
|
24
24
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import feeMonitorsDefinition from '@exodus/fee-monitors/monitor'
|
|
2
|
-
|
|
3
|
-
import feesPlugin from './plugin'
|
|
4
|
-
|
|
5
|
-
const fees = () => {
|
|
6
|
-
return {
|
|
7
|
-
id: 'fees',
|
|
8
|
-
definitions: [
|
|
9
|
-
// ...
|
|
10
|
-
{ definition: feeMonitorsDefinition },
|
|
11
|
-
{ definition: feesPlugin },
|
|
12
|
-
],
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default fees
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const createFeesLifecyclePlugin = ({ feeMonitors, port }) => {
|
|
2
|
-
feeMonitors.on('fees-load', (payload) => port.emit('fees-load', payload))
|
|
3
|
-
feeMonitors.on('fees-update', (payload) => port.emit('fees-update', payload))
|
|
4
|
-
|
|
5
|
-
const onUnlock = () => {
|
|
6
|
-
feeMonitors.start()
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
return { onUnlock }
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const feesLifecyclePluginDefinition = {
|
|
13
|
-
id: 'feesLifecyclePlugin',
|
|
14
|
-
type: 'plugin',
|
|
15
|
-
factory: createFeesLifecyclePlugin,
|
|
16
|
-
dependencies: ['feeMonitors', 'port'],
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default feesLifecyclePluginDefinition
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const pricingApi = ({ pricingClient }) => ({
|
|
2
|
-
pricing: {
|
|
3
|
-
currentPrice: pricingClient.currentPrice,
|
|
4
|
-
historicalPrice: pricingClient.historicalPrice,
|
|
5
|
-
ticker: pricingClient.ticker,
|
|
6
|
-
},
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @exodus/export-default/named
|
|
10
|
-
export default {
|
|
11
|
-
id: 'pricingApi',
|
|
12
|
-
type: 'api',
|
|
13
|
-
factory: pricingApi,
|
|
14
|
-
dependencies: ['pricingClient'],
|
|
15
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createRemoteConfigAtomFactory } from '@exodus/atoms'
|
|
2
|
-
import createExodusPricingClient from '@exodus/exodus-pricing-client'
|
|
3
|
-
|
|
4
|
-
import pricingApi from './api'
|
|
5
|
-
|
|
6
|
-
const pricing = () => {
|
|
7
|
-
return {
|
|
8
|
-
id: 'pricing',
|
|
9
|
-
definitions: [
|
|
10
|
-
{
|
|
11
|
-
definition: {
|
|
12
|
-
id: 'pricingClient',
|
|
13
|
-
type: 'module',
|
|
14
|
-
factory: createExodusPricingClient,
|
|
15
|
-
dependencies: ['fetch', 'pricingServerUrlAtom'],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
definition: {
|
|
20
|
-
id: 'pricingServerUrlAtom',
|
|
21
|
-
type: 'atom',
|
|
22
|
-
factory: ({ config, remoteConfig }) =>
|
|
23
|
-
createRemoteConfigAtomFactory({ remoteConfig })({
|
|
24
|
-
path: config.pricingServerPath,
|
|
25
|
-
defaultValue: config.defaultPricingServerUrl,
|
|
26
|
-
}),
|
|
27
|
-
dependencies: ['config', 'remoteConfig'],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
{ definition: pricingApi },
|
|
31
|
-
],
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export default pricing
|