@exodus/headless 2.0.0-alpha.64 → 2.0.0-alpha.65
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,10 @@
|
|
|
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.65](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.64...@exodus/headless@2.0.0-alpha.65) (2023-07-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/headless
|
|
9
|
+
|
|
6
10
|
## [2.0.0-alpha.64](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@2.0.0-alpha.63...@exodus/headless@2.0.0-alpha.64) (2023-07-06)
|
|
7
11
|
|
|
8
12
|
### ⚠ BREAKING CHANGES
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/headless",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.65",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@exodus/nfts": "^2.1.1",
|
|
51
51
|
"@exodus/rates-monitor": "^2.0.1",
|
|
52
52
|
"@exodus/wallet": "^6.3.0",
|
|
53
|
-
"@exodus/wallet-accounts": "^
|
|
53
|
+
"@exodus/wallet-accounts": "^10.1.0",
|
|
54
54
|
"@exodus/wallet-compatibility-modes": "^2.0.0",
|
|
55
55
|
"bip39": "^2.6.0",
|
|
56
56
|
"events": "^3.3.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"nock": "^13.3.1",
|
|
90
90
|
"p-defer": "^4.0.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "924ea51750f68d9797f275c78e2e067f01bf86a5"
|
|
93
93
|
}
|
package/src/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { pick } from '@exodus/basic-utils'
|
|
|
3
3
|
import keychain from '@exodus/keychain'
|
|
4
4
|
import marketHistory from '@exodus/market-history'
|
|
5
5
|
import wallet from '@exodus/wallet'
|
|
6
|
+
import walletAccounts from '@exodus/wallet-accounts'
|
|
6
7
|
|
|
7
8
|
import createApi from './api'
|
|
8
9
|
import attachAtoms from './atoms/attach'
|
|
@@ -20,7 +21,6 @@ import nfts from './features/nfts'
|
|
|
20
21
|
import pricing from './features/pricing'
|
|
21
22
|
import rates from './features/rates'
|
|
22
23
|
import remoteConfig from './features/remote-config'
|
|
23
|
-
import walletAccounts from './features/wallet-accounts'
|
|
24
24
|
import createIOC from './ioc'
|
|
25
25
|
import attachPlugins from './plugins/attach'
|
|
26
26
|
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const walletAccountsApi = ({ walletAccounts, enabledWalletAccountsAtom }) => ({
|
|
2
|
-
walletAccounts: {
|
|
3
|
-
create: walletAccounts.create,
|
|
4
|
-
update: walletAccounts.update,
|
|
5
|
-
disable: walletAccounts.disable,
|
|
6
|
-
enable: walletAccounts.enable,
|
|
7
|
-
getEnabled: enabledWalletAccountsAtom.get,
|
|
8
|
-
},
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
id: 'walletAccountsApi',
|
|
13
|
-
type: 'api',
|
|
14
|
-
factory: walletAccountsApi,
|
|
15
|
-
dependencies: ['walletAccounts', 'enabledWalletAccountsAtom'],
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
enabledWalletAccountsAtomDefinition,
|
|
3
|
-
walletAccountsAtomDefinition,
|
|
4
|
-
} from '@exodus/wallet-accounts/atoms'
|
|
5
|
-
import walletAccountsDefinition from '@exodus/wallet-accounts/module'
|
|
6
|
-
|
|
7
|
-
import walletAccountsApiDefinition from './api'
|
|
8
|
-
import walletAccountsPluginDefinition from './plugin'
|
|
9
|
-
|
|
10
|
-
const walletAccounts = () => {
|
|
11
|
-
return {
|
|
12
|
-
id: 'walletAccounts',
|
|
13
|
-
definitions: [
|
|
14
|
-
{
|
|
15
|
-
definition: walletAccountsDefinition,
|
|
16
|
-
writesAtoms: ['walletAccountsAtom'],
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
definition: walletAccountsAtomDefinition,
|
|
20
|
-
storage: { namespace: 'walletAccounts' },
|
|
21
|
-
},
|
|
22
|
-
{ definition: enabledWalletAccountsAtomDefinition },
|
|
23
|
-
{ definition: walletAccountsApiDefinition },
|
|
24
|
-
{ definition: walletAccountsPluginDefinition },
|
|
25
|
-
],
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default walletAccounts
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const walletAccountsPlugin = ({ walletAccounts }) => {
|
|
2
|
-
const onUnlock = async () => {
|
|
3
|
-
await walletAccounts.load()
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const onClear = async () => {
|
|
7
|
-
await walletAccounts.clear()
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
return { onUnlock, onClear }
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
id: 'walletAccountsLifecyclePlugin',
|
|
15
|
-
type: 'plugin',
|
|
16
|
-
factory: walletAccountsPlugin,
|
|
17
|
-
dependencies: ['walletAccounts'],
|
|
18
|
-
}
|