@exodus/headless 2.0.0-alpha.6 → 2.0.0-alpha.61

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +433 -0
  2. package/README.md +133 -4
  3. package/package.json +54 -17
  4. package/src/api.js +11 -31
  5. package/src/application.js +54 -39
  6. package/src/atoms/attach.js +31 -0
  7. package/src/atoms/base-asset-names-to-monitor.js +37 -0
  8. package/src/constants.js +37 -0
  9. package/src/dependencies/atoms.js +2 -21
  10. package/src/dependencies/index.js +8 -1
  11. package/src/dependencies/modules.js +2 -16
  12. package/src/dependencies/plugins.js +7 -0
  13. package/src/dependencies/utils.js +0 -4
  14. package/src/features/available-assets/index.js +15 -0
  15. package/src/features/balances/index.js +14 -0
  16. package/src/features/blockchain-metadata/api.js +22 -0
  17. package/src/features/blockchain-metadata/index.js +20 -0
  18. package/src/features/blockchain-metadata/plugin.js +30 -0
  19. package/src/features/blockchain-metadata/utils.js +11 -0
  20. package/src/features/enabled-assets/api.js +18 -0
  21. package/src/features/enabled-assets/index.js +26 -0
  22. package/src/features/enabled-assets/plugin.js +18 -0
  23. package/src/features/feature-flags/api.js +14 -0
  24. package/src/features/feature-flags/index.js +37 -0
  25. package/src/features/feature-flags/plugin.js +18 -0
  26. package/src/features/fees/index.js +16 -0
  27. package/src/features/fees/plugin.js +17 -0
  28. package/src/features/fiat-balances/index.js +10 -0
  29. package/src/features/fiat-balances/non-dust-balance-asset-names-atom.js +10 -0
  30. package/src/features/geolocation/index.js +20 -0
  31. package/src/features/geolocation/plugin.js +14 -0
  32. package/src/features/locale/api.js +13 -0
  33. package/src/features/locale/index.js +50 -0
  34. package/src/features/locale/plugin.js +14 -0
  35. package/src/features/market-history/index.js +69 -0
  36. package/src/features/market-history/plugin.js +21 -0
  37. package/src/features/nfts/api.js +13 -0
  38. package/src/features/nfts/index.js +33 -0
  39. package/src/features/nfts/plugin.js +23 -0
  40. package/src/features/pricing/api.js +14 -0
  41. package/src/features/pricing/index.js +35 -0
  42. package/src/features/rates/api.js +12 -0
  43. package/src/features/rates/index.js +22 -0
  44. package/src/features/rates/plugin.js +17 -0
  45. package/src/features/remote-config/api.js +13 -0
  46. package/src/features/remote-config/index.js +28 -0
  47. package/src/features/remote-config/plugin.js +20 -0
  48. package/src/features/wallet/api.js +34 -0
  49. package/src/features/wallet/index.js +24 -0
  50. package/src/features/wallet/locked-atom.js +10 -0
  51. package/src/features/wallet/restore-atom.js +10 -0
  52. package/src/features/wallet/restore-plugin.js +17 -0
  53. package/src/features/wallet-accounts/api.js +16 -0
  54. package/src/features/wallet-accounts/index.js +29 -0
  55. package/src/features/wallet-accounts/plugin.js +18 -0
  56. package/src/index.js +102 -18
  57. package/src/ioc.js +40 -7
  58. package/src/plugins/attach.js +25 -0
  59. package/src/plugins/index.js +5 -0
  60. package/src/plugins/log-lifecycle.js +26 -0
  61. package/src/unlock-encrypted-storage.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,439 @@
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
+ ## [2.0.0-alpha.61](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.60...@exodus/headless@2.0.0-alpha.61) (2023-07-05)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - market-history atom (#2160)
11
+
12
+ ### Features
13
+
14
+ - market-history atom ([#2160](https://github.com/ExodusMovement/exodus-hydra/issues/2160)) ([b74364a](https://github.com/ExodusMovement/exodus-hydra/commit/b74364a47e8a51b3eea6b8cc870c731def65726b))
15
+
16
+ ## [2.0.0-alpha.60](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.59...@exodus/headless@2.0.0-alpha.60) (2023-07-04)
17
+
18
+ ### ⚠ BREAKING CHANGES
19
+
20
+ - export feature definition from connected origins (#2164)
21
+
22
+ ### Features
23
+
24
+ - **address-provider:** move mock config atom and setter ([#2235](https://github.com/ExodusMovement/exodus-hydra/issues/2235)) ([b051025](https://github.com/ExodusMovement/exodus-hydra/commit/b0510256d557246589f939b64bec7e38b17ef779))
25
+ - export feature definition from connected origins ([#2164](https://github.com/ExodusMovement/exodus-hydra/issues/2164)) ([b1fd09d](https://github.com/ExodusMovement/exodus-hydra/commit/b1fd09d7d05d2088f4e12da80a983850d91659f5))
26
+
27
+ ## [2.0.0-alpha.59](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.58...@exodus/headless@2.0.0-alpha.59) (2023-07-04)
28
+
29
+ **Note:** Version bump only for package @exodus/headless
30
+
31
+ ## [2.0.0-alpha.58](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.57...@exodus/headless@2.0.0-alpha.58) (2023-07-03)
32
+
33
+ ### Features
34
+
35
+ - add `currencies` to txs ([#2180](https://github.com/ExodusMovement/exodus-hydra/issues/2180)) ([d0439c1](https://github.com/ExodusMovement/exodus-hydra/commit/d0439c179b2b96993ff7ea8adc7b3143fdc2101d))
36
+ - memoizedKeychain module ([#2106](https://github.com/ExodusMovement/exodus-hydra/issues/2106)) ([ba92e86](https://github.com/ExodusMovement/exodus-hydra/commit/ba92e86b97eeef613d642837dc52702debd7e723))
37
+
38
+ ## [2.0.0-alpha.57](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.56...@exodus/headless@2.0.0-alpha.57) (2023-07-03)
39
+
40
+ ### Features
41
+
42
+ - log errors in application lifecycle hooks ([#2221](https://github.com/ExodusMovement/exodus-hydra/issues/2221)) ([6680b5a](https://github.com/ExodusMovement/exodus-hydra/commit/6680b5a5023376de29a02ac9864c207cc938f3b2))
43
+
44
+ ## [2.0.0-alpha.56](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.55...@exodus/headless@2.0.0-alpha.56) (2023-06-30)
45
+
46
+ ### ⚠ BREAKING CHANGES
47
+
48
+ - export feature definition from ab-testing (#2161)
49
+ - export feature definition from top-movers (#2165)
50
+ - export feature definition from kyc (#2167)
51
+ - export feature definition from crypto-news (#2163)
52
+ - export feature definition from apy-rates (#2162)
53
+ - export feature definition from address-provider (#2155)
54
+
55
+ ### Features
56
+
57
+ - export feature definition from ab-testing ([#2161](https://github.com/ExodusMovement/exodus-hydra/issues/2161)) ([e773c68](https://github.com/ExodusMovement/exodus-hydra/commit/e773c68ec6581cad508d8b7bd3d096edaa7878ef))
58
+ - export feature definition from address-provider ([#2155](https://github.com/ExodusMovement/exodus-hydra/issues/2155)) ([a4f8da3](https://github.com/ExodusMovement/exodus-hydra/commit/a4f8da39400bac23f3d84afdb56315b5a8a37567))
59
+ - export feature definition from apy-rates ([#2162](https://github.com/ExodusMovement/exodus-hydra/issues/2162)) ([693a953](https://github.com/ExodusMovement/exodus-hydra/commit/693a953cad357b60aabeb66edc95a60bacbaf6b5))
60
+ - export feature definition from crypto-news ([#2163](https://github.com/ExodusMovement/exodus-hydra/issues/2163)) ([fd46794](https://github.com/ExodusMovement/exodus-hydra/commit/fd46794de45fed3ed574fb47efe6f8256dceea4f))
61
+ - export feature definition from kyc ([#2167](https://github.com/ExodusMovement/exodus-hydra/issues/2167)) ([b655a26](https://github.com/ExodusMovement/exodus-hydra/commit/b655a26539decfd3fe4f219505eaace2c26a2e97))
62
+ - export feature definition from top-movers ([#2165](https://github.com/ExodusMovement/exodus-hydra/issues/2165)) ([b9183fa](https://github.com/ExodusMovement/exodus-hydra/commit/b9183fae78b521f0275d2fcab42ea6f1790aca94))
63
+
64
+ ### Bug Fixes
65
+
66
+ - delete backups when restart due to forgot passphrase ([#2144](https://github.com/ExodusMovement/exodus-hydra/issues/2144)) ([ba48906](https://github.com/ExodusMovement/exodus-hydra/commit/ba4890613b08f77986c74a4870fe29870f481233))
67
+
68
+ ## [2.0.0-alpha.55](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.54...@exodus/headless@2.0.0-alpha.55) (2023-06-28)
69
+
70
+ ### Bug Fixes
71
+
72
+ - make restart a lifecycle hook ([#2136](https://github.com/ExodusMovement/exodus-hydra/issues/2136)) ([dbb4269](https://github.com/ExodusMovement/exodus-hydra/commit/dbb42697fc09fb4a18a1918fa83c379171e2e7e3))
73
+
74
+ ## [2.0.0-alpha.54](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.53...@exodus/headless@2.0.0-alpha.54) (2023-06-23)
75
+
76
+ ### ⚠ BREAKING CHANGES
77
+
78
+ - make personal-notes opt-in (#2102)
79
+
80
+ ### Features
81
+
82
+ - make personal-notes opt-in ([#2102](https://github.com/ExodusMovement/exodus-hydra/issues/2102)) ([324b64e](https://github.com/ExodusMovement/exodus-hydra/commit/324b64e616025ac7bd095028599736c0bfa97f74))
83
+
84
+ ## [2.0.0-alpha.53](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.52...@exodus/headless@2.0.0-alpha.53) (2023-06-23)
85
+
86
+ **Note:** Version bump only for package @exodus/headless
87
+
88
+ ## [2.0.0-alpha.52](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.51...@exodus/headless@2.0.0-alpha.52) (2023-06-23)
89
+
90
+ ### Bug Fixes
91
+
92
+ - avoid wrapping with `enforceObservableRules` again ([#2088](https://github.com/ExodusMovement/exodus-hydra/issues/2088)) ([7004c19](https://github.com/ExodusMovement/exodus-hydra/commit/7004c193968c445ea0e854f521fb6f4fc7f791e0))
93
+
94
+ ## [2.0.0-alpha.51](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.50...@exodus/headless@2.0.0-alpha.51) (2023-06-21)
95
+
96
+ ### Features
97
+
98
+ - **headless:** use(balances) ([#2049](https://github.com/ExodusMovement/exodus-hydra/issues/2049)) ([a5d5b79](https://github.com/ExodusMovement/exodus-hydra/commit/a5d5b79755f1bbdd346af0bb5bc009a96b7ba85a))
99
+
100
+ ## [2.0.0-alpha.50](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.49...@exodus/headless@2.0.0-alpha.50) (2023-06-21)
101
+
102
+ ### Features
103
+
104
+ - **headless:** export features api ([#2051](https://github.com/ExodusMovement/exodus-hydra/issues/2051)) ([71bfc37](https://github.com/ExodusMovement/exodus-hydra/commit/71bfc37d70484d90c99170ab9da406c8be02389b))
105
+ - **headless:** use(enabledAssets) ([#2047](https://github.com/ExodusMovement/exodus-hydra/issues/2047)) ([c2c7572](https://github.com/ExodusMovement/exodus-hydra/commit/c2c7572d290e908b2c84a5558e59f02f4182e3ae))
106
+ - **headless:** use(pricing) ([#2050](https://github.com/ExodusMovement/exodus-hydra/issues/2050)) ([1db7c9d](https://github.com/ExodusMovement/exodus-hydra/commit/1db7c9df72300f49a09e848c69747202f03c39ae))
107
+
108
+ ### Performance Improvements
109
+
110
+ - prevent writing same value to atoms ([#2078](https://github.com/ExodusMovement/exodus-hydra/issues/2078)) ([bd901b4](https://github.com/ExodusMovement/exodus-hydra/commit/bd901b40a10c8983f2fe6fbb10c9dc8a81ccbd60))
111
+
112
+ ## [2.0.0-alpha.49](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.48...@exodus/headless@2.0.0-alpha.49) (2023-06-21)
113
+
114
+ ### ⚠ BREAKING CHANGES
115
+
116
+ - rename fusionAtomFactory => createFusionAtom (#2042)
117
+
118
+ ### Features
119
+
120
+ - rename fusionAtomFactory => createFusionAtom ([#2042](https://github.com/ExodusMovement/exodus-hydra/issues/2042)) ([9db4d3f](https://github.com/ExodusMovement/exodus-hydra/commit/9db4d3f1367a16aeaa36e60a49352d36d3189cca))
121
+
122
+ ## [2.0.0-alpha.48](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.47...@exodus/headless@2.0.0-alpha.48) (2023-06-20)
123
+
124
+ ### Bug Fixes
125
+
126
+ - declare atoms in writesAtoms ([#2006](https://github.com/ExodusMovement/exodus-hydra/issues/2006)) ([02b7227](https://github.com/ExodusMovement/exodus-hydra/commit/02b72271116b4e3b034b7f889b0dc333fda17413))
127
+
128
+ ## [2.0.0-alpha.47](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.46...@exodus/headless@2.0.0-alpha.47) (2023-06-18)
129
+
130
+ ### Features
131
+
132
+ - use(wallet) ([#1994](https://github.com/ExodusMovement/exodus-hydra/issues/1994)) ([6686257](https://github.com/ExodusMovement/exodus-hydra/commit/668625744087ee77068fc64671ce80ea0c3c62a4))
133
+
134
+ ## [2.0.0-alpha.46](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.45...@exodus/headless@2.0.0-alpha.46) (2023-06-18)
135
+
136
+ ### Features
137
+
138
+ - use(featureFlags, apyRates, fees, addressProvider) ([#1993](https://github.com/ExodusMovement/exodus-hydra/issues/1993)) ([5aba49b](https://github.com/ExodusMovement/exodus-hydra/commit/5aba49bbea24f229900966c0abde5eb8932ac861))
139
+
140
+ ## [2.0.0-alpha.45](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.44...@exodus/headless@2.0.0-alpha.45) (2023-06-18)
141
+
142
+ ### Features
143
+
144
+ - use(geolocation, marketHistory, topMovers, rates) ([#1992](https://github.com/ExodusMovement/exodus-hydra/issues/1992)) ([2e8d634](https://github.com/ExodusMovement/exodus-hydra/commit/2e8d63426421ffcbec84a9b6fbc83eb913b47eba))
145
+
146
+ ## [2.0.0-alpha.44](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.43...@exodus/headless@2.0.0-alpha.44) (2023-06-18)
147
+
148
+ ### Features
149
+
150
+ - use(personalNotes, blockchainMetadata, remoteConfig, cryptoNews) ([#1991](https://github.com/ExodusMovement/exodus-hydra/issues/1991)) ([ccaaa4a](https://github.com/ExodusMovement/exodus-hydra/commit/ccaaa4ac44f8bed9de99418c394c40478eaeae69))
151
+ - validate type field on ioc.use() ([#1974](https://github.com/ExodusMovement/exodus-hydra/issues/1974)) ([b234c82](https://github.com/ExodusMovement/exodus-hydra/commit/b234c82a6f0550d34273590250b307a965b11295))
152
+
153
+ ## [2.0.0-alpha.43](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.42...@exodus/headless@2.0.0-alpha.43) (2023-06-16)
154
+
155
+ ### Features
156
+
157
+ - **headless:** integrate ab-testing module ([#1972](https://github.com/ExodusMovement/exodus-hydra/issues/1972)) ([6c063b4](https://github.com/ExodusMovement/exodus-hydra/commit/6c063b4d4f04d08c36f843577822e7d53f002d4f))
158
+
159
+ ## [2.0.0-alpha.42](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.41...@exodus/headless@2.0.0-alpha.42) (2023-06-15)
160
+
161
+ ### Features
162
+
163
+ - .use poc using with kyc and referrals ([#1778](https://github.com/ExodusMovement/exodus-hydra/issues/1778)) ([7f66163](https://github.com/ExodusMovement/exodus-hydra/commit/7f66163364517fe555de220ad3cafd86c7c68516))
164
+ - **headless:** use(nfts) ([#1963](https://github.com/ExodusMovement/exodus-hydra/issues/1963)) ([47ed141](https://github.com/ExodusMovement/exodus-hydra/commit/47ed141b93291938d8790a8697b55c9c9af230bd))
165
+ - use() more modules ([#1953](https://github.com/ExodusMovement/exodus-hydra/issues/1953)) ([4f0d987](https://github.com/ExodusMovement/exodus-hydra/commit/4f0d987e2b3c01829e11b430988168754ebce8f6))
166
+
167
+ ### Bug Fixes
168
+
169
+ - new use modules api export ([#1958](https://github.com/ExodusMovement/exodus-hydra/issues/1958)) ([c7e87eb](https://github.com/ExodusMovement/exodus-hydra/commit/c7e87eb01f5fb79fcc3454a11485dadf638f88ef))
170
+ - remove duplicated kyc api ([#1955](https://github.com/ExodusMovement/exodus-hydra/issues/1955)) ([3357590](https://github.com/ExodusMovement/exodus-hydra/commit/33575908517230b5a187f0ac3b6e32e75982abdb))
171
+ - require plugin methods to be declared correctly ([#1945](https://github.com/ExodusMovement/exodus-hydra/issues/1945)) ([e7feae6](https://github.com/ExodusMovement/exodus-hydra/commit/e7feae6cfaa3cd0e9f9d074f4b5306a264d16b74))
172
+
173
+ ## [2.0.0-alpha.41](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.40...@exodus/headless@2.0.0-alpha.41) (2023-06-15)
174
+
175
+ ### Features
176
+
177
+ - log atom id in dev mode enhancers ([#1947](https://github.com/ExodusMovement/exodus-hydra/issues/1947)) ([1057ee9](https://github.com/ExodusMovement/exodus-hydra/commit/1057ee91cac678e60df3640641b0c3030f6dbaf7))
178
+
179
+ ## [2.0.0-alpha.40](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.39...@exodus/headless@2.0.0-alpha.40) (2023-06-14)
180
+
181
+ ### Bug Fixes
182
+
183
+ - bump feature-flags dep in headless ([#1942](https://github.com/ExodusMovement/exodus-hydra/issues/1942)) ([4598c23](https://github.com/ExodusMovement/exodus-hydra/commit/4598c23399b2ee44f9fb7259a58a751a8c03c428))
184
+
185
+ ## [2.0.0-alpha.39](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.38...@exodus/headless@2.0.0-alpha.39) (2023-06-14)
186
+
187
+ **Note:** Version bump only for package @exodus/headless
188
+
189
+ ## [2.0.0-alpha.38](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.37...@exodus/headless@2.0.0-alpha.38) (2023-06-14)
190
+
191
+ ### ⚠ BREAKING CHANGES
192
+
193
+ - move start out of resolve (#1916)
194
+
195
+ ### Features
196
+
197
+ - clear personal notes as other modules ([#1922](https://github.com/ExodusMovement/exodus-hydra/issues/1922)) ([9324208](https://github.com/ExodusMovement/exodus-hydra/commit/9324208251f695a016f088bd0138a7ea5c838afa))
198
+ - move start out of resolve ([#1916](https://github.com/ExodusMovement/exodus-hydra/issues/1916)) ([85d53fd](https://github.com/ExodusMovement/exodus-hydra/commit/85d53fd547e6eebda8d8a992dffe5a21468baeab))
199
+
200
+ ## [2.0.0-alpha.37](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.36...@exodus/headless@2.0.0-alpha.37) (2023-06-09)
201
+
202
+ ### Features
203
+
204
+ - **headless:** stop clearing atoms on attach ([#1854](https://github.com/ExodusMovement/exodus-hydra/issues/1854)) ([16a7f23](https://github.com/ExodusMovement/exodus-hydra/commit/16a7f23fccbc2355810fa1ca837886922056c6f0))
205
+
206
+ ## [2.0.0-alpha.36](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.35...@exodus/headless@2.0.0-alpha.36) (2023-06-09)
207
+
208
+ **Note:** Version bump only for package @exodus/headless
209
+
210
+ ## [2.0.0-alpha.35](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.34...@exodus/headless@2.0.0-alpha.35) (2023-06-08)
211
+
212
+ ### Bug Fixes
213
+
214
+ - add handler to clear connected-origins ([#1860](https://github.com/ExodusMovement/exodus-hydra/issues/1860)) ([0f294b4](https://github.com/ExodusMovement/exodus-hydra/commit/0f294b492f43ace082b5fb72bb5d0b9fa8d14351))
215
+ - passphraseCache is not an adapter ([#1744](https://github.com/ExodusMovement/exodus-hydra/issues/1744)) ([e382e7a](https://github.com/ExodusMovement/exodus-hydra/commit/e382e7a9ec95b4fb35231edb723cb25ceac07cc1))
216
+
217
+ ## [2.0.0-alpha.34](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.33...@exodus/headless@2.0.0-alpha.34) (2023-06-07)
218
+
219
+ ### Features
220
+
221
+ - migrate nfts module and monitor to headless ([#1812](https://github.com/ExodusMovement/exodus-hydra/issues/1812)) ([55e3ac2](https://github.com/ExodusMovement/exodus-hydra/commit/55e3ac2755ba69339c331cb440e89458b039f128))
222
+
223
+ ## [2.0.0-alpha.33](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.32...@exodus/headless@2.0.0-alpha.33) (2023-06-07)
224
+
225
+ ### Features
226
+
227
+ - add apy rates monitor to headless ([#1830](https://github.com/ExodusMovement/exodus-hydra/issues/1830)) ([6040f4e](https://github.com/ExodusMovement/exodus-hydra/commit/6040f4eacc4b0ea29a25a28c21f6d4c07c833dd4))
228
+
229
+ ## [2.0.0-alpha.32](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.31...@exodus/headless@2.0.0-alpha.32) (2023-06-06)
230
+
231
+ ### Features
232
+
233
+ - add auto enable assets to headless ([#1803](https://github.com/ExodusMovement/exodus-hydra/issues/1803)) ([11996d9](https://github.com/ExodusMovement/exodus-hydra/commit/11996d9a9b23a5d2d1ec1aa30b5e41d05e66ed6a))
234
+
235
+ ## [2.0.0-alpha.31](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.30...@exodus/headless@2.0.0-alpha.31) (2023-06-05)
236
+
237
+ ### ⚠ BREAKING CHANGES
238
+
239
+ - reuse dependency preprocessor with clients (#1779)
240
+
241
+ ### Features
242
+
243
+ - reuse dependency preprocessor with clients ([#1779](https://github.com/ExodusMovement/exodus-hydra/issues/1779)) ([ac7a402](https://github.com/ExodusMovement/exodus-hydra/commit/ac7a40233a572d299ee033fd64225a3d9d6a8b98))
244
+
245
+ ## [2.0.0-alpha.30](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.29...@exodus/headless@2.0.0-alpha.30) (2023-06-01)
246
+
247
+ ### Features
248
+
249
+ - port base asset names to monitor atom changes to headless ([#1756](https://github.com/ExodusMovement/exodus-hydra/issues/1756)) ([edebc00](https://github.com/ExodusMovement/exodus-hydra/commit/edebc00f7264b7450cc18919b472c33b1f180797))
250
+
251
+ ## [2.0.0-alpha.29](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.28...@exodus/headless@2.0.0-alpha.29) (2023-06-01)
252
+
253
+ ### Features
254
+
255
+ - allow replacing existing dependencies ([#1753](https://github.com/ExodusMovement/exodus-hydra/issues/1753)) ([df6060d](https://github.com/ExodusMovement/exodus-hydra/commit/df6060d09f67dac21f3994dee04223567c921d0a))
256
+
257
+ ## [2.0.0-alpha.28](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.27...@exodus/headless@2.0.0-alpha.28) (2023-05-31)
258
+
259
+ ### Features
260
+
261
+ - add crypto news monitor to headless ([#1750](https://github.com/ExodusMovement/exodus-hydra/issues/1750)) ([64d46a3](https://github.com/ExodusMovement/exodus-hydra/commit/64d46a3d95c3b34d504b0b7128961df1427b6853))
262
+
263
+ ## [2.0.0-alpha.27](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.26...@exodus/headless@2.0.0-alpha.27) (2023-05-31)
264
+
265
+ ### Features
266
+
267
+ - integrate top-movers monitor into headless ([#1743](https://github.com/ExodusMovement/exodus-hydra/issues/1743)) ([05c4b22](https://github.com/ExodusMovement/exodus-hydra/commit/05c4b22e69e823563d81bfe7b30a2d21574d0c45))
268
+
269
+ ## [2.0.0-alpha.26](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.25...@exodus/headless@2.0.0-alpha.26) (2023-05-30)
270
+
271
+ ### Features
272
+
273
+ - integrate feeMonitors into headless ([#1732](https://github.com/ExodusMovement/exodus-hydra/issues/1732)) ([5a4b9b4](https://github.com/ExodusMovement/exodus-hydra/commit/5a4b9b4e2e7b70ac550775860a3bf5474e21a4d0))
274
+
275
+ ## [2.0.0-alpha.25](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.24...@exodus/headless@2.0.0-alpha.25) (2023-05-26)
276
+
277
+ ### Features
278
+
279
+ - migrate connected origins to headless ([#1702](https://github.com/ExodusMovement/exodus-hydra/issues/1702)) ([7f6678e](https://github.com/ExodusMovement/exodus-hydra/commit/7f6678eabc5a66dbf11002f021bb700bec3d32f3))
280
+
281
+ ## [2.0.0-alpha.24](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.23...@exodus/headless@2.0.0-alpha.24) (2023-05-26)
282
+
283
+ ### Features
284
+
285
+ - emit extra payload on application create hook ([#1709](https://github.com/ExodusMovement/exodus-hydra/issues/1709)) ([23412f6](https://github.com/ExodusMovement/exodus-hydra/commit/23412f603cb36c1249d0ed8248a1e44742d5dac9))
286
+
287
+ ## [2.0.0-alpha.23](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.22...@exodus/headless@2.0.0-alpha.23) (2023-05-24)
288
+
289
+ ### Features
290
+
291
+ - add personal notes to headless ([#1676](https://github.com/ExodusMovement/exodus-hydra/issues/1676)) ([c658211](https://github.com/ExodusMovement/exodus-hydra/commit/c6582113b56953edbf68fd0f4d29f4ee802e8bf5))
292
+
293
+ ### Bug Fixes
294
+
295
+ - handle market-history-new-assets ([#1657](https://github.com/ExodusMovement/exodus-hydra/issues/1657)) ([89ff868](https://github.com/ExodusMovement/exodus-hydra/commit/89ff868ade7def9dc1ae99555f069e1a0cfeacba))
296
+ - start geolocation at start ([#1669](https://github.com/ExodusMovement/exodus-hydra/issues/1669)) ([ecfd0f3](https://github.com/ExodusMovement/exodus-hydra/commit/ecfd0f3a74ebf2ed5bca53c67c55ec304df91f4c))
297
+
298
+ ## [2.0.0-alpha.22](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.21...@exodus/headless@2.0.0-alpha.22) (2023-05-16)
299
+
300
+ ### Features
301
+
302
+ - **headless:** bump geolocation ([#1642](https://github.com/ExodusMovement/exodus-hydra/issues/1642)) ([ff1d61b](https://github.com/ExodusMovement/exodus-hydra/commit/ff1d61b0b91ec54fe78f99a33ad987e3a0e54d65))
303
+
304
+ ## [2.0.0-alpha.21](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.20...@exodus/headless@2.0.0-alpha.21) (2023-05-16)
305
+
306
+ ### Features
307
+
308
+ - add mock address provider to headless ([#1637](https://github.com/ExodusMovement/exodus-hydra/issues/1637)) ([c331601](https://github.com/ExodusMovement/exodus-hydra/commit/c331601d7de43bab8f67c7d48905b11a54ffccad))
309
+ - disable kyc tests ([#1638](https://github.com/ExodusMovement/exodus-hydra/issues/1638)) ([b51cfaf](https://github.com/ExodusMovement/exodus-hydra/commit/b51cfafe2431ff99695f0fc74c9b7590f67fe427))
310
+
311
+ ## [2.0.0-alpha.20](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.19...@exodus/headless@2.0.0-alpha.20) (2023-05-12)
312
+
313
+ ### Features
314
+
315
+ - stop timers on remoteConfig.stop(), kyc.stop(), referrals.stop() ([#1593](https://github.com/ExodusMovement/exodus-hydra/issues/1593)) ([0f73363](https://github.com/ExodusMovement/exodus-hydra/commit/0f7336362cdc5a6f878109e6353ac241795e4fc6))
316
+
317
+ ### Bug Fixes
318
+
319
+ - kyc tests ([#1619](https://github.com/ExodusMovement/exodus-hydra/issues/1619)) ([20da423](https://github.com/ExodusMovement/exodus-hydra/commit/20da423b98aa3b950e197b4a2290898c731c59b2))
320
+ - kyc tests (again) ([#1626](https://github.com/ExodusMovement/exodus-hydra/issues/1626)) ([0f12f89](https://github.com/ExodusMovement/exodus-hydra/commit/0f12f898691504aefffeaca0db2fd3dbe9740ff6))
321
+
322
+ ## [2.0.0-alpha.19](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.18...@exodus/headless@2.0.0-alpha.19) (2023-05-08)
323
+
324
+ ### ⚠ BREAKING CHANGES
325
+
326
+ - use revamped geolocation (#1559)
327
+
328
+ ### Features
329
+
330
+ - add addressesProvider to headless ([#1540](https://github.com/ExodusMovement/exodus-hydra/issues/1540)) ([90e963a](https://github.com/ExodusMovement/exodus-hydra/commit/90e963aafa0bb855d8c857902feac37514985d4a))
331
+ - add kyc and referrals modules to headless ([#1539](https://github.com/ExodusMovement/exodus-hydra/issues/1539)) ([1a0cf7c](https://github.com/ExodusMovement/exodus-hydra/commit/1a0cf7c18cbbfc5f2b92d9720d9cbf17cd850214))
332
+
333
+ ### Code Refactoring
334
+
335
+ - use revamped geolocation ([#1559](https://github.com/ExodusMovement/exodus-hydra/issues/1559)) ([4378d13](https://github.com/ExodusMovement/exodus-hydra/commit/4378d137a67e4836a45c72e6bfc79590d4b7ab20))
336
+
337
+ ## [2.0.0-alpha.18](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.17...@exodus/headless@2.0.0-alpha.18) (2023-05-05)
338
+
339
+ ### Bug Fixes
340
+
341
+ - announce that featureFlags writes to featureFlagAtoms ([#1548](https://github.com/ExodusMovement/exodus-hydra/issues/1548)) ([fefac86](https://github.com/ExodusMovement/exodus-hydra/commit/fefac86970ab11e85d530d8424ca9f3de86fed91))
342
+
343
+ ## [2.0.0-alpha.17](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.16...@exodus/headless@2.0.0-alpha.17) (2023-05-05)
344
+
345
+ ### ⚠ BREAKING CHANGES
346
+
347
+ - don't serialize port payloads (#1458)
348
+
349
+ ### Features
350
+
351
+ - add feature-flags to headless ([#1516](https://github.com/ExodusMovement/exodus-hydra/issues/1516)) ([9d2da89](https://github.com/ExodusMovement/exodus-hydra/commit/9d2da895d4f58d34674b19d42fe3fd621d439f73))
352
+
353
+ ### Code Refactoring
354
+
355
+ - don't serialize port payloads ([#1458](https://github.com/ExodusMovement/exodus-hydra/issues/1458)) ([9b98a28](https://github.com/ExodusMovement/exodus-hydra/commit/9b98a28b091146ad0dee631a236629f25a16b3e2))
356
+
357
+ ## [2.0.0-alpha.16](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.15...@exodus/headless@2.0.0-alpha.16) (2023-05-04)
358
+
359
+ ### Bug Fixes
360
+
361
+ - bump atoms in headless ([#1523](https://github.com/ExodusMovement/exodus-hydra/issues/1523)) ([7b6ca0b](https://github.com/ExodusMovement/exodus-hydra/commit/7b6ca0b19ccad9e33c9c0f0aac03feddad9d4cac))
362
+
363
+ ## [2.0.0-alpha.15](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.14...@exodus/headless@2.0.0-alpha.15) (2023-05-04)
364
+
365
+ ### ⚠ BREAKING CHANGES
366
+
367
+ - use readOnlyAtoms dependency processor (#1497)
368
+
369
+ ### Features
370
+
371
+ - add geolocation to headless ([#1514](https://github.com/ExodusMovement/exodus-hydra/issues/1514)) ([44a8620](https://github.com/ExodusMovement/exodus-hydra/commit/44a8620249f8de2147dc073098b68f0562fb7287))
372
+ - use readOnlyAtoms dependency processor ([#1497](https://github.com/ExodusMovement/exodus-hydra/issues/1497)) ([b3b4866](https://github.com/ExodusMovement/exodus-hydra/commit/b3b4866084428496aeff30dcb14ec583d6f4d64f))
373
+
374
+ ### Bug Fixes
375
+
376
+ - enabledAssets storage access ([#1519](https://github.com/ExodusMovement/exodus-hydra/issues/1519)) ([c4d9463](https://github.com/ExodusMovement/exodus-hydra/commit/c4d9463829b0015e70ce617e11940b1fea5bfbe6))
377
+
378
+ ## [2.0.0-alpha.14](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.13...@exodus/headless@2.0.0-alpha.14) (2023-05-03)
379
+
380
+ **Note:** Version bump only for package @exodus/headless
381
+
382
+ ## [2.0.0-alpha.13](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.12...@exodus/headless@2.0.0-alpha.13) (2023-05-02)
383
+
384
+ ### Features
385
+
386
+ - add rates monitor to headless ([#1470](https://github.com/ExodusMovement/exodus-hydra/issues/1470)) ([d214b9a](https://github.com/ExodusMovement/exodus-hydra/commit/d214b9a22ca0649bbd79e2c8f6d9592733c802d2))
387
+
388
+ ### Bug Fixes
389
+
390
+ - get assetsModule from 'adapters' ([#1491](https://github.com/ExodusMovement/exodus-hydra/issues/1491)) ([b010cbd](https://github.com/ExodusMovement/exodus-hydra/commit/b010cbd319ffcd02d18a7492dc20e2d7ba7fe1c4))
391
+
392
+ ## [2.0.0-alpha.12](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.11...@exodus/headless@2.0.0-alpha.12) (2023-05-02)
393
+
394
+ ### Features
395
+
396
+ - add balances to headless ([#1379](https://github.com/ExodusMovement/exodus-hydra/issues/1379)) ([b5d6846](https://github.com/ExodusMovement/exodus-hydra/commit/b5d6846d86b9d83463ece51a2ef14c4fd898d438))
397
+
398
+ ## [2.0.0-alpha.11](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.10...@exodus/headless@2.0.0-alpha.11) (2023-05-02)
399
+
400
+ ### Features
401
+
402
+ - migrate locales atoms ([#1457](https://github.com/ExodusMovement/exodus-hydra/issues/1457)) ([e6f3a7f](https://github.com/ExodusMovement/exodus-hydra/commit/e6f3a7feb4319d8aa44032e27df746343fdb66eb))
403
+ - migrate market history module ([#1456](https://github.com/ExodusMovement/exodus-hydra/issues/1456)) ([3e64532](https://github.com/ExodusMovement/exodus-hydra/commit/3e64532b739ea802f0df841b7c030c2c912d57e8))
404
+
405
+ ## [2.0.0-alpha.10](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.9...@exodus/headless@2.0.0-alpha.10) (2023-04-30)
406
+
407
+ ### Features
408
+
409
+ - add pricingClient to headless ([#1439](https://github.com/ExodusMovement/exodus-hydra/issues/1439)) ([2a82a4c](https://github.com/ExodusMovement/exodus-hydra/commit/2a82a4c663b542178580908aaaff840524d55369))
410
+ - attach wallet account atoms ([#1437](https://github.com/ExodusMovement/exodus-hydra/issues/1437)) ([2648699](https://github.com/ExodusMovement/exodus-hydra/commit/264869986c175091e6bc7c48e852946bd60911d6))
411
+
412
+ ## [2.0.0-alpha.9](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.8...@exodus/headless@2.0.0-alpha.9) (2023-04-26)
413
+
414
+ ### Features
415
+
416
+ - add available-assets to headless ([#1361](https://github.com/ExodusMovement/exodus-hydra/issues/1361)) ([900d142](https://github.com/ExodusMovement/exodus-hydra/commit/900d142018ff112f36ef0f7ef53cf5020020e3ca))
417
+
418
+ ## [2.0.0-alpha.8](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.7...@exodus/headless@2.0.0-alpha.8) (2023-04-25)
419
+
420
+ ### Features
421
+
422
+ - add enabled-assets to headless ([#1235](https://github.com/ExodusMovement/exodus-hydra/issues/1235)) ([a808b75](https://github.com/ExodusMovement/exodus-hydra/commit/a808b750bd911c33241ae710fbf8d8ba7e2073a6))
423
+ - add lifecycle docs ([#1313](https://github.com/ExodusMovement/exodus-hydra/issues/1313)) ([df18faa](https://github.com/ExodusMovement/exodus-hydra/commit/df18faa9c341404c2feaadf51ec46236c54e2f15))
424
+ - add remoteConfig module ([#1370](https://github.com/ExodusMovement/exodus-hydra/issues/1370)) ([ebc888d](https://github.com/ExodusMovement/exodus-hydra/commit/ebc888d6440c509a19dd6c9c600033fd41128ad7))
425
+ - add support for plugins ([#1351](https://github.com/ExodusMovement/exodus-hydra/issues/1351)) ([fac0e2a](https://github.com/ExodusMovement/exodus-hydra/commit/fac0e2a727b0e71ad5f0619b8457c7e80612f707))
426
+
427
+ ## [2.0.0-alpha.7](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.6...@exodus/headless@2.0.0-alpha.7) (2023-04-24)
428
+
429
+ ### ⚠ BREAKING CHANGES
430
+
431
+ - pass compatibility modes config to wallet (#1223)
432
+
433
+ ### Features
434
+
435
+ - add blockchain metadata to headless ([#1293](https://github.com/ExodusMovement/exodus-hydra/issues/1293)) ([04390a7](https://github.com/ExodusMovement/exodus-hydra/commit/04390a71cb01744cd427f470735fa0748b9157ca))
436
+ - add namespaceStorage preprocessor ([#1322](https://github.com/ExodusMovement/exodus-hydra/issues/1322)) ([95f403e](https://github.com/ExodusMovement/exodus-hydra/commit/95f403e59c87f90901247619c727496ebac0a399))
437
+ - pass compatibility modes config to wallet ([#1223](https://github.com/ExodusMovement/exodus-hydra/issues/1223)) ([b49b640](https://github.com/ExodusMovement/exodus-hydra/commit/b49b64097af7969e210e5ecf5395ee7f40a13eac))
438
+
6
439
  ## [2.0.0-alpha.6](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.5...@exodus/headless@2.0.0-alpha.6) (2023-04-20)
7
440
 
8
441
  ### Features
package/README.md CHANGED
@@ -2,10 +2,20 @@
2
2
 
3
3
  The headless Exodus wallet SDK
4
4
 
5
+ ## Table of Contents
6
+
7
+ - [Quick Start](#quick-start)
8
+ - [Lifecycle](#lifecycle)
9
+ - [Port](#port)
10
+ - [Adapters](#adapters)
11
+ - [Config](#config)
12
+ - [Headless API](#headless-api)
13
+
5
14
  ## Quick Start
6
15
 
7
16
  ```js
8
17
  import createExodus from '@exodus/headless'
18
+ import referrals from '@exodus/headless/src/modules/referrals'
9
19
  import Emitter from '@exodus/wild-emitter'
10
20
 
11
21
  // 1. Create port. Acts as an event bus between headless wallet and client
@@ -16,10 +26,10 @@ const adapters = {}
16
26
  const config = {}
17
27
 
18
28
  // 3. Create Exodus container
19
- const container = createExodus({ port, adapters, config })
29
+ const exodusContainer = createExodus({ port, adapters, config })
20
30
 
21
31
  // 4. Register external modules. Does not support overriding modules at the moment.
22
- container.register({
32
+ exodusContainer.register({
23
33
  definition: {
24
34
  id: 'remoteConfig',
25
35
  factory: createRemoteConfig,
@@ -27,13 +37,83 @@ container.register({
27
37
  },
28
38
  })
29
39
 
40
+ // see an example feature definition:
41
+ // https://github.com/ExodusMovement/exodus-hydra/blob/2e8d63426421ffcbec84a9b6fbc83eb913b47eba/modules/headless/src/modules/geolocation/index.js
42
+ exodusContainer.use(referrals())
43
+ exodusContainer.use(myCustomFeature({ id: 'myCustomFeature', ... }))
44
+
30
45
  // 5. Resolve exodus instance
31
- const exodus = container.resolve()
46
+ const exodus = exodusContainer.resolve()
32
47
 
33
- // 6. Use it!
48
+ // 6. Start exodus instance
49
+ await exodus.wallet.start()
50
+
51
+ // 7. Use it!
34
52
  await exodus.wallet.create({ passphrase: 'my-super-secure-passphrase' })
53
+
54
+ // 8. Use your custom feature API, if any
55
+ exodus.myCustomFeature.doThatThingYouDo()
35
56
  ```
36
57
 
58
+ ## Lifecycle
59
+
60
+ The headless wallet instance transitions through different states during his life. When moving from one another, there are two things that are triggered:
61
+
62
+ - Fires hook call: Allows modules to subscribe and halt transition until listener resolves.
63
+ - Fires event call: Emitted after all hooks had been executed and resolved.
64
+
65
+ Below you can find a state diagram that visualize what hooks are triggered between state transitions:
66
+
67
+ ```mermaid
68
+ stateDiagram-v2
69
+ direction LR
70
+ [*] --> Starting
71
+
72
+ state Starting {
73
+ direction LR
74
+
75
+ state "Needs clear storage?*" as NeedsClear
76
+ state "Is importing?" as IsImporting
77
+
78
+ NeedsClear --> Clearing : CLEAR
79
+ Clearing --> IsImporting
80
+ IsImporting --> Importing : IMPORT
81
+ }
82
+
83
+ Starting --> Started : START
84
+
85
+ state Started {
86
+ direction LR
87
+
88
+ state "Has seed?" as HasSeed
89
+
90
+ HasSeed --> Empty : No
91
+ HasSeed --> Locked : Yes
92
+
93
+ Empty --> Locked : CREATE \n---or---\nIMPORT
94
+
95
+ Locked --> Migrating : MIGRATE
96
+ Migrating --> Unlocked : UNLOCK
97
+ Unlocked --> Locked : LOCK
98
+
99
+ Unlocked --> Restarting : DELETE
100
+
101
+
102
+ }
103
+
104
+ Restarting --> [*] : RESTART
105
+
106
+ Started --> Started : LOAD
107
+
108
+ classDef conditional fill:#ededed,stroke:#c2c2c2,color:#a6a6a6,stroke-width:2;
109
+
110
+ class NeedsClear conditional
111
+ class IsImporting conditional
112
+ class HasSeed conditional
113
+ ```
114
+
115
+ \* Wallet needs to clear storage if seed is not present or is restoring a new wallet
116
+
37
117
  ## Port
38
118
 
39
119
  Event bus between headless wallet and client
@@ -148,6 +228,55 @@ Currently not used.
148
228
 
149
229
  **Returns**: `boolean`
150
230
 
231
+ ## walletAccounts
232
+
233
+ > Type: object
234
+
235
+ | Method | Type | Description |
236
+ | ---------- | ------------------------------------------- | -------------------------------------------------------------- |
237
+ | create | `async (walletAccountFields) => void` | Creates a new WalletAccount with the provided fields. |
238
+ | update | `async (name, walletAccountFields) => void` | Updates an existing WalletAccount with the provided fields. |
239
+ | enable | `async (name) => void` | Enables an existing WalletAccount. |
240
+ | disable | `async (name) => void` | Disables an existing WalletAccount. |
241
+ | getEnabled | `async () => object` | Returns enabled walletAccounts as `{ [name]: WalletAccount }`. |
242
+
243
+ ## blockchainMetadata
244
+
245
+ > Type: object
246
+
247
+ | Method | Type | Description |
248
+ | ---------------------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
249
+ | getTxLog | `async ({ assetName, walletAccount }) => TxSet` | Get the TxSet for the provided `assetName`/`walletAccount` combination (AssetSource) |
250
+ | getLoadedTxLogs | `async () => object` | Get the all loaded `TxSet`s as a `{ [walletAccount]: { [assetName]: TxSet } } object` |
251
+ | updateTxs | `async ({ assetName: string, walletAccount: string, txs: object[] }) => void` | Add or update txs with updates provided in `txs` |
252
+ | overwriteTxs | `async ({ assetName: string, walletAccount: string, txs: object[], notifyReceivedTxs: ?boolean }) => void` | Overwrite specified txs. |
253
+ | clearTxs | `async ({ assetName: string, walletAccount: string }) => void` | Remove txs for AssetSource. |
254
+ | removeTxs | `async ({ assetName: string, walletAccount: string, txs: object[] }) => void` | Remove provided txs. |
255
+ | getAccountState | `async ({ assetName, walletAccount }) => AccountState` | Get the AccountState for the provided AssetSource |
256
+ | getLoadedAccountStates | `async () => object` | Get the all loaded `AccountState`s as a `{ [walletAccount]: { [assetName]: AccountState } } object` |
257
+ | updateAccountState | `async ({ assetName: string, walletAccount: string, newData: object }) => void` | Update accountState for AssetSource. |
258
+ | removeAccountState | `async ({ assetName: string, walletAccount: string }) => void` | Remove accountState for AssetSource. |
259
+ | batch | `() => Batch` | Create a batch of updates. See [blockchainMetadata](../blockchain-metadata) README for batching details. |
260
+
261
+ ## assets
262
+
263
+ > Type: object
264
+
265
+ | Method | Type | Description |
266
+ | ----------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------- |
267
+ | enable | `async (assetNames: string[]) => void` | Enables assets. |
268
+ | disable | `async (assetNames: string[]) => void` | Disables assets. |
269
+ | addAndEnableToken | `async (assetId: string, baseAssetName: string) => string` | Adds and enables a custom token. Returns the created `asset`'s `.name` |
270
+
271
+ ## locale
272
+
273
+ > Type: object
274
+
275
+ | Method | Type | Description |
276
+ | ----------- | ---------------------------------- | ------------------------- |
277
+ | setCurrency | `async (currency: string) => void` | Changes current currency. |
278
+ | setLanguage | `async (language: string) => void` | Changes current language. |
279
+
151
280
  ## subscribe
152
281
 
153
282
  > Type: function