@exodus/assets-feature 5.13.1 → 5.14.0

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 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
+ ## [5.14.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.13.1...@exodus/assets-feature@5.14.0) (2024-10-08)
7
+
8
+ ### Features
9
+
10
+ - **asset-preferences:** handle monero muliple addresses ([#9701](https://github.com/ExodusMovement/exodus-hydra/issues/9701)) ([ec357ed](https://github.com/ExodusMovement/exodus-hydra/commit/ec357ed626015f86289e5a2018f34565521f2c77))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **assets-feature:** export missing type ([#9508](https://github.com/ExodusMovement/exodus-hydra/issues/9508)) ([6b7b28e](https://github.com/ExodusMovement/exodus-hydra/commit/6b7b28e7d1bb06c14278e3f06f34a914fac7d8b7))
15
+
6
16
  ## [5.13.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.13.0...@exodus/assets-feature@5.13.1) (2024-10-02)
7
17
 
8
18
  ### Bug Fixes
package/api/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  type Asset = any
2
2
 
3
- enum TokenStatus {
3
+ export enum TokenStatus {
4
4
  CURATED = 'c',
5
5
  DISABLED = 'd',
6
6
  UNVERIFIED = 'u',
@@ -17,21 +17,34 @@ const createMultiAddressModeAtom = ({ storage, fusion, logger, config }) => {
17
17
  path: `enableMultipleAddresses`,
18
18
  })
19
19
 
20
+ const moneroFusionAtom = createFusionAtom({
21
+ fusion,
22
+ path: `moneroSubaddressesEnabled`,
23
+ })
24
+
20
25
  const combinedAtom = combine({
21
26
  storage: storageAtom,
22
27
  bitcoin: bitcoinFusionAtom,
28
+ monero: moneroFusionAtom,
23
29
  })
24
30
 
25
31
  const computedAtom = compute({
26
32
  atom: combinedAtom,
27
- selector: ({ storage, bitcoin }) => omitBy({ ...storage, bitcoin }, isUndefined),
33
+ selector: ({ storage, bitcoin, monero }) =>
34
+ omitBy({ ...storage, bitcoin, monero }, isUndefined),
28
35
  })
29
36
 
30
37
  const set = async (value) => {
31
- const { bitcoin, ...rest } =
32
- typeof value === 'function' ? value(await computedAtom.get()) : value
38
+ const {
39
+ bitcoin = false,
40
+ monero = false,
41
+ ...rest
42
+ } = typeof value === 'function' ? value(await computedAtom.get()) : value
33
43
 
34
- await Promise.all([bitcoinFusionAtom.set(bitcoin || false), storageAtom.set(rest)])
44
+ // Do not write in fusion in parallel
45
+ await moneroFusionAtom.set(monero)
46
+ await bitcoinFusionAtom.set(bitcoin)
47
+ await storageAtom.set(rest)
35
48
  }
36
49
 
37
50
  const reset = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "5.13.1",
3
+ "version": "5.14.0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
6
  "type": "module",
@@ -59,17 +59,17 @@
59
59
  "@exodus/ethereum-meta": "^2.0.0",
60
60
  "@exodus/fusion-local": "^2.0.6",
61
61
  "@exodus/keychain": "^6.9.1",
62
- "@exodus/models": "^12.0.1",
62
+ "@exodus/models": "^12.1.0",
63
63
  "@exodus/osmosis-plugin": "^1.0.0",
64
- "@exodus/public-key-provider": "^2.5.0",
64
+ "@exodus/public-key-provider": "^3.0.0",
65
65
  "@exodus/redux-dependency-injection": "^4.0.3",
66
66
  "@exodus/storage-memory": "^2.2.1",
67
- "@exodus/wallet-accounts": "^16.12.0",
67
+ "@exodus/wallet-accounts": "^17.0.0",
68
68
  "@exodus/wild-emitter": "^1.0.0",
69
69
  "bip39": "^3.1.0",
70
70
  "events": "^3.3.0",
71
71
  "msw": "^2.0.0",
72
72
  "redux": "^4.0.0"
73
73
  },
74
- "gitHead": "4d9adbf1ee447a7c2cf629104a7f5fea06791b90"
74
+ "gitHead": "c973d67602c94bdc2fad1b253fc6e5e684cde7c8"
75
75
  }