@exodus/assets-feature 1.3.0 → 1.4.1

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
+ ## [1.4.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@1.4.0...@exodus/assets-feature@1.4.1) (2023-08-30)
7
+
8
+ **Note:** Version bump only for package @exodus/assets-feature
9
+
10
+ ## [1.4.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@1.3.0...@exodus/assets-feature@1.4.0) (2023-08-25)
11
+
12
+ ### Features
13
+
14
+ - initialize assets module from ACI ([#3561](https://github.com/ExodusMovement/exodus-hydra/issues/3561)) ([8f32248](https://github.com/ExodusMovement/exodus-hydra/commit/8f322487c66a863d08eb6f1b9a8f89d058bd0f40))
15
+
6
16
  ## [1.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@1.2.0...@exodus/assets-feature@1.3.0) (2023-08-23)
7
17
 
8
18
  ### Features
@@ -25,6 +25,11 @@ class AssetClientInterface {
25
25
  this.addressProvider = addressProvider
26
26
  this.feeMonitors = feeMonitors
27
27
  this.#availableAssetNamesAtom = availableAssetNamesAtom
28
+
29
+ // TODO: remove conditional when clients updated
30
+ if (assetsModule.initialize) {
31
+ assetsModule.initialize({ assetClientInterface: this })
32
+ }
28
33
  }
29
34
 
30
35
  getTxHistory = async ({ assetName, walletAccount }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "1.3.0",
3
+ "version": "1.4.1",
4
4
  "license": "UNLICENSED",
5
5
  "description": "Assets module, clients and apis",
6
6
  "main": "index.js",
@@ -35,18 +35,18 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@exodus/assets": "^8.0.94",
38
- "@exodus/available-assets": "^4.1.0",
38
+ "@exodus/available-assets": "^5.1.1",
39
39
  "@exodus/bitcoin-meta": "^1.0.1",
40
40
  "@exodus/ethereum-meta": "^1.0.30",
41
41
  "@exodus/models": "^9.1.1",
42
- "@exodus/redux-dependency-injection": "^1.0.2",
43
- "@exodus/storage-memory": "^2.1.0",
44
- "@exodus/wallet-accounts": "^12.0.2",
42
+ "@exodus/redux-dependency-injection": "^3.0.0",
43
+ "@exodus/storage-memory": "^2.1.1",
44
+ "@exodus/wallet-accounts": "^14.0.0",
45
45
  "@exodus/wild-emitter": "^1.0.0",
46
46
  "eslint": "^8.44.0",
47
47
  "events": "^3.3.0",
48
48
  "jest": "^29.1.2",
49
49
  "redux": "^4.0.0"
50
50
  },
51
- "gitHead": "8e15dd15e20fe0e90927c2ddc3d045847453e217"
51
+ "gitHead": "6671ae7aa9740e9492555099f43f5727d977edef"
52
52
  }
package/plugin/index.js CHANGED
@@ -9,10 +9,12 @@ const createAssetsPlugin = ({ port, assetsModule }) => {
9
9
  assetsModule.on(event, callback)
10
10
  })
11
11
 
12
- const onLoad = async ({ isLocked }) => {
13
- if (!isLocked) {
14
- await assetsModule.load()
15
- }
12
+ const onStart = async () => {
13
+ await assetsModule.load()
14
+ }
15
+
16
+ const onLoad = async () => {
17
+ await assetsModule.load()
16
18
  }
17
19
 
18
20
  const onStop = () => {
@@ -21,7 +23,7 @@ const createAssetsPlugin = ({ port, assetsModule }) => {
21
23
  })
22
24
  }
23
25
 
24
- return { onLoad, onStop }
26
+ return { onStart, onLoad, onStop }
25
27
  }
26
28
 
27
29
  const assetsPluginDefinition = {