@tetherto/wdk-wallet 1.0.0-beta.7 → 1.0.0-beta.8

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/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@tetherto/wdk-wallet",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "A simple package to manage BIP-32 wallets.",
5
- "keywords": ["wdk", "wallet", "bip-32"],
5
+ "keywords": [
6
+ "wdk",
7
+ "wallet",
8
+ "bip-32"
9
+ ],
6
10
  "author": "Tether",
7
11
  "license": "Apache-2.0",
8
12
  "repository": {
@@ -47,6 +51,11 @@
47
51
  "access": "public",
48
52
  "registry": "https://registry.npmjs.org/"
49
53
  },
54
+ "overrides": {
55
+ "brace-expansion": ">=1.1.13",
56
+ "flatted": ">=3.4.2",
57
+ "picomatch": ">=2.3.2"
58
+ },
50
59
  "standard": {
51
60
  "ignore": [
52
61
  "bare.js",
@@ -68,6 +68,16 @@ export class IWalletAccount extends IWalletAccountReadOnly {
68
68
  throw new NotImplementedError('sign(message)')
69
69
  }
70
70
 
71
+ /**
72
+ * Signs a transaction
73
+ *
74
+ * @param {Transaction} tx - The transaction to sign.
75
+ * @returns {Promise<unknown>} The signed transaction.
76
+ */
77
+ async signTransaction (tx) {
78
+ throw new NotImplementedError('signTransaction(tx)')
79
+ }
80
+
71
81
  /**
72
82
  * Verifies a message's signature.
73
83
  *
@@ -25,6 +25,13 @@ export interface IWalletAccount extends IWalletAccountReadOnly {
25
25
  * @returns {Promise<string>} The message's signature.
26
26
  */
27
27
  sign(message: string): Promise<string>;
28
+ /**
29
+ * Signs a transaction.
30
+ *
31
+ * @param {Transaction} tx - The transaction to sign.
32
+ * @returns {Promise<unknown>} The signed transaction.
33
+ */
34
+ signTransaction(tx: Transaction): Promise<unknown>;
28
35
  /**
29
36
  * Verifies a message's signature.
30
37
  *