@exodus/headless 3.2.0 → 4.0.0-rc.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/headless",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-rc.0",
|
|
4
4
|
"description": "The platform-agnostic Exodus wallet SDK",
|
|
5
5
|
"author": "Exodus Movement Inc.",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "NODE_OPTIONS=--max-old-space-size=4096 jest"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@exodus/address-provider": "^
|
|
29
|
+
"@exodus/address-provider": "^10.0.0",
|
|
30
30
|
"@exodus/argo": "^1.0.0",
|
|
31
31
|
"@exodus/assets-feature": "^4.0.1",
|
|
32
32
|
"@exodus/atoms": "^7.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@exodus/balances": "^12.4.0",
|
|
35
35
|
"@exodus/basic-utils": "^2.0.0",
|
|
36
36
|
"@exodus/blockchain-metadata": "^15.0.0",
|
|
37
|
-
"@exodus/dependency-injection": "^2.1.
|
|
37
|
+
"@exodus/dependency-injection": "^2.1.2",
|
|
38
38
|
"@exodus/dependency-preprocessors": "^5.1.0",
|
|
39
39
|
"@exodus/enabled-assets": "^10.1.0",
|
|
40
40
|
"@exodus/feature-flags": "^5.1.0",
|
|
@@ -46,21 +46,21 @@
|
|
|
46
46
|
"@exodus/hd-key-slip-10": "^2.0.0",
|
|
47
47
|
"@exodus/key-identifier-provider": "^1.4.0",
|
|
48
48
|
"@exodus/key-ids": "^1.0.0",
|
|
49
|
-
"@exodus/keychain": "^
|
|
49
|
+
"@exodus/keychain": "^6.1.0",
|
|
50
50
|
"@exodus/locale": "^2.0.2",
|
|
51
51
|
"@exodus/module": "^1.2.2",
|
|
52
52
|
"@exodus/pricing": "^1.1.0",
|
|
53
|
-
"@exodus/public-key-provider": "^
|
|
53
|
+
"@exodus/public-key-provider": "^2.0.0",
|
|
54
54
|
"@exodus/public-key-store": "^1.2.0",
|
|
55
55
|
"@exodus/rates-monitor": "^4.0.2",
|
|
56
56
|
"@exodus/remote-config": "^2.3.0",
|
|
57
57
|
"@exodus/restore-progress-tracker": "^3.0.0",
|
|
58
58
|
"@exodus/sodium-crypto": "^3.2.0",
|
|
59
59
|
"@exodus/startup-counter": "^1.0.0",
|
|
60
|
-
"@exodus/tx-signer": "^
|
|
61
|
-
"@exodus/wallet": "^
|
|
62
|
-
"@exodus/wallet-accounts": "^
|
|
63
|
-
"@exodus/wallet-compatibility-modes": "^
|
|
60
|
+
"@exodus/tx-signer": "^2.0.0",
|
|
61
|
+
"@exodus/wallet": "^12.0.0",
|
|
62
|
+
"@exodus/wallet-accounts": "^16.1.1",
|
|
63
|
+
"@exodus/wallet-compatibility-modes": "^4.0.0",
|
|
64
64
|
"bip39": "^2.6.0",
|
|
65
65
|
"events": "^3.3.0",
|
|
66
66
|
"lodash": "npm:@exodus/lodash@^4.17.21-exodus.2",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"@exodus/ab-testing": "^7.3.0",
|
|
71
71
|
"@exodus/algorand-lib": "^2.0.1",
|
|
72
72
|
"@exodus/algorand-meta": "^1.1.4",
|
|
73
|
-
"@exodus/analytics": "^12.0.
|
|
73
|
+
"@exodus/analytics": "^12.0.0",
|
|
74
74
|
"@exodus/apy-rates": "^3.3.1",
|
|
75
|
-
"@exodus/assets-feature": "
|
|
75
|
+
"@exodus/assets-feature": "^4.1.2",
|
|
76
76
|
"@exodus/bitcoin-plugin": "^1.0.14",
|
|
77
77
|
"@exodus/connected-origins": "^3.3.0",
|
|
78
78
|
"@exodus/crypto-news-monitor": "^4.1.0",
|
|
@@ -84,13 +84,13 @@
|
|
|
84
84
|
"@exodus/kyc": "^4.3.1",
|
|
85
85
|
"@exodus/litecoin-meta": "^1.0.0",
|
|
86
86
|
"@exodus/market-history": "^7.3.1",
|
|
87
|
-
"@exodus/models": "^
|
|
87
|
+
"@exodus/models": "^11.9.0",
|
|
88
88
|
"@exodus/nfts": "^8.0.0",
|
|
89
89
|
"@exodus/personal-notes": "^3.6.0",
|
|
90
90
|
"@exodus/referrals": "^8.1.2",
|
|
91
91
|
"@exodus/solana-lib": "^1.3.11",
|
|
92
92
|
"@exodus/solana-meta": "^1.0.2",
|
|
93
|
-
"@exodus/storage-encrypted": "^1.
|
|
93
|
+
"@exodus/storage-encrypted": "^1.2.0",
|
|
94
94
|
"@exodus/storage-memory": "^2.1.1",
|
|
95
95
|
"@exodus/top-movers-monitor": "^3.2.0",
|
|
96
96
|
"@exodus/ui-config": "^3.4.0",
|
|
@@ -104,6 +104,5 @@
|
|
|
104
104
|
"jest": "^29.1.2",
|
|
105
105
|
"msw": "^2.0.0",
|
|
106
106
|
"p-defer": "^4.0.0"
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}
|
|
107
|
+
}
|
|
108
|
+
}
|
package/src/migrations/attach.js
CHANGED
|
@@ -33,7 +33,7 @@ const attachMigrations = ({ migrations = [], application, modules, adapters, ...
|
|
|
33
33
|
} catch (error) {
|
|
34
34
|
logger.log(`migration failed: ${error.stack}`)
|
|
35
35
|
} finally {
|
|
36
|
-
analytics
|
|
36
|
+
analytics?.track({
|
|
37
37
|
event: 'ClientMigrationRun',
|
|
38
38
|
properties: { migrationId: name, success },
|
|
39
39
|
force: true,
|
|
@@ -3,11 +3,16 @@ import sodium from '@exodus/sodium-crypto'
|
|
|
3
3
|
|
|
4
4
|
const WALLET_INFO_KEY = EXODUS_KEY_IDS.WALLET_INFO
|
|
5
5
|
|
|
6
|
-
const createUnlockEncryptedStorage = ({ keychain }) => {
|
|
6
|
+
const createUnlockEncryptedStorage = ({ keychain, primarySeedIdAtom }) => {
|
|
7
7
|
return async (encryptedStorage) => {
|
|
8
8
|
// Fusion might write on storage even after keychain is locked, so we get keys
|
|
9
9
|
// directly instead of creating encryptor that does not preserves it anymore
|
|
10
|
-
const
|
|
10
|
+
const primarySeedId = await primarySeedIdAtom.get()
|
|
11
|
+
const { privateKey } = await keychain.exportKey({
|
|
12
|
+
seedId: primarySeedId,
|
|
13
|
+
keyId: WALLET_INFO_KEY,
|
|
14
|
+
exportPrivate: true,
|
|
15
|
+
})
|
|
11
16
|
|
|
12
17
|
await encryptedStorage.unlock({
|
|
13
18
|
encrypt: (data) => sodium.encryptSecret(data, privateKey),
|
|
@@ -20,7 +25,7 @@ const unlockEncryptedStorageDefinition = {
|
|
|
20
25
|
id: 'unlockEncryptedStorage',
|
|
21
26
|
type: 'module',
|
|
22
27
|
factory: createUnlockEncryptedStorage,
|
|
23
|
-
dependencies: ['keychain'],
|
|
28
|
+
dependencies: ['keychain', 'primarySeedIdAtom'],
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export default unlockEncryptedStorageDefinition
|