@exodus/headless 1.1.2 → 2.0.0-alpha.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 CHANGED
@@ -3,6 +3,16 @@
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.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@1.1.2...@exodus/headless@2.2.0-alpha.0) (2023-04-04)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - pass seed storage adapter to wallet (#1066)
11
+
12
+ ### Features
13
+
14
+ - pass seed storage adapter to wallet ([#1066](https://github.com/ExodusMovement/exodus-hydra/issues/1066)) ([d3f57a3](https://github.com/ExodusMovement/exodus-hydra/commit/d3f57a32f51b3d29a851ed497797ab585c0ad104))
15
+
6
16
  ## [1.1.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/headless@1.1.1...@exodus/headless@1.1.2) (2023-03-28)
7
17
 
8
18
  **Note:** Version bump only for package @exodus/headless
package/README.md CHANGED
@@ -89,14 +89,13 @@ In most cases you probably want to use encrypted storage instead (not yet migrat
89
89
 
90
90
  Check [storage-spec](https://github.com/ExodusMovement/exodus-hydra/tree/master/modules/storage-spec) for more details about Storage API
91
91
 
92
- ### seco
92
+ ### seedStorage
93
93
 
94
- An object with methods to encrypt and decrypt strings.
94
+ Storage instance used unquely by wallet module to store seed and autogenerated passphrase (if present).
95
95
 
96
- | Method | Type | Description |
97
- | ------------- | -------------------------------------------------------------- | --------------- |
98
- | encryptString | `({ data: string, key: string, encoding?: string }) => string` | Encrypt string. |
99
- | decryptString | `({ data: string, key: string, encoding?: string }) => string` | Decrypt string. |
96
+ Check [storage-spec](https://github.com/ExodusMovement/exodus-hydra/tree/master/modules/storage-spec) for more details about Storage API
97
+
98
+ > **Note:** Because Browser Extension needs the passphrase to encrypt/decrypt seed, it get's passed as a 3rd parameter to get/set
100
99
 
101
100
  ### passphraseCache
102
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/headless",
3
- "version": "1.1.2",
3
+ "version": "2.0.0-alpha.0",
4
4
  "description": "The headless Exodus wallet SDK",
5
5
  "author": "Exodus Movement Inc",
6
6
  "main": "src/index.js",
@@ -33,7 +33,7 @@
33
33
  "@exodus/key-identifier-provider": "^1.1.1",
34
34
  "@exodus/keychain": "^3.2.1",
35
35
  "@exodus/module": "^1.0.0",
36
- "@exodus/wallet": "4.1.0",
36
+ "@exodus/wallet": "^5.0.0",
37
37
  "@exodus/wallet-compatibility-modes": "1.0.2",
38
38
  "bip39": "2.6.0",
39
39
  "lodash": "https://registry.yarnpkg.com/@exodus/lodash/-/lodash-4.17.21-exodus.2.tgz",
@@ -44,8 +44,9 @@
44
44
  "@exodus/solana-lib": "^1.3.11",
45
45
  "@exodus/storage-memory": "^1.1.0",
46
46
  "@exodus/wild-emitter": "^1.0.0",
47
+ "buffer-json": "^2.0.0",
47
48
  "eslint": "^8.33.0",
48
49
  "jest": "^29.1.2"
49
50
  },
50
- "gitHead": "11f289756f843f743fe485775e48b697dc3f42ac"
51
+ "gitHead": "ff01c1446a524ece07820d96150512ac0eebf568"
51
52
  }
@@ -14,7 +14,7 @@ const adapterKeys = [
14
14
  'assetsModule',
15
15
  'createLogger',
16
16
  'legacyPrivToPub',
17
- 'seco',
17
+ 'seedStorage',
18
18
  'unsafeStorage',
19
19
  ]
20
20
 
@@ -31,12 +31,6 @@ const createModuleDependencies = () =>
31
31
  },
32
32
  {
33
33
  definition: walletDefinition,
34
- aliases: [
35
- {
36
- implementationId: 'unsafeStorage',
37
- interfaceId: 'storage',
38
- },
39
- ],
40
34
  },
41
35
  {
42
36
  definition: walletCompatibilityModesDefinition,