@exodus/hardware-wallets 1.1.1 → 1.1.2
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,12 @@
|
|
|
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
|
+
## [1.1.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hardware-wallets@1.1.1...@exodus/hardware-wallets@1.1.2) (2024-08-13)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add require device for ([#8333](https://github.com/ExodusMovement/exodus-hydra/issues/8333)) ([102f065](https://github.com/ExodusMovement/exodus-hydra/commit/102f065d66f00e0501986aeb53d90435f1e51adc))
|
|
11
|
+
|
|
6
12
|
## [1.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/hardware-wallets@1.1.0...@exodus/hardware-wallets@1.1.1) (2024-08-12)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WalletAccount } from '@exodus/models';
|
|
2
2
|
import Emitter from '@exodus/wild-emitter';
|
|
3
|
-
import type { HardwareSignerProvider, CanAccessAssetParams, CreateParams, StoreSyncedKeysParams, ScanParams, SyncParams, EnsureApplicationIsOpenedParams, SignTransactionParams, ScanResult, SyncedKeysId } from './interfaces.js';
|
|
3
|
+
import type { HardwareSignerProvider, CanAccessAssetParams, CreateParams, StoreSyncedKeysParams, ScanParams, SyncParams, EnsureApplicationIsOpenedParams, SignTransactionParams, ScanResult, SyncedKeysId, RequireDeviceForParams } from './interfaces.js';
|
|
4
4
|
import type { HardwareWalletDiscovery, SignMessageParams } from '@exodus/hw-common';
|
|
5
5
|
import type { Atom } from '@exodus/atoms';
|
|
6
6
|
import type { IPublicKeyStore } from '@exodus/public-key-store';
|
|
@@ -32,6 +32,10 @@ export declare class HardwareWallets implements HardwareSignerProvider {
|
|
|
32
32
|
sync: ({ accountIndex }: SyncParams) => Promise<SyncedKeysId>;
|
|
33
33
|
addPublicKeysToWalletAccount: ({ walletAccountName, syncedKeysId, }: StoreSyncedKeysParams) => Promise<void>;
|
|
34
34
|
create: ({ syncedKeysId }: CreateParams) => Promise<void>;
|
|
35
|
+
requireDeviceFor: ({ walletAccount }: RequireDeviceForParams) => Promise<{
|
|
36
|
+
signTransaction: ({ baseAssetName, unsignedTx, walletAccount }: SignTransactionParams) => Promise<any>;
|
|
37
|
+
signMessage: ({ assetName, derivationPath, message }: SignMessageParams) => Promise<any>;
|
|
38
|
+
}>;
|
|
35
39
|
}
|
|
36
40
|
declare const hardwareWalletsModuleDefinition: {
|
|
37
41
|
readonly id: "hardwareWallets";
|
|
@@ -295,6 +295,12 @@ export class HardwareWallets {
|
|
|
295
295
|
await this.#walletAccounts.setActive(walletAccountName);
|
|
296
296
|
await this.addPublicKeysToWalletAccount({ walletAccountName, syncedKeysId });
|
|
297
297
|
};
|
|
298
|
+
requireDeviceFor = async ({ walletAccount }) => {
|
|
299
|
+
return {
|
|
300
|
+
signTransaction: this.signTransaction,
|
|
301
|
+
signMessage: this.signMessage,
|
|
302
|
+
};
|
|
303
|
+
};
|
|
298
304
|
}
|
|
299
305
|
const createHardwareWalletsModule = (opts) => new HardwareWallets(opts);
|
|
300
306
|
const hardwareWalletsModuleDefinition = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/hardware-wallets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "An Exodus SDK feature that provides a high level abstraction for interacting with hardware wallet devices",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@exodus/logger": "^1.2.2",
|
|
41
41
|
"@exodus/public-key-store": "^1.2.2"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "007b39adfd80a3f8367b46999f006a6904dfd002"
|
|
44
44
|
}
|