@dashevo/dapi-grpc 5.0.0-beta.1 → 5.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.
@@ -104434,6 +104434,516 @@ $root.org = (function() {
104434
104434
  return UpdateDirectPurchasePriceEvent;
104435
104435
  })();
104436
104436
 
104437
+ GetGroupActionsResponseV0.MintToPoolEvent = (function() {
104438
+
104439
+ /**
104440
+ * Properties of a MintToPoolEvent.
104441
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
104442
+ * @interface IMintToPoolEvent
104443
+ * @property {number|Long|null} [amount] MintToPoolEvent amount
104444
+ * @property {Uint8Array|null} [actionsDigest] MintToPoolEvent actionsDigest
104445
+ * @property {string|null} [publicNote] MintToPoolEvent publicNote
104446
+ */
104447
+
104448
+ /**
104449
+ * Constructs a new MintToPoolEvent.
104450
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
104451
+ * @classdesc Represents a MintToPoolEvent.
104452
+ * @implements IMintToPoolEvent
104453
+ * @constructor
104454
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent=} [properties] Properties to set
104455
+ */
104456
+ function MintToPoolEvent(properties) {
104457
+ if (properties)
104458
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
104459
+ if (properties[keys[i]] != null)
104460
+ this[keys[i]] = properties[keys[i]];
104461
+ }
104462
+
104463
+ /**
104464
+ * MintToPoolEvent amount.
104465
+ * @member {number|Long} amount
104466
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104467
+ * @instance
104468
+ */
104469
+ MintToPoolEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104470
+
104471
+ /**
104472
+ * MintToPoolEvent actionsDigest.
104473
+ * @member {Uint8Array} actionsDigest
104474
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104475
+ * @instance
104476
+ */
104477
+ MintToPoolEvent.prototype.actionsDigest = $util.newBuffer([]);
104478
+
104479
+ /**
104480
+ * MintToPoolEvent publicNote.
104481
+ * @member {string} publicNote
104482
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104483
+ * @instance
104484
+ */
104485
+ MintToPoolEvent.prototype.publicNote = "";
104486
+
104487
+ /**
104488
+ * Creates a new MintToPoolEvent instance using the specified properties.
104489
+ * @function create
104490
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104491
+ * @static
104492
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent=} [properties] Properties to set
104493
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent instance
104494
+ */
104495
+ MintToPoolEvent.create = function create(properties) {
104496
+ return new MintToPoolEvent(properties);
104497
+ };
104498
+
104499
+ /**
104500
+ * Encodes the specified MintToPoolEvent message. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify|verify} messages.
104501
+ * @function encode
104502
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104503
+ * @static
104504
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent} message MintToPoolEvent message or plain object to encode
104505
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104506
+ * @returns {$protobuf.Writer} Writer
104507
+ */
104508
+ MintToPoolEvent.encode = function encode(message, writer) {
104509
+ if (!writer)
104510
+ writer = $Writer.create();
104511
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
104512
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
104513
+ if (message.actionsDigest != null && Object.hasOwnProperty.call(message, "actionsDigest"))
104514
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actionsDigest);
104515
+ if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
104516
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
104517
+ return writer;
104518
+ };
104519
+
104520
+ /**
104521
+ * Encodes the specified MintToPoolEvent message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify|verify} messages.
104522
+ * @function encodeDelimited
104523
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104524
+ * @static
104525
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent} message MintToPoolEvent message or plain object to encode
104526
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104527
+ * @returns {$protobuf.Writer} Writer
104528
+ */
104529
+ MintToPoolEvent.encodeDelimited = function encodeDelimited(message, writer) {
104530
+ return this.encode(message, writer).ldelim();
104531
+ };
104532
+
104533
+ /**
104534
+ * Decodes a MintToPoolEvent message from the specified reader or buffer.
104535
+ * @function decode
104536
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104537
+ * @static
104538
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104539
+ * @param {number} [length] Message length if known beforehand
104540
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
104541
+ * @throws {Error} If the payload is not a reader or valid buffer
104542
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104543
+ */
104544
+ MintToPoolEvent.decode = function decode(reader, length) {
104545
+ if (!(reader instanceof $Reader))
104546
+ reader = $Reader.create(reader);
104547
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent();
104548
+ while (reader.pos < end) {
104549
+ var tag = reader.uint32();
104550
+ switch (tag >>> 3) {
104551
+ case 1:
104552
+ message.amount = reader.uint64();
104553
+ break;
104554
+ case 2:
104555
+ message.actionsDigest = reader.bytes();
104556
+ break;
104557
+ case 3:
104558
+ message.publicNote = reader.string();
104559
+ break;
104560
+ default:
104561
+ reader.skipType(tag & 7);
104562
+ break;
104563
+ }
104564
+ }
104565
+ return message;
104566
+ };
104567
+
104568
+ /**
104569
+ * Decodes a MintToPoolEvent message from the specified reader or buffer, length delimited.
104570
+ * @function decodeDelimited
104571
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104572
+ * @static
104573
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104574
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
104575
+ * @throws {Error} If the payload is not a reader or valid buffer
104576
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104577
+ */
104578
+ MintToPoolEvent.decodeDelimited = function decodeDelimited(reader) {
104579
+ if (!(reader instanceof $Reader))
104580
+ reader = new $Reader(reader);
104581
+ return this.decode(reader, reader.uint32());
104582
+ };
104583
+
104584
+ /**
104585
+ * Verifies a MintToPoolEvent message.
104586
+ * @function verify
104587
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104588
+ * @static
104589
+ * @param {Object.<string,*>} message Plain object to verify
104590
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104591
+ */
104592
+ MintToPoolEvent.verify = function verify(message) {
104593
+ if (typeof message !== "object" || message === null)
104594
+ return "object expected";
104595
+ if (message.amount != null && message.hasOwnProperty("amount"))
104596
+ if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
104597
+ return "amount: integer|Long expected";
104598
+ if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
104599
+ if (!(message.actionsDigest && typeof message.actionsDigest.length === "number" || $util.isString(message.actionsDigest)))
104600
+ return "actionsDigest: buffer expected";
104601
+ if (message.publicNote != null && message.hasOwnProperty("publicNote"))
104602
+ if (!$util.isString(message.publicNote))
104603
+ return "publicNote: string expected";
104604
+ return null;
104605
+ };
104606
+
104607
+ /**
104608
+ * Creates a MintToPoolEvent message from a plain object. Also converts values to their respective internal types.
104609
+ * @function fromObject
104610
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104611
+ * @static
104612
+ * @param {Object.<string,*>} object Plain object
104613
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} MintToPoolEvent
104614
+ */
104615
+ MintToPoolEvent.fromObject = function fromObject(object) {
104616
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent)
104617
+ return object;
104618
+ var message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent();
104619
+ if (object.amount != null)
104620
+ if ($util.Long)
104621
+ (message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
104622
+ else if (typeof object.amount === "string")
104623
+ message.amount = parseInt(object.amount, 10);
104624
+ else if (typeof object.amount === "number")
104625
+ message.amount = object.amount;
104626
+ else if (typeof object.amount === "object")
104627
+ message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
104628
+ if (object.actionsDigest != null)
104629
+ if (typeof object.actionsDigest === "string")
104630
+ $util.base64.decode(object.actionsDigest, message.actionsDigest = $util.newBuffer($util.base64.length(object.actionsDigest)), 0);
104631
+ else if (object.actionsDigest.length >= 0)
104632
+ message.actionsDigest = object.actionsDigest;
104633
+ if (object.publicNote != null)
104634
+ message.publicNote = String(object.publicNote);
104635
+ return message;
104636
+ };
104637
+
104638
+ /**
104639
+ * Creates a plain object from a MintToPoolEvent message. Also converts values to other types if specified.
104640
+ * @function toObject
104641
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104642
+ * @static
104643
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent} message MintToPoolEvent
104644
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
104645
+ * @returns {Object.<string,*>} Plain object
104646
+ */
104647
+ MintToPoolEvent.toObject = function toObject(message, options) {
104648
+ if (!options)
104649
+ options = {};
104650
+ var object = {};
104651
+ if (options.defaults) {
104652
+ if ($util.Long) {
104653
+ var long = new $util.Long(0, 0, true);
104654
+ object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104655
+ } else
104656
+ object.amount = options.longs === String ? "0" : 0;
104657
+ if (options.bytes === String)
104658
+ object.actionsDigest = "";
104659
+ else {
104660
+ object.actionsDigest = [];
104661
+ if (options.bytes !== Array)
104662
+ object.actionsDigest = $util.newBuffer(object.actionsDigest);
104663
+ }
104664
+ object.publicNote = "";
104665
+ }
104666
+ if (message.amount != null && message.hasOwnProperty("amount"))
104667
+ if (typeof message.amount === "number")
104668
+ object.amount = options.longs === String ? String(message.amount) : message.amount;
104669
+ else
104670
+ object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
104671
+ if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
104672
+ object.actionsDigest = options.bytes === String ? $util.base64.encode(message.actionsDigest, 0, message.actionsDigest.length) : options.bytes === Array ? Array.prototype.slice.call(message.actionsDigest) : message.actionsDigest;
104673
+ if (message.publicNote != null && message.hasOwnProperty("publicNote"))
104674
+ object.publicNote = message.publicNote;
104675
+ return object;
104676
+ };
104677
+
104678
+ /**
104679
+ * Converts this MintToPoolEvent to JSON.
104680
+ * @function toJSON
104681
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent
104682
+ * @instance
104683
+ * @returns {Object.<string,*>} JSON object
104684
+ */
104685
+ MintToPoolEvent.prototype.toJSON = function toJSON() {
104686
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
104687
+ };
104688
+
104689
+ return MintToPoolEvent;
104690
+ })();
104691
+
104692
+ GetGroupActionsResponseV0.BurnFromPoolEvent = (function() {
104693
+
104694
+ /**
104695
+ * Properties of a BurnFromPoolEvent.
104696
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
104697
+ * @interface IBurnFromPoolEvent
104698
+ * @property {number|Long|null} [amount] BurnFromPoolEvent amount
104699
+ * @property {Uint8Array|null} [actionsDigest] BurnFromPoolEvent actionsDigest
104700
+ * @property {string|null} [publicNote] BurnFromPoolEvent publicNote
104701
+ */
104702
+
104703
+ /**
104704
+ * Constructs a new BurnFromPoolEvent.
104705
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0
104706
+ * @classdesc Represents a BurnFromPoolEvent.
104707
+ * @implements IBurnFromPoolEvent
104708
+ * @constructor
104709
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent=} [properties] Properties to set
104710
+ */
104711
+ function BurnFromPoolEvent(properties) {
104712
+ if (properties)
104713
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
104714
+ if (properties[keys[i]] != null)
104715
+ this[keys[i]] = properties[keys[i]];
104716
+ }
104717
+
104718
+ /**
104719
+ * BurnFromPoolEvent amount.
104720
+ * @member {number|Long} amount
104721
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104722
+ * @instance
104723
+ */
104724
+ BurnFromPoolEvent.prototype.amount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
104725
+
104726
+ /**
104727
+ * BurnFromPoolEvent actionsDigest.
104728
+ * @member {Uint8Array} actionsDigest
104729
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104730
+ * @instance
104731
+ */
104732
+ BurnFromPoolEvent.prototype.actionsDigest = $util.newBuffer([]);
104733
+
104734
+ /**
104735
+ * BurnFromPoolEvent publicNote.
104736
+ * @member {string} publicNote
104737
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104738
+ * @instance
104739
+ */
104740
+ BurnFromPoolEvent.prototype.publicNote = "";
104741
+
104742
+ /**
104743
+ * Creates a new BurnFromPoolEvent instance using the specified properties.
104744
+ * @function create
104745
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104746
+ * @static
104747
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent=} [properties] Properties to set
104748
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent instance
104749
+ */
104750
+ BurnFromPoolEvent.create = function create(properties) {
104751
+ return new BurnFromPoolEvent(properties);
104752
+ };
104753
+
104754
+ /**
104755
+ * Encodes the specified BurnFromPoolEvent message. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify|verify} messages.
104756
+ * @function encode
104757
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104758
+ * @static
104759
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent} message BurnFromPoolEvent message or plain object to encode
104760
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104761
+ * @returns {$protobuf.Writer} Writer
104762
+ */
104763
+ BurnFromPoolEvent.encode = function encode(message, writer) {
104764
+ if (!writer)
104765
+ writer = $Writer.create();
104766
+ if (message.amount != null && Object.hasOwnProperty.call(message, "amount"))
104767
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.amount);
104768
+ if (message.actionsDigest != null && Object.hasOwnProperty.call(message, "actionsDigest"))
104769
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.actionsDigest);
104770
+ if (message.publicNote != null && Object.hasOwnProperty.call(message, "publicNote"))
104771
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.publicNote);
104772
+ return writer;
104773
+ };
104774
+
104775
+ /**
104776
+ * Encodes the specified BurnFromPoolEvent message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify|verify} messages.
104777
+ * @function encodeDelimited
104778
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104779
+ * @static
104780
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent} message BurnFromPoolEvent message or plain object to encode
104781
+ * @param {$protobuf.Writer} [writer] Writer to encode to
104782
+ * @returns {$protobuf.Writer} Writer
104783
+ */
104784
+ BurnFromPoolEvent.encodeDelimited = function encodeDelimited(message, writer) {
104785
+ return this.encode(message, writer).ldelim();
104786
+ };
104787
+
104788
+ /**
104789
+ * Decodes a BurnFromPoolEvent message from the specified reader or buffer.
104790
+ * @function decode
104791
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104792
+ * @static
104793
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104794
+ * @param {number} [length] Message length if known beforehand
104795
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
104796
+ * @throws {Error} If the payload is not a reader or valid buffer
104797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104798
+ */
104799
+ BurnFromPoolEvent.decode = function decode(reader, length) {
104800
+ if (!(reader instanceof $Reader))
104801
+ reader = $Reader.create(reader);
104802
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent();
104803
+ while (reader.pos < end) {
104804
+ var tag = reader.uint32();
104805
+ switch (tag >>> 3) {
104806
+ case 1:
104807
+ message.amount = reader.uint64();
104808
+ break;
104809
+ case 2:
104810
+ message.actionsDigest = reader.bytes();
104811
+ break;
104812
+ case 3:
104813
+ message.publicNote = reader.string();
104814
+ break;
104815
+ default:
104816
+ reader.skipType(tag & 7);
104817
+ break;
104818
+ }
104819
+ }
104820
+ return message;
104821
+ };
104822
+
104823
+ /**
104824
+ * Decodes a BurnFromPoolEvent message from the specified reader or buffer, length delimited.
104825
+ * @function decodeDelimited
104826
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104827
+ * @static
104828
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
104829
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
104830
+ * @throws {Error} If the payload is not a reader or valid buffer
104831
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104832
+ */
104833
+ BurnFromPoolEvent.decodeDelimited = function decodeDelimited(reader) {
104834
+ if (!(reader instanceof $Reader))
104835
+ reader = new $Reader(reader);
104836
+ return this.decode(reader, reader.uint32());
104837
+ };
104838
+
104839
+ /**
104840
+ * Verifies a BurnFromPoolEvent message.
104841
+ * @function verify
104842
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104843
+ * @static
104844
+ * @param {Object.<string,*>} message Plain object to verify
104845
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
104846
+ */
104847
+ BurnFromPoolEvent.verify = function verify(message) {
104848
+ if (typeof message !== "object" || message === null)
104849
+ return "object expected";
104850
+ if (message.amount != null && message.hasOwnProperty("amount"))
104851
+ if (!$util.isInteger(message.amount) && !(message.amount && $util.isInteger(message.amount.low) && $util.isInteger(message.amount.high)))
104852
+ return "amount: integer|Long expected";
104853
+ if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
104854
+ if (!(message.actionsDigest && typeof message.actionsDigest.length === "number" || $util.isString(message.actionsDigest)))
104855
+ return "actionsDigest: buffer expected";
104856
+ if (message.publicNote != null && message.hasOwnProperty("publicNote"))
104857
+ if (!$util.isString(message.publicNote))
104858
+ return "publicNote: string expected";
104859
+ return null;
104860
+ };
104861
+
104862
+ /**
104863
+ * Creates a BurnFromPoolEvent message from a plain object. Also converts values to their respective internal types.
104864
+ * @function fromObject
104865
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104866
+ * @static
104867
+ * @param {Object.<string,*>} object Plain object
104868
+ * @returns {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} BurnFromPoolEvent
104869
+ */
104870
+ BurnFromPoolEvent.fromObject = function fromObject(object) {
104871
+ if (object instanceof $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent)
104872
+ return object;
104873
+ var message = new $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent();
104874
+ if (object.amount != null)
104875
+ if ($util.Long)
104876
+ (message.amount = $util.Long.fromValue(object.amount)).unsigned = true;
104877
+ else if (typeof object.amount === "string")
104878
+ message.amount = parseInt(object.amount, 10);
104879
+ else if (typeof object.amount === "number")
104880
+ message.amount = object.amount;
104881
+ else if (typeof object.amount === "object")
104882
+ message.amount = new $util.LongBits(object.amount.low >>> 0, object.amount.high >>> 0).toNumber(true);
104883
+ if (object.actionsDigest != null)
104884
+ if (typeof object.actionsDigest === "string")
104885
+ $util.base64.decode(object.actionsDigest, message.actionsDigest = $util.newBuffer($util.base64.length(object.actionsDigest)), 0);
104886
+ else if (object.actionsDigest.length >= 0)
104887
+ message.actionsDigest = object.actionsDigest;
104888
+ if (object.publicNote != null)
104889
+ message.publicNote = String(object.publicNote);
104890
+ return message;
104891
+ };
104892
+
104893
+ /**
104894
+ * Creates a plain object from a BurnFromPoolEvent message. Also converts values to other types if specified.
104895
+ * @function toObject
104896
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104897
+ * @static
104898
+ * @param {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent} message BurnFromPoolEvent
104899
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
104900
+ * @returns {Object.<string,*>} Plain object
104901
+ */
104902
+ BurnFromPoolEvent.toObject = function toObject(message, options) {
104903
+ if (!options)
104904
+ options = {};
104905
+ var object = {};
104906
+ if (options.defaults) {
104907
+ if ($util.Long) {
104908
+ var long = new $util.Long(0, 0, true);
104909
+ object.amount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
104910
+ } else
104911
+ object.amount = options.longs === String ? "0" : 0;
104912
+ if (options.bytes === String)
104913
+ object.actionsDigest = "";
104914
+ else {
104915
+ object.actionsDigest = [];
104916
+ if (options.bytes !== Array)
104917
+ object.actionsDigest = $util.newBuffer(object.actionsDigest);
104918
+ }
104919
+ object.publicNote = "";
104920
+ }
104921
+ if (message.amount != null && message.hasOwnProperty("amount"))
104922
+ if (typeof message.amount === "number")
104923
+ object.amount = options.longs === String ? String(message.amount) : message.amount;
104924
+ else
104925
+ object.amount = options.longs === String ? $util.Long.prototype.toString.call(message.amount) : options.longs === Number ? new $util.LongBits(message.amount.low >>> 0, message.amount.high >>> 0).toNumber(true) : message.amount;
104926
+ if (message.actionsDigest != null && message.hasOwnProperty("actionsDigest"))
104927
+ object.actionsDigest = options.bytes === String ? $util.base64.encode(message.actionsDigest, 0, message.actionsDigest.length) : options.bytes === Array ? Array.prototype.slice.call(message.actionsDigest) : message.actionsDigest;
104928
+ if (message.publicNote != null && message.hasOwnProperty("publicNote"))
104929
+ object.publicNote = message.publicNote;
104930
+ return object;
104931
+ };
104932
+
104933
+ /**
104934
+ * Converts this BurnFromPoolEvent to JSON.
104935
+ * @function toJSON
104936
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent
104937
+ * @instance
104938
+ * @returns {Object.<string,*>} JSON object
104939
+ */
104940
+ BurnFromPoolEvent.prototype.toJSON = function toJSON() {
104941
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
104942
+ };
104943
+
104944
+ return BurnFromPoolEvent;
104945
+ })();
104946
+
104437
104947
  GetGroupActionsResponseV0.GroupActionEvent = (function() {
104438
104948
 
104439
104949
  /**
@@ -105541,6 +106051,8 @@ $root.org = (function() {
105541
106051
  * @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IEmergencyActionEvent|null} [emergencyAction] TokenEvent emergencyAction
105542
106052
  * @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ITokenConfigUpdateEvent|null} [tokenConfigUpdate] TokenEvent tokenConfigUpdate
105543
106053
  * @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IUpdateDirectPurchasePriceEvent|null} [updatePrice] TokenEvent updatePrice
106054
+ * @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent|null} [mintToPool] TokenEvent mintToPool
106055
+ * @property {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent|null} [burnFromPool] TokenEvent burnFromPool
105544
106056
  */
105545
106057
 
105546
106058
  /**
@@ -105622,17 +106134,33 @@ $root.org = (function() {
105622
106134
  */
105623
106135
  TokenEvent.prototype.updatePrice = null;
105624
106136
 
106137
+ /**
106138
+ * TokenEvent mintToPool.
106139
+ * @member {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IMintToPoolEvent|null|undefined} mintToPool
106140
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
106141
+ * @instance
106142
+ */
106143
+ TokenEvent.prototype.mintToPool = null;
106144
+
106145
+ /**
106146
+ * TokenEvent burnFromPool.
106147
+ * @member {org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.IBurnFromPoolEvent|null|undefined} burnFromPool
106148
+ * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
106149
+ * @instance
106150
+ */
106151
+ TokenEvent.prototype.burnFromPool = null;
106152
+
105625
106153
  // OneOf field names bound to virtual getters and setters
105626
106154
  var $oneOfFields;
105627
106155
 
105628
106156
  /**
105629
106157
  * TokenEvent type.
105630
- * @member {"mint"|"burn"|"freeze"|"unfreeze"|"destroyFrozenFunds"|"emergencyAction"|"tokenConfigUpdate"|"updatePrice"|undefined} type
106158
+ * @member {"mint"|"burn"|"freeze"|"unfreeze"|"destroyFrozenFunds"|"emergencyAction"|"tokenConfigUpdate"|"updatePrice"|"mintToPool"|"burnFromPool"|undefined} type
105631
106159
  * @memberof org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent
105632
106160
  * @instance
105633
106161
  */
105634
106162
  Object.defineProperty(TokenEvent.prototype, "type", {
105635
- get: $util.oneOfGetter($oneOfFields = ["mint", "burn", "freeze", "unfreeze", "destroyFrozenFunds", "emergencyAction", "tokenConfigUpdate", "updatePrice"]),
106163
+ get: $util.oneOfGetter($oneOfFields = ["mint", "burn", "freeze", "unfreeze", "destroyFrozenFunds", "emergencyAction", "tokenConfigUpdate", "updatePrice", "mintToPool", "burnFromPool"]),
105636
106164
  set: $util.oneOfSetter($oneOfFields)
105637
106165
  });
105638
106166
 
@@ -105676,6 +106204,10 @@ $root.org = (function() {
105676
106204
  $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenConfigUpdateEvent.encode(message.tokenConfigUpdate, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
105677
106205
  if (message.updatePrice != null && Object.hasOwnProperty.call(message, "updatePrice"))
105678
106206
  $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.encode(message.updatePrice, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
106207
+ if (message.mintToPool != null && Object.hasOwnProperty.call(message, "mintToPool"))
106208
+ $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.encode(message.mintToPool, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
106209
+ if (message.burnFromPool != null && Object.hasOwnProperty.call(message, "burnFromPool"))
106210
+ $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.encode(message.burnFromPool, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
105679
106211
  return writer;
105680
106212
  };
105681
106213
 
@@ -105734,6 +106266,12 @@ $root.org = (function() {
105734
106266
  case 8:
105735
106267
  message.updatePrice = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.decode(reader, reader.uint32());
105736
106268
  break;
106269
+ case 9:
106270
+ message.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.decode(reader, reader.uint32());
106271
+ break;
106272
+ case 10:
106273
+ message.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.decode(reader, reader.uint32());
106274
+ break;
105737
106275
  default:
105738
106276
  reader.skipType(tag & 7);
105739
106277
  break;
@@ -105848,6 +106386,26 @@ $root.org = (function() {
105848
106386
  return "updatePrice." + error;
105849
106387
  }
105850
106388
  }
106389
+ if (message.mintToPool != null && message.hasOwnProperty("mintToPool")) {
106390
+ if (properties.type === 1)
106391
+ return "type: multiple values";
106392
+ properties.type = 1;
106393
+ {
106394
+ var error = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.verify(message.mintToPool);
106395
+ if (error)
106396
+ return "mintToPool." + error;
106397
+ }
106398
+ }
106399
+ if (message.burnFromPool != null && message.hasOwnProperty("burnFromPool")) {
106400
+ if (properties.type === 1)
106401
+ return "type: multiple values";
106402
+ properties.type = 1;
106403
+ {
106404
+ var error = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.verify(message.burnFromPool);
106405
+ if (error)
106406
+ return "burnFromPool." + error;
106407
+ }
106408
+ }
105851
106409
  return null;
105852
106410
  };
105853
106411
 
@@ -105903,6 +106461,16 @@ $root.org = (function() {
105903
106461
  throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.updatePrice: object expected");
105904
106462
  message.updatePrice = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.fromObject(object.updatePrice);
105905
106463
  }
106464
+ if (object.mintToPool != null) {
106465
+ if (typeof object.mintToPool !== "object")
106466
+ throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.mintToPool: object expected");
106467
+ message.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.fromObject(object.mintToPool);
106468
+ }
106469
+ if (object.burnFromPool != null) {
106470
+ if (typeof object.burnFromPool !== "object")
106471
+ throw TypeError(".org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEvent.burnFromPool: object expected");
106472
+ message.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.fromObject(object.burnFromPool);
106473
+ }
105906
106474
  return message;
105907
106475
  };
105908
106476
 
@@ -105959,6 +106527,16 @@ $root.org = (function() {
105959
106527
  if (options.oneofs)
105960
106528
  object.type = "updatePrice";
105961
106529
  }
106530
+ if (message.mintToPool != null && message.hasOwnProperty("mintToPool")) {
106531
+ object.mintToPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintToPoolEvent.toObject(message.mintToPool, options);
106532
+ if (options.oneofs)
106533
+ object.type = "mintToPool";
106534
+ }
106535
+ if (message.burnFromPool != null && message.hasOwnProperty("burnFromPool")) {
106536
+ object.burnFromPool = $root.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnFromPoolEvent.toObject(message.burnFromPool, options);
106537
+ if (options.oneofs)
106538
+ object.type = "burnFromPool";
106539
+ }
105962
106540
  return object;
105963
106541
  };
105964
106542
 
@@ -116058,6 +116636,7 @@ $root.org = (function() {
116058
116636
  * @property {number|Long|null} [startIndex] GetShieldedEncryptedNotesRequestV0 startIndex
116059
116637
  * @property {number|null} [count] GetShieldedEncryptedNotesRequestV0 count
116060
116638
  * @property {boolean|null} [prove] GetShieldedEncryptedNotesRequestV0 prove
116639
+ * @property {Uint8Array|null} [tokenId] GetShieldedEncryptedNotesRequestV0 tokenId
116061
116640
  */
116062
116641
 
116063
116642
  /**
@@ -116099,6 +116678,14 @@ $root.org = (function() {
116099
116678
  */
116100
116679
  GetShieldedEncryptedNotesRequestV0.prototype.prove = false;
116101
116680
 
116681
+ /**
116682
+ * GetShieldedEncryptedNotesRequestV0 tokenId.
116683
+ * @member {Uint8Array} tokenId
116684
+ * @memberof org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0
116685
+ * @instance
116686
+ */
116687
+ GetShieldedEncryptedNotesRequestV0.prototype.tokenId = $util.newBuffer([]);
116688
+
116102
116689
  /**
116103
116690
  * Creates a new GetShieldedEncryptedNotesRequestV0 instance using the specified properties.
116104
116691
  * @function create
@@ -116129,6 +116716,8 @@ $root.org = (function() {
116129
116716
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.count);
116130
116717
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
116131
116718
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.prove);
116719
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
116720
+ writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.tokenId);
116132
116721
  return writer;
116133
116722
  };
116134
116723
 
@@ -116172,6 +116761,9 @@ $root.org = (function() {
116172
116761
  case 3:
116173
116762
  message.prove = reader.bool();
116174
116763
  break;
116764
+ case 4:
116765
+ message.tokenId = reader.bytes();
116766
+ break;
116175
116767
  default:
116176
116768
  reader.skipType(tag & 7);
116177
116769
  break;
@@ -116216,6 +116808,9 @@ $root.org = (function() {
116216
116808
  if (message.prove != null && message.hasOwnProperty("prove"))
116217
116809
  if (typeof message.prove !== "boolean")
116218
116810
  return "prove: boolean expected";
116811
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
116812
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
116813
+ return "tokenId: buffer expected";
116219
116814
  return null;
116220
116815
  };
116221
116816
 
@@ -116244,6 +116839,11 @@ $root.org = (function() {
116244
116839
  message.count = object.count >>> 0;
116245
116840
  if (object.prove != null)
116246
116841
  message.prove = Boolean(object.prove);
116842
+ if (object.tokenId != null)
116843
+ if (typeof object.tokenId === "string")
116844
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
116845
+ else if (object.tokenId.length >= 0)
116846
+ message.tokenId = object.tokenId;
116247
116847
  return message;
116248
116848
  };
116249
116849
 
@@ -116268,6 +116868,13 @@ $root.org = (function() {
116268
116868
  object.startIndex = options.longs === String ? "0" : 0;
116269
116869
  object.count = 0;
116270
116870
  object.prove = false;
116871
+ if (options.bytes === String)
116872
+ object.tokenId = "";
116873
+ else {
116874
+ object.tokenId = [];
116875
+ if (options.bytes !== Array)
116876
+ object.tokenId = $util.newBuffer(object.tokenId);
116877
+ }
116271
116878
  }
116272
116879
  if (message.startIndex != null && message.hasOwnProperty("startIndex"))
116273
116880
  if (typeof message.startIndex === "number")
@@ -116278,6 +116885,8 @@ $root.org = (function() {
116278
116885
  object.count = message.count;
116279
116886
  if (message.prove != null && message.hasOwnProperty("prove"))
116280
116887
  object.prove = message.prove;
116888
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
116889
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
116281
116890
  return object;
116282
116891
  };
116283
116892
 
@@ -117495,6 +118104,7 @@ $root.org = (function() {
117495
118104
  * @memberof org.dash.platform.dapi.v0.GetShieldedAnchorsRequest
117496
118105
  * @interface IGetShieldedAnchorsRequestV0
117497
118106
  * @property {boolean|null} [prove] GetShieldedAnchorsRequestV0 prove
118107
+ * @property {Uint8Array|null} [tokenId] GetShieldedAnchorsRequestV0 tokenId
117498
118108
  */
117499
118109
 
117500
118110
  /**
@@ -117520,6 +118130,14 @@ $root.org = (function() {
117520
118130
  */
117521
118131
  GetShieldedAnchorsRequestV0.prototype.prove = false;
117522
118132
 
118133
+ /**
118134
+ * GetShieldedAnchorsRequestV0 tokenId.
118135
+ * @member {Uint8Array} tokenId
118136
+ * @memberof org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0
118137
+ * @instance
118138
+ */
118139
+ GetShieldedAnchorsRequestV0.prototype.tokenId = $util.newBuffer([]);
118140
+
117523
118141
  /**
117524
118142
  * Creates a new GetShieldedAnchorsRequestV0 instance using the specified properties.
117525
118143
  * @function create
@@ -117546,6 +118164,8 @@ $root.org = (function() {
117546
118164
  writer = $Writer.create();
117547
118165
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
117548
118166
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
118167
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
118168
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
117549
118169
  return writer;
117550
118170
  };
117551
118171
 
@@ -117583,6 +118203,9 @@ $root.org = (function() {
117583
118203
  case 1:
117584
118204
  message.prove = reader.bool();
117585
118205
  break;
118206
+ case 2:
118207
+ message.tokenId = reader.bytes();
118208
+ break;
117586
118209
  default:
117587
118210
  reader.skipType(tag & 7);
117588
118211
  break;
@@ -117621,6 +118244,9 @@ $root.org = (function() {
117621
118244
  if (message.prove != null && message.hasOwnProperty("prove"))
117622
118245
  if (typeof message.prove !== "boolean")
117623
118246
  return "prove: boolean expected";
118247
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
118248
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
118249
+ return "tokenId: buffer expected";
117624
118250
  return null;
117625
118251
  };
117626
118252
 
@@ -117638,6 +118264,11 @@ $root.org = (function() {
117638
118264
  var message = new $root.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0();
117639
118265
  if (object.prove != null)
117640
118266
  message.prove = Boolean(object.prove);
118267
+ if (object.tokenId != null)
118268
+ if (typeof object.tokenId === "string")
118269
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
118270
+ else if (object.tokenId.length >= 0)
118271
+ message.tokenId = object.tokenId;
117641
118272
  return message;
117642
118273
  };
117643
118274
 
@@ -117654,10 +118285,20 @@ $root.org = (function() {
117654
118285
  if (!options)
117655
118286
  options = {};
117656
118287
  var object = {};
117657
- if (options.defaults)
118288
+ if (options.defaults) {
117658
118289
  object.prove = false;
118290
+ if (options.bytes === String)
118291
+ object.tokenId = "";
118292
+ else {
118293
+ object.tokenId = [];
118294
+ if (options.bytes !== Array)
118295
+ object.tokenId = $util.newBuffer(object.tokenId);
118296
+ }
118297
+ }
117659
118298
  if (message.prove != null && message.hasOwnProperty("prove"))
117660
118299
  object.prove = message.prove;
118300
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
118301
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
117661
118302
  return object;
117662
118303
  };
117663
118304
 
@@ -118583,6 +119224,7 @@ $root.org = (function() {
118583
119224
  * @memberof org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest
118584
119225
  * @interface IGetMostRecentShieldedAnchorRequestV0
118585
119226
  * @property {boolean|null} [prove] GetMostRecentShieldedAnchorRequestV0 prove
119227
+ * @property {Uint8Array|null} [tokenId] GetMostRecentShieldedAnchorRequestV0 tokenId
118586
119228
  */
118587
119229
 
118588
119230
  /**
@@ -118608,6 +119250,14 @@ $root.org = (function() {
118608
119250
  */
118609
119251
  GetMostRecentShieldedAnchorRequestV0.prototype.prove = false;
118610
119252
 
119253
+ /**
119254
+ * GetMostRecentShieldedAnchorRequestV0 tokenId.
119255
+ * @member {Uint8Array} tokenId
119256
+ * @memberof org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0
119257
+ * @instance
119258
+ */
119259
+ GetMostRecentShieldedAnchorRequestV0.prototype.tokenId = $util.newBuffer([]);
119260
+
118611
119261
  /**
118612
119262
  * Creates a new GetMostRecentShieldedAnchorRequestV0 instance using the specified properties.
118613
119263
  * @function create
@@ -118634,6 +119284,8 @@ $root.org = (function() {
118634
119284
  writer = $Writer.create();
118635
119285
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
118636
119286
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
119287
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
119288
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
118637
119289
  return writer;
118638
119290
  };
118639
119291
 
@@ -118671,6 +119323,9 @@ $root.org = (function() {
118671
119323
  case 1:
118672
119324
  message.prove = reader.bool();
118673
119325
  break;
119326
+ case 2:
119327
+ message.tokenId = reader.bytes();
119328
+ break;
118674
119329
  default:
118675
119330
  reader.skipType(tag & 7);
118676
119331
  break;
@@ -118709,6 +119364,9 @@ $root.org = (function() {
118709
119364
  if (message.prove != null && message.hasOwnProperty("prove"))
118710
119365
  if (typeof message.prove !== "boolean")
118711
119366
  return "prove: boolean expected";
119367
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
119368
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
119369
+ return "tokenId: buffer expected";
118712
119370
  return null;
118713
119371
  };
118714
119372
 
@@ -118726,6 +119384,11 @@ $root.org = (function() {
118726
119384
  var message = new $root.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0();
118727
119385
  if (object.prove != null)
118728
119386
  message.prove = Boolean(object.prove);
119387
+ if (object.tokenId != null)
119388
+ if (typeof object.tokenId === "string")
119389
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
119390
+ else if (object.tokenId.length >= 0)
119391
+ message.tokenId = object.tokenId;
118729
119392
  return message;
118730
119393
  };
118731
119394
 
@@ -118742,10 +119405,20 @@ $root.org = (function() {
118742
119405
  if (!options)
118743
119406
  options = {};
118744
119407
  var object = {};
118745
- if (options.defaults)
119408
+ if (options.defaults) {
118746
119409
  object.prove = false;
119410
+ if (options.bytes === String)
119411
+ object.tokenId = "";
119412
+ else {
119413
+ object.tokenId = [];
119414
+ if (options.bytes !== Array)
119415
+ object.tokenId = $util.newBuffer(object.tokenId);
119416
+ }
119417
+ }
118747
119418
  if (message.prove != null && message.hasOwnProperty("prove"))
118748
119419
  object.prove = message.prove;
119420
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
119421
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
118749
119422
  return object;
118750
119423
  };
118751
119424
 
@@ -119462,6 +120135,7 @@ $root.org = (function() {
119462
120135
  * @memberof org.dash.platform.dapi.v0.GetShieldedPoolStateRequest
119463
120136
  * @interface IGetShieldedPoolStateRequestV0
119464
120137
  * @property {boolean|null} [prove] GetShieldedPoolStateRequestV0 prove
120138
+ * @property {Uint8Array|null} [tokenId] GetShieldedPoolStateRequestV0 tokenId
119465
120139
  */
119466
120140
 
119467
120141
  /**
@@ -119487,6 +120161,14 @@ $root.org = (function() {
119487
120161
  */
119488
120162
  GetShieldedPoolStateRequestV0.prototype.prove = false;
119489
120163
 
120164
+ /**
120165
+ * GetShieldedPoolStateRequestV0 tokenId.
120166
+ * @member {Uint8Array} tokenId
120167
+ * @memberof org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0
120168
+ * @instance
120169
+ */
120170
+ GetShieldedPoolStateRequestV0.prototype.tokenId = $util.newBuffer([]);
120171
+
119490
120172
  /**
119491
120173
  * Creates a new GetShieldedPoolStateRequestV0 instance using the specified properties.
119492
120174
  * @function create
@@ -119513,6 +120195,8 @@ $root.org = (function() {
119513
120195
  writer = $Writer.create();
119514
120196
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
119515
120197
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
120198
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
120199
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
119516
120200
  return writer;
119517
120201
  };
119518
120202
 
@@ -119550,6 +120234,9 @@ $root.org = (function() {
119550
120234
  case 1:
119551
120235
  message.prove = reader.bool();
119552
120236
  break;
120237
+ case 2:
120238
+ message.tokenId = reader.bytes();
120239
+ break;
119553
120240
  default:
119554
120241
  reader.skipType(tag & 7);
119555
120242
  break;
@@ -119588,6 +120275,9 @@ $root.org = (function() {
119588
120275
  if (message.prove != null && message.hasOwnProperty("prove"))
119589
120276
  if (typeof message.prove !== "boolean")
119590
120277
  return "prove: boolean expected";
120278
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
120279
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
120280
+ return "tokenId: buffer expected";
119591
120281
  return null;
119592
120282
  };
119593
120283
 
@@ -119605,6 +120295,11 @@ $root.org = (function() {
119605
120295
  var message = new $root.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0();
119606
120296
  if (object.prove != null)
119607
120297
  message.prove = Boolean(object.prove);
120298
+ if (object.tokenId != null)
120299
+ if (typeof object.tokenId === "string")
120300
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
120301
+ else if (object.tokenId.length >= 0)
120302
+ message.tokenId = object.tokenId;
119608
120303
  return message;
119609
120304
  };
119610
120305
 
@@ -119621,10 +120316,20 @@ $root.org = (function() {
119621
120316
  if (!options)
119622
120317
  options = {};
119623
120318
  var object = {};
119624
- if (options.defaults)
120319
+ if (options.defaults) {
119625
120320
  object.prove = false;
120321
+ if (options.bytes === String)
120322
+ object.tokenId = "";
120323
+ else {
120324
+ object.tokenId = [];
120325
+ if (options.bytes !== Array)
120326
+ object.tokenId = $util.newBuffer(object.tokenId);
120327
+ }
120328
+ }
119626
120329
  if (message.prove != null && message.hasOwnProperty("prove"))
119627
120330
  object.prove = message.prove;
120331
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
120332
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
119628
120333
  return object;
119629
120334
  };
119630
120335
 
@@ -120348,6 +121053,7 @@ $root.org = (function() {
120348
121053
  * @memberof org.dash.platform.dapi.v0.GetShieldedNotesCountRequest
120349
121054
  * @interface IGetShieldedNotesCountRequestV0
120350
121055
  * @property {boolean|null} [prove] GetShieldedNotesCountRequestV0 prove
121056
+ * @property {Uint8Array|null} [tokenId] GetShieldedNotesCountRequestV0 tokenId
120351
121057
  */
120352
121058
 
120353
121059
  /**
@@ -120373,6 +121079,14 @@ $root.org = (function() {
120373
121079
  */
120374
121080
  GetShieldedNotesCountRequestV0.prototype.prove = false;
120375
121081
 
121082
+ /**
121083
+ * GetShieldedNotesCountRequestV0 tokenId.
121084
+ * @member {Uint8Array} tokenId
121085
+ * @memberof org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0
121086
+ * @instance
121087
+ */
121088
+ GetShieldedNotesCountRequestV0.prototype.tokenId = $util.newBuffer([]);
121089
+
120376
121090
  /**
120377
121091
  * Creates a new GetShieldedNotesCountRequestV0 instance using the specified properties.
120378
121092
  * @function create
@@ -120399,6 +121113,8 @@ $root.org = (function() {
120399
121113
  writer = $Writer.create();
120400
121114
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
120401
121115
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.prove);
121116
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
121117
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.tokenId);
120402
121118
  return writer;
120403
121119
  };
120404
121120
 
@@ -120436,6 +121152,9 @@ $root.org = (function() {
120436
121152
  case 1:
120437
121153
  message.prove = reader.bool();
120438
121154
  break;
121155
+ case 2:
121156
+ message.tokenId = reader.bytes();
121157
+ break;
120439
121158
  default:
120440
121159
  reader.skipType(tag & 7);
120441
121160
  break;
@@ -120474,6 +121193,9 @@ $root.org = (function() {
120474
121193
  if (message.prove != null && message.hasOwnProperty("prove"))
120475
121194
  if (typeof message.prove !== "boolean")
120476
121195
  return "prove: boolean expected";
121196
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
121197
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
121198
+ return "tokenId: buffer expected";
120477
121199
  return null;
120478
121200
  };
120479
121201
 
@@ -120491,6 +121213,11 @@ $root.org = (function() {
120491
121213
  var message = new $root.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0();
120492
121214
  if (object.prove != null)
120493
121215
  message.prove = Boolean(object.prove);
121216
+ if (object.tokenId != null)
121217
+ if (typeof object.tokenId === "string")
121218
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
121219
+ else if (object.tokenId.length >= 0)
121220
+ message.tokenId = object.tokenId;
120494
121221
  return message;
120495
121222
  };
120496
121223
 
@@ -120507,10 +121234,20 @@ $root.org = (function() {
120507
121234
  if (!options)
120508
121235
  options = {};
120509
121236
  var object = {};
120510
- if (options.defaults)
121237
+ if (options.defaults) {
120511
121238
  object.prove = false;
121239
+ if (options.bytes === String)
121240
+ object.tokenId = "";
121241
+ else {
121242
+ object.tokenId = [];
121243
+ if (options.bytes !== Array)
121244
+ object.tokenId = $util.newBuffer(object.tokenId);
121245
+ }
121246
+ }
120512
121247
  if (message.prove != null && message.hasOwnProperty("prove"))
120513
121248
  object.prove = message.prove;
121249
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
121250
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
120514
121251
  return object;
120515
121252
  };
120516
121253
 
@@ -121235,6 +121972,7 @@ $root.org = (function() {
121235
121972
  * @interface IGetShieldedNullifiersRequestV0
121236
121973
  * @property {Array.<Uint8Array>|null} [nullifiers] GetShieldedNullifiersRequestV0 nullifiers
121237
121974
  * @property {boolean|null} [prove] GetShieldedNullifiersRequestV0 prove
121975
+ * @property {Uint8Array|null} [tokenId] GetShieldedNullifiersRequestV0 tokenId
121238
121976
  */
121239
121977
 
121240
121978
  /**
@@ -121269,6 +122007,14 @@ $root.org = (function() {
121269
122007
  */
121270
122008
  GetShieldedNullifiersRequestV0.prototype.prove = false;
121271
122009
 
122010
+ /**
122011
+ * GetShieldedNullifiersRequestV0 tokenId.
122012
+ * @member {Uint8Array} tokenId
122013
+ * @memberof org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0
122014
+ * @instance
122015
+ */
122016
+ GetShieldedNullifiersRequestV0.prototype.tokenId = $util.newBuffer([]);
122017
+
121272
122018
  /**
121273
122019
  * Creates a new GetShieldedNullifiersRequestV0 instance using the specified properties.
121274
122020
  * @function create
@@ -121298,6 +122044,8 @@ $root.org = (function() {
121298
122044
  writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.nullifiers[i]);
121299
122045
  if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
121300
122046
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
122047
+ if (message.tokenId != null && Object.hasOwnProperty.call(message, "tokenId"))
122048
+ writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.tokenId);
121301
122049
  return writer;
121302
122050
  };
121303
122051
 
@@ -121340,6 +122088,9 @@ $root.org = (function() {
121340
122088
  case 2:
121341
122089
  message.prove = reader.bool();
121342
122090
  break;
122091
+ case 3:
122092
+ message.tokenId = reader.bytes();
122093
+ break;
121343
122094
  default:
121344
122095
  reader.skipType(tag & 7);
121345
122096
  break;
@@ -121385,6 +122136,9 @@ $root.org = (function() {
121385
122136
  if (message.prove != null && message.hasOwnProperty("prove"))
121386
122137
  if (typeof message.prove !== "boolean")
121387
122138
  return "prove: boolean expected";
122139
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
122140
+ if (!(message.tokenId && typeof message.tokenId.length === "number" || $util.isString(message.tokenId)))
122141
+ return "tokenId: buffer expected";
121388
122142
  return null;
121389
122143
  };
121390
122144
 
@@ -121412,6 +122166,11 @@ $root.org = (function() {
121412
122166
  }
121413
122167
  if (object.prove != null)
121414
122168
  message.prove = Boolean(object.prove);
122169
+ if (object.tokenId != null)
122170
+ if (typeof object.tokenId === "string")
122171
+ $util.base64.decode(object.tokenId, message.tokenId = $util.newBuffer($util.base64.length(object.tokenId)), 0);
122172
+ else if (object.tokenId.length >= 0)
122173
+ message.tokenId = object.tokenId;
121415
122174
  return message;
121416
122175
  };
121417
122176
 
@@ -121430,8 +122189,16 @@ $root.org = (function() {
121430
122189
  var object = {};
121431
122190
  if (options.arrays || options.defaults)
121432
122191
  object.nullifiers = [];
121433
- if (options.defaults)
122192
+ if (options.defaults) {
121434
122193
  object.prove = false;
122194
+ if (options.bytes === String)
122195
+ object.tokenId = "";
122196
+ else {
122197
+ object.tokenId = [];
122198
+ if (options.bytes !== Array)
122199
+ object.tokenId = $util.newBuffer(object.tokenId);
122200
+ }
122201
+ }
121435
122202
  if (message.nullifiers && message.nullifiers.length) {
121436
122203
  object.nullifiers = [];
121437
122204
  for (var j = 0; j < message.nullifiers.length; ++j)
@@ -121439,6 +122206,8 @@ $root.org = (function() {
121439
122206
  }
121440
122207
  if (message.prove != null && message.hasOwnProperty("prove"))
121441
122208
  object.prove = message.prove;
122209
+ if (message.tokenId != null && message.hasOwnProperty("tokenId"))
122210
+ object.tokenId = options.bytes === String ? $util.base64.encode(message.tokenId, 0, message.tokenId.length) : options.bytes === Array ? Array.prototype.slice.call(message.tokenId) : message.tokenId;
121442
122211
  return object;
121443
122212
  };
121444
122213