11
11
12
12
const assert = require ( 'bsert' ) ;
13
13
const EventEmitter = require ( 'events' ) ;
14
- const { Client } = require ( 'bcurl' ) ;
14
+ const bcurl = require ( 'bcurl' ) ;
15
15
16
16
/**
17
17
* Wallet Client
18
18
* @alias module:client.WalletClient
19
19
* @extends {bcurl.Client }
20
20
*/
21
21
22
- class WalletClient extends Client {
22
+ class WalletClient extends bcurl . Client {
23
23
/**
24
24
* Create a wallet client.
25
25
* @param {Object? } options
@@ -32,8 +32,6 @@ class WalletClient extends Client {
32
32
33
33
/**
34
34
* Open the client.
35
- * @private
36
- * @returns {Promise }
37
35
*/
38
36
39
37
init ( ) {
@@ -878,29 +876,27 @@ class WalletClient extends Client {
878
876
*/
879
877
880
878
class Wallet extends EventEmitter {
881
- /** @type {WalletClient } */
882
- client ;
883
-
884
- /** @type {WalletClient } */
885
- parent ;
886
-
887
- /** @type {String } */
888
- id ;
889
-
890
- /** @type {String } */
891
- token ;
892
-
893
879
/**
894
880
* Create a wallet client.
895
- * @param {Object? } options
881
+ * @param {WalletClient } parent
882
+ * @param {String } id
883
+ * @param {String } [token]
896
884
*/
897
885
898
886
constructor ( parent , id , token ) {
899
887
super ( ) ;
888
+
889
+ /** @type {WalletClient } */
900
890
this . parent = parent ;
891
+
892
+ /** @type {WalletClient } */
901
893
this . client = parent . clone ( ) ;
902
894
this . client . token = token ;
895
+
896
+ /** @type {String } */
903
897
this . id = id ;
898
+
899
+ /** @type {String } */
904
900
this . token = token ;
905
901
}
906
902
0 commit comments