@exodus/assets-feature 5.11.3 → 5.12.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 +6 -0
- package/client/asset-client-interface.js +3 -2
- package/index.d.ts +1 -1
- package/module/asset-preferences.js +4 -9
- package/module/assets-module.js +1 -1
- package/module/utils.js +1 -1
- package/package.json +3 -5
- package/redux/index.d.ts +2 -2
- package/redux/selectors/index.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.12.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.11.3...@exodus/assets-feature@5.12.0) (2024-09-24)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- allow returning highest unused indexes ([#9498](https://github.com/ExodusMovement/exodus-hydra/issues/9498)) ([df90160](https://github.com/ExodusMovement/exodus-hydra/commit/df90160623e62d1118ed11b887173966d8924350))
|
|
11
|
+
|
|
6
12
|
## [5.11.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.11.2...@exodus/assets-feature@5.11.3) (2024-09-09)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @exodus/assets-feature
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pickBy, filterAsync } from '@exodus/basic-utils'
|
|
2
|
-
import lodash from 'lodash'
|
|
2
|
+
import lodash from 'lodash'
|
|
3
3
|
import assert from 'minimalistic-assert'
|
|
4
4
|
|
|
5
5
|
const { isEmpty } = lodash
|
|
@@ -313,10 +313,11 @@ class AssetClientInterface {
|
|
|
313
313
|
})
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
getUnusedAddressIndexes = async ({ assetName, walletAccount }) => {
|
|
316
|
+
getUnusedAddressIndexes = async ({ assetName, walletAccount, highestUnusedIndexes }) => {
|
|
317
317
|
return this.addressProvider.getUnusedAddressIndexes({
|
|
318
318
|
assetName,
|
|
319
319
|
walletAccount: await this.#getWalletAccount(walletAccount),
|
|
320
|
+
highestUnusedIndexes,
|
|
320
321
|
})
|
|
321
322
|
}
|
|
322
323
|
|
package/index.d.ts
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import ExodusModule from '@exodus/module' // eslint-disable-line import/no-deprecated
|
|
2
1
|
import { omit } from '@exodus/basic-utils'
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class AssetPreferences extends ExodusModule {
|
|
3
|
+
class AssetPreferences {
|
|
7
4
|
#disabledPurposesAtom
|
|
8
5
|
#multiAddressModeAtom
|
|
9
6
|
|
|
10
|
-
constructor({ disabledPurposesAtom, multiAddressModeAtom
|
|
11
|
-
super({ name: MODULE_ID, logger })
|
|
12
|
-
|
|
7
|
+
constructor({ disabledPurposesAtom, multiAddressModeAtom }) {
|
|
13
8
|
this.#disabledPurposesAtom = disabledPurposesAtom
|
|
14
9
|
this.#multiAddressModeAtom = multiAddressModeAtom
|
|
15
10
|
}
|
|
@@ -52,10 +47,10 @@ class AssetPreferences extends ExodusModule {
|
|
|
52
47
|
}
|
|
53
48
|
|
|
54
49
|
const assetPreferencesDefinition = {
|
|
55
|
-
id:
|
|
50
|
+
id: 'assetPreferences',
|
|
56
51
|
type: 'module',
|
|
57
52
|
factory: (opts) => new AssetPreferences(opts),
|
|
58
|
-
dependencies: ['disabledPurposesAtom', 'multiAddressModeAtom'
|
|
53
|
+
dependencies: ['disabledPurposesAtom', 'multiAddressModeAtom'],
|
|
59
54
|
public: true,
|
|
60
55
|
}
|
|
61
56
|
|
package/module/assets-module.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
CT_UPDATEABLE_PROPERTIES,
|
|
6
6
|
} from '@exodus/assets'
|
|
7
7
|
import { keyBy, mapValues, partition, pick, pickBy } from '@exodus/basic-utils'
|
|
8
|
-
import lodash from 'lodash'
|
|
8
|
+
import lodash from 'lodash'
|
|
9
9
|
import assert from 'minimalistic-assert'
|
|
10
10
|
|
|
11
11
|
import {
|
package/module/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Assets module, clients and apis",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@exodus/atoms": "^8.1.1",
|
|
38
38
|
"@exodus/basic-utils": "^3.0.1",
|
|
39
39
|
"@exodus/fetch": "^1.3.0",
|
|
40
|
-
"@exodus/module": "^1.2.2",
|
|
41
40
|
"@exodus/timer": "^1.1.2",
|
|
42
41
|
"lodash": "^4.17.21",
|
|
43
42
|
"minimalistic-assert": "^1.0.1",
|
|
@@ -61,15 +60,14 @@
|
|
|
61
60
|
"@exodus/models": "^12.0.1",
|
|
62
61
|
"@exodus/osmosis-plugin": "^1.0.0",
|
|
63
62
|
"@exodus/public-key-provider": "^2.5.0",
|
|
64
|
-
"@exodus/public-key-store": "^1.2.2",
|
|
65
63
|
"@exodus/redux-dependency-injection": "^4.0.3",
|
|
66
64
|
"@exodus/storage-memory": "^2.2.0",
|
|
67
|
-
"@exodus/wallet-accounts": "^16.
|
|
65
|
+
"@exodus/wallet-accounts": "^16.12.0",
|
|
68
66
|
"@exodus/wild-emitter": "^1.0.0",
|
|
69
67
|
"bip39": "^3.1.0",
|
|
70
68
|
"events": "^3.3.0",
|
|
71
69
|
"msw": "^2.0.0",
|
|
72
70
|
"redux": "^4.0.0"
|
|
73
71
|
},
|
|
74
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ffece5dfcf5af37baf7382c8413a4c1639fba228"
|
|
75
73
|
}
|
package/redux/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import initialState from './initial-state.js'
|
|
2
|
-
import selectorDefinitions from './selectors/index.js'
|
|
1
|
+
import type initialState from './initial-state.js'
|
|
2
|
+
import type selectorDefinitions from './selectors/index.js'
|
|
3
3
|
|
|
4
4
|
declare const assetsReduxDefinition: {
|
|
5
5
|
id: 'assets'
|
package/redux/selectors/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { keyBy } from '@exodus/basic-utils'
|
|
2
2
|
import { createSelector } from 'reselect'
|
|
3
3
|
|
|
4
|
-
import lodash from 'lodash'
|
|
4
|
+
import lodash from 'lodash'
|
|
5
5
|
|
|
6
|
-
const { memoize } = lodash
|
|
6
|
+
const { memoize } = lodash // eslint-disable-line @exodus/basic-utils/prefer-basic-utils
|
|
7
7
|
|
|
8
8
|
// just a semantic alias for `data`
|
|
9
9
|
const allAssetsSelectorDefinition = {
|