@exodus/headless 2.0.0-alpha.76 → 2.0.0-alpha.79
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 +28 -0
- package/package.json +5 -5
- package/src/application.js +2 -0
- package/src/index.js +2 -2
- package/src/features/balances/index.js +0 -14
- package/src/features/feature-flags/api.js +0 -15
- package/src/features/feature-flags/index.js +0 -37
- package/src/features/feature-flags/plugin.js +0 -19
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
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.79](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.78...@exodus/headless@2.0.0-alpha.79) (2023-07-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- run migrations on autoUnlock ([#2812](https://github.com/ExodusMovement/exodus-hydra/issues/2812)) ([974d7f8](https://github.com/ExodusMovement/exodus-hydra/commit/974d7f805a7f92b607327bdc8f6c27cefdfa1be1))
|
|
11
|
+
|
|
12
|
+
## [2.0.0-alpha.78](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.76...@exodus/headless@2.0.0-alpha.78) (2023-07-21)
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
- feature-flags feature (#2797)
|
|
17
|
+
- balances module (#2756)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
- balances module ([#2756](https://github.com/ExodusMovement/exodus-hydra/issues/2756)) ([de1f9d6](https://github.com/ExodusMovement/exodus-hydra/commit/de1f9d612265d598f0e4a1497577900d9f3e16b2))
|
|
22
|
+
- feature-flags feature ([#2797](https://github.com/ExodusMovement/exodus-hydra/issues/2797)) ([5137498](https://github.com/ExodusMovement/exodus-hydra/commit/51374984a45fbcc22d22d8c1da760b5afb613602))
|
|
23
|
+
|
|
24
|
+
## [2.0.0-alpha.77](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.76...@exodus/headless@2.0.0-alpha.77) (2023-07-21)
|
|
25
|
+
|
|
26
|
+
### ⚠ BREAKING CHANGES
|
|
27
|
+
|
|
28
|
+
- balances module (#2756)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- balances module ([#2756](https://github.com/ExodusMovement/exodus-hydra/issues/2756)) ([de1f9d6](https://github.com/ExodusMovement/exodus-hydra/commit/de1f9d612265d598f0e4a1497577900d9f3e16b2))
|
|
33
|
+
|
|
6
34
|
## [2.0.0-alpha.76](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.75...@exodus/headless@2.0.0-alpha.76) (2023-07-20)
|
|
7
35
|
|
|
8
36
|
### Features
|
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.79",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@exodus/atoms": "^5.2.2",
|
|
31
31
|
"@exodus/auto-enable-assets-plugin": "^4.0.1",
|
|
32
32
|
"@exodus/available-assets": "^2.0.2",
|
|
33
|
-
"@exodus/balances": "^
|
|
33
|
+
"@exodus/balances": "^7.0.0",
|
|
34
34
|
"@exodus/basic-utils": "^2.0.0",
|
|
35
35
|
"@exodus/blockchain-metadata": "^9.0.0",
|
|
36
36
|
"@exodus/config": "^7.0.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@exodus/dependency-preprocessors": "^2.8.2",
|
|
39
39
|
"@exodus/enabled-assets": "^6.0.2",
|
|
40
40
|
"@exodus/exodus-pricing-client": "^1.2.0",
|
|
41
|
-
"@exodus/feature-flags": "^
|
|
41
|
+
"@exodus/feature-flags": "^3.0.0",
|
|
42
42
|
"@exodus/fee-monitors": "^1.0.0",
|
|
43
43
|
"@exodus/fetch": "^1.2.1",
|
|
44
44
|
"@exodus/fusion": "^6.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@exodus/ethereum-meta": "^1.0.23",
|
|
72
72
|
"@exodus/kyc": "^4.0.0",
|
|
73
73
|
"@exodus/models": "^8.11.1",
|
|
74
|
-
"@exodus/nfts": "^
|
|
74
|
+
"@exodus/nfts": "^4.0.0",
|
|
75
75
|
"@exodus/personal-notes": "^3.3.0",
|
|
76
76
|
"@exodus/referrals": "^6.2.0",
|
|
77
77
|
"@exodus/solana-lib": "^1.3.11",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"nock": "^13.3.1",
|
|
91
91
|
"p-defer": "^4.0.0"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "19cd80937358ed9204883eeba0c4221f622eccb9"
|
|
94
94
|
}
|
package/src/application.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import addressProvider from '@exodus/address-provider'
|
|
2
|
+
import balances from '@exodus/balances'
|
|
2
3
|
import { pick } from '@exodus/basic-utils'
|
|
3
4
|
import blockchainMetadata from '@exodus/blockchain-metadata'
|
|
5
|
+
import featureFlags from '@exodus/feature-flags'
|
|
4
6
|
import geolocation from '@exodus/geolocation'
|
|
5
7
|
import keychain from '@exodus/keychain'
|
|
6
8
|
import marketHistory from '@exodus/market-history'
|
|
@@ -12,9 +14,7 @@ import createApi from './api'
|
|
|
12
14
|
import attachAtoms from './atoms/attach'
|
|
13
15
|
import { atomsToAttach } from './constants'
|
|
14
16
|
import availableAssets from './features/available-assets'
|
|
15
|
-
import balances from './features/balances'
|
|
16
17
|
import enabledAssets from './features/enabled-assets'
|
|
17
|
-
import featureFlags from './features/feature-flags'
|
|
18
18
|
import fees from './features/fees'
|
|
19
19
|
import locale from './features/locale'
|
|
20
20
|
import pricing from './features/pricing'
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const featureFlagsApi = ({ featureFlagAtoms }) => ({
|
|
2
|
-
features: {
|
|
3
|
-
set: (feature, value) => featureFlagAtoms[feature]?.set({ isOn: value }),
|
|
4
|
-
enable: (feature) => featureFlagAtoms[feature]?.set({ isOn: true }),
|
|
5
|
-
disable: (feature) => featureFlagAtoms[feature]?.set({ isOn: false }),
|
|
6
|
-
},
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @exodus/export-default/named
|
|
10
|
-
export default {
|
|
11
|
-
id: 'featureFlagsApi',
|
|
12
|
-
type: 'api',
|
|
13
|
-
factory: featureFlagsApi,
|
|
14
|
-
dependencies: ['featureFlagAtoms'],
|
|
15
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
featureFlagAtomsDefinition,
|
|
3
|
-
featureFlagsAtomDefinition,
|
|
4
|
-
remoteConfigFeatureFlagAtomsDefinition,
|
|
5
|
-
} from '@exodus/feature-flags/atoms'
|
|
6
|
-
import featureFlagsDefinition from '@exodus/feature-flags/module'
|
|
7
|
-
|
|
8
|
-
import featureFlagsApiDefinition from './api'
|
|
9
|
-
import featureFlagsPluginDefinition from './plugin'
|
|
10
|
-
|
|
11
|
-
const featureFlags = () => {
|
|
12
|
-
return {
|
|
13
|
-
id: 'featureFlags',
|
|
14
|
-
definitions: [
|
|
15
|
-
{
|
|
16
|
-
definition: featureFlagsDefinition,
|
|
17
|
-
writesAtoms: ['featureFlagAtoms'],
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
definition: featureFlagAtomsDefinition,
|
|
21
|
-
storage: { namespace: 'featureFlags' },
|
|
22
|
-
aliases: [
|
|
23
|
-
{
|
|
24
|
-
implementationId: 'unsafeStorage',
|
|
25
|
-
interfaceId: 'storage',
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
},
|
|
29
|
-
{ definition: featureFlagsAtomDefinition },
|
|
30
|
-
{ definition: remoteConfigFeatureFlagAtomsDefinition },
|
|
31
|
-
{ definition: featureFlagsPluginDefinition },
|
|
32
|
-
{ definition: featureFlagsApiDefinition },
|
|
33
|
-
],
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default featureFlags
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const createFeatureFlagsLifecyclePlugin = ({ featureFlags }) => {
|
|
2
|
-
const onStart = () => {
|
|
3
|
-
featureFlags.load()
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const onClear = async () => {
|
|
7
|
-
await featureFlags.clear()
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return { onStart, onClear }
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @exodus/export-default/named
|
|
14
|
-
export default {
|
|
15
|
-
id: 'featureFlagsLifecyclePlugin',
|
|
16
|
-
type: 'plugin',
|
|
17
|
-
factory: createFeatureFlagsLifecyclePlugin,
|
|
18
|
-
dependencies: ['featureFlags'],
|
|
19
|
-
}
|