@dashevo/dapi-grpc 1.0.0-dev.10 → 1.0.0-dev.12
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/Cargo.toml +14 -8
- package/build.rs +6 -2
- package/clients/core/v0/nodejs/CorePromiseClient.js +51 -13
- package/clients/core/v0/nodejs/core_pbjs.js +869 -703
- package/clients/core/v0/nodejs/core_protoc.js +681 -609
- package/clients/core/v0/web/CorePromiseClient.js +19 -5
- package/clients/core/v0/web/core_pb.d.ts +99 -89
- package/clients/core/v0/web/core_pb.js +681 -609
- package/clients/core/v0/web/core_pb_service.d.ts +29 -10
- package/clients/core/v0/web/core_pb_service.js +46 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +55 -14
- package/clients/platform/v0/nodejs/platform_pbjs.js +7805 -7761
- package/clients/platform/v0/nodejs/platform_protoc.js +7845 -7749
- package/clients/platform/v0/web/PlatformPromiseClient.js +22 -8
- package/clients/platform/v0/web/platform_pb.d.ts +388 -372
- package/clients/platform/v0/web/platform_pb.js +7845 -7749
- package/clients/platform/v0/web/platform_pb_service.d.ts +35 -35
- package/clients/platform/v0/web/platform_pb_service.js +35 -35
- package/package.json +2 -2
- package/protos/core/v0/core.proto +27 -23
- package/protos/platform/v0/platform.proto +81 -64
- package/src/core/proto/org.dash.platform.dapi.v0.rs +196 -101
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +381 -353
- package/test/unit/clients/core/v0/nodejs/CorePromiseClient.spec.js +27 -6
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +21 -0
- package/test/unit/getCoreDefinition.spec.js +5 -2
|
@@ -26,18 +26,19 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse'
|
|
|
26
26
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, { proto });
|
|
27
27
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, { proto });
|
|
28
28
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, { proto });
|
|
29
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest', null, { proto });
|
|
30
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse', null, { proto });
|
|
31
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain', null, { proto });
|
|
32
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network', null, { proto });
|
|
33
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee', null, { proto });
|
|
34
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status', null, { proto });
|
|
35
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time', null, { proto });
|
|
36
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version', null, { proto });
|
|
29
37
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest', null, { proto });
|
|
30
38
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeResponse', null, { proto });
|
|
31
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.
|
|
32
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.
|
|
33
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.
|
|
34
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode', null, { proto });
|
|
35
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status', null, { proto });
|
|
36
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Network', null, { proto });
|
|
37
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee', null, { proto });
|
|
38
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Status', null, { proto });
|
|
39
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Time', null, { proto });
|
|
40
|
-
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetStatusResponse.Version', null, { proto });
|
|
39
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest', null, { proto });
|
|
40
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse', null, { proto });
|
|
41
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status', null, { proto });
|
|
41
42
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
|
|
42
43
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
|
|
43
44
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.InstantSendLockMessages', null, { proto });
|
|
@@ -56,16 +57,16 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRespons
|
|
|
56
57
|
* @extends {jspb.Message}
|
|
57
58
|
* @constructor
|
|
58
59
|
*/
|
|
59
|
-
proto.org.dash.platform.dapi.v0.
|
|
60
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest = function(opt_data) {
|
|
60
61
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
61
62
|
};
|
|
62
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
63
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest, jspb.Message);
|
|
63
64
|
if (goog.DEBUG && !COMPILED) {
|
|
64
65
|
/**
|
|
65
66
|
* @public
|
|
66
67
|
* @override
|
|
67
68
|
*/
|
|
68
|
-
proto.org.dash.platform.dapi.v0.
|
|
69
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest';
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
72
|
* Generated by JsPbCodeGenerator.
|
|
@@ -77,16 +78,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
77
78
|
* @extends {jspb.Message}
|
|
78
79
|
* @constructor
|
|
79
80
|
*/
|
|
80
|
-
proto.org.dash.platform.dapi.v0.
|
|
81
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse = function(opt_data) {
|
|
81
82
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
83
|
};
|
|
83
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
84
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse, jspb.Message);
|
|
84
85
|
if (goog.DEBUG && !COMPILED) {
|
|
85
86
|
/**
|
|
86
87
|
* @public
|
|
87
88
|
* @override
|
|
88
89
|
*/
|
|
89
|
-
proto.org.dash.platform.dapi.v0.
|
|
90
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse';
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
93
|
* Generated by JsPbCodeGenerator.
|
|
@@ -98,16 +99,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
98
99
|
* @extends {jspb.Message}
|
|
99
100
|
* @constructor
|
|
100
101
|
*/
|
|
101
|
-
proto.org.dash.platform.dapi.v0.
|
|
102
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version = function(opt_data) {
|
|
102
103
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
104
|
};
|
|
104
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
105
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version, jspb.Message);
|
|
105
106
|
if (goog.DEBUG && !COMPILED) {
|
|
106
107
|
/**
|
|
107
108
|
* @public
|
|
108
109
|
* @override
|
|
109
110
|
*/
|
|
110
|
-
proto.org.dash.platform.dapi.v0.
|
|
111
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version';
|
|
111
112
|
}
|
|
112
113
|
/**
|
|
113
114
|
* Generated by JsPbCodeGenerator.
|
|
@@ -119,16 +120,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
119
120
|
* @extends {jspb.Message}
|
|
120
121
|
* @constructor
|
|
121
122
|
*/
|
|
122
|
-
proto.org.dash.platform.dapi.v0.
|
|
123
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time = function(opt_data) {
|
|
123
124
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
124
125
|
};
|
|
125
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
126
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time, jspb.Message);
|
|
126
127
|
if (goog.DEBUG && !COMPILED) {
|
|
127
128
|
/**
|
|
128
129
|
* @public
|
|
129
130
|
* @override
|
|
130
131
|
*/
|
|
131
|
-
proto.org.dash.platform.dapi.v0.
|
|
132
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time';
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
135
|
* Generated by JsPbCodeGenerator.
|
|
@@ -140,16 +141,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
140
141
|
* @extends {jspb.Message}
|
|
141
142
|
* @constructor
|
|
142
143
|
*/
|
|
143
|
-
proto.org.dash.platform.dapi.v0.
|
|
144
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain = function(opt_data) {
|
|
144
145
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
146
|
};
|
|
146
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
147
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain, jspb.Message);
|
|
147
148
|
if (goog.DEBUG && !COMPILED) {
|
|
148
149
|
/**
|
|
149
150
|
* @public
|
|
150
151
|
* @override
|
|
151
152
|
*/
|
|
152
|
-
proto.org.dash.platform.dapi.v0.
|
|
153
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain';
|
|
153
154
|
}
|
|
154
155
|
/**
|
|
155
156
|
* Generated by JsPbCodeGenerator.
|
|
@@ -161,16 +162,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
161
162
|
* @extends {jspb.Message}
|
|
162
163
|
* @constructor
|
|
163
164
|
*/
|
|
164
|
-
proto.org.dash.platform.dapi.v0.
|
|
165
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee = function(opt_data) {
|
|
165
166
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
166
167
|
};
|
|
167
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
168
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee, jspb.Message);
|
|
168
169
|
if (goog.DEBUG && !COMPILED) {
|
|
169
170
|
/**
|
|
170
171
|
* @public
|
|
171
172
|
* @override
|
|
172
173
|
*/
|
|
173
|
-
proto.org.dash.platform.dapi.v0.
|
|
174
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee';
|
|
174
175
|
}
|
|
175
176
|
/**
|
|
176
177
|
* Generated by JsPbCodeGenerator.
|
|
@@ -182,16 +183,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
182
183
|
* @extends {jspb.Message}
|
|
183
184
|
* @constructor
|
|
184
185
|
*/
|
|
185
|
-
proto.org.dash.platform.dapi.v0.
|
|
186
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network = function(opt_data) {
|
|
186
187
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
187
188
|
};
|
|
188
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
189
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network, jspb.Message);
|
|
189
190
|
if (goog.DEBUG && !COMPILED) {
|
|
190
191
|
/**
|
|
191
192
|
* @public
|
|
192
193
|
* @override
|
|
193
194
|
*/
|
|
194
|
-
proto.org.dash.platform.dapi.v0.
|
|
195
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network';
|
|
195
196
|
}
|
|
196
197
|
/**
|
|
197
198
|
* Generated by JsPbCodeGenerator.
|
|
@@ -203,16 +204,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
203
204
|
* @extends {jspb.Message}
|
|
204
205
|
* @constructor
|
|
205
206
|
*/
|
|
206
|
-
proto.org.dash.platform.dapi.v0.
|
|
207
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest = function(opt_data) {
|
|
207
208
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
208
209
|
};
|
|
209
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
210
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest, jspb.Message);
|
|
210
211
|
if (goog.DEBUG && !COMPILED) {
|
|
211
212
|
/**
|
|
212
213
|
* @public
|
|
213
214
|
* @override
|
|
214
215
|
*/
|
|
215
|
-
proto.org.dash.platform.dapi.v0.
|
|
216
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest';
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Generated by JsPbCodeGenerator.
|
|
220
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
221
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
222
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
223
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
224
|
+
* valid.
|
|
225
|
+
* @extends {jspb.Message}
|
|
226
|
+
* @constructor
|
|
227
|
+
*/
|
|
228
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse = function(opt_data) {
|
|
229
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
230
|
+
};
|
|
231
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse, jspb.Message);
|
|
232
|
+
if (goog.DEBUG && !COMPILED) {
|
|
233
|
+
/**
|
|
234
|
+
* @public
|
|
235
|
+
* @override
|
|
236
|
+
*/
|
|
237
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse';
|
|
216
238
|
}
|
|
217
239
|
/**
|
|
218
240
|
* Generated by JsPbCodeGenerator.
|
|
@@ -566,8 +588,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
566
588
|
* http://goto/soy-param-migration
|
|
567
589
|
* @return {!Object}
|
|
568
590
|
*/
|
|
569
|
-
proto.org.dash.platform.dapi.v0.
|
|
570
|
-
return proto.org.dash.platform.dapi.v0.
|
|
591
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
592
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.toObject(opt_includeInstance, this);
|
|
571
593
|
};
|
|
572
594
|
|
|
573
595
|
|
|
@@ -576,11 +598,11 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.toObject = function(o
|
|
|
576
598
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
577
599
|
* the JSPB instance for transitional soy proto support:
|
|
578
600
|
* http://goto/soy-param-migration
|
|
579
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
601
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} msg The msg instance to transform.
|
|
580
602
|
* @return {!Object}
|
|
581
603
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
582
604
|
*/
|
|
583
|
-
proto.org.dash.platform.dapi.v0.
|
|
605
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.toObject = function(includeInstance, msg) {
|
|
584
606
|
var f, obj = {
|
|
585
607
|
|
|
586
608
|
};
|
|
@@ -596,23 +618,23 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.toObject = function(includeInst
|
|
|
596
618
|
/**
|
|
597
619
|
* Deserializes binary data (in protobuf wire format).
|
|
598
620
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
599
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
621
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest}
|
|
600
622
|
*/
|
|
601
|
-
proto.org.dash.platform.dapi.v0.
|
|
623
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinary = function(bytes) {
|
|
602
624
|
var reader = new jspb.BinaryReader(bytes);
|
|
603
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
604
|
-
return proto.org.dash.platform.dapi.v0.
|
|
625
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest;
|
|
626
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
605
627
|
};
|
|
606
628
|
|
|
607
629
|
|
|
608
630
|
/**
|
|
609
631
|
* Deserializes binary data (in protobuf wire format) from the
|
|
610
632
|
* given reader into the given message object.
|
|
611
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
633
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} msg The message object to deserialize into.
|
|
612
634
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
613
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
635
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest}
|
|
614
636
|
*/
|
|
615
|
-
proto.org.dash.platform.dapi.v0.
|
|
637
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
616
638
|
while (reader.nextField()) {
|
|
617
639
|
if (reader.isEndGroup()) {
|
|
618
640
|
break;
|
|
@@ -632,9 +654,9 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.deserializeBinaryFromReader = f
|
|
|
632
654
|
* Serializes the message to binary data (in protobuf wire format).
|
|
633
655
|
* @return {!Uint8Array}
|
|
634
656
|
*/
|
|
635
|
-
proto.org.dash.platform.dapi.v0.
|
|
657
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.prototype.serializeBinary = function() {
|
|
636
658
|
var writer = new jspb.BinaryWriter();
|
|
637
|
-
proto.org.dash.platform.dapi.v0.
|
|
659
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.serializeBinaryToWriter(this, writer);
|
|
638
660
|
return writer.getResultBuffer();
|
|
639
661
|
};
|
|
640
662
|
|
|
@@ -642,11 +664,11 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.serializeBinary = fun
|
|
|
642
664
|
/**
|
|
643
665
|
* Serializes the given message to binary data (in protobuf wire
|
|
644
666
|
* format), writing to the given BinaryWriter.
|
|
645
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
667
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} message
|
|
646
668
|
* @param {!jspb.BinaryWriter} writer
|
|
647
669
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
648
670
|
*/
|
|
649
|
-
proto.org.dash.platform.dapi.v0.
|
|
671
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
650
672
|
var f = undefined;
|
|
651
673
|
};
|
|
652
674
|
|
|
@@ -667,8 +689,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
667
689
|
* http://goto/soy-param-migration
|
|
668
690
|
* @return {!Object}
|
|
669
691
|
*/
|
|
670
|
-
proto.org.dash.platform.dapi.v0.
|
|
671
|
-
return proto.org.dash.platform.dapi.v0.
|
|
692
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
693
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.toObject(opt_includeInstance, this);
|
|
672
694
|
};
|
|
673
695
|
|
|
674
696
|
|
|
@@ -677,19 +699,18 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.toObject = function(
|
|
|
677
699
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
678
700
|
* the JSPB instance for transitional soy proto support:
|
|
679
701
|
* http://goto/soy-param-migration
|
|
680
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
702
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} msg The msg instance to transform.
|
|
681
703
|
* @return {!Object}
|
|
682
704
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
683
705
|
*/
|
|
684
|
-
proto.org.dash.platform.dapi.v0.
|
|
706
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.toObject = function(includeInstance, msg) {
|
|
685
707
|
var f, obj = {
|
|
686
|
-
version: (f = msg.getVersion()) && proto.org.dash.platform.dapi.v0.
|
|
687
|
-
time: (f = msg.getTime()) && proto.org.dash.platform.dapi.v0.
|
|
708
|
+
version: (f = msg.getVersion()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject(includeInstance, f),
|
|
709
|
+
time: (f = msg.getTime()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject(includeInstance, f),
|
|
688
710
|
status: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
689
711
|
syncProgress: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
690
|
-
chain: (f = msg.getChain()) && proto.org.dash.platform.dapi.v0.
|
|
691
|
-
|
|
692
|
-
network: (f = msg.getNetwork()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.toObject(includeInstance, f)
|
|
712
|
+
chain: (f = msg.getChain()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject(includeInstance, f),
|
|
713
|
+
network: (f = msg.getNetwork()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject(includeInstance, f)
|
|
693
714
|
};
|
|
694
715
|
|
|
695
716
|
if (includeInstance) {
|
|
@@ -703,23 +724,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.toObject = function(includeIns
|
|
|
703
724
|
/**
|
|
704
725
|
* Deserializes binary data (in protobuf wire format).
|
|
705
726
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
706
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
727
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse}
|
|
707
728
|
*/
|
|
708
|
-
proto.org.dash.platform.dapi.v0.
|
|
729
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinary = function(bytes) {
|
|
709
730
|
var reader = new jspb.BinaryReader(bytes);
|
|
710
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
711
|
-
return proto.org.dash.platform.dapi.v0.
|
|
731
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse;
|
|
732
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
712
733
|
};
|
|
713
734
|
|
|
714
735
|
|
|
715
736
|
/**
|
|
716
737
|
* Deserializes binary data (in protobuf wire format) from the
|
|
717
738
|
* given reader into the given message object.
|
|
718
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
739
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} msg The message object to deserialize into.
|
|
719
740
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
720
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
741
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse}
|
|
721
742
|
*/
|
|
722
|
-
proto.org.dash.platform.dapi.v0.
|
|
743
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
723
744
|
while (reader.nextField()) {
|
|
724
745
|
if (reader.isEndGroup()) {
|
|
725
746
|
break;
|
|
@@ -727,17 +748,17 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
727
748
|
var field = reader.getFieldNumber();
|
|
728
749
|
switch (field) {
|
|
729
750
|
case 1:
|
|
730
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
731
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
751
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version;
|
|
752
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader);
|
|
732
753
|
msg.setVersion(value);
|
|
733
754
|
break;
|
|
734
755
|
case 2:
|
|
735
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
736
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
756
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time;
|
|
757
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader);
|
|
737
758
|
msg.setTime(value);
|
|
738
759
|
break;
|
|
739
760
|
case 3:
|
|
740
|
-
var value = /** @type {!proto.org.dash.platform.dapi.v0.
|
|
761
|
+
var value = /** @type {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} */ (reader.readEnum());
|
|
741
762
|
msg.setStatus(value);
|
|
742
763
|
break;
|
|
743
764
|
case 4:
|
|
@@ -745,18 +766,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
745
766
|
msg.setSyncProgress(value);
|
|
746
767
|
break;
|
|
747
768
|
case 5:
|
|
748
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
749
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
769
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain;
|
|
770
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader);
|
|
750
771
|
msg.setChain(value);
|
|
751
772
|
break;
|
|
752
|
-
case 6:
|
|
753
|
-
var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode;
|
|
754
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.deserializeBinaryFromReader);
|
|
755
|
-
msg.setMasternode(value);
|
|
756
|
-
break;
|
|
757
773
|
case 7:
|
|
758
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
759
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
774
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network;
|
|
775
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader);
|
|
760
776
|
msg.setNetwork(value);
|
|
761
777
|
break;
|
|
762
778
|
default:
|
|
@@ -772,9 +788,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
772
788
|
* Serializes the message to binary data (in protobuf wire format).
|
|
773
789
|
* @return {!Uint8Array}
|
|
774
790
|
*/
|
|
775
|
-
proto.org.dash.platform.dapi.v0.
|
|
791
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.serializeBinary = function() {
|
|
776
792
|
var writer = new jspb.BinaryWriter();
|
|
777
|
-
proto.org.dash.platform.dapi.v0.
|
|
793
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.serializeBinaryToWriter(this, writer);
|
|
778
794
|
return writer.getResultBuffer();
|
|
779
795
|
};
|
|
780
796
|
|
|
@@ -782,18 +798,18 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.serializeBinary = fu
|
|
|
782
798
|
/**
|
|
783
799
|
* Serializes the given message to binary data (in protobuf wire
|
|
784
800
|
* format), writing to the given BinaryWriter.
|
|
785
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
801
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} message
|
|
786
802
|
* @param {!jspb.BinaryWriter} writer
|
|
787
803
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
788
804
|
*/
|
|
789
|
-
proto.org.dash.platform.dapi.v0.
|
|
805
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
790
806
|
var f = undefined;
|
|
791
807
|
f = message.getVersion();
|
|
792
808
|
if (f != null) {
|
|
793
809
|
writer.writeMessage(
|
|
794
810
|
1,
|
|
795
811
|
f,
|
|
796
|
-
proto.org.dash.platform.dapi.v0.
|
|
812
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter
|
|
797
813
|
);
|
|
798
814
|
}
|
|
799
815
|
f = message.getTime();
|
|
@@ -801,7 +817,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
801
817
|
writer.writeMessage(
|
|
802
818
|
2,
|
|
803
819
|
f,
|
|
804
|
-
proto.org.dash.platform.dapi.v0.
|
|
820
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter
|
|
805
821
|
);
|
|
806
822
|
}
|
|
807
823
|
f = message.getStatus();
|
|
@@ -823,15 +839,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
823
839
|
writer.writeMessage(
|
|
824
840
|
5,
|
|
825
841
|
f,
|
|
826
|
-
proto.org.dash.platform.dapi.v0.
|
|
827
|
-
);
|
|
828
|
-
}
|
|
829
|
-
f = message.getMasternode();
|
|
830
|
-
if (f != null) {
|
|
831
|
-
writer.writeMessage(
|
|
832
|
-
6,
|
|
833
|
-
f,
|
|
834
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.serializeBinaryToWriter
|
|
842
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter
|
|
835
843
|
);
|
|
836
844
|
}
|
|
837
845
|
f = message.getNetwork();
|
|
@@ -839,7 +847,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
839
847
|
writer.writeMessage(
|
|
840
848
|
7,
|
|
841
849
|
f,
|
|
842
|
-
proto.org.dash.platform.dapi.v0.
|
|
850
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter
|
|
843
851
|
);
|
|
844
852
|
}
|
|
845
853
|
};
|
|
@@ -848,7 +856,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
848
856
|
/**
|
|
849
857
|
* @enum {number}
|
|
850
858
|
*/
|
|
851
|
-
proto.org.dash.platform.dapi.v0.
|
|
859
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status = {
|
|
852
860
|
NOT_STARTED: 0,
|
|
853
861
|
SYNCING: 1,
|
|
854
862
|
READY: 2,
|
|
@@ -871,8 +879,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
871
879
|
* http://goto/soy-param-migration
|
|
872
880
|
* @return {!Object}
|
|
873
881
|
*/
|
|
874
|
-
proto.org.dash.platform.dapi.v0.
|
|
875
|
-
return proto.org.dash.platform.dapi.v0.
|
|
882
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.toObject = function(opt_includeInstance) {
|
|
883
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject(opt_includeInstance, this);
|
|
876
884
|
};
|
|
877
885
|
|
|
878
886
|
|
|
@@ -881,11 +889,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.toObject = f
|
|
|
881
889
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
882
890
|
* the JSPB instance for transitional soy proto support:
|
|
883
891
|
* http://goto/soy-param-migration
|
|
884
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
892
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} msg The msg instance to transform.
|
|
885
893
|
* @return {!Object}
|
|
886
894
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
887
895
|
*/
|
|
888
|
-
proto.org.dash.platform.dapi.v0.
|
|
896
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject = function(includeInstance, msg) {
|
|
889
897
|
var f, obj = {
|
|
890
898
|
protocol: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
891
899
|
software: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -903,23 +911,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.toObject = function(in
|
|
|
903
911
|
/**
|
|
904
912
|
* Deserializes binary data (in protobuf wire format).
|
|
905
913
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
906
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
914
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
907
915
|
*/
|
|
908
|
-
proto.org.dash.platform.dapi.v0.
|
|
916
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinary = function(bytes) {
|
|
909
917
|
var reader = new jspb.BinaryReader(bytes);
|
|
910
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
911
|
-
return proto.org.dash.platform.dapi.v0.
|
|
918
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version;
|
|
919
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader(msg, reader);
|
|
912
920
|
};
|
|
913
921
|
|
|
914
922
|
|
|
915
923
|
/**
|
|
916
924
|
* Deserializes binary data (in protobuf wire format) from the
|
|
917
925
|
* given reader into the given message object.
|
|
918
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
926
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} msg The message object to deserialize into.
|
|
919
927
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
920
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
928
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
921
929
|
*/
|
|
922
|
-
proto.org.dash.platform.dapi.v0.
|
|
930
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader = function(msg, reader) {
|
|
923
931
|
while (reader.nextField()) {
|
|
924
932
|
if (reader.isEndGroup()) {
|
|
925
933
|
break;
|
|
@@ -951,9 +959,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.deserializeBinaryFromR
|
|
|
951
959
|
* Serializes the message to binary data (in protobuf wire format).
|
|
952
960
|
* @return {!Uint8Array}
|
|
953
961
|
*/
|
|
954
|
-
proto.org.dash.platform.dapi.v0.
|
|
962
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.serializeBinary = function() {
|
|
955
963
|
var writer = new jspb.BinaryWriter();
|
|
956
|
-
proto.org.dash.platform.dapi.v0.
|
|
964
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter(this, writer);
|
|
957
965
|
return writer.getResultBuffer();
|
|
958
966
|
};
|
|
959
967
|
|
|
@@ -961,11 +969,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.serializeBin
|
|
|
961
969
|
/**
|
|
962
970
|
* Serializes the given message to binary data (in protobuf wire
|
|
963
971
|
* format), writing to the given BinaryWriter.
|
|
964
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
972
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} message
|
|
965
973
|
* @param {!jspb.BinaryWriter} writer
|
|
966
974
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
967
975
|
*/
|
|
968
|
-
proto.org.dash.platform.dapi.v0.
|
|
976
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter = function(message, writer) {
|
|
969
977
|
var f = undefined;
|
|
970
978
|
f = message.getProtocol();
|
|
971
979
|
if (f !== 0) {
|
|
@@ -995,16 +1003,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.serializeBinaryToWrite
|
|
|
995
1003
|
* optional uint32 protocol = 1;
|
|
996
1004
|
* @return {number}
|
|
997
1005
|
*/
|
|
998
|
-
proto.org.dash.platform.dapi.v0.
|
|
1006
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getProtocol = function() {
|
|
999
1007
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1000
1008
|
};
|
|
1001
1009
|
|
|
1002
1010
|
|
|
1003
1011
|
/**
|
|
1004
1012
|
* @param {number} value
|
|
1005
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1013
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1006
1014
|
*/
|
|
1007
|
-
proto.org.dash.platform.dapi.v0.
|
|
1015
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setProtocol = function(value) {
|
|
1008
1016
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1009
1017
|
};
|
|
1010
1018
|
|
|
@@ -1013,16 +1021,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.setProtocol
|
|
|
1013
1021
|
* optional uint32 software = 2;
|
|
1014
1022
|
* @return {number}
|
|
1015
1023
|
*/
|
|
1016
|
-
proto.org.dash.platform.dapi.v0.
|
|
1024
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getSoftware = function() {
|
|
1017
1025
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1018
1026
|
};
|
|
1019
1027
|
|
|
1020
1028
|
|
|
1021
1029
|
/**
|
|
1022
1030
|
* @param {number} value
|
|
1023
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1031
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1024
1032
|
*/
|
|
1025
|
-
proto.org.dash.platform.dapi.v0.
|
|
1033
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setSoftware = function(value) {
|
|
1026
1034
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1027
1035
|
};
|
|
1028
1036
|
|
|
@@ -1031,16 +1039,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.setSoftware
|
|
|
1031
1039
|
* optional string agent = 3;
|
|
1032
1040
|
* @return {string}
|
|
1033
1041
|
*/
|
|
1034
|
-
proto.org.dash.platform.dapi.v0.
|
|
1042
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getAgent = function() {
|
|
1035
1043
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1036
1044
|
};
|
|
1037
1045
|
|
|
1038
1046
|
|
|
1039
1047
|
/**
|
|
1040
1048
|
* @param {string} value
|
|
1041
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1049
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1042
1050
|
*/
|
|
1043
|
-
proto.org.dash.platform.dapi.v0.
|
|
1051
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setAgent = function(value) {
|
|
1044
1052
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1045
1053
|
};
|
|
1046
1054
|
|
|
@@ -1061,8 +1069,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1061
1069
|
* http://goto/soy-param-migration
|
|
1062
1070
|
* @return {!Object}
|
|
1063
1071
|
*/
|
|
1064
|
-
proto.org.dash.platform.dapi.v0.
|
|
1065
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1072
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.toObject = function(opt_includeInstance) {
|
|
1073
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject(opt_includeInstance, this);
|
|
1066
1074
|
};
|
|
1067
1075
|
|
|
1068
1076
|
|
|
@@ -1071,11 +1079,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.toObject = func
|
|
|
1071
1079
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1072
1080
|
* the JSPB instance for transitional soy proto support:
|
|
1073
1081
|
* http://goto/soy-param-migration
|
|
1074
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1082
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} msg The msg instance to transform.
|
|
1075
1083
|
* @return {!Object}
|
|
1076
1084
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1077
1085
|
*/
|
|
1078
|
-
proto.org.dash.platform.dapi.v0.
|
|
1086
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject = function(includeInstance, msg) {
|
|
1079
1087
|
var f, obj = {
|
|
1080
1088
|
now: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1081
1089
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -1093,23 +1101,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.toObject = function(inclu
|
|
|
1093
1101
|
/**
|
|
1094
1102
|
* Deserializes binary data (in protobuf wire format).
|
|
1095
1103
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1096
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1104
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
1097
1105
|
*/
|
|
1098
|
-
proto.org.dash.platform.dapi.v0.
|
|
1106
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinary = function(bytes) {
|
|
1099
1107
|
var reader = new jspb.BinaryReader(bytes);
|
|
1100
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1101
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1108
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time;
|
|
1109
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader(msg, reader);
|
|
1102
1110
|
};
|
|
1103
1111
|
|
|
1104
1112
|
|
|
1105
1113
|
/**
|
|
1106
1114
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1107
1115
|
* given reader into the given message object.
|
|
1108
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1116
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} msg The message object to deserialize into.
|
|
1109
1117
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1110
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1118
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
1111
1119
|
*/
|
|
1112
|
-
proto.org.dash.platform.dapi.v0.
|
|
1120
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader = function(msg, reader) {
|
|
1113
1121
|
while (reader.nextField()) {
|
|
1114
1122
|
if (reader.isEndGroup()) {
|
|
1115
1123
|
break;
|
|
@@ -1141,9 +1149,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.deserializeBinaryFromRead
|
|
|
1141
1149
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1142
1150
|
* @return {!Uint8Array}
|
|
1143
1151
|
*/
|
|
1144
|
-
proto.org.dash.platform.dapi.v0.
|
|
1152
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.serializeBinary = function() {
|
|
1145
1153
|
var writer = new jspb.BinaryWriter();
|
|
1146
|
-
proto.org.dash.platform.dapi.v0.
|
|
1154
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter(this, writer);
|
|
1147
1155
|
return writer.getResultBuffer();
|
|
1148
1156
|
};
|
|
1149
1157
|
|
|
@@ -1151,11 +1159,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.serializeBinary
|
|
|
1151
1159
|
/**
|
|
1152
1160
|
* Serializes the given message to binary data (in protobuf wire
|
|
1153
1161
|
* format), writing to the given BinaryWriter.
|
|
1154
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1162
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} message
|
|
1155
1163
|
* @param {!jspb.BinaryWriter} writer
|
|
1156
1164
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1157
1165
|
*/
|
|
1158
|
-
proto.org.dash.platform.dapi.v0.
|
|
1166
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter = function(message, writer) {
|
|
1159
1167
|
var f = undefined;
|
|
1160
1168
|
f = message.getNow();
|
|
1161
1169
|
if (f !== 0) {
|
|
@@ -1185,16 +1193,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.serializeBinaryToWriter =
|
|
|
1185
1193
|
* optional uint32 now = 1;
|
|
1186
1194
|
* @return {number}
|
|
1187
1195
|
*/
|
|
1188
|
-
proto.org.dash.platform.dapi.v0.
|
|
1196
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getNow = function() {
|
|
1189
1197
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1190
1198
|
};
|
|
1191
1199
|
|
|
1192
1200
|
|
|
1193
1201
|
/**
|
|
1194
1202
|
* @param {number} value
|
|
1195
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1203
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1196
1204
|
*/
|
|
1197
|
-
proto.org.dash.platform.dapi.v0.
|
|
1205
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setNow = function(value) {
|
|
1198
1206
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1199
1207
|
};
|
|
1200
1208
|
|
|
@@ -1203,16 +1211,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.setNow = functi
|
|
|
1203
1211
|
* optional int32 offset = 2;
|
|
1204
1212
|
* @return {number}
|
|
1205
1213
|
*/
|
|
1206
|
-
proto.org.dash.platform.dapi.v0.
|
|
1214
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getOffset = function() {
|
|
1207
1215
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1208
1216
|
};
|
|
1209
1217
|
|
|
1210
1218
|
|
|
1211
1219
|
/**
|
|
1212
1220
|
* @param {number} value
|
|
1213
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1221
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1214
1222
|
*/
|
|
1215
|
-
proto.org.dash.platform.dapi.v0.
|
|
1223
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setOffset = function(value) {
|
|
1216
1224
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1217
1225
|
};
|
|
1218
1226
|
|
|
@@ -1221,16 +1229,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.setOffset = fun
|
|
|
1221
1229
|
* optional uint32 median = 3;
|
|
1222
1230
|
* @return {number}
|
|
1223
1231
|
*/
|
|
1224
|
-
proto.org.dash.platform.dapi.v0.
|
|
1232
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getMedian = function() {
|
|
1225
1233
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1226
1234
|
};
|
|
1227
1235
|
|
|
1228
1236
|
|
|
1229
1237
|
/**
|
|
1230
1238
|
* @param {number} value
|
|
1231
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1239
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1232
1240
|
*/
|
|
1233
|
-
proto.org.dash.platform.dapi.v0.
|
|
1241
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setMedian = function(value) {
|
|
1234
1242
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1235
1243
|
};
|
|
1236
1244
|
|
|
@@ -1251,8 +1259,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1251
1259
|
* http://goto/soy-param-migration
|
|
1252
1260
|
* @return {!Object}
|
|
1253
1261
|
*/
|
|
1254
|
-
proto.org.dash.platform.dapi.v0.
|
|
1255
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1262
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.toObject = function(opt_includeInstance) {
|
|
1263
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject(opt_includeInstance, this);
|
|
1256
1264
|
};
|
|
1257
1265
|
|
|
1258
1266
|
|
|
@@ -1261,11 +1269,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.toObject = fun
|
|
|
1261
1269
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1262
1270
|
* the JSPB instance for transitional soy proto support:
|
|
1263
1271
|
* http://goto/soy-param-migration
|
|
1264
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1272
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} msg The msg instance to transform.
|
|
1265
1273
|
* @return {!Object}
|
|
1266
1274
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1267
1275
|
*/
|
|
1268
|
-
proto.org.dash.platform.dapi.v0.
|
|
1276
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject = function(includeInstance, msg) {
|
|
1269
1277
|
var f, obj = {
|
|
1270
1278
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1271
1279
|
headersCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -1288,23 +1296,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.toObject = function(incl
|
|
|
1288
1296
|
/**
|
|
1289
1297
|
* Deserializes binary data (in protobuf wire format).
|
|
1290
1298
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1291
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1299
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
1292
1300
|
*/
|
|
1293
|
-
proto.org.dash.platform.dapi.v0.
|
|
1301
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinary = function(bytes) {
|
|
1294
1302
|
var reader = new jspb.BinaryReader(bytes);
|
|
1295
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1296
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1303
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain;
|
|
1304
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader(msg, reader);
|
|
1297
1305
|
};
|
|
1298
1306
|
|
|
1299
1307
|
|
|
1300
1308
|
/**
|
|
1301
1309
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1302
1310
|
* given reader into the given message object.
|
|
1303
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1311
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} msg The message object to deserialize into.
|
|
1304
1312
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1305
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1313
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
1306
1314
|
*/
|
|
1307
|
-
proto.org.dash.platform.dapi.v0.
|
|
1315
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader = function(msg, reader) {
|
|
1308
1316
|
while (reader.nextField()) {
|
|
1309
1317
|
if (reader.isEndGroup()) {
|
|
1310
1318
|
break;
|
|
@@ -1356,9 +1364,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.deserializeBinaryFromRea
|
|
|
1356
1364
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1357
1365
|
* @return {!Uint8Array}
|
|
1358
1366
|
*/
|
|
1359
|
-
proto.org.dash.platform.dapi.v0.
|
|
1367
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.serializeBinary = function() {
|
|
1360
1368
|
var writer = new jspb.BinaryWriter();
|
|
1361
|
-
proto.org.dash.platform.dapi.v0.
|
|
1369
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter(this, writer);
|
|
1362
1370
|
return writer.getResultBuffer();
|
|
1363
1371
|
};
|
|
1364
1372
|
|
|
@@ -1366,11 +1374,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.serializeBinar
|
|
|
1366
1374
|
/**
|
|
1367
1375
|
* Serializes the given message to binary data (in protobuf wire
|
|
1368
1376
|
* format), writing to the given BinaryWriter.
|
|
1369
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1377
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} message
|
|
1370
1378
|
* @param {!jspb.BinaryWriter} writer
|
|
1371
1379
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1372
1380
|
*/
|
|
1373
|
-
proto.org.dash.platform.dapi.v0.
|
|
1381
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter = function(message, writer) {
|
|
1374
1382
|
var f = undefined;
|
|
1375
1383
|
f = message.getName();
|
|
1376
1384
|
if (f.length > 0) {
|
|
@@ -1435,16 +1443,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.serializeBinaryToWriter
|
|
|
1435
1443
|
* optional string name = 1;
|
|
1436
1444
|
* @return {string}
|
|
1437
1445
|
*/
|
|
1438
|
-
proto.org.dash.platform.dapi.v0.
|
|
1446
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getName = function() {
|
|
1439
1447
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1440
1448
|
};
|
|
1441
1449
|
|
|
1442
1450
|
|
|
1443
1451
|
/**
|
|
1444
1452
|
* @param {string} value
|
|
1445
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1453
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1446
1454
|
*/
|
|
1447
|
-
proto.org.dash.platform.dapi.v0.
|
|
1455
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setName = function(value) {
|
|
1448
1456
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1449
1457
|
};
|
|
1450
1458
|
|
|
@@ -1453,16 +1461,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setName = func
|
|
|
1453
1461
|
* optional uint32 headers_count = 2;
|
|
1454
1462
|
* @return {number}
|
|
1455
1463
|
*/
|
|
1456
|
-
proto.org.dash.platform.dapi.v0.
|
|
1464
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getHeadersCount = function() {
|
|
1457
1465
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1458
1466
|
};
|
|
1459
1467
|
|
|
1460
1468
|
|
|
1461
1469
|
/**
|
|
1462
1470
|
* @param {number} value
|
|
1463
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1471
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1464
1472
|
*/
|
|
1465
|
-
proto.org.dash.platform.dapi.v0.
|
|
1473
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setHeadersCount = function(value) {
|
|
1466
1474
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1467
1475
|
};
|
|
1468
1476
|
|
|
@@ -1471,16 +1479,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setHeadersCoun
|
|
|
1471
1479
|
* optional uint32 blocks_count = 3;
|
|
1472
1480
|
* @return {number}
|
|
1473
1481
|
*/
|
|
1474
|
-
proto.org.dash.platform.dapi.v0.
|
|
1482
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBlocksCount = function() {
|
|
1475
1483
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1476
1484
|
};
|
|
1477
1485
|
|
|
1478
1486
|
|
|
1479
1487
|
/**
|
|
1480
1488
|
* @param {number} value
|
|
1481
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1489
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1482
1490
|
*/
|
|
1483
|
-
proto.org.dash.platform.dapi.v0.
|
|
1491
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setBlocksCount = function(value) {
|
|
1484
1492
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1485
1493
|
};
|
|
1486
1494
|
|
|
@@ -1489,7 +1497,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setBlocksCount
|
|
|
1489
1497
|
* optional bytes best_block_hash = 4;
|
|
1490
1498
|
* @return {string}
|
|
1491
1499
|
*/
|
|
1492
|
-
proto.org.dash.platform.dapi.v0.
|
|
1500
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash = function() {
|
|
1493
1501
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1494
1502
|
};
|
|
1495
1503
|
|
|
@@ -1499,7 +1507,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1499
1507
|
* This is a type-conversion wrapper around `getBestBlockHash()`
|
|
1500
1508
|
* @return {string}
|
|
1501
1509
|
*/
|
|
1502
|
-
proto.org.dash.platform.dapi.v0.
|
|
1510
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash_asB64 = function() {
|
|
1503
1511
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1504
1512
|
this.getBestBlockHash()));
|
|
1505
1513
|
};
|
|
@@ -1512,7 +1520,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1512
1520
|
* This is a type-conversion wrapper around `getBestBlockHash()`
|
|
1513
1521
|
* @return {!Uint8Array}
|
|
1514
1522
|
*/
|
|
1515
|
-
proto.org.dash.platform.dapi.v0.
|
|
1523
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash_asU8 = function() {
|
|
1516
1524
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1517
1525
|
this.getBestBlockHash()));
|
|
1518
1526
|
};
|
|
@@ -1520,9 +1528,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1520
1528
|
|
|
1521
1529
|
/**
|
|
1522
1530
|
* @param {!(string|Uint8Array)} value
|
|
1523
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1531
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1524
1532
|
*/
|
|
1525
|
-
proto.org.dash.platform.dapi.v0.
|
|
1533
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setBestBlockHash = function(value) {
|
|
1526
1534
|
return jspb.Message.setProto3BytesField(this, 4, value);
|
|
1527
1535
|
};
|
|
1528
1536
|
|
|
@@ -1531,16 +1539,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setBestBlockHa
|
|
|
1531
1539
|
* optional double difficulty = 5;
|
|
1532
1540
|
* @return {number}
|
|
1533
1541
|
*/
|
|
1534
|
-
proto.org.dash.platform.dapi.v0.
|
|
1542
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getDifficulty = function() {
|
|
1535
1543
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
1536
1544
|
};
|
|
1537
1545
|
|
|
1538
1546
|
|
|
1539
1547
|
/**
|
|
1540
1548
|
* @param {number} value
|
|
1541
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1549
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1542
1550
|
*/
|
|
1543
|
-
proto.org.dash.platform.dapi.v0.
|
|
1551
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setDifficulty = function(value) {
|
|
1544
1552
|
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
1545
1553
|
};
|
|
1546
1554
|
|
|
@@ -1549,7 +1557,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setDifficulty
|
|
|
1549
1557
|
* optional bytes chain_work = 6;
|
|
1550
1558
|
* @return {string}
|
|
1551
1559
|
*/
|
|
1552
|
-
proto.org.dash.platform.dapi.v0.
|
|
1560
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork = function() {
|
|
1553
1561
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1554
1562
|
};
|
|
1555
1563
|
|
|
@@ -1559,7 +1567,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork =
|
|
|
1559
1567
|
* This is a type-conversion wrapper around `getChainWork()`
|
|
1560
1568
|
* @return {string}
|
|
1561
1569
|
*/
|
|
1562
|
-
proto.org.dash.platform.dapi.v0.
|
|
1570
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork_asB64 = function() {
|
|
1563
1571
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1564
1572
|
this.getChainWork()));
|
|
1565
1573
|
};
|
|
@@ -1572,7 +1580,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork_a
|
|
|
1572
1580
|
* This is a type-conversion wrapper around `getChainWork()`
|
|
1573
1581
|
* @return {!Uint8Array}
|
|
1574
1582
|
*/
|
|
1575
|
-
proto.org.dash.platform.dapi.v0.
|
|
1583
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork_asU8 = function() {
|
|
1576
1584
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1577
1585
|
this.getChainWork()));
|
|
1578
1586
|
};
|
|
@@ -1580,9 +1588,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork_a
|
|
|
1580
1588
|
|
|
1581
1589
|
/**
|
|
1582
1590
|
* @param {!(string|Uint8Array)} value
|
|
1583
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1591
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1584
1592
|
*/
|
|
1585
|
-
proto.org.dash.platform.dapi.v0.
|
|
1593
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setChainWork = function(value) {
|
|
1586
1594
|
return jspb.Message.setProto3BytesField(this, 6, value);
|
|
1587
1595
|
};
|
|
1588
1596
|
|
|
@@ -1591,16 +1599,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setChainWork =
|
|
|
1591
1599
|
* optional bool is_synced = 7;
|
|
1592
1600
|
* @return {boolean}
|
|
1593
1601
|
*/
|
|
1594
|
-
proto.org.dash.platform.dapi.v0.
|
|
1602
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getIsSynced = function() {
|
|
1595
1603
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
1596
1604
|
};
|
|
1597
1605
|
|
|
1598
1606
|
|
|
1599
1607
|
/**
|
|
1600
1608
|
* @param {boolean} value
|
|
1601
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1609
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1602
1610
|
*/
|
|
1603
|
-
proto.org.dash.platform.dapi.v0.
|
|
1611
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setIsSynced = function(value) {
|
|
1604
1612
|
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
1605
1613
|
};
|
|
1606
1614
|
|
|
@@ -1609,16 +1617,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setIsSynced =
|
|
|
1609
1617
|
* optional double sync_progress = 8;
|
|
1610
1618
|
* @return {number}
|
|
1611
1619
|
*/
|
|
1612
|
-
proto.org.dash.platform.dapi.v0.
|
|
1620
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getSyncProgress = function() {
|
|
1613
1621
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
1614
1622
|
};
|
|
1615
1623
|
|
|
1616
1624
|
|
|
1617
1625
|
/**
|
|
1618
1626
|
* @param {number} value
|
|
1619
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1627
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1620
1628
|
*/
|
|
1621
|
-
proto.org.dash.platform.dapi.v0.
|
|
1629
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setSyncProgress = function(value) {
|
|
1622
1630
|
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
1623
1631
|
};
|
|
1624
1632
|
|
|
@@ -1639,8 +1647,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1639
1647
|
* http://goto/soy-param-migration
|
|
1640
1648
|
* @return {!Object}
|
|
1641
1649
|
*/
|
|
1642
|
-
proto.org.dash.platform.dapi.v0.
|
|
1643
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1650
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.toObject = function(opt_includeInstance) {
|
|
1651
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject(opt_includeInstance, this);
|
|
1644
1652
|
};
|
|
1645
1653
|
|
|
1646
1654
|
|
|
@@ -1649,17 +1657,14 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.toObject
|
|
|
1649
1657
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1650
1658
|
* the JSPB instance for transitional soy proto support:
|
|
1651
1659
|
* http://goto/soy-param-migration
|
|
1652
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1660
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} msg The msg instance to transform.
|
|
1653
1661
|
* @return {!Object}
|
|
1654
1662
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1655
1663
|
*/
|
|
1656
|
-
proto.org.dash.platform.dapi.v0.
|
|
1664
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject = function(includeInstance, msg) {
|
|
1657
1665
|
var f, obj = {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
posePenalty: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1661
|
-
isSynced: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
1662
|
-
syncProgress: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
1666
|
+
relay: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
1667
|
+
incremental: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
1663
1668
|
};
|
|
1664
1669
|
|
|
1665
1670
|
if (includeInstance) {
|
|
@@ -1673,23 +1678,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.toObject = function
|
|
|
1673
1678
|
/**
|
|
1674
1679
|
* Deserializes binary data (in protobuf wire format).
|
|
1675
1680
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1676
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1681
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
1677
1682
|
*/
|
|
1678
|
-
proto.org.dash.platform.dapi.v0.
|
|
1683
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinary = function(bytes) {
|
|
1679
1684
|
var reader = new jspb.BinaryReader(bytes);
|
|
1680
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1681
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1685
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee;
|
|
1686
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader(msg, reader);
|
|
1682
1687
|
};
|
|
1683
1688
|
|
|
1684
1689
|
|
|
1685
1690
|
/**
|
|
1686
1691
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1687
1692
|
* given reader into the given message object.
|
|
1688
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1693
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} msg The message object to deserialize into.
|
|
1689
1694
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1690
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1695
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
1691
1696
|
*/
|
|
1692
|
-
proto.org.dash.platform.dapi.v0.
|
|
1697
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader = function(msg, reader) {
|
|
1693
1698
|
while (reader.nextField()) {
|
|
1694
1699
|
if (reader.isEndGroup()) {
|
|
1695
1700
|
break;
|
|
@@ -1697,24 +1702,12 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.deserializeBinaryFr
|
|
|
1697
1702
|
var field = reader.getFieldNumber();
|
|
1698
1703
|
switch (field) {
|
|
1699
1704
|
case 1:
|
|
1700
|
-
var value = /** @type {
|
|
1701
|
-
msg.
|
|
1705
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1706
|
+
msg.setRelay(value);
|
|
1702
1707
|
break;
|
|
1703
1708
|
case 2:
|
|
1704
|
-
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
1705
|
-
msg.setProTxHash(value);
|
|
1706
|
-
break;
|
|
1707
|
-
case 3:
|
|
1708
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
1709
|
-
msg.setPosePenalty(value);
|
|
1710
|
-
break;
|
|
1711
|
-
case 4:
|
|
1712
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1713
|
-
msg.setIsSynced(value);
|
|
1714
|
-
break;
|
|
1715
|
-
case 5:
|
|
1716
1709
|
var value = /** @type {number} */ (reader.readDouble());
|
|
1717
|
-
msg.
|
|
1710
|
+
msg.setIncremental(value);
|
|
1718
1711
|
break;
|
|
1719
1712
|
default:
|
|
1720
1713
|
reader.skipField();
|
|
@@ -1729,9 +1722,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.deserializeBinaryFr
|
|
|
1729
1722
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1730
1723
|
* @return {!Uint8Array}
|
|
1731
1724
|
*/
|
|
1732
|
-
proto.org.dash.platform.dapi.v0.
|
|
1725
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.serializeBinary = function() {
|
|
1733
1726
|
var writer = new jspb.BinaryWriter();
|
|
1734
|
-
proto.org.dash.platform.dapi.v0.
|
|
1727
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter(this, writer);
|
|
1735
1728
|
return writer.getResultBuffer();
|
|
1736
1729
|
};
|
|
1737
1730
|
|
|
@@ -1739,44 +1732,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.serialize
|
|
|
1739
1732
|
/**
|
|
1740
1733
|
* Serializes the given message to binary data (in protobuf wire
|
|
1741
1734
|
* format), writing to the given BinaryWriter.
|
|
1742
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1735
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} message
|
|
1743
1736
|
* @param {!jspb.BinaryWriter} writer
|
|
1744
1737
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1745
1738
|
*/
|
|
1746
|
-
proto.org.dash.platform.dapi.v0.
|
|
1739
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter = function(message, writer) {
|
|
1747
1740
|
var f = undefined;
|
|
1748
|
-
f = message.
|
|
1741
|
+
f = message.getRelay();
|
|
1749
1742
|
if (f !== 0.0) {
|
|
1750
|
-
writer.
|
|
1743
|
+
writer.writeDouble(
|
|
1751
1744
|
1,
|
|
1752
1745
|
f
|
|
1753
1746
|
);
|
|
1754
1747
|
}
|
|
1755
|
-
f = message.
|
|
1756
|
-
if (f.length > 0) {
|
|
1757
|
-
writer.writeBytes(
|
|
1758
|
-
2,
|
|
1759
|
-
f
|
|
1760
|
-
);
|
|
1761
|
-
}
|
|
1762
|
-
f = message.getPosePenalty();
|
|
1763
|
-
if (f !== 0) {
|
|
1764
|
-
writer.writeUint32(
|
|
1765
|
-
3,
|
|
1766
|
-
f
|
|
1767
|
-
);
|
|
1768
|
-
}
|
|
1769
|
-
f = message.getIsSynced();
|
|
1770
|
-
if (f) {
|
|
1771
|
-
writer.writeBool(
|
|
1772
|
-
4,
|
|
1773
|
-
f
|
|
1774
|
-
);
|
|
1775
|
-
}
|
|
1776
|
-
f = message.getSyncProgress();
|
|
1748
|
+
f = message.getIncremental();
|
|
1777
1749
|
if (f !== 0.0) {
|
|
1778
1750
|
writer.writeDouble(
|
|
1779
|
-
|
|
1751
|
+
2,
|
|
1780
1752
|
f
|
|
1781
1753
|
);
|
|
1782
1754
|
}
|
|
@@ -1784,130 +1756,38 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.serializeBinaryToWr
|
|
|
1784
1756
|
|
|
1785
1757
|
|
|
1786
1758
|
/**
|
|
1787
|
-
*
|
|
1788
|
-
*/
|
|
1789
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status = {
|
|
1790
|
-
UNKNOWN: 0,
|
|
1791
|
-
WAITING_FOR_PROTX: 1,
|
|
1792
|
-
POSE_BANNED: 2,
|
|
1793
|
-
REMOVED: 3,
|
|
1794
|
-
OPERATOR_KEY_CHANGED: 4,
|
|
1795
|
-
PROTX_IP_CHANGED: 5,
|
|
1796
|
-
READY: 6,
|
|
1797
|
-
ERROR: 7
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* optional Status status = 1;
|
|
1802
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status}
|
|
1803
|
-
*/
|
|
1804
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.getStatus = function() {
|
|
1805
|
-
return /** @type {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.Status} value
|
|
1811
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode} returns this
|
|
1812
|
-
*/
|
|
1813
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.setStatus = function(value) {
|
|
1814
|
-
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
1815
|
-
};
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
/**
|
|
1819
|
-
* optional bytes pro_tx_hash = 2;
|
|
1820
|
-
* @return {string}
|
|
1821
|
-
*/
|
|
1822
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.getProTxHash = function() {
|
|
1823
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1824
|
-
};
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
/**
|
|
1828
|
-
* optional bytes pro_tx_hash = 2;
|
|
1829
|
-
* This is a type-conversion wrapper around `getProTxHash()`
|
|
1830
|
-
* @return {string}
|
|
1831
|
-
*/
|
|
1832
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.getProTxHash_asB64 = function() {
|
|
1833
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1834
|
-
this.getProTxHash()));
|
|
1835
|
-
};
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* optional bytes pro_tx_hash = 2;
|
|
1840
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
1841
|
-
* @see http://caniuse.com/Uint8Array
|
|
1842
|
-
* This is a type-conversion wrapper around `getProTxHash()`
|
|
1843
|
-
* @return {!Uint8Array}
|
|
1844
|
-
*/
|
|
1845
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.getProTxHash_asU8 = function() {
|
|
1846
|
-
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1847
|
-
this.getProTxHash()));
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* @param {!(string|Uint8Array)} value
|
|
1853
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode} returns this
|
|
1854
|
-
*/
|
|
1855
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.setProTxHash = function(value) {
|
|
1856
|
-
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
/**
|
|
1861
|
-
* optional uint32 pose_penalty = 3;
|
|
1759
|
+
* optional double relay = 1;
|
|
1862
1760
|
* @return {number}
|
|
1863
1761
|
*/
|
|
1864
|
-
proto.org.dash.platform.dapi.v0.
|
|
1865
|
-
return /** @type {number} */ (jspb.Message.
|
|
1762
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.getRelay = function() {
|
|
1763
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
1866
1764
|
};
|
|
1867
1765
|
|
|
1868
1766
|
|
|
1869
1767
|
/**
|
|
1870
1768
|
* @param {number} value
|
|
1871
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1872
|
-
*/
|
|
1873
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.setPosePenalty = function(value) {
|
|
1874
|
-
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1875
|
-
};
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
/**
|
|
1879
|
-
* optional bool is_synced = 4;
|
|
1880
|
-
* @return {boolean}
|
|
1881
|
-
*/
|
|
1882
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.getIsSynced = function() {
|
|
1883
|
-
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
1884
|
-
};
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* @param {boolean} value
|
|
1889
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode} returns this
|
|
1769
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} returns this
|
|
1890
1770
|
*/
|
|
1891
|
-
proto.org.dash.platform.dapi.v0.
|
|
1892
|
-
return jspb.Message.
|
|
1771
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.setRelay = function(value) {
|
|
1772
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
1893
1773
|
};
|
|
1894
1774
|
|
|
1895
1775
|
|
|
1896
1776
|
/**
|
|
1897
|
-
* optional double
|
|
1777
|
+
* optional double incremental = 2;
|
|
1898
1778
|
* @return {number}
|
|
1899
1779
|
*/
|
|
1900
|
-
proto.org.dash.platform.dapi.v0.
|
|
1901
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this,
|
|
1780
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.getIncremental = function() {
|
|
1781
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
1902
1782
|
};
|
|
1903
1783
|
|
|
1904
1784
|
|
|
1905
1785
|
/**
|
|
1906
1786
|
* @param {number} value
|
|
1907
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1787
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} returns this
|
|
1908
1788
|
*/
|
|
1909
|
-
proto.org.dash.platform.dapi.v0.
|
|
1910
|
-
return jspb.Message.setProto3FloatField(this,
|
|
1789
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.setIncremental = function(value) {
|
|
1790
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
1911
1791
|
};
|
|
1912
1792
|
|
|
1913
1793
|
|
|
@@ -1927,8 +1807,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1927
1807
|
* http://goto/soy-param-migration
|
|
1928
1808
|
* @return {!Object}
|
|
1929
1809
|
*/
|
|
1930
|
-
proto.org.dash.platform.dapi.v0.
|
|
1931
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1810
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.toObject = function(opt_includeInstance) {
|
|
1811
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject(opt_includeInstance, this);
|
|
1932
1812
|
};
|
|
1933
1813
|
|
|
1934
1814
|
|
|
@@ -1937,14 +1817,14 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.prototype.toObject
|
|
|
1937
1817
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1938
1818
|
* the JSPB instance for transitional soy proto support:
|
|
1939
1819
|
* http://goto/soy-param-migration
|
|
1940
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1820
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} msg The msg instance to transform.
|
|
1941
1821
|
* @return {!Object}
|
|
1942
1822
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1943
1823
|
*/
|
|
1944
|
-
proto.org.dash.platform.dapi.v0.
|
|
1824
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject = function(includeInstance, msg) {
|
|
1945
1825
|
var f, obj = {
|
|
1946
|
-
|
|
1947
|
-
|
|
1826
|
+
peersCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1827
|
+
fee: (f = msg.getFee()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject(includeInstance, f)
|
|
1948
1828
|
};
|
|
1949
1829
|
|
|
1950
1830
|
if (includeInstance) {
|
|
@@ -1958,23 +1838,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.toObject = function
|
|
|
1958
1838
|
/**
|
|
1959
1839
|
* Deserializes binary data (in protobuf wire format).
|
|
1960
1840
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1961
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1841
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
1962
1842
|
*/
|
|
1963
|
-
proto.org.dash.platform.dapi.v0.
|
|
1843
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinary = function(bytes) {
|
|
1964
1844
|
var reader = new jspb.BinaryReader(bytes);
|
|
1965
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1966
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1845
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network;
|
|
1846
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader(msg, reader);
|
|
1967
1847
|
};
|
|
1968
1848
|
|
|
1969
1849
|
|
|
1970
1850
|
/**
|
|
1971
1851
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1972
1852
|
* given reader into the given message object.
|
|
1973
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1853
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} msg The message object to deserialize into.
|
|
1974
1854
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1975
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1855
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
1976
1856
|
*/
|
|
1977
|
-
proto.org.dash.platform.dapi.v0.
|
|
1857
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader = function(msg, reader) {
|
|
1978
1858
|
while (reader.nextField()) {
|
|
1979
1859
|
if (reader.isEndGroup()) {
|
|
1980
1860
|
break;
|
|
@@ -1982,12 +1862,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.deserializeBinaryFr
|
|
|
1982
1862
|
var field = reader.getFieldNumber();
|
|
1983
1863
|
switch (field) {
|
|
1984
1864
|
case 1:
|
|
1985
|
-
var value = /** @type {number} */ (reader.
|
|
1986
|
-
msg.
|
|
1865
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1866
|
+
msg.setPeersCount(value);
|
|
1987
1867
|
break;
|
|
1988
1868
|
case 2:
|
|
1989
|
-
var value =
|
|
1990
|
-
|
|
1869
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee;
|
|
1870
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader);
|
|
1871
|
+
msg.setFee(value);
|
|
1991
1872
|
break;
|
|
1992
1873
|
default:
|
|
1993
1874
|
reader.skipField();
|
|
@@ -2002,9 +1883,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.deserializeBinaryFr
|
|
|
2002
1883
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2003
1884
|
* @return {!Uint8Array}
|
|
2004
1885
|
*/
|
|
2005
|
-
proto.org.dash.platform.dapi.v0.
|
|
1886
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.serializeBinary = function() {
|
|
2006
1887
|
var writer = new jspb.BinaryWriter();
|
|
2007
|
-
proto.org.dash.platform.dapi.v0.
|
|
1888
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter(this, writer);
|
|
2008
1889
|
return writer.getResultBuffer();
|
|
2009
1890
|
};
|
|
2010
1891
|
|
|
@@ -2012,234 +1893,220 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.prototype.serialize
|
|
|
2012
1893
|
/**
|
|
2013
1894
|
* Serializes the given message to binary data (in protobuf wire
|
|
2014
1895
|
* format), writing to the given BinaryWriter.
|
|
2015
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1896
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} message
|
|
2016
1897
|
* @param {!jspb.BinaryWriter} writer
|
|
2017
1898
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2018
1899
|
*/
|
|
2019
|
-
proto.org.dash.platform.dapi.v0.
|
|
1900
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter = function(message, writer) {
|
|
2020
1901
|
var f = undefined;
|
|
2021
|
-
f = message.
|
|
2022
|
-
if (f !== 0
|
|
2023
|
-
writer.
|
|
1902
|
+
f = message.getPeersCount();
|
|
1903
|
+
if (f !== 0) {
|
|
1904
|
+
writer.writeUint32(
|
|
2024
1905
|
1,
|
|
2025
1906
|
f
|
|
2026
1907
|
);
|
|
2027
1908
|
}
|
|
2028
|
-
f = message.
|
|
2029
|
-
if (f
|
|
2030
|
-
writer.
|
|
1909
|
+
f = message.getFee();
|
|
1910
|
+
if (f != null) {
|
|
1911
|
+
writer.writeMessage(
|
|
2031
1912
|
2,
|
|
2032
|
-
f
|
|
1913
|
+
f,
|
|
1914
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter
|
|
2033
1915
|
);
|
|
2034
1916
|
}
|
|
2035
1917
|
};
|
|
2036
1918
|
|
|
2037
1919
|
|
|
2038
1920
|
/**
|
|
2039
|
-
* optional
|
|
1921
|
+
* optional uint32 peers_count = 1;
|
|
2040
1922
|
* @return {number}
|
|
2041
1923
|
*/
|
|
2042
|
-
proto.org.dash.platform.dapi.v0.
|
|
2043
|
-
return /** @type {number} */ (jspb.Message.
|
|
1924
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.getPeersCount = function() {
|
|
1925
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2044
1926
|
};
|
|
2045
1927
|
|
|
2046
1928
|
|
|
2047
1929
|
/**
|
|
2048
1930
|
* @param {number} value
|
|
2049
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1931
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
2050
1932
|
*/
|
|
2051
|
-
proto.org.dash.platform.dapi.v0.
|
|
2052
|
-
return jspb.Message.
|
|
1933
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.setPeersCount = function(value) {
|
|
1934
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2053
1935
|
};
|
|
2054
1936
|
|
|
2055
1937
|
|
|
2056
1938
|
/**
|
|
2057
|
-
* optional
|
|
2058
|
-
* @return {
|
|
1939
|
+
* optional NetworkFee fee = 2;
|
|
1940
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
2059
1941
|
*/
|
|
2060
|
-
proto.org.dash.platform.dapi.v0.
|
|
2061
|
-
return /** @type
|
|
1942
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.getFee = function() {
|
|
1943
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} */ (
|
|
1944
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee, 2));
|
|
2062
1945
|
};
|
|
2063
1946
|
|
|
2064
1947
|
|
|
2065
1948
|
/**
|
|
2066
|
-
* @param {
|
|
2067
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2068
|
-
|
|
2069
|
-
proto.org.dash.platform.dapi.v0.
|
|
2070
|
-
return jspb.Message.
|
|
1949
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee|undefined} value
|
|
1950
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
1951
|
+
*/
|
|
1952
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.setFee = function(value) {
|
|
1953
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2071
1954
|
};
|
|
2072
1955
|
|
|
2073
1956
|
|
|
1957
|
+
/**
|
|
1958
|
+
* Clears the message field making it undefined.
|
|
1959
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
1960
|
+
*/
|
|
1961
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.clearFee = function() {
|
|
1962
|
+
return this.setFee(undefined);
|
|
1963
|
+
};
|
|
2074
1964
|
|
|
2075
1965
|
|
|
2076
|
-
|
|
2077
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2078
1966
|
/**
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2081
|
-
* Optional fields that are not set will be set to undefined.
|
|
2082
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2083
|
-
* For the list of reserved names please see:
|
|
2084
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2085
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2086
|
-
* JSPB instance for transitional soy proto support:
|
|
2087
|
-
* http://goto/soy-param-migration
|
|
2088
|
-
* @return {!Object}
|
|
1967
|
+
* Returns whether this field is set.
|
|
1968
|
+
* @return {boolean}
|
|
2089
1969
|
*/
|
|
2090
|
-
proto.org.dash.platform.dapi.v0.
|
|
2091
|
-
return
|
|
1970
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.hasFee = function() {
|
|
1971
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2092
1972
|
};
|
|
2093
1973
|
|
|
2094
1974
|
|
|
2095
1975
|
/**
|
|
2096
|
-
*
|
|
2097
|
-
* @
|
|
2098
|
-
* the JSPB instance for transitional soy proto support:
|
|
2099
|
-
* http://goto/soy-param-migration
|
|
2100
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Network} msg The msg instance to transform.
|
|
2101
|
-
* @return {!Object}
|
|
2102
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1976
|
+
* optional Version version = 1;
|
|
1977
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
2103
1978
|
*/
|
|
2104
|
-
proto.org.dash.platform.dapi.v0.
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
};
|
|
1979
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getVersion = function() {
|
|
1980
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} */ (
|
|
1981
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version, 1));
|
|
1982
|
+
};
|
|
2109
1983
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version|undefined} value
|
|
1987
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
1988
|
+
*/
|
|
1989
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setVersion = function(value) {
|
|
1990
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2114
1991
|
};
|
|
2115
|
-
}
|
|
2116
1992
|
|
|
2117
1993
|
|
|
2118
1994
|
/**
|
|
2119
|
-
*
|
|
2120
|
-
* @
|
|
2121
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Network}
|
|
1995
|
+
* Clears the message field making it undefined.
|
|
1996
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2122
1997
|
*/
|
|
2123
|
-
proto.org.dash.platform.dapi.v0.
|
|
2124
|
-
|
|
2125
|
-
var msg = new proto.org.dash.platform.dapi.v0.GetStatusResponse.Network;
|
|
2126
|
-
return proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.deserializeBinaryFromReader(msg, reader);
|
|
1998
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearVersion = function() {
|
|
1999
|
+
return this.setVersion(undefined);
|
|
2127
2000
|
};
|
|
2128
2001
|
|
|
2129
2002
|
|
|
2130
2003
|
/**
|
|
2131
|
-
*
|
|
2132
|
-
*
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
*/
|
|
2137
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.deserializeBinaryFromReader = function(msg, reader) {
|
|
2138
|
-
while (reader.nextField()) {
|
|
2139
|
-
if (reader.isEndGroup()) {
|
|
2140
|
-
break;
|
|
2141
|
-
}
|
|
2142
|
-
var field = reader.getFieldNumber();
|
|
2143
|
-
switch (field) {
|
|
2144
|
-
case 1:
|
|
2145
|
-
var value = /** @type {number} */ (reader.readUint32());
|
|
2146
|
-
msg.setPeersCount(value);
|
|
2147
|
-
break;
|
|
2148
|
-
case 2:
|
|
2149
|
-
var value = new proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee;
|
|
2150
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.deserializeBinaryFromReader);
|
|
2151
|
-
msg.setFee(value);
|
|
2152
|
-
break;
|
|
2153
|
-
default:
|
|
2154
|
-
reader.skipField();
|
|
2155
|
-
break;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
return msg;
|
|
2004
|
+
* Returns whether this field is set.
|
|
2005
|
+
* @return {boolean}
|
|
2006
|
+
*/
|
|
2007
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasVersion = function() {
|
|
2008
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2159
2009
|
};
|
|
2160
2010
|
|
|
2161
2011
|
|
|
2162
2012
|
/**
|
|
2163
|
-
*
|
|
2164
|
-
* @return {
|
|
2013
|
+
* optional Time time = 2;
|
|
2014
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
2165
2015
|
*/
|
|
2166
|
-
proto.org.dash.platform.dapi.v0.
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
return writer.getResultBuffer();
|
|
2016
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getTime = function() {
|
|
2017
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} */ (
|
|
2018
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time, 2));
|
|
2170
2019
|
};
|
|
2171
2020
|
|
|
2172
2021
|
|
|
2173
2022
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
*
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2023
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time|undefined} value
|
|
2024
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2025
|
+
*/
|
|
2026
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setTime = function(value) {
|
|
2027
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2028
|
+
};
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Clears the message field making it undefined.
|
|
2033
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2179
2034
|
*/
|
|
2180
|
-
proto.org.dash.platform.dapi.v0.
|
|
2181
|
-
|
|
2182
|
-
f = message.getPeersCount();
|
|
2183
|
-
if (f !== 0) {
|
|
2184
|
-
writer.writeUint32(
|
|
2185
|
-
1,
|
|
2186
|
-
f
|
|
2187
|
-
);
|
|
2188
|
-
}
|
|
2189
|
-
f = message.getFee();
|
|
2190
|
-
if (f != null) {
|
|
2191
|
-
writer.writeMessage(
|
|
2192
|
-
2,
|
|
2193
|
-
f,
|
|
2194
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.serializeBinaryToWriter
|
|
2195
|
-
);
|
|
2196
|
-
}
|
|
2035
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearTime = function() {
|
|
2036
|
+
return this.setTime(undefined);
|
|
2197
2037
|
};
|
|
2198
2038
|
|
|
2199
2039
|
|
|
2200
2040
|
/**
|
|
2201
|
-
*
|
|
2041
|
+
* Returns whether this field is set.
|
|
2042
|
+
* @return {boolean}
|
|
2043
|
+
*/
|
|
2044
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasTime = function() {
|
|
2045
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2046
|
+
};
|
|
2047
|
+
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* optional Status status = 3;
|
|
2051
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status}
|
|
2052
|
+
*/
|
|
2053
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getStatus = function() {
|
|
2054
|
+
return /** @type {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2055
|
+
};
|
|
2056
|
+
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} value
|
|
2060
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2061
|
+
*/
|
|
2062
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setStatus = function(value) {
|
|
2063
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
2064
|
+
};
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
|
+
/**
|
|
2068
|
+
* optional double sync_progress = 4;
|
|
2202
2069
|
* @return {number}
|
|
2203
2070
|
*/
|
|
2204
|
-
proto.org.dash.platform.dapi.v0.
|
|
2205
|
-
return /** @type {number} */ (jspb.Message.
|
|
2071
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getSyncProgress = function() {
|
|
2072
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
2206
2073
|
};
|
|
2207
2074
|
|
|
2208
2075
|
|
|
2209
2076
|
/**
|
|
2210
2077
|
* @param {number} value
|
|
2211
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2078
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2212
2079
|
*/
|
|
2213
|
-
proto.org.dash.platform.dapi.v0.
|
|
2214
|
-
return jspb.Message.
|
|
2080
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setSyncProgress = function(value) {
|
|
2081
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
2215
2082
|
};
|
|
2216
2083
|
|
|
2217
2084
|
|
|
2218
2085
|
/**
|
|
2219
|
-
* optional
|
|
2220
|
-
* @return {?proto.org.dash.platform.dapi.v0.
|
|
2086
|
+
* optional Chain chain = 5;
|
|
2087
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
2221
2088
|
*/
|
|
2222
|
-
proto.org.dash.platform.dapi.v0.
|
|
2223
|
-
return /** @type{?proto.org.dash.platform.dapi.v0.
|
|
2224
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.
|
|
2089
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getChain = function() {
|
|
2090
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} */ (
|
|
2091
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain, 5));
|
|
2225
2092
|
};
|
|
2226
2093
|
|
|
2227
2094
|
|
|
2228
2095
|
/**
|
|
2229
|
-
* @param {?proto.org.dash.platform.dapi.v0.
|
|
2230
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2096
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain|undefined} value
|
|
2097
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2231
2098
|
*/
|
|
2232
|
-
proto.org.dash.platform.dapi.v0.
|
|
2233
|
-
return jspb.Message.setWrapperField(this,
|
|
2099
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setChain = function(value) {
|
|
2100
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
2234
2101
|
};
|
|
2235
2102
|
|
|
2236
2103
|
|
|
2237
2104
|
/**
|
|
2238
2105
|
* Clears the message field making it undefined.
|
|
2239
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2106
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2240
2107
|
*/
|
|
2241
|
-
proto.org.dash.platform.dapi.v0.
|
|
2242
|
-
return this.
|
|
2108
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearChain = function() {
|
|
2109
|
+
return this.setChain(undefined);
|
|
2243
2110
|
};
|
|
2244
2111
|
|
|
2245
2112
|
|
|
@@ -2247,36 +2114,36 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.prototype.clearFee = f
|
|
|
2247
2114
|
* Returns whether this field is set.
|
|
2248
2115
|
* @return {boolean}
|
|
2249
2116
|
*/
|
|
2250
|
-
proto.org.dash.platform.dapi.v0.
|
|
2251
|
-
return jspb.Message.getField(this,
|
|
2117
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasChain = function() {
|
|
2118
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2252
2119
|
};
|
|
2253
2120
|
|
|
2254
2121
|
|
|
2255
2122
|
/**
|
|
2256
|
-
* optional
|
|
2257
|
-
* @return {?proto.org.dash.platform.dapi.v0.
|
|
2123
|
+
* optional Network network = 7;
|
|
2124
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
2258
2125
|
*/
|
|
2259
|
-
proto.org.dash.platform.dapi.v0.
|
|
2260
|
-
return /** @type{?proto.org.dash.platform.dapi.v0.
|
|
2261
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.
|
|
2126
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getNetwork = function() {
|
|
2127
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} */ (
|
|
2128
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network, 7));
|
|
2262
2129
|
};
|
|
2263
2130
|
|
|
2264
2131
|
|
|
2265
2132
|
/**
|
|
2266
|
-
* @param {?proto.org.dash.platform.dapi.v0.
|
|
2267
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2133
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network|undefined} value
|
|
2134
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2268
2135
|
*/
|
|
2269
|
-
proto.org.dash.platform.dapi.v0.
|
|
2270
|
-
return jspb.Message.setWrapperField(this,
|
|
2136
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setNetwork = function(value) {
|
|
2137
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2271
2138
|
};
|
|
2272
2139
|
|
|
2273
2140
|
|
|
2274
2141
|
/**
|
|
2275
2142
|
* Clears the message field making it undefined.
|
|
2276
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2143
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2277
2144
|
*/
|
|
2278
|
-
proto.org.dash.platform.dapi.v0.
|
|
2279
|
-
return this.
|
|
2145
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearNetwork = function() {
|
|
2146
|
+
return this.setNetwork(undefined);
|
|
2280
2147
|
};
|
|
2281
2148
|
|
|
2282
2149
|
|
|
@@ -2284,192 +2151,397 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.clearVersion = funct
|
|
|
2284
2151
|
* Returns whether this field is set.
|
|
2285
2152
|
* @return {boolean}
|
|
2286
2153
|
*/
|
|
2287
|
-
proto.org.dash.platform.dapi.v0.
|
|
2288
|
-
return jspb.Message.getField(this,
|
|
2154
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasNetwork = function() {
|
|
2155
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2289
2156
|
};
|
|
2290
2157
|
|
|
2291
2158
|
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
|
|
2162
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2292
2163
|
/**
|
|
2293
|
-
*
|
|
2294
|
-
*
|
|
2164
|
+
* Creates an object representation of this proto.
|
|
2165
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2166
|
+
* Optional fields that are not set will be set to undefined.
|
|
2167
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2168
|
+
* For the list of reserved names please see:
|
|
2169
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2170
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2171
|
+
* JSPB instance for transitional soy proto support:
|
|
2172
|
+
* http://goto/soy-param-migration
|
|
2173
|
+
* @return {!Object}
|
|
2295
2174
|
*/
|
|
2296
|
-
proto.org.dash.platform.dapi.v0.
|
|
2297
|
-
return
|
|
2298
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.Time, 2));
|
|
2175
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2176
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.toObject(opt_includeInstance, this);
|
|
2299
2177
|
};
|
|
2300
2178
|
|
|
2301
2179
|
|
|
2302
2180
|
/**
|
|
2303
|
-
* @
|
|
2304
|
-
* @
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2181
|
+
* Static version of the {@see toObject} method.
|
|
2182
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2183
|
+
* the JSPB instance for transitional soy proto support:
|
|
2184
|
+
* http://goto/soy-param-migration
|
|
2185
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} msg The msg instance to transform.
|
|
2186
|
+
* @return {!Object}
|
|
2187
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2188
|
+
*/
|
|
2189
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.toObject = function(includeInstance, msg) {
|
|
2190
|
+
var f, obj = {
|
|
2191
|
+
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
if (includeInstance) {
|
|
2195
|
+
obj.$jspbMessageInstance = msg;
|
|
2196
|
+
}
|
|
2197
|
+
return obj;
|
|
2308
2198
|
};
|
|
2199
|
+
}
|
|
2309
2200
|
|
|
2310
2201
|
|
|
2311
2202
|
/**
|
|
2312
|
-
*
|
|
2313
|
-
* @
|
|
2203
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2204
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2205
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest}
|
|
2314
2206
|
*/
|
|
2315
|
-
proto.org.dash.platform.dapi.v0.
|
|
2316
|
-
|
|
2207
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinary = function(bytes) {
|
|
2208
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2209
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest;
|
|
2210
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
2317
2211
|
};
|
|
2318
2212
|
|
|
2319
2213
|
|
|
2320
2214
|
/**
|
|
2321
|
-
*
|
|
2322
|
-
*
|
|
2215
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2216
|
+
* given reader into the given message object.
|
|
2217
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} msg The message object to deserialize into.
|
|
2218
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2219
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest}
|
|
2323
2220
|
*/
|
|
2324
|
-
proto.org.dash.platform.dapi.v0.
|
|
2325
|
-
|
|
2221
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2222
|
+
while (reader.nextField()) {
|
|
2223
|
+
if (reader.isEndGroup()) {
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
var field = reader.getFieldNumber();
|
|
2227
|
+
switch (field) {
|
|
2228
|
+
default:
|
|
2229
|
+
reader.skipField();
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
return msg;
|
|
2326
2234
|
};
|
|
2327
2235
|
|
|
2328
2236
|
|
|
2329
2237
|
/**
|
|
2330
|
-
*
|
|
2331
|
-
* @return {!
|
|
2238
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2239
|
+
* @return {!Uint8Array}
|
|
2332
2240
|
*/
|
|
2333
|
-
proto.org.dash.platform.dapi.v0.
|
|
2334
|
-
|
|
2241
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.prototype.serializeBinary = function() {
|
|
2242
|
+
var writer = new jspb.BinaryWriter();
|
|
2243
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.serializeBinaryToWriter(this, writer);
|
|
2244
|
+
return writer.getResultBuffer();
|
|
2335
2245
|
};
|
|
2336
2246
|
|
|
2337
2247
|
|
|
2338
2248
|
/**
|
|
2339
|
-
*
|
|
2340
|
-
*
|
|
2249
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2250
|
+
* format), writing to the given BinaryWriter.
|
|
2251
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} message
|
|
2252
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2253
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2341
2254
|
*/
|
|
2342
|
-
proto.org.dash.platform.dapi.v0.
|
|
2343
|
-
|
|
2255
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2256
|
+
var f = undefined;
|
|
2344
2257
|
};
|
|
2345
2258
|
|
|
2346
2259
|
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
|
|
2263
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2347
2264
|
/**
|
|
2348
|
-
*
|
|
2349
|
-
*
|
|
2265
|
+
* Creates an object representation of this proto.
|
|
2266
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2267
|
+
* Optional fields that are not set will be set to undefined.
|
|
2268
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2269
|
+
* For the list of reserved names please see:
|
|
2270
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2271
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2272
|
+
* JSPB instance for transitional soy proto support:
|
|
2273
|
+
* http://goto/soy-param-migration
|
|
2274
|
+
* @return {!Object}
|
|
2350
2275
|
*/
|
|
2351
|
-
proto.org.dash.platform.dapi.v0.
|
|
2352
|
-
return
|
|
2276
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2277
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.toObject(opt_includeInstance, this);
|
|
2353
2278
|
};
|
|
2354
2279
|
|
|
2355
2280
|
|
|
2356
2281
|
/**
|
|
2357
|
-
* @
|
|
2358
|
-
* @
|
|
2282
|
+
* Static version of the {@see toObject} method.
|
|
2283
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2284
|
+
* the JSPB instance for transitional soy proto support:
|
|
2285
|
+
* http://goto/soy-param-migration
|
|
2286
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} msg The msg instance to transform.
|
|
2287
|
+
* @return {!Object}
|
|
2288
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2359
2289
|
*/
|
|
2360
|
-
proto.org.dash.platform.dapi.v0.
|
|
2361
|
-
|
|
2290
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.toObject = function(includeInstance, msg) {
|
|
2291
|
+
var f, obj = {
|
|
2292
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2293
|
+
proTxHash: msg.getProTxHash_asB64(),
|
|
2294
|
+
posePenalty: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2295
|
+
isSynced: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2296
|
+
syncProgress: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
if (includeInstance) {
|
|
2300
|
+
obj.$jspbMessageInstance = msg;
|
|
2301
|
+
}
|
|
2302
|
+
return obj;
|
|
2362
2303
|
};
|
|
2304
|
+
}
|
|
2363
2305
|
|
|
2364
2306
|
|
|
2365
2307
|
/**
|
|
2366
|
-
*
|
|
2367
|
-
* @
|
|
2308
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2309
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2310
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse}
|
|
2368
2311
|
*/
|
|
2369
|
-
proto.org.dash.platform.dapi.v0.
|
|
2370
|
-
|
|
2371
|
-
|
|
2312
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinary = function(bytes) {
|
|
2313
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2314
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse;
|
|
2315
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
2372
2316
|
};
|
|
2373
2317
|
|
|
2374
2318
|
|
|
2375
2319
|
/**
|
|
2376
|
-
*
|
|
2377
|
-
*
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2320
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2321
|
+
* given reader into the given message object.
|
|
2322
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} msg The message object to deserialize into.
|
|
2323
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2324
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse}
|
|
2325
|
+
*/
|
|
2326
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2327
|
+
while (reader.nextField()) {
|
|
2328
|
+
if (reader.isEndGroup()) {
|
|
2329
|
+
break;
|
|
2330
|
+
}
|
|
2331
|
+
var field = reader.getFieldNumber();
|
|
2332
|
+
switch (field) {
|
|
2333
|
+
case 1:
|
|
2334
|
+
var value = /** @type {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} */ (reader.readEnum());
|
|
2335
|
+
msg.setStatus(value);
|
|
2336
|
+
break;
|
|
2337
|
+
case 2:
|
|
2338
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2339
|
+
msg.setProTxHash(value);
|
|
2340
|
+
break;
|
|
2341
|
+
case 3:
|
|
2342
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2343
|
+
msg.setPosePenalty(value);
|
|
2344
|
+
break;
|
|
2345
|
+
case 4:
|
|
2346
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2347
|
+
msg.setIsSynced(value);
|
|
2348
|
+
break;
|
|
2349
|
+
case 5:
|
|
2350
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
2351
|
+
msg.setSyncProgress(value);
|
|
2352
|
+
break;
|
|
2353
|
+
default:
|
|
2354
|
+
reader.skipField();
|
|
2355
|
+
break;
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
return msg;
|
|
2381
2359
|
};
|
|
2382
2360
|
|
|
2383
2361
|
|
|
2384
2362
|
/**
|
|
2385
|
-
*
|
|
2386
|
-
* @return {!
|
|
2363
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2364
|
+
* @return {!Uint8Array}
|
|
2387
2365
|
*/
|
|
2388
|
-
proto.org.dash.platform.dapi.v0.
|
|
2389
|
-
|
|
2366
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.serializeBinary = function() {
|
|
2367
|
+
var writer = new jspb.BinaryWriter();
|
|
2368
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.serializeBinaryToWriter(this, writer);
|
|
2369
|
+
return writer.getResultBuffer();
|
|
2390
2370
|
};
|
|
2391
2371
|
|
|
2392
2372
|
|
|
2393
2373
|
/**
|
|
2394
|
-
*
|
|
2395
|
-
*
|
|
2374
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2375
|
+
* format), writing to the given BinaryWriter.
|
|
2376
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} message
|
|
2377
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2378
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2396
2379
|
*/
|
|
2397
|
-
proto.org.dash.platform.dapi.v0.
|
|
2398
|
-
|
|
2380
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2381
|
+
var f = undefined;
|
|
2382
|
+
f = message.getStatus();
|
|
2383
|
+
if (f !== 0.0) {
|
|
2384
|
+
writer.writeEnum(
|
|
2385
|
+
1,
|
|
2386
|
+
f
|
|
2387
|
+
);
|
|
2388
|
+
}
|
|
2389
|
+
f = message.getProTxHash_asU8();
|
|
2390
|
+
if (f.length > 0) {
|
|
2391
|
+
writer.writeBytes(
|
|
2392
|
+
2,
|
|
2393
|
+
f
|
|
2394
|
+
);
|
|
2395
|
+
}
|
|
2396
|
+
f = message.getPosePenalty();
|
|
2397
|
+
if (f !== 0) {
|
|
2398
|
+
writer.writeUint32(
|
|
2399
|
+
3,
|
|
2400
|
+
f
|
|
2401
|
+
);
|
|
2402
|
+
}
|
|
2403
|
+
f = message.getIsSynced();
|
|
2404
|
+
if (f) {
|
|
2405
|
+
writer.writeBool(
|
|
2406
|
+
4,
|
|
2407
|
+
f
|
|
2408
|
+
);
|
|
2409
|
+
}
|
|
2410
|
+
f = message.getSyncProgress();
|
|
2411
|
+
if (f !== 0.0) {
|
|
2412
|
+
writer.writeDouble(
|
|
2413
|
+
5,
|
|
2414
|
+
f
|
|
2415
|
+
);
|
|
2416
|
+
}
|
|
2399
2417
|
};
|
|
2400
2418
|
|
|
2401
2419
|
|
|
2402
2420
|
/**
|
|
2403
|
-
*
|
|
2404
|
-
|
|
2421
|
+
* @enum {number}
|
|
2422
|
+
*/
|
|
2423
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status = {
|
|
2424
|
+
UNKNOWN: 0,
|
|
2425
|
+
WAITING_FOR_PROTX: 1,
|
|
2426
|
+
POSE_BANNED: 2,
|
|
2427
|
+
REMOVED: 3,
|
|
2428
|
+
OPERATOR_KEY_CHANGED: 4,
|
|
2429
|
+
PROTX_IP_CHANGED: 5,
|
|
2430
|
+
READY: 6,
|
|
2431
|
+
ERROR: 7
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
/**
|
|
2435
|
+
* optional Status status = 1;
|
|
2436
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status}
|
|
2405
2437
|
*/
|
|
2406
|
-
proto.org.dash.platform.dapi.v0.
|
|
2407
|
-
return /** @type{
|
|
2408
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode, 6));
|
|
2438
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getStatus = function() {
|
|
2439
|
+
return /** @type {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2409
2440
|
};
|
|
2410
2441
|
|
|
2411
2442
|
|
|
2412
2443
|
/**
|
|
2413
|
-
* @param {
|
|
2414
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2415
|
-
*/
|
|
2416
|
-
proto.org.dash.platform.dapi.v0.
|
|
2417
|
-
return jspb.Message.
|
|
2444
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} value
|
|
2445
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2446
|
+
*/
|
|
2447
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setStatus = function(value) {
|
|
2448
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2418
2449
|
};
|
|
2419
2450
|
|
|
2420
2451
|
|
|
2421
2452
|
/**
|
|
2422
|
-
*
|
|
2423
|
-
* @return {
|
|
2453
|
+
* optional bytes pro_tx_hash = 2;
|
|
2454
|
+
* @return {string}
|
|
2424
2455
|
*/
|
|
2425
|
-
proto.org.dash.platform.dapi.v0.
|
|
2426
|
-
return
|
|
2456
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash = function() {
|
|
2457
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2427
2458
|
};
|
|
2428
2459
|
|
|
2429
2460
|
|
|
2430
2461
|
/**
|
|
2431
|
-
*
|
|
2432
|
-
*
|
|
2462
|
+
* optional bytes pro_tx_hash = 2;
|
|
2463
|
+
* This is a type-conversion wrapper around `getProTxHash()`
|
|
2464
|
+
* @return {string}
|
|
2433
2465
|
*/
|
|
2434
|
-
proto.org.dash.platform.dapi.v0.
|
|
2435
|
-
return jspb.Message.
|
|
2466
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash_asB64 = function() {
|
|
2467
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2468
|
+
this.getProTxHash()));
|
|
2436
2469
|
};
|
|
2437
2470
|
|
|
2438
2471
|
|
|
2439
2472
|
/**
|
|
2440
|
-
* optional
|
|
2441
|
-
*
|
|
2473
|
+
* optional bytes pro_tx_hash = 2;
|
|
2474
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
2475
|
+
* @see http://caniuse.com/Uint8Array
|
|
2476
|
+
* This is a type-conversion wrapper around `getProTxHash()`
|
|
2477
|
+
* @return {!Uint8Array}
|
|
2442
2478
|
*/
|
|
2443
|
-
proto.org.dash.platform.dapi.v0.
|
|
2444
|
-
return /** @type{
|
|
2445
|
-
|
|
2479
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash_asU8 = function() {
|
|
2480
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2481
|
+
this.getProTxHash()));
|
|
2446
2482
|
};
|
|
2447
2483
|
|
|
2448
2484
|
|
|
2449
2485
|
/**
|
|
2450
|
-
* @param {
|
|
2451
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2452
|
-
*/
|
|
2453
|
-
proto.org.dash.platform.dapi.v0.
|
|
2454
|
-
return jspb.Message.
|
|
2486
|
+
* @param {!(string|Uint8Array)} value
|
|
2487
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2488
|
+
*/
|
|
2489
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setProTxHash = function(value) {
|
|
2490
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
2455
2491
|
};
|
|
2456
2492
|
|
|
2457
2493
|
|
|
2458
2494
|
/**
|
|
2459
|
-
*
|
|
2460
|
-
* @return {
|
|
2495
|
+
* optional uint32 pose_penalty = 3;
|
|
2496
|
+
* @return {number}
|
|
2461
2497
|
*/
|
|
2462
|
-
proto.org.dash.platform.dapi.v0.
|
|
2463
|
-
return
|
|
2498
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getPosePenalty = function() {
|
|
2499
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2464
2500
|
};
|
|
2465
2501
|
|
|
2466
2502
|
|
|
2467
2503
|
/**
|
|
2468
|
-
*
|
|
2504
|
+
* @param {number} value
|
|
2505
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2506
|
+
*/
|
|
2507
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setPosePenalty = function(value) {
|
|
2508
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
2509
|
+
};
|
|
2510
|
+
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* optional bool is_synced = 4;
|
|
2469
2514
|
* @return {boolean}
|
|
2470
2515
|
*/
|
|
2471
|
-
proto.org.dash.platform.dapi.v0.
|
|
2472
|
-
return jspb.Message.
|
|
2516
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getIsSynced = function() {
|
|
2517
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* @param {boolean} value
|
|
2523
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2524
|
+
*/
|
|
2525
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setIsSynced = function(value) {
|
|
2526
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
/**
|
|
2531
|
+
* optional double sync_progress = 5;
|
|
2532
|
+
* @return {number}
|
|
2533
|
+
*/
|
|
2534
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getSyncProgress = function() {
|
|
2535
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
2536
|
+
};
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
* @param {number} value
|
|
2541
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2542
|
+
*/
|
|
2543
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setSyncProgress = function(value) {
|
|
2544
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
2473
2545
|
};
|
|
2474
2546
|
|
|
2475
2547
|
|