@trezor/connect 9.0.0-beta.5 → 9.0.0-beta.6

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.
Files changed (70) hide show
  1. package/README.md +1 -1
  2. package/lib/api/binance/binanceSignTx.d.ts +1 -1
  3. package/lib/api/binanceSignTransaction.d.ts +1 -1
  4. package/lib/api/bitcoin/enhanceSignTx.d.ts +1 -1
  5. package/lib/api/bitcoin/refTx.d.ts +1 -1
  6. package/lib/api/bitcoin/signtx.d.ts +1 -1
  7. package/lib/api/bitcoin/signtxLegacy.d.ts +1 -1
  8. package/lib/api/cardano/cardanoAddressParameters.d.ts +1 -1
  9. package/lib/api/cardano/cardanoAuxiliaryData.d.ts +1 -1
  10. package/lib/api/cardano/cardanoCertificate.d.ts +1 -1
  11. package/lib/api/cardano/cardanoTokenBundle.d.ts +1 -1
  12. package/lib/api/cardanoGetAddress.d.ts +1 -1
  13. package/lib/api/cardanoGetNativeScriptHash.d.ts +1 -1
  14. package/lib/api/cardanoGetPublicKey.d.ts +1 -1
  15. package/lib/api/cardanoSignTransaction.d.ts +1 -1
  16. package/lib/api/composeTransaction.d.ts +1 -1
  17. package/lib/api/eos/eosSignTx.d.ts +1 -1
  18. package/lib/api/eosGetPublicKey.d.ts +1 -1
  19. package/lib/api/ethereum/ethereumSignTx.d.ts +1 -1
  20. package/lib/api/ethereum/ethereumSignTypedData.d.ts +1 -1
  21. package/lib/api/ethereumSignTransaction.d.ts +1 -1
  22. package/lib/api/ethereumSignTypedData.d.ts +1 -1
  23. package/lib/api/nem/nemSignTx.d.ts +1 -1
  24. package/lib/api/signTransaction.d.ts +2 -2
  25. package/lib/api/stellar/stellarSignTx.d.ts +1 -1
  26. package/lib/api/stellarSignTransaction.d.ts +1 -1
  27. package/lib/api/tezos/tezosSignTx.d.ts +1 -1
  28. package/lib/data/version.d.ts +1 -1
  29. package/lib/data/version.js +1 -1
  30. package/lib/device/DeviceList.js +3 -1
  31. package/lib/types/api/binance/index.d.ts +29 -0
  32. package/lib/types/api/binance/index.js +3 -0
  33. package/lib/types/api/binanceSignTransaction.d.ts +1 -27
  34. package/lib/types/api/bitcoin/index.d.ts +82 -0
  35. package/lib/types/api/bitcoin/index.js +3 -0
  36. package/lib/types/api/cardano/index.d.ts +193 -0
  37. package/lib/types/api/cardano/index.js +3 -0
  38. package/lib/types/api/cardanoGetAddress.d.ts +1 -31
  39. package/lib/types/api/cardanoGetNativeScriptHash.d.ts +1 -18
  40. package/lib/types/api/cardanoGetPublicKey.d.ts +1 -12
  41. package/lib/types/api/cardanoSignTransaction.d.ts +1 -135
  42. package/lib/types/api/eos/index.d.ts +119 -0
  43. package/lib/types/api/eos/index.js +3 -0
  44. package/lib/types/api/eosGetPublicKey.d.ts +1 -10
  45. package/lib/types/api/eosSignTransaction.d.ts +1 -107
  46. package/lib/types/api/ethereum/index.d.ts +86 -0
  47. package/lib/types/api/ethereum/index.js +3 -0
  48. package/lib/types/api/ethereumSignMessage.d.ts +1 -5
  49. package/lib/types/api/ethereumSignTransaction.d.ts +1 -37
  50. package/lib/types/api/ethereumSignTypedData.d.ts +1 -37
  51. package/lib/types/api/ethereumVerifyMessage.d.ts +1 -6
  52. package/lib/types/api/nem/index.d.ts +90 -0
  53. package/lib/types/api/nem/index.js +3 -0
  54. package/lib/types/api/nemSignTransaction.d.ts +2 -89
  55. package/lib/types/api/ripple/index.d.ts +21 -0
  56. package/lib/types/api/ripple/index.js +3 -0
  57. package/lib/types/api/rippleSignTransaction.d.ts +1 -20
  58. package/lib/types/api/signMessage.d.ts +1 -7
  59. package/lib/types/api/signTransaction.d.ts +1 -67
  60. package/lib/types/api/stellar/index.d.ts +180 -0
  61. package/lib/types/api/stellar/index.js +3 -0
  62. package/lib/types/api/stellarSignTransaction.d.ts +1 -179
  63. package/lib/types/api/tezos/index.d.ts +58 -0
  64. package/lib/types/api/tezos/index.js +3 -0
  65. package/lib/types/api/tezosSignTransaction.d.ts +1 -57
  66. package/lib/types/api/verifyMessage.d.ts +1 -7
  67. package/lib/types/index.d.ts +8 -4
  68. package/lib/types/index.js +8 -0
  69. package/lib/utils/deviceFeaturesUtils.js +1 -1
  70. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ export interface TezosRevealOperation {
2
+ source: string;
3
+ fee: number;
4
+ counter: number;
5
+ gas_limit: number;
6
+ storage_limit: number;
7
+ public_key: string;
8
+ }
9
+ export interface TezosManagerTransfer {
10
+ destination: string;
11
+ amount: number;
12
+ }
13
+ export interface TezosParametersManager {
14
+ set_delegate?: string;
15
+ cancel_delegate?: boolean;
16
+ transfer?: TezosManagerTransfer;
17
+ }
18
+ export interface TezosTransactionOperation {
19
+ source: string;
20
+ destination: string;
21
+ amount: number;
22
+ counter: number;
23
+ fee: number;
24
+ gas_limit: number;
25
+ storage_limit: number;
26
+ parameters?: number[];
27
+ parameters_manager?: TezosParametersManager;
28
+ }
29
+ export interface TezosOriginationOperation {
30
+ source: string;
31
+ balance: number;
32
+ delegate?: string;
33
+ script: string | number[];
34
+ fee: number;
35
+ counter: number;
36
+ gas_limit: number;
37
+ storage_limit: number;
38
+ }
39
+ export interface TezosDelegationOperation {
40
+ source: string;
41
+ delegate: string;
42
+ fee: number;
43
+ counter: number;
44
+ gas_limit: number;
45
+ storage_limit: number;
46
+ }
47
+ export interface TezosOperation {
48
+ reveal?: TezosRevealOperation;
49
+ transaction?: TezosTransactionOperation;
50
+ origination?: TezosOriginationOperation;
51
+ delegation?: TezosDelegationOperation;
52
+ }
53
+ export interface TezosSignTransaction {
54
+ path: string | number[];
55
+ branch: string;
56
+ operation: TezosOperation;
57
+ }
58
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -1,61 +1,5 @@
1
1
  import type { PROTO } from '../../constants';
2
2
  import type { Params, Response } from '../params';
3
- export interface TezosRevealOperation {
4
- source: string;
5
- fee: number;
6
- counter: number;
7
- gas_limit: number;
8
- storage_limit: number;
9
- public_key: string;
10
- }
11
- export interface TezosManagerTransfer {
12
- destination: string;
13
- amount: number;
14
- }
15
- export interface TezosParametersManager {
16
- set_delegate?: string;
17
- cancel_delegate?: boolean;
18
- transfer?: TezosManagerTransfer;
19
- }
20
- export interface TezosTransactionOperation {
21
- source: string;
22
- destination: string;
23
- amount: number;
24
- counter: number;
25
- fee: number;
26
- gas_limit: number;
27
- storage_limit: number;
28
- parameters?: number[];
29
- parameters_manager?: TezosParametersManager;
30
- }
31
- export interface TezosOriginationOperation {
32
- source: string;
33
- balance: number;
34
- delegate?: string;
35
- script: string | number[];
36
- fee: number;
37
- counter: number;
38
- gas_limit: number;
39
- storage_limit: number;
40
- }
41
- export interface TezosDelegationOperation {
42
- source: string;
43
- delegate: string;
44
- fee: number;
45
- counter: number;
46
- gas_limit: number;
47
- storage_limit: number;
48
- }
49
- export interface TezosOperation {
50
- reveal?: TezosRevealOperation;
51
- transaction?: TezosTransactionOperation;
52
- origination?: TezosOriginationOperation;
53
- delegation?: TezosDelegationOperation;
54
- }
55
- export interface TezosSignTransaction {
56
- path: string | number[];
57
- branch: string;
58
- operation: TezosOperation;
59
- }
3
+ import type { TezosSignTransaction } from './tezos';
60
4
  export declare function tezosSignTransaction(params: Params<TezosSignTransaction>): Response<PROTO.TezosSignedTx>;
61
5
  //# sourceMappingURL=tezosSignTransaction.d.ts.map
@@ -1,11 +1,5 @@
1
1
  import type { PROTO } from '../../constants';
2
2
  import type { Params, Response } from '../params';
3
- export interface VerifyMessage {
4
- address: string;
5
- signature: string;
6
- message: string;
7
- coin: string;
8
- hex?: boolean;
9
- }
3
+ import type { VerifyMessage } from './bitcoin';
10
4
  export declare function verifyMessage(params: Params<VerifyMessage>): Response<PROTO.Success>;
11
5
  //# sourceMappingURL=verifyMessage.d.ts.map
@@ -5,11 +5,15 @@ export * from './device';
5
5
  export * from './firmware';
6
6
  export * from './params';
7
7
  export * from './settings';
8
- export type { RipplePayment } from './api/rippleSignTransaction';
8
+ export * from './api/cardano';
9
+ export * from './api/binance';
10
+ export * from './api/bitcoin';
11
+ export * from './api/eos';
12
+ export * from './api/ripple';
13
+ export * from './api/ethereum';
14
+ export * from './api/stellar';
15
+ export * from './api/tezos';
9
16
  export type { ComposeOutput, PrecomposedTransaction } from './api/composeTransaction';
10
- export type { SignTransaction } from './api/signTransaction';
11
- export type { EthereumTransaction } from './api/ethereumSignTransaction';
12
- export type { CardanoOutput, CardanoInput, CardanoCertificate } from './api/cardanoSignTransaction';
13
17
  export type { RecoveryDevice } from './api/recoveryDevice';
14
18
  export type { TokenInfo, Transaction as AccountTransaction, Target as TransactionTarget, AccountBalanceHistory as BlockchainAccountBalanceHistory, } from '@trezor/blockchain-link';
15
19
  //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,12 @@ const tslib_1 = require("tslib");
8
8
  (0, tslib_1.__exportStar)(require("./firmware"), exports);
9
9
  (0, tslib_1.__exportStar)(require("./params"), exports);
10
10
  (0, tslib_1.__exportStar)(require("./settings"), exports);
11
+ (0, tslib_1.__exportStar)(require("./api/cardano"), exports);
12
+ (0, tslib_1.__exportStar)(require("./api/binance"), exports);
13
+ (0, tslib_1.__exportStar)(require("./api/bitcoin"), exports);
14
+ (0, tslib_1.__exportStar)(require("./api/eos"), exports);
15
+ (0, tslib_1.__exportStar)(require("./api/ripple"), exports);
16
+ (0, tslib_1.__exportStar)(require("./api/ethereum"), exports);
17
+ (0, tslib_1.__exportStar)(require("./api/stellar"), exports);
18
+ (0, tslib_1.__exportStar)(require("./api/tezos"), exports);
11
19
  //# sourceMappingURL=index.js.map
@@ -52,7 +52,7 @@ const getUnavailableCapabilities = (features, coins) => {
52
52
  });
53
53
  const unavailable = supported.filter(info => {
54
54
  if (info.type === 'bitcoin') {
55
- if (info.name === 'Bitcoin' || info.name === 'Testnet') {
55
+ if (info.name === 'Bitcoin' || info.name === 'Testnet' || info.name === 'Regtest') {
56
56
  return !capabilities.includes('Capability_Bitcoin');
57
57
  }
58
58
  return !capabilities.includes('Capability_Bitcoin_like');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trezor/connect",
3
- "version": "9.0.0-beta.5",
3
+ "version": "9.0.0-beta.6",
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.",