@trezor/connect 9.4.0 → 9.4.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 +83 -8
- package/README.md +1 -1
- package/lib/api/binance/api/index.js +4 -6
- package/lib/api/bitcoin/Fees.d.ts +2 -2
- package/lib/api/bitcoin/outputs.d.ts +1 -1
- package/lib/api/bitcoin/refTx.d.ts +2 -2
- package/lib/api/cardano/api/index.js +6 -8
- package/lib/api/cardano/cardanoInputs.d.ts +10 -10
- package/lib/api/cardano/cardanoOutputs.d.ts +23 -23
- package/lib/api/cardano/cardanoTokenBundle.d.ts +6 -6
- package/lib/api/common/Discovery.d.ts +0 -1
- package/lib/api/common/paramsValidator.js +2 -2
- package/lib/api/composeTransaction.js +3 -0
- package/lib/api/eos/api/index.js +3 -5
- package/lib/api/eos/eosSignTx.d.ts +4 -4
- package/lib/api/eos/eosSignTx.js +2 -2
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +68 -68
- package/lib/api/ethereum/api/index.js +7 -9
- package/lib/api/ethereum/ethereumDefinitions.d.ts +23 -23
- package/lib/api/ethereum/ethereumSignTypedData.js +3 -4
- package/lib/api/firmware/calculateFirmwareHash.d.ts +0 -1
- package/lib/api/firmware/parseFirmwareHeaders.d.ts +0 -1
- package/lib/api/firmware/uploadFirmware.d.ts +6 -1
- package/lib/api/firmware/verifyAuthenticityProof.d.ts +0 -1
- package/lib/api/getAccountInfo.d.ts +38 -38
- package/lib/api/getCoinInfo.d.ts +3 -3
- package/lib/api/getDeviceState.d.ts +2 -1
- package/lib/api/getDeviceState.js +6 -3
- package/lib/api/getFeatures.d.ts +10 -10
- package/lib/api/index.js +49 -51
- package/lib/api/nem/api/index.js +3 -5
- package/lib/api/pushTransaction.js +1 -1
- package/lib/api/ripple/api/index.js +3 -5
- package/lib/api/signTransaction.js +3 -0
- package/lib/api/solana/api/index.js +4 -6
- package/lib/api/stellar/api/index.js +3 -5
- package/lib/api/tezos/api/index.js +4 -6
- package/lib/api/tezos/tezosSignTx.js +2 -2
- package/lib/backend/Blockchain.d.ts +2 -2
- package/lib/backend/BlockchainLink.d.ts +2 -2
- package/lib/constants/nem.d.ts +3 -3
- package/lib/core/AbstractMethod.d.ts +8 -6
- package/lib/core/AbstractMethod.js +26 -3
- package/lib/core/index.d.ts +0 -1
- package/lib/core/index.js +45 -54
- package/lib/core/onCallFirmwareUpdate.js +7 -2
- package/lib/data/DataManager.d.ts +5 -31
- package/lib/data/coinInfo.d.ts +15 -21
- package/lib/data/config.d.ts +5 -31
- package/lib/data/config.js +8 -5
- package/lib/data/deviceAuthenticityConfig.js +32 -14
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +28 -28
- package/lib/data/firmwareInfo.d.ts +2 -2
- package/lib/data/firmwareInfo.js +8 -7
- package/lib/data/models.js +3 -3
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +52 -19
- package/lib/device/Device.js +87 -73
- package/lib/device/DeviceCommands.d.ts +9 -9
- package/lib/device/DeviceCommands.js +10 -10
- package/lib/device/DeviceList.js +60 -83
- package/lib/device/StateStorage.d.ts +15 -0
- package/lib/device/StateStorage.js +40 -0
- package/lib/device/checkFirmwareRevision.js +0 -4
- package/lib/events/device.d.ts +0 -1
- package/lib/events/device.js +0 -1
- package/lib/events/ui-request.d.ts +2 -1
- package/lib/factory.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/types/api/applySettings.d.ts +14 -14
- package/lib/types/api/authenticateDevice.d.ts +30 -30
- package/lib/types/api/authorizeCoinjoin.d.ts +10 -10
- package/lib/types/api/binance/index.d.ts +152 -152
- package/lib/types/api/bitcoin/index.d.ts +12 -12
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +2 -2
- package/lib/types/api/cardano/index.d.ts +556 -556
- package/lib/types/api/changeLanguage.d.ts +7 -7
- package/lib/types/api/cipherKeyValue.d.ts +8 -8
- package/lib/types/api/eos/index.d.ts +633 -633
- package/lib/types/api/ethereum/index.d.ts +124 -124
- package/lib/types/api/firmwareUpdate.d.ts +6 -6
- package/lib/types/api/getAccountDescriptor.d.ts +5 -5
- package/lib/types/api/getAddress.d.ts +33 -33
- package/lib/types/api/getDeviceState.d.ts +3 -1
- package/lib/types/api/getOwnershipId.d.ts +25 -25
- package/lib/types/api/getOwnershipProof.d.ts +29 -29
- package/lib/types/api/getPublicKey.d.ts +25 -25
- package/lib/types/api/nem/index.d.ts +707 -707
- package/lib/types/api/nemGetAddress.d.ts +7 -7
- package/lib/types/api/pushTransaction.d.ts +4 -4
- package/lib/types/api/recoveryDevice.d.ts +10 -10
- package/lib/types/api/requestLogin.d.ts +28 -28
- package/lib/types/api/ripple/index.d.ts +28 -28
- package/lib/types/api/solana/index.d.ts +28 -28
- package/lib/types/api/stellar/index.d.ts +745 -745
- package/lib/types/api/tezos/index.d.ts +129 -129
- package/lib/types/api/unlockPath.d.ts +3 -3
- package/lib/types/coinInfo.d.ts +246 -246
- package/lib/types/device.d.ts +9 -1
- package/lib/types/fees.d.ts +22 -22
- package/lib/types/firmware.d.ts +1 -1
- package/lib/types/params.d.ts +20 -19
- package/lib/utils/assetUtils.js +1 -1
- package/lib/utils/assets-browser.d.ts +1 -1
- package/lib/utils/assets.js +1 -2
- package/lib/utils/debug.d.ts +2 -2
- package/lib/utils/deviceFeaturesUtils.d.ts +1 -1
- package/lib/utils/hdnodeUtils.d.ts +1 -191
- package/lib/utils/hdnodeUtils.js +2 -2
- package/lib/utils/pathUtils.d.ts +1 -191
- package/lib/utils/promiseUtils.d.ts +1 -1
- package/lib/utils/uiPromiseManager.d.ts +2 -2
- package/package.json +15 -13
package/lib/types/device.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ export declare enum FirmwareType {
|
|
|
8
8
|
BitcoinOnly = "bitcoin-only",
|
|
9
9
|
Regular = "regular"
|
|
10
10
|
}
|
|
11
|
+
export type StaticSessionId = `${string}@${string}:${number}`;
|
|
12
|
+
export type DeviceState = {
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
staticSessionId?: StaticSessionId;
|
|
15
|
+
};
|
|
11
16
|
export type UnavailableCapabilities = {
|
|
12
17
|
[key: string]: UnavailableCapability;
|
|
13
18
|
};
|
|
@@ -30,7 +35,8 @@ export type KnownDevice = {
|
|
|
30
35
|
color?: string;
|
|
31
36
|
status: DeviceStatus;
|
|
32
37
|
mode: DeviceMode;
|
|
33
|
-
|
|
38
|
+
_state?: DeviceState;
|
|
39
|
+
state?: DeviceState['staticSessionId'];
|
|
34
40
|
features: PROTO.Features;
|
|
35
41
|
unavailableCapabilities: UnavailableCapabilities;
|
|
36
42
|
availableTranslations: string[];
|
|
@@ -52,6 +58,7 @@ export type UnknownDevice = {
|
|
|
52
58
|
color?: typeof undefined;
|
|
53
59
|
status?: typeof undefined;
|
|
54
60
|
mode?: typeof undefined;
|
|
61
|
+
_state?: typeof undefined;
|
|
55
62
|
state?: typeof undefined;
|
|
56
63
|
unavailableCapabilities?: typeof undefined;
|
|
57
64
|
availableTranslations?: typeof undefined;
|
|
@@ -70,6 +77,7 @@ export type UnreadableDevice = {
|
|
|
70
77
|
color?: typeof undefined;
|
|
71
78
|
status?: typeof undefined;
|
|
72
79
|
mode?: typeof undefined;
|
|
80
|
+
_state?: typeof undefined;
|
|
73
81
|
state?: typeof undefined;
|
|
74
82
|
unavailableCapabilities?: typeof undefined;
|
|
75
83
|
availableTranslations?: typeof undefined;
|
package/lib/types/fees.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
export type FeeInfo = Static<typeof FeeInfo>;
|
|
3
|
-
export declare const FeeInfo: import("@
|
|
4
|
-
blockTime: import("@sinclair/typebox").TNumber;
|
|
5
|
-
minFee: import("@sinclair/typebox").TNumber;
|
|
6
|
-
maxFee: import("@sinclair/typebox").TNumber;
|
|
7
|
-
dustLimit: import("@sinclair/typebox").TNumber;
|
|
3
|
+
export declare const FeeInfo: import("@trezor/schema-utils").TObject<{
|
|
4
|
+
blockTime: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
5
|
+
minFee: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
6
|
+
maxFee: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
7
|
+
dustLimit: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
8
8
|
}>;
|
|
9
9
|
export type FeeLevel = Static<typeof FeeLevel>;
|
|
10
|
-
export declare const FeeLevel: import("@
|
|
11
|
-
label: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"high">, import("@sinclair/typebox").TLiteral<"normal">, import("@sinclair/typebox").TLiteral<"economy">, import("@sinclair/typebox").TLiteral<"low">, import("@sinclair/typebox").TLiteral<"custom">]>;
|
|
12
|
-
feePerUnit: import("@sinclair/typebox").TString;
|
|
13
|
-
blocks: import("@sinclair/typebox").TNumber;
|
|
14
|
-
feeLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
|
-
feePerTx: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
10
|
+
export declare const FeeLevel: import("@trezor/schema-utils").TObject<{
|
|
11
|
+
label: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"high">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"normal">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"economy">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"low">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"custom">]>;
|
|
12
|
+
feePerUnit: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
13
|
+
blocks: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
14
|
+
feeLimit: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
15
|
+
feePerTx: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
16
16
|
}>;
|
|
17
17
|
export type SelectFeeLevel = Static<typeof SelectFeeLevel>;
|
|
18
|
-
export declare const SelectFeeLevel: import("@sinclair/typebox").TUnion<[import("@
|
|
19
|
-
name: import("@sinclair/typebox").TString;
|
|
20
|
-
fee: import("@sinclair/typebox").TLiteral<"0">;
|
|
21
|
-
feePerByte: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
22
|
-
disabled: import("@sinclair/typebox").TLiteral<true>;
|
|
23
|
-
}>, import("@
|
|
24
|
-
name: import("@sinclair/typebox").TString;
|
|
25
|
-
fee: import("@sinclair/typebox").TString;
|
|
26
|
-
feePerByte: import("@sinclair/typebox").TString;
|
|
27
|
-
minutes: import("@sinclair/typebox").TNumber;
|
|
28
|
-
total: import("@sinclair/typebox").TString;
|
|
18
|
+
export declare const SelectFeeLevel: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@trezor/schema-utils").TObject<{
|
|
19
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
20
|
+
fee: import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"0">;
|
|
21
|
+
feePerByte: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUndefined>;
|
|
22
|
+
disabled: import("@sinclair/typebox/build/esm/index.mjs").TLiteral<true>;
|
|
23
|
+
}>, import("@trezor/schema-utils").TObject<{
|
|
24
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
25
|
+
fee: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
26
|
+
feePerByte: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
27
|
+
minutes: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
28
|
+
total: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
29
29
|
}>]>;
|
|
30
30
|
//# sourceMappingURL=fees.d.ts.map
|
package/lib/types/firmware.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type FirmwareRelease = {
|
|
|
21
21
|
translations?: string[];
|
|
22
22
|
};
|
|
23
23
|
export type IntermediaryVersion = 1 | 2 | 3;
|
|
24
|
-
export declare const IntermediaryVersion: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<1>, import("@sinclair/typebox").TLiteral<2>, import("@sinclair/typebox").TLiteral<3>]>;
|
|
24
|
+
export declare const IntermediaryVersion: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TLiteral<1>, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<2>, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<3>]>;
|
|
25
25
|
export type ReleaseInfo = {
|
|
26
26
|
changelog: FirmwareRelease[] | null;
|
|
27
27
|
release: FirmwareRelease;
|
package/lib/types/params.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TSchema, Static } from '@trezor/schema-utils';
|
|
2
|
+
import { DeviceState } from './device';
|
|
2
3
|
export interface CommonParams {
|
|
3
4
|
device?: {
|
|
4
5
|
path?: string;
|
|
5
|
-
state?: string;
|
|
6
|
+
state?: string | DeviceState;
|
|
6
7
|
instance?: number;
|
|
7
8
|
};
|
|
8
9
|
useEmptyPassphrase?: boolean;
|
|
@@ -20,8 +21,8 @@ export type Params<T> = CommonParams & T & {
|
|
|
20
21
|
interface Bundle<T> {
|
|
21
22
|
bundle: T[];
|
|
22
23
|
}
|
|
23
|
-
export declare const Bundle: <T extends TSchema>(type: T) => import("@
|
|
24
|
-
bundle: import("@sinclair/typebox").TArray<T>;
|
|
24
|
+
export declare const Bundle: <T extends TSchema>(type: T) => import("@trezor/schema-utils").TObject<{
|
|
25
|
+
bundle: import("@sinclair/typebox/build/esm/index.mjs").TArray<T>;
|
|
25
26
|
}>;
|
|
26
27
|
export type BundledParams<T> = CommonParams & Bundle<T>;
|
|
27
28
|
export interface CommonParamsWithCoin extends CommonParams {
|
|
@@ -41,7 +42,7 @@ export interface Success<T> {
|
|
|
41
42
|
}
|
|
42
43
|
export type Response<T> = Promise<Success<T> | Unsuccessful>;
|
|
43
44
|
export type DerivationPath = string | number[];
|
|
44
|
-
export declare const DerivationPath: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
45
|
+
export declare const DerivationPath: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TNumber>]>;
|
|
45
46
|
type ProtoWithExtendedAddressN<T, A, R> = Omit<Extract<T, {
|
|
46
47
|
address_n: A;
|
|
47
48
|
}>, 'address_n'> & {
|
|
@@ -53,12 +54,12 @@ type ProtoWithoutAddressN<T, A> = Exclude<T, {
|
|
|
53
54
|
export type ProtoWithDerivationPath<T> = ProtoWithoutAddressN<T, number[]> | ProtoWithExtendedAddressN<T, number[], DerivationPath>;
|
|
54
55
|
export type ProtoWithAddressN<P extends ProtoWithDerivationPath<any>> = P extends ProtoWithDerivationPath<infer T> ? T : unknown;
|
|
55
56
|
export type GetAddress = Static<typeof GetAddress>;
|
|
56
|
-
export declare const GetAddress: import("@
|
|
57
|
-
path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
58
|
-
address: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
59
|
-
showOnTrezor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
60
|
-
chunkify: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
61
|
-
useEventListener: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
57
|
+
export declare const GetAddress: import("@trezor/schema-utils").TObject<{
|
|
58
|
+
path: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TNumber>]>;
|
|
59
|
+
address: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
60
|
+
showOnTrezor: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
61
|
+
chunkify: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
62
|
+
useEventListener: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
62
63
|
}>;
|
|
63
64
|
export interface Address {
|
|
64
65
|
address: string;
|
|
@@ -66,17 +67,17 @@ export interface Address {
|
|
|
66
67
|
serializedPath: string;
|
|
67
68
|
}
|
|
68
69
|
export type GetPublicKey = Static<typeof GetPublicKey>;
|
|
69
|
-
export declare const GetPublicKey: import("@
|
|
70
|
-
path: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>]>;
|
|
71
|
-
showOnTrezor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
72
|
-
suppressBackupWarning: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
73
|
-
chunkify: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
70
|
+
export declare const GetPublicKey: import("@trezor/schema-utils").TObject<{
|
|
71
|
+
path: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TNumber>]>;
|
|
72
|
+
showOnTrezor: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
73
|
+
suppressBackupWarning: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
74
|
+
chunkify: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TBoolean>;
|
|
74
75
|
}>;
|
|
75
76
|
export type PublicKey = Static<typeof PublicKey>;
|
|
76
|
-
export declare const PublicKey: import("@
|
|
77
|
-
publicKey: import("@sinclair/typebox").TString;
|
|
78
|
-
path: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
79
|
-
serializedPath: import("@sinclair/typebox").TString;
|
|
77
|
+
export declare const PublicKey: import("@trezor/schema-utils").TObject<{
|
|
78
|
+
publicKey: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
79
|
+
path: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TNumber>;
|
|
80
|
+
serializedPath: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
80
81
|
}>;
|
|
81
82
|
export {};
|
|
82
83
|
//# sourceMappingURL=params.d.ts.map
|
package/lib/utils/assetUtils.js
CHANGED
|
@@ -9,7 +9,7 @@ const firmwareAssets = {
|
|
|
9
9
|
[types_1.DeviceModelInternal.T1B1]: require('@trezor/connect-common/files/firmware/t1b1/releases.json'),
|
|
10
10
|
[types_1.DeviceModelInternal.T2T1]: require('@trezor/connect-common/files/firmware/t2t1/releases.json'),
|
|
11
11
|
[types_1.DeviceModelInternal.T2B1]: require('@trezor/connect-common/files/firmware/t2b1/releases.json'),
|
|
12
|
-
[types_1.DeviceModelInternal.T3B1]: require('@trezor/connect-common/files/firmware/
|
|
12
|
+
[types_1.DeviceModelInternal.T3B1]: require('@trezor/connect-common/files/firmware/t3b1/releases.json'),
|
|
13
13
|
[types_1.DeviceModelInternal.T3T1]: require('@trezor/connect-common/files/firmware/t3t1/releases.json'),
|
|
14
14
|
};
|
|
15
15
|
const getAssetByUrl = (url) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const httpRequest: (url: string, type?:
|
|
1
|
+
export declare const httpRequest: (url: string, type?: "text" | "binary" | "json", options?: RequestInit) => Promise<any>;
|
|
2
2
|
//# sourceMappingURL=assets-browser.d.ts.map
|
package/lib/utils/assets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.httpRequest =
|
|
3
|
+
exports.httpRequest = httpRequest;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cross_fetch_1 = tslib_1.__importDefault(require("cross-fetch"));
|
|
6
6
|
const fs_1 = require("fs");
|
|
@@ -16,5 +16,4 @@ function httpRequest(url, type, options, skipLocalForceDownload) {
|
|
|
16
16
|
}
|
|
17
17
|
return asset;
|
|
18
18
|
}
|
|
19
|
-
exports.httpRequest = httpRequest;
|
|
20
19
|
//# sourceMappingURL=assets.js.map
|
package/lib/utils/debug.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const initLog: (prefix: string, enabled?: boolean
|
|
1
|
+
export declare const initLog: (prefix: string, enabled?: boolean, logWriter?: import("@trezor/utils").LogWriter) => import("@trezor/utils").Log;
|
|
2
2
|
export declare const setLogWriter: (logWriterFactory: () => import("@trezor/utils").LogWriter | undefined) => void;
|
|
3
|
-
export declare const enableLog: (enabled?: boolean
|
|
3
|
+
export declare const enableLog: (enabled?: boolean) => void;
|
|
4
4
|
export declare const enableLogByPrefix: (prefix: string, enabled: boolean) => void;
|
|
5
5
|
export declare const getLog: () => import("@trezor/utils").LogMessage[];
|
|
6
6
|
export type { LogMessage, LogWriter, Log } from '@trezor/utils';
|
|
@@ -3,5 +3,5 @@ import { Features, CoinInfo, UnavailableCapabilities, DeviceModelInternal } from
|
|
|
3
3
|
export declare const parseCapabilities: (features?: Features) => PROTO.Capability[];
|
|
4
4
|
export declare const getUnavailableCapabilities: (features: Features, coins: CoinInfo[]) => UnavailableCapabilities;
|
|
5
5
|
export declare const parseRevision: (features: Features) => string | null;
|
|
6
|
-
export declare const ensureInternalModelFeature: (model: Features[
|
|
6
|
+
export declare const ensureInternalModelFeature: (model: Features["model"]) => DeviceModelInternal;
|
|
7
7
|
//# sourceMappingURL=deviceFeaturesUtils.d.ts.map
|
|
@@ -4,195 +4,5 @@ export declare const convertXpub: (xpub: string, originalNetwork?: Network, requ
|
|
|
4
4
|
export declare const convertBitcoinXpub: (xpub: string, network: Network) => string;
|
|
5
5
|
export declare function xpubDerive<PK extends PROTO.PublicKey | PROTO.EthereumPublicKey>(xpub: PK, childXPub: PK, suffix: number, network?: Network, _requestedNetwork?: Network): PK;
|
|
6
6
|
export declare const xpubToHDNodeType: (xpub: string, network: Network) => PROTO.HDNodeType;
|
|
7
|
-
export declare const convertMultisigPubKey: <T extends (
|
|
8
|
-
sequence?: number | undefined;
|
|
9
|
-
multisig?: {
|
|
10
|
-
address_n?: number[] | undefined;
|
|
11
|
-
nodes?: {
|
|
12
|
-
private_key?: string | undefined;
|
|
13
|
-
public_key: string;
|
|
14
|
-
depth: number;
|
|
15
|
-
fingerprint: number;
|
|
16
|
-
child_num: number;
|
|
17
|
-
chain_code: string;
|
|
18
|
-
}[] | undefined;
|
|
19
|
-
pubkeys: {
|
|
20
|
-
address_n: number[];
|
|
21
|
-
node: string | {
|
|
22
|
-
private_key?: string | undefined;
|
|
23
|
-
public_key: string;
|
|
24
|
-
depth: number;
|
|
25
|
-
fingerprint: number;
|
|
26
|
-
child_num: number;
|
|
27
|
-
chain_code: string;
|
|
28
|
-
};
|
|
29
|
-
}[];
|
|
30
|
-
signatures: string[];
|
|
31
|
-
m: number;
|
|
32
|
-
} | undefined;
|
|
33
|
-
decred_tree?: number | undefined;
|
|
34
|
-
orig_hash?: string | undefined;
|
|
35
|
-
orig_index?: number | undefined;
|
|
36
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
37
|
-
script_pubkey?: string | undefined;
|
|
38
|
-
coinjoin_flags?: number | undefined;
|
|
39
|
-
script_sig?: string | undefined;
|
|
40
|
-
witness?: string | undefined;
|
|
41
|
-
ownership_proof?: string | undefined;
|
|
42
|
-
commitment_data?: string | undefined;
|
|
43
|
-
amount: string | number;
|
|
44
|
-
prev_hash: string;
|
|
45
|
-
prev_index: number;
|
|
46
|
-
} & {
|
|
47
|
-
script_type?: "SPENDADDRESS" | "SPENDMULTISIG" | "SPENDWITNESS" | "SPENDP2SHWITNESS" | "SPENDTAPROOT" | undefined;
|
|
48
|
-
address_n: number[];
|
|
49
|
-
}) | ({
|
|
50
|
-
sequence?: number | undefined;
|
|
51
|
-
multisig?: {
|
|
52
|
-
address_n?: number[] | undefined;
|
|
53
|
-
nodes?: {
|
|
54
|
-
private_key?: string | undefined;
|
|
55
|
-
public_key: string;
|
|
56
|
-
depth: number;
|
|
57
|
-
fingerprint: number;
|
|
58
|
-
child_num: number;
|
|
59
|
-
chain_code: string;
|
|
60
|
-
}[] | undefined;
|
|
61
|
-
pubkeys: {
|
|
62
|
-
address_n: number[];
|
|
63
|
-
node: string | {
|
|
64
|
-
private_key?: string | undefined;
|
|
65
|
-
public_key: string;
|
|
66
|
-
depth: number;
|
|
67
|
-
fingerprint: number;
|
|
68
|
-
child_num: number;
|
|
69
|
-
chain_code: string;
|
|
70
|
-
};
|
|
71
|
-
}[];
|
|
72
|
-
signatures: string[];
|
|
73
|
-
m: number;
|
|
74
|
-
} | undefined;
|
|
75
|
-
decred_tree?: number | undefined;
|
|
76
|
-
orig_hash?: string | undefined;
|
|
77
|
-
orig_index?: number | undefined;
|
|
78
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
79
|
-
script_pubkey?: string | undefined;
|
|
80
|
-
coinjoin_flags?: number | undefined;
|
|
81
|
-
script_sig?: string | undefined;
|
|
82
|
-
witness?: string | undefined;
|
|
83
|
-
ownership_proof?: string | undefined;
|
|
84
|
-
commitment_data?: string | undefined;
|
|
85
|
-
amount: string | number;
|
|
86
|
-
prev_hash: string;
|
|
87
|
-
prev_index: number;
|
|
88
|
-
} & {
|
|
89
|
-
address_n?: undefined;
|
|
90
|
-
script_pubkey: string;
|
|
91
|
-
script_type: "EXTERNAL";
|
|
92
|
-
}) | {
|
|
93
|
-
address_n?: undefined;
|
|
94
|
-
multisig?: {
|
|
95
|
-
address_n?: number[] | undefined;
|
|
96
|
-
nodes?: {
|
|
97
|
-
private_key?: string | undefined;
|
|
98
|
-
public_key: string;
|
|
99
|
-
depth: number;
|
|
100
|
-
fingerprint: number;
|
|
101
|
-
child_num: number;
|
|
102
|
-
chain_code: string;
|
|
103
|
-
}[] | undefined;
|
|
104
|
-
pubkeys: {
|
|
105
|
-
address_n: number[];
|
|
106
|
-
node: string | {
|
|
107
|
-
private_key?: string | undefined;
|
|
108
|
-
public_key: string;
|
|
109
|
-
depth: number;
|
|
110
|
-
fingerprint: number;
|
|
111
|
-
child_num: number;
|
|
112
|
-
chain_code: string;
|
|
113
|
-
};
|
|
114
|
-
}[];
|
|
115
|
-
signatures: string[];
|
|
116
|
-
m: number;
|
|
117
|
-
} | undefined;
|
|
118
|
-
orig_hash?: string | undefined;
|
|
119
|
-
orig_index?: number | undefined;
|
|
120
|
-
payment_req_index?: number | undefined;
|
|
121
|
-
address: string;
|
|
122
|
-
amount: string | number;
|
|
123
|
-
script_type: "PAYTOADDRESS";
|
|
124
|
-
} | {
|
|
125
|
-
address?: undefined;
|
|
126
|
-
multisig?: {
|
|
127
|
-
address_n?: number[] | undefined;
|
|
128
|
-
nodes?: {
|
|
129
|
-
private_key?: string | undefined;
|
|
130
|
-
public_key: string;
|
|
131
|
-
depth: number;
|
|
132
|
-
fingerprint: number;
|
|
133
|
-
child_num: number;
|
|
134
|
-
chain_code: string;
|
|
135
|
-
}[] | undefined;
|
|
136
|
-
pubkeys: {
|
|
137
|
-
address_n: number[];
|
|
138
|
-
node: string | {
|
|
139
|
-
private_key?: string | undefined;
|
|
140
|
-
public_key: string;
|
|
141
|
-
depth: number;
|
|
142
|
-
fingerprint: number;
|
|
143
|
-
child_num: number;
|
|
144
|
-
chain_code: string;
|
|
145
|
-
};
|
|
146
|
-
}[];
|
|
147
|
-
signatures: string[];
|
|
148
|
-
m: number;
|
|
149
|
-
} | undefined;
|
|
150
|
-
orig_hash?: string | undefined;
|
|
151
|
-
orig_index?: number | undefined;
|
|
152
|
-
script_type?: "PAYTOADDRESS" | "PAYTOSCRIPTHASH" | "PAYTOMULTISIG" | "PAYTOWITNESS" | "PAYTOP2SHWITNESS" | "PAYTOTAPROOT" | undefined;
|
|
153
|
-
payment_req_index?: number | undefined;
|
|
154
|
-
address_n: number[];
|
|
155
|
-
amount: string | number;
|
|
156
|
-
} | {
|
|
157
|
-
address_n?: undefined;
|
|
158
|
-
multisig?: {
|
|
159
|
-
address_n?: number[] | undefined;
|
|
160
|
-
nodes?: {
|
|
161
|
-
private_key?: string | undefined;
|
|
162
|
-
public_key: string;
|
|
163
|
-
depth: number;
|
|
164
|
-
fingerprint: number;
|
|
165
|
-
child_num: number;
|
|
166
|
-
chain_code: string;
|
|
167
|
-
}[] | undefined;
|
|
168
|
-
pubkeys: {
|
|
169
|
-
address_n: number[];
|
|
170
|
-
node: string | {
|
|
171
|
-
private_key?: string | undefined;
|
|
172
|
-
public_key: string;
|
|
173
|
-
depth: number;
|
|
174
|
-
fingerprint: number;
|
|
175
|
-
child_num: number;
|
|
176
|
-
chain_code: string;
|
|
177
|
-
};
|
|
178
|
-
}[];
|
|
179
|
-
signatures: string[];
|
|
180
|
-
m: number;
|
|
181
|
-
} | undefined;
|
|
182
|
-
orig_hash?: string | undefined;
|
|
183
|
-
orig_index?: number | undefined;
|
|
184
|
-
script_type?: "PAYTOADDRESS" | "PAYTOSCRIPTHASH" | "PAYTOMULTISIG" | "PAYTOWITNESS" | "PAYTOP2SHWITNESS" | "PAYTOTAPROOT" | undefined;
|
|
185
|
-
payment_req_index?: number | undefined;
|
|
186
|
-
address: string;
|
|
187
|
-
amount: string | number;
|
|
188
|
-
} | {
|
|
189
|
-
address_n?: undefined;
|
|
190
|
-
address?: undefined;
|
|
191
|
-
orig_hash?: string | undefined;
|
|
192
|
-
orig_index?: number | undefined;
|
|
193
|
-
payment_req_index?: number | undefined;
|
|
194
|
-
amount: 0 | "0";
|
|
195
|
-
script_type: "PAYTOOPRETURN";
|
|
196
|
-
op_return_data: string;
|
|
197
|
-
}>(network: Network, utxo: T) => T;
|
|
7
|
+
export declare const convertMultisigPubKey: <T extends PROTO.TxInputType | PROTO.TxOutputType>(network: Network, utxo: T) => T;
|
|
198
8
|
//# sourceMappingURL=hdnodeUtils.d.ts.map
|
package/lib/utils/hdnodeUtils.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertMultisigPubKey = exports.xpubToHDNodeType = exports.
|
|
3
|
+
exports.convertMultisigPubKey = exports.xpubToHDNodeType = exports.convertBitcoinXpub = exports.convertXpub = void 0;
|
|
4
|
+
exports.xpubDerive = xpubDerive;
|
|
4
5
|
const utxo_lib_1 = require("@trezor/utxo-lib");
|
|
5
6
|
const constants_1 = require("../constants");
|
|
6
7
|
const pubNode2bjsNode = (node, network) => {
|
|
@@ -53,7 +54,6 @@ function xpubDerive(xpub, childXPub, suffix, network, _requestedNetwork) {
|
|
|
53
54
|
checkDerivation(resNode, childNode, suffix);
|
|
54
55
|
return xpub;
|
|
55
56
|
}
|
|
56
|
-
exports.xpubDerive = xpubDerive;
|
|
57
57
|
const xpubToHDNodeType = (xpub, network) => {
|
|
58
58
|
const hd = utxo_lib_1.bip32.fromBase58(xpub, network);
|
|
59
59
|
return {
|
package/lib/utils/pathUtils.d.ts
CHANGED
|
@@ -15,196 +15,6 @@ export declare const validatePath: (path: DerivationPath, length?: number, base?
|
|
|
15
15
|
export declare const getSerializedPath: (path: number[]) => string;
|
|
16
16
|
export declare const getPathFromIndex: (bip44purpose: number, bip44cointype: number, index: number) => number[];
|
|
17
17
|
export declare const getIndexFromPath: (path: number[]) => number;
|
|
18
|
-
export declare const fixPath: <T extends ProtoWithDerivationPath<(
|
|
19
|
-
sequence?: number | undefined;
|
|
20
|
-
multisig?: {
|
|
21
|
-
address_n?: number[] | undefined;
|
|
22
|
-
nodes?: {
|
|
23
|
-
private_key?: string | undefined;
|
|
24
|
-
public_key: string;
|
|
25
|
-
depth: number;
|
|
26
|
-
fingerprint: number;
|
|
27
|
-
child_num: number;
|
|
28
|
-
chain_code: string;
|
|
29
|
-
}[] | undefined;
|
|
30
|
-
pubkeys: {
|
|
31
|
-
address_n: number[];
|
|
32
|
-
node: string | {
|
|
33
|
-
private_key?: string | undefined;
|
|
34
|
-
public_key: string;
|
|
35
|
-
depth: number;
|
|
36
|
-
fingerprint: number;
|
|
37
|
-
child_num: number;
|
|
38
|
-
chain_code: string;
|
|
39
|
-
};
|
|
40
|
-
}[];
|
|
41
|
-
signatures: string[];
|
|
42
|
-
m: number;
|
|
43
|
-
} | undefined;
|
|
44
|
-
decred_tree?: number | undefined;
|
|
45
|
-
orig_hash?: string | undefined;
|
|
46
|
-
orig_index?: number | undefined;
|
|
47
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
48
|
-
script_pubkey?: string | undefined;
|
|
49
|
-
coinjoin_flags?: number | undefined;
|
|
50
|
-
script_sig?: string | undefined;
|
|
51
|
-
witness?: string | undefined;
|
|
52
|
-
ownership_proof?: string | undefined;
|
|
53
|
-
commitment_data?: string | undefined;
|
|
54
|
-
amount: string | number;
|
|
55
|
-
prev_hash: string;
|
|
56
|
-
prev_index: number;
|
|
57
|
-
} & {
|
|
58
|
-
script_type?: "SPENDADDRESS" | "SPENDMULTISIG" | "SPENDWITNESS" | "SPENDP2SHWITNESS" | "SPENDTAPROOT" | undefined;
|
|
59
|
-
address_n: number[];
|
|
60
|
-
}) | ({
|
|
61
|
-
sequence?: number | undefined;
|
|
62
|
-
multisig?: {
|
|
63
|
-
address_n?: number[] | undefined;
|
|
64
|
-
nodes?: {
|
|
65
|
-
private_key?: string | undefined;
|
|
66
|
-
public_key: string;
|
|
67
|
-
depth: number;
|
|
68
|
-
fingerprint: number;
|
|
69
|
-
child_num: number;
|
|
70
|
-
chain_code: string;
|
|
71
|
-
}[] | undefined;
|
|
72
|
-
pubkeys: {
|
|
73
|
-
address_n: number[];
|
|
74
|
-
node: string | {
|
|
75
|
-
private_key?: string | undefined;
|
|
76
|
-
public_key: string;
|
|
77
|
-
depth: number;
|
|
78
|
-
fingerprint: number;
|
|
79
|
-
child_num: number;
|
|
80
|
-
chain_code: string;
|
|
81
|
-
};
|
|
82
|
-
}[];
|
|
83
|
-
signatures: string[];
|
|
84
|
-
m: number;
|
|
85
|
-
} | undefined;
|
|
86
|
-
decred_tree?: number | undefined;
|
|
87
|
-
orig_hash?: string | undefined;
|
|
88
|
-
orig_index?: number | undefined;
|
|
89
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
90
|
-
script_pubkey?: string | undefined;
|
|
91
|
-
coinjoin_flags?: number | undefined;
|
|
92
|
-
script_sig?: string | undefined;
|
|
93
|
-
witness?: string | undefined;
|
|
94
|
-
ownership_proof?: string | undefined;
|
|
95
|
-
commitment_data?: string | undefined;
|
|
96
|
-
amount: string | number;
|
|
97
|
-
prev_hash: string;
|
|
98
|
-
prev_index: number;
|
|
99
|
-
} & {
|
|
100
|
-
address_n?: undefined;
|
|
101
|
-
script_pubkey: string;
|
|
102
|
-
script_type: "EXTERNAL";
|
|
103
|
-
})> | ProtoWithDerivationPath<{
|
|
104
|
-
address_n?: undefined;
|
|
105
|
-
multisig?: {
|
|
106
|
-
address_n?: number[] | undefined;
|
|
107
|
-
nodes?: {
|
|
108
|
-
private_key?: string | undefined;
|
|
109
|
-
public_key: string;
|
|
110
|
-
depth: number;
|
|
111
|
-
fingerprint: number;
|
|
112
|
-
child_num: number;
|
|
113
|
-
chain_code: string;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
pubkeys: {
|
|
116
|
-
address_n: number[];
|
|
117
|
-
node: string | {
|
|
118
|
-
private_key?: string | undefined;
|
|
119
|
-
public_key: string;
|
|
120
|
-
depth: number;
|
|
121
|
-
fingerprint: number;
|
|
122
|
-
child_num: number;
|
|
123
|
-
chain_code: string;
|
|
124
|
-
};
|
|
125
|
-
}[];
|
|
126
|
-
signatures: string[];
|
|
127
|
-
m: number;
|
|
128
|
-
} | undefined;
|
|
129
|
-
orig_hash?: string | undefined;
|
|
130
|
-
orig_index?: number | undefined;
|
|
131
|
-
payment_req_index?: number | undefined;
|
|
132
|
-
address: string;
|
|
133
|
-
amount: string | number;
|
|
134
|
-
script_type: "PAYTOADDRESS";
|
|
135
|
-
} | {
|
|
136
|
-
address?: undefined;
|
|
137
|
-
multisig?: {
|
|
138
|
-
address_n?: number[] | undefined;
|
|
139
|
-
nodes?: {
|
|
140
|
-
private_key?: string | undefined;
|
|
141
|
-
public_key: string;
|
|
142
|
-
depth: number;
|
|
143
|
-
fingerprint: number;
|
|
144
|
-
child_num: number;
|
|
145
|
-
chain_code: string;
|
|
146
|
-
}[] | undefined;
|
|
147
|
-
pubkeys: {
|
|
148
|
-
address_n: number[];
|
|
149
|
-
node: string | {
|
|
150
|
-
private_key?: string | undefined;
|
|
151
|
-
public_key: string;
|
|
152
|
-
depth: number;
|
|
153
|
-
fingerprint: number;
|
|
154
|
-
child_num: number;
|
|
155
|
-
chain_code: string;
|
|
156
|
-
};
|
|
157
|
-
}[];
|
|
158
|
-
signatures: string[];
|
|
159
|
-
m: number;
|
|
160
|
-
} | undefined;
|
|
161
|
-
orig_hash?: string | undefined;
|
|
162
|
-
orig_index?: number | undefined;
|
|
163
|
-
script_type?: "PAYTOADDRESS" | "PAYTOSCRIPTHASH" | "PAYTOMULTISIG" | "PAYTOWITNESS" | "PAYTOP2SHWITNESS" | "PAYTOTAPROOT" | undefined;
|
|
164
|
-
payment_req_index?: number | undefined;
|
|
165
|
-
address_n: number[];
|
|
166
|
-
amount: string | number;
|
|
167
|
-
} | {
|
|
168
|
-
address_n?: undefined;
|
|
169
|
-
multisig?: {
|
|
170
|
-
address_n?: number[] | undefined;
|
|
171
|
-
nodes?: {
|
|
172
|
-
private_key?: string | undefined;
|
|
173
|
-
public_key: string;
|
|
174
|
-
depth: number;
|
|
175
|
-
fingerprint: number;
|
|
176
|
-
child_num: number;
|
|
177
|
-
chain_code: string;
|
|
178
|
-
}[] | undefined;
|
|
179
|
-
pubkeys: {
|
|
180
|
-
address_n: number[];
|
|
181
|
-
node: string | {
|
|
182
|
-
private_key?: string | undefined;
|
|
183
|
-
public_key: string;
|
|
184
|
-
depth: number;
|
|
185
|
-
fingerprint: number;
|
|
186
|
-
child_num: number;
|
|
187
|
-
chain_code: string;
|
|
188
|
-
};
|
|
189
|
-
}[];
|
|
190
|
-
signatures: string[];
|
|
191
|
-
m: number;
|
|
192
|
-
} | undefined;
|
|
193
|
-
orig_hash?: string | undefined;
|
|
194
|
-
orig_index?: number | undefined;
|
|
195
|
-
script_type?: "PAYTOADDRESS" | "PAYTOSCRIPTHASH" | "PAYTOMULTISIG" | "PAYTOWITNESS" | "PAYTOP2SHWITNESS" | "PAYTOTAPROOT" | undefined;
|
|
196
|
-
payment_req_index?: number | undefined;
|
|
197
|
-
address: string;
|
|
198
|
-
amount: string | number;
|
|
199
|
-
} | {
|
|
200
|
-
address_n?: undefined;
|
|
201
|
-
address?: undefined;
|
|
202
|
-
orig_hash?: string | undefined;
|
|
203
|
-
orig_index?: number | undefined;
|
|
204
|
-
payment_req_index?: number | undefined;
|
|
205
|
-
amount: 0 | "0";
|
|
206
|
-
script_type: "PAYTOOPRETURN";
|
|
207
|
-
op_return_data: string;
|
|
208
|
-
}>>(utxo: T) => ProtoWithAddressN<T>;
|
|
18
|
+
export declare const fixPath: <T extends ProtoWithDerivationPath<PROTO.TxInputType> | ProtoWithDerivationPath<PROTO.TxOutputType>>(utxo: T) => ProtoWithAddressN<T>;
|
|
209
19
|
export declare const getLabel: (label: string, coinInfo?: CoinInfo) => string;
|
|
210
20
|
//# sourceMappingURL=pathUtils.d.ts.map
|