@exodus/assets-feature 5.4.0 → 5.6.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 +12 -0
- package/client/asset-client-interface.js +6 -0
- package/package.json +5 -5
- package/redux/index.d.ts +12 -0
- package/redux/initial-state.d.ts +14 -0
- package/redux/selectors/index.d.ts +78 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.6.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.5.0...@exodus/assets-feature@5.6.0) (2024-06-17)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- type declarations for redux definitions ([#7392](https://github.com/ExodusMovement/exodus-hydra/issues/7392)) ([b470c4d](https://github.com/ExodusMovement/exodus-hydra/commit/b470c4dab62e48c201b19481785ba47d45c87f6d))
|
|
11
|
+
|
|
12
|
+
## [5.5.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.4.0...@exodus/assets-feature@5.5.0) (2024-06-13)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- allow specifying multiAddressMode per compatibility mode via config ([#7360](https://github.com/ExodusMovement/exodus-hydra/issues/7360)) ([2d4fb51](https://github.com/ExodusMovement/exodus-hydra/commit/2d4fb5173e239f238e0a5ab2ffb14ae31b77783e))
|
|
17
|
+
|
|
6
18
|
## [5.4.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/assets-feature@5.3.1...@exodus/assets-feature@5.4.0) (2024-05-28)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -167,6 +167,12 @@ class AssetClientInterface {
|
|
|
167
167
|
out.gapLimit = gapLimit
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
+
const multiAddressMode =
|
|
171
|
+
this.#config?.compatibilityModeMultiAddressMode?.[walletAccountInstance.compatibilityMode]
|
|
172
|
+
if (typeof multiAddressMode === 'boolean') {
|
|
173
|
+
out.multiAddressMode = multiAddressMode
|
|
174
|
+
}
|
|
175
|
+
|
|
170
176
|
return out
|
|
171
177
|
}
|
|
172
178
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/assets-feature",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "Assets module, clients and apis",
|
|
6
6
|
"main": "index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@exodus/bitcoin-plugin": "^1.0.3",
|
|
51
51
|
"@exodus/bitcoinregtest-plugin": "^1.0.3",
|
|
52
52
|
"@exodus/bitcointestnet-plugin": "^1.0.3",
|
|
53
|
-
"@exodus/blockchain-metadata": "^15.3.
|
|
53
|
+
"@exodus/blockchain-metadata": "^15.3.3",
|
|
54
54
|
"@exodus/cardano-lib": "^2.2.0",
|
|
55
55
|
"@exodus/combined-assets-meta": "^1.2.5",
|
|
56
56
|
"@exodus/cosmos-plugin": "^1.0.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"@exodus/osmosis-plugin": "^1.0.0",
|
|
62
62
|
"@exodus/public-key-provider": "^2.2.2",
|
|
63
63
|
"@exodus/public-key-store": "^1.2.1",
|
|
64
|
-
"@exodus/redux-dependency-injection": "^3.1
|
|
64
|
+
"@exodus/redux-dependency-injection": "^3.2.1",
|
|
65
65
|
"@exodus/storage-memory": "^2.1.1",
|
|
66
|
-
"@exodus/wallet-accounts": "^16.5.
|
|
66
|
+
"@exodus/wallet-accounts": "^16.5.2",
|
|
67
67
|
"@exodus/wild-emitter": "^1.0.0",
|
|
68
68
|
"bip39": "^3.1.0",
|
|
69
69
|
"events": "^3.3.0",
|
|
70
70
|
"msw": "^2.0.0",
|
|
71
71
|
"redux": "^4.0.0"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "c50ef3c6a30e018ce1db796f4461abbe778a867d"
|
|
74
74
|
}
|
package/redux/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import initialState from './initial-state'
|
|
2
|
+
import selectorDefinitions from './selectors'
|
|
3
|
+
|
|
4
|
+
declare const assetsReduxDefinition: {
|
|
5
|
+
id: 'assets'
|
|
6
|
+
type: 'redux-module'
|
|
7
|
+
initialState: typeof initialState
|
|
8
|
+
selectorDefinitions: typeof selectorDefinitions
|
|
9
|
+
eventReducers: any
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default assetsReduxDefinition
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
type Asset = any
|
|
2
|
+
type Data = { [assetName: string]: Asset }
|
|
3
|
+
type State = any
|
|
4
|
+
|
|
5
|
+
declare const allAssetsSelectorDefinition: {
|
|
6
|
+
id: 'all'
|
|
7
|
+
resultFunction: (data: Data) => Data
|
|
8
|
+
dependencies: [{ selector: 'data' }]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const allByTickerSelectorDefinition: {
|
|
12
|
+
id: 'allByTicker'
|
|
13
|
+
resultFunction: (data: Data) => { [ticker: string]: Asset }
|
|
14
|
+
dependencies: [{ selector: 'all' }]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
type DataSelector = (state: State) => Data
|
|
18
|
+
declare const createAssetSelectorDefinition: {
|
|
19
|
+
id: 'createAssetSelector'
|
|
20
|
+
selectorFactory: (dataSelector: DataSelector) => (assetName: string) => Asset
|
|
21
|
+
dependencies: [{ selector: 'data' }]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare const createBaseAssetSelectorDefinition: {
|
|
25
|
+
id: 'createBaseAssetSelector'
|
|
26
|
+
selectorFactory: (dataSelector: DataSelector) => (assetName: string) => Asset
|
|
27
|
+
dependencies: [{ selector: 'data' }]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare const createFeeAssetSelectorDefinition: {
|
|
31
|
+
id: 'createFeeAssetSelector'
|
|
32
|
+
selectorFactory: (dataSelector: DataSelector) => (assetName: string) => Asset
|
|
33
|
+
dependencies: [{ selector: 'data' }]
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const getAssetSelectorDefinition: {
|
|
37
|
+
id: 'getAsset'
|
|
38
|
+
resultFunction: (assets: Data) => (assetName: string) => Asset
|
|
39
|
+
dependencies: [{ selector: 'all' }]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare const getAssetFromTickerSelectorDefinition: {
|
|
43
|
+
id: 'getAssetFromTicker'
|
|
44
|
+
resultFunction: (assets: { [ticker: string]: Asset }) => (ticker: string) => Asset
|
|
45
|
+
dependencies: [{ selector: 'allByTicker' }]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type MultiAddressModeDataSelector = (state: State) => { [assetName: string]: boolean }
|
|
49
|
+
declare const createMultiAddressModeSelectorDefinition: {
|
|
50
|
+
id: 'createMultiAddressMode'
|
|
51
|
+
selectorFactory: (
|
|
52
|
+
multiAddressModeDataSelector: MultiAddressModeDataSelector
|
|
53
|
+
) => (assetName: string) => (multiAddressModeData: { [assetName: string]: boolean }) => boolean
|
|
54
|
+
dependencies: [{ selector: 'multiAddressMode' }]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
type DisabledPurposesDataSelector = (state: State) => { [assetName: string]: number[] }
|
|
58
|
+
declare const createDisabledPurposesSelectorDefinition: {
|
|
59
|
+
id: 'createDisabledPurposes'
|
|
60
|
+
selectorFactory: (
|
|
61
|
+
disabledPurposesDataSelector: DisabledPurposesDataSelector
|
|
62
|
+
) => (assetName: string) => (disabledPurposesData: { [assetName: string]: number[] }) => number[]
|
|
63
|
+
dependencies: [{ selector: 'disabledPurposes' }]
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const selectorDefinitions: [
|
|
67
|
+
typeof allAssetsSelectorDefinition,
|
|
68
|
+
typeof allByTickerSelectorDefinition,
|
|
69
|
+
typeof createAssetSelectorDefinition,
|
|
70
|
+
typeof createBaseAssetSelectorDefinition,
|
|
71
|
+
typeof createFeeAssetSelectorDefinition,
|
|
72
|
+
typeof getAssetSelectorDefinition,
|
|
73
|
+
typeof getAssetFromTickerSelectorDefinition,
|
|
74
|
+
typeof createMultiAddressModeSelectorDefinition,
|
|
75
|
+
typeof createDisabledPurposesSelectorDefinition,
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
export default selectorDefinitions
|