@dashevo/dapi-grpc 0.25.22 → 1.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +35 -16
- package/build.rs +139 -56
- package/clients/core/v0/nodejs/CorePromiseClient.js +124 -13
- package/clients/core/v0/nodejs/core_pbjs.js +1922 -987
- package/clients/core/v0/nodejs/core_protoc.js +1291 -645
- package/clients/core/v0/rust/core_example.rs +1 -1
- package/clients/core/v0/web/CorePromiseClient.js +49 -5
- package/clients/core/v0/web/core_pb.d.ts +173 -89
- package/clients/core/v0/web/core_pb.js +1291 -645
- package/clients/core/v0/web/core_pb_service.d.ts +59 -10
- package/clients/core/v0/web/core_pb_service.js +134 -6
- package/clients/platform/v0/nodejs/PlatformPromiseClient.js +208 -14
- package/clients/platform/v0/nodejs/platform_pbjs.js +22951 -9938
- package/clients/platform/v0/nodejs/platform_protoc.js +22332 -9091
- package/clients/platform/v0/rust/platform_example.rs +1 -1
- package/clients/platform/v0/web/PlatformPromiseClient.js +64 -8
- package/clients/platform/v0/web/platform_pb.d.ts +2057 -302
- package/clients/platform/v0/web/platform_pb.js +22332 -9091
- package/clients/platform/v0/web/platform_pb_service.d.ts +187 -35
- package/clients/platform/v0/web/platform_pb_service.js +355 -35
- package/package.json +2 -2
- package/protos/core/v0/core.proto +45 -23
- package/protos/platform/v0/platform.proto +429 -50
- package/src/lib.rs +26 -2
- package/src/mock/serde_mockable.rs +105 -0
- package/src/mock.rs +130 -0
- package/test/unit/clients/core/v0/nodejs/CorePromiseClient.spec.js +27 -6
- package/test/unit/clients/platform/v0/nodejs/PlatformPromiseClient.spec.js +55 -1
- package/test/unit/getCoreDefinition.spec.js +5 -2
- package/src/core/proto/org.dash.platform.dapi.v0.rs +0 -666
- package/src/platform/proto/org.dash.platform.dapi.v0.rs +0 -2481
|
@@ -23,24 +23,29 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRes
|
|
|
23
23
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BloomFilter', null, { proto });
|
|
24
24
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionRequest', null, { proto });
|
|
25
25
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastTransactionResponse', null, { proto });
|
|
26
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest', null, { proto });
|
|
27
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse', null, { proto });
|
|
26
28
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest', null, { proto });
|
|
27
29
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockRequest.BlockCase', null, { proto });
|
|
28
30
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockResponse', null, { proto });
|
|
31
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest', null, { proto });
|
|
32
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse', null, { proto });
|
|
33
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain', null, { proto });
|
|
34
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network', null, { proto });
|
|
35
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee', null, { proto });
|
|
36
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status', null, { proto });
|
|
37
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time', null, { proto });
|
|
38
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version', null, { proto });
|
|
29
39
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetEstimatedTransactionFeeRequest', null, { proto });
|
|
30
40
|
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 });
|
|
41
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest', null, { proto });
|
|
42
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse', null, { proto });
|
|
43
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status', null, { proto });
|
|
41
44
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionRequest', null, { proto });
|
|
42
45
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetTransactionResponse', null, { proto });
|
|
43
46
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.InstantSendLockMessages', null, { proto });
|
|
47
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListRequest', null, { proto });
|
|
48
|
+
goog.exportSymbol('proto.org.dash.platform.dapi.v0.MasternodeListResponse', null, { proto });
|
|
44
49
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.RawTransactions', null, { proto });
|
|
45
50
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest', null, { proto });
|
|
46
51
|
goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRequest.FromBlockCase', null, { proto });
|
|
@@ -56,16 +61,16 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.TransactionsWithProofsRespons
|
|
|
56
61
|
* @extends {jspb.Message}
|
|
57
62
|
* @constructor
|
|
58
63
|
*/
|
|
59
|
-
proto.org.dash.platform.dapi.v0.
|
|
64
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest = function(opt_data) {
|
|
60
65
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
61
66
|
};
|
|
62
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
67
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest, jspb.Message);
|
|
63
68
|
if (goog.DEBUG && !COMPILED) {
|
|
64
69
|
/**
|
|
65
70
|
* @public
|
|
66
71
|
* @override
|
|
67
72
|
*/
|
|
68
|
-
proto.org.dash.platform.dapi.v0.
|
|
73
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest';
|
|
69
74
|
}
|
|
70
75
|
/**
|
|
71
76
|
* Generated by JsPbCodeGenerator.
|
|
@@ -77,16 +82,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
77
82
|
* @extends {jspb.Message}
|
|
78
83
|
* @constructor
|
|
79
84
|
*/
|
|
80
|
-
proto.org.dash.platform.dapi.v0.
|
|
85
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse = function(opt_data) {
|
|
81
86
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
82
87
|
};
|
|
83
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
88
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse, jspb.Message);
|
|
84
89
|
if (goog.DEBUG && !COMPILED) {
|
|
85
90
|
/**
|
|
86
91
|
* @public
|
|
87
92
|
* @override
|
|
88
93
|
*/
|
|
89
|
-
proto.org.dash.platform.dapi.v0.
|
|
94
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse';
|
|
90
95
|
}
|
|
91
96
|
/**
|
|
92
97
|
* Generated by JsPbCodeGenerator.
|
|
@@ -98,16 +103,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
98
103
|
* @extends {jspb.Message}
|
|
99
104
|
* @constructor
|
|
100
105
|
*/
|
|
101
|
-
proto.org.dash.platform.dapi.v0.
|
|
106
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version = function(opt_data) {
|
|
102
107
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
103
108
|
};
|
|
104
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
109
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version, jspb.Message);
|
|
105
110
|
if (goog.DEBUG && !COMPILED) {
|
|
106
111
|
/**
|
|
107
112
|
* @public
|
|
108
113
|
* @override
|
|
109
114
|
*/
|
|
110
|
-
proto.org.dash.platform.dapi.v0.
|
|
115
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version';
|
|
111
116
|
}
|
|
112
117
|
/**
|
|
113
118
|
* Generated by JsPbCodeGenerator.
|
|
@@ -119,16 +124,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
119
124
|
* @extends {jspb.Message}
|
|
120
125
|
* @constructor
|
|
121
126
|
*/
|
|
122
|
-
proto.org.dash.platform.dapi.v0.
|
|
127
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time = function(opt_data) {
|
|
123
128
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
124
129
|
};
|
|
125
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
130
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time, jspb.Message);
|
|
126
131
|
if (goog.DEBUG && !COMPILED) {
|
|
127
132
|
/**
|
|
128
133
|
* @public
|
|
129
134
|
* @override
|
|
130
135
|
*/
|
|
131
|
-
proto.org.dash.platform.dapi.v0.
|
|
136
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time';
|
|
132
137
|
}
|
|
133
138
|
/**
|
|
134
139
|
* Generated by JsPbCodeGenerator.
|
|
@@ -140,16 +145,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
140
145
|
* @extends {jspb.Message}
|
|
141
146
|
* @constructor
|
|
142
147
|
*/
|
|
143
|
-
proto.org.dash.platform.dapi.v0.
|
|
148
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain = function(opt_data) {
|
|
144
149
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
145
150
|
};
|
|
146
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
151
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain, jspb.Message);
|
|
147
152
|
if (goog.DEBUG && !COMPILED) {
|
|
148
153
|
/**
|
|
149
154
|
* @public
|
|
150
155
|
* @override
|
|
151
156
|
*/
|
|
152
|
-
proto.org.dash.platform.dapi.v0.
|
|
157
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain';
|
|
153
158
|
}
|
|
154
159
|
/**
|
|
155
160
|
* Generated by JsPbCodeGenerator.
|
|
@@ -161,16 +166,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
161
166
|
* @extends {jspb.Message}
|
|
162
167
|
* @constructor
|
|
163
168
|
*/
|
|
164
|
-
proto.org.dash.platform.dapi.v0.
|
|
169
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee = function(opt_data) {
|
|
165
170
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
166
171
|
};
|
|
167
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
172
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee, jspb.Message);
|
|
168
173
|
if (goog.DEBUG && !COMPILED) {
|
|
169
174
|
/**
|
|
170
175
|
* @public
|
|
171
176
|
* @override
|
|
172
177
|
*/
|
|
173
|
-
proto.org.dash.platform.dapi.v0.
|
|
178
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee';
|
|
174
179
|
}
|
|
175
180
|
/**
|
|
176
181
|
* Generated by JsPbCodeGenerator.
|
|
@@ -182,16 +187,16 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
182
187
|
* @extends {jspb.Message}
|
|
183
188
|
* @constructor
|
|
184
189
|
*/
|
|
185
|
-
proto.org.dash.platform.dapi.v0.
|
|
190
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network = function(opt_data) {
|
|
186
191
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
187
192
|
};
|
|
188
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
193
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network, jspb.Message);
|
|
189
194
|
if (goog.DEBUG && !COMPILED) {
|
|
190
195
|
/**
|
|
191
196
|
* @public
|
|
192
197
|
* @override
|
|
193
198
|
*/
|
|
194
|
-
proto.org.dash.platform.dapi.v0.
|
|
199
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network';
|
|
195
200
|
}
|
|
196
201
|
/**
|
|
197
202
|
* Generated by JsPbCodeGenerator.
|
|
@@ -203,16 +208,37 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
203
208
|
* @extends {jspb.Message}
|
|
204
209
|
* @constructor
|
|
205
210
|
*/
|
|
206
|
-
proto.org.dash.platform.dapi.v0.
|
|
211
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest = function(opt_data) {
|
|
207
212
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
208
213
|
};
|
|
209
|
-
goog.inherits(proto.org.dash.platform.dapi.v0.
|
|
214
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest, jspb.Message);
|
|
210
215
|
if (goog.DEBUG && !COMPILED) {
|
|
211
216
|
/**
|
|
212
217
|
* @public
|
|
213
218
|
* @override
|
|
214
219
|
*/
|
|
215
|
-
proto.org.dash.platform.dapi.v0.
|
|
220
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest';
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Generated by JsPbCodeGenerator.
|
|
224
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
225
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
226
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
227
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
228
|
+
* valid.
|
|
229
|
+
* @extends {jspb.Message}
|
|
230
|
+
* @constructor
|
|
231
|
+
*/
|
|
232
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse = function(opt_data) {
|
|
233
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
234
|
+
};
|
|
235
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse, jspb.Message);
|
|
236
|
+
if (goog.DEBUG && !COMPILED) {
|
|
237
|
+
/**
|
|
238
|
+
* @public
|
|
239
|
+
* @override
|
|
240
|
+
*/
|
|
241
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse';
|
|
216
242
|
}
|
|
217
243
|
/**
|
|
218
244
|
* Generated by JsPbCodeGenerator.
|
|
@@ -256,6 +282,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
256
282
|
*/
|
|
257
283
|
proto.org.dash.platform.dapi.v0.GetBlockResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBlockResponse';
|
|
258
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Generated by JsPbCodeGenerator.
|
|
287
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
288
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
289
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
290
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
291
|
+
* valid.
|
|
292
|
+
* @extends {jspb.Message}
|
|
293
|
+
* @constructor
|
|
294
|
+
*/
|
|
295
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest = function(opt_data) {
|
|
296
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
297
|
+
};
|
|
298
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest, jspb.Message);
|
|
299
|
+
if (goog.DEBUG && !COMPILED) {
|
|
300
|
+
/**
|
|
301
|
+
* @public
|
|
302
|
+
* @override
|
|
303
|
+
*/
|
|
304
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest';
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Generated by JsPbCodeGenerator.
|
|
308
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
309
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
310
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
311
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
312
|
+
* valid.
|
|
313
|
+
* @extends {jspb.Message}
|
|
314
|
+
* @constructor
|
|
315
|
+
*/
|
|
316
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse = function(opt_data) {
|
|
317
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
318
|
+
};
|
|
319
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse, jspb.Message);
|
|
320
|
+
if (goog.DEBUG && !COMPILED) {
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
* @override
|
|
324
|
+
*/
|
|
325
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse';
|
|
326
|
+
}
|
|
259
327
|
/**
|
|
260
328
|
* Generated by JsPbCodeGenerator.
|
|
261
329
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -550,6 +618,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
550
618
|
*/
|
|
551
619
|
proto.org.dash.platform.dapi.v0.InstantSendLockMessages.displayName = 'proto.org.dash.platform.dapi.v0.InstantSendLockMessages';
|
|
552
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* Generated by JsPbCodeGenerator.
|
|
623
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
624
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
625
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
626
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
627
|
+
* valid.
|
|
628
|
+
* @extends {jspb.Message}
|
|
629
|
+
* @constructor
|
|
630
|
+
*/
|
|
631
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest = function(opt_data) {
|
|
632
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
633
|
+
};
|
|
634
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.MasternodeListRequest, jspb.Message);
|
|
635
|
+
if (goog.DEBUG && !COMPILED) {
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @override
|
|
639
|
+
*/
|
|
640
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.displayName = 'proto.org.dash.platform.dapi.v0.MasternodeListRequest';
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Generated by JsPbCodeGenerator.
|
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
648
|
+
* valid.
|
|
649
|
+
* @extends {jspb.Message}
|
|
650
|
+
* @constructor
|
|
651
|
+
*/
|
|
652
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse = function(opt_data) {
|
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
654
|
+
};
|
|
655
|
+
goog.inherits(proto.org.dash.platform.dapi.v0.MasternodeListResponse, jspb.Message);
|
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @override
|
|
660
|
+
*/
|
|
661
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.displayName = 'proto.org.dash.platform.dapi.v0.MasternodeListResponse';
|
|
662
|
+
}
|
|
553
663
|
|
|
554
664
|
|
|
555
665
|
|
|
@@ -566,8 +676,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
566
676
|
* http://goto/soy-param-migration
|
|
567
677
|
* @return {!Object}
|
|
568
678
|
*/
|
|
569
|
-
proto.org.dash.platform.dapi.v0.
|
|
570
|
-
return proto.org.dash.platform.dapi.v0.
|
|
679
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
680
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.toObject(opt_includeInstance, this);
|
|
571
681
|
};
|
|
572
682
|
|
|
573
683
|
|
|
@@ -576,11 +686,11 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.toObject = function(o
|
|
|
576
686
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
577
687
|
* the JSPB instance for transitional soy proto support:
|
|
578
688
|
* http://goto/soy-param-migration
|
|
579
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
689
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} msg The msg instance to transform.
|
|
580
690
|
* @return {!Object}
|
|
581
691
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
582
692
|
*/
|
|
583
|
-
proto.org.dash.platform.dapi.v0.
|
|
693
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.toObject = function(includeInstance, msg) {
|
|
584
694
|
var f, obj = {
|
|
585
695
|
|
|
586
696
|
};
|
|
@@ -596,23 +706,23 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.toObject = function(includeInst
|
|
|
596
706
|
/**
|
|
597
707
|
* Deserializes binary data (in protobuf wire format).
|
|
598
708
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
599
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
709
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest}
|
|
600
710
|
*/
|
|
601
|
-
proto.org.dash.platform.dapi.v0.
|
|
711
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinary = function(bytes) {
|
|
602
712
|
var reader = new jspb.BinaryReader(bytes);
|
|
603
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
604
|
-
return proto.org.dash.platform.dapi.v0.
|
|
713
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest;
|
|
714
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
605
715
|
};
|
|
606
716
|
|
|
607
717
|
|
|
608
718
|
/**
|
|
609
719
|
* Deserializes binary data (in protobuf wire format) from the
|
|
610
720
|
* given reader into the given message object.
|
|
611
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
721
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} msg The message object to deserialize into.
|
|
612
722
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
613
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
723
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest}
|
|
614
724
|
*/
|
|
615
|
-
proto.org.dash.platform.dapi.v0.
|
|
725
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
616
726
|
while (reader.nextField()) {
|
|
617
727
|
if (reader.isEndGroup()) {
|
|
618
728
|
break;
|
|
@@ -632,9 +742,9 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.deserializeBinaryFromReader = f
|
|
|
632
742
|
* Serializes the message to binary data (in protobuf wire format).
|
|
633
743
|
* @return {!Uint8Array}
|
|
634
744
|
*/
|
|
635
|
-
proto.org.dash.platform.dapi.v0.
|
|
745
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.prototype.serializeBinary = function() {
|
|
636
746
|
var writer = new jspb.BinaryWriter();
|
|
637
|
-
proto.org.dash.platform.dapi.v0.
|
|
747
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.serializeBinaryToWriter(this, writer);
|
|
638
748
|
return writer.getResultBuffer();
|
|
639
749
|
};
|
|
640
750
|
|
|
@@ -642,11 +752,11 @@ proto.org.dash.platform.dapi.v0.GetStatusRequest.prototype.serializeBinary = fun
|
|
|
642
752
|
/**
|
|
643
753
|
* Serializes the given message to binary data (in protobuf wire
|
|
644
754
|
* format), writing to the given BinaryWriter.
|
|
645
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
755
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest} message
|
|
646
756
|
* @param {!jspb.BinaryWriter} writer
|
|
647
757
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
648
758
|
*/
|
|
649
|
-
proto.org.dash.platform.dapi.v0.
|
|
759
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
650
760
|
var f = undefined;
|
|
651
761
|
};
|
|
652
762
|
|
|
@@ -667,8 +777,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
667
777
|
* http://goto/soy-param-migration
|
|
668
778
|
* @return {!Object}
|
|
669
779
|
*/
|
|
670
|
-
proto.org.dash.platform.dapi.v0.
|
|
671
|
-
return proto.org.dash.platform.dapi.v0.
|
|
780
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
781
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.toObject(opt_includeInstance, this);
|
|
672
782
|
};
|
|
673
783
|
|
|
674
784
|
|
|
@@ -677,19 +787,18 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.toObject = function(
|
|
|
677
787
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
678
788
|
* the JSPB instance for transitional soy proto support:
|
|
679
789
|
* http://goto/soy-param-migration
|
|
680
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
790
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} msg The msg instance to transform.
|
|
681
791
|
* @return {!Object}
|
|
682
792
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
683
793
|
*/
|
|
684
|
-
proto.org.dash.platform.dapi.v0.
|
|
794
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.toObject = function(includeInstance, msg) {
|
|
685
795
|
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.
|
|
796
|
+
version: (f = msg.getVersion()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject(includeInstance, f),
|
|
797
|
+
time: (f = msg.getTime()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject(includeInstance, f),
|
|
688
798
|
status: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
689
799
|
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)
|
|
800
|
+
chain: (f = msg.getChain()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject(includeInstance, f),
|
|
801
|
+
network: (f = msg.getNetwork()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject(includeInstance, f)
|
|
693
802
|
};
|
|
694
803
|
|
|
695
804
|
if (includeInstance) {
|
|
@@ -703,23 +812,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.toObject = function(includeIns
|
|
|
703
812
|
/**
|
|
704
813
|
* Deserializes binary data (in protobuf wire format).
|
|
705
814
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
706
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
815
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse}
|
|
707
816
|
*/
|
|
708
|
-
proto.org.dash.platform.dapi.v0.
|
|
817
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinary = function(bytes) {
|
|
709
818
|
var reader = new jspb.BinaryReader(bytes);
|
|
710
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
711
|
-
return proto.org.dash.platform.dapi.v0.
|
|
819
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse;
|
|
820
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
712
821
|
};
|
|
713
822
|
|
|
714
823
|
|
|
715
824
|
/**
|
|
716
825
|
* Deserializes binary data (in protobuf wire format) from the
|
|
717
826
|
* given reader into the given message object.
|
|
718
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
827
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} msg The message object to deserialize into.
|
|
719
828
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
720
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
829
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse}
|
|
721
830
|
*/
|
|
722
|
-
proto.org.dash.platform.dapi.v0.
|
|
831
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
723
832
|
while (reader.nextField()) {
|
|
724
833
|
if (reader.isEndGroup()) {
|
|
725
834
|
break;
|
|
@@ -727,17 +836,17 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
727
836
|
var field = reader.getFieldNumber();
|
|
728
837
|
switch (field) {
|
|
729
838
|
case 1:
|
|
730
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
731
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
839
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version;
|
|
840
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader);
|
|
732
841
|
msg.setVersion(value);
|
|
733
842
|
break;
|
|
734
843
|
case 2:
|
|
735
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
736
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
844
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time;
|
|
845
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader);
|
|
737
846
|
msg.setTime(value);
|
|
738
847
|
break;
|
|
739
848
|
case 3:
|
|
740
|
-
var value = /** @type {!proto.org.dash.platform.dapi.v0.
|
|
849
|
+
var value = /** @type {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} */ (reader.readEnum());
|
|
741
850
|
msg.setStatus(value);
|
|
742
851
|
break;
|
|
743
852
|
case 4:
|
|
@@ -745,18 +854,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
745
854
|
msg.setSyncProgress(value);
|
|
746
855
|
break;
|
|
747
856
|
case 5:
|
|
748
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
749
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
857
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain;
|
|
858
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader);
|
|
750
859
|
msg.setChain(value);
|
|
751
860
|
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
861
|
case 7:
|
|
758
|
-
var value = new proto.org.dash.platform.dapi.v0.
|
|
759
|
-
reader.readMessage(value,proto.org.dash.platform.dapi.v0.
|
|
862
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network;
|
|
863
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader);
|
|
760
864
|
msg.setNetwork(value);
|
|
761
865
|
break;
|
|
762
866
|
default:
|
|
@@ -772,9 +876,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.deserializeBinaryFromReader =
|
|
|
772
876
|
* Serializes the message to binary data (in protobuf wire format).
|
|
773
877
|
* @return {!Uint8Array}
|
|
774
878
|
*/
|
|
775
|
-
proto.org.dash.platform.dapi.v0.
|
|
879
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.serializeBinary = function() {
|
|
776
880
|
var writer = new jspb.BinaryWriter();
|
|
777
|
-
proto.org.dash.platform.dapi.v0.
|
|
881
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.serializeBinaryToWriter(this, writer);
|
|
778
882
|
return writer.getResultBuffer();
|
|
779
883
|
};
|
|
780
884
|
|
|
@@ -782,18 +886,18 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.serializeBinary = fu
|
|
|
782
886
|
/**
|
|
783
887
|
* Serializes the given message to binary data (in protobuf wire
|
|
784
888
|
* format), writing to the given BinaryWriter.
|
|
785
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
889
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} message
|
|
786
890
|
* @param {!jspb.BinaryWriter} writer
|
|
787
891
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
788
892
|
*/
|
|
789
|
-
proto.org.dash.platform.dapi.v0.
|
|
893
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
790
894
|
var f = undefined;
|
|
791
895
|
f = message.getVersion();
|
|
792
896
|
if (f != null) {
|
|
793
897
|
writer.writeMessage(
|
|
794
898
|
1,
|
|
795
899
|
f,
|
|
796
|
-
proto.org.dash.platform.dapi.v0.
|
|
900
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter
|
|
797
901
|
);
|
|
798
902
|
}
|
|
799
903
|
f = message.getTime();
|
|
@@ -801,7 +905,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
801
905
|
writer.writeMessage(
|
|
802
906
|
2,
|
|
803
907
|
f,
|
|
804
|
-
proto.org.dash.platform.dapi.v0.
|
|
908
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter
|
|
805
909
|
);
|
|
806
910
|
}
|
|
807
911
|
f = message.getStatus();
|
|
@@ -823,15 +927,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
823
927
|
writer.writeMessage(
|
|
824
928
|
5,
|
|
825
929
|
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
|
|
930
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter
|
|
835
931
|
);
|
|
836
932
|
}
|
|
837
933
|
f = message.getNetwork();
|
|
@@ -839,7 +935,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
839
935
|
writer.writeMessage(
|
|
840
936
|
7,
|
|
841
937
|
f,
|
|
842
|
-
proto.org.dash.platform.dapi.v0.
|
|
938
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter
|
|
843
939
|
);
|
|
844
940
|
}
|
|
845
941
|
};
|
|
@@ -848,7 +944,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.serializeBinaryToWriter = func
|
|
|
848
944
|
/**
|
|
849
945
|
* @enum {number}
|
|
850
946
|
*/
|
|
851
|
-
proto.org.dash.platform.dapi.v0.
|
|
947
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status = {
|
|
852
948
|
NOT_STARTED: 0,
|
|
853
949
|
SYNCING: 1,
|
|
854
950
|
READY: 2,
|
|
@@ -871,8 +967,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
871
967
|
* http://goto/soy-param-migration
|
|
872
968
|
* @return {!Object}
|
|
873
969
|
*/
|
|
874
|
-
proto.org.dash.platform.dapi.v0.
|
|
875
|
-
return proto.org.dash.platform.dapi.v0.
|
|
970
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.toObject = function(opt_includeInstance) {
|
|
971
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject(opt_includeInstance, this);
|
|
876
972
|
};
|
|
877
973
|
|
|
878
974
|
|
|
@@ -881,11 +977,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.toObject = f
|
|
|
881
977
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
882
978
|
* the JSPB instance for transitional soy proto support:
|
|
883
979
|
* http://goto/soy-param-migration
|
|
884
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
980
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} msg The msg instance to transform.
|
|
885
981
|
* @return {!Object}
|
|
886
982
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
887
983
|
*/
|
|
888
|
-
proto.org.dash.platform.dapi.v0.
|
|
984
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.toObject = function(includeInstance, msg) {
|
|
889
985
|
var f, obj = {
|
|
890
986
|
protocol: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
891
987
|
software: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -903,23 +999,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.toObject = function(in
|
|
|
903
999
|
/**
|
|
904
1000
|
* Deserializes binary data (in protobuf wire format).
|
|
905
1001
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
906
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1002
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
907
1003
|
*/
|
|
908
|
-
proto.org.dash.platform.dapi.v0.
|
|
1004
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinary = function(bytes) {
|
|
909
1005
|
var reader = new jspb.BinaryReader(bytes);
|
|
910
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
911
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1006
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version;
|
|
1007
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader(msg, reader);
|
|
912
1008
|
};
|
|
913
1009
|
|
|
914
1010
|
|
|
915
1011
|
/**
|
|
916
1012
|
* Deserializes binary data (in protobuf wire format) from the
|
|
917
1013
|
* given reader into the given message object.
|
|
918
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1014
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} msg The message object to deserialize into.
|
|
919
1015
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
920
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1016
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
921
1017
|
*/
|
|
922
|
-
proto.org.dash.platform.dapi.v0.
|
|
1018
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.deserializeBinaryFromReader = function(msg, reader) {
|
|
923
1019
|
while (reader.nextField()) {
|
|
924
1020
|
if (reader.isEndGroup()) {
|
|
925
1021
|
break;
|
|
@@ -951,9 +1047,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.deserializeBinaryFromR
|
|
|
951
1047
|
* Serializes the message to binary data (in protobuf wire format).
|
|
952
1048
|
* @return {!Uint8Array}
|
|
953
1049
|
*/
|
|
954
|
-
proto.org.dash.platform.dapi.v0.
|
|
1050
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.serializeBinary = function() {
|
|
955
1051
|
var writer = new jspb.BinaryWriter();
|
|
956
|
-
proto.org.dash.platform.dapi.v0.
|
|
1052
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter(this, writer);
|
|
957
1053
|
return writer.getResultBuffer();
|
|
958
1054
|
};
|
|
959
1055
|
|
|
@@ -961,11 +1057,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.serializeBin
|
|
|
961
1057
|
/**
|
|
962
1058
|
* Serializes the given message to binary data (in protobuf wire
|
|
963
1059
|
* format), writing to the given BinaryWriter.
|
|
964
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1060
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} message
|
|
965
1061
|
* @param {!jspb.BinaryWriter} writer
|
|
966
1062
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
967
1063
|
*/
|
|
968
|
-
proto.org.dash.platform.dapi.v0.
|
|
1064
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.serializeBinaryToWriter = function(message, writer) {
|
|
969
1065
|
var f = undefined;
|
|
970
1066
|
f = message.getProtocol();
|
|
971
1067
|
if (f !== 0) {
|
|
@@ -995,16 +1091,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.serializeBinaryToWrite
|
|
|
995
1091
|
* optional uint32 protocol = 1;
|
|
996
1092
|
* @return {number}
|
|
997
1093
|
*/
|
|
998
|
-
proto.org.dash.platform.dapi.v0.
|
|
1094
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getProtocol = function() {
|
|
999
1095
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1000
1096
|
};
|
|
1001
1097
|
|
|
1002
1098
|
|
|
1003
1099
|
/**
|
|
1004
1100
|
* @param {number} value
|
|
1005
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1101
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1006
1102
|
*/
|
|
1007
|
-
proto.org.dash.platform.dapi.v0.
|
|
1103
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setProtocol = function(value) {
|
|
1008
1104
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1009
1105
|
};
|
|
1010
1106
|
|
|
@@ -1013,16 +1109,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.setProtocol
|
|
|
1013
1109
|
* optional uint32 software = 2;
|
|
1014
1110
|
* @return {number}
|
|
1015
1111
|
*/
|
|
1016
|
-
proto.org.dash.platform.dapi.v0.
|
|
1112
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getSoftware = function() {
|
|
1017
1113
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1018
1114
|
};
|
|
1019
1115
|
|
|
1020
1116
|
|
|
1021
1117
|
/**
|
|
1022
1118
|
* @param {number} value
|
|
1023
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1119
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1024
1120
|
*/
|
|
1025
|
-
proto.org.dash.platform.dapi.v0.
|
|
1121
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setSoftware = function(value) {
|
|
1026
1122
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1027
1123
|
};
|
|
1028
1124
|
|
|
@@ -1031,16 +1127,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Version.prototype.setSoftware
|
|
|
1031
1127
|
* optional string agent = 3;
|
|
1032
1128
|
* @return {string}
|
|
1033
1129
|
*/
|
|
1034
|
-
proto.org.dash.platform.dapi.v0.
|
|
1130
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.getAgent = function() {
|
|
1035
1131
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1036
1132
|
};
|
|
1037
1133
|
|
|
1038
1134
|
|
|
1039
1135
|
/**
|
|
1040
1136
|
* @param {string} value
|
|
1041
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1137
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} returns this
|
|
1042
1138
|
*/
|
|
1043
|
-
proto.org.dash.platform.dapi.v0.
|
|
1139
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version.prototype.setAgent = function(value) {
|
|
1044
1140
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1045
1141
|
};
|
|
1046
1142
|
|
|
@@ -1061,8 +1157,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1061
1157
|
* http://goto/soy-param-migration
|
|
1062
1158
|
* @return {!Object}
|
|
1063
1159
|
*/
|
|
1064
|
-
proto.org.dash.platform.dapi.v0.
|
|
1065
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1160
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.toObject = function(opt_includeInstance) {
|
|
1161
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject(opt_includeInstance, this);
|
|
1066
1162
|
};
|
|
1067
1163
|
|
|
1068
1164
|
|
|
@@ -1071,11 +1167,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.toObject = func
|
|
|
1071
1167
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1072
1168
|
* the JSPB instance for transitional soy proto support:
|
|
1073
1169
|
* http://goto/soy-param-migration
|
|
1074
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1170
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} msg The msg instance to transform.
|
|
1075
1171
|
* @return {!Object}
|
|
1076
1172
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1077
1173
|
*/
|
|
1078
|
-
proto.org.dash.platform.dapi.v0.
|
|
1174
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.toObject = function(includeInstance, msg) {
|
|
1079
1175
|
var f, obj = {
|
|
1080
1176
|
now: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1081
1177
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -1093,23 +1189,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.toObject = function(inclu
|
|
|
1093
1189
|
/**
|
|
1094
1190
|
* Deserializes binary data (in protobuf wire format).
|
|
1095
1191
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1096
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1192
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
1097
1193
|
*/
|
|
1098
|
-
proto.org.dash.platform.dapi.v0.
|
|
1194
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinary = function(bytes) {
|
|
1099
1195
|
var reader = new jspb.BinaryReader(bytes);
|
|
1100
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1101
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1196
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time;
|
|
1197
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader(msg, reader);
|
|
1102
1198
|
};
|
|
1103
1199
|
|
|
1104
1200
|
|
|
1105
1201
|
/**
|
|
1106
1202
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1107
1203
|
* given reader into the given message object.
|
|
1108
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1204
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} msg The message object to deserialize into.
|
|
1109
1205
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1110
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1206
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
1111
1207
|
*/
|
|
1112
|
-
proto.org.dash.platform.dapi.v0.
|
|
1208
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.deserializeBinaryFromReader = function(msg, reader) {
|
|
1113
1209
|
while (reader.nextField()) {
|
|
1114
1210
|
if (reader.isEndGroup()) {
|
|
1115
1211
|
break;
|
|
@@ -1141,9 +1237,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.deserializeBinaryFromRead
|
|
|
1141
1237
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1142
1238
|
* @return {!Uint8Array}
|
|
1143
1239
|
*/
|
|
1144
|
-
proto.org.dash.platform.dapi.v0.
|
|
1240
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.serializeBinary = function() {
|
|
1145
1241
|
var writer = new jspb.BinaryWriter();
|
|
1146
|
-
proto.org.dash.platform.dapi.v0.
|
|
1242
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter(this, writer);
|
|
1147
1243
|
return writer.getResultBuffer();
|
|
1148
1244
|
};
|
|
1149
1245
|
|
|
@@ -1151,11 +1247,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.serializeBinary
|
|
|
1151
1247
|
/**
|
|
1152
1248
|
* Serializes the given message to binary data (in protobuf wire
|
|
1153
1249
|
* format), writing to the given BinaryWriter.
|
|
1154
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1250
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} message
|
|
1155
1251
|
* @param {!jspb.BinaryWriter} writer
|
|
1156
1252
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1157
1253
|
*/
|
|
1158
|
-
proto.org.dash.platform.dapi.v0.
|
|
1254
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.serializeBinaryToWriter = function(message, writer) {
|
|
1159
1255
|
var f = undefined;
|
|
1160
1256
|
f = message.getNow();
|
|
1161
1257
|
if (f !== 0) {
|
|
@@ -1185,16 +1281,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.serializeBinaryToWriter =
|
|
|
1185
1281
|
* optional uint32 now = 1;
|
|
1186
1282
|
* @return {number}
|
|
1187
1283
|
*/
|
|
1188
|
-
proto.org.dash.platform.dapi.v0.
|
|
1284
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getNow = function() {
|
|
1189
1285
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1190
1286
|
};
|
|
1191
1287
|
|
|
1192
1288
|
|
|
1193
1289
|
/**
|
|
1194
1290
|
* @param {number} value
|
|
1195
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1291
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1196
1292
|
*/
|
|
1197
|
-
proto.org.dash.platform.dapi.v0.
|
|
1293
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setNow = function(value) {
|
|
1198
1294
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1199
1295
|
};
|
|
1200
1296
|
|
|
@@ -1203,16 +1299,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.setNow = functi
|
|
|
1203
1299
|
* optional int32 offset = 2;
|
|
1204
1300
|
* @return {number}
|
|
1205
1301
|
*/
|
|
1206
|
-
proto.org.dash.platform.dapi.v0.
|
|
1302
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getOffset = function() {
|
|
1207
1303
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1208
1304
|
};
|
|
1209
1305
|
|
|
1210
1306
|
|
|
1211
1307
|
/**
|
|
1212
1308
|
* @param {number} value
|
|
1213
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1309
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1214
1310
|
*/
|
|
1215
|
-
proto.org.dash.platform.dapi.v0.
|
|
1311
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setOffset = function(value) {
|
|
1216
1312
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1217
1313
|
};
|
|
1218
1314
|
|
|
@@ -1221,16 +1317,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Time.prototype.setOffset = fun
|
|
|
1221
1317
|
* optional uint32 median = 3;
|
|
1222
1318
|
* @return {number}
|
|
1223
1319
|
*/
|
|
1224
|
-
proto.org.dash.platform.dapi.v0.
|
|
1320
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.getMedian = function() {
|
|
1225
1321
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1226
1322
|
};
|
|
1227
1323
|
|
|
1228
1324
|
|
|
1229
1325
|
/**
|
|
1230
1326
|
* @param {number} value
|
|
1231
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1327
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} returns this
|
|
1232
1328
|
*/
|
|
1233
|
-
proto.org.dash.platform.dapi.v0.
|
|
1329
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time.prototype.setMedian = function(value) {
|
|
1234
1330
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1235
1331
|
};
|
|
1236
1332
|
|
|
@@ -1251,8 +1347,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1251
1347
|
* http://goto/soy-param-migration
|
|
1252
1348
|
* @return {!Object}
|
|
1253
1349
|
*/
|
|
1254
|
-
proto.org.dash.platform.dapi.v0.
|
|
1255
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1350
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.toObject = function(opt_includeInstance) {
|
|
1351
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject(opt_includeInstance, this);
|
|
1256
1352
|
};
|
|
1257
1353
|
|
|
1258
1354
|
|
|
@@ -1261,11 +1357,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.toObject = fun
|
|
|
1261
1357
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1262
1358
|
* the JSPB instance for transitional soy proto support:
|
|
1263
1359
|
* http://goto/soy-param-migration
|
|
1264
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1360
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} msg The msg instance to transform.
|
|
1265
1361
|
* @return {!Object}
|
|
1266
1362
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1267
1363
|
*/
|
|
1268
|
-
proto.org.dash.platform.dapi.v0.
|
|
1364
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.toObject = function(includeInstance, msg) {
|
|
1269
1365
|
var f, obj = {
|
|
1270
1366
|
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1271
1367
|
headersCount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -1288,23 +1384,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.toObject = function(incl
|
|
|
1288
1384
|
/**
|
|
1289
1385
|
* Deserializes binary data (in protobuf wire format).
|
|
1290
1386
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1291
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1387
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
1292
1388
|
*/
|
|
1293
|
-
proto.org.dash.platform.dapi.v0.
|
|
1389
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinary = function(bytes) {
|
|
1294
1390
|
var reader = new jspb.BinaryReader(bytes);
|
|
1295
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1296
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1391
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain;
|
|
1392
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader(msg, reader);
|
|
1297
1393
|
};
|
|
1298
1394
|
|
|
1299
1395
|
|
|
1300
1396
|
/**
|
|
1301
1397
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1302
1398
|
* given reader into the given message object.
|
|
1303
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1399
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} msg The message object to deserialize into.
|
|
1304
1400
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1305
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1401
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
1306
1402
|
*/
|
|
1307
|
-
proto.org.dash.platform.dapi.v0.
|
|
1403
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.deserializeBinaryFromReader = function(msg, reader) {
|
|
1308
1404
|
while (reader.nextField()) {
|
|
1309
1405
|
if (reader.isEndGroup()) {
|
|
1310
1406
|
break;
|
|
@@ -1356,9 +1452,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.deserializeBinaryFromRea
|
|
|
1356
1452
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1357
1453
|
* @return {!Uint8Array}
|
|
1358
1454
|
*/
|
|
1359
|
-
proto.org.dash.platform.dapi.v0.
|
|
1455
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.serializeBinary = function() {
|
|
1360
1456
|
var writer = new jspb.BinaryWriter();
|
|
1361
|
-
proto.org.dash.platform.dapi.v0.
|
|
1457
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter(this, writer);
|
|
1362
1458
|
return writer.getResultBuffer();
|
|
1363
1459
|
};
|
|
1364
1460
|
|
|
@@ -1366,11 +1462,11 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.serializeBinar
|
|
|
1366
1462
|
/**
|
|
1367
1463
|
* Serializes the given message to binary data (in protobuf wire
|
|
1368
1464
|
* format), writing to the given BinaryWriter.
|
|
1369
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1465
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} message
|
|
1370
1466
|
* @param {!jspb.BinaryWriter} writer
|
|
1371
1467
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1372
1468
|
*/
|
|
1373
|
-
proto.org.dash.platform.dapi.v0.
|
|
1469
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.serializeBinaryToWriter = function(message, writer) {
|
|
1374
1470
|
var f = undefined;
|
|
1375
1471
|
f = message.getName();
|
|
1376
1472
|
if (f.length > 0) {
|
|
@@ -1435,16 +1531,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.serializeBinaryToWriter
|
|
|
1435
1531
|
* optional string name = 1;
|
|
1436
1532
|
* @return {string}
|
|
1437
1533
|
*/
|
|
1438
|
-
proto.org.dash.platform.dapi.v0.
|
|
1534
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getName = function() {
|
|
1439
1535
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1440
1536
|
};
|
|
1441
1537
|
|
|
1442
1538
|
|
|
1443
1539
|
/**
|
|
1444
1540
|
* @param {string} value
|
|
1445
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1541
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1446
1542
|
*/
|
|
1447
|
-
proto.org.dash.platform.dapi.v0.
|
|
1543
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setName = function(value) {
|
|
1448
1544
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1449
1545
|
};
|
|
1450
1546
|
|
|
@@ -1453,16 +1549,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setName = func
|
|
|
1453
1549
|
* optional uint32 headers_count = 2;
|
|
1454
1550
|
* @return {number}
|
|
1455
1551
|
*/
|
|
1456
|
-
proto.org.dash.platform.dapi.v0.
|
|
1552
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getHeadersCount = function() {
|
|
1457
1553
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1458
1554
|
};
|
|
1459
1555
|
|
|
1460
1556
|
|
|
1461
1557
|
/**
|
|
1462
1558
|
* @param {number} value
|
|
1463
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1559
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1464
1560
|
*/
|
|
1465
|
-
proto.org.dash.platform.dapi.v0.
|
|
1561
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setHeadersCount = function(value) {
|
|
1466
1562
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
1467
1563
|
};
|
|
1468
1564
|
|
|
@@ -1471,16 +1567,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setHeadersCoun
|
|
|
1471
1567
|
* optional uint32 blocks_count = 3;
|
|
1472
1568
|
* @return {number}
|
|
1473
1569
|
*/
|
|
1474
|
-
proto.org.dash.platform.dapi.v0.
|
|
1570
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBlocksCount = function() {
|
|
1475
1571
|
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1476
1572
|
};
|
|
1477
1573
|
|
|
1478
1574
|
|
|
1479
1575
|
/**
|
|
1480
1576
|
* @param {number} value
|
|
1481
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1577
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1482
1578
|
*/
|
|
1483
|
-
proto.org.dash.platform.dapi.v0.
|
|
1579
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setBlocksCount = function(value) {
|
|
1484
1580
|
return jspb.Message.setProto3IntField(this, 3, value);
|
|
1485
1581
|
};
|
|
1486
1582
|
|
|
@@ -1489,7 +1585,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setBlocksCount
|
|
|
1489
1585
|
* optional bytes best_block_hash = 4;
|
|
1490
1586
|
* @return {string}
|
|
1491
1587
|
*/
|
|
1492
|
-
proto.org.dash.platform.dapi.v0.
|
|
1588
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash = function() {
|
|
1493
1589
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1494
1590
|
};
|
|
1495
1591
|
|
|
@@ -1499,7 +1595,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1499
1595
|
* This is a type-conversion wrapper around `getBestBlockHash()`
|
|
1500
1596
|
* @return {string}
|
|
1501
1597
|
*/
|
|
1502
|
-
proto.org.dash.platform.dapi.v0.
|
|
1598
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash_asB64 = function() {
|
|
1503
1599
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1504
1600
|
this.getBestBlockHash()));
|
|
1505
1601
|
};
|
|
@@ -1512,7 +1608,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1512
1608
|
* This is a type-conversion wrapper around `getBestBlockHash()`
|
|
1513
1609
|
* @return {!Uint8Array}
|
|
1514
1610
|
*/
|
|
1515
|
-
proto.org.dash.platform.dapi.v0.
|
|
1611
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getBestBlockHash_asU8 = function() {
|
|
1516
1612
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1517
1613
|
this.getBestBlockHash()));
|
|
1518
1614
|
};
|
|
@@ -1520,9 +1616,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getBestBlockHa
|
|
|
1520
1616
|
|
|
1521
1617
|
/**
|
|
1522
1618
|
* @param {!(string|Uint8Array)} value
|
|
1523
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1619
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1524
1620
|
*/
|
|
1525
|
-
proto.org.dash.platform.dapi.v0.
|
|
1621
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setBestBlockHash = function(value) {
|
|
1526
1622
|
return jspb.Message.setProto3BytesField(this, 4, value);
|
|
1527
1623
|
};
|
|
1528
1624
|
|
|
@@ -1531,16 +1627,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setBestBlockHa
|
|
|
1531
1627
|
* optional double difficulty = 5;
|
|
1532
1628
|
* @return {number}
|
|
1533
1629
|
*/
|
|
1534
|
-
proto.org.dash.platform.dapi.v0.
|
|
1630
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getDifficulty = function() {
|
|
1535
1631
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
1536
1632
|
};
|
|
1537
1633
|
|
|
1538
1634
|
|
|
1539
1635
|
/**
|
|
1540
1636
|
* @param {number} value
|
|
1541
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1637
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1542
1638
|
*/
|
|
1543
|
-
proto.org.dash.platform.dapi.v0.
|
|
1639
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setDifficulty = function(value) {
|
|
1544
1640
|
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
1545
1641
|
};
|
|
1546
1642
|
|
|
@@ -1549,7 +1645,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setDifficulty
|
|
|
1549
1645
|
* optional bytes chain_work = 6;
|
|
1550
1646
|
* @return {string}
|
|
1551
1647
|
*/
|
|
1552
|
-
proto.org.dash.platform.dapi.v0.
|
|
1648
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork = function() {
|
|
1553
1649
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1554
1650
|
};
|
|
1555
1651
|
|
|
@@ -1559,7 +1655,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork =
|
|
|
1559
1655
|
* This is a type-conversion wrapper around `getChainWork()`
|
|
1560
1656
|
* @return {string}
|
|
1561
1657
|
*/
|
|
1562
|
-
proto.org.dash.platform.dapi.v0.
|
|
1658
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork_asB64 = function() {
|
|
1563
1659
|
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
1564
1660
|
this.getChainWork()));
|
|
1565
1661
|
};
|
|
@@ -1572,7 +1668,7 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork_a
|
|
|
1572
1668
|
* This is a type-conversion wrapper around `getChainWork()`
|
|
1573
1669
|
* @return {!Uint8Array}
|
|
1574
1670
|
*/
|
|
1575
|
-
proto.org.dash.platform.dapi.v0.
|
|
1671
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getChainWork_asU8 = function() {
|
|
1576
1672
|
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
1577
1673
|
this.getChainWork()));
|
|
1578
1674
|
};
|
|
@@ -1580,9 +1676,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.getChainWork_a
|
|
|
1580
1676
|
|
|
1581
1677
|
/**
|
|
1582
1678
|
* @param {!(string|Uint8Array)} value
|
|
1583
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1679
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1584
1680
|
*/
|
|
1585
|
-
proto.org.dash.platform.dapi.v0.
|
|
1681
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setChainWork = function(value) {
|
|
1586
1682
|
return jspb.Message.setProto3BytesField(this, 6, value);
|
|
1587
1683
|
};
|
|
1588
1684
|
|
|
@@ -1591,16 +1687,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setChainWork =
|
|
|
1591
1687
|
* optional bool is_synced = 7;
|
|
1592
1688
|
* @return {boolean}
|
|
1593
1689
|
*/
|
|
1594
|
-
proto.org.dash.platform.dapi.v0.
|
|
1690
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getIsSynced = function() {
|
|
1595
1691
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
1596
1692
|
};
|
|
1597
1693
|
|
|
1598
1694
|
|
|
1599
1695
|
/**
|
|
1600
1696
|
* @param {boolean} value
|
|
1601
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1697
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1602
1698
|
*/
|
|
1603
|
-
proto.org.dash.platform.dapi.v0.
|
|
1699
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setIsSynced = function(value) {
|
|
1604
1700
|
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
1605
1701
|
};
|
|
1606
1702
|
|
|
@@ -1609,16 +1705,16 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Chain.prototype.setIsSynced =
|
|
|
1609
1705
|
* optional double sync_progress = 8;
|
|
1610
1706
|
* @return {number}
|
|
1611
1707
|
*/
|
|
1612
|
-
proto.org.dash.platform.dapi.v0.
|
|
1708
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.getSyncProgress = function() {
|
|
1613
1709
|
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
1614
1710
|
};
|
|
1615
1711
|
|
|
1616
1712
|
|
|
1617
1713
|
/**
|
|
1618
1714
|
* @param {number} value
|
|
1619
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1715
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} returns this
|
|
1620
1716
|
*/
|
|
1621
|
-
proto.org.dash.platform.dapi.v0.
|
|
1717
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain.prototype.setSyncProgress = function(value) {
|
|
1622
1718
|
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
1623
1719
|
};
|
|
1624
1720
|
|
|
@@ -1639,8 +1735,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1639
1735
|
* http://goto/soy-param-migration
|
|
1640
1736
|
* @return {!Object}
|
|
1641
1737
|
*/
|
|
1642
|
-
proto.org.dash.platform.dapi.v0.
|
|
1643
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1738
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.toObject = function(opt_includeInstance) {
|
|
1739
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject(opt_includeInstance, this);
|
|
1644
1740
|
};
|
|
1645
1741
|
|
|
1646
1742
|
|
|
@@ -1649,17 +1745,14 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.toObject
|
|
|
1649
1745
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1650
1746
|
* the JSPB instance for transitional soy proto support:
|
|
1651
1747
|
* http://goto/soy-param-migration
|
|
1652
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1748
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} msg The msg instance to transform.
|
|
1653
1749
|
* @return {!Object}
|
|
1654
1750
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1655
1751
|
*/
|
|
1656
|
-
proto.org.dash.platform.dapi.v0.
|
|
1752
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject = function(includeInstance, msg) {
|
|
1657
1753
|
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)
|
|
1754
|
+
relay: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
1755
|
+
incremental: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
1663
1756
|
};
|
|
1664
1757
|
|
|
1665
1758
|
if (includeInstance) {
|
|
@@ -1673,23 +1766,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.toObject = function
|
|
|
1673
1766
|
/**
|
|
1674
1767
|
* Deserializes binary data (in protobuf wire format).
|
|
1675
1768
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1676
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1769
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
1677
1770
|
*/
|
|
1678
|
-
proto.org.dash.platform.dapi.v0.
|
|
1771
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinary = function(bytes) {
|
|
1679
1772
|
var reader = new jspb.BinaryReader(bytes);
|
|
1680
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1681
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1773
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee;
|
|
1774
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader(msg, reader);
|
|
1682
1775
|
};
|
|
1683
1776
|
|
|
1684
1777
|
|
|
1685
1778
|
/**
|
|
1686
1779
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1687
1780
|
* given reader into the given message object.
|
|
1688
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1781
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} msg The message object to deserialize into.
|
|
1689
1782
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1690
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1783
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
1691
1784
|
*/
|
|
1692
|
-
proto.org.dash.platform.dapi.v0.
|
|
1785
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader = function(msg, reader) {
|
|
1693
1786
|
while (reader.nextField()) {
|
|
1694
1787
|
if (reader.isEndGroup()) {
|
|
1695
1788
|
break;
|
|
@@ -1697,24 +1790,12 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.deserializeBinaryFr
|
|
|
1697
1790
|
var field = reader.getFieldNumber();
|
|
1698
1791
|
switch (field) {
|
|
1699
1792
|
case 1:
|
|
1700
|
-
var value = /** @type {
|
|
1701
|
-
msg.
|
|
1793
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
1794
|
+
msg.setRelay(value);
|
|
1702
1795
|
break;
|
|
1703
1796
|
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
1797
|
var value = /** @type {number} */ (reader.readDouble());
|
|
1717
|
-
msg.
|
|
1798
|
+
msg.setIncremental(value);
|
|
1718
1799
|
break;
|
|
1719
1800
|
default:
|
|
1720
1801
|
reader.skipField();
|
|
@@ -1729,9 +1810,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.deserializeBinaryFr
|
|
|
1729
1810
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1730
1811
|
* @return {!Uint8Array}
|
|
1731
1812
|
*/
|
|
1732
|
-
proto.org.dash.platform.dapi.v0.
|
|
1813
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.serializeBinary = function() {
|
|
1733
1814
|
var writer = new jspb.BinaryWriter();
|
|
1734
|
-
proto.org.dash.platform.dapi.v0.
|
|
1815
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter(this, writer);
|
|
1735
1816
|
return writer.getResultBuffer();
|
|
1736
1817
|
};
|
|
1737
1818
|
|
|
@@ -1739,44 +1820,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.prototype.serialize
|
|
|
1739
1820
|
/**
|
|
1740
1821
|
* Serializes the given message to binary data (in protobuf wire
|
|
1741
1822
|
* format), writing to the given BinaryWriter.
|
|
1742
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1823
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} message
|
|
1743
1824
|
* @param {!jspb.BinaryWriter} writer
|
|
1744
1825
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1745
1826
|
*/
|
|
1746
|
-
proto.org.dash.platform.dapi.v0.
|
|
1827
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter = function(message, writer) {
|
|
1747
1828
|
var f = undefined;
|
|
1748
|
-
f = message.
|
|
1829
|
+
f = message.getRelay();
|
|
1749
1830
|
if (f !== 0.0) {
|
|
1750
|
-
writer.
|
|
1831
|
+
writer.writeDouble(
|
|
1751
1832
|
1,
|
|
1752
1833
|
f
|
|
1753
1834
|
);
|
|
1754
1835
|
}
|
|
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();
|
|
1836
|
+
f = message.getIncremental();
|
|
1777
1837
|
if (f !== 0.0) {
|
|
1778
1838
|
writer.writeDouble(
|
|
1779
|
-
|
|
1839
|
+
2,
|
|
1780
1840
|
f
|
|
1781
1841
|
);
|
|
1782
1842
|
}
|
|
@@ -1784,130 +1844,38 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode.serializeBinaryToWr
|
|
|
1784
1844
|
|
|
1785
1845
|
|
|
1786
1846
|
/**
|
|
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;
|
|
1847
|
+
* optional double relay = 1;
|
|
1862
1848
|
* @return {number}
|
|
1863
1849
|
*/
|
|
1864
|
-
proto.org.dash.platform.dapi.v0.
|
|
1865
|
-
return /** @type {number} */ (jspb.Message.
|
|
1850
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.getRelay = function() {
|
|
1851
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
1866
1852
|
};
|
|
1867
1853
|
|
|
1868
1854
|
|
|
1869
1855
|
/**
|
|
1870
1856
|
* @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
|
|
1857
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} returns this
|
|
1890
1858
|
*/
|
|
1891
|
-
proto.org.dash.platform.dapi.v0.
|
|
1892
|
-
return jspb.Message.
|
|
1859
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.setRelay = function(value) {
|
|
1860
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
1893
1861
|
};
|
|
1894
1862
|
|
|
1895
1863
|
|
|
1896
1864
|
/**
|
|
1897
|
-
* optional double
|
|
1865
|
+
* optional double incremental = 2;
|
|
1898
1866
|
* @return {number}
|
|
1899
1867
|
*/
|
|
1900
|
-
proto.org.dash.platform.dapi.v0.
|
|
1901
|
-
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this,
|
|
1868
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.getIncremental = function() {
|
|
1869
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
1902
1870
|
};
|
|
1903
1871
|
|
|
1904
1872
|
|
|
1905
1873
|
/**
|
|
1906
1874
|
* @param {number} value
|
|
1907
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1875
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} returns this
|
|
1908
1876
|
*/
|
|
1909
|
-
proto.org.dash.platform.dapi.v0.
|
|
1910
|
-
return jspb.Message.setProto3FloatField(this,
|
|
1877
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.prototype.setIncremental = function(value) {
|
|
1878
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
1911
1879
|
};
|
|
1912
1880
|
|
|
1913
1881
|
|
|
@@ -1927,8 +1895,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
1927
1895
|
* http://goto/soy-param-migration
|
|
1928
1896
|
* @return {!Object}
|
|
1929
1897
|
*/
|
|
1930
|
-
proto.org.dash.platform.dapi.v0.
|
|
1931
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1898
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.toObject = function(opt_includeInstance) {
|
|
1899
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject(opt_includeInstance, this);
|
|
1932
1900
|
};
|
|
1933
1901
|
|
|
1934
1902
|
|
|
@@ -1937,14 +1905,14 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.prototype.toObject
|
|
|
1937
1905
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1938
1906
|
* the JSPB instance for transitional soy proto support:
|
|
1939
1907
|
* http://goto/soy-param-migration
|
|
1940
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1908
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} msg The msg instance to transform.
|
|
1941
1909
|
* @return {!Object}
|
|
1942
1910
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1943
1911
|
*/
|
|
1944
|
-
proto.org.dash.platform.dapi.v0.
|
|
1912
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.toObject = function(includeInstance, msg) {
|
|
1945
1913
|
var f, obj = {
|
|
1946
|
-
|
|
1947
|
-
|
|
1914
|
+
peersCount: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
1915
|
+
fee: (f = msg.getFee()) && proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.toObject(includeInstance, f)
|
|
1948
1916
|
};
|
|
1949
1917
|
|
|
1950
1918
|
if (includeInstance) {
|
|
@@ -1958,23 +1926,23 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.toObject = function
|
|
|
1958
1926
|
/**
|
|
1959
1927
|
* Deserializes binary data (in protobuf wire format).
|
|
1960
1928
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1961
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1929
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
1962
1930
|
*/
|
|
1963
|
-
proto.org.dash.platform.dapi.v0.
|
|
1931
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinary = function(bytes) {
|
|
1964
1932
|
var reader = new jspb.BinaryReader(bytes);
|
|
1965
|
-
var msg = new proto.org.dash.platform.dapi.v0.
|
|
1966
|
-
return proto.org.dash.platform.dapi.v0.
|
|
1933
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network;
|
|
1934
|
+
return proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader(msg, reader);
|
|
1967
1935
|
};
|
|
1968
1936
|
|
|
1969
1937
|
|
|
1970
1938
|
/**
|
|
1971
1939
|
* Deserializes binary data (in protobuf wire format) from the
|
|
1972
1940
|
* given reader into the given message object.
|
|
1973
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1941
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} msg The message object to deserialize into.
|
|
1974
1942
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1975
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
1943
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
1976
1944
|
*/
|
|
1977
|
-
proto.org.dash.platform.dapi.v0.
|
|
1945
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.deserializeBinaryFromReader = function(msg, reader) {
|
|
1978
1946
|
while (reader.nextField()) {
|
|
1979
1947
|
if (reader.isEndGroup()) {
|
|
1980
1948
|
break;
|
|
@@ -1982,12 +1950,13 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.deserializeBinaryFr
|
|
|
1982
1950
|
var field = reader.getFieldNumber();
|
|
1983
1951
|
switch (field) {
|
|
1984
1952
|
case 1:
|
|
1985
|
-
var value = /** @type {number} */ (reader.
|
|
1986
|
-
msg.
|
|
1953
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1954
|
+
msg.setPeersCount(value);
|
|
1987
1955
|
break;
|
|
1988
1956
|
case 2:
|
|
1989
|
-
var value =
|
|
1990
|
-
|
|
1957
|
+
var value = new proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee;
|
|
1958
|
+
reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.deserializeBinaryFromReader);
|
|
1959
|
+
msg.setFee(value);
|
|
1991
1960
|
break;
|
|
1992
1961
|
default:
|
|
1993
1962
|
reader.skipField();
|
|
@@ -2002,9 +1971,9 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.deserializeBinaryFr
|
|
|
2002
1971
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2003
1972
|
* @return {!Uint8Array}
|
|
2004
1973
|
*/
|
|
2005
|
-
proto.org.dash.platform.dapi.v0.
|
|
1974
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.serializeBinary = function() {
|
|
2006
1975
|
var writer = new jspb.BinaryWriter();
|
|
2007
|
-
proto.org.dash.platform.dapi.v0.
|
|
1976
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter(this, writer);
|
|
2008
1977
|
return writer.getResultBuffer();
|
|
2009
1978
|
};
|
|
2010
1979
|
|
|
@@ -2012,234 +1981,220 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.prototype.serialize
|
|
|
2012
1981
|
/**
|
|
2013
1982
|
* Serializes the given message to binary data (in protobuf wire
|
|
2014
1983
|
* format), writing to the given BinaryWriter.
|
|
2015
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
1984
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} message
|
|
2016
1985
|
* @param {!jspb.BinaryWriter} writer
|
|
2017
1986
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2018
1987
|
*/
|
|
2019
|
-
proto.org.dash.platform.dapi.v0.
|
|
1988
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.serializeBinaryToWriter = function(message, writer) {
|
|
2020
1989
|
var f = undefined;
|
|
2021
|
-
f = message.
|
|
2022
|
-
if (f !== 0
|
|
2023
|
-
writer.
|
|
1990
|
+
f = message.getPeersCount();
|
|
1991
|
+
if (f !== 0) {
|
|
1992
|
+
writer.writeUint32(
|
|
2024
1993
|
1,
|
|
2025
1994
|
f
|
|
2026
1995
|
);
|
|
2027
1996
|
}
|
|
2028
|
-
f = message.
|
|
2029
|
-
if (f
|
|
2030
|
-
writer.
|
|
1997
|
+
f = message.getFee();
|
|
1998
|
+
if (f != null) {
|
|
1999
|
+
writer.writeMessage(
|
|
2031
2000
|
2,
|
|
2032
|
-
f
|
|
2001
|
+
f,
|
|
2002
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee.serializeBinaryToWriter
|
|
2033
2003
|
);
|
|
2034
2004
|
}
|
|
2035
2005
|
};
|
|
2036
2006
|
|
|
2037
2007
|
|
|
2038
2008
|
/**
|
|
2039
|
-
* optional
|
|
2009
|
+
* optional uint32 peers_count = 1;
|
|
2040
2010
|
* @return {number}
|
|
2041
2011
|
*/
|
|
2042
|
-
proto.org.dash.platform.dapi.v0.
|
|
2043
|
-
return /** @type {number} */ (jspb.Message.
|
|
2012
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.getPeersCount = function() {
|
|
2013
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2044
2014
|
};
|
|
2045
2015
|
|
|
2046
2016
|
|
|
2047
2017
|
/**
|
|
2048
2018
|
* @param {number} value
|
|
2049
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2019
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
2050
2020
|
*/
|
|
2051
|
-
proto.org.dash.platform.dapi.v0.
|
|
2052
|
-
return jspb.Message.
|
|
2021
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.setPeersCount = function(value) {
|
|
2022
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2053
2023
|
};
|
|
2054
2024
|
|
|
2055
2025
|
|
|
2056
2026
|
/**
|
|
2057
|
-
* optional
|
|
2058
|
-
* @return {
|
|
2027
|
+
* optional NetworkFee fee = 2;
|
|
2028
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee}
|
|
2059
2029
|
*/
|
|
2060
|
-
proto.org.dash.platform.dapi.v0.
|
|
2061
|
-
return /** @type
|
|
2030
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.getFee = function() {
|
|
2031
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee} */ (
|
|
2032
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee, 2));
|
|
2062
2033
|
};
|
|
2063
2034
|
|
|
2064
2035
|
|
|
2065
2036
|
/**
|
|
2066
|
-
* @param {
|
|
2067
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2037
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.NetworkFee|undefined} value
|
|
2038
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
2039
|
+
*/
|
|
2040
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.setFee = function(value) {
|
|
2041
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2042
|
+
};
|
|
2043
|
+
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* Clears the message field making it undefined.
|
|
2047
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} returns this
|
|
2068
2048
|
*/
|
|
2069
|
-
proto.org.dash.platform.dapi.v0.
|
|
2070
|
-
return
|
|
2049
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.clearFee = function() {
|
|
2050
|
+
return this.setFee(undefined);
|
|
2071
2051
|
};
|
|
2072
2052
|
|
|
2073
2053
|
|
|
2054
|
+
/**
|
|
2055
|
+
* Returns whether this field is set.
|
|
2056
|
+
* @return {boolean}
|
|
2057
|
+
*/
|
|
2058
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network.prototype.hasFee = function() {
|
|
2059
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2060
|
+
};
|
|
2074
2061
|
|
|
2075
2062
|
|
|
2063
|
+
/**
|
|
2064
|
+
* optional Version version = 1;
|
|
2065
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version}
|
|
2066
|
+
*/
|
|
2067
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getVersion = function() {
|
|
2068
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version} */ (
|
|
2069
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version, 1));
|
|
2070
|
+
};
|
|
2071
|
+
|
|
2076
2072
|
|
|
2077
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2078
2073
|
/**
|
|
2079
|
-
*
|
|
2080
|
-
*
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
*
|
|
2074
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Version|undefined} value
|
|
2075
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2076
|
+
*/
|
|
2077
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setVersion = function(value) {
|
|
2078
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2079
|
+
};
|
|
2080
|
+
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* Clears the message field making it undefined.
|
|
2084
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2089
2085
|
*/
|
|
2090
|
-
proto.org.dash.platform.dapi.v0.
|
|
2091
|
-
return
|
|
2086
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearVersion = function() {
|
|
2087
|
+
return this.setVersion(undefined);
|
|
2092
2088
|
};
|
|
2093
2089
|
|
|
2094
2090
|
|
|
2095
2091
|
/**
|
|
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
|
|
2092
|
+
* Returns whether this field is set.
|
|
2093
|
+
* @return {boolean}
|
|
2103
2094
|
*/
|
|
2104
|
-
proto.org.dash.platform.dapi.v0.
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
fee: (f = msg.getFee()) && proto.org.dash.platform.dapi.v0.GetStatusResponse.NetworkFee.toObject(includeInstance, f)
|
|
2108
|
-
};
|
|
2095
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasVersion = function() {
|
|
2096
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2097
|
+
};
|
|
2109
2098
|
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* optional Time time = 2;
|
|
2102
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time}
|
|
2103
|
+
*/
|
|
2104
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getTime = function() {
|
|
2105
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time} */ (
|
|
2106
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time, 2));
|
|
2114
2107
|
};
|
|
2115
|
-
}
|
|
2116
2108
|
|
|
2117
2109
|
|
|
2118
2110
|
/**
|
|
2119
|
-
*
|
|
2120
|
-
* @
|
|
2121
|
-
|
|
2111
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Time|undefined} value
|
|
2112
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2113
|
+
*/
|
|
2114
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setTime = function(value) {
|
|
2115
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* Clears the message field making it undefined.
|
|
2121
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2122
2122
|
*/
|
|
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);
|
|
2123
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearTime = function() {
|
|
2124
|
+
return this.setTime(undefined);
|
|
2127
2125
|
};
|
|
2128
2126
|
|
|
2129
2127
|
|
|
2130
2128
|
/**
|
|
2131
|
-
*
|
|
2132
|
-
*
|
|
2133
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Network} msg The message object to deserialize into.
|
|
2134
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2135
|
-
* @return {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Network}
|
|
2129
|
+
* Returns whether this field is set.
|
|
2130
|
+
* @return {boolean}
|
|
2136
2131
|
*/
|
|
2137
|
-
proto.org.dash.platform.dapi.v0.
|
|
2138
|
-
|
|
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;
|
|
2132
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasTime = function() {
|
|
2133
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2159
2134
|
};
|
|
2160
2135
|
|
|
2161
2136
|
|
|
2162
2137
|
/**
|
|
2163
|
-
*
|
|
2164
|
-
* @return {!
|
|
2138
|
+
* optional Status status = 3;
|
|
2139
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status}
|
|
2165
2140
|
*/
|
|
2166
|
-
proto.org.dash.platform.dapi.v0.
|
|
2167
|
-
|
|
2168
|
-
proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.serializeBinaryToWriter(this, writer);
|
|
2169
|
-
return writer.getResultBuffer();
|
|
2141
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getStatus = function() {
|
|
2142
|
+
return /** @type {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2170
2143
|
};
|
|
2171
2144
|
|
|
2172
2145
|
|
|
2173
2146
|
/**
|
|
2174
|
-
*
|
|
2175
|
-
*
|
|
2176
|
-
* @param {!proto.org.dash.platform.dapi.v0.GetStatusResponse.Network} message
|
|
2177
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2178
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2147
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Status} value
|
|
2148
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2179
2149
|
*/
|
|
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
|
-
}
|
|
2150
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setStatus = function(value) {
|
|
2151
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
2197
2152
|
};
|
|
2198
2153
|
|
|
2199
2154
|
|
|
2200
2155
|
/**
|
|
2201
|
-
* optional
|
|
2156
|
+
* optional double sync_progress = 4;
|
|
2202
2157
|
* @return {number}
|
|
2203
2158
|
*/
|
|
2204
|
-
proto.org.dash.platform.dapi.v0.
|
|
2205
|
-
return /** @type {number} */ (jspb.Message.
|
|
2159
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getSyncProgress = function() {
|
|
2160
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
|
2206
2161
|
};
|
|
2207
2162
|
|
|
2208
2163
|
|
|
2209
2164
|
/**
|
|
2210
2165
|
* @param {number} value
|
|
2211
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2166
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2212
2167
|
*/
|
|
2213
|
-
proto.org.dash.platform.dapi.v0.
|
|
2214
|
-
return jspb.Message.
|
|
2168
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setSyncProgress = function(value) {
|
|
2169
|
+
return jspb.Message.setProto3FloatField(this, 4, value);
|
|
2215
2170
|
};
|
|
2216
2171
|
|
|
2217
2172
|
|
|
2218
2173
|
/**
|
|
2219
|
-
* optional
|
|
2220
|
-
* @return {?proto.org.dash.platform.dapi.v0.
|
|
2174
|
+
* optional Chain chain = 5;
|
|
2175
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain}
|
|
2221
2176
|
*/
|
|
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.
|
|
2177
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getChain = function() {
|
|
2178
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain} */ (
|
|
2179
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain, 5));
|
|
2225
2180
|
};
|
|
2226
2181
|
|
|
2227
2182
|
|
|
2228
2183
|
/**
|
|
2229
|
-
* @param {?proto.org.dash.platform.dapi.v0.
|
|
2230
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2184
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Chain|undefined} value
|
|
2185
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2231
2186
|
*/
|
|
2232
|
-
proto.org.dash.platform.dapi.v0.
|
|
2233
|
-
return jspb.Message.setWrapperField(this,
|
|
2187
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setChain = function(value) {
|
|
2188
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
2234
2189
|
};
|
|
2235
2190
|
|
|
2236
2191
|
|
|
2237
2192
|
/**
|
|
2238
2193
|
* Clears the message field making it undefined.
|
|
2239
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2194
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2240
2195
|
*/
|
|
2241
|
-
proto.org.dash.platform.dapi.v0.
|
|
2242
|
-
return this.
|
|
2196
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearChain = function() {
|
|
2197
|
+
return this.setChain(undefined);
|
|
2243
2198
|
};
|
|
2244
2199
|
|
|
2245
2200
|
|
|
@@ -2247,36 +2202,36 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.Network.prototype.clearFee = f
|
|
|
2247
2202
|
* Returns whether this field is set.
|
|
2248
2203
|
* @return {boolean}
|
|
2249
2204
|
*/
|
|
2250
|
-
proto.org.dash.platform.dapi.v0.
|
|
2251
|
-
return jspb.Message.getField(this,
|
|
2205
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasChain = function() {
|
|
2206
|
+
return jspb.Message.getField(this, 5) != null;
|
|
2252
2207
|
};
|
|
2253
2208
|
|
|
2254
2209
|
|
|
2255
2210
|
/**
|
|
2256
|
-
* optional
|
|
2257
|
-
* @return {?proto.org.dash.platform.dapi.v0.
|
|
2211
|
+
* optional Network network = 7;
|
|
2212
|
+
* @return {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network}
|
|
2258
2213
|
*/
|
|
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.
|
|
2214
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.getNetwork = function() {
|
|
2215
|
+
return /** @type{?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network} */ (
|
|
2216
|
+
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network, 7));
|
|
2262
2217
|
};
|
|
2263
2218
|
|
|
2264
2219
|
|
|
2265
2220
|
/**
|
|
2266
|
-
* @param {?proto.org.dash.platform.dapi.v0.
|
|
2267
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2221
|
+
* @param {?proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.Network|undefined} value
|
|
2222
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2268
2223
|
*/
|
|
2269
|
-
proto.org.dash.platform.dapi.v0.
|
|
2270
|
-
return jspb.Message.setWrapperField(this,
|
|
2224
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.setNetwork = function(value) {
|
|
2225
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
2271
2226
|
};
|
|
2272
2227
|
|
|
2273
2228
|
|
|
2274
2229
|
/**
|
|
2275
2230
|
* Clears the message field making it undefined.
|
|
2276
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2231
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse} returns this
|
|
2277
2232
|
*/
|
|
2278
|
-
proto.org.dash.platform.dapi.v0.
|
|
2279
|
-
return this.
|
|
2233
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.clearNetwork = function() {
|
|
2234
|
+
return this.setNetwork(undefined);
|
|
2280
2235
|
};
|
|
2281
2236
|
|
|
2282
2237
|
|
|
@@ -2284,192 +2239,397 @@ proto.org.dash.platform.dapi.v0.GetStatusResponse.prototype.clearVersion = funct
|
|
|
2284
2239
|
* Returns whether this field is set.
|
|
2285
2240
|
* @return {boolean}
|
|
2286
2241
|
*/
|
|
2287
|
-
proto.org.dash.platform.dapi.v0.
|
|
2288
|
-
return jspb.Message.getField(this,
|
|
2242
|
+
proto.org.dash.platform.dapi.v0.GetBlockchainStatusResponse.prototype.hasNetwork = function() {
|
|
2243
|
+
return jspb.Message.getField(this, 7) != null;
|
|
2289
2244
|
};
|
|
2290
2245
|
|
|
2291
2246
|
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
|
|
2250
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2292
2251
|
/**
|
|
2293
|
-
*
|
|
2294
|
-
*
|
|
2252
|
+
* Creates an object representation of this proto.
|
|
2253
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2254
|
+
* Optional fields that are not set will be set to undefined.
|
|
2255
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2256
|
+
* For the list of reserved names please see:
|
|
2257
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2258
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2259
|
+
* JSPB instance for transitional soy proto support:
|
|
2260
|
+
* http://goto/soy-param-migration
|
|
2261
|
+
* @return {!Object}
|
|
2295
2262
|
*/
|
|
2296
|
-
proto.org.dash.platform.dapi.v0.
|
|
2297
|
-
return
|
|
2298
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.Time, 2));
|
|
2263
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2264
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.toObject(opt_includeInstance, this);
|
|
2299
2265
|
};
|
|
2300
2266
|
|
|
2301
2267
|
|
|
2302
2268
|
/**
|
|
2303
|
-
* @
|
|
2304
|
-
* @
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2269
|
+
* Static version of the {@see toObject} method.
|
|
2270
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2271
|
+
* the JSPB instance for transitional soy proto support:
|
|
2272
|
+
* http://goto/soy-param-migration
|
|
2273
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} msg The msg instance to transform.
|
|
2274
|
+
* @return {!Object}
|
|
2275
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2276
|
+
*/
|
|
2277
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.toObject = function(includeInstance, msg) {
|
|
2278
|
+
var f, obj = {
|
|
2279
|
+
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
if (includeInstance) {
|
|
2283
|
+
obj.$jspbMessageInstance = msg;
|
|
2284
|
+
}
|
|
2285
|
+
return obj;
|
|
2308
2286
|
};
|
|
2287
|
+
}
|
|
2309
2288
|
|
|
2310
2289
|
|
|
2311
2290
|
/**
|
|
2312
|
-
*
|
|
2313
|
-
* @
|
|
2291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2293
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest}
|
|
2314
2294
|
*/
|
|
2315
|
-
proto.org.dash.platform.dapi.v0.
|
|
2316
|
-
|
|
2295
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinary = function(bytes) {
|
|
2296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2297
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest;
|
|
2298
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
2317
2299
|
};
|
|
2318
2300
|
|
|
2319
2301
|
|
|
2320
2302
|
/**
|
|
2321
|
-
*
|
|
2322
|
-
*
|
|
2303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2304
|
+
* given reader into the given message object.
|
|
2305
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} msg The message object to deserialize into.
|
|
2306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2307
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest}
|
|
2323
2308
|
*/
|
|
2324
|
-
proto.org.dash.platform.dapi.v0.
|
|
2325
|
-
|
|
2309
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2310
|
+
while (reader.nextField()) {
|
|
2311
|
+
if (reader.isEndGroup()) {
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2314
|
+
var field = reader.getFieldNumber();
|
|
2315
|
+
switch (field) {
|
|
2316
|
+
default:
|
|
2317
|
+
reader.skipField();
|
|
2318
|
+
break;
|
|
2319
|
+
}
|
|
2320
|
+
}
|
|
2321
|
+
return msg;
|
|
2326
2322
|
};
|
|
2327
2323
|
|
|
2328
2324
|
|
|
2329
2325
|
/**
|
|
2330
|
-
*
|
|
2331
|
-
* @return {!
|
|
2326
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2327
|
+
* @return {!Uint8Array}
|
|
2332
2328
|
*/
|
|
2333
|
-
proto.org.dash.platform.dapi.v0.
|
|
2334
|
-
|
|
2329
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.prototype.serializeBinary = function() {
|
|
2330
|
+
var writer = new jspb.BinaryWriter();
|
|
2331
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.serializeBinaryToWriter(this, writer);
|
|
2332
|
+
return writer.getResultBuffer();
|
|
2335
2333
|
};
|
|
2336
2334
|
|
|
2337
2335
|
|
|
2338
2336
|
/**
|
|
2339
|
-
*
|
|
2340
|
-
*
|
|
2337
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2338
|
+
* format), writing to the given BinaryWriter.
|
|
2339
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest} message
|
|
2340
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2341
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2341
2342
|
*/
|
|
2342
|
-
proto.org.dash.platform.dapi.v0.
|
|
2343
|
-
|
|
2343
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2344
|
+
var f = undefined;
|
|
2344
2345
|
};
|
|
2345
2346
|
|
|
2346
2347
|
|
|
2348
|
+
|
|
2349
|
+
|
|
2350
|
+
|
|
2351
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2347
2352
|
/**
|
|
2348
|
-
*
|
|
2349
|
-
*
|
|
2353
|
+
* Creates an object representation of this proto.
|
|
2354
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2355
|
+
* Optional fields that are not set will be set to undefined.
|
|
2356
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2357
|
+
* For the list of reserved names please see:
|
|
2358
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2359
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2360
|
+
* JSPB instance for transitional soy proto support:
|
|
2361
|
+
* http://goto/soy-param-migration
|
|
2362
|
+
* @return {!Object}
|
|
2350
2363
|
*/
|
|
2351
|
-
proto.org.dash.platform.dapi.v0.
|
|
2352
|
-
return
|
|
2364
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2365
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.toObject(opt_includeInstance, this);
|
|
2353
2366
|
};
|
|
2354
2367
|
|
|
2355
2368
|
|
|
2356
2369
|
/**
|
|
2357
|
-
* @
|
|
2358
|
-
* @
|
|
2370
|
+
* Static version of the {@see toObject} method.
|
|
2371
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2372
|
+
* the JSPB instance for transitional soy proto support:
|
|
2373
|
+
* http://goto/soy-param-migration
|
|
2374
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} msg The msg instance to transform.
|
|
2375
|
+
* @return {!Object}
|
|
2376
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2359
2377
|
*/
|
|
2360
|
-
proto.org.dash.platform.dapi.v0.
|
|
2361
|
-
|
|
2378
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.toObject = function(includeInstance, msg) {
|
|
2379
|
+
var f, obj = {
|
|
2380
|
+
status: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
2381
|
+
proTxHash: msg.getProTxHash_asB64(),
|
|
2382
|
+
posePenalty: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2383
|
+
isSynced: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2384
|
+
syncProgress: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
if (includeInstance) {
|
|
2388
|
+
obj.$jspbMessageInstance = msg;
|
|
2389
|
+
}
|
|
2390
|
+
return obj;
|
|
2362
2391
|
};
|
|
2392
|
+
}
|
|
2363
2393
|
|
|
2364
2394
|
|
|
2365
2395
|
/**
|
|
2366
|
-
*
|
|
2367
|
-
* @
|
|
2396
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2397
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2398
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse}
|
|
2368
2399
|
*/
|
|
2369
|
-
proto.org.dash.platform.dapi.v0.
|
|
2370
|
-
|
|
2371
|
-
|
|
2400
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinary = function(bytes) {
|
|
2401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2402
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse;
|
|
2403
|
+
return proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
2372
2404
|
};
|
|
2373
2405
|
|
|
2374
2406
|
|
|
2375
2407
|
/**
|
|
2376
|
-
*
|
|
2377
|
-
*
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2408
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2409
|
+
* given reader into the given message object.
|
|
2410
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} msg The message object to deserialize into.
|
|
2411
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2412
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse}
|
|
2413
|
+
*/
|
|
2414
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2415
|
+
while (reader.nextField()) {
|
|
2416
|
+
if (reader.isEndGroup()) {
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
var field = reader.getFieldNumber();
|
|
2420
|
+
switch (field) {
|
|
2421
|
+
case 1:
|
|
2422
|
+
var value = /** @type {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} */ (reader.readEnum());
|
|
2423
|
+
msg.setStatus(value);
|
|
2424
|
+
break;
|
|
2425
|
+
case 2:
|
|
2426
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
2427
|
+
msg.setProTxHash(value);
|
|
2428
|
+
break;
|
|
2429
|
+
case 3:
|
|
2430
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
2431
|
+
msg.setPosePenalty(value);
|
|
2432
|
+
break;
|
|
2433
|
+
case 4:
|
|
2434
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2435
|
+
msg.setIsSynced(value);
|
|
2436
|
+
break;
|
|
2437
|
+
case 5:
|
|
2438
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
2439
|
+
msg.setSyncProgress(value);
|
|
2440
|
+
break;
|
|
2441
|
+
default:
|
|
2442
|
+
reader.skipField();
|
|
2443
|
+
break;
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
return msg;
|
|
2381
2447
|
};
|
|
2382
2448
|
|
|
2383
2449
|
|
|
2384
2450
|
/**
|
|
2385
|
-
*
|
|
2386
|
-
* @return {!
|
|
2451
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2452
|
+
* @return {!Uint8Array}
|
|
2387
2453
|
*/
|
|
2388
|
-
proto.org.dash.platform.dapi.v0.
|
|
2389
|
-
|
|
2454
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.serializeBinary = function() {
|
|
2455
|
+
var writer = new jspb.BinaryWriter();
|
|
2456
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.serializeBinaryToWriter(this, writer);
|
|
2457
|
+
return writer.getResultBuffer();
|
|
2390
2458
|
};
|
|
2391
2459
|
|
|
2392
2460
|
|
|
2393
2461
|
/**
|
|
2394
|
-
*
|
|
2395
|
-
*
|
|
2462
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2463
|
+
* format), writing to the given BinaryWriter.
|
|
2464
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} message
|
|
2465
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2396
2467
|
*/
|
|
2397
|
-
proto.org.dash.platform.dapi.v0.
|
|
2398
|
-
|
|
2468
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2469
|
+
var f = undefined;
|
|
2470
|
+
f = message.getStatus();
|
|
2471
|
+
if (f !== 0.0) {
|
|
2472
|
+
writer.writeEnum(
|
|
2473
|
+
1,
|
|
2474
|
+
f
|
|
2475
|
+
);
|
|
2476
|
+
}
|
|
2477
|
+
f = message.getProTxHash_asU8();
|
|
2478
|
+
if (f.length > 0) {
|
|
2479
|
+
writer.writeBytes(
|
|
2480
|
+
2,
|
|
2481
|
+
f
|
|
2482
|
+
);
|
|
2483
|
+
}
|
|
2484
|
+
f = message.getPosePenalty();
|
|
2485
|
+
if (f !== 0) {
|
|
2486
|
+
writer.writeUint32(
|
|
2487
|
+
3,
|
|
2488
|
+
f
|
|
2489
|
+
);
|
|
2490
|
+
}
|
|
2491
|
+
f = message.getIsSynced();
|
|
2492
|
+
if (f) {
|
|
2493
|
+
writer.writeBool(
|
|
2494
|
+
4,
|
|
2495
|
+
f
|
|
2496
|
+
);
|
|
2497
|
+
}
|
|
2498
|
+
f = message.getSyncProgress();
|
|
2499
|
+
if (f !== 0.0) {
|
|
2500
|
+
writer.writeDouble(
|
|
2501
|
+
5,
|
|
2502
|
+
f
|
|
2503
|
+
);
|
|
2504
|
+
}
|
|
2505
|
+
};
|
|
2506
|
+
|
|
2507
|
+
|
|
2508
|
+
/**
|
|
2509
|
+
* @enum {number}
|
|
2510
|
+
*/
|
|
2511
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status = {
|
|
2512
|
+
UNKNOWN: 0,
|
|
2513
|
+
WAITING_FOR_PROTX: 1,
|
|
2514
|
+
POSE_BANNED: 2,
|
|
2515
|
+
REMOVED: 3,
|
|
2516
|
+
OPERATOR_KEY_CHANGED: 4,
|
|
2517
|
+
PROTX_IP_CHANGED: 5,
|
|
2518
|
+
READY: 6,
|
|
2519
|
+
ERROR: 7
|
|
2520
|
+
};
|
|
2521
|
+
|
|
2522
|
+
/**
|
|
2523
|
+
* optional Status status = 1;
|
|
2524
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status}
|
|
2525
|
+
*/
|
|
2526
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getStatus = function() {
|
|
2527
|
+
return /** @type {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2399
2528
|
};
|
|
2400
2529
|
|
|
2401
2530
|
|
|
2402
2531
|
/**
|
|
2403
|
-
*
|
|
2404
|
-
* @return {
|
|
2532
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.Status} value
|
|
2533
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2405
2534
|
*/
|
|
2406
|
-
proto.org.dash.platform.dapi.v0.
|
|
2407
|
-
return
|
|
2408
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.Masternode, 6));
|
|
2535
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setStatus = function(value) {
|
|
2536
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
2409
2537
|
};
|
|
2410
2538
|
|
|
2411
2539
|
|
|
2412
2540
|
/**
|
|
2413
|
-
*
|
|
2414
|
-
* @return {
|
|
2415
|
-
*/
|
|
2416
|
-
proto.org.dash.platform.dapi.v0.
|
|
2417
|
-
return jspb.Message.
|
|
2541
|
+
* optional bytes pro_tx_hash = 2;
|
|
2542
|
+
* @return {string}
|
|
2543
|
+
*/
|
|
2544
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash = function() {
|
|
2545
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
* optional bytes pro_tx_hash = 2;
|
|
2551
|
+
* This is a type-conversion wrapper around `getProTxHash()`
|
|
2552
|
+
* @return {string}
|
|
2553
|
+
*/
|
|
2554
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash_asB64 = function() {
|
|
2555
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2556
|
+
this.getProTxHash()));
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
|
|
2560
|
+
/**
|
|
2561
|
+
* optional bytes pro_tx_hash = 2;
|
|
2562
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
2563
|
+
* @see http://caniuse.com/Uint8Array
|
|
2564
|
+
* This is a type-conversion wrapper around `getProTxHash()`
|
|
2565
|
+
* @return {!Uint8Array}
|
|
2566
|
+
*/
|
|
2567
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getProTxHash_asU8 = function() {
|
|
2568
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2569
|
+
this.getProTxHash()));
|
|
2570
|
+
};
|
|
2571
|
+
|
|
2572
|
+
|
|
2573
|
+
/**
|
|
2574
|
+
* @param {!(string|Uint8Array)} value
|
|
2575
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2576
|
+
*/
|
|
2577
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setProTxHash = function(value) {
|
|
2578
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
2418
2579
|
};
|
|
2419
2580
|
|
|
2420
2581
|
|
|
2421
2582
|
/**
|
|
2422
|
-
*
|
|
2423
|
-
* @return {
|
|
2583
|
+
* optional uint32 pose_penalty = 3;
|
|
2584
|
+
* @return {number}
|
|
2424
2585
|
*/
|
|
2425
|
-
proto.org.dash.platform.dapi.v0.
|
|
2426
|
-
return
|
|
2586
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getPosePenalty = function() {
|
|
2587
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2427
2588
|
};
|
|
2428
2589
|
|
|
2429
2590
|
|
|
2430
2591
|
/**
|
|
2431
|
-
*
|
|
2432
|
-
* @return {
|
|
2592
|
+
* @param {number} value
|
|
2593
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2433
2594
|
*/
|
|
2434
|
-
proto.org.dash.platform.dapi.v0.
|
|
2435
|
-
return jspb.Message.
|
|
2595
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setPosePenalty = function(value) {
|
|
2596
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
2436
2597
|
};
|
|
2437
2598
|
|
|
2438
2599
|
|
|
2439
2600
|
/**
|
|
2440
|
-
* optional
|
|
2441
|
-
* @return {
|
|
2601
|
+
* optional bool is_synced = 4;
|
|
2602
|
+
* @return {boolean}
|
|
2442
2603
|
*/
|
|
2443
|
-
proto.org.dash.platform.dapi.v0.
|
|
2444
|
-
return /** @type{
|
|
2445
|
-
jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetStatusResponse.Network, 7));
|
|
2604
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getIsSynced = function() {
|
|
2605
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
2446
2606
|
};
|
|
2447
2607
|
|
|
2448
2608
|
|
|
2449
2609
|
/**
|
|
2450
|
-
* @param {
|
|
2451
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
2452
|
-
*/
|
|
2453
|
-
proto.org.dash.platform.dapi.v0.
|
|
2454
|
-
return jspb.Message.
|
|
2610
|
+
* @param {boolean} value
|
|
2611
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2612
|
+
*/
|
|
2613
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setIsSynced = function(value) {
|
|
2614
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
2455
2615
|
};
|
|
2456
2616
|
|
|
2457
2617
|
|
|
2458
2618
|
/**
|
|
2459
|
-
*
|
|
2460
|
-
* @return {
|
|
2619
|
+
* optional double sync_progress = 5;
|
|
2620
|
+
* @return {number}
|
|
2461
2621
|
*/
|
|
2462
|
-
proto.org.dash.platform.dapi.v0.
|
|
2463
|
-
return this.
|
|
2622
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.getSyncProgress = function() {
|
|
2623
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
2464
2624
|
};
|
|
2465
2625
|
|
|
2466
2626
|
|
|
2467
2627
|
/**
|
|
2468
|
-
*
|
|
2469
|
-
* @return {
|
|
2628
|
+
* @param {number} value
|
|
2629
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse} returns this
|
|
2470
2630
|
*/
|
|
2471
|
-
proto.org.dash.platform.dapi.v0.
|
|
2472
|
-
return jspb.Message.
|
|
2631
|
+
proto.org.dash.platform.dapi.v0.GetMasternodeStatusResponse.prototype.setSyncProgress = function(value) {
|
|
2632
|
+
return jspb.Message.setProto3FloatField(this, 5, value);
|
|
2473
2633
|
};
|
|
2474
2634
|
|
|
2475
2635
|
|
|
@@ -2783,7 +2943,262 @@ proto.org.dash.platform.dapi.v0.GetBlockResponse.deserializeBinaryFromReader = f
|
|
|
2783
2943
|
*/
|
|
2784
2944
|
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.serializeBinary = function() {
|
|
2785
2945
|
var writer = new jspb.BinaryWriter();
|
|
2786
|
-
proto.org.dash.platform.dapi.v0.GetBlockResponse.serializeBinaryToWriter(this, writer);
|
|
2946
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.serializeBinaryToWriter(this, writer);
|
|
2947
|
+
return writer.getResultBuffer();
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
/**
|
|
2952
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2953
|
+
* format), writing to the given BinaryWriter.
|
|
2954
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBlockResponse} message
|
|
2955
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2957
|
+
*/
|
|
2958
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2959
|
+
var f = undefined;
|
|
2960
|
+
f = message.getBlock_asU8();
|
|
2961
|
+
if (f.length > 0) {
|
|
2962
|
+
writer.writeBytes(
|
|
2963
|
+
1,
|
|
2964
|
+
f
|
|
2965
|
+
);
|
|
2966
|
+
}
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* optional bytes block = 1;
|
|
2972
|
+
* @return {string}
|
|
2973
|
+
*/
|
|
2974
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.getBlock = function() {
|
|
2975
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2976
|
+
};
|
|
2977
|
+
|
|
2978
|
+
|
|
2979
|
+
/**
|
|
2980
|
+
* optional bytes block = 1;
|
|
2981
|
+
* This is a type-conversion wrapper around `getBlock()`
|
|
2982
|
+
* @return {string}
|
|
2983
|
+
*/
|
|
2984
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.getBlock_asB64 = function() {
|
|
2985
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2986
|
+
this.getBlock()));
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
|
|
2990
|
+
/**
|
|
2991
|
+
* optional bytes block = 1;
|
|
2992
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
2993
|
+
* @see http://caniuse.com/Uint8Array
|
|
2994
|
+
* This is a type-conversion wrapper around `getBlock()`
|
|
2995
|
+
* @return {!Uint8Array}
|
|
2996
|
+
*/
|
|
2997
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.getBlock_asU8 = function() {
|
|
2998
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
2999
|
+
this.getBlock()));
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
/**
|
|
3004
|
+
* @param {!(string|Uint8Array)} value
|
|
3005
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBlockResponse} returns this
|
|
3006
|
+
*/
|
|
3007
|
+
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.setBlock = function(value) {
|
|
3008
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
3009
|
+
};
|
|
3010
|
+
|
|
3011
|
+
|
|
3012
|
+
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3016
|
+
/**
|
|
3017
|
+
* Creates an object representation of this proto.
|
|
3018
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3019
|
+
* Optional fields that are not set will be set to undefined.
|
|
3020
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3021
|
+
* For the list of reserved names please see:
|
|
3022
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3023
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3024
|
+
* JSPB instance for transitional soy proto support:
|
|
3025
|
+
* http://goto/soy-param-migration
|
|
3026
|
+
* @return {!Object}
|
|
3027
|
+
*/
|
|
3028
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3029
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.toObject(opt_includeInstance, this);
|
|
3030
|
+
};
|
|
3031
|
+
|
|
3032
|
+
|
|
3033
|
+
/**
|
|
3034
|
+
* Static version of the {@see toObject} method.
|
|
3035
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3036
|
+
* the JSPB instance for transitional soy proto support:
|
|
3037
|
+
* http://goto/soy-param-migration
|
|
3038
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} msg The msg instance to transform.
|
|
3039
|
+
* @return {!Object}
|
|
3040
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3041
|
+
*/
|
|
3042
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.toObject = function(includeInstance, msg) {
|
|
3043
|
+
var f, obj = {
|
|
3044
|
+
|
|
3045
|
+
};
|
|
3046
|
+
|
|
3047
|
+
if (includeInstance) {
|
|
3048
|
+
obj.$jspbMessageInstance = msg;
|
|
3049
|
+
}
|
|
3050
|
+
return obj;
|
|
3051
|
+
};
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
|
|
3055
|
+
/**
|
|
3056
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3057
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3058
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest}
|
|
3059
|
+
*/
|
|
3060
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinary = function(bytes) {
|
|
3061
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3062
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest;
|
|
3063
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinaryFromReader(msg, reader);
|
|
3064
|
+
};
|
|
3065
|
+
|
|
3066
|
+
|
|
3067
|
+
/**
|
|
3068
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3069
|
+
* given reader into the given message object.
|
|
3070
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} msg The message object to deserialize into.
|
|
3071
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3072
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest}
|
|
3073
|
+
*/
|
|
3074
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3075
|
+
while (reader.nextField()) {
|
|
3076
|
+
if (reader.isEndGroup()) {
|
|
3077
|
+
break;
|
|
3078
|
+
}
|
|
3079
|
+
var field = reader.getFieldNumber();
|
|
3080
|
+
switch (field) {
|
|
3081
|
+
default:
|
|
3082
|
+
reader.skipField();
|
|
3083
|
+
break;
|
|
3084
|
+
}
|
|
3085
|
+
}
|
|
3086
|
+
return msg;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3092
|
+
* @return {!Uint8Array}
|
|
3093
|
+
*/
|
|
3094
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.prototype.serializeBinary = function() {
|
|
3095
|
+
var writer = new jspb.BinaryWriter();
|
|
3096
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.serializeBinaryToWriter(this, writer);
|
|
3097
|
+
return writer.getResultBuffer();
|
|
3098
|
+
};
|
|
3099
|
+
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3103
|
+
* format), writing to the given BinaryWriter.
|
|
3104
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest} message
|
|
3105
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3106
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3107
|
+
*/
|
|
3108
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3109
|
+
var f = undefined;
|
|
3110
|
+
};
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
|
|
3115
|
+
|
|
3116
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3117
|
+
/**
|
|
3118
|
+
* Creates an object representation of this proto.
|
|
3119
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3120
|
+
* Optional fields that are not set will be set to undefined.
|
|
3121
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3122
|
+
* For the list of reserved names please see:
|
|
3123
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3124
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3125
|
+
* JSPB instance for transitional soy proto support:
|
|
3126
|
+
* http://goto/soy-param-migration
|
|
3127
|
+
* @return {!Object}
|
|
3128
|
+
*/
|
|
3129
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3130
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.toObject(opt_includeInstance, this);
|
|
3131
|
+
};
|
|
3132
|
+
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Static version of the {@see toObject} method.
|
|
3136
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3137
|
+
* the JSPB instance for transitional soy proto support:
|
|
3138
|
+
* http://goto/soy-param-migration
|
|
3139
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} msg The msg instance to transform.
|
|
3140
|
+
* @return {!Object}
|
|
3141
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3142
|
+
*/
|
|
3143
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.toObject = function(includeInstance, msg) {
|
|
3144
|
+
var f, obj = {
|
|
3145
|
+
height: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3146
|
+
};
|
|
3147
|
+
|
|
3148
|
+
if (includeInstance) {
|
|
3149
|
+
obj.$jspbMessageInstance = msg;
|
|
3150
|
+
}
|
|
3151
|
+
return obj;
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
|
|
3156
|
+
/**
|
|
3157
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3158
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3159
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse}
|
|
3160
|
+
*/
|
|
3161
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinary = function(bytes) {
|
|
3162
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3163
|
+
var msg = new proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse;
|
|
3164
|
+
return proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinaryFromReader(msg, reader);
|
|
3165
|
+
};
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
/**
|
|
3169
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3170
|
+
* given reader into the given message object.
|
|
3171
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} msg The message object to deserialize into.
|
|
3172
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3173
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse}
|
|
3174
|
+
*/
|
|
3175
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3176
|
+
while (reader.nextField()) {
|
|
3177
|
+
if (reader.isEndGroup()) {
|
|
3178
|
+
break;
|
|
3179
|
+
}
|
|
3180
|
+
var field = reader.getFieldNumber();
|
|
3181
|
+
switch (field) {
|
|
3182
|
+
case 1:
|
|
3183
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
3184
|
+
msg.setHeight(value);
|
|
3185
|
+
break;
|
|
3186
|
+
default:
|
|
3187
|
+
reader.skipField();
|
|
3188
|
+
break;
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
return msg;
|
|
3192
|
+
};
|
|
3193
|
+
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3197
|
+
* @return {!Uint8Array}
|
|
3198
|
+
*/
|
|
3199
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.serializeBinary = function() {
|
|
3200
|
+
var writer = new jspb.BinaryWriter();
|
|
3201
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.serializeBinaryToWriter(this, writer);
|
|
2787
3202
|
return writer.getResultBuffer();
|
|
2788
3203
|
};
|
|
2789
3204
|
|
|
@@ -2791,15 +3206,15 @@ proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.serializeBinary = fun
|
|
|
2791
3206
|
/**
|
|
2792
3207
|
* Serializes the given message to binary data (in protobuf wire
|
|
2793
3208
|
* format), writing to the given BinaryWriter.
|
|
2794
|
-
* @param {!proto.org.dash.platform.dapi.v0.
|
|
3209
|
+
* @param {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} message
|
|
2795
3210
|
* @param {!jspb.BinaryWriter} writer
|
|
2796
3211
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2797
3212
|
*/
|
|
2798
|
-
proto.org.dash.platform.dapi.v0.
|
|
3213
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2799
3214
|
var f = undefined;
|
|
2800
|
-
f = message.
|
|
2801
|
-
if (f
|
|
2802
|
-
writer.
|
|
3215
|
+
f = message.getHeight();
|
|
3216
|
+
if (f !== 0) {
|
|
3217
|
+
writer.writeUint32(
|
|
2803
3218
|
1,
|
|
2804
3219
|
f
|
|
2805
3220
|
);
|
|
@@ -2808,44 +3223,20 @@ proto.org.dash.platform.dapi.v0.GetBlockResponse.serializeBinaryToWriter = funct
|
|
|
2808
3223
|
|
|
2809
3224
|
|
|
2810
3225
|
/**
|
|
2811
|
-
* optional
|
|
2812
|
-
* @return {
|
|
2813
|
-
*/
|
|
2814
|
-
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.getBlock = function() {
|
|
2815
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2816
|
-
};
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
/**
|
|
2820
|
-
* optional bytes block = 1;
|
|
2821
|
-
* This is a type-conversion wrapper around `getBlock()`
|
|
2822
|
-
* @return {string}
|
|
2823
|
-
*/
|
|
2824
|
-
proto.org.dash.platform.dapi.v0.GetBlockResponse.prototype.getBlock_asB64 = function() {
|
|
2825
|
-
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
2826
|
-
this.getBlock()));
|
|
2827
|
-
};
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
/**
|
|
2831
|
-
* optional bytes block = 1;
|
|
2832
|
-
* Note that Uint8Array is not supported on all browsers.
|
|
2833
|
-
* @see http://caniuse.com/Uint8Array
|
|
2834
|
-
* This is a type-conversion wrapper around `getBlock()`
|
|
2835
|
-
* @return {!Uint8Array}
|
|
3226
|
+
* optional uint32 height = 1;
|
|
3227
|
+
* @return {number}
|
|
2836
3228
|
*/
|
|
2837
|
-
proto.org.dash.platform.dapi.v0.
|
|
2838
|
-
return /** @type {
|
|
2839
|
-
this.getBlock()));
|
|
3229
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.getHeight = function() {
|
|
3230
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
2840
3231
|
};
|
|
2841
3232
|
|
|
2842
3233
|
|
|
2843
3234
|
/**
|
|
2844
|
-
* @param {
|
|
2845
|
-
* @return {!proto.org.dash.platform.dapi.v0.
|
|
3235
|
+
* @param {number} value
|
|
3236
|
+
* @return {!proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse} returns this
|
|
2846
3237
|
*/
|
|
2847
|
-
proto.org.dash.platform.dapi.v0.
|
|
2848
|
-
return jspb.Message.
|
|
3238
|
+
proto.org.dash.platform.dapi.v0.GetBestBlockHeightResponse.prototype.setHeight = function(value) {
|
|
3239
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
2849
3240
|
};
|
|
2850
3241
|
|
|
2851
3242
|
|
|
@@ -5878,4 +6269,259 @@ proto.org.dash.platform.dapi.v0.InstantSendLockMessages.prototype.clearMessagesL
|
|
|
5878
6269
|
};
|
|
5879
6270
|
|
|
5880
6271
|
|
|
6272
|
+
|
|
6273
|
+
|
|
6274
|
+
|
|
6275
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6276
|
+
/**
|
|
6277
|
+
* Creates an object representation of this proto.
|
|
6278
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6279
|
+
* Optional fields that are not set will be set to undefined.
|
|
6280
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6281
|
+
* For the list of reserved names please see:
|
|
6282
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6283
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6284
|
+
* JSPB instance for transitional soy proto support:
|
|
6285
|
+
* http://goto/soy-param-migration
|
|
6286
|
+
* @return {!Object}
|
|
6287
|
+
*/
|
|
6288
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6289
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListRequest.toObject(opt_includeInstance, this);
|
|
6290
|
+
};
|
|
6291
|
+
|
|
6292
|
+
|
|
6293
|
+
/**
|
|
6294
|
+
* Static version of the {@see toObject} method.
|
|
6295
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6296
|
+
* the JSPB instance for transitional soy proto support:
|
|
6297
|
+
* http://goto/soy-param-migration
|
|
6298
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} msg The msg instance to transform.
|
|
6299
|
+
* @return {!Object}
|
|
6300
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6301
|
+
*/
|
|
6302
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.toObject = function(includeInstance, msg) {
|
|
6303
|
+
var f, obj = {
|
|
6304
|
+
|
|
6305
|
+
};
|
|
6306
|
+
|
|
6307
|
+
if (includeInstance) {
|
|
6308
|
+
obj.$jspbMessageInstance = msg;
|
|
6309
|
+
}
|
|
6310
|
+
return obj;
|
|
6311
|
+
};
|
|
6312
|
+
}
|
|
6313
|
+
|
|
6314
|
+
|
|
6315
|
+
/**
|
|
6316
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6317
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6318
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListRequest}
|
|
6319
|
+
*/
|
|
6320
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinary = function(bytes) {
|
|
6321
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6322
|
+
var msg = new proto.org.dash.platform.dapi.v0.MasternodeListRequest;
|
|
6323
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinaryFromReader(msg, reader);
|
|
6324
|
+
};
|
|
6325
|
+
|
|
6326
|
+
|
|
6327
|
+
/**
|
|
6328
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6329
|
+
* given reader into the given message object.
|
|
6330
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} msg The message object to deserialize into.
|
|
6331
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6332
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListRequest}
|
|
6333
|
+
*/
|
|
6334
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
6335
|
+
while (reader.nextField()) {
|
|
6336
|
+
if (reader.isEndGroup()) {
|
|
6337
|
+
break;
|
|
6338
|
+
}
|
|
6339
|
+
var field = reader.getFieldNumber();
|
|
6340
|
+
switch (field) {
|
|
6341
|
+
default:
|
|
6342
|
+
reader.skipField();
|
|
6343
|
+
break;
|
|
6344
|
+
}
|
|
6345
|
+
}
|
|
6346
|
+
return msg;
|
|
6347
|
+
};
|
|
6348
|
+
|
|
6349
|
+
|
|
6350
|
+
/**
|
|
6351
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6352
|
+
* @return {!Uint8Array}
|
|
6353
|
+
*/
|
|
6354
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.prototype.serializeBinary = function() {
|
|
6355
|
+
var writer = new jspb.BinaryWriter();
|
|
6356
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.serializeBinaryToWriter(this, writer);
|
|
6357
|
+
return writer.getResultBuffer();
|
|
6358
|
+
};
|
|
6359
|
+
|
|
6360
|
+
|
|
6361
|
+
/**
|
|
6362
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6363
|
+
* format), writing to the given BinaryWriter.
|
|
6364
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListRequest} message
|
|
6365
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6366
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6367
|
+
*/
|
|
6368
|
+
proto.org.dash.platform.dapi.v0.MasternodeListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6369
|
+
var f = undefined;
|
|
6370
|
+
};
|
|
6371
|
+
|
|
6372
|
+
|
|
6373
|
+
|
|
6374
|
+
|
|
6375
|
+
|
|
6376
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6377
|
+
/**
|
|
6378
|
+
* Creates an object representation of this proto.
|
|
6379
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6380
|
+
* Optional fields that are not set will be set to undefined.
|
|
6381
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6382
|
+
* For the list of reserved names please see:
|
|
6383
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6384
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6385
|
+
* JSPB instance for transitional soy proto support:
|
|
6386
|
+
* http://goto/soy-param-migration
|
|
6387
|
+
* @return {!Object}
|
|
6388
|
+
*/
|
|
6389
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6390
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListResponse.toObject(opt_includeInstance, this);
|
|
6391
|
+
};
|
|
6392
|
+
|
|
6393
|
+
|
|
6394
|
+
/**
|
|
6395
|
+
* Static version of the {@see toObject} method.
|
|
6396
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6397
|
+
* the JSPB instance for transitional soy proto support:
|
|
6398
|
+
* http://goto/soy-param-migration
|
|
6399
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} msg The msg instance to transform.
|
|
6400
|
+
* @return {!Object}
|
|
6401
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6402
|
+
*/
|
|
6403
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.toObject = function(includeInstance, msg) {
|
|
6404
|
+
var f, obj = {
|
|
6405
|
+
masternodeListDiff: msg.getMasternodeListDiff_asB64()
|
|
6406
|
+
};
|
|
6407
|
+
|
|
6408
|
+
if (includeInstance) {
|
|
6409
|
+
obj.$jspbMessageInstance = msg;
|
|
6410
|
+
}
|
|
6411
|
+
return obj;
|
|
6412
|
+
};
|
|
6413
|
+
}
|
|
6414
|
+
|
|
6415
|
+
|
|
6416
|
+
/**
|
|
6417
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6418
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6419
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse}
|
|
6420
|
+
*/
|
|
6421
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinary = function(bytes) {
|
|
6422
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6423
|
+
var msg = new proto.org.dash.platform.dapi.v0.MasternodeListResponse;
|
|
6424
|
+
return proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinaryFromReader(msg, reader);
|
|
6425
|
+
};
|
|
6426
|
+
|
|
6427
|
+
|
|
6428
|
+
/**
|
|
6429
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6430
|
+
* given reader into the given message object.
|
|
6431
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} msg The message object to deserialize into.
|
|
6432
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6433
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse}
|
|
6434
|
+
*/
|
|
6435
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
6436
|
+
while (reader.nextField()) {
|
|
6437
|
+
if (reader.isEndGroup()) {
|
|
6438
|
+
break;
|
|
6439
|
+
}
|
|
6440
|
+
var field = reader.getFieldNumber();
|
|
6441
|
+
switch (field) {
|
|
6442
|
+
case 1:
|
|
6443
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
6444
|
+
msg.setMasternodeListDiff(value);
|
|
6445
|
+
break;
|
|
6446
|
+
default:
|
|
6447
|
+
reader.skipField();
|
|
6448
|
+
break;
|
|
6449
|
+
}
|
|
6450
|
+
}
|
|
6451
|
+
return msg;
|
|
6452
|
+
};
|
|
6453
|
+
|
|
6454
|
+
|
|
6455
|
+
/**
|
|
6456
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6457
|
+
* @return {!Uint8Array}
|
|
6458
|
+
*/
|
|
6459
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.serializeBinary = function() {
|
|
6460
|
+
var writer = new jspb.BinaryWriter();
|
|
6461
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.serializeBinaryToWriter(this, writer);
|
|
6462
|
+
return writer.getResultBuffer();
|
|
6463
|
+
};
|
|
6464
|
+
|
|
6465
|
+
|
|
6466
|
+
/**
|
|
6467
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6468
|
+
* format), writing to the given BinaryWriter.
|
|
6469
|
+
* @param {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} message
|
|
6470
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6471
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6472
|
+
*/
|
|
6473
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
6474
|
+
var f = undefined;
|
|
6475
|
+
f = message.getMasternodeListDiff_asU8();
|
|
6476
|
+
if (f.length > 0) {
|
|
6477
|
+
writer.writeBytes(
|
|
6478
|
+
1,
|
|
6479
|
+
f
|
|
6480
|
+
);
|
|
6481
|
+
}
|
|
6482
|
+
};
|
|
6483
|
+
|
|
6484
|
+
|
|
6485
|
+
/**
|
|
6486
|
+
* optional bytes masternode_list_diff = 1;
|
|
6487
|
+
* @return {string}
|
|
6488
|
+
*/
|
|
6489
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff = function() {
|
|
6490
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6491
|
+
};
|
|
6492
|
+
|
|
6493
|
+
|
|
6494
|
+
/**
|
|
6495
|
+
* optional bytes masternode_list_diff = 1;
|
|
6496
|
+
* This is a type-conversion wrapper around `getMasternodeListDiff()`
|
|
6497
|
+
* @return {string}
|
|
6498
|
+
*/
|
|
6499
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff_asB64 = function() {
|
|
6500
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
6501
|
+
this.getMasternodeListDiff()));
|
|
6502
|
+
};
|
|
6503
|
+
|
|
6504
|
+
|
|
6505
|
+
/**
|
|
6506
|
+
* optional bytes masternode_list_diff = 1;
|
|
6507
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
6508
|
+
* @see http://caniuse.com/Uint8Array
|
|
6509
|
+
* This is a type-conversion wrapper around `getMasternodeListDiff()`
|
|
6510
|
+
* @return {!Uint8Array}
|
|
6511
|
+
*/
|
|
6512
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.getMasternodeListDiff_asU8 = function() {
|
|
6513
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
6514
|
+
this.getMasternodeListDiff()));
|
|
6515
|
+
};
|
|
6516
|
+
|
|
6517
|
+
|
|
6518
|
+
/**
|
|
6519
|
+
* @param {!(string|Uint8Array)} value
|
|
6520
|
+
* @return {!proto.org.dash.platform.dapi.v0.MasternodeListResponse} returns this
|
|
6521
|
+
*/
|
|
6522
|
+
proto.org.dash.platform.dapi.v0.MasternodeListResponse.prototype.setMasternodeListDiff = function(value) {
|
|
6523
|
+
return jspb.Message.setProto3BytesField(this, 1, value);
|
|
6524
|
+
};
|
|
6525
|
+
|
|
6526
|
+
|
|
5881
6527
|
goog.object.extend(exports, proto.org.dash.platform.dapi.v0);
|