@exodus/headless 2.0.0-alpha.20 → 2.0.0-alpha.22
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 +13 -0
- package/package.json +3 -3
- package/src/dependencies/atoms.js +19 -0
- package/src/dependencies/modules.js +30 -14
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.22](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.21...@exodus/headless@2.0.0-alpha.22) (2023-05-16)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **headless:** bump geolocation ([#1642](https://github.com/ExodusMovement/exodus-hydra/issues/1642)) ([ff1d61b](https://github.com/ExodusMovement/exodus-hydra/commit/ff1d61b0b91ec54fe78f99a33ad987e3a0e54d65))
|
|
11
|
+
|
|
12
|
+
## [2.0.0-alpha.21](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.20...@exodus/headless@2.0.0-alpha.21) (2023-05-16)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- add mock address provider to headless ([#1637](https://github.com/ExodusMovement/exodus-hydra/issues/1637)) ([c331601](https://github.com/ExodusMovement/exodus-hydra/commit/c331601d7de43bab8f67c7d48905b11a54ffccad))
|
|
17
|
+
- disable kyc tests ([#1638](https://github.com/ExodusMovement/exodus-hydra/issues/1638)) ([b51cfaf](https://github.com/ExodusMovement/exodus-hydra/commit/b51cfafe2431ff99695f0fc74c9b7590f67fe427))
|
|
18
|
+
|
|
6
19
|
## [2.0.0-alpha.20](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.19...@exodus/headless@2.0.0-alpha.20) (2023-05-12)
|
|
7
20
|
|
|
8
21
|
### 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.22",
|
|
4
4
|
"description": "The headless Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@exodus/exodus-pricing-client": "^1.1.0",
|
|
40
40
|
"@exodus/feature-flags": "^2.0.0",
|
|
41
41
|
"@exodus/fetch": "^1.2.1",
|
|
42
|
-
"@exodus/geolocation": "^
|
|
42
|
+
"@exodus/geolocation": "^2.0.0",
|
|
43
43
|
"@exodus/key-identifier-provider": "^1.1.3",
|
|
44
44
|
"@exodus/keychain": "^4.0.0",
|
|
45
45
|
"@exodus/kyc": "^3.4.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"nock": "^13.3.1",
|
|
77
77
|
"p-defer": "^4.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "99a3cb0de3ed192f63dec6dd71ad2d3489698495"
|
|
80
80
|
}
|
|
@@ -109,6 +109,25 @@ const createAtomDependencies = () =>
|
|
|
109
109
|
dependencies: ['config', 'remoteConfig'],
|
|
110
110
|
},
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
definition: {
|
|
114
|
+
id: 'mockConfigAtom',
|
|
115
|
+
factory: ({ storage }) =>
|
|
116
|
+
createStorageAtomFactory({ storage })({
|
|
117
|
+
key: 'mockConfig',
|
|
118
|
+
defaultValue: {},
|
|
119
|
+
isSoleWriter: true,
|
|
120
|
+
}),
|
|
121
|
+
dependencies: ['storage'],
|
|
122
|
+
},
|
|
123
|
+
storage: { namespace: 'mockConfig' },
|
|
124
|
+
aliases: [
|
|
125
|
+
{
|
|
126
|
+
implementationId: 'unsafeStorage',
|
|
127
|
+
interfaceId: 'storage',
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
},
|
|
112
131
|
{ definition: balancesAtomDefinition },
|
|
113
132
|
{ definition: ratesAtomDefinition },
|
|
114
133
|
{ definition: geolocationAtomDefinition },
|
|
@@ -11,6 +11,7 @@ import walletCompatibilityModesDefinition from '@exodus/wallet-compatibility-mod
|
|
|
11
11
|
import balancesDefinition from '@exodus/balances/module'
|
|
12
12
|
import featureFlagsDefinition from '@exodus/feature-flags/module'
|
|
13
13
|
import createAddressesProvider from '@exodus/addresses-provider'
|
|
14
|
+
import createMockableAddressesProvider from '@exodus/addresses-provider/mock'
|
|
14
15
|
import createInMemoryAddressCache from '@exodus/addresses-provider/address-cache-memory'
|
|
15
16
|
import createExodusPricingClient from '@exodus/exodus-pricing-client'
|
|
16
17
|
import kycDefinition from '@exodus/kyc/module'
|
|
@@ -20,7 +21,7 @@ import createApplication from '../application'
|
|
|
20
21
|
import { withType } from './utils'
|
|
21
22
|
import unlockEncryptedStorageDefinition from '../unlock-encrypted-storage'
|
|
22
23
|
|
|
23
|
-
const createModuleDependencies = () =>
|
|
24
|
+
const createModuleDependencies = ({ config }) =>
|
|
24
25
|
[
|
|
25
26
|
{
|
|
26
27
|
definition: {
|
|
@@ -82,19 +83,34 @@ const createModuleDependencies = () =>
|
|
|
82
83
|
factory: createInMemoryAddressCache,
|
|
83
84
|
},
|
|
84
85
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
86
|
+
config.addressesProvider?.mockAddresses
|
|
87
|
+
? {
|
|
88
|
+
definition: {
|
|
89
|
+
id: 'addressesProvider',
|
|
90
|
+
factory: createMockableAddressesProvider,
|
|
91
|
+
dependencies: [
|
|
92
|
+
'assetsModule',
|
|
93
|
+
'keychain',
|
|
94
|
+
'keyIdentifierProvider',
|
|
95
|
+
'blockchainMetadata',
|
|
96
|
+
'addressCache',
|
|
97
|
+
'mockConfigAtom',
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
: {
|
|
102
|
+
definition: {
|
|
103
|
+
id: 'addressesProvider',
|
|
104
|
+
factory: createAddressesProvider,
|
|
105
|
+
dependencies: [
|
|
106
|
+
'assetsModule',
|
|
107
|
+
'keychain',
|
|
108
|
+
'keyIdentifierProvider',
|
|
109
|
+
'blockchainMetadata',
|
|
110
|
+
'addressCache',
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
},
|
|
98
114
|
{
|
|
99
115
|
definition: kycDefinition,
|
|
100
116
|
writesAtoms: ['kycAtom'],
|