@exodus/headless 2.0.0-alpha.142 → 2.0.0-alpha.144
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 +10 -0
- package/README.md +18 -7
- package/package.json +5 -4
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.144](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.143...@exodus/headless@2.0.0-alpha.144) (2023-11-23)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add public key store to headless ([#4852](https://github.com/ExodusMovement/exodus-hydra/issues/4852)) ([c003055](https://github.com/ExodusMovement/exodus-hydra/commit/c0030555487e95aadb9bae78710d85cc1496febd))
|
|
11
|
+
|
|
12
|
+
## [2.0.0-alpha.143](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.142...@exodus/headless@2.0.0-alpha.143) (2023-11-22)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @exodus/headless
|
|
15
|
+
|
|
6
16
|
## [2.0.0-alpha.142](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.141...@exodus/headless@2.0.0-alpha.142) (2023-11-21)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @exodus/headless
|
package/README.md
CHANGED
|
@@ -197,7 +197,7 @@ Currently not used.
|
|
|
197
197
|
|
|
198
198
|
## Headless API
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
### wallet
|
|
201
201
|
|
|
202
202
|
> Type: object
|
|
203
203
|
|
|
@@ -217,7 +217,7 @@ Currently not used.
|
|
|
217
217
|
| unload | `async () => void` | Unloads UI by rehydratating data through port (`BE Only`) |
|
|
218
218
|
| changeLockTimer | `async ({ ttl: number }) => void` | Change auto unlock ttl (`BE Only`) |
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
### isMnemonicValid
|
|
221
221
|
|
|
222
222
|
> Type: function
|
|
223
223
|
|
|
@@ -228,7 +228,7 @@ Currently not used.
|
|
|
228
228
|
|
|
229
229
|
**Returns**: `boolean`
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
### walletAccounts
|
|
232
232
|
|
|
233
233
|
> Type: object
|
|
234
234
|
|
|
@@ -240,7 +240,7 @@ Currently not used.
|
|
|
240
240
|
| disable | `async (name) => void` | Disables an existing WalletAccount. |
|
|
241
241
|
| getEnabled | `async () => object` | Returns enabled walletAccounts as `{ [name]: WalletAccount }`. |
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
### blockchainMetadata
|
|
244
244
|
|
|
245
245
|
> Type: object
|
|
246
246
|
|
|
@@ -258,7 +258,7 @@ Currently not used.
|
|
|
258
258
|
| removeAccountState | `async ({ assetName: string, walletAccount: string }) => void` | Remove accountState for AssetSource. |
|
|
259
259
|
| batch | `() => Batch` | Create a batch of updates. See [blockchainMetadata](../blockchain-metadata) README for batching details. |
|
|
260
260
|
|
|
261
|
-
|
|
261
|
+
### assets
|
|
262
262
|
|
|
263
263
|
> Type: object
|
|
264
264
|
|
|
@@ -268,7 +268,7 @@ Currently not used.
|
|
|
268
268
|
| disable | `async (assetNames: string[]) => void` | Disables assets. |
|
|
269
269
|
| addAndEnableToken | `async (assetId: string, baseAssetName: string) => string` | Adds and enables a custom token. Returns the created `asset`'s `.name` |
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
### locale
|
|
272
272
|
|
|
273
273
|
> Type: object
|
|
274
274
|
|
|
@@ -277,7 +277,7 @@ Currently not used.
|
|
|
277
277
|
| setCurrency | `async (currency: string) => void` | Changes current currency. |
|
|
278
278
|
| setLanguage | `async (language: string) => void` | Changes current language. |
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
### subscribe
|
|
281
281
|
|
|
282
282
|
> Type: function
|
|
283
283
|
|
|
@@ -285,3 +285,14 @@ Currently not used.
|
|
|
285
285
|
| ----------- | ------------------------------------------ | ------------------------------------------ |
|
|
286
286
|
| subscribe | `({ type: string, payload: any }) => void` | Subscribe to receive events. |
|
|
287
287
|
| unsubscribe | `({ type: string, payload: any }) => void` | Unsubscribe handler from receiving events. |
|
|
288
|
+
|
|
289
|
+
### featureFlags
|
|
290
|
+
|
|
291
|
+
> Type: object
|
|
292
|
+
|
|
293
|
+
| Method | Type | Description |
|
|
294
|
+
| ------- | ------------------------------------- | -------------------------------------- |
|
|
295
|
+
| enable | `async (featureName: string) => void` | Enables a feature-flag gated feature. |
|
|
296
|
+
| disable | `async (featureName: string) => void` | Disables a feature-flag gated feature. |
|
|
297
|
+
|
|
298
|
+
See [more details](../../features/feature-flags/).
|
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.144",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@exodus/address-provider": "^8.2.0",
|
|
30
|
-
"@exodus/assets-feature": "^
|
|
30
|
+
"@exodus/assets-feature": "^4.0.0",
|
|
31
31
|
"@exodus/atoms": "^6.0.1",
|
|
32
32
|
"@exodus/auto-enable-assets-plugin": "^4.4.0",
|
|
33
|
-
"@exodus/available-assets": "^
|
|
33
|
+
"@exodus/available-assets": "^8.0.0",
|
|
34
34
|
"@exodus/balances": "^11.2.2",
|
|
35
35
|
"@exodus/basic-utils": "^2.0.0",
|
|
36
36
|
"@exodus/blockchain-metadata": "^15.0.0",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@exodus/locale": "^2.0.2",
|
|
48
48
|
"@exodus/module": "^1.2.2",
|
|
49
49
|
"@exodus/pricing": "^1.1.0",
|
|
50
|
+
"@exodus/public-key-store": "^1.2.0",
|
|
50
51
|
"@exodus/rates-monitor": "^4.0.2",
|
|
51
52
|
"@exodus/remote-config": "^2.3.0",
|
|
52
53
|
"@exodus/restore-progress-tracker": "^3.0.0",
|
|
@@ -98,5 +99,5 @@
|
|
|
98
99
|
"msw": "^2.0.0",
|
|
99
100
|
"p-defer": "^4.0.0"
|
|
100
101
|
},
|
|
101
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "d2ab104e06a94516a2f563cfa11fb399fb662b9c"
|
|
102
103
|
}
|
package/src/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import geolocation from '@exodus/geolocation'
|
|
|
10
10
|
import keychain from '@exodus/keychain'
|
|
11
11
|
import locale from '@exodus/locale'
|
|
12
12
|
import pricing from '@exodus/pricing'
|
|
13
|
+
import publicKeyStore from '@exodus/public-key-store'
|
|
13
14
|
import rates from '@exodus/rates-monitor'
|
|
14
15
|
import remoteConfig from '@exodus/remote-config'
|
|
15
16
|
import restoreProgressTracker from '@exodus/restore-progress-tracker'
|
|
@@ -37,6 +38,7 @@ const createExodus = ({ adapters, config, port }) => {
|
|
|
37
38
|
ioc.use(keychain(config.keychain))
|
|
38
39
|
ioc.use(locale())
|
|
39
40
|
ioc.use(pricing())
|
|
41
|
+
ioc.use(publicKeyStore())
|
|
40
42
|
ioc.use(transactionSigner())
|
|
41
43
|
ioc.use(rates())
|
|
42
44
|
ioc.use(remoteConfig())
|