@trezor/connect 9.4.7 → 9.4.8-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -8
- package/README.md +1 -1
- package/lib/api/applyFlags.d.ts +1 -1
- package/lib/api/applyFlags.js +1 -1
- package/lib/api/applySettings.d.ts +1 -1
- package/lib/api/authenticateDevice.js +1 -1
- package/lib/api/authorizeCoinjoin.d.ts +1 -1
- package/lib/api/authorizeCoinjoin.js +1 -1
- package/lib/api/backupDevice.d.ts +1 -1
- package/lib/api/backupDevice.js +1 -1
- package/lib/api/binance/api/binanceGetAddress.d.ts +1 -1
- package/lib/api/binance/api/binanceGetAddress.js +3 -3
- package/lib/api/binance/api/binanceGetPublicKey.d.ts +1 -1
- package/lib/api/binance/api/binanceGetPublicKey.js +2 -2
- package/lib/api/binance/api/binanceSignTransaction.js +2 -2
- package/lib/api/binance/binanceSignTx.d.ts +1 -1
- package/lib/api/bitcoin/TransactionComposer.d.ts +1 -1
- package/lib/api/bitcoin/inputs.d.ts +1 -1
- package/lib/api/bitcoin/inputs.js +1 -1
- package/lib/api/bitcoin/outputs.js +2 -2
- package/lib/api/bitcoin/refTx.d.ts +2 -2
- package/lib/api/bitcoin/refTx.js +4 -4
- package/lib/api/bitcoin/signtx.d.ts +2 -2
- package/lib/api/bitcoin/signtxLegacy.d.ts +1 -1
- package/lib/api/bitcoin/signtxVerify.d.ts +1 -1
- package/lib/api/blockchainDisconnect.js +2 -2
- package/lib/api/blockchainEstimateFee.d.ts +1 -1
- package/lib/api/blockchainEstimateFee.js +3 -2
- package/lib/api/blockchainEvmRpcCall.js +2 -2
- package/lib/api/blockchainGetAccountBalanceHistory.d.ts +1 -1
- package/lib/api/blockchainGetAccountBalanceHistory.js +1 -1
- package/lib/api/blockchainGetCurrentFiatRates.d.ts +1 -1
- package/lib/api/blockchainGetCurrentFiatRates.js +1 -1
- package/lib/api/blockchainGetFiatRatesForTimestamps.d.ts +1 -1
- package/lib/api/blockchainGetFiatRatesForTimestamps.js +1 -1
- package/lib/api/blockchainGetInfo.js +1 -1
- package/lib/api/blockchainGetTransactions.js +1 -1
- package/lib/api/blockchainSetCustomBackend.js +1 -1
- package/lib/api/blockchainSubscribe.d.ts +1 -1
- package/lib/api/blockchainSubscribe.js +1 -1
- package/lib/api/blockchainSubscribeFiatRates.d.ts +1 -1
- package/lib/api/blockchainSubscribeFiatRates.js +1 -1
- package/lib/api/blockchainUnsubscribe.d.ts +1 -1
- package/lib/api/blockchainUnsubscribe.js +1 -1
- package/lib/api/blockchainUnsubscribeFiatRates.js +1 -1
- package/lib/api/cancelCoinjoinAuthorization.d.ts +1 -1
- package/lib/api/cardano/api/cardanoComposeTransaction.d.ts +1 -1
- package/lib/api/cardano/api/cardanoComposeTransaction.js +3 -11
- package/lib/api/cardano/api/cardanoGetAddress.d.ts +1 -1
- package/lib/api/cardano/api/cardanoGetAddress.js +4 -4
- package/lib/api/cardano/api/cardanoGetNativeScriptHash.js +2 -2
- package/lib/api/cardano/api/cardanoGetPublicKey.js +2 -2
- package/lib/api/cardano/api/cardanoSignTransaction.d.ts +3 -3
- package/lib/api/cardano/api/cardanoSignTransaction.js +4 -4
- package/lib/api/cardano/cardanoAddressParameters.js +1 -1
- package/lib/api/cardano/cardanoAuxiliaryData.js +1 -1
- package/lib/api/cardano/cardanoCertificate.js +1 -1
- package/lib/api/cardano/cardanoInputs.js +1 -1
- package/lib/api/cardano/cardanoUtils.js +30 -0
- package/lib/api/changePin.d.ts +1 -1
- package/lib/api/changePin.js +1 -1
- package/lib/api/changeWipeCode.d.ts +1 -1
- package/lib/api/cipherKeyValue.d.ts +1 -1
- package/lib/api/cipherKeyValue.js +3 -3
- package/lib/api/common/Discovery.d.ts +2 -2
- package/lib/api/common/paramsValidator.js +1 -1
- package/lib/api/composeTransaction.d.ts +3 -3
- package/lib/api/composeTransaction.js +9 -9
- package/lib/api/eos/api/eosGetPublicKey.d.ts +1 -1
- package/lib/api/eos/api/eosGetPublicKey.js +2 -2
- package/lib/api/eos/api/eosSignTransaction.d.ts +1 -1
- package/lib/api/eos/api/eosSignTransaction.js +2 -2
- package/lib/api/eos/eosSignTx.d.ts +3 -3
- package/lib/api/ethereum/api/ethereumGetAddress.d.ts +3 -3
- package/lib/api/ethereum/api/ethereumGetAddress.js +6 -6
- package/lib/api/ethereum/api/ethereumGetPublicKey.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumGetPublicKey.js +3 -3
- package/lib/api/ethereum/api/ethereumSignMessage.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumSignMessage.js +3 -3
- package/lib/api/ethereum/api/ethereumSignTransaction.d.ts +2 -2
- package/lib/api/ethereum/api/ethereumSignTransaction.js +4 -4
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +2 -1
- package/lib/api/ethereum/api/ethereumSignTypedData.js +6 -6
- package/lib/api/ethereum/api/ethereumVerifyMessage.d.ts +1 -1
- package/lib/api/ethereum/api/ethereumVerifyMessage.js +2 -2
- package/lib/api/ethereum/ethereumDefinitions.d.ts +2 -2
- package/lib/api/ethereum/ethereumDefinitions.js +1 -0
- package/lib/api/firmware/getBinaryForFirmwareUpgrade.js +2 -2
- package/lib/api/firmware/parseFirmwareHeaders.d.ts +2 -1
- package/lib/api/firmware/uploadFirmware.d.ts +1 -1
- package/lib/api/firmware/uploadFirmware.js +1 -1
- package/lib/api/firmware/verifyAuthenticityProof.d.ts +1 -1
- package/lib/api/firmware/verifyEntropy.d.ts +19 -0
- package/lib/api/firmware/verifyEntropy.js +112 -0
- package/lib/api/getAccountDescriptor.js +4 -4
- package/lib/api/getAccountInfo.d.ts +21 -1
- package/lib/api/getAccountInfo.js +7 -7
- package/lib/api/getAddress.d.ts +1 -1
- package/lib/api/getAddress.js +3 -3
- package/lib/api/getCoinInfo.d.ts +3 -0
- package/lib/api/getCoinInfo.js +1 -1
- package/lib/api/getDeviceState.js +1 -1
- package/lib/api/getFirmwareHash.d.ts +1 -1
- package/lib/api/getFirmwareHash.js +1 -1
- package/lib/api/getOwnershipId.d.ts +1 -1
- package/lib/api/getOwnershipId.js +2 -2
- package/lib/api/getOwnershipProof.d.ts +1 -1
- package/lib/api/getOwnershipProof.js +2 -2
- package/lib/api/getPublicKey.d.ts +1 -1
- package/lib/api/getPublicKey.js +4 -4
- package/lib/api/loadDevice.d.ts +1 -1
- package/lib/api/loadDevice.js +1 -1
- package/lib/api/nem/api/nemGetAddress.d.ts +1 -1
- package/lib/api/nem/api/nemGetAddress.js +3 -3
- package/lib/api/nem/api/nemSignTransaction.d.ts +1 -1
- package/lib/api/nem/api/nemSignTransaction.js +2 -2
- package/lib/api/pushTransaction.js +2 -2
- package/lib/api/recoveryDevice.d.ts +1 -1
- package/lib/api/requestLogin.d.ts +1 -1
- package/lib/api/requestLogin.js +2 -2
- package/lib/api/resetDevice.d.ts +3 -1
- package/lib/api/resetDevice.js +58 -3
- package/lib/api/ripple/api/rippleGetAddress.d.ts +1 -1
- package/lib/api/ripple/api/rippleGetAddress.js +3 -3
- package/lib/api/ripple/api/rippleSignTransaction.d.ts +1 -1
- package/lib/api/ripple/api/rippleSignTransaction.js +2 -2
- package/lib/api/setBrightness.d.ts +1 -1
- package/lib/api/setBrightness.js +1 -1
- package/lib/api/setBusy.d.ts +1 -1
- package/lib/api/setBusy.js +1 -1
- package/lib/api/setProxy.js +1 -1
- package/lib/api/showDeviceTutorial.d.ts +1 -1
- package/lib/api/showDeviceTutorial.js +1 -1
- package/lib/api/signMessage.d.ts +1 -1
- package/lib/api/signMessage.js +2 -2
- package/lib/api/signTransaction.d.ts +2 -2
- package/lib/api/signTransaction.js +3 -3
- package/lib/api/solana/api/index.d.ts +1 -0
- package/lib/api/solana/api/index.js +3 -1
- package/lib/api/solana/api/solanaComposeTransaction.d.ts +25 -0
- package/lib/api/solana/api/solanaComposeTransaction.js +61 -0
- package/lib/api/solana/api/solanaGetAddress.js +2 -2
- package/lib/api/solana/api/solanaGetPublicKey.js +2 -2
- package/lib/api/solana/api/solanaSignTransaction.d.ts +9 -1
- package/lib/api/solana/api/solanaSignTransaction.js +20 -2
- package/lib/api/solana/solanaUtils.d.ts +48 -0
- package/lib/api/solana/solanaUtils.js +213 -0
- package/lib/api/stellar/api/stellarGetAddress.d.ts +1 -1
- package/lib/api/stellar/api/stellarGetAddress.js +3 -3
- package/lib/api/stellar/api/stellarSignTransaction.js +3 -3
- package/lib/api/tezos/api/tezosGetAddress.d.ts +1 -1
- package/lib/api/tezos/api/tezosGetAddress.js +3 -3
- package/lib/api/tezos/api/tezosGetPublicKey.d.ts +1 -1
- package/lib/api/tezos/api/tezosGetPublicKey.js +2 -2
- package/lib/api/tezos/api/tezosSignTransaction.d.ts +1 -1
- package/lib/api/tezos/api/tezosSignTransaction.js +2 -2
- package/lib/api/tezos/tezosSignTx.d.ts +17 -17
- package/lib/api/unlockPath.d.ts +1 -1
- package/lib/api/verifyMessage.d.ts +1 -1
- package/lib/api/verifyMessage.js +3 -3
- package/lib/backend/BackendManager.d.ts +1 -1
- package/lib/backend/BackendManager.js +1 -1
- package/lib/backend/Blockchain.d.ts +2 -2
- package/lib/backend/Blockchain.js +4 -7
- package/lib/constants/errors.d.ts +2 -0
- package/lib/constants/errors.js +4 -0
- package/lib/core/AbstractMethod.d.ts +2 -2
- package/lib/core/AbstractMethod.js +2 -1
- package/lib/core/index.d.ts +3 -3
- package/lib/core/index.js +44 -48
- package/lib/core/onCallFirmwareUpdate.d.ts +3 -8
- package/lib/core/onCallFirmwareUpdate.js +63 -21
- package/lib/data/DataManager.js +1 -5
- package/lib/data/coinInfo.d.ts +15 -131
- package/lib/data/coinInfo.js +8 -8
- package/lib/data/config.d.ts +23 -0
- package/lib/data/config.js +4 -0
- package/lib/data/connectSettings.js +1 -1
- package/lib/data/defaultFeeLevels.d.ts +2 -2
- package/lib/data/defaultFeeLevels.js +34 -14
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +1 -0
- package/lib/data/deviceAuthenticityConfigTypes.js +2 -2
- package/lib/data/firmwareInfo.js +1 -1
- package/lib/data/models.js +5 -1
- package/lib/data/transportInfo.d.ts +0 -1
- package/lib/data/transportInfo.js +41 -28
- package/lib/data/udevInfo.d.ts +0 -1
- package/lib/data/udevInfo.js +2 -5
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +11 -10
- package/lib/device/Device.js +47 -17
- package/lib/device/DeviceCommands.d.ts +2 -2
- package/lib/device/DeviceCommands.js +42 -27
- package/lib/device/DeviceList.d.ts +27 -22
- package/lib/device/DeviceList.js +222 -133
- package/lib/device/StateStorage.js +11 -13
- package/lib/device/prompts.js +28 -36
- package/lib/device/resolveDescriptorForTaproot.d.ts +2 -2
- package/lib/device/resolveDescriptorForTaproot.js +5 -13
- package/lib/events/blockchain.d.ts +1 -1
- package/lib/events/call.d.ts +1 -1
- package/lib/events/core.d.ts +3 -3
- package/lib/events/device.d.ts +11 -1
- package/lib/events/device.js +1 -0
- package/lib/events/popup.d.ts +2 -2
- package/lib/events/transport.d.ts +15 -9
- package/lib/events/transport.js +10 -1
- package/lib/events/ui-promise.d.ts +1 -1
- package/lib/events/ui-request.d.ts +3 -3
- package/lib/factory.d.ts +3 -2
- package/lib/factory.js +3 -1
- package/lib/impl/core-in-module.d.ts +4 -2
- package/lib/impl/core-in-module.js +9 -1
- package/lib/impl/dynamic.d.ts +4 -2
- package/lib/impl/dynamic.js +5 -4
- package/lib/index-browser.js +1 -0
- package/lib/index.js +11 -3
- package/lib/types/account.d.ts +1 -1
- package/lib/types/api/authenticateDevice.d.ts +1 -0
- package/lib/types/api/authorizeCoinjoin.d.ts +1 -1
- package/lib/types/api/authorizeCoinjoin.js +1 -1
- package/lib/types/api/binanceGetAddress.d.ts +1 -1
- package/lib/types/api/binanceGetPublicKey.d.ts +1 -1
- package/lib/types/api/blockchainEstimateFee.d.ts +1 -1
- package/lib/types/api/blockchainSetCustomBackend.d.ts +1 -1
- package/lib/types/api/blockchainSubscribe.d.ts +1 -1
- package/lib/types/api/cardanoComposeTransaction.d.ts +112 -6
- package/lib/types/api/cardanoComposeTransaction.js +77 -0
- package/lib/types/api/cardanoGetAddress.d.ts +1 -1
- package/lib/types/api/cardanoGetPublicKey.d.ts +1 -1
- package/lib/types/api/changeLanguage.d.ts +1 -1
- package/lib/types/api/cipherKeyValue.d.ts +1 -1
- package/lib/types/api/composeTransaction.d.ts +1 -1
- package/lib/types/api/eosGetPublicKey.d.ts +1 -1
- package/lib/types/api/ethereumGetAddress.d.ts +1 -1
- package/lib/types/api/ethereumGetPublicKey.d.ts +1 -1
- package/lib/types/api/ethereumSignTypedData.d.ts +1 -1
- package/lib/types/api/firmwareUpdate.d.ts +11 -2
- package/lib/types/api/getAccountDescriptor.d.ts +1 -1
- package/lib/types/api/getAccountInfo.d.ts +1 -1
- package/lib/types/api/getAddress.d.ts +2 -1
- package/lib/types/api/getCoinInfo.d.ts +1 -1
- package/lib/types/api/getDeviceState.d.ts +1 -1
- package/lib/types/api/getFeatures.d.ts +1 -1
- package/lib/types/api/getOwnershipId.d.ts +2 -1
- package/lib/types/api/getOwnershipProof.d.ts +2 -1
- package/lib/types/api/getPublicKey.d.ts +1 -1
- package/lib/types/api/index.d.ts +7 -3
- package/lib/types/api/nem/index.d.ts +1 -1
- package/lib/types/api/nemGetAddress.d.ts +1 -1
- package/lib/types/api/on.d.ts +1 -1
- package/lib/types/api/recoveryDevice.d.ts +1 -1
- package/lib/types/api/rippleGetAddress.d.ts +1 -1
- package/lib/types/api/setTransports.d.ts +4 -0
- package/lib/types/api/setTransports.js +3 -0
- package/lib/types/api/solana/index.d.ts +41 -0
- package/lib/types/api/solana/index.js +31 -1
- package/lib/types/api/solanaComposeTransaction.d.ts +4 -0
- package/lib/types/api/solanaComposeTransaction.js +3 -0
- package/lib/types/api/solanaGetAddress.d.ts +1 -1
- package/lib/types/api/solanaGetPublicKey.d.ts +1 -1
- package/lib/types/api/stellarGetAddress.d.ts +1 -1
- package/lib/types/api/tezosGetAddress.d.ts +1 -1
- package/lib/types/api/tezosGetPublicKey.d.ts +1 -1
- package/lib/types/api/unlockPath.d.ts +1 -1
- package/lib/types/coinInfo.d.ts +33 -0
- package/lib/types/coinInfo.js +8 -2
- package/lib/types/params.d.ts +1 -1
- package/lib/utils/abortablePromise.d.ts +5 -0
- package/lib/utils/abortablePromise.js +17 -0
- package/lib/utils/accountUtils.d.ts +1 -1
- package/lib/utils/accountUtils.js +1 -1
- package/lib/utils/assetUtils.js +1 -2
- package/lib/utils/assets-browser.d.ts +1 -1
- package/lib/utils/assets.js +1 -1
- package/lib/utils/assets.native.d.ts +1 -1
- package/lib/utils/deviceFeaturesUtils.d.ts +1 -1
- package/lib/utils/deviceFeaturesUtils.js +6 -12
- package/lib/utils/ethereumUtils.d.ts +3 -2
- package/lib/utils/firmwareUtils.d.ts +1 -1
- package/lib/utils/firmwareUtils.js +11 -4
- package/lib/utils/pathUtils.d.ts +1 -1
- package/lib/utils/urlUtils.js +2 -0
- package/lib/workers/workers-browser.d.ts +2 -2
- package/lib/workers/workers-browser.js +2 -2
- package/lib/workers/workers.native.d.ts +1 -1
- package/lib/workers/workers.native.js +2 -2
- package/package.json +22 -12
- package/lib/utils/promiseUtils.d.ts +0 -5
- package/lib/utils/promiseUtils.js +0 -14
|
@@ -1,3 +1,80 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardanoComposeTransactionParamsSchema = exports.AccountAddress = void 0;
|
|
4
|
+
const schema_utils_1 = require("@trezor/schema-utils");
|
|
5
|
+
const exports_1 = require("../../exports");
|
|
6
|
+
const params_1 = require("../params");
|
|
7
|
+
const cardano_1 = require("./cardano");
|
|
8
|
+
exports.AccountAddress = schema_utils_1.Type.Object({
|
|
9
|
+
address: schema_utils_1.Type.String(),
|
|
10
|
+
path: schema_utils_1.Type.String(),
|
|
11
|
+
transfers: schema_utils_1.Type.Number(),
|
|
12
|
+
balance: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
13
|
+
sent: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
14
|
+
received: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
15
|
+
}, {
|
|
16
|
+
$id: 'AccountAddress',
|
|
17
|
+
});
|
|
18
|
+
exports.CardanoComposeTransactionParamsSchema = schema_utils_1.Type.Object({
|
|
19
|
+
account: schema_utils_1.Type.Object({
|
|
20
|
+
descriptor: schema_utils_1.Type.String(),
|
|
21
|
+
utxo: schema_utils_1.Type.Array(schema_utils_1.Type.Object({
|
|
22
|
+
txid: schema_utils_1.Type.String(),
|
|
23
|
+
vout: schema_utils_1.Type.Number(),
|
|
24
|
+
amount: schema_utils_1.Type.String(),
|
|
25
|
+
blockHeight: schema_utils_1.Type.Number(),
|
|
26
|
+
address: schema_utils_1.Type.String(),
|
|
27
|
+
path: schema_utils_1.Type.String(),
|
|
28
|
+
confirmations: schema_utils_1.Type.Number(),
|
|
29
|
+
coinbase: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
30
|
+
cardanoSpecific: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({
|
|
31
|
+
unit: schema_utils_1.Type.String(),
|
|
32
|
+
})),
|
|
33
|
+
}, { $id: 'AccountUtxo' })),
|
|
34
|
+
}),
|
|
35
|
+
feeLevels: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(schema_utils_1.Type.Object({
|
|
36
|
+
feePerUnit: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
37
|
+
}))),
|
|
38
|
+
outputs: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(schema_utils_1.Type.Intersect([
|
|
39
|
+
schema_utils_1.Type.Object({
|
|
40
|
+
isChange: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
41
|
+
assets: schema_utils_1.Type.Array(schema_utils_1.Type.Object({
|
|
42
|
+
unit: schema_utils_1.Type.String(),
|
|
43
|
+
quantity: schema_utils_1.Type.String(),
|
|
44
|
+
})),
|
|
45
|
+
}, { $id: 'BaseOutput' }),
|
|
46
|
+
schema_utils_1.Type.Union([
|
|
47
|
+
schema_utils_1.Type.Object({
|
|
48
|
+
address: schema_utils_1.Type.String(),
|
|
49
|
+
amount: schema_utils_1.Type.String(),
|
|
50
|
+
setMax: schema_utils_1.Type.Optional(schema_utils_1.Type.Literal(false)),
|
|
51
|
+
}, { $id: 'ExternalOutput' }),
|
|
52
|
+
schema_utils_1.Type.Object({
|
|
53
|
+
address: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
54
|
+
amount: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
55
|
+
setMax: schema_utils_1.Type.Boolean(),
|
|
56
|
+
}, { $id: 'ExternalOutputIncomplete' }),
|
|
57
|
+
]),
|
|
58
|
+
], { $id: 'UserOutput' }))),
|
|
59
|
+
certificates: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(cardano_1.CardanoCertificate)),
|
|
60
|
+
withdrawals: schema_utils_1.Type.Optional(schema_utils_1.Type.Array(schema_utils_1.Type.Object({
|
|
61
|
+
stakeAddress: schema_utils_1.Type.String(),
|
|
62
|
+
amount: schema_utils_1.Type.String(),
|
|
63
|
+
}, { $id: 'Withdrawal' }))),
|
|
64
|
+
changeAddress: schema_utils_1.Type.Object({
|
|
65
|
+
address: schema_utils_1.Type.String(),
|
|
66
|
+
path: schema_utils_1.Type.String(),
|
|
67
|
+
}),
|
|
68
|
+
addressParameters: schema_utils_1.Type.Object({
|
|
69
|
+
addressType: exports_1.PROTO.EnumCardanoAddressType,
|
|
70
|
+
path: params_1.DerivationPath,
|
|
71
|
+
stakingPath: schema_utils_1.Type.Optional(params_1.DerivationPath),
|
|
72
|
+
stakingKeyHash: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
73
|
+
certificatePointer: schema_utils_1.Type.Optional(cardano_1.CardanoCertificatePointer),
|
|
74
|
+
}, { $id: 'CardanoAddressParameters' }),
|
|
75
|
+
testnet: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
76
|
+
});
|
|
77
|
+
const _params = {};
|
|
78
|
+
const _paramsOld = {};
|
|
79
|
+
[_params, _paramsOld];
|
|
3
80
|
//# sourceMappingURL=cardanoComposeTransaction.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BundledParams, Params, Response } from '../params';
|
|
2
2
|
import type { CardanoAddress, CardanoGetAddress } from './cardano';
|
|
3
3
|
export declare function cardanoGetAddress(params: Params<CardanoGetAddress>): Response<CardanoAddress>;
|
|
4
4
|
export declare function cardanoGetAddress(params: BundledParams<CardanoGetAddress>): Response<CardanoAddress[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BundledParams, Params, Response } from '../params';
|
|
2
2
|
import type { CardanoGetPublicKey, CardanoPublicKey } from './cardano';
|
|
3
3
|
export declare function cardanoGetPublicKey(params: Params<CardanoGetPublicKey>): Response<CardanoPublicKey>;
|
|
4
4
|
export declare function cardanoGetPublicKey(params: BundledParams<CardanoGetPublicKey>): Response<CardanoPublicKey[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import type { Params, Response } from '../params';
|
|
3
2
|
import { PROTO } from '../../constants';
|
|
3
|
+
import type { Params, Response } from '../params';
|
|
4
4
|
export type ChangeLanguage = Static<typeof ChangeLanguage>;
|
|
5
5
|
export declare const ChangeLanguage: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TObject<{
|
|
6
6
|
binary: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUndefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { BundledParams, Params, Response } from '../params';
|
|
3
3
|
export type CipherKeyValue = Static<typeof CipherKeyValue>;
|
|
4
4
|
export declare const CipherKeyValue: import("@trezor/schema-utils").TObject<{
|
|
5
5
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountAddresses, Utxo as AccountUtxo
|
|
1
|
+
import type { Address as AccountAddress, AccountAddresses, Utxo as AccountUtxo } from '@trezor/blockchain-link';
|
|
2
2
|
import type { ComposeInput as ComposeInputBase, ComposeOutput as ComposeOutputBase, ComposeResultError as ComposeResultErrorBase, ComposeResultFinal as ComposeResultFinalBase, ComposeResultNonFinal as ComposeResultNonFinalBase, TransactionInputOutputSortingStrategy } from '@trezor/utxo-lib';
|
|
3
3
|
import type { PROTO } from '../../constants';
|
|
4
4
|
import type { Params, Response } from '../params';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BundledParams, GetPublicKey, Params, Response } from '../params';
|
|
2
2
|
import { EosPublicKey } from './eos';
|
|
3
3
|
export declare function eosGetPublicKey(params: Params<GetPublicKey>): Response<EosPublicKey>;
|
|
4
4
|
export declare function eosGetPublicKey(params: BundledParams<GetPublicKey>): Response<EosPublicKey[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Address, BundledParams, GetAddress, Params, Response } from '../params';
|
|
2
2
|
export declare function ethereumGetAddress(params: Params<GetAddress>): Response<Address>;
|
|
3
3
|
export declare function ethereumGetAddress(params: BundledParams<GetAddress>): Response<Address[]>;
|
|
4
4
|
//# sourceMappingURL=ethereumGetAddress.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetPublicKey, Params,
|
|
1
|
+
import type { BundledParams, GetPublicKey, Params, Response } from '../params';
|
|
2
2
|
import type { HDNodeResponse } from './getPublicKey';
|
|
3
3
|
export declare function ethereumGetPublicKey(params: Params<GetPublicKey>): Response<HDNodeResponse>;
|
|
4
4
|
export declare function ethereumGetPublicKey(params: BundledParams<GetPublicKey>): Response<HDNodeResponse[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PROTO } from '../../constants';
|
|
2
2
|
import type { Params, Response } from '../params';
|
|
3
|
-
import type {
|
|
3
|
+
import type { EthereumSignTypedData, EthereumSignTypedDataTypes, EthereumSignTypedHash } from './ethereum';
|
|
4
4
|
export declare function ethereumSignTypedData<T extends EthereumSignTypedDataTypes>(params: Params<EthereumSignTypedData<T>>): Response<PROTO.EthereumTypedDataSignature>;
|
|
5
5
|
export declare function ethereumSignTypedData<T extends EthereumSignTypedDataTypes>(params: Params<EthereumSignTypedHash<T>>): Response<PROTO.EthereumTypedDataSignature>;
|
|
6
6
|
//# sourceMappingURL=ethereumSignTypedData.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
+
import type { VersionArray } from '../firmware';
|
|
2
3
|
import type { Params, Response } from '../params';
|
|
3
4
|
export type FirmwareUpdate = Static<typeof FirmwareUpdate>;
|
|
4
5
|
export declare const FirmwareUpdate: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TObject<{
|
|
@@ -9,11 +10,19 @@ export declare const FirmwareUpdate: import("@trezor/schema-utils").TUnion<[impo
|
|
|
9
10
|
}>, import("@trezor/schema-utils").TObject<{
|
|
10
11
|
binary: import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer;
|
|
11
12
|
}>]>;
|
|
12
|
-
|
|
13
|
+
type FirmwareUpdateDetails = {
|
|
14
|
+
versionCheck: boolean;
|
|
15
|
+
bootloaderVersion: VersionArray;
|
|
16
|
+
installedVersion: VersionArray;
|
|
17
|
+
binaryVersion: VersionArray;
|
|
18
|
+
releaseVersion?: VersionArray;
|
|
19
|
+
};
|
|
20
|
+
export type FirmwareUpdateResponse = FirmwareUpdateDetails & ({
|
|
13
21
|
check: 'mismatch' | 'valid' | 'omitted';
|
|
14
22
|
} | {
|
|
15
23
|
check: 'other-error';
|
|
16
24
|
checkError: string;
|
|
17
|
-
};
|
|
25
|
+
});
|
|
18
26
|
export declare function firmwareUpdate(params: Params<FirmwareUpdate>): Response<FirmwareUpdateResponse>;
|
|
27
|
+
export {};
|
|
19
28
|
//# sourceMappingURL=firmwareUpdate.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
|
-
import {
|
|
3
|
+
import { BundledParams, Params, Response } from '../params';
|
|
4
4
|
export type GetAccountDescriptorParams = Static<typeof GetAccountDescriptorParams>;
|
|
5
5
|
export declare const GetAccountDescriptorParams: import("@trezor/schema-utils").TObject<{
|
|
6
6
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockchainLinkParams } from '@trezor/blockchain-link';
|
|
2
2
|
import type { PROTO } from '../../constants';
|
|
3
|
-
import type { Params, BundledParams, Response } from '../params';
|
|
4
3
|
import type { AccountInfo, DiscoveryAccountType } from '../account';
|
|
4
|
+
import type { BundledParams, Params, Response } from '../params';
|
|
5
5
|
export interface GetAccountInfo extends Omit<BlockchainLinkParams<'getAccountInfo'>, 'descriptor'> {
|
|
6
6
|
coin: string;
|
|
7
7
|
identity?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
|
-
import { Address as AddressShared,
|
|
3
|
+
import { Address as AddressShared, BundledParams, Params, Response } from '../params';
|
|
4
4
|
export type GetAddress = Static<typeof GetAddress>;
|
|
5
5
|
export declare const GetAddress: import("@trezor/schema-utils").TObject<{
|
|
6
6
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
@@ -33,6 +33,7 @@ export declare const GetAddress: import("@trezor/schema-utils").TObject<{
|
|
|
33
33
|
public_key: import("@trezor/schema-utils").TString;
|
|
34
34
|
}>>>;
|
|
35
35
|
address_n: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>>;
|
|
36
|
+
pubkeys_order: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TEnum<typeof PROTO.MultisigPubkeysOrder>>;
|
|
36
37
|
}>>;
|
|
37
38
|
crossChain: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
38
39
|
unlockPath: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommonParams, Response } from '../params';
|
|
2
1
|
import type { DeviceState, StaticSessionId } from '../device';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
3
|
export interface DeviceStateResponse {
|
|
4
4
|
state: StaticSessionId;
|
|
5
5
|
_state: DeviceState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommonParams, Response } from '../params';
|
|
2
1
|
import type { Features } from '../device';
|
|
2
|
+
import type { CommonParams, Response } from '../params';
|
|
3
3
|
export declare function getFeatures(params?: CommonParams): Response<Features>;
|
|
4
4
|
//# sourceMappingURL=getFeatures.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
|
-
import {
|
|
3
|
+
import { BundledParams, Params, Response } from '../params';
|
|
4
4
|
export type GetOwnershipId = Static<typeof GetOwnershipId>;
|
|
5
5
|
export declare const GetOwnershipId: import("@trezor/schema-utils").TObject<{
|
|
6
6
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
@@ -28,6 +28,7 @@ export declare const GetOwnershipId: import("@trezor/schema-utils").TObject<{
|
|
|
28
28
|
public_key: import("@trezor/schema-utils").TString;
|
|
29
29
|
}>>>;
|
|
30
30
|
address_n: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>>;
|
|
31
|
+
pubkeys_order: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TEnum<typeof PROTO.MultisigPubkeysOrder>>;
|
|
31
32
|
}>>;
|
|
32
33
|
scriptType: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"SPENDADDRESS">, import("@trezor/schema-utils").TLiteral<"SPENDMULTISIG">, import("@trezor/schema-utils").TLiteral<"SPENDWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDP2SHWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDTAPROOT">]>>;
|
|
33
34
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
|
-
import {
|
|
3
|
+
import { BundledParams, Params, Response } from '../params';
|
|
4
4
|
export type GetOwnershipProof = Static<typeof GetOwnershipProof>;
|
|
5
5
|
export declare const GetOwnershipProof: import("@trezor/schema-utils").TObject<{
|
|
6
6
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
|
@@ -28,6 +28,7 @@ export declare const GetOwnershipProof: import("@trezor/schema-utils").TObject<{
|
|
|
28
28
|
public_key: import("@trezor/schema-utils").TString;
|
|
29
29
|
}>>>;
|
|
30
30
|
address_n: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>>;
|
|
31
|
+
pubkeys_order: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TEnum<typeof PROTO.MultisigPubkeysOrder>>;
|
|
31
32
|
}>>;
|
|
32
33
|
scriptType: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"SPENDADDRESS">, import("@trezor/schema-utils").TLiteral<"SPENDMULTISIG">, import("@trezor/schema-utils").TLiteral<"SPENDWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDP2SHWITNESS">, import("@trezor/schema-utils").TLiteral<"SPENDTAPROOT">]>>;
|
|
33
34
|
userConfirmation: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { BundledParams, Params, Response } from '../params';
|
|
3
3
|
export type GetPublicKey = Static<typeof GetPublicKey>;
|
|
4
4
|
export declare const GetPublicKey: import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
5
5
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
package/lib/types/api/index.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ import { binanceGetPublicKey } from './binanceGetPublicKey';
|
|
|
8
8
|
import { binanceSignTransaction } from './binanceSignTransaction';
|
|
9
9
|
import { blockchainDisconnect } from './blockchainDisconnect';
|
|
10
10
|
import { blockchainEstimateFee } from './blockchainEstimateFee';
|
|
11
|
+
import { blockchainEvmRpcCall } from './blockchainEvmRpcCall';
|
|
11
12
|
import { blockchainGetAccountBalanceHistory } from './blockchainGetAccountBalanceHistory';
|
|
12
13
|
import { blockchainGetCurrentFiatRates } from './blockchainGetCurrentFiatRates';
|
|
13
|
-
import { blockchainGetInfo } from './blockchainGetInfo';
|
|
14
|
-
import { blockchainEvmRpcCall } from './blockchainEvmRpcCall';
|
|
15
14
|
import { blockchainGetFiatRatesForTimestamps } from './blockchainGetFiatRatesForTimestamps';
|
|
15
|
+
import { blockchainGetInfo } from './blockchainGetInfo';
|
|
16
16
|
import { blockchainGetTransactions } from './blockchainGetTransactions';
|
|
17
17
|
import { blockchainSetCustomBackend } from './blockchainSetCustomBackend';
|
|
18
18
|
import { blockchainSubscribe } from './blockchainSubscribe';
|
|
@@ -53,6 +53,7 @@ import { getOwnershipProof } from './getOwnershipProof';
|
|
|
53
53
|
import { getPublicKey } from './getPublicKey';
|
|
54
54
|
import { getSettings } from './getSettings';
|
|
55
55
|
import { init } from './init';
|
|
56
|
+
import { loadDevice } from './loadDevice';
|
|
56
57
|
import { manifest } from './manifest';
|
|
57
58
|
import { nemGetAddress } from './nemGetAddress';
|
|
58
59
|
import { nemSignTransaction } from './nemSignTransaction';
|
|
@@ -63,15 +64,16 @@ import { recoveryDevice } from './recoveryDevice';
|
|
|
63
64
|
import { removeAllListeners } from './removeAllListeners';
|
|
64
65
|
import { requestLogin } from './requestLogin';
|
|
65
66
|
import { resetDevice } from './resetDevice';
|
|
66
|
-
import { loadDevice } from './loadDevice';
|
|
67
67
|
import { rippleGetAddress } from './rippleGetAddress';
|
|
68
68
|
import { rippleSignTransaction } from './rippleSignTransaction';
|
|
69
69
|
import { setBrightness } from './setBrightness';
|
|
70
70
|
import { setBusy } from './setBusy';
|
|
71
71
|
import { setProxy } from './setProxy';
|
|
72
|
+
import { setTransports } from './setTransports';
|
|
72
73
|
import { showDeviceTutorial } from './showDeviceTutorial';
|
|
73
74
|
import { signMessage } from './signMessage';
|
|
74
75
|
import { signTransaction } from './signTransaction';
|
|
76
|
+
import { solanaComposeTransaction } from './solanaComposeTransaction';
|
|
75
77
|
import { solanaGetAddress } from './solanaGetAddress';
|
|
76
78
|
import { solanaGetPublicKey } from './solanaGetPublicKey';
|
|
77
79
|
import { solanaSignTransaction } from './solanaSignTransaction';
|
|
@@ -157,8 +159,10 @@ export interface TrezorConnect {
|
|
|
157
159
|
setBrightness: typeof setBrightness;
|
|
158
160
|
setBusy: typeof setBusy;
|
|
159
161
|
setProxy: typeof setProxy;
|
|
162
|
+
setTransports: typeof setTransports;
|
|
160
163
|
signMessage: typeof signMessage;
|
|
161
164
|
signTransaction: typeof signTransaction;
|
|
165
|
+
solanaComposeTransaction: typeof solanaComposeTransaction;
|
|
162
166
|
solanaGetPublicKey: typeof solanaGetPublicKey;
|
|
163
167
|
solanaGetAddress: typeof solanaGetAddress;
|
|
164
168
|
solanaSignTransaction: typeof solanaSignTransaction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import {
|
|
2
|
+
import { NEM, PROTO } from '../../../constants';
|
|
3
3
|
export type MosaicID = Static<typeof MosaicID>;
|
|
4
4
|
export declare const MosaicID: import("@trezor/schema-utils").TObject<{
|
|
5
5
|
namespaceId: import("@trezor/schema-utils").TString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import { Address,
|
|
2
|
+
import { Address, BundledParams, Params, Response } from '../params';
|
|
3
3
|
export type NEMGetAddress = Static<typeof NEMGetAddress>;
|
|
4
4
|
export declare const NEMGetAddress: import("@trezor/schema-utils").TObject<{
|
|
5
5
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|
package/lib/types/api/on.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlockchainEvent, BlockchainEventListenerFn } from '../../events/blockchain';
|
|
2
2
|
import type { DeviceEvent, DeviceEventListenerFn } from '../../events/device';
|
|
3
3
|
import type { TransportEvent, TransportEventListenerFn } from '../../events/transport';
|
|
4
|
-
import type { UiEvent, UiEventListenerFn
|
|
4
|
+
import type { ProgressEventListenerFn, UiEvent, UiEventListenerFn } from '../../events/ui-request';
|
|
5
5
|
import type { UnionToIntersection } from '../utils';
|
|
6
6
|
type DetailedEvent<Event> = Event extends {
|
|
7
7
|
type: string;
|
|
@@ -8,10 +8,10 @@ export declare const RecoveryDevice: import("@trezor/schema-utils").TObject<{
|
|
|
8
8
|
pin_protection: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
9
9
|
passphrase_protection: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
10
10
|
type: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils/lib/custom-types/keyof-enum").TKeyOfEnum<typeof PROTO.Enum_RecoveryType>>;
|
|
11
|
+
u2f_counter: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TNumber>;
|
|
11
12
|
word_count: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TIntersect<[import("@trezor/schema-utils").TNumber, import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<12>, import("@trezor/schema-utils").TLiteral<18>, import("@trezor/schema-utils").TLiteral<24>]>]>>;
|
|
12
13
|
enforce_wordlist: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
13
14
|
input_method: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TEnum<typeof PROTO.RecoveryDeviceInputMethod>>;
|
|
14
|
-
u2f_counter: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TNumber>;
|
|
15
15
|
}>;
|
|
16
16
|
export declare function recoveryDevice(params: Params<RecoveryDevice>): Response<PROTO.Success>;
|
|
17
17
|
//# sourceMappingURL=recoveryDevice.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Address, BundledParams, GetAddress, Params, Response } from '../params';
|
|
2
2
|
export declare function rippleGetAddress(params: Params<GetAddress>): Response<Address>;
|
|
3
3
|
export declare function rippleGetAddress(params: BundledParams<GetAddress>): Response<Address[]>;
|
|
4
4
|
//# sourceMappingURL=rippleGetAddress.d.ts.map
|
|
@@ -35,9 +35,50 @@ export declare const SolanaSignTransaction: import("@trezor/schema-utils").TObje
|
|
|
35
35
|
tokenAccount: import("@trezor/schema-utils").TString;
|
|
36
36
|
}>>>;
|
|
37
37
|
}>>;
|
|
38
|
+
serialize: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TBoolean>;
|
|
38
39
|
}>;
|
|
39
40
|
export type SolanaSignedTransaction = Static<typeof SolanaSignedTransaction>;
|
|
40
41
|
export declare const SolanaSignedTransaction: import("@trezor/schema-utils").TObject<{
|
|
41
42
|
signature: import("@trezor/schema-utils").TString;
|
|
43
|
+
serializedTx: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
44
|
+
}>;
|
|
45
|
+
export type SolanaProgramName = Static<typeof SolanaProgramName>;
|
|
46
|
+
export declare const SolanaProgramName: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"spl-token">, import("@trezor/schema-utils").TLiteral<"spl-token-2022">]>;
|
|
47
|
+
export type SolanaComposeTransaction = Static<typeof SolanaComposeTransaction>;
|
|
48
|
+
export declare const SolanaComposeTransaction: import("@trezor/schema-utils").TObject<{
|
|
49
|
+
fromAddress: import("@trezor/schema-utils").TString;
|
|
50
|
+
toAddress: import("@trezor/schema-utils").TString;
|
|
51
|
+
amount: import("@trezor/schema-utils").TString;
|
|
52
|
+
blockHash: import("@trezor/schema-utils").TString;
|
|
53
|
+
lastValidBlockHeight: import("@trezor/schema-utils").TNumber;
|
|
54
|
+
priorityFees: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
55
|
+
computeUnitPrice: import("@trezor/schema-utils").TString;
|
|
56
|
+
computeUnitLimit: import("@trezor/schema-utils").TString;
|
|
57
|
+
}>>;
|
|
58
|
+
token: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
59
|
+
mint: import("@trezor/schema-utils").TString;
|
|
60
|
+
program: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"spl-token">, import("@trezor/schema-utils").TLiteral<"spl-token-2022">]>;
|
|
61
|
+
decimals: import("@trezor/schema-utils").TNumber;
|
|
62
|
+
accounts: import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TObject<{
|
|
63
|
+
publicKey: import("@trezor/schema-utils").TString;
|
|
64
|
+
balance: import("@trezor/schema-utils").TString;
|
|
65
|
+
}>>;
|
|
66
|
+
}>>;
|
|
67
|
+
coin: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
68
|
+
identity: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TString>;
|
|
69
|
+
}>;
|
|
70
|
+
export type SolanaComposedTransaction = Static<typeof SolanaComposedTransaction>;
|
|
71
|
+
export declare const SolanaComposedTransaction: import("@trezor/schema-utils").TObject<{
|
|
72
|
+
serializedTx: import("@trezor/schema-utils").TString;
|
|
73
|
+
additionalInfo: import("@trezor/schema-utils").TObject<{
|
|
74
|
+
isCreatingAccount: import("@trezor/schema-utils").TBoolean;
|
|
75
|
+
newTokenAccountProgramName: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TLiteral<"spl-token">, import("@trezor/schema-utils").TLiteral<"spl-token-2022">]>>;
|
|
76
|
+
tokenAccountInfo: import("@trezor/schema-utils").TOptional<import("@trezor/schema-utils").TObject<{
|
|
77
|
+
baseAddress: import("@trezor/schema-utils").TString;
|
|
78
|
+
tokenProgram: import("@trezor/schema-utils").TString;
|
|
79
|
+
tokenMint: import("@trezor/schema-utils").TString;
|
|
80
|
+
tokenAccount: import("@trezor/schema-utils").TString;
|
|
81
|
+
}>>;
|
|
82
|
+
}>;
|
|
42
83
|
}>;
|
|
43
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SolanaSignedTransaction = exports.SolanaSignTransaction = exports.SolanaTxAdditionalInfo = exports.SolanaTxTokenAccountInfo = exports.SolanaPublicKey = void 0;
|
|
3
|
+
exports.SolanaComposedTransaction = exports.SolanaComposeTransaction = exports.SolanaProgramName = exports.SolanaSignedTransaction = exports.SolanaSignTransaction = exports.SolanaTxAdditionalInfo = exports.SolanaTxTokenAccountInfo = exports.SolanaPublicKey = void 0;
|
|
4
4
|
const schema_utils_1 = require("@trezor/schema-utils");
|
|
5
5
|
const params_1 = require("../../params");
|
|
6
6
|
exports.SolanaPublicKey = schema_utils_1.Type.Intersect([
|
|
@@ -22,8 +22,38 @@ exports.SolanaSignTransaction = schema_utils_1.Type.Object({
|
|
|
22
22
|
path: schema_utils_1.Type.Union([schema_utils_1.Type.String(), schema_utils_1.Type.Array(schema_utils_1.Type.Number())]),
|
|
23
23
|
serializedTx: schema_utils_1.Type.String(),
|
|
24
24
|
additionalInfo: schema_utils_1.Type.Optional(exports.SolanaTxAdditionalInfo),
|
|
25
|
+
serialize: schema_utils_1.Type.Optional(schema_utils_1.Type.Boolean()),
|
|
25
26
|
});
|
|
26
27
|
exports.SolanaSignedTransaction = schema_utils_1.Type.Object({
|
|
27
28
|
signature: schema_utils_1.Type.String(),
|
|
29
|
+
serializedTx: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
30
|
+
});
|
|
31
|
+
exports.SolanaProgramName = schema_utils_1.Type.Union([
|
|
32
|
+
schema_utils_1.Type.Literal('spl-token'),
|
|
33
|
+
schema_utils_1.Type.Literal('spl-token-2022'),
|
|
34
|
+
]);
|
|
35
|
+
exports.SolanaComposeTransaction = schema_utils_1.Type.Object({
|
|
36
|
+
fromAddress: schema_utils_1.Type.String(),
|
|
37
|
+
toAddress: schema_utils_1.Type.String(),
|
|
38
|
+
amount: schema_utils_1.Type.String(),
|
|
39
|
+
blockHash: schema_utils_1.Type.String(),
|
|
40
|
+
lastValidBlockHeight: schema_utils_1.Type.Number(),
|
|
41
|
+
priorityFees: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({ computeUnitPrice: schema_utils_1.Type.String(), computeUnitLimit: schema_utils_1.Type.String() })),
|
|
42
|
+
token: schema_utils_1.Type.Optional(schema_utils_1.Type.Object({
|
|
43
|
+
mint: schema_utils_1.Type.String(),
|
|
44
|
+
program: exports.SolanaProgramName,
|
|
45
|
+
decimals: schema_utils_1.Type.Number(),
|
|
46
|
+
accounts: schema_utils_1.Type.Array(schema_utils_1.Type.Object({ publicKey: schema_utils_1.Type.String(), balance: schema_utils_1.Type.String() })),
|
|
47
|
+
})),
|
|
48
|
+
coin: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
49
|
+
identity: schema_utils_1.Type.Optional(schema_utils_1.Type.String()),
|
|
50
|
+
});
|
|
51
|
+
exports.SolanaComposedTransaction = schema_utils_1.Type.Object({
|
|
52
|
+
serializedTx: schema_utils_1.Type.String(),
|
|
53
|
+
additionalInfo: schema_utils_1.Type.Object({
|
|
54
|
+
isCreatingAccount: schema_utils_1.Type.Boolean(),
|
|
55
|
+
newTokenAccountProgramName: schema_utils_1.Type.Optional(exports.SolanaProgramName),
|
|
56
|
+
tokenAccountInfo: schema_utils_1.Type.Optional(exports.SolanaTxTokenAccountInfo),
|
|
57
|
+
}),
|
|
28
58
|
});
|
|
29
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Params, Response } from '../params';
|
|
2
|
+
import type { SolanaComposeTransaction, SolanaComposedTransaction } from './solana';
|
|
3
|
+
export declare function solanaComposeTransaction(params: Params<SolanaComposeTransaction>): Response<SolanaComposedTransaction>;
|
|
4
|
+
//# sourceMappingURL=solanaComposeTransaction.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Address, GetAddress, Params,
|
|
1
|
+
import type { Address, BundledParams, GetAddress, Params, Response } from '../params';
|
|
2
2
|
export declare function solanaGetAddress(params: Params<GetAddress>): Response<Address>;
|
|
3
3
|
export declare function solanaGetAddress(params: BundledParams<GetAddress>): Response<Address[]>;
|
|
4
4
|
//# sourceMappingURL=solanaGetAddress.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetPublicKey, Params,
|
|
1
|
+
import type { BundledParams, GetPublicKey, Params, Response } from '../params';
|
|
2
2
|
import type { SolanaPublicKey } from './solana';
|
|
3
3
|
export declare function solanaGetPublicKey(params: Params<GetPublicKey>): Response<SolanaPublicKey>;
|
|
4
4
|
export declare function solanaGetPublicKey(params: BundledParams<GetPublicKey>): Response<SolanaPublicKey[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Address, BundledParams, GetAddress, Params, Response } from '../params';
|
|
2
2
|
export declare function stellarGetAddress(params: Params<GetAddress>): Response<Address>;
|
|
3
3
|
export declare function stellarGetAddress(params: BundledParams<GetAddress>): Response<Address[]>;
|
|
4
4
|
//# sourceMappingURL=stellarGetAddress.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Address, BundledParams, GetAddress, Params, Response } from '../params';
|
|
2
2
|
export declare function tezosGetAddress(params: Params<GetAddress>): Response<Address>;
|
|
3
3
|
export declare function tezosGetAddress(params: BundledParams<GetAddress>): Response<Address[]>;
|
|
4
4
|
//# sourceMappingURL=tezosGetAddress.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BundledParams, GetPublicKey, Params, PublicKey, Response } from '../params';
|
|
2
2
|
export declare function tezosGetPublicKey(params: Params<GetPublicKey>): Response<PublicKey>;
|
|
3
3
|
export declare function tezosGetPublicKey(params: BundledParams<GetPublicKey>): Response<PublicKey[]>;
|
|
4
4
|
//# sourceMappingURL=tezosGetPublicKey.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Static } from '@trezor/schema-utils';
|
|
2
|
-
import { Params, Response } from '../params';
|
|
3
2
|
import type { PROTO } from '../../constants';
|
|
3
|
+
import { Params, Response } from '../params';
|
|
4
4
|
export type UnlockPathParams = Static<typeof UnlockPathParams>;
|
|
5
5
|
export declare const UnlockPathParams: import("@trezor/schema-utils").TObject<{
|
|
6
6
|
path: import("@trezor/schema-utils").TUnion<[import("@trezor/schema-utils").TString, import("@trezor/schema-utils").TArray<import("@trezor/schema-utils").TNumber>]>;
|