@trezor/connect 10.0.0-alpha.1 → 10.0.0-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 +159 -63
- package/README.md +5 -3
- package/lib/exports.d.ts +1 -0
- package/lib/exports.js +1 -0
- package/lib/impl/core-in-module-native.d.ts +7 -0
- package/lib/impl/core-in-module-native.js +11 -0
- package/lib/impl/core-in-module-node.d.ts +8 -0
- package/lib/impl/core-in-module-node.js +12 -0
- package/lib/impl/core-in-module-web.d.ts +9 -0
- package/lib/impl/core-in-module-web.js +26 -0
- package/lib/index.browser.d.ts +7 -0
- package/lib/index.browser.js +10 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -0
- package/lib/index.native.d.ts +4 -0
- package/lib/index.native.js +5 -0
- package/package.json +30 -83
- package/libESM/api/applyFlags.d.mts +0 -20
- package/libESM/api/applyFlags.mjs +0 -36
- package/libESM/api/applySettings.d.mts +0 -20
- package/libESM/api/applySettings.mjs +0 -55
- package/libESM/api/authenticateDevice.d.mts +0 -9
- package/libESM/api/authenticateDevice.mjs +0 -108
- package/libESM/api/authorizeCoinjoin.d.mts +0 -11
- package/libESM/api/authorizeCoinjoin.mjs +0 -44
- package/libESM/api/backupDevice.d.mts +0 -19
- package/libESM/api/backupDevice.mjs +0 -36
- package/libESM/api/bitcoin/TransactionComposer.d.mts +0 -46
- package/libESM/api/bitcoin/TransactionComposer.mjs +0 -139
- package/libESM/api/bitcoin/createPendingTx.d.mts +0 -33
- package/libESM/api/bitcoin/createPendingTx.mjs +0 -54
- package/libESM/api/bitcoin/enhanceSignTx.d.mts +0 -2
- package/libESM/api/bitcoin/enhanceSignTx.mjs +0 -23
- package/libESM/api/bitcoin/index.d.mts +0 -9
- package/libESM/api/bitcoin/index.mjs +0 -9
- package/libESM/api/bitcoin/inputs.d.mts +0 -6
- package/libESM/api/bitcoin/inputs.mjs +0 -75
- package/libESM/api/bitcoin/outputs.d.mts +0 -5
- package/libESM/api/bitcoin/outputs.mjs +0 -128
- package/libESM/api/bitcoin/refTx.d.mts +0 -17
- package/libESM/api/bitcoin/refTx.mjs +0 -252
- package/libESM/api/bitcoin/signtx.d.mts +0 -22
- package/libESM/api/bitcoin/signtx.mjs +0 -213
- package/libESM/api/bitcoin/signtxLegacy.d.mts +0 -3
- package/libESM/api/bitcoin/signtxLegacy.mjs +0 -179
- package/libESM/api/bitcoin/signtxVerify.d.mts +0 -12
- package/libESM/api/bitcoin/signtxVerify.mjs +0 -86
- package/libESM/api/bitcoin/transactionBytes.d.mts +0 -3
- package/libESM/api/bitcoin/transactionBytes.mjs +0 -65
- package/libESM/api/bleUnpair.d.mts +0 -11
- package/libESM/api/bleUnpair.mjs +0 -35
- package/libESM/api/blockchainDisconnect.d.mts +0 -16
- package/libESM/api/blockchainDisconnect.mjs +0 -39
- package/libESM/api/blockchainEstimateFee.d.mts +0 -14
- package/libESM/api/blockchainEstimateFee.mjs +0 -106
- package/libESM/api/blockchainEvmRpcCall.d.mts +0 -17
- package/libESM/api/blockchainEvmRpcCall.mjs +0 -61
- package/libESM/api/blockchainGetAccountBalanceHistory.d.mts +0 -14
- package/libESM/api/blockchainGetAccountBalanceHistory.mjs +0 -64
- package/libESM/api/blockchainGetContractInfo.d.mts +0 -14
- package/libESM/api/blockchainGetContractInfo.mjs +0 -50
- package/libESM/api/blockchainGetCurrentFiatRates.d.mts +0 -18
- package/libESM/api/blockchainGetCurrentFiatRates.mjs +0 -53
- package/libESM/api/blockchainGetFiatRatesForTimestamps.d.mts +0 -21
- package/libESM/api/blockchainGetFiatRatesForTimestamps.mjs +0 -59
- package/libESM/api/blockchainGetInfo.d.mts +0 -13
- package/libESM/api/blockchainGetInfo.mjs +0 -41
- package/libESM/api/blockchainGetTransactions.d.mts +0 -15
- package/libESM/api/blockchainGetTransactions.mjs +0 -47
- package/libESM/api/blockchainSetCustomBackend.d.mts +0 -13
- package/libESM/api/blockchainSetCustomBackend.mjs +0 -41
- package/libESM/api/blockchainSubscribe.d.mts +0 -17
- package/libESM/api/blockchainSubscribe.mjs +0 -68
- package/libESM/api/blockchainSubscribeFiatRates.d.mts +0 -17
- package/libESM/api/blockchainSubscribeFiatRates.mjs +0 -47
- package/libESM/api/blockchainUnsubscribe.d.mts +0 -17
- package/libESM/api/blockchainUnsubscribe.mjs +0 -68
- package/libESM/api/blockchainUnsubscribeFiatRates.d.mts +0 -15
- package/libESM/api/blockchainUnsubscribeFiatRates.mjs +0 -41
- package/libESM/api/blockchainValidateEvmRpcUrl.d.mts +0 -17
- package/libESM/api/blockchainValidateEvmRpcUrl.mjs +0 -54
- package/libESM/api/cancelCoinjoinAuthorization.d.mts +0 -11
- package/libESM/api/cancelCoinjoinAuthorization.mjs +0 -31
- package/libESM/api/cardano/api/cardanoComposeTransaction.d.mts +0 -10
- package/libESM/api/cardano/api/cardanoComposeTransaction.mjs +0 -79
- package/libESM/api/cardano/api/cardanoGetAddress.d.mts +0 -30
- package/libESM/api/cardano/api/cardanoGetAddress.mjs +0 -116
- package/libESM/api/cardano/api/cardanoGetNativeScriptHash.d.mts +0 -12
- package/libESM/api/cardano/api/cardanoGetNativeScriptHash.mjs +0 -66
- package/libESM/api/cardano/api/cardanoGetPublicKey.d.mts +0 -20
- package/libESM/api/cardano/api/cardanoGetPublicKey.mjs +0 -72
- package/libESM/api/cardano/api/cardanoSignMessage.d.mts +0 -27
- package/libESM/api/cardano/api/cardanoSignMessage.mjs +0 -96
- package/libESM/api/cardano/api/cardanoSignTransaction.d.mts +0 -81
- package/libESM/api/cardano/api/cardanoSignTransaction.mjs +0 -298
- package/libESM/api/cardano/api/index.d.mts +0 -6
- package/libESM/api/cardano/api/index.mjs +0 -6
- package/libESM/api/cardano/cardanoAddressParameters.d.mts +0 -6
- package/libESM/api/cardano/cardanoAddressParameters.mjs +0 -79
- package/libESM/api/cardano/cardanoAuxiliaryData.d.mts +0 -4
- package/libESM/api/cardano/cardanoAuxiliaryData.mjs +0 -74
- package/libESM/api/cardano/cardanoCertificate.d.mts +0 -13
- package/libESM/api/cardano/cardanoCertificate.mjs +0 -142
- package/libESM/api/cardano/cardanoInputs.d.mts +0 -25
- package/libESM/api/cardano/cardanoInputs.mjs +0 -39
- package/libESM/api/cardano/cardanoOutputs.d.mts +0 -40
- package/libESM/api/cardano/cardanoOutputs.mjs +0 -70
- package/libESM/api/cardano/cardanoTokenBundle.d.mts +0 -12
- package/libESM/api/cardano/cardanoTokenBundle.mjs +0 -21
- package/libESM/api/cardano/cardanoUtils.d.mts +0 -9
- package/libESM/api/cardano/cardanoUtils.mjs +0 -101
- package/libESM/api/cardano/cardanoWitnesses.d.mts +0 -4
- package/libESM/api/cardano/cardanoWitnesses.mjs +0 -47
- package/libESM/api/changeLanguage.d.mts +0 -18
- package/libESM/api/changeLanguage.mjs +0 -47
- package/libESM/api/changePin.d.mts +0 -11
- package/libESM/api/changePin.mjs +0 -25
- package/libESM/api/changeWipeCode.d.mts +0 -11
- package/libESM/api/changeWipeCode.mjs +0 -27
- package/libESM/api/cipherKeyValue.d.mts +0 -15
- package/libESM/api/cipherKeyValue.mjs +0 -51
- package/libESM/api/common/AbstractMiscGetAddress.d.mts +0 -35
- package/libESM/api/common/AbstractMiscGetAddress.mjs +0 -102
- package/libESM/api/common/Discovery.d.mts +0 -33
- package/libESM/api/common/Discovery.mjs +0 -116
- package/libESM/api/common/paramsValidator.d.mts +0 -23
- package/libESM/api/common/paramsValidator.mjs +0 -134
- package/libESM/api/common/requestExistingAccounts.d.mts +0 -9
- package/libESM/api/common/requestExistingAccounts.mjs +0 -20
- package/libESM/api/composeTransaction.d.mts +0 -36
- package/libESM/api/composeTransaction.mjs +0 -386
- package/libESM/api/discoverAccounts.d.mts +0 -38
- package/libESM/api/discoverAccounts.mjs +0 -363
- package/libESM/api/ethereum/api/ethereumGetAddress.d.mts +0 -28
- package/libESM/api/ethereum/api/ethereumGetAddress.mjs +0 -135
- package/libESM/api/ethereum/api/ethereumGetPublicKey.d.mts +0 -48
- package/libESM/api/ethereum/api/ethereumGetPublicKey.mjs +0 -90
- package/libESM/api/ethereum/api/ethereumSignMessage.d.mts +0 -27
- package/libESM/api/ethereum/api/ethereumSignMessage.mjs +0 -64
- package/libESM/api/ethereum/api/ethereumSignTransaction.d.mts +0 -83
- package/libESM/api/ethereum/api/ethereumSignTransaction.mjs +0 -148
- package/libESM/api/ethereum/api/ethereumSignTypedData.d.mts +0 -116
- package/libESM/api/ethereum/api/ethereumSignTypedData.mjs +0 -202
- package/libESM/api/ethereum/api/ethereumVerifyMessage.d.mts +0 -12
- package/libESM/api/ethereum/api/ethereumVerifyMessage.mjs +0 -33
- package/libESM/api/ethereum/api/index.d.mts +0 -6
- package/libESM/api/ethereum/api/index.mjs +0 -6
- package/libESM/api/ethereum/ethereumDefinitions.d.mts +0 -46
- package/libESM/api/ethereum/ethereumDefinitions.mjs +0 -103
- package/libESM/api/ethereum/ethereumSignTx.d.mts +0 -20
- package/libESM/api/ethereum/ethereumSignTx.mjs +0 -131
- package/libESM/api/ethereum/ethereumSignTypedData.d.mts +0 -32
- package/libESM/api/ethereum/ethereumSignTypedData.mjs +0 -169
- package/libESM/api/evoluGetDelegatedIdentityKey.d.mts +0 -14
- package/libESM/api/evoluGetDelegatedIdentityKey.mjs +0 -26
- package/libESM/api/evoluGetNode.d.mts +0 -13
- package/libESM/api/evoluGetNode.mjs +0 -27
- package/libESM/api/evoluSignRegistrationRequest.d.mts +0 -15
- package/libESM/api/evoluSignRegistrationRequest.mjs +0 -31
- package/libESM/api/firmware/calculateFirmwareHash.d.mts +0 -13
- package/libESM/api/firmware/calculateFirmwareHash.mjs +0 -56
- package/libESM/api/firmware/calculateXPubHash.d.mts +0 -10
- package/libESM/api/firmware/calculateXPubHash.mjs +0 -14
- package/libESM/api/firmware/getBinary.d.mts +0 -10
- package/libESM/api/firmware/getBinary.mjs +0 -33
- package/libESM/api/firmware/index.d.mts +0 -6
- package/libESM/api/firmware/index.mjs +0 -6
- package/libESM/api/firmware/modifyFirmware.d.mts +0 -3
- package/libESM/api/firmware/modifyFirmware.mjs +0 -13
- package/libESM/api/firmware/parseFirmwareHeaders.d.mts +0 -4
- package/libESM/api/firmware/parseFirmwareHeaders.mjs +0 -26
- package/libESM/api/firmware/uploadFirmware.d.mts +0 -19
- package/libESM/api/firmware/uploadFirmware.mjs +0 -99
- package/libESM/api/firmware/verifyEntropy.d.mts +0 -18
- package/libESM/api/firmware/verifyEntropy.mjs +0 -107
- package/libESM/api/getAccountInfo.d.mts +0 -94
- package/libESM/api/getAccountInfo.mjs +0 -385
- package/libESM/api/getAddress.d.mts +0 -39
- package/libESM/api/getAddress.mjs +0 -142
- package/libESM/api/getCoinInfo.d.mts +0 -148
- package/libESM/api/getCoinInfo.mjs +0 -29
- package/libESM/api/getDeviceState.d.mts +0 -8
- package/libESM/api/getDeviceState.mjs +0 -16
- package/libESM/api/getFeatures.d.mts +0 -70
- package/libESM/api/getFeatures.mjs +0 -20
- package/libESM/api/getFirmwareHash.d.mts +0 -11
- package/libESM/api/getFirmwareHash.mjs +0 -27
- package/libESM/api/getNonce.d.mts +0 -10
- package/libESM/api/getNonce.mjs +0 -16
- package/libESM/api/getOwnershipId.d.mts +0 -15
- package/libESM/api/getOwnershipId.mjs +0 -79
- package/libESM/api/getOwnershipProof.d.mts +0 -15
- package/libESM/api/getOwnershipProof.mjs +0 -86
- package/libESM/api/getPublicKey.d.mts +0 -50
- package/libESM/api/getPublicKey.mjs +0 -88
- package/libESM/api/getSettings.d.mts +0 -8
- package/libESM/api/getSettings.mjs +0 -15
- package/libESM/api/index.d.mts +0 -59
- package/libESM/api/index.mjs +0 -59
- package/libESM/api/loadDevice.d.mts +0 -16
- package/libESM/api/loadDevice.mjs +0 -44
- package/libESM/api/monero/api/index.d.mts +0 -4
- package/libESM/api/monero/api/index.mjs +0 -4
- package/libESM/api/monero/api/moneroGetAddress.d.mts +0 -30
- package/libESM/api/monero/api/moneroGetAddress.mjs +0 -109
- package/libESM/api/monero/api/moneroGetWatchKey.d.mts +0 -14
- package/libESM/api/monero/api/moneroGetWatchKey.mjs +0 -44
- package/libESM/api/monero/api/moneroKeyImageSync.d.mts +0 -17
- package/libESM/api/monero/api/moneroKeyImageSync.mjs +0 -127
- package/libESM/api/monero/api/moneroSignTransaction.d.mts +0 -17
- package/libESM/api/monero/api/moneroSignTransaction.mjs +0 -202
- package/libESM/api/pingDevice.d.mts +0 -11
- package/libESM/api/pingDevice.mjs +0 -27
- package/libESM/api/pushTransaction.d.mts +0 -17
- package/libESM/api/pushTransaction.mjs +0 -42
- package/libESM/api/recoveryDevice.d.mts +0 -20
- package/libESM/api/recoveryDevice.mjs +0 -50
- package/libESM/api/requestLogin.d.mts +0 -14
- package/libESM/api/requestLogin.mjs +0 -48
- package/libESM/api/resetDevice.d.mts +0 -22
- package/libESM/api/resetDevice.mjs +0 -131
- package/libESM/api/ripple/api/index.d.mts +0 -2
- package/libESM/api/ripple/api/index.mjs +0 -2
- package/libESM/api/ripple/api/rippleGetAddress.d.mts +0 -15
- package/libESM/api/ripple/api/rippleGetAddress.mjs +0 -22
- package/libESM/api/ripple/api/rippleSignTransaction.d.mts +0 -13
- package/libESM/api/ripple/api/rippleSignTransaction.mjs +0 -52
- package/libESM/api/setBrightness.d.mts +0 -12
- package/libESM/api/setBrightness.mjs +0 -26
- package/libESM/api/setBusy.d.mts +0 -11
- package/libESM/api/setBusy.mjs +0 -32
- package/libESM/api/showDeviceTutorial.d.mts +0 -11
- package/libESM/api/showDeviceTutorial.mjs +0 -21
- package/libESM/api/signMessage.d.mts +0 -25
- package/libESM/api/signMessage.mjs +0 -71
- package/libESM/api/signTransaction.d.mts +0 -197
- package/libESM/api/signTransaction.mjs +0 -334
- package/libESM/api/solana/api/index.d.mts +0 -4
- package/libESM/api/solana/api/index.mjs +0 -4
- package/libESM/api/solana/api/solanaComposeTransaction.d.mts +0 -31
- package/libESM/api/solana/api/solanaComposeTransaction.mjs +0 -76
- package/libESM/api/solana/api/solanaGetAddress.d.mts +0 -15
- package/libESM/api/solana/api/solanaGetAddress.mjs +0 -22
- package/libESM/api/solana/api/solanaGetPublicKey.d.mts +0 -28
- package/libESM/api/solana/api/solanaGetPublicKey.mjs +0 -67
- package/libESM/api/solana/api/solanaSignTransaction.d.mts +0 -41
- package/libESM/api/solana/api/solanaSignTransaction.mjs +0 -203
- package/libESM/api/solana/solanaDefinitions.d.mts +0 -7
- package/libESM/api/solana/solanaDefinitions.mjs +0 -33
- package/libESM/api/stellar/api/index.d.mts +0 -2
- package/libESM/api/stellar/api/index.mjs +0 -2
- package/libESM/api/stellar/api/stellarGetAddress.d.mts +0 -15
- package/libESM/api/stellar/api/stellarGetAddress.mjs +0 -22
- package/libESM/api/stellar/api/stellarSignTransaction.d.mts +0 -26
- package/libESM/api/stellar/api/stellarSignTransaction.mjs +0 -66
- package/libESM/api/stellar/stellarSignTx.d.mts +0 -7
- package/libESM/api/stellar/stellarSignTx.mjs +0 -191
- package/libESM/api/telemetryGet.d.mts +0 -14
- package/libESM/api/telemetryGet.mjs +0 -24
- package/libESM/api/tezos/api/index.d.mts +0 -3
- package/libESM/api/tezos/api/index.mjs +0 -3
- package/libESM/api/tezos/api/tezosGetAddress.d.mts +0 -15
- package/libESM/api/tezos/api/tezosGetAddress.mjs +0 -22
- package/libESM/api/tezos/api/tezosGetPublicKey.d.mts +0 -24
- package/libESM/api/tezos/api/tezosGetPublicKey.mjs +0 -66
- package/libESM/api/tezos/api/tezosSignTransaction.d.mts +0 -14
- package/libESM/api/tezos/api/tezosSignTransaction.mjs +0 -30
- package/libESM/api/tezos/tezosSignTx.d.mts +0 -71
- package/libESM/api/tezos/tezosSignTx.mjs +0 -204
- package/libESM/api/thpGetCredentials.d.mts +0 -13
- package/libESM/api/thpGetCredentials.mjs +0 -28
- package/libESM/api/thpRemoveCredentials.d.mts +0 -15
- package/libESM/api/thpRemoveCredentials.mjs +0 -42
- package/libESM/api/tron/api/index.d.mts +0 -3
- package/libESM/api/tron/api/index.mjs +0 -3
- package/libESM/api/tron/api/tronComposeTransaction.d.mts +0 -17
- package/libESM/api/tron/api/tronComposeTransaction.mjs +0 -51
- package/libESM/api/tron/api/tronGetAddress.d.mts +0 -15
- package/libESM/api/tron/api/tronGetAddress.mjs +0 -20
- package/libESM/api/tron/api/tronSignTransaction.d.mts +0 -19
- package/libESM/api/tron/api/tronSignTransaction.mjs +0 -129
- package/libESM/api/tron/tronEncode.d.mts +0 -12
- package/libESM/api/tron/tronEncode.mjs +0 -77
- package/libESM/api/tron/tronProtobuf.d.mts +0 -5
- package/libESM/api/tron/tronProtobuf.mjs +0 -28
- package/libESM/api/unlockPath.d.mts +0 -12
- package/libESM/api/unlockPath.mjs +0 -31
- package/libESM/api/verifyMessage.d.mts +0 -16
- package/libESM/api/verifyMessage.mjs +0 -46
- package/libESM/api/wipeDevice.d.mts +0 -21
- package/libESM/api/wipeDevice.mjs +0 -47
- package/libESM/backend/BackendManager.d.mts +0 -24
- package/libESM/backend/BackendManager.mjs +0 -137
- package/libESM/backend/Blockchain.d.mts +0 -81
- package/libESM/backend/Blockchain.mjs +0 -232
- package/libESM/backend/BlockchainLink.d.mts +0 -9
- package/libESM/backend/BlockchainLink.mjs +0 -13
- package/libESM/backend/fees/BitcoinFeeLevels.d.mts +0 -19
- package/libESM/backend/fees/BitcoinFeeLevels.mjs +0 -43
- package/libESM/backend/fees/EthereumFeeLevels.d.mts +0 -17
- package/libESM/backend/fees/EthereumFeeLevels.mjs +0 -52
- package/libESM/backend/fees/MiscFeeLevels.d.mts +0 -18
- package/libESM/backend/fees/MiscFeeLevels.mjs +0 -25
- package/libESM/backend/fees/index.d.mts +0 -5
- package/libESM/backend/fees/index.mjs +0 -30
- package/libESM/core/AbstractMethod.d.mts +0 -65
- package/libESM/core/AbstractMethod.mjs +0 -153
- package/libESM/core/index.d.mts +0 -27
- package/libESM/core/index.mjs +0 -795
- package/libESM/core/method.d.mts +0 -3
- package/libESM/core/method.mjs +0 -19
- package/libESM/core/method.native.d.mts +0 -2
- package/libESM/core/method.native.mjs +0 -29
- package/libESM/core/onCallFirmwareUpdate.d.mts +0 -39
- package/libESM/core/onCallFirmwareUpdate.mjs +0 -436
- package/libESM/data/coinInfo.d.mts +0 -374
- package/libESM/data/coinInfo.mjs +0 -183
- package/libESM/data/config.d.mts +0 -8
- package/libESM/data/config.mjs +0 -265
- package/libESM/data/defaultFeeLevels.d.mts +0 -18
- package/libESM/data/defaultFeeLevels.mjs +0 -174
- package/libESM/data/firmwareInfo.d.mts +0 -41
- package/libESM/data/firmwareInfo.mjs +0 -411
- package/libESM/data/firmwareReleaseStore.d.mts +0 -10
- package/libESM/data/firmwareReleaseStore.mjs +0 -16
- package/libESM/data/localFirmwareStore.d.mts +0 -3
- package/libESM/data/localFirmwareStore.mjs +0 -8
- package/libESM/data/protobufLoader.d.mts +0 -1
- package/libESM/data/protobufLoader.mjs +0 -29
- package/libESM/data/settingsStore.d.mts +0 -6
- package/libESM/data/settingsStore.mjs +0 -21
- package/libESM/device/Device.d.mts +0 -237
- package/libESM/device/Device.mjs +0 -729
- package/libESM/device/DeviceCommands.d.mts +0 -77
- package/libESM/device/DeviceCommands.mjs +0 -245
- package/libESM/device/DeviceCurrentSession.d.mts +0 -3208
- package/libESM/device/DeviceCurrentSession.mjs +0 -240
- package/libESM/device/DeviceList.d.mts +0 -68
- package/libESM/device/DeviceList.mjs +0 -246
- package/libESM/device/TransportList.d.mts +0 -9
- package/libESM/device/TransportList.mjs +0 -41
- package/libESM/device/TransportManager.d.mts +0 -30
- package/libESM/device/TransportManager.mjs +0 -142
- package/libESM/device/calculateRevisionForDevice.d.mts +0 -7
- package/libESM/device/calculateRevisionForDevice.mjs +0 -19
- package/libESM/device/checkFirmwareRevision.d.mts +0 -12
- package/libESM/device/checkFirmwareRevision.mjs +0 -75
- package/libESM/device/resolveDescriptorForTaproot.d.mts +0 -14
- package/libESM/device/resolveDescriptorForTaproot.mjs +0 -25
- package/libESM/device/thp/handshake.d.mts +0 -3
- package/libESM/device/thp/handshake.mjs +0 -100
- package/libESM/device/thp/index.d.mts +0 -5
- package/libESM/device/thp/index.mjs +0 -65
- package/libESM/device/thp/pairing.d.mts +0 -16
- package/libESM/device/thp/pairing.mjs +0 -237
- package/libESM/device/thp/session.d.mts +0 -2
- package/libESM/device/thp/session.mjs +0 -27
- package/libESM/device/thp/thpCall.d.mts +0 -40
- package/libESM/device/thp/thpCall.mjs +0 -58
- package/libESM/device/validateMessageSize.d.mts +0 -2
- package/libESM/device/validateMessageSize.mjs +0 -9
- package/libESM/device/workflow/changeLanguage.d.mts +0 -14
- package/libESM/device/workflow/changeLanguage.mjs +0 -59
- package/libESM/device/workflow/checkFirmwareHash.d.mts +0 -9
- package/libESM/device/workflow/checkFirmwareHash.mjs +0 -86
- package/libESM/device/workflow/checkFirmwareHashWithRetries.d.mts +0 -8
- package/libESM/device/workflow/checkFirmwareHashWithRetries.mjs +0 -36
- package/libESM/device/workflow/handshake.d.mts +0 -9
- package/libESM/device/workflow/handshake.mjs +0 -55
- package/libESM/device/workflow/trezorPushNotification.d.mts +0 -2
- package/libESM/device/workflow/trezorPushNotification.mjs +0 -73
- package/libESM/device/workflow/validateState.d.mts +0 -2
- package/libESM/device/workflow/validateState.mjs +0 -153
- package/libESM/events/ui-promise.d.mts +0 -22
- package/libESM/events/ui-promise.mjs +0 -1
- package/libESM/exports.d.mts +0 -3
- package/libESM/exports.mjs +0 -3
- package/libESM/impl/core-in-module.d.mts +0 -27
- package/libESM/impl/core-in-module.mjs +0 -173
- package/libESM/index.browser.d.mts +0 -9
- package/libESM/index.browser.mjs +0 -50
- package/libESM/index.d.mts +0 -6
- package/libESM/index.mjs +0 -32
- package/libESM/index.renderer.d.mts +0 -6
- package/libESM/index.renderer.mjs +0 -19
- package/libESM/tsconfig.libESM.tsbuildinfo +0 -1
- package/libESM/types/idevice.d.mts +0 -109
- package/libESM/types/idevice.mjs +0 -1
- package/libESM/types/typed-call-provider.d.mts +0 -29
- package/libESM/types/typed-call-provider.mjs +0 -1
- package/libESM/types/workflow.d.mts +0 -16
- package/libESM/types/workflow.mjs +0 -1
- package/libESM/utils/accountUtils.d.mts +0 -10
- package/libESM/utils/accountUtils.mjs +0 -83
- package/libESM/utils/addressUtils.d.mts +0 -2
- package/libESM/utils/addressUtils.mjs +0 -24
- package/libESM/utils/assetUtils.d.mts +0 -13
- package/libESM/utils/assetUtils.mjs +0 -56
- package/libESM/utils/assets.browser.d.mts +0 -1
- package/libESM/utils/assets.browser.mjs +0 -1
- package/libESM/utils/assets.d.mts +0 -2
- package/libESM/utils/assets.mjs +0 -13
- package/libESM/utils/assets.native.d.mts +0 -2
- package/libESM/utils/assets.native.mjs +0 -23
- package/libESM/utils/assetsTypes.d.mts +0 -5
- package/libESM/utils/assetsTypes.mjs +0 -1
- package/libESM/utils/buildOutputDescriptor.d.mts +0 -12
- package/libESM/utils/buildOutputDescriptor.mjs +0 -67
- package/libESM/utils/deviceFeaturesUtils.d.mts +0 -7
- package/libESM/utils/deviceFeaturesUtils.mjs +0 -109
- package/libESM/utils/ethereumUtils.d.mts +0 -3
- package/libESM/utils/ethereumUtils.mjs +0 -7
- package/libESM/utils/firmwareReleaseConfigUtils.d.mts +0 -19
- package/libESM/utils/firmwareReleaseConfigUtils.mjs +0 -131
- package/libESM/utils/firmwareUtils.d.mts +0 -13
- package/libESM/utils/firmwareUtils.mjs +0 -54
- package/libESM/utils/formatUtils.d.mts +0 -15
- package/libESM/utils/formatUtils.mjs +0 -45
- package/libESM/utils/hdnodeUtils.d.mts +0 -6
- package/libESM/utils/hdnodeUtils.mjs +0 -62
- package/libESM/utils/pathUtils.d.mts +0 -17
- package/libESM/utils/pathUtils.mjs +0 -141
- package/libESM/utils/paymentRequest.d.mts +0 -8
- package/libESM/utils/paymentRequest.mjs +0 -25
- package/libESM/utils/uiPromiseManager.d.mts +0 -8
- package/libESM/utils/uiPromiseManager.mjs +0 -51
- package/libESM/workers/workers.browser.d.mts +0 -10
- package/libESM/workers/workers.browser.mjs +0 -16
- package/libESM/workers/workers.d.mts +0 -10
- package/libESM/workers/workers.mjs +0 -8
- package/libESM/workers/workers.native.d.mts +0 -7
- package/libESM/workers/workers.native.mjs +0 -7
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { RippleSignTransaction as RippleSignTransactionSchema } from "@trezor/connect-common";
|
|
2
|
-
import { Assert } from "@trezor/schema-utils";
|
|
3
|
-
import { AbstractMethod } from "../../../core/AbstractMethod.mjs";
|
|
4
|
-
import { getMiscNetwork } from "../../../data/coinInfo.mjs";
|
|
5
|
-
import { validatePath } from "../../../utils/pathUtils.mjs";
|
|
6
|
-
import { PAYMENT_REQUEST_AMOUNT_BYTES, encodePaymentRequestAmount } from "../../../utils/paymentRequest.mjs";
|
|
7
|
-
export default class RippleSignTransaction extends AbstractMethod {
|
|
8
|
-
constructor(message) {
|
|
9
|
-
const {
|
|
10
|
-
payload
|
|
11
|
-
} = message;
|
|
12
|
-
Assert(RippleSignTransactionSchema, payload);
|
|
13
|
-
const path = validatePath(payload.path, 5);
|
|
14
|
-
const {
|
|
15
|
-
transaction,
|
|
16
|
-
chunkify
|
|
17
|
-
} = payload;
|
|
18
|
-
const params = {
|
|
19
|
-
address_n: path,
|
|
20
|
-
fee: transaction.fee,
|
|
21
|
-
flags: transaction.flags,
|
|
22
|
-
sequence: transaction.sequence,
|
|
23
|
-
last_ledger_sequence: transaction.maxLedgerVersion,
|
|
24
|
-
payment: {
|
|
25
|
-
amount: transaction.payment.amount,
|
|
26
|
-
destination: transaction.payment.destination,
|
|
27
|
-
destination_tag: transaction.payment.destinationTag
|
|
28
|
-
},
|
|
29
|
-
payment_req: payload.payment_req ? encodePaymentRequestAmount(payload.payment_req, PAYMENT_REQUEST_AMOUNT_BYTES.DEFAULT) : undefined,
|
|
30
|
-
chunkify: typeof chunkify === 'boolean' ? chunkify : false
|
|
31
|
-
};
|
|
32
|
-
super(message, params);
|
|
33
|
-
this.requiredDeviceCapabilities = ['Capability_Ripple'];
|
|
34
|
-
this.requiredFirmwareCoins = [getMiscNetwork('Ripple')];
|
|
35
|
-
}
|
|
36
|
-
get requiredPermissions() {
|
|
37
|
-
return ['read', 'write'];
|
|
38
|
-
}
|
|
39
|
-
get info() {
|
|
40
|
-
return 'Sign Ripple transaction';
|
|
41
|
-
}
|
|
42
|
-
async run() {
|
|
43
|
-
const cmd = this.getDevice().getCommands();
|
|
44
|
-
const {
|
|
45
|
-
message
|
|
46
|
-
} = await cmd.typedCall('RippleSignTx', 'RippleSignedTx', this.params);
|
|
47
|
-
return {
|
|
48
|
-
serializedTx: message.serialized_tx,
|
|
49
|
-
signature: message.signature
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type MethodPermission } from '@trezor/connect-common';
|
|
2
|
-
import { MessagesSchema as PROTO } from '@trezor/protobuf';
|
|
3
|
-
import type { MethodMessage } from '../core/AbstractMethod';
|
|
4
|
-
import { AbstractMethod } from '../core/AbstractMethod';
|
|
5
|
-
export default class SetBrightness extends AbstractMethod<'setBrightness', PROTO.SetBrightness> {
|
|
6
|
-
constructor(message: MethodMessage<'setBrightness'>);
|
|
7
|
-
get requiredPermissions(): MethodPermission[];
|
|
8
|
-
init(): void;
|
|
9
|
-
run(): Promise<{
|
|
10
|
-
message: string;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MessagesSchema as PROTO } from "@trezor/protobuf";
|
|
2
|
-
import { Assert } from "@trezor/schema-utils";
|
|
3
|
-
import { AbstractMethod } from "../core/AbstractMethod.mjs";
|
|
4
|
-
export default class SetBrightness extends AbstractMethod {
|
|
5
|
-
constructor(message) {
|
|
6
|
-
const {
|
|
7
|
-
payload
|
|
8
|
-
} = message;
|
|
9
|
-
Assert(PROTO.SetBrightness, payload);
|
|
10
|
-
const params = {
|
|
11
|
-
value: payload.value
|
|
12
|
-
};
|
|
13
|
-
super(message, params);
|
|
14
|
-
this.skipFinalReload = false;
|
|
15
|
-
this.useDeviceState = false;
|
|
16
|
-
}
|
|
17
|
-
get requiredPermissions() {
|
|
18
|
-
return ['management'];
|
|
19
|
-
}
|
|
20
|
-
init() {}
|
|
21
|
-
async run() {
|
|
22
|
-
const cmd = this.getDevice().getCommands();
|
|
23
|
-
const response = await cmd.typedCall('SetBrightness', 'Success', this.params);
|
|
24
|
-
return response.message;
|
|
25
|
-
}
|
|
26
|
-
}
|
package/libESM/api/setBusy.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type MethodPermission } from '@trezor/connect-common';
|
|
2
|
-
import type { MessagesSchema as PROTO } from '@trezor/protobuf';
|
|
3
|
-
import type { MethodContext, MethodMessage } from '../core/AbstractMethod';
|
|
4
|
-
import { AbstractMethod } from '../core/AbstractMethod';
|
|
5
|
-
export default class SetBusy extends AbstractMethod<'setBusy', PROTO.SetBusy> {
|
|
6
|
-
constructor(message: MethodMessage<'setBusy'>);
|
|
7
|
-
get requiredPermissions(): MethodPermission[];
|
|
8
|
-
run({ sendCoreMessage }: MethodContext): Promise<{
|
|
9
|
-
message: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
package/libESM/api/setBusy.mjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DEVICE, createDeviceMessage } from "@trezor/connect-common";
|
|
2
|
-
import { AbstractMethod } from "../core/AbstractMethod.mjs";
|
|
3
|
-
export default class SetBusy extends AbstractMethod {
|
|
4
|
-
constructor(message) {
|
|
5
|
-
const {
|
|
6
|
-
payload
|
|
7
|
-
} = message;
|
|
8
|
-
const params = {
|
|
9
|
-
expiry_ms: payload.expiry_ms
|
|
10
|
-
};
|
|
11
|
-
super(message, params);
|
|
12
|
-
this.useDeviceState = false;
|
|
13
|
-
this.skipFinalReload = false;
|
|
14
|
-
this.overridePreviousCall = true;
|
|
15
|
-
}
|
|
16
|
-
get requiredPermissions() {
|
|
17
|
-
return ['management'];
|
|
18
|
-
}
|
|
19
|
-
async run({
|
|
20
|
-
sendCoreMessage
|
|
21
|
-
}) {
|
|
22
|
-
const cmd = this.getDevice().getCommands();
|
|
23
|
-
const {
|
|
24
|
-
message
|
|
25
|
-
} = await cmd.typedCall('SetBusy', 'Success', this.params);
|
|
26
|
-
if (this.keepSession && !!this.params.expiry_ms) {
|
|
27
|
-
this.getDevice().features.busy = true;
|
|
28
|
-
sendCoreMessage(createDeviceMessage(DEVICE.CHANGED, this.getDevice().toMessageObject()));
|
|
29
|
-
}
|
|
30
|
-
return message;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type MethodPermission } from '@trezor/connect-common';
|
|
2
|
-
import type { MethodMessage } from '../core/AbstractMethod';
|
|
3
|
-
import { AbstractMethod } from '../core/AbstractMethod';
|
|
4
|
-
export default class ShowDeviceTutorial extends AbstractMethod<'showDeviceTutorial'> {
|
|
5
|
-
constructor(message: MethodMessage<'showDeviceTutorial'>);
|
|
6
|
-
get requiredPermissions(): MethodPermission[];
|
|
7
|
-
get info(): string;
|
|
8
|
-
run(): Promise<{
|
|
9
|
-
message: string;
|
|
10
|
-
}>;
|
|
11
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UI_REQUEST } from "@trezor/connect-common";
|
|
2
|
-
import { AbstractMethod } from "../core/AbstractMethod.mjs";
|
|
3
|
-
export default class ShowDeviceTutorial extends AbstractMethod {
|
|
4
|
-
constructor(message) {
|
|
5
|
-
super(message, undefined);
|
|
6
|
-
this.useEmptyPassphrase = true;
|
|
7
|
-
this.useDeviceState = false;
|
|
8
|
-
this.allowDeviceMode = [UI_REQUEST.INITIALIZE];
|
|
9
|
-
}
|
|
10
|
-
get requiredPermissions() {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
get info() {
|
|
14
|
-
return 'Show device tutorial';
|
|
15
|
-
}
|
|
16
|
-
async run() {
|
|
17
|
-
const cmd = this.getDevice().getCommands();
|
|
18
|
-
const response = await cmd.typedCall('ShowDeviceTutorial', 'Success');
|
|
19
|
-
return response.message;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { BitcoinNetworkInfo, MethodPermission } from '@trezor/connect-common';
|
|
2
|
-
import type { MessagesSchema as PROTO } from '@trezor/protobuf';
|
|
3
|
-
import type { MethodMessage } from '../core/AbstractMethod';
|
|
4
|
-
import { AbstractMethod } from '../core/AbstractMethod';
|
|
5
|
-
type Params = {
|
|
6
|
-
proto: PROTO.SignMessage;
|
|
7
|
-
readableMessage: string;
|
|
8
|
-
};
|
|
9
|
-
export default class SignMessage extends AbstractMethod<'signMessage', Params> {
|
|
10
|
-
constructor(message: MethodMessage<'signMessage'>);
|
|
11
|
-
coinInfo: BitcoinNetworkInfo | undefined;
|
|
12
|
-
get requiredPermissions(): MethodPermission[];
|
|
13
|
-
get info(): string;
|
|
14
|
-
getButtonRequestData(code: string, name?: string): {
|
|
15
|
-
type: "message";
|
|
16
|
-
serializedPath: string;
|
|
17
|
-
coin: string;
|
|
18
|
-
message: string;
|
|
19
|
-
} | undefined;
|
|
20
|
-
run(): Promise<{
|
|
21
|
-
address: string;
|
|
22
|
-
signature: string;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { SignMessage as SignMessageSchema } from "@trezor/connect-common";
|
|
2
|
-
import { Assert } from "@trezor/schema-utils";
|
|
3
|
-
import { AbstractMethod } from "../core/AbstractMethod.mjs";
|
|
4
|
-
import { validateCoinPath } from "./common/paramsValidator.mjs";
|
|
5
|
-
import { getBitcoinNetwork } from "../data/coinInfo.mjs";
|
|
6
|
-
import { validateModelOneMessageSize } from "../device/validateMessageSize.mjs";
|
|
7
|
-
import { hexToText, messageToHex } from "../utils/formatUtils.mjs";
|
|
8
|
-
import { getLabel, getScriptType, getSerializedPath, validatePath } from "../utils/pathUtils.mjs";
|
|
9
|
-
export default class SignMessage extends AbstractMethod {
|
|
10
|
-
constructor(message) {
|
|
11
|
-
const {
|
|
12
|
-
payload
|
|
13
|
-
} = message;
|
|
14
|
-
Assert(SignMessageSchema, payload);
|
|
15
|
-
const path = validatePath(payload.path);
|
|
16
|
-
let coinInfo;
|
|
17
|
-
if (payload.coin) {
|
|
18
|
-
coinInfo = getBitcoinNetwork(payload.coin);
|
|
19
|
-
validateCoinPath(path, coinInfo);
|
|
20
|
-
} else {
|
|
21
|
-
coinInfo = getBitcoinNetwork(path);
|
|
22
|
-
}
|
|
23
|
-
const messageHex = payload.hex ? messageToHex(payload.message) : Buffer.from(payload.message, 'utf8').toString('hex');
|
|
24
|
-
const readableMessage = payload.hex ? hexToText(payload.message) : payload.message;
|
|
25
|
-
const scriptType = getScriptType(path);
|
|
26
|
-
const proto = {
|
|
27
|
-
address_n: path,
|
|
28
|
-
message: messageHex,
|
|
29
|
-
coin_name: coinInfo ? coinInfo.name : undefined,
|
|
30
|
-
script_type: scriptType && scriptType !== 'SPENDMULTISIG' ? scriptType : 'SPENDADDRESS',
|
|
31
|
-
no_script_type: payload.no_script_type
|
|
32
|
-
};
|
|
33
|
-
const params = {
|
|
34
|
-
proto,
|
|
35
|
-
readableMessage
|
|
36
|
-
};
|
|
37
|
-
super(message, params);
|
|
38
|
-
this.coinInfo = coinInfo;
|
|
39
|
-
this.requiredFirmwareCoins = [coinInfo];
|
|
40
|
-
if (payload.no_script_type) {
|
|
41
|
-
this.requiredFirmwareCapabilities = ['signMessageNoScriptType'];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
coinInfo;
|
|
45
|
-
get requiredPermissions() {
|
|
46
|
-
return ['read', 'write'];
|
|
47
|
-
}
|
|
48
|
-
get info() {
|
|
49
|
-
return getLabel('Sign #NETWORK message', this.coinInfo);
|
|
50
|
-
}
|
|
51
|
-
getButtonRequestData(code, name) {
|
|
52
|
-
if (code === 'ButtonRequest_Other' && name === 'sign_message') {
|
|
53
|
-
return {
|
|
54
|
-
type: 'message',
|
|
55
|
-
serializedPath: getSerializedPath(this.params.proto.address_n),
|
|
56
|
-
coin: this.coinInfo?.shortcut ?? 'BTC',
|
|
57
|
-
message: this.params.readableMessage
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async run() {
|
|
62
|
-
validateModelOneMessageSize(this.getDevice(), this.params.proto.message);
|
|
63
|
-
const cmd = this.getDevice().getCommands();
|
|
64
|
-
const {
|
|
65
|
-
message
|
|
66
|
-
} = await cmd.typedCall('SignMessage', 'MessageSignature', this.params.proto);
|
|
67
|
-
const signatureBuffer = Buffer.from(message.signature, 'hex');
|
|
68
|
-
message.signature = signatureBuffer.toString('base64');
|
|
69
|
-
return message;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import type { AccountAddresses, BitcoinNetworkInfo, MethodPermission, PROTO, RefTransaction, TransactionOptions } from '@trezor/connect-common';
|
|
2
|
-
import type { MethodContext, MethodMessage } from '../core/AbstractMethod';
|
|
3
|
-
import { AbstractMethod } from '../core/AbstractMethod';
|
|
4
|
-
type Params = {
|
|
5
|
-
inputs: PROTO.TxInputType[];
|
|
6
|
-
outputs: PROTO.TxOutputType[];
|
|
7
|
-
paymentRequests: PROTO.PaymentRequest[];
|
|
8
|
-
coinjoinRequest?: PROTO.CoinJoinRequest;
|
|
9
|
-
refTxs?: RefTransaction[];
|
|
10
|
-
addresses?: AccountAddresses;
|
|
11
|
-
options: TransactionOptions;
|
|
12
|
-
coinInfo: BitcoinNetworkInfo;
|
|
13
|
-
identity?: string;
|
|
14
|
-
push: boolean;
|
|
15
|
-
unlockPath?: PROTO.UnlockPath;
|
|
16
|
-
};
|
|
17
|
-
export default class SignTransaction extends AbstractMethod<'signTransaction', Params> {
|
|
18
|
-
constructor(message: MethodMessage<'signTransaction'>);
|
|
19
|
-
get requiredPermissions(): MethodPermission[];
|
|
20
|
-
get info(): string;
|
|
21
|
-
payloadToPrecomposed(): Promise<undefined> | Promise<{
|
|
22
|
-
type: "final";
|
|
23
|
-
inputs: (({
|
|
24
|
-
sequence?: number | undefined;
|
|
25
|
-
multisig?: {
|
|
26
|
-
address_n?: number[] | undefined;
|
|
27
|
-
nodes?: {
|
|
28
|
-
private_key?: string | undefined;
|
|
29
|
-
fingerprint: number;
|
|
30
|
-
depth: number;
|
|
31
|
-
child_num: number;
|
|
32
|
-
chain_code: string;
|
|
33
|
-
public_key: string;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
pubkeys_order?: PROTO.MultisigPubkeysOrder | undefined;
|
|
36
|
-
m: number;
|
|
37
|
-
pubkeys: {
|
|
38
|
-
address_n: number[];
|
|
39
|
-
node: string | {
|
|
40
|
-
private_key?: string | undefined;
|
|
41
|
-
fingerprint: number;
|
|
42
|
-
depth: number;
|
|
43
|
-
child_num: number;
|
|
44
|
-
chain_code: string;
|
|
45
|
-
public_key: string;
|
|
46
|
-
};
|
|
47
|
-
}[];
|
|
48
|
-
signatures: string[];
|
|
49
|
-
} | undefined;
|
|
50
|
-
decred_tree?: number | undefined;
|
|
51
|
-
orig_hash?: string | undefined;
|
|
52
|
-
orig_index?: number | undefined;
|
|
53
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
54
|
-
script_pubkey?: string | undefined;
|
|
55
|
-
coinjoin_flags?: number | undefined;
|
|
56
|
-
script_sig?: string | undefined;
|
|
57
|
-
witness?: string | undefined;
|
|
58
|
-
ownership_proof?: string | undefined;
|
|
59
|
-
commitment_data?: string | undefined;
|
|
60
|
-
prev_hash: string;
|
|
61
|
-
prev_index: number;
|
|
62
|
-
amount: string | number;
|
|
63
|
-
} & {
|
|
64
|
-
script_type?: "SPENDADDRESS" | "SPENDMULTISIG" | "SPENDWITNESS" | "SPENDP2SHWITNESS" | "SPENDTAPROOT" | undefined;
|
|
65
|
-
address_n: number[];
|
|
66
|
-
}) | ({
|
|
67
|
-
sequence?: number | undefined;
|
|
68
|
-
multisig?: {
|
|
69
|
-
address_n?: number[] | undefined;
|
|
70
|
-
nodes?: {
|
|
71
|
-
private_key?: string | undefined;
|
|
72
|
-
fingerprint: number;
|
|
73
|
-
depth: number;
|
|
74
|
-
child_num: number;
|
|
75
|
-
chain_code: string;
|
|
76
|
-
public_key: string;
|
|
77
|
-
}[] | undefined;
|
|
78
|
-
pubkeys_order?: PROTO.MultisigPubkeysOrder | undefined;
|
|
79
|
-
m: number;
|
|
80
|
-
pubkeys: {
|
|
81
|
-
address_n: number[];
|
|
82
|
-
node: string | {
|
|
83
|
-
private_key?: string | undefined;
|
|
84
|
-
fingerprint: number;
|
|
85
|
-
depth: number;
|
|
86
|
-
child_num: number;
|
|
87
|
-
chain_code: string;
|
|
88
|
-
public_key: string;
|
|
89
|
-
};
|
|
90
|
-
}[];
|
|
91
|
-
signatures: string[];
|
|
92
|
-
} | undefined;
|
|
93
|
-
decred_tree?: number | undefined;
|
|
94
|
-
orig_hash?: string | undefined;
|
|
95
|
-
orig_index?: number | undefined;
|
|
96
|
-
decred_staking_spend?: PROTO.DecredStakingSpendType | undefined;
|
|
97
|
-
script_pubkey?: string | undefined;
|
|
98
|
-
coinjoin_flags?: number | undefined;
|
|
99
|
-
script_sig?: string | undefined;
|
|
100
|
-
witness?: string | undefined;
|
|
101
|
-
ownership_proof?: string | undefined;
|
|
102
|
-
commitment_data?: string | undefined;
|
|
103
|
-
prev_hash: string;
|
|
104
|
-
prev_index: number;
|
|
105
|
-
amount: string | number;
|
|
106
|
-
} & {
|
|
107
|
-
address_n?: undefined;
|
|
108
|
-
script_pubkey: string;
|
|
109
|
-
script_type: "EXTERNAL";
|
|
110
|
-
}))[];
|
|
111
|
-
outputs: ({
|
|
112
|
-
multisig?: {
|
|
113
|
-
address_n?: number[] | undefined;
|
|
114
|
-
nodes?: {
|
|
115
|
-
private_key?: string | undefined;
|
|
116
|
-
fingerprint: number;
|
|
117
|
-
depth: number;
|
|
118
|
-
child_num: number;
|
|
119
|
-
chain_code: string;
|
|
120
|
-
public_key: string;
|
|
121
|
-
}[] | undefined;
|
|
122
|
-
pubkeys_order?: PROTO.MultisigPubkeysOrder | undefined;
|
|
123
|
-
m: number;
|
|
124
|
-
pubkeys: {
|
|
125
|
-
address_n: number[];
|
|
126
|
-
node: string | {
|
|
127
|
-
private_key?: string | undefined;
|
|
128
|
-
fingerprint: number;
|
|
129
|
-
depth: number;
|
|
130
|
-
child_num: number;
|
|
131
|
-
chain_code: string;
|
|
132
|
-
public_key: string;
|
|
133
|
-
};
|
|
134
|
-
}[];
|
|
135
|
-
signatures: string[];
|
|
136
|
-
} | undefined;
|
|
137
|
-
orig_hash?: string | undefined;
|
|
138
|
-
orig_index?: number | undefined;
|
|
139
|
-
address_n?: undefined;
|
|
140
|
-
script_type?: "PAYTOADDRESS" | undefined;
|
|
141
|
-
payment_req_index?: number | undefined;
|
|
142
|
-
amount: string | number;
|
|
143
|
-
address: string;
|
|
144
|
-
} | {
|
|
145
|
-
multisig?: {
|
|
146
|
-
address_n?: number[] | undefined;
|
|
147
|
-
nodes?: {
|
|
148
|
-
private_key?: string | undefined;
|
|
149
|
-
fingerprint: number;
|
|
150
|
-
depth: number;
|
|
151
|
-
child_num: number;
|
|
152
|
-
chain_code: string;
|
|
153
|
-
public_key: string;
|
|
154
|
-
}[] | undefined;
|
|
155
|
-
pubkeys_order?: PROTO.MultisigPubkeysOrder | undefined;
|
|
156
|
-
m: number;
|
|
157
|
-
pubkeys: {
|
|
158
|
-
address_n: number[];
|
|
159
|
-
node: string | {
|
|
160
|
-
private_key?: string | undefined;
|
|
161
|
-
fingerprint: number;
|
|
162
|
-
depth: number;
|
|
163
|
-
child_num: number;
|
|
164
|
-
chain_code: string;
|
|
165
|
-
public_key: string;
|
|
166
|
-
};
|
|
167
|
-
}[];
|
|
168
|
-
signatures: string[];
|
|
169
|
-
} | undefined;
|
|
170
|
-
orig_hash?: string | undefined;
|
|
171
|
-
orig_index?: number | undefined;
|
|
172
|
-
script_type?: "PAYTOADDRESS" | "PAYTOSCRIPTHASH" | "PAYTOMULTISIG" | "PAYTOWITNESS" | "PAYTOP2SHWITNESS" | "PAYTOTAPROOT" | undefined;
|
|
173
|
-
address?: undefined;
|
|
174
|
-
payment_req_index?: number | undefined;
|
|
175
|
-
amount: string | number;
|
|
176
|
-
address_n: number[];
|
|
177
|
-
} | {
|
|
178
|
-
orig_hash?: string | undefined;
|
|
179
|
-
orig_index?: number | undefined;
|
|
180
|
-
address_n?: undefined;
|
|
181
|
-
address?: undefined;
|
|
182
|
-
payment_req_index?: number | undefined;
|
|
183
|
-
amount: 0 | "0";
|
|
184
|
-
script_type: "PAYTOOPRETURN";
|
|
185
|
-
op_return_data: string;
|
|
186
|
-
})[];
|
|
187
|
-
outputsPermutation: number[];
|
|
188
|
-
totalSpent: string;
|
|
189
|
-
fee: string;
|
|
190
|
-
feePerByte: string;
|
|
191
|
-
bytes: number;
|
|
192
|
-
}>;
|
|
193
|
-
private fetchAddresses;
|
|
194
|
-
private fetchRefTxs;
|
|
195
|
-
run({ sendCoreMessage }: MethodContext): Promise<import("@trezor/connect-common").SignedTransaction>;
|
|
196
|
-
}
|
|
197
|
-
export {};
|