@trezor/connect 9.4.0 → 9.4.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 +92 -4
- 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 +17 -15
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ethereumVerifyMessage = exports.ethereumSignTypedData = exports.ethereumSignTransaction = exports.ethereumSignMessage = exports.ethereumGetPublicKey = exports.ethereumGetAddress = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var ethereumGetAddress_1 = require("./ethereumGetAddress");
|
|
8
|
-
Object.defineProperty(exports, "ethereumGetAddress", { enumerable: true, get: function () { return __importDefault(ethereumGetAddress_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "ethereumGetAddress", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumGetAddress_1).default; } });
|
|
9
7
|
var ethereumGetPublicKey_1 = require("./ethereumGetPublicKey");
|
|
10
|
-
Object.defineProperty(exports, "ethereumGetPublicKey", { enumerable: true, get: function () { return __importDefault(ethereumGetPublicKey_1).default; } });
|
|
8
|
+
Object.defineProperty(exports, "ethereumGetPublicKey", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumGetPublicKey_1).default; } });
|
|
11
9
|
var ethereumSignMessage_1 = require("./ethereumSignMessage");
|
|
12
|
-
Object.defineProperty(exports, "ethereumSignMessage", { enumerable: true, get: function () { return __importDefault(ethereumSignMessage_1).default; } });
|
|
10
|
+
Object.defineProperty(exports, "ethereumSignMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignMessage_1).default; } });
|
|
13
11
|
var ethereumSignTransaction_1 = require("./ethereumSignTransaction");
|
|
14
|
-
Object.defineProperty(exports, "ethereumSignTransaction", { enumerable: true, get: function () { return __importDefault(ethereumSignTransaction_1).default; } });
|
|
12
|
+
Object.defineProperty(exports, "ethereumSignTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignTransaction_1).default; } });
|
|
15
13
|
var ethereumSignTypedData_1 = require("./ethereumSignTypedData");
|
|
16
|
-
Object.defineProperty(exports, "ethereumSignTypedData", { enumerable: true, get: function () { return __importDefault(ethereumSignTypedData_1).default; } });
|
|
14
|
+
Object.defineProperty(exports, "ethereumSignTypedData", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignTypedData_1).default; } });
|
|
17
15
|
var ethereumVerifyMessage_1 = require("./ethereumVerifyMessage");
|
|
18
|
-
Object.defineProperty(exports, "ethereumVerifyMessage", { enumerable: true, get: function () { return __importDefault(ethereumVerifyMessage_1).default; } });
|
|
16
|
+
Object.defineProperty(exports, "ethereumVerifyMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumVerifyMessage_1).default; } });
|
|
19
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,34 +11,34 @@ export declare const getEthereumDefinitions: ({ chainId, slip44, contractAddress
|
|
|
11
11
|
encoded_token?: ArrayBuffer | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
export type EthereumNetworkDefinitionDecoded = Static<typeof EthereumNetworkDefinitionDecoded>;
|
|
14
|
-
export declare const EthereumNetworkDefinitionDecoded: import("@
|
|
15
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
16
|
-
name: import("@sinclair/typebox").TString;
|
|
17
|
-
slip44: import("@sinclair/typebox").TNumber;
|
|
18
|
-
symbol: import("@sinclair/typebox").TString;
|
|
14
|
+
export declare const EthereumNetworkDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
15
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
16
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
17
|
+
slip44: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
18
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
19
19
|
}>;
|
|
20
20
|
export type EthereumTokenDefinitionDecoded = Static<typeof EthereumTokenDefinitionDecoded>;
|
|
21
|
-
export declare const EthereumTokenDefinitionDecoded: import("@
|
|
22
|
-
address: import("@sinclair/typebox").TString;
|
|
23
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
24
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
25
|
-
name: import("@sinclair/typebox").TString;
|
|
26
|
-
symbol: import("@sinclair/typebox").TString;
|
|
21
|
+
export declare const EthereumTokenDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
22
|
+
address: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
23
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
24
|
+
decimals: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
25
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
26
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
27
27
|
}>;
|
|
28
28
|
export type EthereumDefinitionDecoded = Static<typeof EthereumDefinitionDecoded>;
|
|
29
|
-
export declare const EthereumDefinitionDecoded: import("@
|
|
30
|
-
network: import("@sinclair/typebox").TOptional<import("@
|
|
31
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
32
|
-
name: import("@sinclair/typebox").TString;
|
|
33
|
-
slip44: import("@sinclair/typebox").TNumber;
|
|
34
|
-
symbol: import("@sinclair/typebox").TString;
|
|
29
|
+
export declare const EthereumDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
30
|
+
network: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
31
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
32
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
33
|
+
slip44: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
34
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
35
35
|
}>>;
|
|
36
|
-
token: import("@sinclair/typebox").TOptional<import("@
|
|
37
|
-
address: import("@sinclair/typebox").TString;
|
|
38
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
39
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
40
|
-
name: import("@sinclair/typebox").TString;
|
|
41
|
-
symbol: import("@sinclair/typebox").TString;
|
|
36
|
+
token: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
37
|
+
address: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
38
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
39
|
+
decimals: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
40
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
41
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
42
42
|
}>>;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const decodeEthereumDefinition: (encodedDefinition: MessagesSchema.EthereumDefinitions) => EthereumDefinitionDecoded;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.parseArrayType = parseArrayType;
|
|
4
|
+
exports.encodeData = encodeData;
|
|
5
|
+
exports.getFieldType = getFieldType;
|
|
4
6
|
const bigNumber_1 = require("@trezor/utils/lib/bigNumber");
|
|
5
7
|
const constants_1 = require("../../constants");
|
|
6
8
|
const formatUtils_1 = require("../../utils/formatUtils");
|
|
@@ -18,7 +20,6 @@ function parseArrayType(arrayTypeName) {
|
|
|
18
20
|
arraySize: parseInt(arraySize, 10) || null,
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
exports.parseArrayType = parseArrayType;
|
|
22
23
|
function twosComplement(number, bytes) {
|
|
23
24
|
if (bytes < 1 || bytes > 32) {
|
|
24
25
|
throw constants_1.ERRORS.TypedError('Runtime', 'Int byte size must be between 1 and 32 (8 and 256 bits)');
|
|
@@ -67,7 +68,6 @@ function encodeData(typeName, data) {
|
|
|
67
68
|
}
|
|
68
69
|
throw constants_1.ERRORS.TypedError('Runtime', `Unsupported data type for direct field encoding: ${typeName}`);
|
|
69
70
|
}
|
|
70
|
-
exports.encodeData = encodeData;
|
|
71
71
|
const paramTypesMap = {
|
|
72
72
|
string: constants_1.PROTO.EthereumDataType.STRING,
|
|
73
73
|
bool: constants_1.PROTO.EthereumDataType.BOOL,
|
|
@@ -115,5 +115,4 @@ function getFieldType(typeName, types) {
|
|
|
115
115
|
}
|
|
116
116
|
throw constants_1.ERRORS.TypedError('Runtime', `No type definition specified: ${typeName}`);
|
|
117
117
|
}
|
|
118
|
-
exports.getFieldType = getFieldType;
|
|
119
118
|
//# sourceMappingURL=ethereumSignTypedData.js.map
|
|
@@ -2,7 +2,12 @@ import { CoreEventMessage } from '../../events';
|
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
3
|
import type { Device } from '../../device/Device';
|
|
4
4
|
import type { TypedCall } from '../../device/DeviceCommands';
|
|
5
|
-
export declare const uploadFirmware: (typedCall: TypedCall, postMessage: (message: CoreEventMessage) => void, device: Device, { payload }: PROTO.FirmwareUpload) => Promise<
|
|
5
|
+
export declare const uploadFirmware: (typedCall: TypedCall, postMessage: (message: CoreEventMessage) => void, device: Device, { payload }: PROTO.FirmwareUpload) => Promise<{
|
|
6
|
+
type: "Success";
|
|
7
|
+
message: {
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
6
11
|
message: string;
|
|
7
12
|
}>;
|
|
8
13
|
//# sourceMappingURL=uploadFirmware.d.ts.map
|
|
@@ -31,44 +31,44 @@ 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/lib/common").TokenInfo[]
|
|
35
|
-
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses
|
|
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
|
-
tokens?: number
|
|
38
|
+
tokens?: number;
|
|
39
39
|
unconfirmed: number;
|
|
40
|
-
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[]
|
|
41
|
-
txids?: string[]
|
|
42
|
-
addrTxCount?: number
|
|
40
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
41
|
+
txids?: string[];
|
|
42
|
+
addrTxCount?: number;
|
|
43
43
|
};
|
|
44
44
|
misc?: {
|
|
45
|
-
nonce?: string
|
|
46
|
-
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo
|
|
47
|
-
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[]
|
|
45
|
+
nonce?: string;
|
|
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
49
|
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
50
|
-
}
|
|
51
|
-
sequence?: number
|
|
52
|
-
reserve?: string
|
|
53
|
-
rewards?: string
|
|
50
|
+
};
|
|
51
|
+
sequence?: number;
|
|
52
|
+
reserve?: string;
|
|
53
|
+
rewards?: string;
|
|
54
54
|
staking?: {
|
|
55
55
|
address: string;
|
|
56
56
|
isActive: boolean;
|
|
57
57
|
rewards: string;
|
|
58
58
|
poolId: string | null;
|
|
59
|
-
}
|
|
60
|
-
owner?: string
|
|
61
|
-
rent?: number
|
|
62
|
-
}
|
|
59
|
+
};
|
|
60
|
+
owner?: string;
|
|
61
|
+
rent?: number;
|
|
62
|
+
};
|
|
63
63
|
page?: {
|
|
64
64
|
index: number;
|
|
65
65
|
size: number;
|
|
66
66
|
total: number;
|
|
67
|
-
}
|
|
67
|
+
};
|
|
68
68
|
marker?: {
|
|
69
69
|
ledger: number;
|
|
70
70
|
seq: number;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
72
|
path: string;
|
|
73
73
|
}>;
|
|
74
74
|
discover(request: Request): Promise<{
|
|
@@ -77,44 +77,44 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
77
77
|
balance: string;
|
|
78
78
|
availableBalance: string;
|
|
79
79
|
empty: boolean;
|
|
80
|
-
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[]
|
|
81
|
-
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses
|
|
80
|
+
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[];
|
|
81
|
+
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses;
|
|
82
82
|
history: {
|
|
83
83
|
total: number;
|
|
84
|
-
tokens?: number
|
|
84
|
+
tokens?: number;
|
|
85
85
|
unconfirmed: number;
|
|
86
|
-
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[]
|
|
87
|
-
txids?: string[]
|
|
88
|
-
addrTxCount?: number
|
|
86
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
87
|
+
txids?: string[];
|
|
88
|
+
addrTxCount?: number;
|
|
89
89
|
};
|
|
90
90
|
misc?: {
|
|
91
|
-
nonce?: string
|
|
92
|
-
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo
|
|
93
|
-
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[]
|
|
91
|
+
nonce?: string;
|
|
92
|
+
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo;
|
|
93
|
+
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[];
|
|
94
94
|
addressAliases?: {
|
|
95
95
|
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
96
|
-
}
|
|
97
|
-
sequence?: number
|
|
98
|
-
reserve?: string
|
|
99
|
-
rewards?: string
|
|
96
|
+
};
|
|
97
|
+
sequence?: number;
|
|
98
|
+
reserve?: string;
|
|
99
|
+
rewards?: string;
|
|
100
100
|
staking?: {
|
|
101
101
|
address: string;
|
|
102
102
|
isActive: boolean;
|
|
103
103
|
rewards: string;
|
|
104
104
|
poolId: string | null;
|
|
105
|
-
}
|
|
106
|
-
owner?: string
|
|
107
|
-
rent?: number
|
|
108
|
-
}
|
|
105
|
+
};
|
|
106
|
+
owner?: string;
|
|
107
|
+
rent?: number;
|
|
108
|
+
};
|
|
109
109
|
page?: {
|
|
110
110
|
index: number;
|
|
111
111
|
size: number;
|
|
112
112
|
total: number;
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
marker?: {
|
|
115
115
|
ledger: number;
|
|
116
116
|
seq: number;
|
|
117
|
-
}
|
|
117
|
+
};
|
|
118
118
|
path: string;
|
|
119
119
|
}>;
|
|
120
120
|
dispose(): void;
|
package/lib/api/getCoinInfo.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
29
29
|
defaultFees: {
|
|
30
30
|
feeLimit?: string | undefined;
|
|
31
31
|
feePerTx?: string | undefined;
|
|
32
|
-
label: "
|
|
32
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
33
33
|
feePerUnit: string;
|
|
34
34
|
blocks: number;
|
|
35
35
|
}[];
|
|
@@ -86,7 +86,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
86
86
|
defaultFees: {
|
|
87
87
|
feeLimit?: string | undefined;
|
|
88
88
|
feePerTx?: string | undefined;
|
|
89
|
-
label: "
|
|
89
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
90
90
|
feePerUnit: string;
|
|
91
91
|
blocks: number;
|
|
92
92
|
}[];
|
|
@@ -118,7 +118,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
118
118
|
defaultFees: {
|
|
119
119
|
feeLimit?: string | undefined;
|
|
120
120
|
feePerTx?: string | undefined;
|
|
121
|
-
label: "
|
|
121
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
122
122
|
feePerUnit: string;
|
|
123
123
|
blocks: number;
|
|
124
124
|
}[];
|
|
@@ -2,7 +2,8 @@ import { AbstractMethod } from '../core/AbstractMethod';
|
|
|
2
2
|
export default class GetDeviceState extends AbstractMethod<'getDeviceState'> {
|
|
3
3
|
init(): void;
|
|
4
4
|
run(): Promise<{
|
|
5
|
-
state: string
|
|
5
|
+
state: `${string}@${string}:${number}`;
|
|
6
|
+
_state: import("..").DeviceState;
|
|
6
7
|
}>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=getDeviceState.d.ts.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const AbstractMethod_1 = require("../core/AbstractMethod");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
4
5
|
class GetDeviceState extends AbstractMethod_1.AbstractMethod {
|
|
5
6
|
init() {
|
|
6
7
|
this.requiredPermissions = [];
|
|
7
8
|
}
|
|
8
9
|
run() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const state = this.device.getState();
|
|
11
|
+
if (!(state === null || state === void 0 ? void 0 : state.staticSessionId)) {
|
|
12
|
+
throw constants_1.ERRORS.TypedError('Runtime', 'Device state not set');
|
|
13
|
+
}
|
|
14
|
+
return Promise.resolve({ state: state.staticSessionId, _state: state });
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
exports.default = GetDeviceState;
|
package/lib/api/getFeatures.d.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { AbstractMethod } from '../core/AbstractMethod';
|
|
|
2
2
|
export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
3
3
|
init(): void;
|
|
4
4
|
run(): Promise<{
|
|
5
|
-
hide_passphrase_from_host?: boolean | undefined;
|
|
6
|
-
haptic_feedback?: boolean | undefined;
|
|
7
5
|
_passphrase_cached?: boolean | undefined;
|
|
8
6
|
busy?: boolean | undefined;
|
|
9
7
|
homescreen_format?: "Toif" | "Jpeg" | "ToiG" | undefined;
|
|
8
|
+
hide_passphrase_from_host?: boolean | undefined;
|
|
10
9
|
unit_color?: number | undefined;
|
|
11
10
|
unit_btconly?: boolean | undefined;
|
|
12
11
|
homescreen_width?: number | undefined;
|
|
@@ -14,16 +13,9 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
14
13
|
bootloader_locked?: boolean | undefined;
|
|
15
14
|
language_version_matches?: boolean | undefined;
|
|
16
15
|
unit_packaging?: number | undefined;
|
|
16
|
+
haptic_feedback?: boolean | undefined;
|
|
17
17
|
recovery_type?: "NormalRecovery" | "DryRun" | "UnlockRepeatedBackup" | undefined;
|
|
18
18
|
optiga_sec?: number | undefined;
|
|
19
|
-
flags: number | null;
|
|
20
|
-
language: string | null;
|
|
21
|
-
label: string | null;
|
|
22
|
-
auto_lock_delay_ms: number | null;
|
|
23
|
-
display_rotation: number | null;
|
|
24
|
-
passphrase_always_on_device: boolean | null;
|
|
25
|
-
safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
|
|
26
|
-
experimental_features: boolean | null;
|
|
27
19
|
vendor: string;
|
|
28
20
|
major_version: number;
|
|
29
21
|
minor_version: number;
|
|
@@ -32,6 +24,8 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
32
24
|
device_id: string | null;
|
|
33
25
|
pin_protection: boolean | null;
|
|
34
26
|
passphrase_protection: boolean | null;
|
|
27
|
+
language: string | null;
|
|
28
|
+
label: string | null;
|
|
35
29
|
initialized: boolean | null;
|
|
36
30
|
revision: string | null;
|
|
37
31
|
bootloader_hash: string | null;
|
|
@@ -39,6 +33,7 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
39
33
|
unlocked: boolean | null;
|
|
40
34
|
firmware_present: boolean | null;
|
|
41
35
|
backup_availability: "NotAvailable" | "Required" | "Available" | null;
|
|
36
|
+
flags: number | null;
|
|
42
37
|
model: string;
|
|
43
38
|
fw_major: number | null;
|
|
44
39
|
fw_minor: number | null;
|
|
@@ -53,6 +48,11 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
53
48
|
sd_protection: boolean | null;
|
|
54
49
|
wipe_code_protection: boolean | null;
|
|
55
50
|
session_id: string | null;
|
|
51
|
+
passphrase_always_on_device: boolean | null;
|
|
52
|
+
safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
|
|
53
|
+
auto_lock_delay_ms: number | null;
|
|
54
|
+
display_rotation: number | null;
|
|
55
|
+
experimental_features: boolean | null;
|
|
56
56
|
internal_model: import("@trezor/protobuf").DeviceModelInternal;
|
|
57
57
|
}>;
|
|
58
58
|
}
|
package/lib/api/index.js
CHANGED
|
@@ -1,103 +1,101 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.checkFirmwareAuthenticity = exports.wipeDevice = exports.verifyMessage = exports.unlockPath = exports.signTransaction = exports.signMessage = exports.setProxy = exports.setBusy = exports.setBrightness = exports.resetDevice = exports.requestLogin = exports.recoveryDevice = exports.rebootToBootloader = exports.pushTransaction = exports.getSettings = exports.getPublicKey = exports.getOwnershipProof = exports.getOwnershipId = exports.getFirmwareHash = exports.getFeatures = exports.getDeviceState = exports.getCoinInfo = exports.getAddress = exports.getAccountInfo = exports.getAccountDescriptor = exports.composeTransaction = exports.cipherKeyValue = exports.changeWipeCode = exports.changePin = exports.changeLanguage = exports.blockchainUnsubscribeFiatRates = exports.blockchainUnsubscribe = exports.blockchainSubscribeFiatRates = exports.blockchainSubscribe = exports.blockchainSetCustomBackend = exports.blockchainGetTransactions = exports.blockchainGetFiatRatesForTimestamps = exports.blockchainGetCurrentFiatRates = exports.blockchainGetAccountBalanceHistory = exports.blockchainEstimateFee = exports.blockchainDisconnect = exports.backupDevice = exports.showDeviceTutorial = exports.cancelCoinjoinAuthorization = exports.authorizeCoinjoin = exports.authenticateDevice = exports.applySettings = exports.applyFlags = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var applyFlags_1 = require("./applyFlags");
|
|
8
|
-
Object.defineProperty(exports, "applyFlags", { enumerable: true, get: function () { return __importDefault(applyFlags_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "applyFlags", { enumerable: true, get: function () { return tslib_1.__importDefault(applyFlags_1).default; } });
|
|
9
7
|
var applySettings_1 = require("./applySettings");
|
|
10
|
-
Object.defineProperty(exports, "applySettings", { enumerable: true, get: function () { return __importDefault(applySettings_1).default; } });
|
|
8
|
+
Object.defineProperty(exports, "applySettings", { enumerable: true, get: function () { return tslib_1.__importDefault(applySettings_1).default; } });
|
|
11
9
|
var authenticateDevice_1 = require("./authenticateDevice");
|
|
12
|
-
Object.defineProperty(exports, "authenticateDevice", { enumerable: true, get: function () { return __importDefault(authenticateDevice_1).default; } });
|
|
10
|
+
Object.defineProperty(exports, "authenticateDevice", { enumerable: true, get: function () { return tslib_1.__importDefault(authenticateDevice_1).default; } });
|
|
13
11
|
var authorizeCoinjoin_1 = require("./authorizeCoinjoin");
|
|
14
|
-
Object.defineProperty(exports, "authorizeCoinjoin", { enumerable: true, get: function () { return __importDefault(authorizeCoinjoin_1).default; } });
|
|
12
|
+
Object.defineProperty(exports, "authorizeCoinjoin", { enumerable: true, get: function () { return tslib_1.__importDefault(authorizeCoinjoin_1).default; } });
|
|
15
13
|
var cancelCoinjoinAuthorization_1 = require("./cancelCoinjoinAuthorization");
|
|
16
|
-
Object.defineProperty(exports, "cancelCoinjoinAuthorization", { enumerable: true, get: function () { return __importDefault(cancelCoinjoinAuthorization_1).default; } });
|
|
14
|
+
Object.defineProperty(exports, "cancelCoinjoinAuthorization", { enumerable: true, get: function () { return tslib_1.__importDefault(cancelCoinjoinAuthorization_1).default; } });
|
|
17
15
|
var showDeviceTutorial_1 = require("./showDeviceTutorial");
|
|
18
|
-
Object.defineProperty(exports, "showDeviceTutorial", { enumerable: true, get: function () { return __importDefault(showDeviceTutorial_1).default; } });
|
|
16
|
+
Object.defineProperty(exports, "showDeviceTutorial", { enumerable: true, get: function () { return tslib_1.__importDefault(showDeviceTutorial_1).default; } });
|
|
19
17
|
var backupDevice_1 = require("./backupDevice");
|
|
20
|
-
Object.defineProperty(exports, "backupDevice", { enumerable: true, get: function () { return __importDefault(backupDevice_1).default; } });
|
|
18
|
+
Object.defineProperty(exports, "backupDevice", { enumerable: true, get: function () { return tslib_1.__importDefault(backupDevice_1).default; } });
|
|
21
19
|
var blockchainDisconnect_1 = require("./blockchainDisconnect");
|
|
22
|
-
Object.defineProperty(exports, "blockchainDisconnect", { enumerable: true, get: function () { return __importDefault(blockchainDisconnect_1).default; } });
|
|
20
|
+
Object.defineProperty(exports, "blockchainDisconnect", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainDisconnect_1).default; } });
|
|
23
21
|
var blockchainEstimateFee_1 = require("./blockchainEstimateFee");
|
|
24
|
-
Object.defineProperty(exports, "blockchainEstimateFee", { enumerable: true, get: function () { return __importDefault(blockchainEstimateFee_1).default; } });
|
|
22
|
+
Object.defineProperty(exports, "blockchainEstimateFee", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainEstimateFee_1).default; } });
|
|
25
23
|
var blockchainGetAccountBalanceHistory_1 = require("./blockchainGetAccountBalanceHistory");
|
|
26
|
-
Object.defineProperty(exports, "blockchainGetAccountBalanceHistory", { enumerable: true, get: function () { return __importDefault(blockchainGetAccountBalanceHistory_1).default; } });
|
|
24
|
+
Object.defineProperty(exports, "blockchainGetAccountBalanceHistory", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainGetAccountBalanceHistory_1).default; } });
|
|
27
25
|
var blockchainGetCurrentFiatRates_1 = require("./blockchainGetCurrentFiatRates");
|
|
28
|
-
Object.defineProperty(exports, "blockchainGetCurrentFiatRates", { enumerable: true, get: function () { return __importDefault(blockchainGetCurrentFiatRates_1).default; } });
|
|
26
|
+
Object.defineProperty(exports, "blockchainGetCurrentFiatRates", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainGetCurrentFiatRates_1).default; } });
|
|
29
27
|
var blockchainGetFiatRatesForTimestamps_1 = require("./blockchainGetFiatRatesForTimestamps");
|
|
30
|
-
Object.defineProperty(exports, "blockchainGetFiatRatesForTimestamps", { enumerable: true, get: function () { return __importDefault(blockchainGetFiatRatesForTimestamps_1).default; } });
|
|
28
|
+
Object.defineProperty(exports, "blockchainGetFiatRatesForTimestamps", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainGetFiatRatesForTimestamps_1).default; } });
|
|
31
29
|
var blockchainGetTransactions_1 = require("./blockchainGetTransactions");
|
|
32
|
-
Object.defineProperty(exports, "blockchainGetTransactions", { enumerable: true, get: function () { return __importDefault(blockchainGetTransactions_1).default; } });
|
|
30
|
+
Object.defineProperty(exports, "blockchainGetTransactions", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainGetTransactions_1).default; } });
|
|
33
31
|
var blockchainSetCustomBackend_1 = require("./blockchainSetCustomBackend");
|
|
34
|
-
Object.defineProperty(exports, "blockchainSetCustomBackend", { enumerable: true, get: function () { return __importDefault(blockchainSetCustomBackend_1).default; } });
|
|
32
|
+
Object.defineProperty(exports, "blockchainSetCustomBackend", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainSetCustomBackend_1).default; } });
|
|
35
33
|
var blockchainSubscribe_1 = require("./blockchainSubscribe");
|
|
36
|
-
Object.defineProperty(exports, "blockchainSubscribe", { enumerable: true, get: function () { return __importDefault(blockchainSubscribe_1).default; } });
|
|
34
|
+
Object.defineProperty(exports, "blockchainSubscribe", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainSubscribe_1).default; } });
|
|
37
35
|
var blockchainSubscribeFiatRates_1 = require("./blockchainSubscribeFiatRates");
|
|
38
|
-
Object.defineProperty(exports, "blockchainSubscribeFiatRates", { enumerable: true, get: function () { return __importDefault(blockchainSubscribeFiatRates_1).default; } });
|
|
36
|
+
Object.defineProperty(exports, "blockchainSubscribeFiatRates", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainSubscribeFiatRates_1).default; } });
|
|
39
37
|
var blockchainUnsubscribe_1 = require("./blockchainUnsubscribe");
|
|
40
|
-
Object.defineProperty(exports, "blockchainUnsubscribe", { enumerable: true, get: function () { return __importDefault(blockchainUnsubscribe_1).default; } });
|
|
38
|
+
Object.defineProperty(exports, "blockchainUnsubscribe", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainUnsubscribe_1).default; } });
|
|
41
39
|
var blockchainUnsubscribeFiatRates_1 = require("./blockchainUnsubscribeFiatRates");
|
|
42
|
-
Object.defineProperty(exports, "blockchainUnsubscribeFiatRates", { enumerable: true, get: function () { return __importDefault(blockchainUnsubscribeFiatRates_1).default; } });
|
|
40
|
+
Object.defineProperty(exports, "blockchainUnsubscribeFiatRates", { enumerable: true, get: function () { return tslib_1.__importDefault(blockchainUnsubscribeFiatRates_1).default; } });
|
|
43
41
|
var changeLanguage_1 = require("./changeLanguage");
|
|
44
|
-
Object.defineProperty(exports, "changeLanguage", { enumerable: true, get: function () { return __importDefault(changeLanguage_1).default; } });
|
|
42
|
+
Object.defineProperty(exports, "changeLanguage", { enumerable: true, get: function () { return tslib_1.__importDefault(changeLanguage_1).default; } });
|
|
45
43
|
var changePin_1 = require("./changePin");
|
|
46
|
-
Object.defineProperty(exports, "changePin", { enumerable: true, get: function () { return __importDefault(changePin_1).default; } });
|
|
44
|
+
Object.defineProperty(exports, "changePin", { enumerable: true, get: function () { return tslib_1.__importDefault(changePin_1).default; } });
|
|
47
45
|
var changeWipeCode_1 = require("./changeWipeCode");
|
|
48
|
-
Object.defineProperty(exports, "changeWipeCode", { enumerable: true, get: function () { return __importDefault(changeWipeCode_1).default; } });
|
|
46
|
+
Object.defineProperty(exports, "changeWipeCode", { enumerable: true, get: function () { return tslib_1.__importDefault(changeWipeCode_1).default; } });
|
|
49
47
|
var cipherKeyValue_1 = require("./cipherKeyValue");
|
|
50
|
-
Object.defineProperty(exports, "cipherKeyValue", { enumerable: true, get: function () { return __importDefault(cipherKeyValue_1).default; } });
|
|
48
|
+
Object.defineProperty(exports, "cipherKeyValue", { enumerable: true, get: function () { return tslib_1.__importDefault(cipherKeyValue_1).default; } });
|
|
51
49
|
var composeTransaction_1 = require("./composeTransaction");
|
|
52
|
-
Object.defineProperty(exports, "composeTransaction", { enumerable: true, get: function () { return __importDefault(composeTransaction_1).default; } });
|
|
50
|
+
Object.defineProperty(exports, "composeTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(composeTransaction_1).default; } });
|
|
53
51
|
var getAccountDescriptor_1 = require("./getAccountDescriptor");
|
|
54
|
-
Object.defineProperty(exports, "getAccountDescriptor", { enumerable: true, get: function () { return __importDefault(getAccountDescriptor_1).default; } });
|
|
52
|
+
Object.defineProperty(exports, "getAccountDescriptor", { enumerable: true, get: function () { return tslib_1.__importDefault(getAccountDescriptor_1).default; } });
|
|
55
53
|
var getAccountInfo_1 = require("./getAccountInfo");
|
|
56
|
-
Object.defineProperty(exports, "getAccountInfo", { enumerable: true, get: function () { return __importDefault(getAccountInfo_1).default; } });
|
|
54
|
+
Object.defineProperty(exports, "getAccountInfo", { enumerable: true, get: function () { return tslib_1.__importDefault(getAccountInfo_1).default; } });
|
|
57
55
|
var getAddress_1 = require("./getAddress");
|
|
58
|
-
Object.defineProperty(exports, "getAddress", { enumerable: true, get: function () { return __importDefault(getAddress_1).default; } });
|
|
56
|
+
Object.defineProperty(exports, "getAddress", { enumerable: true, get: function () { return tslib_1.__importDefault(getAddress_1).default; } });
|
|
59
57
|
var getCoinInfo_1 = require("./getCoinInfo");
|
|
60
|
-
Object.defineProperty(exports, "getCoinInfo", { enumerable: true, get: function () { return __importDefault(getCoinInfo_1).default; } });
|
|
58
|
+
Object.defineProperty(exports, "getCoinInfo", { enumerable: true, get: function () { return tslib_1.__importDefault(getCoinInfo_1).default; } });
|
|
61
59
|
var getDeviceState_1 = require("./getDeviceState");
|
|
62
|
-
Object.defineProperty(exports, "getDeviceState", { enumerable: true, get: function () { return __importDefault(getDeviceState_1).default; } });
|
|
60
|
+
Object.defineProperty(exports, "getDeviceState", { enumerable: true, get: function () { return tslib_1.__importDefault(getDeviceState_1).default; } });
|
|
63
61
|
var getFeatures_1 = require("./getFeatures");
|
|
64
|
-
Object.defineProperty(exports, "getFeatures", { enumerable: true, get: function () { return __importDefault(getFeatures_1).default; } });
|
|
62
|
+
Object.defineProperty(exports, "getFeatures", { enumerable: true, get: function () { return tslib_1.__importDefault(getFeatures_1).default; } });
|
|
65
63
|
var getFirmwareHash_1 = require("./getFirmwareHash");
|
|
66
|
-
Object.defineProperty(exports, "getFirmwareHash", { enumerable: true, get: function () { return __importDefault(getFirmwareHash_1).default; } });
|
|
64
|
+
Object.defineProperty(exports, "getFirmwareHash", { enumerable: true, get: function () { return tslib_1.__importDefault(getFirmwareHash_1).default; } });
|
|
67
65
|
var getOwnershipId_1 = require("./getOwnershipId");
|
|
68
|
-
Object.defineProperty(exports, "getOwnershipId", { enumerable: true, get: function () { return __importDefault(getOwnershipId_1).default; } });
|
|
66
|
+
Object.defineProperty(exports, "getOwnershipId", { enumerable: true, get: function () { return tslib_1.__importDefault(getOwnershipId_1).default; } });
|
|
69
67
|
var getOwnershipProof_1 = require("./getOwnershipProof");
|
|
70
|
-
Object.defineProperty(exports, "getOwnershipProof", { enumerable: true, get: function () { return __importDefault(getOwnershipProof_1).default; } });
|
|
68
|
+
Object.defineProperty(exports, "getOwnershipProof", { enumerable: true, get: function () { return tslib_1.__importDefault(getOwnershipProof_1).default; } });
|
|
71
69
|
var getPublicKey_1 = require("./getPublicKey");
|
|
72
|
-
Object.defineProperty(exports, "getPublicKey", { enumerable: true, get: function () { return __importDefault(getPublicKey_1).default; } });
|
|
70
|
+
Object.defineProperty(exports, "getPublicKey", { enumerable: true, get: function () { return tslib_1.__importDefault(getPublicKey_1).default; } });
|
|
73
71
|
var getSettings_1 = require("./getSettings");
|
|
74
|
-
Object.defineProperty(exports, "getSettings", { enumerable: true, get: function () { return __importDefault(getSettings_1).default; } });
|
|
72
|
+
Object.defineProperty(exports, "getSettings", { enumerable: true, get: function () { return tslib_1.__importDefault(getSettings_1).default; } });
|
|
75
73
|
var pushTransaction_1 = require("./pushTransaction");
|
|
76
|
-
Object.defineProperty(exports, "pushTransaction", { enumerable: true, get: function () { return __importDefault(pushTransaction_1).default; } });
|
|
74
|
+
Object.defineProperty(exports, "pushTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(pushTransaction_1).default; } });
|
|
77
75
|
var rebootToBootloader_1 = require("./rebootToBootloader");
|
|
78
|
-
Object.defineProperty(exports, "rebootToBootloader", { enumerable: true, get: function () { return __importDefault(rebootToBootloader_1).default; } });
|
|
76
|
+
Object.defineProperty(exports, "rebootToBootloader", { enumerable: true, get: function () { return tslib_1.__importDefault(rebootToBootloader_1).default; } });
|
|
79
77
|
var recoveryDevice_1 = require("./recoveryDevice");
|
|
80
|
-
Object.defineProperty(exports, "recoveryDevice", { enumerable: true, get: function () { return __importDefault(recoveryDevice_1).default; } });
|
|
78
|
+
Object.defineProperty(exports, "recoveryDevice", { enumerable: true, get: function () { return tslib_1.__importDefault(recoveryDevice_1).default; } });
|
|
81
79
|
var requestLogin_1 = require("./requestLogin");
|
|
82
|
-
Object.defineProperty(exports, "requestLogin", { enumerable: true, get: function () { return __importDefault(requestLogin_1).default; } });
|
|
80
|
+
Object.defineProperty(exports, "requestLogin", { enumerable: true, get: function () { return tslib_1.__importDefault(requestLogin_1).default; } });
|
|
83
81
|
var resetDevice_1 = require("./resetDevice");
|
|
84
|
-
Object.defineProperty(exports, "resetDevice", { enumerable: true, get: function () { return __importDefault(resetDevice_1).default; } });
|
|
82
|
+
Object.defineProperty(exports, "resetDevice", { enumerable: true, get: function () { return tslib_1.__importDefault(resetDevice_1).default; } });
|
|
85
83
|
var setBrightness_1 = require("./setBrightness");
|
|
86
|
-
Object.defineProperty(exports, "setBrightness", { enumerable: true, get: function () { return __importDefault(setBrightness_1).default; } });
|
|
84
|
+
Object.defineProperty(exports, "setBrightness", { enumerable: true, get: function () { return tslib_1.__importDefault(setBrightness_1).default; } });
|
|
87
85
|
var setBusy_1 = require("./setBusy");
|
|
88
|
-
Object.defineProperty(exports, "setBusy", { enumerable: true, get: function () { return __importDefault(setBusy_1).default; } });
|
|
86
|
+
Object.defineProperty(exports, "setBusy", { enumerable: true, get: function () { return tslib_1.__importDefault(setBusy_1).default; } });
|
|
89
87
|
var setProxy_1 = require("./setProxy");
|
|
90
|
-
Object.defineProperty(exports, "setProxy", { enumerable: true, get: function () { return __importDefault(setProxy_1).default; } });
|
|
88
|
+
Object.defineProperty(exports, "setProxy", { enumerable: true, get: function () { return tslib_1.__importDefault(setProxy_1).default; } });
|
|
91
89
|
var signMessage_1 = require("./signMessage");
|
|
92
|
-
Object.defineProperty(exports, "signMessage", { enumerable: true, get: function () { return __importDefault(signMessage_1).default; } });
|
|
90
|
+
Object.defineProperty(exports, "signMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(signMessage_1).default; } });
|
|
93
91
|
var signTransaction_1 = require("./signTransaction");
|
|
94
|
-
Object.defineProperty(exports, "signTransaction", { enumerable: true, get: function () { return __importDefault(signTransaction_1).default; } });
|
|
92
|
+
Object.defineProperty(exports, "signTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(signTransaction_1).default; } });
|
|
95
93
|
var unlockPath_1 = require("./unlockPath");
|
|
96
|
-
Object.defineProperty(exports, "unlockPath", { enumerable: true, get: function () { return __importDefault(unlockPath_1).default; } });
|
|
94
|
+
Object.defineProperty(exports, "unlockPath", { enumerable: true, get: function () { return tslib_1.__importDefault(unlockPath_1).default; } });
|
|
97
95
|
var verifyMessage_1 = require("./verifyMessage");
|
|
98
|
-
Object.defineProperty(exports, "verifyMessage", { enumerable: true, get: function () { return __importDefault(verifyMessage_1).default; } });
|
|
96
|
+
Object.defineProperty(exports, "verifyMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(verifyMessage_1).default; } });
|
|
99
97
|
var wipeDevice_1 = require("./wipeDevice");
|
|
100
|
-
Object.defineProperty(exports, "wipeDevice", { enumerable: true, get: function () { return __importDefault(wipeDevice_1).default; } });
|
|
98
|
+
Object.defineProperty(exports, "wipeDevice", { enumerable: true, get: function () { return tslib_1.__importDefault(wipeDevice_1).default; } });
|
|
101
99
|
var checkFirmwareAuthenticity_1 = require("./checkFirmwareAuthenticity");
|
|
102
|
-
Object.defineProperty(exports, "checkFirmwareAuthenticity", { enumerable: true, get: function () { return __importDefault(checkFirmwareAuthenticity_1).default; } });
|
|
100
|
+
Object.defineProperty(exports, "checkFirmwareAuthenticity", { enumerable: true, get: function () { return tslib_1.__importDefault(checkFirmwareAuthenticity_1).default; } });
|
|
103
101
|
//# sourceMappingURL=index.js.map
|
package/lib/api/nem/api/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.nemSignTransaction = exports.nemGetAddress = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var nemGetAddress_1 = require("./nemGetAddress");
|
|
8
|
-
Object.defineProperty(exports, "nemGetAddress", { enumerable: true, get: function () { return __importDefault(nemGetAddress_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "nemGetAddress", { enumerable: true, get: function () { return tslib_1.__importDefault(nemGetAddress_1).default; } });
|
|
9
7
|
var nemSignTransaction_1 = require("./nemSignTransaction");
|
|
10
|
-
Object.defineProperty(exports, "nemSignTransaction", { enumerable: true, get: function () { return __importDefault(nemSignTransaction_1).default; } });
|
|
8
|
+
Object.defineProperty(exports, "nemSignTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(nemSignTransaction_1).default; } });
|
|
11
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -8,7 +8,7 @@ const schema_utils_1 = require("@trezor/schema-utils");
|
|
|
8
8
|
const pushTransaction_1 = require("../types/api/pushTransaction");
|
|
9
9
|
class PushTransaction extends AbstractMethod_1.AbstractMethod {
|
|
10
10
|
init() {
|
|
11
|
-
this.requiredPermissions = [];
|
|
11
|
+
this.requiredPermissions = ['push_tx'];
|
|
12
12
|
this.useUi = false;
|
|
13
13
|
this.useDevice = false;
|
|
14
14
|
const { payload } = this;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.rippleSignTransaction = exports.rippleGetAddress = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var rippleGetAddress_1 = require("./rippleGetAddress");
|
|
8
|
-
Object.defineProperty(exports, "rippleGetAddress", { enumerable: true, get: function () { return __importDefault(rippleGetAddress_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "rippleGetAddress", { enumerable: true, get: function () { return tslib_1.__importDefault(rippleGetAddress_1).default; } });
|
|
9
7
|
var rippleSignTransaction_1 = require("./rippleSignTransaction");
|
|
10
|
-
Object.defineProperty(exports, "rippleSignTransaction", { enumerable: true, get: function () { return __importDefault(rippleSignTransaction_1).default; } });
|
|
8
|
+
Object.defineProperty(exports, "rippleSignTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(rippleSignTransaction_1).default; } });
|
|
11
9
|
//# sourceMappingURL=index.js.map
|