@exodus/assets-feature 5.10.0 → 5.11.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 +10 -0
- package/client/asset-client-interface.js +4 -2
- package/client/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +9 -9
- package/module/assets-module.js +5 -3
- package/module/index.js +1 -1
- package/module/utils.js +3 -1
- package/package.json +13 -12
- package/redux/index.d.ts +2 -2
- package/redux/index.js +3 -3
- package/redux/selectors/index.js +3 -1
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.11.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.10.1...@exodus/assets-feature@5.11.0) (2024-08-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- convert assets-feature to valid esm (but not tests yet) ([#8561](https://github.com/ExodusMovement/exodus-hydra/issues/8561)) ([baed660](https://github.com/ExodusMovement/exodus-hydra/commit/baed660ce12e499d762f405cb386c5811da30a4e))
|
|
11
|
+
|
|
12
|
+
## [5.10.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.10.0...@exodus/assets-feature@5.10.1) (2024-08-16)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @exodus/assets-feature
|
|
15
|
+
|
|
6
16
|
## [5.10.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.9.0...@exodus/assets-feature@5.10.0) (2024-08-07)
|
|
7
17
|
|
|
8
18
|
### Features
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { pickBy } from '@exodus/basic-utils'
|
|
2
|
-
import
|
|
2
|
+
import lodash from 'lodash'
|
|
3
3
|
import assert from 'minimalistic-assert'
|
|
4
|
-
import { filterAsync } from '@exodus/basic-utils/
|
|
4
|
+
import { filterAsync } from '@exodus/basic-utils/src/async.js'
|
|
5
|
+
|
|
6
|
+
const { isEmpty } = lodash
|
|
5
7
|
|
|
6
8
|
class AssetClientInterface {
|
|
7
9
|
#availableAssetNamesAtom
|
package/client/index.js
CHANGED
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import assetsClientInterfaceDefinition from './client'
|
|
2
|
-
import assetsPluginDefinition from './plugin'
|
|
3
|
-
import multiAddressModeAtomDefinition from './atoms/multi-address-mode'
|
|
4
|
-
import disabledPurposesAtomDefinition from './atoms/disabled-purposes'
|
|
5
|
-
import assetsApiDefinition from './api'
|
|
6
|
-
import assetModuleDefinition from './module'
|
|
7
|
-
import customTokensMonitorDefinition from './monitor'
|
|
8
|
-
import assetPreferencesDefinition from './module/asset-preferences'
|
|
9
|
-
import assetsAtomDefinition from './atoms/assets'
|
|
1
|
+
import assetsClientInterfaceDefinition from './client/index.js'
|
|
2
|
+
import assetsPluginDefinition from './plugin/index.js'
|
|
3
|
+
import multiAddressModeAtomDefinition from './atoms/multi-address-mode.js'
|
|
4
|
+
import disabledPurposesAtomDefinition from './atoms/disabled-purposes.js'
|
|
5
|
+
import assetsApiDefinition from './api/index.js'
|
|
6
|
+
import assetModuleDefinition from './module/index.js'
|
|
7
|
+
import customTokensMonitorDefinition from './monitor/index.js'
|
|
8
|
+
import assetPreferencesDefinition from './module/asset-preferences.js'
|
|
9
|
+
import assetsAtomDefinition from './atoms/assets.js'
|
|
10
10
|
|
|
11
11
|
const assets = ({ config = {} } = {}) => {
|
|
12
12
|
return {
|
package/module/assets-module.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '@exodus/assets'
|
|
8
8
|
import { mapValues, pick, pickBy } from '@exodus/basic-utils'
|
|
9
9
|
// eslint-disable-next-line @exodus/restricted-imports/prefer-basic-utils
|
|
10
|
-
import
|
|
10
|
+
import lodash from 'lodash'
|
|
11
11
|
import assert from 'minimalistic-assert'
|
|
12
12
|
|
|
13
13
|
import {
|
|
@@ -15,10 +15,12 @@ import {
|
|
|
15
15
|
CT_FETCH_CACHE_EXPIRY,
|
|
16
16
|
CT_TIMESTAMP_KEY,
|
|
17
17
|
CT_UPDATE_INTERVAL,
|
|
18
|
-
} from './constants'
|
|
19
|
-
import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from './utils'
|
|
18
|
+
} from './constants.js'
|
|
19
|
+
import { getAssetFromAssetId, getFetchErrorMessage, isDisabledCustomToken } from './utils.js'
|
|
20
20
|
import createFetchival from '@exodus/fetch/create-fetchival'
|
|
21
21
|
|
|
22
|
+
const { get, isEmpty, keyBy, once } = lodash
|
|
23
|
+
|
|
22
24
|
const FILTERED_FIELDS = [
|
|
23
25
|
'assetId',
|
|
24
26
|
'baseAssetName',
|
package/module/index.js
CHANGED
package/module/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Assets module, clients and apis",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"main": "index.js",
|
|
7
8
|
"author": "Exodus Movement, Inc.",
|
|
8
9
|
"scripts": {
|
|
9
|
-
"test": "run -T jest",
|
|
10
|
+
"test": "run -T exodus-test --jest --esbuild",
|
|
10
11
|
"lint": "run -T eslint . --ignore-path ../../.gitignore",
|
|
11
12
|
"lint:fix": "yarn lint --fix"
|
|
12
13
|
},
|
|
@@ -32,12 +33,12 @@
|
|
|
32
33
|
"url": "git+https://github.com/ExodusMovement/exodus-hydra.git"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@exodus/assets": "^
|
|
36
|
+
"@exodus/assets": "^11.0.0",
|
|
36
37
|
"@exodus/atoms": "^8.0.0",
|
|
37
|
-
"@exodus/basic-utils": "^
|
|
38
|
+
"@exodus/basic-utils": "^3.0.1",
|
|
38
39
|
"@exodus/fetch": "^1.3.0",
|
|
39
40
|
"@exodus/module": "^1.2.2",
|
|
40
|
-
"@exodus/timer": "^1.
|
|
41
|
+
"@exodus/timer": "^1.1.2",
|
|
41
42
|
"lodash": "^4.17.21",
|
|
42
43
|
"minimalistic-assert": "^1.0.1",
|
|
43
44
|
"ms": "^2.1.3",
|
|
@@ -46,29 +47,29 @@
|
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@exodus/available-assets": "^8.4.1",
|
|
48
49
|
"@exodus/bip44-constants": "^195.0.0",
|
|
49
|
-
"@exodus/bitcoin-meta": "^
|
|
50
|
+
"@exodus/bitcoin-meta": "^2.0.0",
|
|
50
51
|
"@exodus/bitcoin-plugin": "^1.0.3",
|
|
51
52
|
"@exodus/bitcoinregtest-plugin": "^1.0.3",
|
|
52
53
|
"@exodus/bitcointestnet-plugin": "^1.0.3",
|
|
53
54
|
"@exodus/blockchain-metadata": "^15.3.5",
|
|
54
55
|
"@exodus/cardano-lib": "^2.2.0",
|
|
55
|
-
"@exodus/combined-assets-meta": "^
|
|
56
|
+
"@exodus/combined-assets-meta": "^3.0.0",
|
|
56
57
|
"@exodus/cosmos-plugin": "^1.0.0",
|
|
57
58
|
"@exodus/ethereum-lib": "^5.0.0",
|
|
58
|
-
"@exodus/ethereum-meta": "^
|
|
59
|
-
"@exodus/keychain": "^6.
|
|
60
|
-
"@exodus/models": "^
|
|
59
|
+
"@exodus/ethereum-meta": "^2.0.0",
|
|
60
|
+
"@exodus/keychain": "^6.9.1",
|
|
61
|
+
"@exodus/models": "^12.0.1",
|
|
61
62
|
"@exodus/osmosis-plugin": "^1.0.0",
|
|
62
63
|
"@exodus/public-key-provider": "^2.4.1",
|
|
63
64
|
"@exodus/public-key-store": "^1.2.2",
|
|
64
65
|
"@exodus/redux-dependency-injection": "^4.0.0",
|
|
65
66
|
"@exodus/storage-memory": "^2.1.1",
|
|
66
|
-
"@exodus/wallet-accounts": "^16.
|
|
67
|
+
"@exodus/wallet-accounts": "^16.9.0",
|
|
67
68
|
"@exodus/wild-emitter": "^1.0.0",
|
|
68
69
|
"bip39": "^3.1.0",
|
|
69
70
|
"events": "^3.3.0",
|
|
70
71
|
"msw": "^2.0.0",
|
|
71
72
|
"redux": "^4.0.0"
|
|
72
73
|
},
|
|
73
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "6a72d364b98c73b79483e114ebaf8d3e757246c9"
|
|
74
75
|
}
|
package/redux/index.d.ts
CHANGED
package/redux/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import id from './id'
|
|
2
|
-
import initialState from './initial-state'
|
|
3
|
-
import selectorDefinitions from './selectors'
|
|
1
|
+
import id from './id.js'
|
|
2
|
+
import initialState from './initial-state.js'
|
|
3
|
+
import selectorDefinitions from './selectors/index.js'
|
|
4
4
|
import { keyBy } from '@exodus/basic-utils'
|
|
5
5
|
|
|
6
6
|
const mergeAssets = (state, payload) => ({
|
package/redux/selectors/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { keyBy } from '@exodus/basic-utils'
|
|
2
2
|
import { createSelector } from 'reselect'
|
|
3
3
|
|
|
4
|
-
import
|
|
4
|
+
import lodash from 'lodash'
|
|
5
|
+
|
|
6
|
+
const { memoize } = lodash // eslint-disable-line @exodus/restricted-imports/prefer-basic-utils -- TODO: fix next time we touch this file
|
|
5
7
|
|
|
6
8
|
// just a semantic alias for `data`
|
|
7
9
|
const allAssetsSelectorDefinition = {
|