@dashevo/dapi-grpc 3.0.0-dev.9 → 3.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clients/drive/v0/nodejs/drive_pbjs.js +734 -7
- package/clients/platform/v0/nodejs/platform_pbjs.js +734 -7
- package/clients/platform/v0/nodejs/platform_protoc.js +678 -12
- package/clients/platform/v0/web/platform_pb.d.ts +91 -4
- package/clients/platform/v0/web/platform_pb.js +678 -12
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +26 -1
- package/src/drive/client/org.dash.platform.dapi.v0.rs +49 -1
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +49 -1
- package/src/platform/client/org.dash.platform.dapi.v0.rs +49 -1
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +49 -1
|
@@ -80506,6 +80506,733 @@ $root.org = (function() {
|
|
|
80506
80506
|
return GetRecentAddressBalanceChangesResponse;
|
|
80507
80507
|
})();
|
|
80508
80508
|
|
|
80509
|
+
v0.BlockHeightCreditEntry = (function() {
|
|
80510
|
+
|
|
80511
|
+
/**
|
|
80512
|
+
* Properties of a BlockHeightCreditEntry.
|
|
80513
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80514
|
+
* @interface IBlockHeightCreditEntry
|
|
80515
|
+
* @property {number|Long|null} [blockHeight] BlockHeightCreditEntry blockHeight
|
|
80516
|
+
* @property {number|Long|null} [credits] BlockHeightCreditEntry credits
|
|
80517
|
+
*/
|
|
80518
|
+
|
|
80519
|
+
/**
|
|
80520
|
+
* Constructs a new BlockHeightCreditEntry.
|
|
80521
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80522
|
+
* @classdesc Represents a BlockHeightCreditEntry.
|
|
80523
|
+
* @implements IBlockHeightCreditEntry
|
|
80524
|
+
* @constructor
|
|
80525
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry=} [properties] Properties to set
|
|
80526
|
+
*/
|
|
80527
|
+
function BlockHeightCreditEntry(properties) {
|
|
80528
|
+
if (properties)
|
|
80529
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80530
|
+
if (properties[keys[i]] != null)
|
|
80531
|
+
this[keys[i]] = properties[keys[i]];
|
|
80532
|
+
}
|
|
80533
|
+
|
|
80534
|
+
/**
|
|
80535
|
+
* BlockHeightCreditEntry blockHeight.
|
|
80536
|
+
* @member {number|Long} blockHeight
|
|
80537
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80538
|
+
* @instance
|
|
80539
|
+
*/
|
|
80540
|
+
BlockHeightCreditEntry.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80541
|
+
|
|
80542
|
+
/**
|
|
80543
|
+
* BlockHeightCreditEntry credits.
|
|
80544
|
+
* @member {number|Long} credits
|
|
80545
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80546
|
+
* @instance
|
|
80547
|
+
*/
|
|
80548
|
+
BlockHeightCreditEntry.prototype.credits = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80549
|
+
|
|
80550
|
+
/**
|
|
80551
|
+
* Creates a new BlockHeightCreditEntry instance using the specified properties.
|
|
80552
|
+
* @function create
|
|
80553
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80554
|
+
* @static
|
|
80555
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry=} [properties] Properties to set
|
|
80556
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry instance
|
|
80557
|
+
*/
|
|
80558
|
+
BlockHeightCreditEntry.create = function create(properties) {
|
|
80559
|
+
return new BlockHeightCreditEntry(properties);
|
|
80560
|
+
};
|
|
80561
|
+
|
|
80562
|
+
/**
|
|
80563
|
+
* Encodes the specified BlockHeightCreditEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify|verify} messages.
|
|
80564
|
+
* @function encode
|
|
80565
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80566
|
+
* @static
|
|
80567
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry} message BlockHeightCreditEntry message or plain object to encode
|
|
80568
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80569
|
+
* @returns {$protobuf.Writer} Writer
|
|
80570
|
+
*/
|
|
80571
|
+
BlockHeightCreditEntry.encode = function encode(message, writer) {
|
|
80572
|
+
if (!writer)
|
|
80573
|
+
writer = $Writer.create();
|
|
80574
|
+
if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight"))
|
|
80575
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight);
|
|
80576
|
+
if (message.credits != null && Object.hasOwnProperty.call(message, "credits"))
|
|
80577
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.credits);
|
|
80578
|
+
return writer;
|
|
80579
|
+
};
|
|
80580
|
+
|
|
80581
|
+
/**
|
|
80582
|
+
* Encodes the specified BlockHeightCreditEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify|verify} messages.
|
|
80583
|
+
* @function encodeDelimited
|
|
80584
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80585
|
+
* @static
|
|
80586
|
+
* @param {org.dash.platform.dapi.v0.IBlockHeightCreditEntry} message BlockHeightCreditEntry message or plain object to encode
|
|
80587
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80588
|
+
* @returns {$protobuf.Writer} Writer
|
|
80589
|
+
*/
|
|
80590
|
+
BlockHeightCreditEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80591
|
+
return this.encode(message, writer).ldelim();
|
|
80592
|
+
};
|
|
80593
|
+
|
|
80594
|
+
/**
|
|
80595
|
+
* Decodes a BlockHeightCreditEntry message from the specified reader or buffer.
|
|
80596
|
+
* @function decode
|
|
80597
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80598
|
+
* @static
|
|
80599
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80600
|
+
* @param {number} [length] Message length if known beforehand
|
|
80601
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80602
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80603
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80604
|
+
*/
|
|
80605
|
+
BlockHeightCreditEntry.decode = function decode(reader, length) {
|
|
80606
|
+
if (!(reader instanceof $Reader))
|
|
80607
|
+
reader = $Reader.create(reader);
|
|
80608
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry();
|
|
80609
|
+
while (reader.pos < end) {
|
|
80610
|
+
var tag = reader.uint32();
|
|
80611
|
+
switch (tag >>> 3) {
|
|
80612
|
+
case 1:
|
|
80613
|
+
message.blockHeight = reader.uint64();
|
|
80614
|
+
break;
|
|
80615
|
+
case 2:
|
|
80616
|
+
message.credits = reader.uint64();
|
|
80617
|
+
break;
|
|
80618
|
+
default:
|
|
80619
|
+
reader.skipType(tag & 7);
|
|
80620
|
+
break;
|
|
80621
|
+
}
|
|
80622
|
+
}
|
|
80623
|
+
return message;
|
|
80624
|
+
};
|
|
80625
|
+
|
|
80626
|
+
/**
|
|
80627
|
+
* Decodes a BlockHeightCreditEntry message from the specified reader or buffer, length delimited.
|
|
80628
|
+
* @function decodeDelimited
|
|
80629
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80630
|
+
* @static
|
|
80631
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80632
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80633
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80634
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80635
|
+
*/
|
|
80636
|
+
BlockHeightCreditEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
80637
|
+
if (!(reader instanceof $Reader))
|
|
80638
|
+
reader = new $Reader(reader);
|
|
80639
|
+
return this.decode(reader, reader.uint32());
|
|
80640
|
+
};
|
|
80641
|
+
|
|
80642
|
+
/**
|
|
80643
|
+
* Verifies a BlockHeightCreditEntry message.
|
|
80644
|
+
* @function verify
|
|
80645
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80646
|
+
* @static
|
|
80647
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80648
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80649
|
+
*/
|
|
80650
|
+
BlockHeightCreditEntry.verify = function verify(message) {
|
|
80651
|
+
if (typeof message !== "object" || message === null)
|
|
80652
|
+
return "object expected";
|
|
80653
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
80654
|
+
if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high)))
|
|
80655
|
+
return "blockHeight: integer|Long expected";
|
|
80656
|
+
if (message.credits != null && message.hasOwnProperty("credits"))
|
|
80657
|
+
if (!$util.isInteger(message.credits) && !(message.credits && $util.isInteger(message.credits.low) && $util.isInteger(message.credits.high)))
|
|
80658
|
+
return "credits: integer|Long expected";
|
|
80659
|
+
return null;
|
|
80660
|
+
};
|
|
80661
|
+
|
|
80662
|
+
/**
|
|
80663
|
+
* Creates a BlockHeightCreditEntry message from a plain object. Also converts values to their respective internal types.
|
|
80664
|
+
* @function fromObject
|
|
80665
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80666
|
+
* @static
|
|
80667
|
+
* @param {Object.<string,*>} object Plain object
|
|
80668
|
+
* @returns {org.dash.platform.dapi.v0.BlockHeightCreditEntry} BlockHeightCreditEntry
|
|
80669
|
+
*/
|
|
80670
|
+
BlockHeightCreditEntry.fromObject = function fromObject(object) {
|
|
80671
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry)
|
|
80672
|
+
return object;
|
|
80673
|
+
var message = new $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry();
|
|
80674
|
+
if (object.blockHeight != null)
|
|
80675
|
+
if ($util.Long)
|
|
80676
|
+
(message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true;
|
|
80677
|
+
else if (typeof object.blockHeight === "string")
|
|
80678
|
+
message.blockHeight = parseInt(object.blockHeight, 10);
|
|
80679
|
+
else if (typeof object.blockHeight === "number")
|
|
80680
|
+
message.blockHeight = object.blockHeight;
|
|
80681
|
+
else if (typeof object.blockHeight === "object")
|
|
80682
|
+
message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true);
|
|
80683
|
+
if (object.credits != null)
|
|
80684
|
+
if ($util.Long)
|
|
80685
|
+
(message.credits = $util.Long.fromValue(object.credits)).unsigned = true;
|
|
80686
|
+
else if (typeof object.credits === "string")
|
|
80687
|
+
message.credits = parseInt(object.credits, 10);
|
|
80688
|
+
else if (typeof object.credits === "number")
|
|
80689
|
+
message.credits = object.credits;
|
|
80690
|
+
else if (typeof object.credits === "object")
|
|
80691
|
+
message.credits = new $util.LongBits(object.credits.low >>> 0, object.credits.high >>> 0).toNumber(true);
|
|
80692
|
+
return message;
|
|
80693
|
+
};
|
|
80694
|
+
|
|
80695
|
+
/**
|
|
80696
|
+
* Creates a plain object from a BlockHeightCreditEntry message. Also converts values to other types if specified.
|
|
80697
|
+
* @function toObject
|
|
80698
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80699
|
+
* @static
|
|
80700
|
+
* @param {org.dash.platform.dapi.v0.BlockHeightCreditEntry} message BlockHeightCreditEntry
|
|
80701
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80702
|
+
* @returns {Object.<string,*>} Plain object
|
|
80703
|
+
*/
|
|
80704
|
+
BlockHeightCreditEntry.toObject = function toObject(message, options) {
|
|
80705
|
+
if (!options)
|
|
80706
|
+
options = {};
|
|
80707
|
+
var object = {};
|
|
80708
|
+
if (options.defaults) {
|
|
80709
|
+
if ($util.Long) {
|
|
80710
|
+
var long = new $util.Long(0, 0, true);
|
|
80711
|
+
object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80712
|
+
} else
|
|
80713
|
+
object.blockHeight = options.longs === String ? "0" : 0;
|
|
80714
|
+
if ($util.Long) {
|
|
80715
|
+
var long = new $util.Long(0, 0, true);
|
|
80716
|
+
object.credits = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
80717
|
+
} else
|
|
80718
|
+
object.credits = options.longs === String ? "0" : 0;
|
|
80719
|
+
}
|
|
80720
|
+
if (message.blockHeight != null && message.hasOwnProperty("blockHeight"))
|
|
80721
|
+
if (typeof message.blockHeight === "number")
|
|
80722
|
+
object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight;
|
|
80723
|
+
else
|
|
80724
|
+
object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight;
|
|
80725
|
+
if (message.credits != null && message.hasOwnProperty("credits"))
|
|
80726
|
+
if (typeof message.credits === "number")
|
|
80727
|
+
object.credits = options.longs === String ? String(message.credits) : message.credits;
|
|
80728
|
+
else
|
|
80729
|
+
object.credits = options.longs === String ? $util.Long.prototype.toString.call(message.credits) : options.longs === Number ? new $util.LongBits(message.credits.low >>> 0, message.credits.high >>> 0).toNumber(true) : message.credits;
|
|
80730
|
+
return object;
|
|
80731
|
+
};
|
|
80732
|
+
|
|
80733
|
+
/**
|
|
80734
|
+
* Converts this BlockHeightCreditEntry to JSON.
|
|
80735
|
+
* @function toJSON
|
|
80736
|
+
* @memberof org.dash.platform.dapi.v0.BlockHeightCreditEntry
|
|
80737
|
+
* @instance
|
|
80738
|
+
* @returns {Object.<string,*>} JSON object
|
|
80739
|
+
*/
|
|
80740
|
+
BlockHeightCreditEntry.prototype.toJSON = function toJSON() {
|
|
80741
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
80742
|
+
};
|
|
80743
|
+
|
|
80744
|
+
return BlockHeightCreditEntry;
|
|
80745
|
+
})();
|
|
80746
|
+
|
|
80747
|
+
v0.CompactedAddressBalanceChange = (function() {
|
|
80748
|
+
|
|
80749
|
+
/**
|
|
80750
|
+
* Properties of a CompactedAddressBalanceChange.
|
|
80751
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80752
|
+
* @interface ICompactedAddressBalanceChange
|
|
80753
|
+
* @property {Uint8Array|null} [address] CompactedAddressBalanceChange address
|
|
80754
|
+
* @property {number|Long|null} [setCredits] CompactedAddressBalanceChange setCredits
|
|
80755
|
+
* @property {org.dash.platform.dapi.v0.IAddToCreditsOperations|null} [addToCreditsOperations] CompactedAddressBalanceChange addToCreditsOperations
|
|
80756
|
+
*/
|
|
80757
|
+
|
|
80758
|
+
/**
|
|
80759
|
+
* Constructs a new CompactedAddressBalanceChange.
|
|
80760
|
+
* @memberof org.dash.platform.dapi.v0
|
|
80761
|
+
* @classdesc Represents a CompactedAddressBalanceChange.
|
|
80762
|
+
* @implements ICompactedAddressBalanceChange
|
|
80763
|
+
* @constructor
|
|
80764
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange=} [properties] Properties to set
|
|
80765
|
+
*/
|
|
80766
|
+
function CompactedAddressBalanceChange(properties) {
|
|
80767
|
+
if (properties)
|
|
80768
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
80769
|
+
if (properties[keys[i]] != null)
|
|
80770
|
+
this[keys[i]] = properties[keys[i]];
|
|
80771
|
+
}
|
|
80772
|
+
|
|
80773
|
+
/**
|
|
80774
|
+
* CompactedAddressBalanceChange address.
|
|
80775
|
+
* @member {Uint8Array} address
|
|
80776
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80777
|
+
* @instance
|
|
80778
|
+
*/
|
|
80779
|
+
CompactedAddressBalanceChange.prototype.address = $util.newBuffer([]);
|
|
80780
|
+
|
|
80781
|
+
/**
|
|
80782
|
+
* CompactedAddressBalanceChange setCredits.
|
|
80783
|
+
* @member {number|Long} setCredits
|
|
80784
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80785
|
+
* @instance
|
|
80786
|
+
*/
|
|
80787
|
+
CompactedAddressBalanceChange.prototype.setCredits = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
80788
|
+
|
|
80789
|
+
/**
|
|
80790
|
+
* CompactedAddressBalanceChange addToCreditsOperations.
|
|
80791
|
+
* @member {org.dash.platform.dapi.v0.IAddToCreditsOperations|null|undefined} addToCreditsOperations
|
|
80792
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80793
|
+
* @instance
|
|
80794
|
+
*/
|
|
80795
|
+
CompactedAddressBalanceChange.prototype.addToCreditsOperations = null;
|
|
80796
|
+
|
|
80797
|
+
// OneOf field names bound to virtual getters and setters
|
|
80798
|
+
var $oneOfFields;
|
|
80799
|
+
|
|
80800
|
+
/**
|
|
80801
|
+
* CompactedAddressBalanceChange operation.
|
|
80802
|
+
* @member {"setCredits"|"addToCreditsOperations"|undefined} operation
|
|
80803
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80804
|
+
* @instance
|
|
80805
|
+
*/
|
|
80806
|
+
Object.defineProperty(CompactedAddressBalanceChange.prototype, "operation", {
|
|
80807
|
+
get: $util.oneOfGetter($oneOfFields = ["setCredits", "addToCreditsOperations"]),
|
|
80808
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
80809
|
+
});
|
|
80810
|
+
|
|
80811
|
+
/**
|
|
80812
|
+
* Creates a new CompactedAddressBalanceChange instance using the specified properties.
|
|
80813
|
+
* @function create
|
|
80814
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80815
|
+
* @static
|
|
80816
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange=} [properties] Properties to set
|
|
80817
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange instance
|
|
80818
|
+
*/
|
|
80819
|
+
CompactedAddressBalanceChange.create = function create(properties) {
|
|
80820
|
+
return new CompactedAddressBalanceChange(properties);
|
|
80821
|
+
};
|
|
80822
|
+
|
|
80823
|
+
/**
|
|
80824
|
+
* Encodes the specified CompactedAddressBalanceChange message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify|verify} messages.
|
|
80825
|
+
* @function encode
|
|
80826
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80827
|
+
* @static
|
|
80828
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange} message CompactedAddressBalanceChange message or plain object to encode
|
|
80829
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80830
|
+
* @returns {$protobuf.Writer} Writer
|
|
80831
|
+
*/
|
|
80832
|
+
CompactedAddressBalanceChange.encode = function encode(message, writer) {
|
|
80833
|
+
if (!writer)
|
|
80834
|
+
writer = $Writer.create();
|
|
80835
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
80836
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
|
|
80837
|
+
if (message.setCredits != null && Object.hasOwnProperty.call(message, "setCredits"))
|
|
80838
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.setCredits);
|
|
80839
|
+
if (message.addToCreditsOperations != null && Object.hasOwnProperty.call(message, "addToCreditsOperations"))
|
|
80840
|
+
$root.org.dash.platform.dapi.v0.AddToCreditsOperations.encode(message.addToCreditsOperations, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80841
|
+
return writer;
|
|
80842
|
+
};
|
|
80843
|
+
|
|
80844
|
+
/**
|
|
80845
|
+
* Encodes the specified CompactedAddressBalanceChange message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify|verify} messages.
|
|
80846
|
+
* @function encodeDelimited
|
|
80847
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80848
|
+
* @static
|
|
80849
|
+
* @param {org.dash.platform.dapi.v0.ICompactedAddressBalanceChange} message CompactedAddressBalanceChange message or plain object to encode
|
|
80850
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
80851
|
+
* @returns {$protobuf.Writer} Writer
|
|
80852
|
+
*/
|
|
80853
|
+
CompactedAddressBalanceChange.encodeDelimited = function encodeDelimited(message, writer) {
|
|
80854
|
+
return this.encode(message, writer).ldelim();
|
|
80855
|
+
};
|
|
80856
|
+
|
|
80857
|
+
/**
|
|
80858
|
+
* Decodes a CompactedAddressBalanceChange message from the specified reader or buffer.
|
|
80859
|
+
* @function decode
|
|
80860
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80861
|
+
* @static
|
|
80862
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80863
|
+
* @param {number} [length] Message length if known beforehand
|
|
80864
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80865
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80866
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80867
|
+
*/
|
|
80868
|
+
CompactedAddressBalanceChange.decode = function decode(reader, length) {
|
|
80869
|
+
if (!(reader instanceof $Reader))
|
|
80870
|
+
reader = $Reader.create(reader);
|
|
80871
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange();
|
|
80872
|
+
while (reader.pos < end) {
|
|
80873
|
+
var tag = reader.uint32();
|
|
80874
|
+
switch (tag >>> 3) {
|
|
80875
|
+
case 1:
|
|
80876
|
+
message.address = reader.bytes();
|
|
80877
|
+
break;
|
|
80878
|
+
case 2:
|
|
80879
|
+
message.setCredits = reader.uint64();
|
|
80880
|
+
break;
|
|
80881
|
+
case 3:
|
|
80882
|
+
message.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.decode(reader, reader.uint32());
|
|
80883
|
+
break;
|
|
80884
|
+
default:
|
|
80885
|
+
reader.skipType(tag & 7);
|
|
80886
|
+
break;
|
|
80887
|
+
}
|
|
80888
|
+
}
|
|
80889
|
+
return message;
|
|
80890
|
+
};
|
|
80891
|
+
|
|
80892
|
+
/**
|
|
80893
|
+
* Decodes a CompactedAddressBalanceChange message from the specified reader or buffer, length delimited.
|
|
80894
|
+
* @function decodeDelimited
|
|
80895
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80896
|
+
* @static
|
|
80897
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
80898
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
80900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
80901
|
+
*/
|
|
80902
|
+
CompactedAddressBalanceChange.decodeDelimited = function decodeDelimited(reader) {
|
|
80903
|
+
if (!(reader instanceof $Reader))
|
|
80904
|
+
reader = new $Reader(reader);
|
|
80905
|
+
return this.decode(reader, reader.uint32());
|
|
80906
|
+
};
|
|
80907
|
+
|
|
80908
|
+
/**
|
|
80909
|
+
* Verifies a CompactedAddressBalanceChange message.
|
|
80910
|
+
* @function verify
|
|
80911
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80912
|
+
* @static
|
|
80913
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
80914
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
80915
|
+
*/
|
|
80916
|
+
CompactedAddressBalanceChange.verify = function verify(message) {
|
|
80917
|
+
if (typeof message !== "object" || message === null)
|
|
80918
|
+
return "object expected";
|
|
80919
|
+
var properties = {};
|
|
80920
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
80921
|
+
if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
|
|
80922
|
+
return "address: buffer expected";
|
|
80923
|
+
if (message.setCredits != null && message.hasOwnProperty("setCredits")) {
|
|
80924
|
+
properties.operation = 1;
|
|
80925
|
+
if (!$util.isInteger(message.setCredits) && !(message.setCredits && $util.isInteger(message.setCredits.low) && $util.isInteger(message.setCredits.high)))
|
|
80926
|
+
return "setCredits: integer|Long expected";
|
|
80927
|
+
}
|
|
80928
|
+
if (message.addToCreditsOperations != null && message.hasOwnProperty("addToCreditsOperations")) {
|
|
80929
|
+
if (properties.operation === 1)
|
|
80930
|
+
return "operation: multiple values";
|
|
80931
|
+
properties.operation = 1;
|
|
80932
|
+
{
|
|
80933
|
+
var error = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.verify(message.addToCreditsOperations);
|
|
80934
|
+
if (error)
|
|
80935
|
+
return "addToCreditsOperations." + error;
|
|
80936
|
+
}
|
|
80937
|
+
}
|
|
80938
|
+
return null;
|
|
80939
|
+
};
|
|
80940
|
+
|
|
80941
|
+
/**
|
|
80942
|
+
* Creates a CompactedAddressBalanceChange message from a plain object. Also converts values to their respective internal types.
|
|
80943
|
+
* @function fromObject
|
|
80944
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80945
|
+
* @static
|
|
80946
|
+
* @param {Object.<string,*>} object Plain object
|
|
80947
|
+
* @returns {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} CompactedAddressBalanceChange
|
|
80948
|
+
*/
|
|
80949
|
+
CompactedAddressBalanceChange.fromObject = function fromObject(object) {
|
|
80950
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange)
|
|
80951
|
+
return object;
|
|
80952
|
+
var message = new $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange();
|
|
80953
|
+
if (object.address != null)
|
|
80954
|
+
if (typeof object.address === "string")
|
|
80955
|
+
$util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
|
|
80956
|
+
else if (object.address.length >= 0)
|
|
80957
|
+
message.address = object.address;
|
|
80958
|
+
if (object.setCredits != null)
|
|
80959
|
+
if ($util.Long)
|
|
80960
|
+
(message.setCredits = $util.Long.fromValue(object.setCredits)).unsigned = true;
|
|
80961
|
+
else if (typeof object.setCredits === "string")
|
|
80962
|
+
message.setCredits = parseInt(object.setCredits, 10);
|
|
80963
|
+
else if (typeof object.setCredits === "number")
|
|
80964
|
+
message.setCredits = object.setCredits;
|
|
80965
|
+
else if (typeof object.setCredits === "object")
|
|
80966
|
+
message.setCredits = new $util.LongBits(object.setCredits.low >>> 0, object.setCredits.high >>> 0).toNumber(true);
|
|
80967
|
+
if (object.addToCreditsOperations != null) {
|
|
80968
|
+
if (typeof object.addToCreditsOperations !== "object")
|
|
80969
|
+
throw TypeError(".org.dash.platform.dapi.v0.CompactedAddressBalanceChange.addToCreditsOperations: object expected");
|
|
80970
|
+
message.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.fromObject(object.addToCreditsOperations);
|
|
80971
|
+
}
|
|
80972
|
+
return message;
|
|
80973
|
+
};
|
|
80974
|
+
|
|
80975
|
+
/**
|
|
80976
|
+
* Creates a plain object from a CompactedAddressBalanceChange message. Also converts values to other types if specified.
|
|
80977
|
+
* @function toObject
|
|
80978
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
80979
|
+
* @static
|
|
80980
|
+
* @param {org.dash.platform.dapi.v0.CompactedAddressBalanceChange} message CompactedAddressBalanceChange
|
|
80981
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
80982
|
+
* @returns {Object.<string,*>} Plain object
|
|
80983
|
+
*/
|
|
80984
|
+
CompactedAddressBalanceChange.toObject = function toObject(message, options) {
|
|
80985
|
+
if (!options)
|
|
80986
|
+
options = {};
|
|
80987
|
+
var object = {};
|
|
80988
|
+
if (options.defaults)
|
|
80989
|
+
if (options.bytes === String)
|
|
80990
|
+
object.address = "";
|
|
80991
|
+
else {
|
|
80992
|
+
object.address = [];
|
|
80993
|
+
if (options.bytes !== Array)
|
|
80994
|
+
object.address = $util.newBuffer(object.address);
|
|
80995
|
+
}
|
|
80996
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
80997
|
+
object.address = options.bytes === String ? $util.base64.encode(message.address, 0, message.address.length) : options.bytes === Array ? Array.prototype.slice.call(message.address) : message.address;
|
|
80998
|
+
if (message.setCredits != null && message.hasOwnProperty("setCredits")) {
|
|
80999
|
+
if (typeof message.setCredits === "number")
|
|
81000
|
+
object.setCredits = options.longs === String ? String(message.setCredits) : message.setCredits;
|
|
81001
|
+
else
|
|
81002
|
+
object.setCredits = options.longs === String ? $util.Long.prototype.toString.call(message.setCredits) : options.longs === Number ? new $util.LongBits(message.setCredits.low >>> 0, message.setCredits.high >>> 0).toNumber(true) : message.setCredits;
|
|
81003
|
+
if (options.oneofs)
|
|
81004
|
+
object.operation = "setCredits";
|
|
81005
|
+
}
|
|
81006
|
+
if (message.addToCreditsOperations != null && message.hasOwnProperty("addToCreditsOperations")) {
|
|
81007
|
+
object.addToCreditsOperations = $root.org.dash.platform.dapi.v0.AddToCreditsOperations.toObject(message.addToCreditsOperations, options);
|
|
81008
|
+
if (options.oneofs)
|
|
81009
|
+
object.operation = "addToCreditsOperations";
|
|
81010
|
+
}
|
|
81011
|
+
return object;
|
|
81012
|
+
};
|
|
81013
|
+
|
|
81014
|
+
/**
|
|
81015
|
+
* Converts this CompactedAddressBalanceChange to JSON.
|
|
81016
|
+
* @function toJSON
|
|
81017
|
+
* @memberof org.dash.platform.dapi.v0.CompactedAddressBalanceChange
|
|
81018
|
+
* @instance
|
|
81019
|
+
* @returns {Object.<string,*>} JSON object
|
|
81020
|
+
*/
|
|
81021
|
+
CompactedAddressBalanceChange.prototype.toJSON = function toJSON() {
|
|
81022
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81023
|
+
};
|
|
81024
|
+
|
|
81025
|
+
return CompactedAddressBalanceChange;
|
|
81026
|
+
})();
|
|
81027
|
+
|
|
81028
|
+
v0.AddToCreditsOperations = (function() {
|
|
81029
|
+
|
|
81030
|
+
/**
|
|
81031
|
+
* Properties of an AddToCreditsOperations.
|
|
81032
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81033
|
+
* @interface IAddToCreditsOperations
|
|
81034
|
+
* @property {Array.<org.dash.platform.dapi.v0.IBlockHeightCreditEntry>|null} [entries] AddToCreditsOperations entries
|
|
81035
|
+
*/
|
|
81036
|
+
|
|
81037
|
+
/**
|
|
81038
|
+
* Constructs a new AddToCreditsOperations.
|
|
81039
|
+
* @memberof org.dash.platform.dapi.v0
|
|
81040
|
+
* @classdesc Represents an AddToCreditsOperations.
|
|
81041
|
+
* @implements IAddToCreditsOperations
|
|
81042
|
+
* @constructor
|
|
81043
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations=} [properties] Properties to set
|
|
81044
|
+
*/
|
|
81045
|
+
function AddToCreditsOperations(properties) {
|
|
81046
|
+
this.entries = [];
|
|
81047
|
+
if (properties)
|
|
81048
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81049
|
+
if (properties[keys[i]] != null)
|
|
81050
|
+
this[keys[i]] = properties[keys[i]];
|
|
81051
|
+
}
|
|
81052
|
+
|
|
81053
|
+
/**
|
|
81054
|
+
* AddToCreditsOperations entries.
|
|
81055
|
+
* @member {Array.<org.dash.platform.dapi.v0.IBlockHeightCreditEntry>} entries
|
|
81056
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81057
|
+
* @instance
|
|
81058
|
+
*/
|
|
81059
|
+
AddToCreditsOperations.prototype.entries = $util.emptyArray;
|
|
81060
|
+
|
|
81061
|
+
/**
|
|
81062
|
+
* Creates a new AddToCreditsOperations instance using the specified properties.
|
|
81063
|
+
* @function create
|
|
81064
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81065
|
+
* @static
|
|
81066
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations=} [properties] Properties to set
|
|
81067
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations instance
|
|
81068
|
+
*/
|
|
81069
|
+
AddToCreditsOperations.create = function create(properties) {
|
|
81070
|
+
return new AddToCreditsOperations(properties);
|
|
81071
|
+
};
|
|
81072
|
+
|
|
81073
|
+
/**
|
|
81074
|
+
* Encodes the specified AddToCreditsOperations message. Does not implicitly {@link org.dash.platform.dapi.v0.AddToCreditsOperations.verify|verify} messages.
|
|
81075
|
+
* @function encode
|
|
81076
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81077
|
+
* @static
|
|
81078
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations} message AddToCreditsOperations message or plain object to encode
|
|
81079
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81080
|
+
* @returns {$protobuf.Writer} Writer
|
|
81081
|
+
*/
|
|
81082
|
+
AddToCreditsOperations.encode = function encode(message, writer) {
|
|
81083
|
+
if (!writer)
|
|
81084
|
+
writer = $Writer.create();
|
|
81085
|
+
if (message.entries != null && message.entries.length)
|
|
81086
|
+
for (var i = 0; i < message.entries.length; ++i)
|
|
81087
|
+
$root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.encode(message.entries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81088
|
+
return writer;
|
|
81089
|
+
};
|
|
81090
|
+
|
|
81091
|
+
/**
|
|
81092
|
+
* Encodes the specified AddToCreditsOperations message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddToCreditsOperations.verify|verify} messages.
|
|
81093
|
+
* @function encodeDelimited
|
|
81094
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81095
|
+
* @static
|
|
81096
|
+
* @param {org.dash.platform.dapi.v0.IAddToCreditsOperations} message AddToCreditsOperations message or plain object to encode
|
|
81097
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81098
|
+
* @returns {$protobuf.Writer} Writer
|
|
81099
|
+
*/
|
|
81100
|
+
AddToCreditsOperations.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81101
|
+
return this.encode(message, writer).ldelim();
|
|
81102
|
+
};
|
|
81103
|
+
|
|
81104
|
+
/**
|
|
81105
|
+
* Decodes an AddToCreditsOperations message from the specified reader or buffer.
|
|
81106
|
+
* @function decode
|
|
81107
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81108
|
+
* @static
|
|
81109
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81110
|
+
* @param {number} [length] Message length if known beforehand
|
|
81111
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
81112
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81113
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81114
|
+
*/
|
|
81115
|
+
AddToCreditsOperations.decode = function decode(reader, length) {
|
|
81116
|
+
if (!(reader instanceof $Reader))
|
|
81117
|
+
reader = $Reader.create(reader);
|
|
81118
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddToCreditsOperations();
|
|
81119
|
+
while (reader.pos < end) {
|
|
81120
|
+
var tag = reader.uint32();
|
|
81121
|
+
switch (tag >>> 3) {
|
|
81122
|
+
case 1:
|
|
81123
|
+
if (!(message.entries && message.entries.length))
|
|
81124
|
+
message.entries = [];
|
|
81125
|
+
message.entries.push($root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.decode(reader, reader.uint32()));
|
|
81126
|
+
break;
|
|
81127
|
+
default:
|
|
81128
|
+
reader.skipType(tag & 7);
|
|
81129
|
+
break;
|
|
81130
|
+
}
|
|
81131
|
+
}
|
|
81132
|
+
return message;
|
|
81133
|
+
};
|
|
81134
|
+
|
|
81135
|
+
/**
|
|
81136
|
+
* Decodes an AddToCreditsOperations message from the specified reader or buffer, length delimited.
|
|
81137
|
+
* @function decodeDelimited
|
|
81138
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81139
|
+
* @static
|
|
81140
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81141
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
81142
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81143
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81144
|
+
*/
|
|
81145
|
+
AddToCreditsOperations.decodeDelimited = function decodeDelimited(reader) {
|
|
81146
|
+
if (!(reader instanceof $Reader))
|
|
81147
|
+
reader = new $Reader(reader);
|
|
81148
|
+
return this.decode(reader, reader.uint32());
|
|
81149
|
+
};
|
|
81150
|
+
|
|
81151
|
+
/**
|
|
81152
|
+
* Verifies an AddToCreditsOperations message.
|
|
81153
|
+
* @function verify
|
|
81154
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81155
|
+
* @static
|
|
81156
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81157
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81158
|
+
*/
|
|
81159
|
+
AddToCreditsOperations.verify = function verify(message) {
|
|
81160
|
+
if (typeof message !== "object" || message === null)
|
|
81161
|
+
return "object expected";
|
|
81162
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
81163
|
+
if (!Array.isArray(message.entries))
|
|
81164
|
+
return "entries: array expected";
|
|
81165
|
+
for (var i = 0; i < message.entries.length; ++i) {
|
|
81166
|
+
var error = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.verify(message.entries[i]);
|
|
81167
|
+
if (error)
|
|
81168
|
+
return "entries." + error;
|
|
81169
|
+
}
|
|
81170
|
+
}
|
|
81171
|
+
return null;
|
|
81172
|
+
};
|
|
81173
|
+
|
|
81174
|
+
/**
|
|
81175
|
+
* Creates an AddToCreditsOperations message from a plain object. Also converts values to their respective internal types.
|
|
81176
|
+
* @function fromObject
|
|
81177
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81178
|
+
* @static
|
|
81179
|
+
* @param {Object.<string,*>} object Plain object
|
|
81180
|
+
* @returns {org.dash.platform.dapi.v0.AddToCreditsOperations} AddToCreditsOperations
|
|
81181
|
+
*/
|
|
81182
|
+
AddToCreditsOperations.fromObject = function fromObject(object) {
|
|
81183
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddToCreditsOperations)
|
|
81184
|
+
return object;
|
|
81185
|
+
var message = new $root.org.dash.platform.dapi.v0.AddToCreditsOperations();
|
|
81186
|
+
if (object.entries) {
|
|
81187
|
+
if (!Array.isArray(object.entries))
|
|
81188
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddToCreditsOperations.entries: array expected");
|
|
81189
|
+
message.entries = [];
|
|
81190
|
+
for (var i = 0; i < object.entries.length; ++i) {
|
|
81191
|
+
if (typeof object.entries[i] !== "object")
|
|
81192
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddToCreditsOperations.entries: object expected");
|
|
81193
|
+
message.entries[i] = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.fromObject(object.entries[i]);
|
|
81194
|
+
}
|
|
81195
|
+
}
|
|
81196
|
+
return message;
|
|
81197
|
+
};
|
|
81198
|
+
|
|
81199
|
+
/**
|
|
81200
|
+
* Creates a plain object from an AddToCreditsOperations message. Also converts values to other types if specified.
|
|
81201
|
+
* @function toObject
|
|
81202
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81203
|
+
* @static
|
|
81204
|
+
* @param {org.dash.platform.dapi.v0.AddToCreditsOperations} message AddToCreditsOperations
|
|
81205
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81206
|
+
* @returns {Object.<string,*>} Plain object
|
|
81207
|
+
*/
|
|
81208
|
+
AddToCreditsOperations.toObject = function toObject(message, options) {
|
|
81209
|
+
if (!options)
|
|
81210
|
+
options = {};
|
|
81211
|
+
var object = {};
|
|
81212
|
+
if (options.arrays || options.defaults)
|
|
81213
|
+
object.entries = [];
|
|
81214
|
+
if (message.entries && message.entries.length) {
|
|
81215
|
+
object.entries = [];
|
|
81216
|
+
for (var j = 0; j < message.entries.length; ++j)
|
|
81217
|
+
object.entries[j] = $root.org.dash.platform.dapi.v0.BlockHeightCreditEntry.toObject(message.entries[j], options);
|
|
81218
|
+
}
|
|
81219
|
+
return object;
|
|
81220
|
+
};
|
|
81221
|
+
|
|
81222
|
+
/**
|
|
81223
|
+
* Converts this AddToCreditsOperations to JSON.
|
|
81224
|
+
* @function toJSON
|
|
81225
|
+
* @memberof org.dash.platform.dapi.v0.AddToCreditsOperations
|
|
81226
|
+
* @instance
|
|
81227
|
+
* @returns {Object.<string,*>} JSON object
|
|
81228
|
+
*/
|
|
81229
|
+
AddToCreditsOperations.prototype.toJSON = function toJSON() {
|
|
81230
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81231
|
+
};
|
|
81232
|
+
|
|
81233
|
+
return AddToCreditsOperations;
|
|
81234
|
+
})();
|
|
81235
|
+
|
|
80509
81236
|
v0.CompactedBlockAddressBalanceChanges = (function() {
|
|
80510
81237
|
|
|
80511
81238
|
/**
|
|
@@ -80514,7 +81241,7 @@ $root.org = (function() {
|
|
|
80514
81241
|
* @interface ICompactedBlockAddressBalanceChanges
|
|
80515
81242
|
* @property {number|Long|null} [startBlockHeight] CompactedBlockAddressBalanceChanges startBlockHeight
|
|
80516
81243
|
* @property {number|Long|null} [endBlockHeight] CompactedBlockAddressBalanceChanges endBlockHeight
|
|
80517
|
-
* @property {Array.<org.dash.platform.dapi.v0.
|
|
81244
|
+
* @property {Array.<org.dash.platform.dapi.v0.ICompactedAddressBalanceChange>|null} [changes] CompactedBlockAddressBalanceChanges changes
|
|
80518
81245
|
*/
|
|
80519
81246
|
|
|
80520
81247
|
/**
|
|
@@ -80551,7 +81278,7 @@ $root.org = (function() {
|
|
|
80551
81278
|
|
|
80552
81279
|
/**
|
|
80553
81280
|
* CompactedBlockAddressBalanceChanges changes.
|
|
80554
|
-
* @member {Array.<org.dash.platform.dapi.v0.
|
|
81281
|
+
* @member {Array.<org.dash.platform.dapi.v0.ICompactedAddressBalanceChange>} changes
|
|
80555
81282
|
* @memberof org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges
|
|
80556
81283
|
* @instance
|
|
80557
81284
|
*/
|
|
@@ -80587,7 +81314,7 @@ $root.org = (function() {
|
|
|
80587
81314
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight);
|
|
80588
81315
|
if (message.changes != null && message.changes.length)
|
|
80589
81316
|
for (var i = 0; i < message.changes.length; ++i)
|
|
80590
|
-
$root.org.dash.platform.dapi.v0.
|
|
81317
|
+
$root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.encode(message.changes[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
80591
81318
|
return writer;
|
|
80592
81319
|
};
|
|
80593
81320
|
|
|
@@ -80631,7 +81358,7 @@ $root.org = (function() {
|
|
|
80631
81358
|
case 3:
|
|
80632
81359
|
if (!(message.changes && message.changes.length))
|
|
80633
81360
|
message.changes = [];
|
|
80634
|
-
message.changes.push($root.org.dash.platform.dapi.v0.
|
|
81361
|
+
message.changes.push($root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.decode(reader, reader.uint32()));
|
|
80635
81362
|
break;
|
|
80636
81363
|
default:
|
|
80637
81364
|
reader.skipType(tag & 7);
|
|
@@ -80678,7 +81405,7 @@ $root.org = (function() {
|
|
|
80678
81405
|
if (!Array.isArray(message.changes))
|
|
80679
81406
|
return "changes: array expected";
|
|
80680
81407
|
for (var i = 0; i < message.changes.length; ++i) {
|
|
80681
|
-
var error = $root.org.dash.platform.dapi.v0.
|
|
81408
|
+
var error = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.verify(message.changes[i]);
|
|
80682
81409
|
if (error)
|
|
80683
81410
|
return "changes." + error;
|
|
80684
81411
|
}
|
|
@@ -80723,7 +81450,7 @@ $root.org = (function() {
|
|
|
80723
81450
|
for (var i = 0; i < object.changes.length; ++i) {
|
|
80724
81451
|
if (typeof object.changes[i] !== "object")
|
|
80725
81452
|
throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges.changes: object expected");
|
|
80726
|
-
message.changes[i] = $root.org.dash.platform.dapi.v0.
|
|
81453
|
+
message.changes[i] = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.fromObject(object.changes[i]);
|
|
80727
81454
|
}
|
|
80728
81455
|
}
|
|
80729
81456
|
return message;
|
|
@@ -80769,7 +81496,7 @@ $root.org = (function() {
|
|
|
80769
81496
|
if (message.changes && message.changes.length) {
|
|
80770
81497
|
object.changes = [];
|
|
80771
81498
|
for (var j = 0; j < message.changes.length; ++j)
|
|
80772
|
-
object.changes[j] = $root.org.dash.platform.dapi.v0.
|
|
81499
|
+
object.changes[j] = $root.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.toObject(message.changes[j], options);
|
|
80773
81500
|
}
|
|
80774
81501
|
return object;
|
|
80775
81502
|
};
|