@dfns/lib-meshsdk 0.4.2 → 0.4.3-alpha.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/index.d.ts +2 -1
- package/index.js +4 -1
- package/package.json +8 -2
package/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class DfnsWallet implements ISigner {
|
|
|
10
10
|
private constructor();
|
|
11
11
|
static init(options: DfnsWalletOptions): Promise<DfnsWallet>;
|
|
12
12
|
get address(): string;
|
|
13
|
-
signData(
|
|
13
|
+
signData(_address: string, _payload: string): void;
|
|
14
14
|
signTx(unsignedTx: string, _partialSign?: boolean): Promise<string>;
|
|
15
|
+
signTxs(_unsignedTxs: string[], _partialSign: boolean): Promise<string[]>;
|
|
15
16
|
}
|
package/index.js
CHANGED
|
@@ -33,7 +33,7 @@ class DfnsWallet {
|
|
|
33
33
|
return this.metadata.address;
|
|
34
34
|
}
|
|
35
35
|
// Currently, we don't support signing arbitrary data
|
|
36
|
-
signData(
|
|
36
|
+
signData(_address, _payload) {
|
|
37
37
|
throw new sdk_1.DfnsError(-1, 'Method not implemented.');
|
|
38
38
|
}
|
|
39
39
|
async signTx(unsignedTx, _partialSign = false) {
|
|
@@ -50,5 +50,8 @@ class DfnsWallet {
|
|
|
50
50
|
}
|
|
51
51
|
return res.signedData;
|
|
52
52
|
}
|
|
53
|
+
async signTxs(_unsignedTxs, _partialSign) {
|
|
54
|
+
throw new sdk_1.DfnsError(-1, 'Method not implemented.');
|
|
55
|
+
}
|
|
53
56
|
}
|
|
54
57
|
exports.DfnsWallet = DfnsWallet;
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfns/lib-meshsdk",
|
|
3
|
-
"version": "0.4.2",
|
|
3
|
+
"version": "0.4.3-alpha.2",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@meshsdk/core": "^1.0.0",
|
|
6
|
+
"@dfns/sdk": "0.4.3-alpha.2"
|
|
7
|
+
},
|
|
4
8
|
"dependencies": {
|
|
5
|
-
"
|
|
9
|
+
"buffer": "6.0.3",
|
|
10
|
+
"cross-fetch": "3.1.6",
|
|
11
|
+
"uuid": "9.0.0"
|
|
6
12
|
},
|
|
7
13
|
"main": "./index.js",
|
|
8
14
|
"type": "commonjs"
|