@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UiPromiseCreator, UiPromiseResponse } from '../events';
|
|
2
2
|
export declare const createUiPromiseManager: (interactionTimeout: () => void) => {
|
|
3
|
-
exists: (type: UiPromiseResponse[
|
|
3
|
+
exists: (type: UiPromiseResponse["type"]) => boolean;
|
|
4
4
|
create: UiPromiseCreator;
|
|
5
5
|
resolve: (event: UiPromiseResponse) => boolean;
|
|
6
6
|
rejectAll: (error: Error) => void;
|
|
7
7
|
disconnected: (devicePath: string) => boolean;
|
|
8
|
-
get: <T extends "
|
|
8
|
+
get: <T extends UiPromiseResponse["type"]>(type: T) => Promise<Extract<import("../events").UiResponsePopupHandshake, {
|
|
9
9
|
type: T;
|
|
10
10
|
}> | Extract<import("../events").UiResponsePermission, {
|
|
11
11
|
type: T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trezor/connect",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.1-beta.1",
|
|
4
4
|
"author": "Trezor <info@trezor.io>",
|
|
5
5
|
"homepage": "https://github.com/trezor/trezor-suite/tree/develop/packages/connect",
|
|
6
6
|
"description": "High-level javascript interface for Trezor hardware wallet.",
|
|
@@ -59,7 +59,9 @@
|
|
|
59
59
|
"build:lib": "yarn g:rimraf ./lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/replace-imports.sh ./lib",
|
|
60
60
|
"version:prerelease": "yarn g:tsx scripts/bump-version.ts prerelease",
|
|
61
61
|
"version:patch": "yarn g:tsx scripts/bump-version.ts patch",
|
|
62
|
+
"version:prepatch": "yarn g:tsx scripts/bump-version.ts prepatch",
|
|
62
63
|
"version:minor": "yarn g:tsx scripts/bump-version.ts minor",
|
|
64
|
+
"version:preminor": "yarn g:tsx scripts/bump-version.ts preminor",
|
|
63
65
|
"version:major": "yarn g:tsx scripts/bump-version.ts major",
|
|
64
66
|
"test:e2e:web": "ts-node -O '{\"module\": \"commonjs\", \"moduleResolution\": \"node\"}' ./e2e/run.ts web",
|
|
65
67
|
"test:e2e:node": "ts-node -O '{\"module\": \"commonjs\", \"moduleResolution\": \"node\"}' ./e2e/run.ts node",
|
|
@@ -71,19 +73,19 @@
|
|
|
71
73
|
"@ethereumjs/common": "^4.3.0",
|
|
72
74
|
"@ethereumjs/tx": "^5.3.0",
|
|
73
75
|
"@fivebinaries/coin-selection": "2.2.1",
|
|
74
|
-
"@trezor/blockchain-link": "2.3.
|
|
76
|
+
"@trezor/blockchain-link": "2.3.1-beta.1",
|
|
75
77
|
"@trezor/blockchain-link-types": "1.2.0",
|
|
76
78
|
"@trezor/connect-analytics": "1.2.0",
|
|
77
|
-
"@trezor/connect-common": "0.2.
|
|
78
|
-
"@trezor/protobuf": "1.2.
|
|
79
|
-
"@trezor/protocol": "1.2.
|
|
80
|
-
"@trezor/schema-utils": "1.2.
|
|
81
|
-
"@trezor/transport": "1.3.
|
|
82
|
-
"@trezor/utils": "9.2.
|
|
83
|
-
"@trezor/utxo-lib": "2.2.
|
|
79
|
+
"@trezor/connect-common": "0.2.1-beta.1",
|
|
80
|
+
"@trezor/protobuf": "1.2.1-beta.1",
|
|
81
|
+
"@trezor/protocol": "1.2.1-beta.1",
|
|
82
|
+
"@trezor/schema-utils": "1.2.1-beta.1",
|
|
83
|
+
"@trezor/transport": "1.3.1-beta.1",
|
|
84
|
+
"@trezor/utils": "9.2.1-beta.1",
|
|
85
|
+
"@trezor/utxo-lib": "2.2.1-beta.1",
|
|
84
86
|
"blakejs": "^1.2.1",
|
|
85
|
-
"bs58": "^
|
|
86
|
-
"bs58check": "^
|
|
87
|
+
"bs58": "^6.0.0",
|
|
88
|
+
"bs58check": "^4.0.0",
|
|
87
89
|
"cross-fetch": "^4.0.0"
|
|
88
90
|
},
|
|
89
91
|
"devDependencies": {
|
|
@@ -91,7 +93,7 @@
|
|
|
91
93
|
"@types/karma": "^6.3.8",
|
|
92
94
|
"babel-loader": "^9.1.3",
|
|
93
95
|
"jest": "29.7.0",
|
|
94
|
-
"karma": "^6.4.
|
|
96
|
+
"karma": "^6.4.4",
|
|
95
97
|
"karma-babel-preprocessor": "^8.0.2",
|
|
96
98
|
"karma-chrome-launcher": "^3.2.0",
|
|
97
99
|
"karma-jasmine": "^5.1.0",
|
|
@@ -101,7 +103,7 @@
|
|
|
101
103
|
"node-libs-browser": "^2.2.1",
|
|
102
104
|
"ts-node": "^10.9.1",
|
|
103
105
|
"tsx": "^4.16.3",
|
|
104
|
-
"webpack": "^5.
|
|
106
|
+
"webpack": "^5.94.0",
|
|
105
107
|
"ws": "^8.18.0"
|
|
106
108
|
},
|
|
107
109
|
"peerDependencies": {
|