@trezor/connect 9.7.0 → 9.7.1-beta.1
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 +14 -10
- package/README.md +1 -1
- package/lib/api/bitcoin/refTx.d.ts +1 -1
- package/lib/api/blockchainGetAccountBalanceHistory.d.ts +1 -1
- package/lib/api/blockchainGetCurrentFiatRates.d.ts +1 -1
- package/lib/api/blockchainGetFiatRatesForTimestamps.d.ts +1 -1
- package/lib/api/blockchainGetTransactions.d.ts +1 -1
- package/lib/api/cardano/cardanoOutputs.d.ts +1 -1
- package/lib/api/cardano/cardanoTokenBundle.d.ts +2 -2
- package/lib/api/composeTransaction.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +4 -4
- package/lib/api/getAccountInfo.d.ts +14 -14
- package/lib/api/getFeatures.d.ts +1 -1
- package/lib/api/solana/solanaUtils.d.ts +2 -2
- package/lib/backend/Blockchain.d.ts +1 -1
- package/lib/core/AbstractMethod.d.ts +1 -1
- package/lib/data/config.d.ts +1 -1
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +3 -3
- package/lib/device/DeviceCurrentSession.d.ts +333 -333
- package/lib/device/TransportList.d.ts +1 -1
- package/lib/events/device.d.ts +1 -1
- package/lib/events/transport.d.ts +2 -2
- package/lib/types/api/applySettings.d.ts +2 -2
- package/lib/types/api/bitcoin/index.d.ts +1 -1
- package/lib/types/api/cardano/index.d.ts +4 -4
- package/lib/types/api/changeLanguage.d.ts +1 -1
- package/lib/types/api/cipherKeyValue.d.ts +2 -2
- package/lib/types/api/eos/index.d.ts +3 -3
- package/lib/types/api/ethereum/index.d.ts +3 -3
- package/lib/types/api/firmwareUpdate.d.ts +1 -1
- package/lib/types/api/getNonce.d.ts +1 -1
- package/lib/types/api/nem/index.d.ts +7 -7
- package/lib/types/api/recoveryDevice.d.ts +1 -1
- package/lib/types/api/stellar/index.d.ts +146 -146
- package/lib/types/index.d.ts +1 -1
- package/lib/workers/workers-browser.d.ts +5 -5
- package/lib/workers/workers.d.ts +1 -1
- package/lib/workers/workers.native.d.ts +5 -5
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
| Package | Stable |
|
|
2
|
-
| :------------------------------: | :----: |
|
|
3
|
-
| npm @trezor/connect | 9.7.0 |
|
|
4
|
-
| npm @trezor/connect-web | 9.7.0 |
|
|
5
|
-
| npm @trezor/connect-webextension | 9.7.0 |
|
|
6
|
-
| npm @trezor/connect-mobile | 9.7.0 |
|
|
1
|
+
| Package | Stable | Canary |
|
|
2
|
+
| :------------------------------: | :----: | :----------: |
|
|
3
|
+
| npm @trezor/connect | 9.7.0 | 9.7.1-beta.1 |
|
|
4
|
+
| npm @trezor/connect-web | 9.7.0 | 9.7.1-beta.1 |
|
|
5
|
+
| npm @trezor/connect-webextension | 9.7.0 | 9.7.1-beta.1 |
|
|
6
|
+
| npm @trezor/connect-mobile | 9.7.0 | 9.7.1-beta.1 |
|
|
7
7
|
|
|
8
|
-
| Deployment | Stable |
|
|
9
|
-
| :----------------: | :----: |
|
|
10
|
-
| connect.trezor.io/ | 9.7.0 |
|
|
8
|
+
| Deployment | Stable | Canary |
|
|
9
|
+
| :----------------: | :----: | :----------: |
|
|
10
|
+
| connect.trezor.io/ | 9.7.0 | 9.7.1-beta.1 |
|
|
11
11
|
|
|
12
12
|
Use the persistent link [connect.trezor.io/9](https://connect.trezor.io/9/) to access the latest stable version of Connect Explorer.
|
|
13
13
|
|
|
14
|
-
# 9.7.
|
|
14
|
+
# 9.7.1-beta.1
|
|
15
15
|
|
|
16
16
|
We are deprecating `coreMode: 'iframe'` for connect-web, which is now limited due to [Local Network Access](https://developer.chrome.com/blog/local-network-access) permission. If you are using it explicitly, we recommend moving to `coreMode: 'auto'` for a better user experience.
|
|
17
17
|
|
|
@@ -52,6 +52,10 @@ This release also fixes import issues with CommonJS in Node environments.
|
|
|
52
52
|
- feat(connect): use existing message channels for suite web (314464a)
|
|
53
53
|
- feat(connect): suite web popup implementation (6bafb1e)
|
|
54
54
|
|
|
55
|
+
# 9.7.0
|
|
56
|
+
|
|
57
|
+
This release had an issue with TypeScript definitions files.
|
|
58
|
+
|
|
55
59
|
# 9.6.4
|
|
56
60
|
|
|
57
61
|
This release primarily introduces support for the new Trezor device and enhancements to the transport API, including a new API type:
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @trezor/connect
|
|
2
2
|
|
|
3
|
-
API version 9.7.
|
|
3
|
+
API version 9.7.1-beta.1
|
|
4
4
|
|
|
5
5
|
[](https://github.com/trezor/trezor-suite/actions/workflows/test-connect.yml)
|
|
6
6
|
[](https://www.npmjs.org/package/@trezor/connect)
|
|
@@ -5,7 +5,7 @@ import type { RefTransaction, TransactionOptions } from '../../types/api/bitcoin
|
|
|
5
5
|
export declare const requireReferencedTransactions: (inputs: PROTO.TxInputType[], options?: TransactionOptions, coinInfo?: CoinInfo) => boolean;
|
|
6
6
|
export declare const getReferencedTransactions: (inputs: PROTO.TxInputType[]) => string[];
|
|
7
7
|
export declare const getOrigTransactions: (inputs: PROTO.TxInputType[], outputs: PROTO.TxOutputType[]) => string[];
|
|
8
|
-
export declare const parseTransactionHexes: (network?: Network) => (hexes: string[]) => (import("@trezor/utxo-lib/
|
|
8
|
+
export declare const parseTransactionHexes: (network?: Network) => (hexes: string[]) => (import("@trezor/utxo-lib/lib/transaction/base").TransactionBase<undefined> | import("@trezor/utxo-lib/lib/transaction/base").TransactionBase<import("@trezor/utxo-lib/lib/transaction/dash").DashSpecific> | import("@trezor/utxo-lib/lib/transaction/base").TransactionBase<import("@trezor/utxo-lib/lib/transaction/zcash").ZcashSpecific>)[];
|
|
9
9
|
export declare const transformOrigTransactions: (txs: BitcoinJsTransaction[], coinInfo: BitcoinNetworkInfo, currentInputs: PROTO.TxInputType[], addresses: AccountAddresses) => RefTransaction[];
|
|
10
10
|
export declare const transformReferencedTransaction: (tx: BitcoinJsTransaction) => RefTransaction;
|
|
11
11
|
export declare const transformReferencedTransactions: (txs: BitcoinJsTransaction[]) => RefTransaction[];
|
|
@@ -7,7 +7,7 @@ type Params = {
|
|
|
7
7
|
};
|
|
8
8
|
export default class BlockchainGetAccountBalanceHistory extends AbstractMethod<'blockchainGetAccountBalanceHistory', Params> {
|
|
9
9
|
init(): void;
|
|
10
|
-
run(): Promise<import("@trezor/blockchain-link-types/
|
|
10
|
+
run(): Promise<import("@trezor/blockchain-link-types/lib/common").AccountBalanceHistory[]>;
|
|
11
11
|
}
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=blockchainGetAccountBalanceHistory.d.ts.map
|
|
@@ -10,7 +10,7 @@ export default class BlockchainGetCurrentFiatRates extends AbstractMethod<'block
|
|
|
10
10
|
init(): void;
|
|
11
11
|
run(): Promise<{
|
|
12
12
|
ts: number;
|
|
13
|
-
rates: import("@trezor/blockchain-link-types/
|
|
13
|
+
rates: import("@trezor/blockchain-link-types/lib/common").FiatRatesBySymbol;
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -12,7 +12,7 @@ export default class BlockchainGetFiatRatesForTimestamps extends AbstractMethod<
|
|
|
12
12
|
run(): Promise<{
|
|
13
13
|
tickers: {
|
|
14
14
|
ts: number;
|
|
15
|
-
rates: import("@trezor/blockchain-link-types/
|
|
15
|
+
rates: import("@trezor/blockchain-link-types/lib/common").FiatRatesBySymbol;
|
|
16
16
|
}[];
|
|
17
17
|
}>;
|
|
18
18
|
}
|
|
@@ -7,7 +7,7 @@ type Params = {
|
|
|
7
7
|
};
|
|
8
8
|
export default class BlockchainGetTransactions extends AbstractMethod<'blockchainGetTransactions', Params> {
|
|
9
9
|
init(): void;
|
|
10
|
-
run(): Promise<import("@trezor/blockchain-link-types/
|
|
10
|
+
run(): Promise<import("@trezor/blockchain-link-types/lib/common").Transaction[]>;
|
|
11
11
|
}
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=blockchainGetTransactions.d.ts.map
|
|
@@ -8,7 +8,7 @@ export type OutputWithData = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const OutputValidation: import("@trezor/schema-utils").TObject<{
|
|
10
10
|
address: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
11
|
-
amount: import("@trezor/schema-utils/
|
|
11
|
+
amount: import("@trezor/schema-utils/lib/custom-types/uint").TUint;
|
|
12
12
|
tokenBundle: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TObject<{
|
|
13
13
|
policyId: import("@trezor/schema-utils").TString;
|
|
14
14
|
tokenAmounts: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TObject<{
|
|
@@ -5,8 +5,8 @@ export declare const AssetGroupWithTokens: import("@trezor/schema-utils").TObjec
|
|
|
5
5
|
policyId: import("@trezor/schema-utils").TString;
|
|
6
6
|
tokens: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TObject<{
|
|
7
7
|
asset_name_bytes: import("@trezor/schema-utils").TString;
|
|
8
|
-
amount: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/
|
|
9
|
-
mint_amount: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/
|
|
8
|
+
amount: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/lib/custom-types/uint").TUint>;
|
|
9
|
+
mint_amount: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/lib/custom-types/uint").TUint>;
|
|
10
10
|
}>>;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const tokenBundleToProto: (tokenBundle: CardanoAssetGroup[]) => AssetGroupWithTokens[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BigNumber } from '@trezor/utils/
|
|
1
|
+
import { BigNumber } from '@trezor/utils/lib/bigNumber';
|
|
2
2
|
import type { ComposeOutput, TransactionInputOutputSortingStrategy } from '@trezor/utxo-lib';
|
|
3
3
|
import { AbstractMethod } from '../core/AbstractMethod';
|
|
4
4
|
import { TransactionComposer } from './bitcoin';
|
|
@@ -21,7 +21,7 @@ declare const Params: import("@trezor/schema-utils").TIntersect<[import("@trezor
|
|
|
21
21
|
version: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
22
22
|
chainId: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TNumber, import("@trezor/schema-utils").TBigInt, import("@trezor/schema-utils").TString]>>;
|
|
23
23
|
verifyingContract: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
24
|
-
salt: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils/
|
|
24
|
+
salt: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@trezor/schema-utils").TString]>>;
|
|
25
25
|
}>;
|
|
26
26
|
message: import("@trezor/schema-utils").TObject<{}>;
|
|
27
27
|
}>;
|
|
@@ -43,7 +43,7 @@ declare const Params: import("@trezor/schema-utils").TIntersect<[import("@trezor
|
|
|
43
43
|
version: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
44
44
|
chainId: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TNumber, import("@trezor/schema-utils").TBigInt, import("@trezor/schema-utils").TString]>>;
|
|
45
45
|
verifyingContract: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
46
|
-
salt: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils/
|
|
46
|
+
salt: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@trezor/schema-utils").TString]>>;
|
|
47
47
|
}>;
|
|
48
48
|
message: import("@trezor/schema-utils").TObject<{}>;
|
|
49
49
|
}>;
|
|
@@ -93,8 +93,8 @@ declare const Params: import("@trezor/schema-utils").TIntersect<[import("@trezor
|
|
|
93
93
|
network: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUndefined>;
|
|
94
94
|
}>]>>;
|
|
95
95
|
definitions: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
96
|
-
encoded_network: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/
|
|
97
|
-
encoded_token: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/
|
|
96
|
+
encoded_network: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
97
|
+
encoded_token: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
98
98
|
}>>;
|
|
99
99
|
}>]>;
|
|
100
100
|
export default class EthereumSignTypedData extends AbstractMethod<'ethereumSignTypedData', Params> {
|
|
@@ -31,22 +31,22 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
31
31
|
balance: string;
|
|
32
32
|
availableBalance: string;
|
|
33
33
|
empty: boolean;
|
|
34
|
-
tokens?: import("@trezor/blockchain-link-types/
|
|
35
|
-
addresses?: import("@trezor/blockchain-link-types/
|
|
34
|
+
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[];
|
|
35
|
+
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses;
|
|
36
36
|
history: {
|
|
37
37
|
total: number;
|
|
38
38
|
tokens?: number;
|
|
39
39
|
unconfirmed: number;
|
|
40
|
-
transactions?: import("@trezor/blockchain-link-types/
|
|
40
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
41
41
|
txids?: string[];
|
|
42
42
|
addrTxCount?: number;
|
|
43
43
|
};
|
|
44
44
|
misc?: {
|
|
45
45
|
nonce?: string;
|
|
46
|
-
contractInfo?: import("@trezor/blockchain-link-types/
|
|
47
|
-
stakingPools?: import("@trezor/blockchain-link-types/
|
|
46
|
+
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo;
|
|
47
|
+
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[];
|
|
48
48
|
addressAliases?: {
|
|
49
|
-
[key: string]: import("@trezor/blockchain-link-types/
|
|
49
|
+
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
50
50
|
};
|
|
51
51
|
sequence?: number;
|
|
52
52
|
stellarSequence?: string;
|
|
@@ -68,7 +68,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
68
68
|
};
|
|
69
69
|
owner?: string;
|
|
70
70
|
rent?: number;
|
|
71
|
-
solStakingAccounts?: import("@trezor/blockchain-link-types/
|
|
71
|
+
solStakingAccounts?: import("@trezor/blockchain-link-types/lib/solana").SolanaStakingAccount[];
|
|
72
72
|
solEpoch?: number;
|
|
73
73
|
};
|
|
74
74
|
page?: {
|
|
@@ -89,22 +89,22 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
89
89
|
balance: string;
|
|
90
90
|
availableBalance: string;
|
|
91
91
|
empty: boolean;
|
|
92
|
-
tokens?: import("@trezor/blockchain-link-types/
|
|
93
|
-
addresses?: import("@trezor/blockchain-link-types/
|
|
92
|
+
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[];
|
|
93
|
+
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses;
|
|
94
94
|
history: {
|
|
95
95
|
total: number;
|
|
96
96
|
tokens?: number;
|
|
97
97
|
unconfirmed: number;
|
|
98
|
-
transactions?: import("@trezor/blockchain-link-types/
|
|
98
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
99
99
|
txids?: string[];
|
|
100
100
|
addrTxCount?: number;
|
|
101
101
|
};
|
|
102
102
|
misc?: {
|
|
103
103
|
nonce?: string;
|
|
104
|
-
contractInfo?: import("@trezor/blockchain-link-types/
|
|
105
|
-
stakingPools?: import("@trezor/blockchain-link-types/
|
|
104
|
+
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo;
|
|
105
|
+
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[];
|
|
106
106
|
addressAliases?: {
|
|
107
|
-
[key: string]: import("@trezor/blockchain-link-types/
|
|
107
|
+
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
108
108
|
};
|
|
109
109
|
sequence?: number;
|
|
110
110
|
stellarSequence?: string;
|
|
@@ -126,7 +126,7 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
126
126
|
};
|
|
127
127
|
owner?: string;
|
|
128
128
|
rent?: number;
|
|
129
|
-
solStakingAccounts?: import("@trezor/blockchain-link-types/
|
|
129
|
+
solStakingAccounts?: import("@trezor/blockchain-link-types/lib/solana").SolanaStakingAccount[];
|
|
130
130
|
solEpoch?: number;
|
|
131
131
|
};
|
|
132
132
|
page?: {
|
package/lib/api/getFeatures.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
59
59
|
auto_lock_delay_ms: number | null;
|
|
60
60
|
display_rotation: "North" | "East" | "South" | "West" | null;
|
|
61
61
|
experimental_features: boolean | null;
|
|
62
|
-
internal_model: import("@trezor/protobuf/
|
|
62
|
+
internal_model: import("@trezor/protobuf/lib/messages-schema").DeviceModelInternal;
|
|
63
63
|
}>;
|
|
64
64
|
}
|
|
65
65
|
//# sourceMappingURL=getFeatures.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CompilableTransactionMessage } from '@solana/kit';
|
|
2
2
|
import type { TokenAccount } from '@trezor/blockchain-link-types';
|
|
3
|
-
import type { TokenProgramName } from '@trezor/blockchain-link-utils/
|
|
4
|
-
import { BigNumber } from '@trezor/utils/
|
|
3
|
+
import type { TokenProgramName } from '@trezor/blockchain-link-utils/lib/solana';
|
|
4
|
+
import { BigNumber } from '@trezor/utils/lib/bigNumber';
|
|
5
5
|
import { Blockchain } from '../../backend/Blockchain';
|
|
6
6
|
export declare const SOLANA_BASE_FEE = 5000;
|
|
7
7
|
export declare const getLamportsFromSol: (amountInSol: string) => bigint;
|
|
@@ -53,7 +53,7 @@ export declare class Blockchain {
|
|
|
53
53
|
feePerTx?: string;
|
|
54
54
|
feePayer?: string;
|
|
55
55
|
feeLimit?: string;
|
|
56
|
-
eip1559?: import("@trezor/blockchain-link-types/
|
|
56
|
+
eip1559?: import("@trezor/blockchain-link-types/lib/blockbook-api").Eip1559Fees;
|
|
57
57
|
}[]>;
|
|
58
58
|
subscribeBlocks(): Promise<{
|
|
59
59
|
subscribed: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Capability } from '@trezor/protobuf/
|
|
1
|
+
import { Capability } from '@trezor/protobuf/lib/messages';
|
|
2
2
|
import { NETWORK } from '../constants';
|
|
3
3
|
import type { Device } from '../device/Device';
|
|
4
4
|
import { CallMethodPayload, CallMethodResponse, CoreEventMessage, UI, UiPromiseCreator, UiRequestButtonData, UiRequestConfirmation } from '../events';
|
package/lib/data/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceModelInternal } from '@trezor/device-utils';
|
|
2
|
-
import { TREZOR_USB_DESCRIPTORS } from '@trezor/transport/
|
|
2
|
+
import { TREZOR_USB_DESCRIPTORS } from '@trezor/transport/lib/constants';
|
|
3
3
|
type Config = {
|
|
4
4
|
webusb: typeof TREZOR_USB_DESCRIPTORS;
|
|
5
5
|
whitelist: Array<{
|
package/lib/data/version.d.ts
CHANGED
package/lib/data/version.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DEEPLINK_VERSION = exports.CONTENT_SCRIPT_VERSION = exports.DEFAULT_DOMAIN = exports.DEFAULT_DOMAIN_MAJOR_VER = exports.VERSION = void 0;
|
|
7
|
-
exports.VERSION = '9.7.
|
|
7
|
+
exports.VERSION = '9.7.1-beta.1';
|
|
8
8
|
const versionN = exports.VERSION.split('.').map(s => parseInt(s, 10));
|
|
9
9
|
const isBeta = exports.VERSION.includes('beta');
|
|
10
10
|
exports.DEFAULT_DOMAIN_MAJOR_VER = `https://connect.trezor.io/${versionN[0]}/`;
|
package/lib/device/Device.d.ts
CHANGED
|
@@ -163,15 +163,15 @@ export declare class Device extends TypedEmitter<DeviceEvents> {
|
|
|
163
163
|
readonly lifecycle: TypedEmitter<DeviceLifecycleEvents>;
|
|
164
164
|
private sessionDfd?;
|
|
165
165
|
constructor({ id, transport, descriptor }: DeviceParams);
|
|
166
|
-
get transportPath(): import("@trezor/transport/
|
|
166
|
+
get transportPath(): import("@trezor/transport/lib/types").PathPublic;
|
|
167
167
|
private readonly onTransportStopped;
|
|
168
168
|
private readonly onTransportDeviceEvent;
|
|
169
169
|
private getSessionChangePromise;
|
|
170
170
|
private waitAndCompareSession;
|
|
171
|
-
acquire(): import("@trezor/transport/
|
|
171
|
+
acquire(): import("@trezor/transport/lib/types").AsyncResultWithTypedError<Session, "Network request failed" | "Wrong result type." | "device disconnected during action" | "unexpected error" | "Aborted by timeout" | "Aborted by signal" | "This transport can not be used in this environment" | "device not found" | "Unable to open device" | "wrong previous session" | "LIBUSB_ERROR_ACCESS">;
|
|
172
172
|
reset(): void;
|
|
173
173
|
setBusy(value?: DeviceBusyStatus): void;
|
|
174
|
-
release(): import("@trezor/transport/
|
|
174
|
+
release(): import("@trezor/transport/lib/types").AsyncResultWithTypedError<null, "Network request failed" | "Wrong result type." | "device disconnected during action" | "unexpected error" | "session not found" | "Aborted by timeout" | "Aborted by signal" | "This transport can not be used in this environment" | "device not found" | "Unable to open device" | "wrong previous session"> | undefined;
|
|
175
175
|
setupThp(): Promise<void>;
|
|
176
176
|
handshake(): Promise<boolean>;
|
|
177
177
|
private updateDescriptor;
|