1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | var jspb = require('google-protobuf');
|
11 | var goog = jspb;
|
12 | var global = Function('return this')();
|
13 |
|
14 | var core_Tron_pb = require('../core/Tron_pb.js');
|
15 | goog.exportSymbol('proto.protocol.AccountCreateContract', null, global);
|
16 | goog.exportSymbol('proto.protocol.AssetIssueContract', null, global);
|
17 | goog.exportSymbol('proto.protocol.DeployContract', null, global);
|
18 | goog.exportSymbol('proto.protocol.ParticipateAssetIssueContract', null, global);
|
19 | goog.exportSymbol('proto.protocol.TransferAssetContract', null, global);
|
20 | goog.exportSymbol('proto.protocol.TransferContract', null, global);
|
21 | goog.exportSymbol('proto.protocol.VoteAssetContract', null, global);
|
22 | goog.exportSymbol('proto.protocol.VoteWitnessContract', null, global);
|
23 | goog.exportSymbol('proto.protocol.VoteWitnessContract.Vote', null, global);
|
24 | goog.exportSymbol('proto.protocol.WitnessCreateContract', null, global);
|
25 | goog.exportSymbol('proto.protocol.WitnessUpdateContract', null, global);
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | proto.protocol.AccountCreateContract = function(opt_data) {
|
38 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
39 | };
|
40 | goog.inherits(proto.protocol.AccountCreateContract, jspb.Message);
|
41 | if (goog.DEBUG && !COMPILED) {
|
42 | proto.protocol.AccountCreateContract.displayName = 'proto.protocol.AccountCreateContract';
|
43 | }
|
44 |
|
45 |
|
46 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 | proto.protocol.AccountCreateContract.prototype.toObject = function(opt_includeInstance) {
|
58 | return proto.protocol.AccountCreateContract.toObject(opt_includeInstance, this);
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | proto.protocol.AccountCreateContract.toObject = function(includeInstance, msg) {
|
72 | var f, obj = {
|
73 | type: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
74 | accountName: msg.getAccountName_asB64(),
|
75 | ownerAddress: msg.getOwnerAddress_asB64()
|
76 | };
|
77 |
|
78 | if (includeInstance) {
|
79 | obj.$jspbMessageInstance = msg;
|
80 | }
|
81 | return obj;
|
82 | };
|
83 | }
|
84 |
|
85 |
|
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | proto.protocol.AccountCreateContract.deserializeBinary = function(bytes) {
|
92 | var reader = new jspb.BinaryReader(bytes);
|
93 | var msg = new proto.protocol.AccountCreateContract;
|
94 | return proto.protocol.AccountCreateContract.deserializeBinaryFromReader(msg, reader);
|
95 | };
|
96 |
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 | proto.protocol.AccountCreateContract.deserializeBinaryFromReader = function(msg, reader) {
|
106 | while (reader.nextField()) {
|
107 | if (reader.isEndGroup()) {
|
108 | break;
|
109 | }
|
110 | var field = reader.getFieldNumber();
|
111 | switch (field) {
|
112 | case 1:
|
113 | var value = (reader.readEnum());
|
114 | msg.setType(value);
|
115 | break;
|
116 | case 2:
|
117 | var value = (reader.readBytes());
|
118 | msg.setAccountName(value);
|
119 | break;
|
120 | case 3:
|
121 | var value = (reader.readBytes());
|
122 | msg.setOwnerAddress(value);
|
123 | break;
|
124 | default:
|
125 | reader.skipField();
|
126 | break;
|
127 | }
|
128 | }
|
129 | return msg;
|
130 | };
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 | proto.protocol.AccountCreateContract.prototype.serializeBinary = function() {
|
138 | var writer = new jspb.BinaryWriter();
|
139 | proto.protocol.AccountCreateContract.serializeBinaryToWriter(this, writer);
|
140 | return writer.getResultBuffer();
|
141 | };
|
142 |
|
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
|
149 |
|
150 |
|
151 | proto.protocol.AccountCreateContract.serializeBinaryToWriter = function(message, writer) {
|
152 | var f = undefined;
|
153 | f = message.getType();
|
154 | if (f !== 0.0) {
|
155 | writer.writeEnum(
|
156 | 1,
|
157 | f
|
158 | );
|
159 | }
|
160 | f = message.getAccountName_asU8();
|
161 | if (f.length > 0) {
|
162 | writer.writeBytes(
|
163 | 2,
|
164 | f
|
165 | );
|
166 | }
|
167 | f = message.getOwnerAddress_asU8();
|
168 | if (f.length > 0) {
|
169 | writer.writeBytes(
|
170 | 3,
|
171 | f
|
172 | );
|
173 | }
|
174 | };
|
175 |
|
176 |
|
177 |
|
178 |
|
179 |
|
180 |
|
181 | proto.protocol.AccountCreateContract.prototype.getType = function() {
|
182 | return (jspb.Message.getFieldWithDefault(this, 1, 0));
|
183 | };
|
184 |
|
185 |
|
186 |
|
187 | proto.protocol.AccountCreateContract.prototype.setType = function(value) {
|
188 | jspb.Message.setProto3EnumField(this, 1, value);
|
189 | };
|
190 |
|
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 | proto.protocol.AccountCreateContract.prototype.getAccountName = function() {
|
197 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
198 | };
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 |
|
205 |
|
206 | proto.protocol.AccountCreateContract.prototype.getAccountName_asB64 = function() {
|
207 | return (jspb.Message.bytesAsB64(
|
208 | this.getAccountName()));
|
209 | };
|
210 |
|
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 | proto.protocol.AccountCreateContract.prototype.getAccountName_asU8 = function() {
|
220 | return (jspb.Message.bytesAsU8(
|
221 | this.getAccountName()));
|
222 | };
|
223 |
|
224 |
|
225 |
|
226 | proto.protocol.AccountCreateContract.prototype.setAccountName = function(value) {
|
227 | jspb.Message.setProto3BytesField(this, 2, value);
|
228 | };
|
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 | proto.protocol.AccountCreateContract.prototype.getOwnerAddress = function() {
|
236 | return (jspb.Message.getFieldWithDefault(this, 3, ""));
|
237 | };
|
238 |
|
239 |
|
240 |
|
241 |
|
242 |
|
243 |
|
244 |
|
245 | proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asB64 = function() {
|
246 | return (jspb.Message.bytesAsB64(
|
247 | this.getOwnerAddress()));
|
248 | };
|
249 |
|
250 |
|
251 |
|
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 | proto.protocol.AccountCreateContract.prototype.getOwnerAddress_asU8 = function() {
|
259 | return (jspb.Message.bytesAsU8(
|
260 | this.getOwnerAddress()));
|
261 | };
|
262 |
|
263 |
|
264 |
|
265 | proto.protocol.AccountCreateContract.prototype.setOwnerAddress = function(value) {
|
266 | jspb.Message.setProto3BytesField(this, 3, value);
|
267 | };
|
268 |
|
269 |
|
270 |
|
271 |
|
272 |
|
273 |
|
274 |
|
275 |
|
276 |
|
277 |
|
278 |
|
279 |
|
280 |
|
281 | proto.protocol.TransferContract = function(opt_data) {
|
282 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
283 | };
|
284 | goog.inherits(proto.protocol.TransferContract, jspb.Message);
|
285 | if (goog.DEBUG && !COMPILED) {
|
286 | proto.protocol.TransferContract.displayName = 'proto.protocol.TransferContract';
|
287 | }
|
288 |
|
289 |
|
290 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
291 |
|
292 |
|
293 |
|
294 |
|
295 |
|
296 |
|
297 |
|
298 |
|
299 |
|
300 |
|
301 | proto.protocol.TransferContract.prototype.toObject = function(opt_includeInstance) {
|
302 | return proto.protocol.TransferContract.toObject(opt_includeInstance, this);
|
303 | };
|
304 |
|
305 |
|
306 |
|
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 | proto.protocol.TransferContract.toObject = function(includeInstance, msg) {
|
316 | var f, obj = {
|
317 | ownerAddress: msg.getOwnerAddress_asB64(),
|
318 | toAddress: msg.getToAddress_asB64(),
|
319 | amount: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
320 | };
|
321 |
|
322 | if (includeInstance) {
|
323 | obj.$jspbMessageInstance = msg;
|
324 | }
|
325 | return obj;
|
326 | };
|
327 | }
|
328 |
|
329 |
|
330 |
|
331 |
|
332 |
|
333 |
|
334 |
|
335 | proto.protocol.TransferContract.deserializeBinary = function(bytes) {
|
336 | var reader = new jspb.BinaryReader(bytes);
|
337 | var msg = new proto.protocol.TransferContract;
|
338 | return proto.protocol.TransferContract.deserializeBinaryFromReader(msg, reader);
|
339 | };
|
340 |
|
341 |
|
342 |
|
343 |
|
344 |
|
345 |
|
346 |
|
347 |
|
348 |
|
349 | proto.protocol.TransferContract.deserializeBinaryFromReader = function(msg, reader) {
|
350 | while (reader.nextField()) {
|
351 | if (reader.isEndGroup()) {
|
352 | break;
|
353 | }
|
354 | var field = reader.getFieldNumber();
|
355 | switch (field) {
|
356 | case 1:
|
357 | var value = (reader.readBytes());
|
358 | msg.setOwnerAddress(value);
|
359 | break;
|
360 | case 2:
|
361 | var value = (reader.readBytes());
|
362 | msg.setToAddress(value);
|
363 | break;
|
364 | case 3:
|
365 | var value = (reader.readInt64());
|
366 | msg.setAmount(value);
|
367 | break;
|
368 | default:
|
369 | reader.skipField();
|
370 | break;
|
371 | }
|
372 | }
|
373 | return msg;
|
374 | };
|
375 |
|
376 |
|
377 |
|
378 |
|
379 |
|
380 |
|
381 | proto.protocol.TransferContract.prototype.serializeBinary = function() {
|
382 | var writer = new jspb.BinaryWriter();
|
383 | proto.protocol.TransferContract.serializeBinaryToWriter(this, writer);
|
384 | return writer.getResultBuffer();
|
385 | };
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 |
|
392 |
|
393 |
|
394 |
|
395 | proto.protocol.TransferContract.serializeBinaryToWriter = function(message, writer) {
|
396 | var f = undefined;
|
397 | f = message.getOwnerAddress_asU8();
|
398 | if (f.length > 0) {
|
399 | writer.writeBytes(
|
400 | 1,
|
401 | f
|
402 | );
|
403 | }
|
404 | f = message.getToAddress_asU8();
|
405 | if (f.length > 0) {
|
406 | writer.writeBytes(
|
407 | 2,
|
408 | f
|
409 | );
|
410 | }
|
411 | f = message.getAmount();
|
412 | if (f !== 0) {
|
413 | writer.writeInt64(
|
414 | 3,
|
415 | f
|
416 | );
|
417 | }
|
418 | };
|
419 |
|
420 |
|
421 |
|
422 |
|
423 |
|
424 |
|
425 | proto.protocol.TransferContract.prototype.getOwnerAddress = function() {
|
426 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
427 | };
|
428 |
|
429 |
|
430 |
|
431 |
|
432 |
|
433 |
|
434 |
|
435 | proto.protocol.TransferContract.prototype.getOwnerAddress_asB64 = function() {
|
436 | return (jspb.Message.bytesAsB64(
|
437 | this.getOwnerAddress()));
|
438 | };
|
439 |
|
440 |
|
441 |
|
442 |
|
443 |
|
444 |
|
445 |
|
446 |
|
447 |
|
448 | proto.protocol.TransferContract.prototype.getOwnerAddress_asU8 = function() {
|
449 | return (jspb.Message.bytesAsU8(
|
450 | this.getOwnerAddress()));
|
451 | };
|
452 |
|
453 |
|
454 |
|
455 | proto.protocol.TransferContract.prototype.setOwnerAddress = function(value) {
|
456 | jspb.Message.setProto3BytesField(this, 1, value);
|
457 | };
|
458 |
|
459 |
|
460 |
|
461 |
|
462 |
|
463 |
|
464 | proto.protocol.TransferContract.prototype.getToAddress = function() {
|
465 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
466 | };
|
467 |
|
468 |
|
469 |
|
470 |
|
471 |
|
472 |
|
473 |
|
474 | proto.protocol.TransferContract.prototype.getToAddress_asB64 = function() {
|
475 | return (jspb.Message.bytesAsB64(
|
476 | this.getToAddress()));
|
477 | };
|
478 |
|
479 |
|
480 |
|
481 |
|
482 |
|
483 |
|
484 |
|
485 |
|
486 |
|
487 | proto.protocol.TransferContract.prototype.getToAddress_asU8 = function() {
|
488 | return (jspb.Message.bytesAsU8(
|
489 | this.getToAddress()));
|
490 | };
|
491 |
|
492 |
|
493 |
|
494 | proto.protocol.TransferContract.prototype.setToAddress = function(value) {
|
495 | jspb.Message.setProto3BytesField(this, 2, value);
|
496 | };
|
497 |
|
498 |
|
499 |
|
500 |
|
501 |
|
502 |
|
503 | proto.protocol.TransferContract.prototype.getAmount = function() {
|
504 | return (jspb.Message.getFieldWithDefault(this, 3, 0));
|
505 | };
|
506 |
|
507 |
|
508 |
|
509 | proto.protocol.TransferContract.prototype.setAmount = function(value) {
|
510 | jspb.Message.setProto3IntField(this, 3, value);
|
511 | };
|
512 |
|
513 |
|
514 |
|
515 |
|
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 |
|
522 |
|
523 |
|
524 |
|
525 | proto.protocol.TransferAssetContract = function(opt_data) {
|
526 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
527 | };
|
528 | goog.inherits(proto.protocol.TransferAssetContract, jspb.Message);
|
529 | if (goog.DEBUG && !COMPILED) {
|
530 | proto.protocol.TransferAssetContract.displayName = 'proto.protocol.TransferAssetContract';
|
531 | }
|
532 |
|
533 |
|
534 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 |
|
545 | proto.protocol.TransferAssetContract.prototype.toObject = function(opt_includeInstance) {
|
546 | return proto.protocol.TransferAssetContract.toObject(opt_includeInstance, this);
|
547 | };
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 | proto.protocol.TransferAssetContract.toObject = function(includeInstance, msg) {
|
560 | var f, obj = {
|
561 | assetName: msg.getAssetName_asB64(),
|
562 | ownerAddress: msg.getOwnerAddress_asB64(),
|
563 | toAddress: msg.getToAddress_asB64(),
|
564 | amount: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
565 | };
|
566 |
|
567 | if (includeInstance) {
|
568 | obj.$jspbMessageInstance = msg;
|
569 | }
|
570 | return obj;
|
571 | };
|
572 | }
|
573 |
|
574 |
|
575 |
|
576 |
|
577 |
|
578 |
|
579 |
|
580 | proto.protocol.TransferAssetContract.deserializeBinary = function(bytes) {
|
581 | var reader = new jspb.BinaryReader(bytes);
|
582 | var msg = new proto.protocol.TransferAssetContract;
|
583 | return proto.protocol.TransferAssetContract.deserializeBinaryFromReader(msg, reader);
|
584 | };
|
585 |
|
586 |
|
587 |
|
588 |
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |
|
594 | proto.protocol.TransferAssetContract.deserializeBinaryFromReader = function(msg, reader) {
|
595 | while (reader.nextField()) {
|
596 | if (reader.isEndGroup()) {
|
597 | break;
|
598 | }
|
599 | var field = reader.getFieldNumber();
|
600 | switch (field) {
|
601 | case 1:
|
602 | var value = (reader.readBytes());
|
603 | msg.setAssetName(value);
|
604 | break;
|
605 | case 2:
|
606 | var value = (reader.readBytes());
|
607 | msg.setOwnerAddress(value);
|
608 | break;
|
609 | case 3:
|
610 | var value = (reader.readBytes());
|
611 | msg.setToAddress(value);
|
612 | break;
|
613 | case 4:
|
614 | var value = (reader.readInt64());
|
615 | msg.setAmount(value);
|
616 | break;
|
617 | default:
|
618 | reader.skipField();
|
619 | break;
|
620 | }
|
621 | }
|
622 | return msg;
|
623 | };
|
624 |
|
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 | proto.protocol.TransferAssetContract.prototype.serializeBinary = function() {
|
631 | var writer = new jspb.BinaryWriter();
|
632 | proto.protocol.TransferAssetContract.serializeBinaryToWriter(this, writer);
|
633 | return writer.getResultBuffer();
|
634 | };
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 | proto.protocol.TransferAssetContract.serializeBinaryToWriter = function(message, writer) {
|
645 | var f = undefined;
|
646 | f = message.getAssetName_asU8();
|
647 | if (f.length > 0) {
|
648 | writer.writeBytes(
|
649 | 1,
|
650 | f
|
651 | );
|
652 | }
|
653 | f = message.getOwnerAddress_asU8();
|
654 | if (f.length > 0) {
|
655 | writer.writeBytes(
|
656 | 2,
|
657 | f
|
658 | );
|
659 | }
|
660 | f = message.getToAddress_asU8();
|
661 | if (f.length > 0) {
|
662 | writer.writeBytes(
|
663 | 3,
|
664 | f
|
665 | );
|
666 | }
|
667 | f = message.getAmount();
|
668 | if (f !== 0) {
|
669 | writer.writeInt64(
|
670 | 4,
|
671 | f
|
672 | );
|
673 | }
|
674 | };
|
675 |
|
676 |
|
677 |
|
678 |
|
679 |
|
680 |
|
681 | proto.protocol.TransferAssetContract.prototype.getAssetName = function() {
|
682 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
683 | };
|
684 |
|
685 |
|
686 |
|
687 |
|
688 |
|
689 |
|
690 |
|
691 | proto.protocol.TransferAssetContract.prototype.getAssetName_asB64 = function() {
|
692 | return (jspb.Message.bytesAsB64(
|
693 | this.getAssetName()));
|
694 | };
|
695 |
|
696 |
|
697 |
|
698 |
|
699 |
|
700 |
|
701 |
|
702 |
|
703 |
|
704 | proto.protocol.TransferAssetContract.prototype.getAssetName_asU8 = function() {
|
705 | return (jspb.Message.bytesAsU8(
|
706 | this.getAssetName()));
|
707 | };
|
708 |
|
709 |
|
710 |
|
711 | proto.protocol.TransferAssetContract.prototype.setAssetName = function(value) {
|
712 | jspb.Message.setProto3BytesField(this, 1, value);
|
713 | };
|
714 |
|
715 |
|
716 |
|
717 |
|
718 |
|
719 |
|
720 | proto.protocol.TransferAssetContract.prototype.getOwnerAddress = function() {
|
721 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
722 | };
|
723 |
|
724 |
|
725 |
|
726 |
|
727 |
|
728 |
|
729 |
|
730 | proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asB64 = function() {
|
731 | return (jspb.Message.bytesAsB64(
|
732 | this.getOwnerAddress()));
|
733 | };
|
734 |
|
735 |
|
736 |
|
737 |
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 | proto.protocol.TransferAssetContract.prototype.getOwnerAddress_asU8 = function() {
|
744 | return (jspb.Message.bytesAsU8(
|
745 | this.getOwnerAddress()));
|
746 | };
|
747 |
|
748 |
|
749 |
|
750 | proto.protocol.TransferAssetContract.prototype.setOwnerAddress = function(value) {
|
751 | jspb.Message.setProto3BytesField(this, 2, value);
|
752 | };
|
753 |
|
754 |
|
755 |
|
756 |
|
757 |
|
758 |
|
759 | proto.protocol.TransferAssetContract.prototype.getToAddress = function() {
|
760 | return (jspb.Message.getFieldWithDefault(this, 3, ""));
|
761 | };
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 | proto.protocol.TransferAssetContract.prototype.getToAddress_asB64 = function() {
|
770 | return (jspb.Message.bytesAsB64(
|
771 | this.getToAddress()));
|
772 | };
|
773 |
|
774 |
|
775 |
|
776 |
|
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 | proto.protocol.TransferAssetContract.prototype.getToAddress_asU8 = function() {
|
783 | return (jspb.Message.bytesAsU8(
|
784 | this.getToAddress()));
|
785 | };
|
786 |
|
787 |
|
788 |
|
789 | proto.protocol.TransferAssetContract.prototype.setToAddress = function(value) {
|
790 | jspb.Message.setProto3BytesField(this, 3, value);
|
791 | };
|
792 |
|
793 |
|
794 |
|
795 |
|
796 |
|
797 |
|
798 | proto.protocol.TransferAssetContract.prototype.getAmount = function() {
|
799 | return (jspb.Message.getFieldWithDefault(this, 4, 0));
|
800 | };
|
801 |
|
802 |
|
803 |
|
804 | proto.protocol.TransferAssetContract.prototype.setAmount = function(value) {
|
805 | jspb.Message.setProto3IntField(this, 4, value);
|
806 | };
|
807 |
|
808 |
|
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 |
|
815 |
|
816 |
|
817 |
|
818 |
|
819 |
|
820 | proto.protocol.VoteAssetContract = function(opt_data) {
|
821 | jspb.Message.initialize(this, opt_data, 0, -1, proto.protocol.VoteAssetContract.repeatedFields_, null);
|
822 | };
|
823 | goog.inherits(proto.protocol.VoteAssetContract, jspb.Message);
|
824 | if (goog.DEBUG && !COMPILED) {
|
825 | proto.protocol.VoteAssetContract.displayName = 'proto.protocol.VoteAssetContract';
|
826 | }
|
827 |
|
828 |
|
829 |
|
830 |
|
831 |
|
832 | proto.protocol.VoteAssetContract.repeatedFields_ = [2];
|
833 |
|
834 |
|
835 |
|
836 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
837 |
|
838 |
|
839 |
|
840 |
|
841 |
|
842 |
|
843 |
|
844 |
|
845 |
|
846 |
|
847 | proto.protocol.VoteAssetContract.prototype.toObject = function(opt_includeInstance) {
|
848 | return proto.protocol.VoteAssetContract.toObject(opt_includeInstance, this);
|
849 | };
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 |
|
857 |
|
858 |
|
859 |
|
860 |
|
861 | proto.protocol.VoteAssetContract.toObject = function(includeInstance, msg) {
|
862 | var f, obj = {
|
863 | ownerAddress: msg.getOwnerAddress_asB64(),
|
864 | voteAddressList: msg.getVoteAddressList_asB64(),
|
865 | support: jspb.Message.getFieldWithDefault(msg, 3, false),
|
866 | count: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
867 | };
|
868 |
|
869 | if (includeInstance) {
|
870 | obj.$jspbMessageInstance = msg;
|
871 | }
|
872 | return obj;
|
873 | };
|
874 | }
|
875 |
|
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 | proto.protocol.VoteAssetContract.deserializeBinary = function(bytes) {
|
883 | var reader = new jspb.BinaryReader(bytes);
|
884 | var msg = new proto.protocol.VoteAssetContract;
|
885 | return proto.protocol.VoteAssetContract.deserializeBinaryFromReader(msg, reader);
|
886 | };
|
887 |
|
888 |
|
889 |
|
890 |
|
891 |
|
892 |
|
893 |
|
894 |
|
895 |
|
896 | proto.protocol.VoteAssetContract.deserializeBinaryFromReader = function(msg, reader) {
|
897 | while (reader.nextField()) {
|
898 | if (reader.isEndGroup()) {
|
899 | break;
|
900 | }
|
901 | var field = reader.getFieldNumber();
|
902 | switch (field) {
|
903 | case 1:
|
904 | var value = (reader.readBytes());
|
905 | msg.setOwnerAddress(value);
|
906 | break;
|
907 | case 2:
|
908 | var value = (reader.readBytes());
|
909 | msg.addVoteAddress(value);
|
910 | break;
|
911 | case 3:
|
912 | var value = (reader.readBool());
|
913 | msg.setSupport(value);
|
914 | break;
|
915 | case 5:
|
916 | var value = (reader.readInt32());
|
917 | msg.setCount(value);
|
918 | break;
|
919 | default:
|
920 | reader.skipField();
|
921 | break;
|
922 | }
|
923 | }
|
924 | return msg;
|
925 | };
|
926 |
|
927 |
|
928 |
|
929 |
|
930 |
|
931 |
|
932 | proto.protocol.VoteAssetContract.prototype.serializeBinary = function() {
|
933 | var writer = new jspb.BinaryWriter();
|
934 | proto.protocol.VoteAssetContract.serializeBinaryToWriter(this, writer);
|
935 | return writer.getResultBuffer();
|
936 | };
|
937 |
|
938 |
|
939 |
|
940 |
|
941 |
|
942 |
|
943 |
|
944 |
|
945 |
|
946 | proto.protocol.VoteAssetContract.serializeBinaryToWriter = function(message, writer) {
|
947 | var f = undefined;
|
948 | f = message.getOwnerAddress_asU8();
|
949 | if (f.length > 0) {
|
950 | writer.writeBytes(
|
951 | 1,
|
952 | f
|
953 | );
|
954 | }
|
955 | f = message.getVoteAddressList_asU8();
|
956 | if (f.length > 0) {
|
957 | writer.writeRepeatedBytes(
|
958 | 2,
|
959 | f
|
960 | );
|
961 | }
|
962 | f = message.getSupport();
|
963 | if (f) {
|
964 | writer.writeBool(
|
965 | 3,
|
966 | f
|
967 | );
|
968 | }
|
969 | f = message.getCount();
|
970 | if (f !== 0) {
|
971 | writer.writeInt32(
|
972 | 5,
|
973 | f
|
974 | );
|
975 | }
|
976 | };
|
977 |
|
978 |
|
979 |
|
980 |
|
981 |
|
982 |
|
983 | proto.protocol.VoteAssetContract.prototype.getOwnerAddress = function() {
|
984 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
985 | };
|
986 |
|
987 |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 |
|
993 | proto.protocol.VoteAssetContract.prototype.getOwnerAddress_asB64 = function() {
|
994 | return (jspb.Message.bytesAsB64(
|
995 | this.getOwnerAddress()));
|
996 | };
|
997 |
|
998 |
|
999 |
|
1000 |
|
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 | proto.protocol.VoteAssetContract.prototype.getOwnerAddress_asU8 = function() {
|
1007 | return (jspb.Message.bytesAsU8(
|
1008 | this.getOwnerAddress()));
|
1009 | };
|
1010 |
|
1011 |
|
1012 |
|
1013 | proto.protocol.VoteAssetContract.prototype.setOwnerAddress = function(value) {
|
1014 | jspb.Message.setProto3BytesField(this, 1, value);
|
1015 | };
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 | proto.protocol.VoteAssetContract.prototype.getVoteAddressList = function() {
|
1023 | return (jspb.Message.getRepeatedField(this, 2));
|
1024 | };
|
1025 |
|
1026 |
|
1027 |
|
1028 |
|
1029 |
|
1030 |
|
1031 |
|
1032 | proto.protocol.VoteAssetContract.prototype.getVoteAddressList_asB64 = function() {
|
1033 | return (jspb.Message.bytesListAsB64(
|
1034 | this.getVoteAddressList()));
|
1035 | };
|
1036 |
|
1037 |
|
1038 |
|
1039 |
|
1040 |
|
1041 |
|
1042 |
|
1043 |
|
1044 |
|
1045 | proto.protocol.VoteAssetContract.prototype.getVoteAddressList_asU8 = function() {
|
1046 | return (jspb.Message.bytesListAsU8(
|
1047 | this.getVoteAddressList()));
|
1048 | };
|
1049 |
|
1050 |
|
1051 |
|
1052 | proto.protocol.VoteAssetContract.prototype.setVoteAddressList = function(value) {
|
1053 | jspb.Message.setField(this, 2, value || []);
|
1054 | };
|
1055 |
|
1056 |
|
1057 |
|
1058 |
|
1059 |
|
1060 |
|
1061 | proto.protocol.VoteAssetContract.prototype.addVoteAddress = function(value, opt_index) {
|
1062 | jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
1063 | };
|
1064 |
|
1065 |
|
1066 | proto.protocol.VoteAssetContract.prototype.clearVoteAddressList = function() {
|
1067 | this.setVoteAddressList([]);
|
1068 | };
|
1069 |
|
1070 |
|
1071 |
|
1072 |
|
1073 |
|
1074 |
|
1075 |
|
1076 |
|
1077 | proto.protocol.VoteAssetContract.prototype.getSupport = function() {
|
1078 | return (jspb.Message.getFieldWithDefault(this, 3, false));
|
1079 | };
|
1080 |
|
1081 |
|
1082 |
|
1083 | proto.protocol.VoteAssetContract.prototype.setSupport = function(value) {
|
1084 | jspb.Message.setProto3BooleanField(this, 3, value);
|
1085 | };
|
1086 |
|
1087 |
|
1088 |
|
1089 |
|
1090 |
|
1091 |
|
1092 | proto.protocol.VoteAssetContract.prototype.getCount = function() {
|
1093 | return (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1094 | };
|
1095 |
|
1096 |
|
1097 |
|
1098 | proto.protocol.VoteAssetContract.prototype.setCount = function(value) {
|
1099 | jspb.Message.setProto3IntField(this, 5, value);
|
1100 | };
|
1101 |
|
1102 |
|
1103 |
|
1104 |
|
1105 |
|
1106 |
|
1107 |
|
1108 |
|
1109 |
|
1110 |
|
1111 |
|
1112 |
|
1113 |
|
1114 | proto.protocol.VoteWitnessContract = function(opt_data) {
|
1115 | jspb.Message.initialize(this, opt_data, 0, -1, proto.protocol.VoteWitnessContract.repeatedFields_, null);
|
1116 | };
|
1117 | goog.inherits(proto.protocol.VoteWitnessContract, jspb.Message);
|
1118 | if (goog.DEBUG && !COMPILED) {
|
1119 | proto.protocol.VoteWitnessContract.displayName = 'proto.protocol.VoteWitnessContract';
|
1120 | }
|
1121 |
|
1122 |
|
1123 |
|
1124 |
|
1125 |
|
1126 | proto.protocol.VoteWitnessContract.repeatedFields_ = [2];
|
1127 |
|
1128 |
|
1129 |
|
1130 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
1131 |
|
1132 |
|
1133 |
|
1134 |
|
1135 |
|
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 |
|
1141 | proto.protocol.VoteWitnessContract.prototype.toObject = function(opt_includeInstance) {
|
1142 | return proto.protocol.VoteWitnessContract.toObject(opt_includeInstance, this);
|
1143 | };
|
1144 |
|
1145 |
|
1146 |
|
1147 |
|
1148 |
|
1149 |
|
1150 |
|
1151 |
|
1152 |
|
1153 |
|
1154 |
|
1155 | proto.protocol.VoteWitnessContract.toObject = function(includeInstance, msg) {
|
1156 | var f, obj = {
|
1157 | ownerAddress: msg.getOwnerAddress_asB64(),
|
1158 | votesList: jspb.Message.toObjectList(msg.getVotesList(),
|
1159 | proto.protocol.VoteWitnessContract.Vote.toObject, includeInstance),
|
1160 | support: jspb.Message.getFieldWithDefault(msg, 3, false)
|
1161 | };
|
1162 |
|
1163 | if (includeInstance) {
|
1164 | obj.$jspbMessageInstance = msg;
|
1165 | }
|
1166 | return obj;
|
1167 | };
|
1168 | }
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 | proto.protocol.VoteWitnessContract.deserializeBinary = function(bytes) {
|
1177 | var reader = new jspb.BinaryReader(bytes);
|
1178 | var msg = new proto.protocol.VoteWitnessContract;
|
1179 | return proto.protocol.VoteWitnessContract.deserializeBinaryFromReader(msg, reader);
|
1180 | };
|
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 |
|
1186 |
|
1187 |
|
1188 |
|
1189 |
|
1190 | proto.protocol.VoteWitnessContract.deserializeBinaryFromReader = function(msg, reader) {
|
1191 | while (reader.nextField()) {
|
1192 | if (reader.isEndGroup()) {
|
1193 | break;
|
1194 | }
|
1195 | var field = reader.getFieldNumber();
|
1196 | switch (field) {
|
1197 | case 1:
|
1198 | var value = (reader.readBytes());
|
1199 | msg.setOwnerAddress(value);
|
1200 | break;
|
1201 | case 2:
|
1202 | var value = new proto.protocol.VoteWitnessContract.Vote;
|
1203 | reader.readMessage(value,proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader);
|
1204 | msg.addVotes(value);
|
1205 | break;
|
1206 | case 3:
|
1207 | var value = (reader.readBool());
|
1208 | msg.setSupport(value);
|
1209 | break;
|
1210 | default:
|
1211 | reader.skipField();
|
1212 | break;
|
1213 | }
|
1214 | }
|
1215 | return msg;
|
1216 | };
|
1217 |
|
1218 |
|
1219 |
|
1220 |
|
1221 |
|
1222 |
|
1223 | proto.protocol.VoteWitnessContract.prototype.serializeBinary = function() {
|
1224 | var writer = new jspb.BinaryWriter();
|
1225 | proto.protocol.VoteWitnessContract.serializeBinaryToWriter(this, writer);
|
1226 | return writer.getResultBuffer();
|
1227 | };
|
1228 |
|
1229 |
|
1230 |
|
1231 |
|
1232 |
|
1233 |
|
1234 |
|
1235 |
|
1236 |
|
1237 | proto.protocol.VoteWitnessContract.serializeBinaryToWriter = function(message, writer) {
|
1238 | var f = undefined;
|
1239 | f = message.getOwnerAddress_asU8();
|
1240 | if (f.length > 0) {
|
1241 | writer.writeBytes(
|
1242 | 1,
|
1243 | f
|
1244 | );
|
1245 | }
|
1246 | f = message.getVotesList();
|
1247 | if (f.length > 0) {
|
1248 | writer.writeRepeatedMessage(
|
1249 | 2,
|
1250 | f,
|
1251 | proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter
|
1252 | );
|
1253 | }
|
1254 | f = message.getSupport();
|
1255 | if (f) {
|
1256 | writer.writeBool(
|
1257 | 3,
|
1258 | f
|
1259 | );
|
1260 | }
|
1261 | };
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 | proto.protocol.VoteWitnessContract.Vote = function(opt_data) {
|
1276 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1277 | };
|
1278 | goog.inherits(proto.protocol.VoteWitnessContract.Vote, jspb.Message);
|
1279 | if (goog.DEBUG && !COMPILED) {
|
1280 | proto.protocol.VoteWitnessContract.Vote.displayName = 'proto.protocol.VoteWitnessContract.Vote';
|
1281 | }
|
1282 |
|
1283 |
|
1284 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 | proto.protocol.VoteWitnessContract.Vote.prototype.toObject = function(opt_includeInstance) {
|
1296 | return proto.protocol.VoteWitnessContract.Vote.toObject(opt_includeInstance, this);
|
1297 | };
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 | proto.protocol.VoteWitnessContract.Vote.toObject = function(includeInstance, msg) {
|
1310 | var f, obj = {
|
1311 | voteAddress: msg.getVoteAddress_asB64(),
|
1312 | voteCount: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
1313 | };
|
1314 |
|
1315 | if (includeInstance) {
|
1316 | obj.$jspbMessageInstance = msg;
|
1317 | }
|
1318 | return obj;
|
1319 | };
|
1320 | }
|
1321 |
|
1322 |
|
1323 |
|
1324 |
|
1325 |
|
1326 |
|
1327 |
|
1328 | proto.protocol.VoteWitnessContract.Vote.deserializeBinary = function(bytes) {
|
1329 | var reader = new jspb.BinaryReader(bytes);
|
1330 | var msg = new proto.protocol.VoteWitnessContract.Vote;
|
1331 | return proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader(msg, reader);
|
1332 | };
|
1333 |
|
1334 |
|
1335 |
|
1336 |
|
1337 |
|
1338 |
|
1339 |
|
1340 |
|
1341 |
|
1342 | proto.protocol.VoteWitnessContract.Vote.deserializeBinaryFromReader = function(msg, reader) {
|
1343 | while (reader.nextField()) {
|
1344 | if (reader.isEndGroup()) {
|
1345 | break;
|
1346 | }
|
1347 | var field = reader.getFieldNumber();
|
1348 | switch (field) {
|
1349 | case 1:
|
1350 | var value = (reader.readBytes());
|
1351 | msg.setVoteAddress(value);
|
1352 | break;
|
1353 | case 2:
|
1354 | var value = (reader.readInt64());
|
1355 | msg.setVoteCount(value);
|
1356 | break;
|
1357 | default:
|
1358 | reader.skipField();
|
1359 | break;
|
1360 | }
|
1361 | }
|
1362 | return msg;
|
1363 | };
|
1364 |
|
1365 |
|
1366 |
|
1367 |
|
1368 |
|
1369 |
|
1370 | proto.protocol.VoteWitnessContract.Vote.prototype.serializeBinary = function() {
|
1371 | var writer = new jspb.BinaryWriter();
|
1372 | proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter(this, writer);
|
1373 | return writer.getResultBuffer();
|
1374 | };
|
1375 |
|
1376 |
|
1377 |
|
1378 |
|
1379 |
|
1380 |
|
1381 |
|
1382 |
|
1383 |
|
1384 | proto.protocol.VoteWitnessContract.Vote.serializeBinaryToWriter = function(message, writer) {
|
1385 | var f = undefined;
|
1386 | f = message.getVoteAddress_asU8();
|
1387 | if (f.length > 0) {
|
1388 | writer.writeBytes(
|
1389 | 1,
|
1390 | f
|
1391 | );
|
1392 | }
|
1393 | f = message.getVoteCount();
|
1394 | if (f !== 0) {
|
1395 | writer.writeInt64(
|
1396 | 2,
|
1397 | f
|
1398 | );
|
1399 | }
|
1400 | };
|
1401 |
|
1402 |
|
1403 |
|
1404 |
|
1405 |
|
1406 |
|
1407 | proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress = function() {
|
1408 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1409 | };
|
1410 |
|
1411 |
|
1412 |
|
1413 |
|
1414 |
|
1415 |
|
1416 |
|
1417 | proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asB64 = function() {
|
1418 | return (jspb.Message.bytesAsB64(
|
1419 | this.getVoteAddress()));
|
1420 | };
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 |
|
1429 |
|
1430 | proto.protocol.VoteWitnessContract.Vote.prototype.getVoteAddress_asU8 = function() {
|
1431 | return (jspb.Message.bytesAsU8(
|
1432 | this.getVoteAddress()));
|
1433 | };
|
1434 |
|
1435 |
|
1436 |
|
1437 | proto.protocol.VoteWitnessContract.Vote.prototype.setVoteAddress = function(value) {
|
1438 | jspb.Message.setProto3BytesField(this, 1, value);
|
1439 | };
|
1440 |
|
1441 |
|
1442 |
|
1443 |
|
1444 |
|
1445 |
|
1446 | proto.protocol.VoteWitnessContract.Vote.prototype.getVoteCount = function() {
|
1447 | return (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1448 | };
|
1449 |
|
1450 |
|
1451 |
|
1452 | proto.protocol.VoteWitnessContract.Vote.prototype.setVoteCount = function(value) {
|
1453 | jspb.Message.setProto3IntField(this, 2, value);
|
1454 | };
|
1455 |
|
1456 |
|
1457 |
|
1458 |
|
1459 |
|
1460 |
|
1461 | proto.protocol.VoteWitnessContract.prototype.getOwnerAddress = function() {
|
1462 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1463 | };
|
1464 |
|
1465 |
|
1466 |
|
1467 |
|
1468 |
|
1469 |
|
1470 |
|
1471 | proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asB64 = function() {
|
1472 | return (jspb.Message.bytesAsB64(
|
1473 | this.getOwnerAddress()));
|
1474 | };
|
1475 |
|
1476 |
|
1477 |
|
1478 |
|
1479 |
|
1480 |
|
1481 |
|
1482 |
|
1483 |
|
1484 | proto.protocol.VoteWitnessContract.prototype.getOwnerAddress_asU8 = function() {
|
1485 | return (jspb.Message.bytesAsU8(
|
1486 | this.getOwnerAddress()));
|
1487 | };
|
1488 |
|
1489 |
|
1490 |
|
1491 | proto.protocol.VoteWitnessContract.prototype.setOwnerAddress = function(value) {
|
1492 | jspb.Message.setProto3BytesField(this, 1, value);
|
1493 | };
|
1494 |
|
1495 |
|
1496 |
|
1497 |
|
1498 |
|
1499 |
|
1500 | proto.protocol.VoteWitnessContract.prototype.getVotesList = function() {
|
1501 | return (
|
1502 | jspb.Message.getRepeatedWrapperField(this, proto.protocol.VoteWitnessContract.Vote, 2));
|
1503 | };
|
1504 |
|
1505 |
|
1506 |
|
1507 | proto.protocol.VoteWitnessContract.prototype.setVotesList = function(value) {
|
1508 | jspb.Message.setRepeatedWrapperField(this, 2, value);
|
1509 | };
|
1510 |
|
1511 |
|
1512 |
|
1513 |
|
1514 |
|
1515 |
|
1516 |
|
1517 | proto.protocol.VoteWitnessContract.prototype.addVotes = function(opt_value, opt_index) {
|
1518 | return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.protocol.VoteWitnessContract.Vote, opt_index);
|
1519 | };
|
1520 |
|
1521 |
|
1522 | proto.protocol.VoteWitnessContract.prototype.clearVotesList = function() {
|
1523 | this.setVotesList([]);
|
1524 | };
|
1525 |
|
1526 |
|
1527 |
|
1528 |
|
1529 |
|
1530 |
|
1531 |
|
1532 |
|
1533 | proto.protocol.VoteWitnessContract.prototype.getSupport = function() {
|
1534 | return (jspb.Message.getFieldWithDefault(this, 3, false));
|
1535 | };
|
1536 |
|
1537 |
|
1538 |
|
1539 | proto.protocol.VoteWitnessContract.prototype.setSupport = function(value) {
|
1540 | jspb.Message.setProto3BooleanField(this, 3, value);
|
1541 | };
|
1542 |
|
1543 |
|
1544 |
|
1545 |
|
1546 |
|
1547 |
|
1548 |
|
1549 |
|
1550 |
|
1551 |
|
1552 |
|
1553 |
|
1554 |
|
1555 | proto.protocol.WitnessCreateContract = function(opt_data) {
|
1556 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1557 | };
|
1558 | goog.inherits(proto.protocol.WitnessCreateContract, jspb.Message);
|
1559 | if (goog.DEBUG && !COMPILED) {
|
1560 | proto.protocol.WitnessCreateContract.displayName = 'proto.protocol.WitnessCreateContract';
|
1561 | }
|
1562 |
|
1563 |
|
1564 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
1565 |
|
1566 |
|
1567 |
|
1568 |
|
1569 |
|
1570 |
|
1571 |
|
1572 |
|
1573 |
|
1574 |
|
1575 | proto.protocol.WitnessCreateContract.prototype.toObject = function(opt_includeInstance) {
|
1576 | return proto.protocol.WitnessCreateContract.toObject(opt_includeInstance, this);
|
1577 | };
|
1578 |
|
1579 |
|
1580 |
|
1581 |
|
1582 |
|
1583 |
|
1584 |
|
1585 |
|
1586 |
|
1587 |
|
1588 |
|
1589 | proto.protocol.WitnessCreateContract.toObject = function(includeInstance, msg) {
|
1590 | var f, obj = {
|
1591 | ownerAddress: msg.getOwnerAddress_asB64(),
|
1592 | url: msg.getUrl_asB64()
|
1593 | };
|
1594 |
|
1595 | if (includeInstance) {
|
1596 | obj.$jspbMessageInstance = msg;
|
1597 | }
|
1598 | return obj;
|
1599 | };
|
1600 | }
|
1601 |
|
1602 |
|
1603 |
|
1604 |
|
1605 |
|
1606 |
|
1607 |
|
1608 | proto.protocol.WitnessCreateContract.deserializeBinary = function(bytes) {
|
1609 | var reader = new jspb.BinaryReader(bytes);
|
1610 | var msg = new proto.protocol.WitnessCreateContract;
|
1611 | return proto.protocol.WitnessCreateContract.deserializeBinaryFromReader(msg, reader);
|
1612 | };
|
1613 |
|
1614 |
|
1615 |
|
1616 |
|
1617 |
|
1618 |
|
1619 |
|
1620 |
|
1621 |
|
1622 | proto.protocol.WitnessCreateContract.deserializeBinaryFromReader = function(msg, reader) {
|
1623 | while (reader.nextField()) {
|
1624 | if (reader.isEndGroup()) {
|
1625 | break;
|
1626 | }
|
1627 | var field = reader.getFieldNumber();
|
1628 | switch (field) {
|
1629 | case 1:
|
1630 | var value = (reader.readBytes());
|
1631 | msg.setOwnerAddress(value);
|
1632 | break;
|
1633 | case 2:
|
1634 | var value = (reader.readBytes());
|
1635 | msg.setUrl(value);
|
1636 | break;
|
1637 | default:
|
1638 | reader.skipField();
|
1639 | break;
|
1640 | }
|
1641 | }
|
1642 | return msg;
|
1643 | };
|
1644 |
|
1645 |
|
1646 |
|
1647 |
|
1648 |
|
1649 |
|
1650 | proto.protocol.WitnessCreateContract.prototype.serializeBinary = function() {
|
1651 | var writer = new jspb.BinaryWriter();
|
1652 | proto.protocol.WitnessCreateContract.serializeBinaryToWriter(this, writer);
|
1653 | return writer.getResultBuffer();
|
1654 | };
|
1655 |
|
1656 |
|
1657 |
|
1658 |
|
1659 |
|
1660 |
|
1661 |
|
1662 |
|
1663 |
|
1664 | proto.protocol.WitnessCreateContract.serializeBinaryToWriter = function(message, writer) {
|
1665 | var f = undefined;
|
1666 | f = message.getOwnerAddress_asU8();
|
1667 | if (f.length > 0) {
|
1668 | writer.writeBytes(
|
1669 | 1,
|
1670 | f
|
1671 | );
|
1672 | }
|
1673 | f = message.getUrl_asU8();
|
1674 | if (f.length > 0) {
|
1675 | writer.writeBytes(
|
1676 | 2,
|
1677 | f
|
1678 | );
|
1679 | }
|
1680 | };
|
1681 |
|
1682 |
|
1683 |
|
1684 |
|
1685 |
|
1686 |
|
1687 | proto.protocol.WitnessCreateContract.prototype.getOwnerAddress = function() {
|
1688 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1689 | };
|
1690 |
|
1691 |
|
1692 |
|
1693 |
|
1694 |
|
1695 |
|
1696 |
|
1697 | proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asB64 = function() {
|
1698 | return (jspb.Message.bytesAsB64(
|
1699 | this.getOwnerAddress()));
|
1700 | };
|
1701 |
|
1702 |
|
1703 |
|
1704 |
|
1705 |
|
1706 |
|
1707 |
|
1708 |
|
1709 |
|
1710 | proto.protocol.WitnessCreateContract.prototype.getOwnerAddress_asU8 = function() {
|
1711 | return (jspb.Message.bytesAsU8(
|
1712 | this.getOwnerAddress()));
|
1713 | };
|
1714 |
|
1715 |
|
1716 |
|
1717 | proto.protocol.WitnessCreateContract.prototype.setOwnerAddress = function(value) {
|
1718 | jspb.Message.setProto3BytesField(this, 1, value);
|
1719 | };
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 | proto.protocol.WitnessCreateContract.prototype.getUrl = function() {
|
1727 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
1728 | };
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 |
|
1736 | proto.protocol.WitnessCreateContract.prototype.getUrl_asB64 = function() {
|
1737 | return (jspb.Message.bytesAsB64(
|
1738 | this.getUrl()));
|
1739 | };
|
1740 |
|
1741 |
|
1742 |
|
1743 |
|
1744 |
|
1745 |
|
1746 |
|
1747 |
|
1748 |
|
1749 | proto.protocol.WitnessCreateContract.prototype.getUrl_asU8 = function() {
|
1750 | return (jspb.Message.bytesAsU8(
|
1751 | this.getUrl()));
|
1752 | };
|
1753 |
|
1754 |
|
1755 |
|
1756 | proto.protocol.WitnessCreateContract.prototype.setUrl = function(value) {
|
1757 | jspb.Message.setProto3BytesField(this, 2, value);
|
1758 | };
|
1759 |
|
1760 |
|
1761 |
|
1762 |
|
1763 |
|
1764 |
|
1765 |
|
1766 |
|
1767 |
|
1768 |
|
1769 |
|
1770 |
|
1771 |
|
1772 | proto.protocol.WitnessUpdateContract = function(opt_data) {
|
1773 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1774 | };
|
1775 | goog.inherits(proto.protocol.WitnessUpdateContract, jspb.Message);
|
1776 | if (goog.DEBUG && !COMPILED) {
|
1777 | proto.protocol.WitnessUpdateContract.displayName = 'proto.protocol.WitnessUpdateContract';
|
1778 | }
|
1779 |
|
1780 |
|
1781 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
1782 |
|
1783 |
|
1784 |
|
1785 |
|
1786 |
|
1787 |
|
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 | proto.protocol.WitnessUpdateContract.prototype.toObject = function(opt_includeInstance) {
|
1793 | return proto.protocol.WitnessUpdateContract.toObject(opt_includeInstance, this);
|
1794 | };
|
1795 |
|
1796 |
|
1797 |
|
1798 |
|
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 | proto.protocol.WitnessUpdateContract.toObject = function(includeInstance, msg) {
|
1807 | var f, obj = {
|
1808 | ownerAddress: msg.getOwnerAddress_asB64(),
|
1809 | updateUrl: msg.getUpdateUrl_asB64()
|
1810 | };
|
1811 |
|
1812 | if (includeInstance) {
|
1813 | obj.$jspbMessageInstance = msg;
|
1814 | }
|
1815 | return obj;
|
1816 | };
|
1817 | }
|
1818 |
|
1819 |
|
1820 |
|
1821 |
|
1822 |
|
1823 |
|
1824 |
|
1825 | proto.protocol.WitnessUpdateContract.deserializeBinary = function(bytes) {
|
1826 | var reader = new jspb.BinaryReader(bytes);
|
1827 | var msg = new proto.protocol.WitnessUpdateContract;
|
1828 | return proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader(msg, reader);
|
1829 | };
|
1830 |
|
1831 |
|
1832 |
|
1833 |
|
1834 |
|
1835 |
|
1836 |
|
1837 |
|
1838 |
|
1839 | proto.protocol.WitnessUpdateContract.deserializeBinaryFromReader = function(msg, reader) {
|
1840 | while (reader.nextField()) {
|
1841 | if (reader.isEndGroup()) {
|
1842 | break;
|
1843 | }
|
1844 | var field = reader.getFieldNumber();
|
1845 | switch (field) {
|
1846 | case 1:
|
1847 | var value = (reader.readBytes());
|
1848 | msg.setOwnerAddress(value);
|
1849 | break;
|
1850 | case 12:
|
1851 | var value = (reader.readBytes());
|
1852 | msg.setUpdateUrl(value);
|
1853 | break;
|
1854 | default:
|
1855 | reader.skipField();
|
1856 | break;
|
1857 | }
|
1858 | }
|
1859 | return msg;
|
1860 | };
|
1861 |
|
1862 |
|
1863 |
|
1864 |
|
1865 |
|
1866 |
|
1867 | proto.protocol.WitnessUpdateContract.prototype.serializeBinary = function() {
|
1868 | var writer = new jspb.BinaryWriter();
|
1869 | proto.protocol.WitnessUpdateContract.serializeBinaryToWriter(this, writer);
|
1870 | return writer.getResultBuffer();
|
1871 | };
|
1872 |
|
1873 |
|
1874 |
|
1875 |
|
1876 |
|
1877 |
|
1878 |
|
1879 |
|
1880 |
|
1881 | proto.protocol.WitnessUpdateContract.serializeBinaryToWriter = function(message, writer) {
|
1882 | var f = undefined;
|
1883 | f = message.getOwnerAddress_asU8();
|
1884 | if (f.length > 0) {
|
1885 | writer.writeBytes(
|
1886 | 1,
|
1887 | f
|
1888 | );
|
1889 | }
|
1890 | f = message.getUpdateUrl_asU8();
|
1891 | if (f.length > 0) {
|
1892 | writer.writeBytes(
|
1893 | 12,
|
1894 | f
|
1895 | );
|
1896 | }
|
1897 | };
|
1898 |
|
1899 |
|
1900 |
|
1901 |
|
1902 |
|
1903 |
|
1904 | proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress = function() {
|
1905 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1906 | };
|
1907 |
|
1908 |
|
1909 |
|
1910 |
|
1911 |
|
1912 |
|
1913 |
|
1914 | proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asB64 = function() {
|
1915 | return (jspb.Message.bytesAsB64(
|
1916 | this.getOwnerAddress()));
|
1917 | };
|
1918 |
|
1919 |
|
1920 |
|
1921 |
|
1922 |
|
1923 |
|
1924 |
|
1925 |
|
1926 |
|
1927 | proto.protocol.WitnessUpdateContract.prototype.getOwnerAddress_asU8 = function() {
|
1928 | return (jspb.Message.bytesAsU8(
|
1929 | this.getOwnerAddress()));
|
1930 | };
|
1931 |
|
1932 |
|
1933 |
|
1934 | proto.protocol.WitnessUpdateContract.prototype.setOwnerAddress = function(value) {
|
1935 | jspb.Message.setProto3BytesField(this, 1, value);
|
1936 | };
|
1937 |
|
1938 |
|
1939 |
|
1940 |
|
1941 |
|
1942 |
|
1943 | proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl = function() {
|
1944 | return (jspb.Message.getFieldWithDefault(this, 12, ""));
|
1945 | };
|
1946 |
|
1947 |
|
1948 |
|
1949 |
|
1950 |
|
1951 |
|
1952 |
|
1953 | proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asB64 = function() {
|
1954 | return (jspb.Message.bytesAsB64(
|
1955 | this.getUpdateUrl()));
|
1956 | };
|
1957 |
|
1958 |
|
1959 |
|
1960 |
|
1961 |
|
1962 |
|
1963 |
|
1964 |
|
1965 |
|
1966 | proto.protocol.WitnessUpdateContract.prototype.getUpdateUrl_asU8 = function() {
|
1967 | return (jspb.Message.bytesAsU8(
|
1968 | this.getUpdateUrl()));
|
1969 | };
|
1970 |
|
1971 |
|
1972 |
|
1973 | proto.protocol.WitnessUpdateContract.prototype.setUpdateUrl = function(value) {
|
1974 | jspb.Message.setProto3BytesField(this, 12, value);
|
1975 | };
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 |
|
1988 |
|
1989 | proto.protocol.AssetIssueContract = function(opt_data) {
|
1990 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
1991 | };
|
1992 | goog.inherits(proto.protocol.AssetIssueContract, jspb.Message);
|
1993 | if (goog.DEBUG && !COMPILED) {
|
1994 | proto.protocol.AssetIssueContract.displayName = 'proto.protocol.AssetIssueContract';
|
1995 | }
|
1996 |
|
1997 |
|
1998 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
1999 |
|
2000 |
|
2001 |
|
2002 |
|
2003 |
|
2004 |
|
2005 |
|
2006 |
|
2007 |
|
2008 |
|
2009 | proto.protocol.AssetIssueContract.prototype.toObject = function(opt_includeInstance) {
|
2010 | return proto.protocol.AssetIssueContract.toObject(opt_includeInstance, this);
|
2011 | };
|
2012 |
|
2013 |
|
2014 |
|
2015 |
|
2016 |
|
2017 |
|
2018 |
|
2019 |
|
2020 |
|
2021 |
|
2022 |
|
2023 | proto.protocol.AssetIssueContract.toObject = function(includeInstance, msg) {
|
2024 | var f, obj = {
|
2025 | ownerAddress: msg.getOwnerAddress_asB64(),
|
2026 | name: msg.getName_asB64(),
|
2027 | totalSupply: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
2028 | trxNum: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
2029 | num: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
2030 | startTime: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
2031 | endTime: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
2032 | decayRatio: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
2033 | voteScore: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
2034 | description: msg.getDescription_asB64(),
|
2035 | url: msg.getUrl_asB64()
|
2036 | };
|
2037 |
|
2038 | if (includeInstance) {
|
2039 | obj.$jspbMessageInstance = msg;
|
2040 | }
|
2041 | return obj;
|
2042 | };
|
2043 | }
|
2044 |
|
2045 |
|
2046 |
|
2047 |
|
2048 |
|
2049 |
|
2050 |
|
2051 | proto.protocol.AssetIssueContract.deserializeBinary = function(bytes) {
|
2052 | var reader = new jspb.BinaryReader(bytes);
|
2053 | var msg = new proto.protocol.AssetIssueContract;
|
2054 | return proto.protocol.AssetIssueContract.deserializeBinaryFromReader(msg, reader);
|
2055 | };
|
2056 |
|
2057 |
|
2058 |
|
2059 |
|
2060 |
|
2061 |
|
2062 |
|
2063 |
|
2064 |
|
2065 | proto.protocol.AssetIssueContract.deserializeBinaryFromReader = function(msg, reader) {
|
2066 | while (reader.nextField()) {
|
2067 | if (reader.isEndGroup()) {
|
2068 | break;
|
2069 | }
|
2070 | var field = reader.getFieldNumber();
|
2071 | switch (field) {
|
2072 | case 1:
|
2073 | var value = (reader.readBytes());
|
2074 | msg.setOwnerAddress(value);
|
2075 | break;
|
2076 | case 2:
|
2077 | var value = (reader.readBytes());
|
2078 | msg.setName(value);
|
2079 | break;
|
2080 | case 4:
|
2081 | var value = (reader.readInt64());
|
2082 | msg.setTotalSupply(value);
|
2083 | break;
|
2084 | case 6:
|
2085 | var value = (reader.readInt32());
|
2086 | msg.setTrxNum(value);
|
2087 | break;
|
2088 | case 8:
|
2089 | var value = (reader.readInt32());
|
2090 | msg.setNum(value);
|
2091 | break;
|
2092 | case 9:
|
2093 | var value = (reader.readInt64());
|
2094 | msg.setStartTime(value);
|
2095 | break;
|
2096 | case 10:
|
2097 | var value = (reader.readInt64());
|
2098 | msg.setEndTime(value);
|
2099 | break;
|
2100 | case 15:
|
2101 | var value = (reader.readInt32());
|
2102 | msg.setDecayRatio(value);
|
2103 | break;
|
2104 | case 16:
|
2105 | var value = (reader.readInt32());
|
2106 | msg.setVoteScore(value);
|
2107 | break;
|
2108 | case 20:
|
2109 | var value = (reader.readBytes());
|
2110 | msg.setDescription(value);
|
2111 | break;
|
2112 | case 21:
|
2113 | var value = (reader.readBytes());
|
2114 | msg.setUrl(value);
|
2115 | break;
|
2116 | default:
|
2117 | reader.skipField();
|
2118 | break;
|
2119 | }
|
2120 | }
|
2121 | return msg;
|
2122 | };
|
2123 |
|
2124 |
|
2125 |
|
2126 |
|
2127 |
|
2128 |
|
2129 | proto.protocol.AssetIssueContract.prototype.serializeBinary = function() {
|
2130 | var writer = new jspb.BinaryWriter();
|
2131 | proto.protocol.AssetIssueContract.serializeBinaryToWriter(this, writer);
|
2132 | return writer.getResultBuffer();
|
2133 | };
|
2134 |
|
2135 |
|
2136 |
|
2137 |
|
2138 |
|
2139 |
|
2140 |
|
2141 |
|
2142 |
|
2143 | proto.protocol.AssetIssueContract.serializeBinaryToWriter = function(message, writer) {
|
2144 | var f = undefined;
|
2145 | f = message.getOwnerAddress_asU8();
|
2146 | if (f.length > 0) {
|
2147 | writer.writeBytes(
|
2148 | 1,
|
2149 | f
|
2150 | );
|
2151 | }
|
2152 | f = message.getName_asU8();
|
2153 | if (f.length > 0) {
|
2154 | writer.writeBytes(
|
2155 | 2,
|
2156 | f
|
2157 | );
|
2158 | }
|
2159 | f = message.getTotalSupply();
|
2160 | if (f !== 0) {
|
2161 | writer.writeInt64(
|
2162 | 4,
|
2163 | f
|
2164 | );
|
2165 | }
|
2166 | f = message.getTrxNum();
|
2167 | if (f !== 0) {
|
2168 | writer.writeInt32(
|
2169 | 6,
|
2170 | f
|
2171 | );
|
2172 | }
|
2173 | f = message.getNum();
|
2174 | if (f !== 0) {
|
2175 | writer.writeInt32(
|
2176 | 8,
|
2177 | f
|
2178 | );
|
2179 | }
|
2180 | f = message.getStartTime();
|
2181 | if (f !== 0) {
|
2182 | writer.writeInt64(
|
2183 | 9,
|
2184 | f
|
2185 | );
|
2186 | }
|
2187 | f = message.getEndTime();
|
2188 | if (f !== 0) {
|
2189 | writer.writeInt64(
|
2190 | 10,
|
2191 | f
|
2192 | );
|
2193 | }
|
2194 | f = message.getDecayRatio();
|
2195 | if (f !== 0) {
|
2196 | writer.writeInt32(
|
2197 | 15,
|
2198 | f
|
2199 | );
|
2200 | }
|
2201 | f = message.getVoteScore();
|
2202 | if (f !== 0) {
|
2203 | writer.writeInt32(
|
2204 | 16,
|
2205 | f
|
2206 | );
|
2207 | }
|
2208 | f = message.getDescription_asU8();
|
2209 | if (f.length > 0) {
|
2210 | writer.writeBytes(
|
2211 | 20,
|
2212 | f
|
2213 | );
|
2214 | }
|
2215 | f = message.getUrl_asU8();
|
2216 | if (f.length > 0) {
|
2217 | writer.writeBytes(
|
2218 | 21,
|
2219 | f
|
2220 | );
|
2221 | }
|
2222 | };
|
2223 |
|
2224 |
|
2225 |
|
2226 |
|
2227 |
|
2228 |
|
2229 | proto.protocol.AssetIssueContract.prototype.getOwnerAddress = function() {
|
2230 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2231 | };
|
2232 |
|
2233 |
|
2234 |
|
2235 |
|
2236 |
|
2237 |
|
2238 |
|
2239 | proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asB64 = function() {
|
2240 | return (jspb.Message.bytesAsB64(
|
2241 | this.getOwnerAddress()));
|
2242 | };
|
2243 |
|
2244 |
|
2245 |
|
2246 |
|
2247 |
|
2248 |
|
2249 |
|
2250 |
|
2251 |
|
2252 | proto.protocol.AssetIssueContract.prototype.getOwnerAddress_asU8 = function() {
|
2253 | return (jspb.Message.bytesAsU8(
|
2254 | this.getOwnerAddress()));
|
2255 | };
|
2256 |
|
2257 |
|
2258 |
|
2259 | proto.protocol.AssetIssueContract.prototype.setOwnerAddress = function(value) {
|
2260 | jspb.Message.setProto3BytesField(this, 1, value);
|
2261 | };
|
2262 |
|
2263 |
|
2264 |
|
2265 |
|
2266 |
|
2267 |
|
2268 | proto.protocol.AssetIssueContract.prototype.getName = function() {
|
2269 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2270 | };
|
2271 |
|
2272 |
|
2273 |
|
2274 |
|
2275 |
|
2276 |
|
2277 |
|
2278 | proto.protocol.AssetIssueContract.prototype.getName_asB64 = function() {
|
2279 | return (jspb.Message.bytesAsB64(
|
2280 | this.getName()));
|
2281 | };
|
2282 |
|
2283 |
|
2284 |
|
2285 |
|
2286 |
|
2287 |
|
2288 |
|
2289 |
|
2290 |
|
2291 | proto.protocol.AssetIssueContract.prototype.getName_asU8 = function() {
|
2292 | return (jspb.Message.bytesAsU8(
|
2293 | this.getName()));
|
2294 | };
|
2295 |
|
2296 |
|
2297 |
|
2298 | proto.protocol.AssetIssueContract.prototype.setName = function(value) {
|
2299 | jspb.Message.setProto3BytesField(this, 2, value);
|
2300 | };
|
2301 |
|
2302 |
|
2303 |
|
2304 |
|
2305 |
|
2306 |
|
2307 | proto.protocol.AssetIssueContract.prototype.getTotalSupply = function() {
|
2308 | return (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2309 | };
|
2310 |
|
2311 |
|
2312 |
|
2313 | proto.protocol.AssetIssueContract.prototype.setTotalSupply = function(value) {
|
2314 | jspb.Message.setProto3IntField(this, 4, value);
|
2315 | };
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 |
|
2321 |
|
2322 | proto.protocol.AssetIssueContract.prototype.getTrxNum = function() {
|
2323 | return (jspb.Message.getFieldWithDefault(this, 6, 0));
|
2324 | };
|
2325 |
|
2326 |
|
2327 |
|
2328 | proto.protocol.AssetIssueContract.prototype.setTrxNum = function(value) {
|
2329 | jspb.Message.setProto3IntField(this, 6, value);
|
2330 | };
|
2331 |
|
2332 |
|
2333 |
|
2334 |
|
2335 |
|
2336 |
|
2337 | proto.protocol.AssetIssueContract.prototype.getNum = function() {
|
2338 | return (jspb.Message.getFieldWithDefault(this, 8, 0));
|
2339 | };
|
2340 |
|
2341 |
|
2342 |
|
2343 | proto.protocol.AssetIssueContract.prototype.setNum = function(value) {
|
2344 | jspb.Message.setProto3IntField(this, 8, value);
|
2345 | };
|
2346 |
|
2347 |
|
2348 |
|
2349 |
|
2350 |
|
2351 |
|
2352 | proto.protocol.AssetIssueContract.prototype.getStartTime = function() {
|
2353 | return (jspb.Message.getFieldWithDefault(this, 9, 0));
|
2354 | };
|
2355 |
|
2356 |
|
2357 |
|
2358 | proto.protocol.AssetIssueContract.prototype.setStartTime = function(value) {
|
2359 | jspb.Message.setProto3IntField(this, 9, value);
|
2360 | };
|
2361 |
|
2362 |
|
2363 |
|
2364 |
|
2365 |
|
2366 |
|
2367 | proto.protocol.AssetIssueContract.prototype.getEndTime = function() {
|
2368 | return (jspb.Message.getFieldWithDefault(this, 10, 0));
|
2369 | };
|
2370 |
|
2371 |
|
2372 |
|
2373 | proto.protocol.AssetIssueContract.prototype.setEndTime = function(value) {
|
2374 | jspb.Message.setProto3IntField(this, 10, value);
|
2375 | };
|
2376 |
|
2377 |
|
2378 |
|
2379 |
|
2380 |
|
2381 |
|
2382 | proto.protocol.AssetIssueContract.prototype.getDecayRatio = function() {
|
2383 | return (jspb.Message.getFieldWithDefault(this, 15, 0));
|
2384 | };
|
2385 |
|
2386 |
|
2387 |
|
2388 | proto.protocol.AssetIssueContract.prototype.setDecayRatio = function(value) {
|
2389 | jspb.Message.setProto3IntField(this, 15, value);
|
2390 | };
|
2391 |
|
2392 |
|
2393 |
|
2394 |
|
2395 |
|
2396 |
|
2397 | proto.protocol.AssetIssueContract.prototype.getVoteScore = function() {
|
2398 | return (jspb.Message.getFieldWithDefault(this, 16, 0));
|
2399 | };
|
2400 |
|
2401 |
|
2402 |
|
2403 | proto.protocol.AssetIssueContract.prototype.setVoteScore = function(value) {
|
2404 | jspb.Message.setProto3IntField(this, 16, value);
|
2405 | };
|
2406 |
|
2407 |
|
2408 |
|
2409 |
|
2410 |
|
2411 |
|
2412 | proto.protocol.AssetIssueContract.prototype.getDescription = function() {
|
2413 | return (jspb.Message.getFieldWithDefault(this, 20, ""));
|
2414 | };
|
2415 |
|
2416 |
|
2417 |
|
2418 |
|
2419 |
|
2420 |
|
2421 |
|
2422 | proto.protocol.AssetIssueContract.prototype.getDescription_asB64 = function() {
|
2423 | return (jspb.Message.bytesAsB64(
|
2424 | this.getDescription()));
|
2425 | };
|
2426 |
|
2427 |
|
2428 |
|
2429 |
|
2430 |
|
2431 |
|
2432 |
|
2433 |
|
2434 |
|
2435 | proto.protocol.AssetIssueContract.prototype.getDescription_asU8 = function() {
|
2436 | return (jspb.Message.bytesAsU8(
|
2437 | this.getDescription()));
|
2438 | };
|
2439 |
|
2440 |
|
2441 |
|
2442 | proto.protocol.AssetIssueContract.prototype.setDescription = function(value) {
|
2443 | jspb.Message.setProto3BytesField(this, 20, value);
|
2444 | };
|
2445 |
|
2446 |
|
2447 |
|
2448 |
|
2449 |
|
2450 |
|
2451 | proto.protocol.AssetIssueContract.prototype.getUrl = function() {
|
2452 | return (jspb.Message.getFieldWithDefault(this, 21, ""));
|
2453 | };
|
2454 |
|
2455 |
|
2456 |
|
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 | proto.protocol.AssetIssueContract.prototype.getUrl_asB64 = function() {
|
2462 | return (jspb.Message.bytesAsB64(
|
2463 | this.getUrl()));
|
2464 | };
|
2465 |
|
2466 |
|
2467 |
|
2468 |
|
2469 |
|
2470 |
|
2471 |
|
2472 |
|
2473 |
|
2474 | proto.protocol.AssetIssueContract.prototype.getUrl_asU8 = function() {
|
2475 | return (jspb.Message.bytesAsU8(
|
2476 | this.getUrl()));
|
2477 | };
|
2478 |
|
2479 |
|
2480 |
|
2481 | proto.protocol.AssetIssueContract.prototype.setUrl = function(value) {
|
2482 | jspb.Message.setProto3BytesField(this, 21, value);
|
2483 | };
|
2484 |
|
2485 |
|
2486 |
|
2487 |
|
2488 |
|
2489 |
|
2490 |
|
2491 |
|
2492 |
|
2493 |
|
2494 |
|
2495 |
|
2496 |
|
2497 | proto.protocol.ParticipateAssetIssueContract = function(opt_data) {
|
2498 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
2499 | };
|
2500 | goog.inherits(proto.protocol.ParticipateAssetIssueContract, jspb.Message);
|
2501 | if (goog.DEBUG && !COMPILED) {
|
2502 | proto.protocol.ParticipateAssetIssueContract.displayName = 'proto.protocol.ParticipateAssetIssueContract';
|
2503 | }
|
2504 |
|
2505 |
|
2506 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
2507 |
|
2508 |
|
2509 |
|
2510 |
|
2511 |
|
2512 |
|
2513 |
|
2514 |
|
2515 |
|
2516 |
|
2517 | proto.protocol.ParticipateAssetIssueContract.prototype.toObject = function(opt_includeInstance) {
|
2518 | return proto.protocol.ParticipateAssetIssueContract.toObject(opt_includeInstance, this);
|
2519 | };
|
2520 |
|
2521 |
|
2522 |
|
2523 |
|
2524 |
|
2525 |
|
2526 |
|
2527 |
|
2528 |
|
2529 |
|
2530 |
|
2531 | proto.protocol.ParticipateAssetIssueContract.toObject = function(includeInstance, msg) {
|
2532 | var f, obj = {
|
2533 | ownerAddress: msg.getOwnerAddress_asB64(),
|
2534 | toAddress: msg.getToAddress_asB64(),
|
2535 | assetName: msg.getAssetName_asB64(),
|
2536 | amount: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
2537 | };
|
2538 |
|
2539 | if (includeInstance) {
|
2540 | obj.$jspbMessageInstance = msg;
|
2541 | }
|
2542 | return obj;
|
2543 | };
|
2544 | }
|
2545 |
|
2546 |
|
2547 |
|
2548 |
|
2549 |
|
2550 |
|
2551 |
|
2552 | proto.protocol.ParticipateAssetIssueContract.deserializeBinary = function(bytes) {
|
2553 | var reader = new jspb.BinaryReader(bytes);
|
2554 | var msg = new proto.protocol.ParticipateAssetIssueContract;
|
2555 | return proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader(msg, reader);
|
2556 | };
|
2557 |
|
2558 |
|
2559 |
|
2560 |
|
2561 |
|
2562 |
|
2563 |
|
2564 |
|
2565 |
|
2566 | proto.protocol.ParticipateAssetIssueContract.deserializeBinaryFromReader = function(msg, reader) {
|
2567 | while (reader.nextField()) {
|
2568 | if (reader.isEndGroup()) {
|
2569 | break;
|
2570 | }
|
2571 | var field = reader.getFieldNumber();
|
2572 | switch (field) {
|
2573 | case 1:
|
2574 | var value = (reader.readBytes());
|
2575 | msg.setOwnerAddress(value);
|
2576 | break;
|
2577 | case 2:
|
2578 | var value = (reader.readBytes());
|
2579 | msg.setToAddress(value);
|
2580 | break;
|
2581 | case 3:
|
2582 | var value = (reader.readBytes());
|
2583 | msg.setAssetName(value);
|
2584 | break;
|
2585 | case 4:
|
2586 | var value = (reader.readInt64());
|
2587 | msg.setAmount(value);
|
2588 | break;
|
2589 | default:
|
2590 | reader.skipField();
|
2591 | break;
|
2592 | }
|
2593 | }
|
2594 | return msg;
|
2595 | };
|
2596 |
|
2597 |
|
2598 |
|
2599 |
|
2600 |
|
2601 |
|
2602 | proto.protocol.ParticipateAssetIssueContract.prototype.serializeBinary = function() {
|
2603 | var writer = new jspb.BinaryWriter();
|
2604 | proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter(this, writer);
|
2605 | return writer.getResultBuffer();
|
2606 | };
|
2607 |
|
2608 |
|
2609 |
|
2610 |
|
2611 |
|
2612 |
|
2613 |
|
2614 |
|
2615 |
|
2616 | proto.protocol.ParticipateAssetIssueContract.serializeBinaryToWriter = function(message, writer) {
|
2617 | var f = undefined;
|
2618 | f = message.getOwnerAddress_asU8();
|
2619 | if (f.length > 0) {
|
2620 | writer.writeBytes(
|
2621 | 1,
|
2622 | f
|
2623 | );
|
2624 | }
|
2625 | f = message.getToAddress_asU8();
|
2626 | if (f.length > 0) {
|
2627 | writer.writeBytes(
|
2628 | 2,
|
2629 | f
|
2630 | );
|
2631 | }
|
2632 | f = message.getAssetName_asU8();
|
2633 | if (f.length > 0) {
|
2634 | writer.writeBytes(
|
2635 | 3,
|
2636 | f
|
2637 | );
|
2638 | }
|
2639 | f = message.getAmount();
|
2640 | if (f !== 0) {
|
2641 | writer.writeInt64(
|
2642 | 4,
|
2643 | f
|
2644 | );
|
2645 | }
|
2646 | };
|
2647 |
|
2648 |
|
2649 |
|
2650 |
|
2651 |
|
2652 |
|
2653 | proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress = function() {
|
2654 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2655 | };
|
2656 |
|
2657 |
|
2658 |
|
2659 |
|
2660 |
|
2661 |
|
2662 |
|
2663 | proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asB64 = function() {
|
2664 | return (jspb.Message.bytesAsB64(
|
2665 | this.getOwnerAddress()));
|
2666 | };
|
2667 |
|
2668 |
|
2669 |
|
2670 |
|
2671 |
|
2672 |
|
2673 |
|
2674 |
|
2675 |
|
2676 | proto.protocol.ParticipateAssetIssueContract.prototype.getOwnerAddress_asU8 = function() {
|
2677 | return (jspb.Message.bytesAsU8(
|
2678 | this.getOwnerAddress()));
|
2679 | };
|
2680 |
|
2681 |
|
2682 |
|
2683 | proto.protocol.ParticipateAssetIssueContract.prototype.setOwnerAddress = function(value) {
|
2684 | jspb.Message.setProto3BytesField(this, 1, value);
|
2685 | };
|
2686 |
|
2687 |
|
2688 |
|
2689 |
|
2690 |
|
2691 |
|
2692 | proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress = function() {
|
2693 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2694 | };
|
2695 |
|
2696 |
|
2697 |
|
2698 |
|
2699 |
|
2700 |
|
2701 |
|
2702 | proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asB64 = function() {
|
2703 | return (jspb.Message.bytesAsB64(
|
2704 | this.getToAddress()));
|
2705 | };
|
2706 |
|
2707 |
|
2708 |
|
2709 |
|
2710 |
|
2711 |
|
2712 |
|
2713 |
|
2714 |
|
2715 | proto.protocol.ParticipateAssetIssueContract.prototype.getToAddress_asU8 = function() {
|
2716 | return (jspb.Message.bytesAsU8(
|
2717 | this.getToAddress()));
|
2718 | };
|
2719 |
|
2720 |
|
2721 |
|
2722 | proto.protocol.ParticipateAssetIssueContract.prototype.setToAddress = function(value) {
|
2723 | jspb.Message.setProto3BytesField(this, 2, value);
|
2724 | };
|
2725 |
|
2726 |
|
2727 |
|
2728 |
|
2729 |
|
2730 |
|
2731 | proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName = function() {
|
2732 | return (jspb.Message.getFieldWithDefault(this, 3, ""));
|
2733 | };
|
2734 |
|
2735 |
|
2736 |
|
2737 |
|
2738 |
|
2739 |
|
2740 |
|
2741 | proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asB64 = function() {
|
2742 | return (jspb.Message.bytesAsB64(
|
2743 | this.getAssetName()));
|
2744 | };
|
2745 |
|
2746 |
|
2747 |
|
2748 |
|
2749 |
|
2750 |
|
2751 |
|
2752 |
|
2753 |
|
2754 | proto.protocol.ParticipateAssetIssueContract.prototype.getAssetName_asU8 = function() {
|
2755 | return (jspb.Message.bytesAsU8(
|
2756 | this.getAssetName()));
|
2757 | };
|
2758 |
|
2759 |
|
2760 |
|
2761 | proto.protocol.ParticipateAssetIssueContract.prototype.setAssetName = function(value) {
|
2762 | jspb.Message.setProto3BytesField(this, 3, value);
|
2763 | };
|
2764 |
|
2765 |
|
2766 |
|
2767 |
|
2768 |
|
2769 |
|
2770 | proto.protocol.ParticipateAssetIssueContract.prototype.getAmount = function() {
|
2771 | return (jspb.Message.getFieldWithDefault(this, 4, 0));
|
2772 | };
|
2773 |
|
2774 |
|
2775 |
|
2776 | proto.protocol.ParticipateAssetIssueContract.prototype.setAmount = function(value) {
|
2777 | jspb.Message.setProto3IntField(this, 4, value);
|
2778 | };
|
2779 |
|
2780 |
|
2781 |
|
2782 |
|
2783 |
|
2784 |
|
2785 |
|
2786 |
|
2787 |
|
2788 |
|
2789 |
|
2790 |
|
2791 |
|
2792 | proto.protocol.DeployContract = function(opt_data) {
|
2793 | jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
2794 | };
|
2795 | goog.inherits(proto.protocol.DeployContract, jspb.Message);
|
2796 | if (goog.DEBUG && !COMPILED) {
|
2797 | proto.protocol.DeployContract.displayName = 'proto.protocol.DeployContract';
|
2798 | }
|
2799 |
|
2800 |
|
2801 | if (jspb.Message.GENERATE_TO_OBJECT) {
|
2802 |
|
2803 |
|
2804 |
|
2805 |
|
2806 |
|
2807 |
|
2808 |
|
2809 |
|
2810 |
|
2811 |
|
2812 | proto.protocol.DeployContract.prototype.toObject = function(opt_includeInstance) {
|
2813 | return proto.protocol.DeployContract.toObject(opt_includeInstance, this);
|
2814 | };
|
2815 |
|
2816 |
|
2817 |
|
2818 |
|
2819 |
|
2820 |
|
2821 |
|
2822 |
|
2823 |
|
2824 |
|
2825 |
|
2826 | proto.protocol.DeployContract.toObject = function(includeInstance, msg) {
|
2827 | var f, obj = {
|
2828 | ownerAddress: msg.getOwnerAddress_asB64(),
|
2829 | script: msg.getScript_asB64()
|
2830 | };
|
2831 |
|
2832 | if (includeInstance) {
|
2833 | obj.$jspbMessageInstance = msg;
|
2834 | }
|
2835 | return obj;
|
2836 | };
|
2837 | }
|
2838 |
|
2839 |
|
2840 |
|
2841 |
|
2842 |
|
2843 |
|
2844 |
|
2845 | proto.protocol.DeployContract.deserializeBinary = function(bytes) {
|
2846 | var reader = new jspb.BinaryReader(bytes);
|
2847 | var msg = new proto.protocol.DeployContract;
|
2848 | return proto.protocol.DeployContract.deserializeBinaryFromReader(msg, reader);
|
2849 | };
|
2850 |
|
2851 |
|
2852 |
|
2853 |
|
2854 |
|
2855 |
|
2856 |
|
2857 |
|
2858 |
|
2859 | proto.protocol.DeployContract.deserializeBinaryFromReader = function(msg, reader) {
|
2860 | while (reader.nextField()) {
|
2861 | if (reader.isEndGroup()) {
|
2862 | break;
|
2863 | }
|
2864 | var field = reader.getFieldNumber();
|
2865 | switch (field) {
|
2866 | case 1:
|
2867 | var value = (reader.readBytes());
|
2868 | msg.setOwnerAddress(value);
|
2869 | break;
|
2870 | case 2:
|
2871 | var value = (reader.readBytes());
|
2872 | msg.setScript(value);
|
2873 | break;
|
2874 | default:
|
2875 | reader.skipField();
|
2876 | break;
|
2877 | }
|
2878 | }
|
2879 | return msg;
|
2880 | };
|
2881 |
|
2882 |
|
2883 |
|
2884 |
|
2885 |
|
2886 |
|
2887 | proto.protocol.DeployContract.prototype.serializeBinary = function() {
|
2888 | var writer = new jspb.BinaryWriter();
|
2889 | proto.protocol.DeployContract.serializeBinaryToWriter(this, writer);
|
2890 | return writer.getResultBuffer();
|
2891 | };
|
2892 |
|
2893 |
|
2894 |
|
2895 |
|
2896 |
|
2897 |
|
2898 |
|
2899 |
|
2900 |
|
2901 | proto.protocol.DeployContract.serializeBinaryToWriter = function(message, writer) {
|
2902 | var f = undefined;
|
2903 | f = message.getOwnerAddress_asU8();
|
2904 | if (f.length > 0) {
|
2905 | writer.writeBytes(
|
2906 | 1,
|
2907 | f
|
2908 | );
|
2909 | }
|
2910 | f = message.getScript_asU8();
|
2911 | if (f.length > 0) {
|
2912 | writer.writeBytes(
|
2913 | 2,
|
2914 | f
|
2915 | );
|
2916 | }
|
2917 | };
|
2918 |
|
2919 |
|
2920 |
|
2921 |
|
2922 |
|
2923 |
|
2924 | proto.protocol.DeployContract.prototype.getOwnerAddress = function() {
|
2925 | return (jspb.Message.getFieldWithDefault(this, 1, ""));
|
2926 | };
|
2927 |
|
2928 |
|
2929 |
|
2930 |
|
2931 |
|
2932 |
|
2933 |
|
2934 | proto.protocol.DeployContract.prototype.getOwnerAddress_asB64 = function() {
|
2935 | return (jspb.Message.bytesAsB64(
|
2936 | this.getOwnerAddress()));
|
2937 | };
|
2938 |
|
2939 |
|
2940 |
|
2941 |
|
2942 |
|
2943 |
|
2944 |
|
2945 |
|
2946 |
|
2947 | proto.protocol.DeployContract.prototype.getOwnerAddress_asU8 = function() {
|
2948 | return (jspb.Message.bytesAsU8(
|
2949 | this.getOwnerAddress()));
|
2950 | };
|
2951 |
|
2952 |
|
2953 |
|
2954 | proto.protocol.DeployContract.prototype.setOwnerAddress = function(value) {
|
2955 | jspb.Message.setProto3BytesField(this, 1, value);
|
2956 | };
|
2957 |
|
2958 |
|
2959 |
|
2960 |
|
2961 |
|
2962 |
|
2963 | proto.protocol.DeployContract.prototype.getScript = function() {
|
2964 | return (jspb.Message.getFieldWithDefault(this, 2, ""));
|
2965 | };
|
2966 |
|
2967 |
|
2968 |
|
2969 |
|
2970 |
|
2971 |
|
2972 |
|
2973 | proto.protocol.DeployContract.prototype.getScript_asB64 = function() {
|
2974 | return (jspb.Message.bytesAsB64(
|
2975 | this.getScript()));
|
2976 | };
|
2977 |
|
2978 |
|
2979 |
|
2980 |
|
2981 |
|
2982 |
|
2983 |
|
2984 |
|
2985 |
|
2986 | proto.protocol.DeployContract.prototype.getScript_asU8 = function() {
|
2987 | return (jspb.Message.bytesAsU8(
|
2988 | this.getScript()));
|
2989 | };
|
2990 |
|
2991 |
|
2992 |
|
2993 | proto.protocol.DeployContract.prototype.setScript = function(value) {
|
2994 | jspb.Message.setProto3BytesField(this, 2, value);
|
2995 | };
|
2996 |
|
2997 |
|
2998 | goog.object.extend(exports, proto.protocol);
|