@dashevo/dapi-grpc 2.2.0-dev.2 → 3.0.0-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +4 -3
- package/build.rs +64 -7
- package/clients/drive/v0/nodejs/drive_pbjs.js +4265 -0
- package/clients/platform/v0/nodejs/platform_pbjs.js +4265 -0
- package/clients/platform/v0/nodejs/platform_protoc.js +3954 -0
- package/clients/platform/v0/web/platform_pb.d.ts +526 -0
- package/clients/platform/v0/web/platform_pb.js +3954 -0
- package/clients/platform/v0/web/platform_pb_service.d.ts +76 -0
- package/clients/platform/v0/web/platform_pb_service.js +160 -0
- package/package.json +2 -2
- package/protos/platform/v0/platform.proto +92 -0
- package/src/core/client/org.dash.platform.dapi.v0.rs +29 -29
- package/src/core/wasm/org.dash.platform.dapi.v0.rs +29 -29
- package/src/drive/client/org.dash.platform.dapi.v0.rs +687 -302
- package/src/drive/client/org.dash.platform.drive.v0.rs +2 -2
- package/src/drive/wasm/org.dash.platform.dapi.v0.rs +687 -302
- package/src/drive/wasm/org.dash.platform.drive.v0.rs +2 -2
- package/src/lib.rs +3 -1
- package/src/platform/client/org.dash.platform.dapi.v0.rs +837 -424
- package/src/platform/versioning.rs +8 -0
- package/src/platform/wasm/org.dash.platform.dapi.v0.rs +837 -424
|
@@ -2145,6 +2145,138 @@ $root.org = (function() {
|
|
|
2145
2145
|
* @variation 2
|
|
2146
2146
|
*/
|
|
2147
2147
|
|
|
2148
|
+
/**
|
|
2149
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressInfo}.
|
|
2150
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2151
|
+
* @typedef getAddressInfoCallback
|
|
2152
|
+
* @type {function}
|
|
2153
|
+
* @param {Error|null} error Error, if any
|
|
2154
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse} [response] GetAddressInfoResponse
|
|
2155
|
+
*/
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* Calls getAddressInfo.
|
|
2159
|
+
* @function getAddressInfo
|
|
2160
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2161
|
+
* @instance
|
|
2162
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} request GetAddressInfoRequest message or plain object
|
|
2163
|
+
* @param {org.dash.platform.dapi.v0.Platform.getAddressInfoCallback} callback Node-style callback called with the error, if any, and GetAddressInfoResponse
|
|
2164
|
+
* @returns {undefined}
|
|
2165
|
+
* @variation 1
|
|
2166
|
+
*/
|
|
2167
|
+
Object.defineProperty(Platform.prototype.getAddressInfo = function getAddressInfo(request, callback) {
|
|
2168
|
+
return this.rpcCall(getAddressInfo, $root.org.dash.platform.dapi.v0.GetAddressInfoRequest, $root.org.dash.platform.dapi.v0.GetAddressInfoResponse, request, callback);
|
|
2169
|
+
}, "name", { value: "getAddressInfo" });
|
|
2170
|
+
|
|
2171
|
+
/**
|
|
2172
|
+
* Calls getAddressInfo.
|
|
2173
|
+
* @function getAddressInfo
|
|
2174
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2175
|
+
* @instance
|
|
2176
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} request GetAddressInfoRequest message or plain object
|
|
2177
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetAddressInfoResponse>} Promise
|
|
2178
|
+
* @variation 2
|
|
2179
|
+
*/
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesInfos}.
|
|
2183
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2184
|
+
* @typedef getAddressesInfosCallback
|
|
2185
|
+
* @type {function}
|
|
2186
|
+
* @param {Error|null} error Error, if any
|
|
2187
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse} [response] GetAddressesInfosResponse
|
|
2188
|
+
*/
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Calls getAddressesInfos.
|
|
2192
|
+
* @function getAddressesInfos
|
|
2193
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2194
|
+
* @instance
|
|
2195
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} request GetAddressesInfosRequest message or plain object
|
|
2196
|
+
* @param {org.dash.platform.dapi.v0.Platform.getAddressesInfosCallback} callback Node-style callback called with the error, if any, and GetAddressesInfosResponse
|
|
2197
|
+
* @returns {undefined}
|
|
2198
|
+
* @variation 1
|
|
2199
|
+
*/
|
|
2200
|
+
Object.defineProperty(Platform.prototype.getAddressesInfos = function getAddressesInfos(request, callback) {
|
|
2201
|
+
return this.rpcCall(getAddressesInfos, $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest, $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse, request, callback);
|
|
2202
|
+
}, "name", { value: "getAddressesInfos" });
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* Calls getAddressesInfos.
|
|
2206
|
+
* @function getAddressesInfos
|
|
2207
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2208
|
+
* @instance
|
|
2209
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} request GetAddressesInfosRequest message or plain object
|
|
2210
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetAddressesInfosResponse>} Promise
|
|
2211
|
+
* @variation 2
|
|
2212
|
+
*/
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesTrunkState}.
|
|
2216
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2217
|
+
* @typedef getAddressesTrunkStateCallback
|
|
2218
|
+
* @type {function}
|
|
2219
|
+
* @param {Error|null} error Error, if any
|
|
2220
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} [response] GetAddressesTrunkStateResponse
|
|
2221
|
+
*/
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* Calls getAddressesTrunkState.
|
|
2225
|
+
* @function getAddressesTrunkState
|
|
2226
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2227
|
+
* @instance
|
|
2228
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} request GetAddressesTrunkStateRequest message or plain object
|
|
2229
|
+
* @param {org.dash.platform.dapi.v0.Platform.getAddressesTrunkStateCallback} callback Node-style callback called with the error, if any, and GetAddressesTrunkStateResponse
|
|
2230
|
+
* @returns {undefined}
|
|
2231
|
+
* @variation 1
|
|
2232
|
+
*/
|
|
2233
|
+
Object.defineProperty(Platform.prototype.getAddressesTrunkState = function getAddressesTrunkState(request, callback) {
|
|
2234
|
+
return this.rpcCall(getAddressesTrunkState, $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest, $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse, request, callback);
|
|
2235
|
+
}, "name", { value: "getAddressesTrunkState" });
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* Calls getAddressesTrunkState.
|
|
2239
|
+
* @function getAddressesTrunkState
|
|
2240
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2241
|
+
* @instance
|
|
2242
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} request GetAddressesTrunkStateRequest message or plain object
|
|
2243
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse>} Promise
|
|
2244
|
+
* @variation 2
|
|
2245
|
+
*/
|
|
2246
|
+
|
|
2247
|
+
/**
|
|
2248
|
+
* Callback as used by {@link org.dash.platform.dapi.v0.Platform#getAddressesBranchState}.
|
|
2249
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2250
|
+
* @typedef getAddressesBranchStateCallback
|
|
2251
|
+
* @type {function}
|
|
2252
|
+
* @param {Error|null} error Error, if any
|
|
2253
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} [response] GetAddressesBranchStateResponse
|
|
2254
|
+
*/
|
|
2255
|
+
|
|
2256
|
+
/**
|
|
2257
|
+
* Calls getAddressesBranchState.
|
|
2258
|
+
* @function getAddressesBranchState
|
|
2259
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2260
|
+
* @instance
|
|
2261
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} request GetAddressesBranchStateRequest message or plain object
|
|
2262
|
+
* @param {org.dash.platform.dapi.v0.Platform.getAddressesBranchStateCallback} callback Node-style callback called with the error, if any, and GetAddressesBranchStateResponse
|
|
2263
|
+
* @returns {undefined}
|
|
2264
|
+
* @variation 1
|
|
2265
|
+
*/
|
|
2266
|
+
Object.defineProperty(Platform.prototype.getAddressesBranchState = function getAddressesBranchState(request, callback) {
|
|
2267
|
+
return this.rpcCall(getAddressesBranchState, $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest, $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse, request, callback);
|
|
2268
|
+
}, "name", { value: "getAddressesBranchState" });
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* Calls getAddressesBranchState.
|
|
2272
|
+
* @function getAddressesBranchState
|
|
2273
|
+
* @memberof org.dash.platform.dapi.v0.Platform
|
|
2274
|
+
* @instance
|
|
2275
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} request GetAddressesBranchStateRequest message or plain object
|
|
2276
|
+
* @returns {Promise<org.dash.platform.dapi.v0.GetAddressesBranchStateResponse>} Promise
|
|
2277
|
+
* @variation 2
|
|
2278
|
+
*/
|
|
2279
|
+
|
|
2148
2280
|
return Platform;
|
|
2149
2281
|
})();
|
|
2150
2282
|
|
|
@@ -74482,6 +74614,4139 @@ $root.org = (function() {
|
|
|
74482
74614
|
return GetGroupActionSignersResponse;
|
|
74483
74615
|
})();
|
|
74484
74616
|
|
|
74617
|
+
v0.GetAddressInfoRequest = (function() {
|
|
74618
|
+
|
|
74619
|
+
/**
|
|
74620
|
+
* Properties of a GetAddressInfoRequest.
|
|
74621
|
+
* @memberof org.dash.platform.dapi.v0
|
|
74622
|
+
* @interface IGetAddressInfoRequest
|
|
74623
|
+
* @property {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0|null} [v0] GetAddressInfoRequest v0
|
|
74624
|
+
*/
|
|
74625
|
+
|
|
74626
|
+
/**
|
|
74627
|
+
* Constructs a new GetAddressInfoRequest.
|
|
74628
|
+
* @memberof org.dash.platform.dapi.v0
|
|
74629
|
+
* @classdesc Represents a GetAddressInfoRequest.
|
|
74630
|
+
* @implements IGetAddressInfoRequest
|
|
74631
|
+
* @constructor
|
|
74632
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest=} [properties] Properties to set
|
|
74633
|
+
*/
|
|
74634
|
+
function GetAddressInfoRequest(properties) {
|
|
74635
|
+
if (properties)
|
|
74636
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
74637
|
+
if (properties[keys[i]] != null)
|
|
74638
|
+
this[keys[i]] = properties[keys[i]];
|
|
74639
|
+
}
|
|
74640
|
+
|
|
74641
|
+
/**
|
|
74642
|
+
* GetAddressInfoRequest v0.
|
|
74643
|
+
* @member {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0|null|undefined} v0
|
|
74644
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74645
|
+
* @instance
|
|
74646
|
+
*/
|
|
74647
|
+
GetAddressInfoRequest.prototype.v0 = null;
|
|
74648
|
+
|
|
74649
|
+
// OneOf field names bound to virtual getters and setters
|
|
74650
|
+
var $oneOfFields;
|
|
74651
|
+
|
|
74652
|
+
/**
|
|
74653
|
+
* GetAddressInfoRequest version.
|
|
74654
|
+
* @member {"v0"|undefined} version
|
|
74655
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74656
|
+
* @instance
|
|
74657
|
+
*/
|
|
74658
|
+
Object.defineProperty(GetAddressInfoRequest.prototype, "version", {
|
|
74659
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
74660
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
74661
|
+
});
|
|
74662
|
+
|
|
74663
|
+
/**
|
|
74664
|
+
* Creates a new GetAddressInfoRequest instance using the specified properties.
|
|
74665
|
+
* @function create
|
|
74666
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74667
|
+
* @static
|
|
74668
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest=} [properties] Properties to set
|
|
74669
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest instance
|
|
74670
|
+
*/
|
|
74671
|
+
GetAddressInfoRequest.create = function create(properties) {
|
|
74672
|
+
return new GetAddressInfoRequest(properties);
|
|
74673
|
+
};
|
|
74674
|
+
|
|
74675
|
+
/**
|
|
74676
|
+
* Encodes the specified GetAddressInfoRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.verify|verify} messages.
|
|
74677
|
+
* @function encode
|
|
74678
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74679
|
+
* @static
|
|
74680
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} message GetAddressInfoRequest message or plain object to encode
|
|
74681
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74682
|
+
* @returns {$protobuf.Writer} Writer
|
|
74683
|
+
*/
|
|
74684
|
+
GetAddressInfoRequest.encode = function encode(message, writer) {
|
|
74685
|
+
if (!writer)
|
|
74686
|
+
writer = $Writer.create();
|
|
74687
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
74688
|
+
$root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
74689
|
+
return writer;
|
|
74690
|
+
};
|
|
74691
|
+
|
|
74692
|
+
/**
|
|
74693
|
+
* Encodes the specified GetAddressInfoRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.verify|verify} messages.
|
|
74694
|
+
* @function encodeDelimited
|
|
74695
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74696
|
+
* @static
|
|
74697
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoRequest} message GetAddressInfoRequest message or plain object to encode
|
|
74698
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74699
|
+
* @returns {$protobuf.Writer} Writer
|
|
74700
|
+
*/
|
|
74701
|
+
GetAddressInfoRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
74702
|
+
return this.encode(message, writer).ldelim();
|
|
74703
|
+
};
|
|
74704
|
+
|
|
74705
|
+
/**
|
|
74706
|
+
* Decodes a GetAddressInfoRequest message from the specified reader or buffer.
|
|
74707
|
+
* @function decode
|
|
74708
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74709
|
+
* @static
|
|
74710
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74711
|
+
* @param {number} [length] Message length if known beforehand
|
|
74712
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
|
|
74713
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74714
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74715
|
+
*/
|
|
74716
|
+
GetAddressInfoRequest.decode = function decode(reader, length) {
|
|
74717
|
+
if (!(reader instanceof $Reader))
|
|
74718
|
+
reader = $Reader.create(reader);
|
|
74719
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest();
|
|
74720
|
+
while (reader.pos < end) {
|
|
74721
|
+
var tag = reader.uint32();
|
|
74722
|
+
switch (tag >>> 3) {
|
|
74723
|
+
case 1:
|
|
74724
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.decode(reader, reader.uint32());
|
|
74725
|
+
break;
|
|
74726
|
+
default:
|
|
74727
|
+
reader.skipType(tag & 7);
|
|
74728
|
+
break;
|
|
74729
|
+
}
|
|
74730
|
+
}
|
|
74731
|
+
return message;
|
|
74732
|
+
};
|
|
74733
|
+
|
|
74734
|
+
/**
|
|
74735
|
+
* Decodes a GetAddressInfoRequest message from the specified reader or buffer, length delimited.
|
|
74736
|
+
* @function decodeDelimited
|
|
74737
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74738
|
+
* @static
|
|
74739
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74740
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
|
|
74741
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74742
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74743
|
+
*/
|
|
74744
|
+
GetAddressInfoRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
74745
|
+
if (!(reader instanceof $Reader))
|
|
74746
|
+
reader = new $Reader(reader);
|
|
74747
|
+
return this.decode(reader, reader.uint32());
|
|
74748
|
+
};
|
|
74749
|
+
|
|
74750
|
+
/**
|
|
74751
|
+
* Verifies a GetAddressInfoRequest message.
|
|
74752
|
+
* @function verify
|
|
74753
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74754
|
+
* @static
|
|
74755
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
74756
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
74757
|
+
*/
|
|
74758
|
+
GetAddressInfoRequest.verify = function verify(message) {
|
|
74759
|
+
if (typeof message !== "object" || message === null)
|
|
74760
|
+
return "object expected";
|
|
74761
|
+
var properties = {};
|
|
74762
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
74763
|
+
properties.version = 1;
|
|
74764
|
+
{
|
|
74765
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify(message.v0);
|
|
74766
|
+
if (error)
|
|
74767
|
+
return "v0." + error;
|
|
74768
|
+
}
|
|
74769
|
+
}
|
|
74770
|
+
return null;
|
|
74771
|
+
};
|
|
74772
|
+
|
|
74773
|
+
/**
|
|
74774
|
+
* Creates a GetAddressInfoRequest message from a plain object. Also converts values to their respective internal types.
|
|
74775
|
+
* @function fromObject
|
|
74776
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74777
|
+
* @static
|
|
74778
|
+
* @param {Object.<string,*>} object Plain object
|
|
74779
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest} GetAddressInfoRequest
|
|
74780
|
+
*/
|
|
74781
|
+
GetAddressInfoRequest.fromObject = function fromObject(object) {
|
|
74782
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoRequest)
|
|
74783
|
+
return object;
|
|
74784
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest();
|
|
74785
|
+
if (object.v0 != null) {
|
|
74786
|
+
if (typeof object.v0 !== "object")
|
|
74787
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoRequest.v0: object expected");
|
|
74788
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.fromObject(object.v0);
|
|
74789
|
+
}
|
|
74790
|
+
return message;
|
|
74791
|
+
};
|
|
74792
|
+
|
|
74793
|
+
/**
|
|
74794
|
+
* Creates a plain object from a GetAddressInfoRequest message. Also converts values to other types if specified.
|
|
74795
|
+
* @function toObject
|
|
74796
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74797
|
+
* @static
|
|
74798
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest} message GetAddressInfoRequest
|
|
74799
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
74800
|
+
* @returns {Object.<string,*>} Plain object
|
|
74801
|
+
*/
|
|
74802
|
+
GetAddressInfoRequest.toObject = function toObject(message, options) {
|
|
74803
|
+
if (!options)
|
|
74804
|
+
options = {};
|
|
74805
|
+
var object = {};
|
|
74806
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
74807
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.toObject(message.v0, options);
|
|
74808
|
+
if (options.oneofs)
|
|
74809
|
+
object.version = "v0";
|
|
74810
|
+
}
|
|
74811
|
+
return object;
|
|
74812
|
+
};
|
|
74813
|
+
|
|
74814
|
+
/**
|
|
74815
|
+
* Converts this GetAddressInfoRequest to JSON.
|
|
74816
|
+
* @function toJSON
|
|
74817
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74818
|
+
* @instance
|
|
74819
|
+
* @returns {Object.<string,*>} JSON object
|
|
74820
|
+
*/
|
|
74821
|
+
GetAddressInfoRequest.prototype.toJSON = function toJSON() {
|
|
74822
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74823
|
+
};
|
|
74824
|
+
|
|
74825
|
+
GetAddressInfoRequest.GetAddressInfoRequestV0 = (function() {
|
|
74826
|
+
|
|
74827
|
+
/**
|
|
74828
|
+
* Properties of a GetAddressInfoRequestV0.
|
|
74829
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74830
|
+
* @interface IGetAddressInfoRequestV0
|
|
74831
|
+
* @property {Uint8Array|null} [address] GetAddressInfoRequestV0 address
|
|
74832
|
+
* @property {boolean|null} [prove] GetAddressInfoRequestV0 prove
|
|
74833
|
+
*/
|
|
74834
|
+
|
|
74835
|
+
/**
|
|
74836
|
+
* Constructs a new GetAddressInfoRequestV0.
|
|
74837
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest
|
|
74838
|
+
* @classdesc Represents a GetAddressInfoRequestV0.
|
|
74839
|
+
* @implements IGetAddressInfoRequestV0
|
|
74840
|
+
* @constructor
|
|
74841
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0=} [properties] Properties to set
|
|
74842
|
+
*/
|
|
74843
|
+
function GetAddressInfoRequestV0(properties) {
|
|
74844
|
+
if (properties)
|
|
74845
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
74846
|
+
if (properties[keys[i]] != null)
|
|
74847
|
+
this[keys[i]] = properties[keys[i]];
|
|
74848
|
+
}
|
|
74849
|
+
|
|
74850
|
+
/**
|
|
74851
|
+
* GetAddressInfoRequestV0 address.
|
|
74852
|
+
* @member {Uint8Array} address
|
|
74853
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74854
|
+
* @instance
|
|
74855
|
+
*/
|
|
74856
|
+
GetAddressInfoRequestV0.prototype.address = $util.newBuffer([]);
|
|
74857
|
+
|
|
74858
|
+
/**
|
|
74859
|
+
* GetAddressInfoRequestV0 prove.
|
|
74860
|
+
* @member {boolean} prove
|
|
74861
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74862
|
+
* @instance
|
|
74863
|
+
*/
|
|
74864
|
+
GetAddressInfoRequestV0.prototype.prove = false;
|
|
74865
|
+
|
|
74866
|
+
/**
|
|
74867
|
+
* Creates a new GetAddressInfoRequestV0 instance using the specified properties.
|
|
74868
|
+
* @function create
|
|
74869
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74870
|
+
* @static
|
|
74871
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0=} [properties] Properties to set
|
|
74872
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0 instance
|
|
74873
|
+
*/
|
|
74874
|
+
GetAddressInfoRequestV0.create = function create(properties) {
|
|
74875
|
+
return new GetAddressInfoRequestV0(properties);
|
|
74876
|
+
};
|
|
74877
|
+
|
|
74878
|
+
/**
|
|
74879
|
+
* Encodes the specified GetAddressInfoRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify|verify} messages.
|
|
74880
|
+
* @function encode
|
|
74881
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74882
|
+
* @static
|
|
74883
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0} message GetAddressInfoRequestV0 message or plain object to encode
|
|
74884
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74885
|
+
* @returns {$protobuf.Writer} Writer
|
|
74886
|
+
*/
|
|
74887
|
+
GetAddressInfoRequestV0.encode = function encode(message, writer) {
|
|
74888
|
+
if (!writer)
|
|
74889
|
+
writer = $Writer.create();
|
|
74890
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
74891
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
|
|
74892
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
74893
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
74894
|
+
return writer;
|
|
74895
|
+
};
|
|
74896
|
+
|
|
74897
|
+
/**
|
|
74898
|
+
* Encodes the specified GetAddressInfoRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0.verify|verify} messages.
|
|
74899
|
+
* @function encodeDelimited
|
|
74900
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74901
|
+
* @static
|
|
74902
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.IGetAddressInfoRequestV0} message GetAddressInfoRequestV0 message or plain object to encode
|
|
74903
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
74904
|
+
* @returns {$protobuf.Writer} Writer
|
|
74905
|
+
*/
|
|
74906
|
+
GetAddressInfoRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
74907
|
+
return this.encode(message, writer).ldelim();
|
|
74908
|
+
};
|
|
74909
|
+
|
|
74910
|
+
/**
|
|
74911
|
+
* Decodes a GetAddressInfoRequestV0 message from the specified reader or buffer.
|
|
74912
|
+
* @function decode
|
|
74913
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74914
|
+
* @static
|
|
74915
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74916
|
+
* @param {number} [length] Message length if known beforehand
|
|
74917
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
|
|
74918
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74919
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74920
|
+
*/
|
|
74921
|
+
GetAddressInfoRequestV0.decode = function decode(reader, length) {
|
|
74922
|
+
if (!(reader instanceof $Reader))
|
|
74923
|
+
reader = $Reader.create(reader);
|
|
74924
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0();
|
|
74925
|
+
while (reader.pos < end) {
|
|
74926
|
+
var tag = reader.uint32();
|
|
74927
|
+
switch (tag >>> 3) {
|
|
74928
|
+
case 1:
|
|
74929
|
+
message.address = reader.bytes();
|
|
74930
|
+
break;
|
|
74931
|
+
case 2:
|
|
74932
|
+
message.prove = reader.bool();
|
|
74933
|
+
break;
|
|
74934
|
+
default:
|
|
74935
|
+
reader.skipType(tag & 7);
|
|
74936
|
+
break;
|
|
74937
|
+
}
|
|
74938
|
+
}
|
|
74939
|
+
return message;
|
|
74940
|
+
};
|
|
74941
|
+
|
|
74942
|
+
/**
|
|
74943
|
+
* Decodes a GetAddressInfoRequestV0 message from the specified reader or buffer, length delimited.
|
|
74944
|
+
* @function decodeDelimited
|
|
74945
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74946
|
+
* @static
|
|
74947
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
74948
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
|
|
74949
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
74950
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
74951
|
+
*/
|
|
74952
|
+
GetAddressInfoRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
74953
|
+
if (!(reader instanceof $Reader))
|
|
74954
|
+
reader = new $Reader(reader);
|
|
74955
|
+
return this.decode(reader, reader.uint32());
|
|
74956
|
+
};
|
|
74957
|
+
|
|
74958
|
+
/**
|
|
74959
|
+
* Verifies a GetAddressInfoRequestV0 message.
|
|
74960
|
+
* @function verify
|
|
74961
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74962
|
+
* @static
|
|
74963
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
74964
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
74965
|
+
*/
|
|
74966
|
+
GetAddressInfoRequestV0.verify = function verify(message) {
|
|
74967
|
+
if (typeof message !== "object" || message === null)
|
|
74968
|
+
return "object expected";
|
|
74969
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
74970
|
+
if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
|
|
74971
|
+
return "address: buffer expected";
|
|
74972
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
74973
|
+
if (typeof message.prove !== "boolean")
|
|
74974
|
+
return "prove: boolean expected";
|
|
74975
|
+
return null;
|
|
74976
|
+
};
|
|
74977
|
+
|
|
74978
|
+
/**
|
|
74979
|
+
* Creates a GetAddressInfoRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
74980
|
+
* @function fromObject
|
|
74981
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
74982
|
+
* @static
|
|
74983
|
+
* @param {Object.<string,*>} object Plain object
|
|
74984
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} GetAddressInfoRequestV0
|
|
74985
|
+
*/
|
|
74986
|
+
GetAddressInfoRequestV0.fromObject = function fromObject(object) {
|
|
74987
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0)
|
|
74988
|
+
return object;
|
|
74989
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0();
|
|
74990
|
+
if (object.address != null)
|
|
74991
|
+
if (typeof object.address === "string")
|
|
74992
|
+
$util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
|
|
74993
|
+
else if (object.address.length >= 0)
|
|
74994
|
+
message.address = object.address;
|
|
74995
|
+
if (object.prove != null)
|
|
74996
|
+
message.prove = Boolean(object.prove);
|
|
74997
|
+
return message;
|
|
74998
|
+
};
|
|
74999
|
+
|
|
75000
|
+
/**
|
|
75001
|
+
* Creates a plain object from a GetAddressInfoRequestV0 message. Also converts values to other types if specified.
|
|
75002
|
+
* @function toObject
|
|
75003
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
75004
|
+
* @static
|
|
75005
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0} message GetAddressInfoRequestV0
|
|
75006
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75007
|
+
* @returns {Object.<string,*>} Plain object
|
|
75008
|
+
*/
|
|
75009
|
+
GetAddressInfoRequestV0.toObject = function toObject(message, options) {
|
|
75010
|
+
if (!options)
|
|
75011
|
+
options = {};
|
|
75012
|
+
var object = {};
|
|
75013
|
+
if (options.defaults) {
|
|
75014
|
+
if (options.bytes === String)
|
|
75015
|
+
object.address = "";
|
|
75016
|
+
else {
|
|
75017
|
+
object.address = [];
|
|
75018
|
+
if (options.bytes !== Array)
|
|
75019
|
+
object.address = $util.newBuffer(object.address);
|
|
75020
|
+
}
|
|
75021
|
+
object.prove = false;
|
|
75022
|
+
}
|
|
75023
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
75024
|
+
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;
|
|
75025
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
75026
|
+
object.prove = message.prove;
|
|
75027
|
+
return object;
|
|
75028
|
+
};
|
|
75029
|
+
|
|
75030
|
+
/**
|
|
75031
|
+
* Converts this GetAddressInfoRequestV0 to JSON.
|
|
75032
|
+
* @function toJSON
|
|
75033
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0
|
|
75034
|
+
* @instance
|
|
75035
|
+
* @returns {Object.<string,*>} JSON object
|
|
75036
|
+
*/
|
|
75037
|
+
GetAddressInfoRequestV0.prototype.toJSON = function toJSON() {
|
|
75038
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75039
|
+
};
|
|
75040
|
+
|
|
75041
|
+
return GetAddressInfoRequestV0;
|
|
75042
|
+
})();
|
|
75043
|
+
|
|
75044
|
+
return GetAddressInfoRequest;
|
|
75045
|
+
})();
|
|
75046
|
+
|
|
75047
|
+
v0.AddressInfoEntry = (function() {
|
|
75048
|
+
|
|
75049
|
+
/**
|
|
75050
|
+
* Properties of an AddressInfoEntry.
|
|
75051
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75052
|
+
* @interface IAddressInfoEntry
|
|
75053
|
+
* @property {Uint8Array|null} [address] AddressInfoEntry address
|
|
75054
|
+
* @property {org.dash.platform.dapi.v0.IBalanceAndNonce|null} [balanceAndNonce] AddressInfoEntry balanceAndNonce
|
|
75055
|
+
*/
|
|
75056
|
+
|
|
75057
|
+
/**
|
|
75058
|
+
* Constructs a new AddressInfoEntry.
|
|
75059
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75060
|
+
* @classdesc Represents an AddressInfoEntry.
|
|
75061
|
+
* @implements IAddressInfoEntry
|
|
75062
|
+
* @constructor
|
|
75063
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntry=} [properties] Properties to set
|
|
75064
|
+
*/
|
|
75065
|
+
function AddressInfoEntry(properties) {
|
|
75066
|
+
if (properties)
|
|
75067
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75068
|
+
if (properties[keys[i]] != null)
|
|
75069
|
+
this[keys[i]] = properties[keys[i]];
|
|
75070
|
+
}
|
|
75071
|
+
|
|
75072
|
+
/**
|
|
75073
|
+
* AddressInfoEntry address.
|
|
75074
|
+
* @member {Uint8Array} address
|
|
75075
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75076
|
+
* @instance
|
|
75077
|
+
*/
|
|
75078
|
+
AddressInfoEntry.prototype.address = $util.newBuffer([]);
|
|
75079
|
+
|
|
75080
|
+
/**
|
|
75081
|
+
* AddressInfoEntry balanceAndNonce.
|
|
75082
|
+
* @member {org.dash.platform.dapi.v0.IBalanceAndNonce|null|undefined} balanceAndNonce
|
|
75083
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75084
|
+
* @instance
|
|
75085
|
+
*/
|
|
75086
|
+
AddressInfoEntry.prototype.balanceAndNonce = null;
|
|
75087
|
+
|
|
75088
|
+
/**
|
|
75089
|
+
* Creates a new AddressInfoEntry instance using the specified properties.
|
|
75090
|
+
* @function create
|
|
75091
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75092
|
+
* @static
|
|
75093
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntry=} [properties] Properties to set
|
|
75094
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry instance
|
|
75095
|
+
*/
|
|
75096
|
+
AddressInfoEntry.create = function create(properties) {
|
|
75097
|
+
return new AddressInfoEntry(properties);
|
|
75098
|
+
};
|
|
75099
|
+
|
|
75100
|
+
/**
|
|
75101
|
+
* Encodes the specified AddressInfoEntry message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntry.verify|verify} messages.
|
|
75102
|
+
* @function encode
|
|
75103
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75104
|
+
* @static
|
|
75105
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntry} message AddressInfoEntry message or plain object to encode
|
|
75106
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75107
|
+
* @returns {$protobuf.Writer} Writer
|
|
75108
|
+
*/
|
|
75109
|
+
AddressInfoEntry.encode = function encode(message, writer) {
|
|
75110
|
+
if (!writer)
|
|
75111
|
+
writer = $Writer.create();
|
|
75112
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
75113
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.address);
|
|
75114
|
+
if (message.balanceAndNonce != null && Object.hasOwnProperty.call(message, "balanceAndNonce"))
|
|
75115
|
+
$root.org.dash.platform.dapi.v0.BalanceAndNonce.encode(message.balanceAndNonce, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
75116
|
+
return writer;
|
|
75117
|
+
};
|
|
75118
|
+
|
|
75119
|
+
/**
|
|
75120
|
+
* Encodes the specified AddressInfoEntry message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntry.verify|verify} messages.
|
|
75121
|
+
* @function encodeDelimited
|
|
75122
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75123
|
+
* @static
|
|
75124
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntry} message AddressInfoEntry message or plain object to encode
|
|
75125
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75126
|
+
* @returns {$protobuf.Writer} Writer
|
|
75127
|
+
*/
|
|
75128
|
+
AddressInfoEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75129
|
+
return this.encode(message, writer).ldelim();
|
|
75130
|
+
};
|
|
75131
|
+
|
|
75132
|
+
/**
|
|
75133
|
+
* Decodes an AddressInfoEntry message from the specified reader or buffer.
|
|
75134
|
+
* @function decode
|
|
75135
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75136
|
+
* @static
|
|
75137
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75138
|
+
* @param {number} [length] Message length if known beforehand
|
|
75139
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
|
|
75140
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75141
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75142
|
+
*/
|
|
75143
|
+
AddressInfoEntry.decode = function decode(reader, length) {
|
|
75144
|
+
if (!(reader instanceof $Reader))
|
|
75145
|
+
reader = $Reader.create(reader);
|
|
75146
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressInfoEntry();
|
|
75147
|
+
while (reader.pos < end) {
|
|
75148
|
+
var tag = reader.uint32();
|
|
75149
|
+
switch (tag >>> 3) {
|
|
75150
|
+
case 1:
|
|
75151
|
+
message.address = reader.bytes();
|
|
75152
|
+
break;
|
|
75153
|
+
case 2:
|
|
75154
|
+
message.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.decode(reader, reader.uint32());
|
|
75155
|
+
break;
|
|
75156
|
+
default:
|
|
75157
|
+
reader.skipType(tag & 7);
|
|
75158
|
+
break;
|
|
75159
|
+
}
|
|
75160
|
+
}
|
|
75161
|
+
return message;
|
|
75162
|
+
};
|
|
75163
|
+
|
|
75164
|
+
/**
|
|
75165
|
+
* Decodes an AddressInfoEntry message from the specified reader or buffer, length delimited.
|
|
75166
|
+
* @function decodeDelimited
|
|
75167
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75168
|
+
* @static
|
|
75169
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75170
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
|
|
75171
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75172
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75173
|
+
*/
|
|
75174
|
+
AddressInfoEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
75175
|
+
if (!(reader instanceof $Reader))
|
|
75176
|
+
reader = new $Reader(reader);
|
|
75177
|
+
return this.decode(reader, reader.uint32());
|
|
75178
|
+
};
|
|
75179
|
+
|
|
75180
|
+
/**
|
|
75181
|
+
* Verifies an AddressInfoEntry message.
|
|
75182
|
+
* @function verify
|
|
75183
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75184
|
+
* @static
|
|
75185
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75186
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75187
|
+
*/
|
|
75188
|
+
AddressInfoEntry.verify = function verify(message) {
|
|
75189
|
+
if (typeof message !== "object" || message === null)
|
|
75190
|
+
return "object expected";
|
|
75191
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
75192
|
+
if (!(message.address && typeof message.address.length === "number" || $util.isString(message.address)))
|
|
75193
|
+
return "address: buffer expected";
|
|
75194
|
+
if (message.balanceAndNonce != null && message.hasOwnProperty("balanceAndNonce")) {
|
|
75195
|
+
var error = $root.org.dash.platform.dapi.v0.BalanceAndNonce.verify(message.balanceAndNonce);
|
|
75196
|
+
if (error)
|
|
75197
|
+
return "balanceAndNonce." + error;
|
|
75198
|
+
}
|
|
75199
|
+
return null;
|
|
75200
|
+
};
|
|
75201
|
+
|
|
75202
|
+
/**
|
|
75203
|
+
* Creates an AddressInfoEntry message from a plain object. Also converts values to their respective internal types.
|
|
75204
|
+
* @function fromObject
|
|
75205
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75206
|
+
* @static
|
|
75207
|
+
* @param {Object.<string,*>} object Plain object
|
|
75208
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntry} AddressInfoEntry
|
|
75209
|
+
*/
|
|
75210
|
+
AddressInfoEntry.fromObject = function fromObject(object) {
|
|
75211
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddressInfoEntry)
|
|
75212
|
+
return object;
|
|
75213
|
+
var message = new $root.org.dash.platform.dapi.v0.AddressInfoEntry();
|
|
75214
|
+
if (object.address != null)
|
|
75215
|
+
if (typeof object.address === "string")
|
|
75216
|
+
$util.base64.decode(object.address, message.address = $util.newBuffer($util.base64.length(object.address)), 0);
|
|
75217
|
+
else if (object.address.length >= 0)
|
|
75218
|
+
message.address = object.address;
|
|
75219
|
+
if (object.balanceAndNonce != null) {
|
|
75220
|
+
if (typeof object.balanceAndNonce !== "object")
|
|
75221
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntry.balanceAndNonce: object expected");
|
|
75222
|
+
message.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.fromObject(object.balanceAndNonce);
|
|
75223
|
+
}
|
|
75224
|
+
return message;
|
|
75225
|
+
};
|
|
75226
|
+
|
|
75227
|
+
/**
|
|
75228
|
+
* Creates a plain object from an AddressInfoEntry message. Also converts values to other types if specified.
|
|
75229
|
+
* @function toObject
|
|
75230
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75231
|
+
* @static
|
|
75232
|
+
* @param {org.dash.platform.dapi.v0.AddressInfoEntry} message AddressInfoEntry
|
|
75233
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75234
|
+
* @returns {Object.<string,*>} Plain object
|
|
75235
|
+
*/
|
|
75236
|
+
AddressInfoEntry.toObject = function toObject(message, options) {
|
|
75237
|
+
if (!options)
|
|
75238
|
+
options = {};
|
|
75239
|
+
var object = {};
|
|
75240
|
+
if (options.defaults) {
|
|
75241
|
+
if (options.bytes === String)
|
|
75242
|
+
object.address = "";
|
|
75243
|
+
else {
|
|
75244
|
+
object.address = [];
|
|
75245
|
+
if (options.bytes !== Array)
|
|
75246
|
+
object.address = $util.newBuffer(object.address);
|
|
75247
|
+
}
|
|
75248
|
+
object.balanceAndNonce = null;
|
|
75249
|
+
}
|
|
75250
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
75251
|
+
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;
|
|
75252
|
+
if (message.balanceAndNonce != null && message.hasOwnProperty("balanceAndNonce"))
|
|
75253
|
+
object.balanceAndNonce = $root.org.dash.platform.dapi.v0.BalanceAndNonce.toObject(message.balanceAndNonce, options);
|
|
75254
|
+
return object;
|
|
75255
|
+
};
|
|
75256
|
+
|
|
75257
|
+
/**
|
|
75258
|
+
* Converts this AddressInfoEntry to JSON.
|
|
75259
|
+
* @function toJSON
|
|
75260
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntry
|
|
75261
|
+
* @instance
|
|
75262
|
+
* @returns {Object.<string,*>} JSON object
|
|
75263
|
+
*/
|
|
75264
|
+
AddressInfoEntry.prototype.toJSON = function toJSON() {
|
|
75265
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75266
|
+
};
|
|
75267
|
+
|
|
75268
|
+
return AddressInfoEntry;
|
|
75269
|
+
})();
|
|
75270
|
+
|
|
75271
|
+
v0.BalanceAndNonce = (function() {
|
|
75272
|
+
|
|
75273
|
+
/**
|
|
75274
|
+
* Properties of a BalanceAndNonce.
|
|
75275
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75276
|
+
* @interface IBalanceAndNonce
|
|
75277
|
+
* @property {number|Long|null} [balance] BalanceAndNonce balance
|
|
75278
|
+
* @property {number|null} [nonce] BalanceAndNonce nonce
|
|
75279
|
+
*/
|
|
75280
|
+
|
|
75281
|
+
/**
|
|
75282
|
+
* Constructs a new BalanceAndNonce.
|
|
75283
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75284
|
+
* @classdesc Represents a BalanceAndNonce.
|
|
75285
|
+
* @implements IBalanceAndNonce
|
|
75286
|
+
* @constructor
|
|
75287
|
+
* @param {org.dash.platform.dapi.v0.IBalanceAndNonce=} [properties] Properties to set
|
|
75288
|
+
*/
|
|
75289
|
+
function BalanceAndNonce(properties) {
|
|
75290
|
+
if (properties)
|
|
75291
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75292
|
+
if (properties[keys[i]] != null)
|
|
75293
|
+
this[keys[i]] = properties[keys[i]];
|
|
75294
|
+
}
|
|
75295
|
+
|
|
75296
|
+
/**
|
|
75297
|
+
* BalanceAndNonce balance.
|
|
75298
|
+
* @member {number|Long} balance
|
|
75299
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75300
|
+
* @instance
|
|
75301
|
+
*/
|
|
75302
|
+
BalanceAndNonce.prototype.balance = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
75303
|
+
|
|
75304
|
+
/**
|
|
75305
|
+
* BalanceAndNonce nonce.
|
|
75306
|
+
* @member {number} nonce
|
|
75307
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75308
|
+
* @instance
|
|
75309
|
+
*/
|
|
75310
|
+
BalanceAndNonce.prototype.nonce = 0;
|
|
75311
|
+
|
|
75312
|
+
/**
|
|
75313
|
+
* Creates a new BalanceAndNonce instance using the specified properties.
|
|
75314
|
+
* @function create
|
|
75315
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75316
|
+
* @static
|
|
75317
|
+
* @param {org.dash.platform.dapi.v0.IBalanceAndNonce=} [properties] Properties to set
|
|
75318
|
+
* @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce instance
|
|
75319
|
+
*/
|
|
75320
|
+
BalanceAndNonce.create = function create(properties) {
|
|
75321
|
+
return new BalanceAndNonce(properties);
|
|
75322
|
+
};
|
|
75323
|
+
|
|
75324
|
+
/**
|
|
75325
|
+
* Encodes the specified BalanceAndNonce message. Does not implicitly {@link org.dash.platform.dapi.v0.BalanceAndNonce.verify|verify} messages.
|
|
75326
|
+
* @function encode
|
|
75327
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75328
|
+
* @static
|
|
75329
|
+
* @param {org.dash.platform.dapi.v0.IBalanceAndNonce} message BalanceAndNonce message or plain object to encode
|
|
75330
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75331
|
+
* @returns {$protobuf.Writer} Writer
|
|
75332
|
+
*/
|
|
75333
|
+
BalanceAndNonce.encode = function encode(message, writer) {
|
|
75334
|
+
if (!writer)
|
|
75335
|
+
writer = $Writer.create();
|
|
75336
|
+
if (message.balance != null && Object.hasOwnProperty.call(message, "balance"))
|
|
75337
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.balance);
|
|
75338
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
75339
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.nonce);
|
|
75340
|
+
return writer;
|
|
75341
|
+
};
|
|
75342
|
+
|
|
75343
|
+
/**
|
|
75344
|
+
* Encodes the specified BalanceAndNonce message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BalanceAndNonce.verify|verify} messages.
|
|
75345
|
+
* @function encodeDelimited
|
|
75346
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75347
|
+
* @static
|
|
75348
|
+
* @param {org.dash.platform.dapi.v0.IBalanceAndNonce} message BalanceAndNonce message or plain object to encode
|
|
75349
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75350
|
+
* @returns {$protobuf.Writer} Writer
|
|
75351
|
+
*/
|
|
75352
|
+
BalanceAndNonce.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75353
|
+
return this.encode(message, writer).ldelim();
|
|
75354
|
+
};
|
|
75355
|
+
|
|
75356
|
+
/**
|
|
75357
|
+
* Decodes a BalanceAndNonce message from the specified reader or buffer.
|
|
75358
|
+
* @function decode
|
|
75359
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75360
|
+
* @static
|
|
75361
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75362
|
+
* @param {number} [length] Message length if known beforehand
|
|
75363
|
+
* @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
|
|
75364
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75365
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75366
|
+
*/
|
|
75367
|
+
BalanceAndNonce.decode = function decode(reader, length) {
|
|
75368
|
+
if (!(reader instanceof $Reader))
|
|
75369
|
+
reader = $Reader.create(reader);
|
|
75370
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BalanceAndNonce();
|
|
75371
|
+
while (reader.pos < end) {
|
|
75372
|
+
var tag = reader.uint32();
|
|
75373
|
+
switch (tag >>> 3) {
|
|
75374
|
+
case 1:
|
|
75375
|
+
message.balance = reader.uint64();
|
|
75376
|
+
break;
|
|
75377
|
+
case 2:
|
|
75378
|
+
message.nonce = reader.uint32();
|
|
75379
|
+
break;
|
|
75380
|
+
default:
|
|
75381
|
+
reader.skipType(tag & 7);
|
|
75382
|
+
break;
|
|
75383
|
+
}
|
|
75384
|
+
}
|
|
75385
|
+
return message;
|
|
75386
|
+
};
|
|
75387
|
+
|
|
75388
|
+
/**
|
|
75389
|
+
* Decodes a BalanceAndNonce message from the specified reader or buffer, length delimited.
|
|
75390
|
+
* @function decodeDelimited
|
|
75391
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75392
|
+
* @static
|
|
75393
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75394
|
+
* @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
|
|
75395
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75396
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75397
|
+
*/
|
|
75398
|
+
BalanceAndNonce.decodeDelimited = function decodeDelimited(reader) {
|
|
75399
|
+
if (!(reader instanceof $Reader))
|
|
75400
|
+
reader = new $Reader(reader);
|
|
75401
|
+
return this.decode(reader, reader.uint32());
|
|
75402
|
+
};
|
|
75403
|
+
|
|
75404
|
+
/**
|
|
75405
|
+
* Verifies a BalanceAndNonce message.
|
|
75406
|
+
* @function verify
|
|
75407
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75408
|
+
* @static
|
|
75409
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75410
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75411
|
+
*/
|
|
75412
|
+
BalanceAndNonce.verify = function verify(message) {
|
|
75413
|
+
if (typeof message !== "object" || message === null)
|
|
75414
|
+
return "object expected";
|
|
75415
|
+
if (message.balance != null && message.hasOwnProperty("balance"))
|
|
75416
|
+
if (!$util.isInteger(message.balance) && !(message.balance && $util.isInteger(message.balance.low) && $util.isInteger(message.balance.high)))
|
|
75417
|
+
return "balance: integer|Long expected";
|
|
75418
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
75419
|
+
if (!$util.isInteger(message.nonce))
|
|
75420
|
+
return "nonce: integer expected";
|
|
75421
|
+
return null;
|
|
75422
|
+
};
|
|
75423
|
+
|
|
75424
|
+
/**
|
|
75425
|
+
* Creates a BalanceAndNonce message from a plain object. Also converts values to their respective internal types.
|
|
75426
|
+
* @function fromObject
|
|
75427
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75428
|
+
* @static
|
|
75429
|
+
* @param {Object.<string,*>} object Plain object
|
|
75430
|
+
* @returns {org.dash.platform.dapi.v0.BalanceAndNonce} BalanceAndNonce
|
|
75431
|
+
*/
|
|
75432
|
+
BalanceAndNonce.fromObject = function fromObject(object) {
|
|
75433
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.BalanceAndNonce)
|
|
75434
|
+
return object;
|
|
75435
|
+
var message = new $root.org.dash.platform.dapi.v0.BalanceAndNonce();
|
|
75436
|
+
if (object.balance != null)
|
|
75437
|
+
if ($util.Long)
|
|
75438
|
+
(message.balance = $util.Long.fromValue(object.balance)).unsigned = true;
|
|
75439
|
+
else if (typeof object.balance === "string")
|
|
75440
|
+
message.balance = parseInt(object.balance, 10);
|
|
75441
|
+
else if (typeof object.balance === "number")
|
|
75442
|
+
message.balance = object.balance;
|
|
75443
|
+
else if (typeof object.balance === "object")
|
|
75444
|
+
message.balance = new $util.LongBits(object.balance.low >>> 0, object.balance.high >>> 0).toNumber(true);
|
|
75445
|
+
if (object.nonce != null)
|
|
75446
|
+
message.nonce = object.nonce >>> 0;
|
|
75447
|
+
return message;
|
|
75448
|
+
};
|
|
75449
|
+
|
|
75450
|
+
/**
|
|
75451
|
+
* Creates a plain object from a BalanceAndNonce message. Also converts values to other types if specified.
|
|
75452
|
+
* @function toObject
|
|
75453
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75454
|
+
* @static
|
|
75455
|
+
* @param {org.dash.platform.dapi.v0.BalanceAndNonce} message BalanceAndNonce
|
|
75456
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75457
|
+
* @returns {Object.<string,*>} Plain object
|
|
75458
|
+
*/
|
|
75459
|
+
BalanceAndNonce.toObject = function toObject(message, options) {
|
|
75460
|
+
if (!options)
|
|
75461
|
+
options = {};
|
|
75462
|
+
var object = {};
|
|
75463
|
+
if (options.defaults) {
|
|
75464
|
+
if ($util.Long) {
|
|
75465
|
+
var long = new $util.Long(0, 0, true);
|
|
75466
|
+
object.balance = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
75467
|
+
} else
|
|
75468
|
+
object.balance = options.longs === String ? "0" : 0;
|
|
75469
|
+
object.nonce = 0;
|
|
75470
|
+
}
|
|
75471
|
+
if (message.balance != null && message.hasOwnProperty("balance"))
|
|
75472
|
+
if (typeof message.balance === "number")
|
|
75473
|
+
object.balance = options.longs === String ? String(message.balance) : message.balance;
|
|
75474
|
+
else
|
|
75475
|
+
object.balance = options.longs === String ? $util.Long.prototype.toString.call(message.balance) : options.longs === Number ? new $util.LongBits(message.balance.low >>> 0, message.balance.high >>> 0).toNumber(true) : message.balance;
|
|
75476
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
75477
|
+
object.nonce = message.nonce;
|
|
75478
|
+
return object;
|
|
75479
|
+
};
|
|
75480
|
+
|
|
75481
|
+
/**
|
|
75482
|
+
* Converts this BalanceAndNonce to JSON.
|
|
75483
|
+
* @function toJSON
|
|
75484
|
+
* @memberof org.dash.platform.dapi.v0.BalanceAndNonce
|
|
75485
|
+
* @instance
|
|
75486
|
+
* @returns {Object.<string,*>} JSON object
|
|
75487
|
+
*/
|
|
75488
|
+
BalanceAndNonce.prototype.toJSON = function toJSON() {
|
|
75489
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75490
|
+
};
|
|
75491
|
+
|
|
75492
|
+
return BalanceAndNonce;
|
|
75493
|
+
})();
|
|
75494
|
+
|
|
75495
|
+
v0.AddressInfoEntries = (function() {
|
|
75496
|
+
|
|
75497
|
+
/**
|
|
75498
|
+
* Properties of an AddressInfoEntries.
|
|
75499
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75500
|
+
* @interface IAddressInfoEntries
|
|
75501
|
+
* @property {Array.<org.dash.platform.dapi.v0.IAddressInfoEntry>|null} [addressInfoEntries] AddressInfoEntries addressInfoEntries
|
|
75502
|
+
*/
|
|
75503
|
+
|
|
75504
|
+
/**
|
|
75505
|
+
* Constructs a new AddressInfoEntries.
|
|
75506
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75507
|
+
* @classdesc Represents an AddressInfoEntries.
|
|
75508
|
+
* @implements IAddressInfoEntries
|
|
75509
|
+
* @constructor
|
|
75510
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntries=} [properties] Properties to set
|
|
75511
|
+
*/
|
|
75512
|
+
function AddressInfoEntries(properties) {
|
|
75513
|
+
this.addressInfoEntries = [];
|
|
75514
|
+
if (properties)
|
|
75515
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75516
|
+
if (properties[keys[i]] != null)
|
|
75517
|
+
this[keys[i]] = properties[keys[i]];
|
|
75518
|
+
}
|
|
75519
|
+
|
|
75520
|
+
/**
|
|
75521
|
+
* AddressInfoEntries addressInfoEntries.
|
|
75522
|
+
* @member {Array.<org.dash.platform.dapi.v0.IAddressInfoEntry>} addressInfoEntries
|
|
75523
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75524
|
+
* @instance
|
|
75525
|
+
*/
|
|
75526
|
+
AddressInfoEntries.prototype.addressInfoEntries = $util.emptyArray;
|
|
75527
|
+
|
|
75528
|
+
/**
|
|
75529
|
+
* Creates a new AddressInfoEntries instance using the specified properties.
|
|
75530
|
+
* @function create
|
|
75531
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75532
|
+
* @static
|
|
75533
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntries=} [properties] Properties to set
|
|
75534
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries instance
|
|
75535
|
+
*/
|
|
75536
|
+
AddressInfoEntries.create = function create(properties) {
|
|
75537
|
+
return new AddressInfoEntries(properties);
|
|
75538
|
+
};
|
|
75539
|
+
|
|
75540
|
+
/**
|
|
75541
|
+
* Encodes the specified AddressInfoEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntries.verify|verify} messages.
|
|
75542
|
+
* @function encode
|
|
75543
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75544
|
+
* @static
|
|
75545
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntries} message AddressInfoEntries message or plain object to encode
|
|
75546
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75547
|
+
* @returns {$protobuf.Writer} Writer
|
|
75548
|
+
*/
|
|
75549
|
+
AddressInfoEntries.encode = function encode(message, writer) {
|
|
75550
|
+
if (!writer)
|
|
75551
|
+
writer = $Writer.create();
|
|
75552
|
+
if (message.addressInfoEntries != null && message.addressInfoEntries.length)
|
|
75553
|
+
for (var i = 0; i < message.addressInfoEntries.length; ++i)
|
|
75554
|
+
$root.org.dash.platform.dapi.v0.AddressInfoEntry.encode(message.addressInfoEntries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
75555
|
+
return writer;
|
|
75556
|
+
};
|
|
75557
|
+
|
|
75558
|
+
/**
|
|
75559
|
+
* Encodes the specified AddressInfoEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.AddressInfoEntries.verify|verify} messages.
|
|
75560
|
+
* @function encodeDelimited
|
|
75561
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75562
|
+
* @static
|
|
75563
|
+
* @param {org.dash.platform.dapi.v0.IAddressInfoEntries} message AddressInfoEntries message or plain object to encode
|
|
75564
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75565
|
+
* @returns {$protobuf.Writer} Writer
|
|
75566
|
+
*/
|
|
75567
|
+
AddressInfoEntries.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75568
|
+
return this.encode(message, writer).ldelim();
|
|
75569
|
+
};
|
|
75570
|
+
|
|
75571
|
+
/**
|
|
75572
|
+
* Decodes an AddressInfoEntries message from the specified reader or buffer.
|
|
75573
|
+
* @function decode
|
|
75574
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75575
|
+
* @static
|
|
75576
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75577
|
+
* @param {number} [length] Message length if known beforehand
|
|
75578
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
|
|
75579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75581
|
+
*/
|
|
75582
|
+
AddressInfoEntries.decode = function decode(reader, length) {
|
|
75583
|
+
if (!(reader instanceof $Reader))
|
|
75584
|
+
reader = $Reader.create(reader);
|
|
75585
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.AddressInfoEntries();
|
|
75586
|
+
while (reader.pos < end) {
|
|
75587
|
+
var tag = reader.uint32();
|
|
75588
|
+
switch (tag >>> 3) {
|
|
75589
|
+
case 1:
|
|
75590
|
+
if (!(message.addressInfoEntries && message.addressInfoEntries.length))
|
|
75591
|
+
message.addressInfoEntries = [];
|
|
75592
|
+
message.addressInfoEntries.push($root.org.dash.platform.dapi.v0.AddressInfoEntry.decode(reader, reader.uint32()));
|
|
75593
|
+
break;
|
|
75594
|
+
default:
|
|
75595
|
+
reader.skipType(tag & 7);
|
|
75596
|
+
break;
|
|
75597
|
+
}
|
|
75598
|
+
}
|
|
75599
|
+
return message;
|
|
75600
|
+
};
|
|
75601
|
+
|
|
75602
|
+
/**
|
|
75603
|
+
* Decodes an AddressInfoEntries message from the specified reader or buffer, length delimited.
|
|
75604
|
+
* @function decodeDelimited
|
|
75605
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75606
|
+
* @static
|
|
75607
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75608
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
|
|
75609
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75610
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75611
|
+
*/
|
|
75612
|
+
AddressInfoEntries.decodeDelimited = function decodeDelimited(reader) {
|
|
75613
|
+
if (!(reader instanceof $Reader))
|
|
75614
|
+
reader = new $Reader(reader);
|
|
75615
|
+
return this.decode(reader, reader.uint32());
|
|
75616
|
+
};
|
|
75617
|
+
|
|
75618
|
+
/**
|
|
75619
|
+
* Verifies an AddressInfoEntries message.
|
|
75620
|
+
* @function verify
|
|
75621
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75622
|
+
* @static
|
|
75623
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75624
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75625
|
+
*/
|
|
75626
|
+
AddressInfoEntries.verify = function verify(message) {
|
|
75627
|
+
if (typeof message !== "object" || message === null)
|
|
75628
|
+
return "object expected";
|
|
75629
|
+
if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
|
|
75630
|
+
if (!Array.isArray(message.addressInfoEntries))
|
|
75631
|
+
return "addressInfoEntries: array expected";
|
|
75632
|
+
for (var i = 0; i < message.addressInfoEntries.length; ++i) {
|
|
75633
|
+
var error = $root.org.dash.platform.dapi.v0.AddressInfoEntry.verify(message.addressInfoEntries[i]);
|
|
75634
|
+
if (error)
|
|
75635
|
+
return "addressInfoEntries." + error;
|
|
75636
|
+
}
|
|
75637
|
+
}
|
|
75638
|
+
return null;
|
|
75639
|
+
};
|
|
75640
|
+
|
|
75641
|
+
/**
|
|
75642
|
+
* Creates an AddressInfoEntries message from a plain object. Also converts values to their respective internal types.
|
|
75643
|
+
* @function fromObject
|
|
75644
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75645
|
+
* @static
|
|
75646
|
+
* @param {Object.<string,*>} object Plain object
|
|
75647
|
+
* @returns {org.dash.platform.dapi.v0.AddressInfoEntries} AddressInfoEntries
|
|
75648
|
+
*/
|
|
75649
|
+
AddressInfoEntries.fromObject = function fromObject(object) {
|
|
75650
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.AddressInfoEntries)
|
|
75651
|
+
return object;
|
|
75652
|
+
var message = new $root.org.dash.platform.dapi.v0.AddressInfoEntries();
|
|
75653
|
+
if (object.addressInfoEntries) {
|
|
75654
|
+
if (!Array.isArray(object.addressInfoEntries))
|
|
75655
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntries.addressInfoEntries: array expected");
|
|
75656
|
+
message.addressInfoEntries = [];
|
|
75657
|
+
for (var i = 0; i < object.addressInfoEntries.length; ++i) {
|
|
75658
|
+
if (typeof object.addressInfoEntries[i] !== "object")
|
|
75659
|
+
throw TypeError(".org.dash.platform.dapi.v0.AddressInfoEntries.addressInfoEntries: object expected");
|
|
75660
|
+
message.addressInfoEntries[i] = $root.org.dash.platform.dapi.v0.AddressInfoEntry.fromObject(object.addressInfoEntries[i]);
|
|
75661
|
+
}
|
|
75662
|
+
}
|
|
75663
|
+
return message;
|
|
75664
|
+
};
|
|
75665
|
+
|
|
75666
|
+
/**
|
|
75667
|
+
* Creates a plain object from an AddressInfoEntries message. Also converts values to other types if specified.
|
|
75668
|
+
* @function toObject
|
|
75669
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75670
|
+
* @static
|
|
75671
|
+
* @param {org.dash.platform.dapi.v0.AddressInfoEntries} message AddressInfoEntries
|
|
75672
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75673
|
+
* @returns {Object.<string,*>} Plain object
|
|
75674
|
+
*/
|
|
75675
|
+
AddressInfoEntries.toObject = function toObject(message, options) {
|
|
75676
|
+
if (!options)
|
|
75677
|
+
options = {};
|
|
75678
|
+
var object = {};
|
|
75679
|
+
if (options.arrays || options.defaults)
|
|
75680
|
+
object.addressInfoEntries = [];
|
|
75681
|
+
if (message.addressInfoEntries && message.addressInfoEntries.length) {
|
|
75682
|
+
object.addressInfoEntries = [];
|
|
75683
|
+
for (var j = 0; j < message.addressInfoEntries.length; ++j)
|
|
75684
|
+
object.addressInfoEntries[j] = $root.org.dash.platform.dapi.v0.AddressInfoEntry.toObject(message.addressInfoEntries[j], options);
|
|
75685
|
+
}
|
|
75686
|
+
return object;
|
|
75687
|
+
};
|
|
75688
|
+
|
|
75689
|
+
/**
|
|
75690
|
+
* Converts this AddressInfoEntries to JSON.
|
|
75691
|
+
* @function toJSON
|
|
75692
|
+
* @memberof org.dash.platform.dapi.v0.AddressInfoEntries
|
|
75693
|
+
* @instance
|
|
75694
|
+
* @returns {Object.<string,*>} JSON object
|
|
75695
|
+
*/
|
|
75696
|
+
AddressInfoEntries.prototype.toJSON = function toJSON() {
|
|
75697
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75698
|
+
};
|
|
75699
|
+
|
|
75700
|
+
return AddressInfoEntries;
|
|
75701
|
+
})();
|
|
75702
|
+
|
|
75703
|
+
v0.GetAddressInfoResponse = (function() {
|
|
75704
|
+
|
|
75705
|
+
/**
|
|
75706
|
+
* Properties of a GetAddressInfoResponse.
|
|
75707
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75708
|
+
* @interface IGetAddressInfoResponse
|
|
75709
|
+
* @property {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0|null} [v0] GetAddressInfoResponse v0
|
|
75710
|
+
*/
|
|
75711
|
+
|
|
75712
|
+
/**
|
|
75713
|
+
* Constructs a new GetAddressInfoResponse.
|
|
75714
|
+
* @memberof org.dash.platform.dapi.v0
|
|
75715
|
+
* @classdesc Represents a GetAddressInfoResponse.
|
|
75716
|
+
* @implements IGetAddressInfoResponse
|
|
75717
|
+
* @constructor
|
|
75718
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse=} [properties] Properties to set
|
|
75719
|
+
*/
|
|
75720
|
+
function GetAddressInfoResponse(properties) {
|
|
75721
|
+
if (properties)
|
|
75722
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75723
|
+
if (properties[keys[i]] != null)
|
|
75724
|
+
this[keys[i]] = properties[keys[i]];
|
|
75725
|
+
}
|
|
75726
|
+
|
|
75727
|
+
/**
|
|
75728
|
+
* GetAddressInfoResponse v0.
|
|
75729
|
+
* @member {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0|null|undefined} v0
|
|
75730
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75731
|
+
* @instance
|
|
75732
|
+
*/
|
|
75733
|
+
GetAddressInfoResponse.prototype.v0 = null;
|
|
75734
|
+
|
|
75735
|
+
// OneOf field names bound to virtual getters and setters
|
|
75736
|
+
var $oneOfFields;
|
|
75737
|
+
|
|
75738
|
+
/**
|
|
75739
|
+
* GetAddressInfoResponse version.
|
|
75740
|
+
* @member {"v0"|undefined} version
|
|
75741
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75742
|
+
* @instance
|
|
75743
|
+
*/
|
|
75744
|
+
Object.defineProperty(GetAddressInfoResponse.prototype, "version", {
|
|
75745
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
75746
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
75747
|
+
});
|
|
75748
|
+
|
|
75749
|
+
/**
|
|
75750
|
+
* Creates a new GetAddressInfoResponse instance using the specified properties.
|
|
75751
|
+
* @function create
|
|
75752
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75753
|
+
* @static
|
|
75754
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse=} [properties] Properties to set
|
|
75755
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse instance
|
|
75756
|
+
*/
|
|
75757
|
+
GetAddressInfoResponse.create = function create(properties) {
|
|
75758
|
+
return new GetAddressInfoResponse(properties);
|
|
75759
|
+
};
|
|
75760
|
+
|
|
75761
|
+
/**
|
|
75762
|
+
* Encodes the specified GetAddressInfoResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.verify|verify} messages.
|
|
75763
|
+
* @function encode
|
|
75764
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75765
|
+
* @static
|
|
75766
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse} message GetAddressInfoResponse message or plain object to encode
|
|
75767
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75768
|
+
* @returns {$protobuf.Writer} Writer
|
|
75769
|
+
*/
|
|
75770
|
+
GetAddressInfoResponse.encode = function encode(message, writer) {
|
|
75771
|
+
if (!writer)
|
|
75772
|
+
writer = $Writer.create();
|
|
75773
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
75774
|
+
$root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
75775
|
+
return writer;
|
|
75776
|
+
};
|
|
75777
|
+
|
|
75778
|
+
/**
|
|
75779
|
+
* Encodes the specified GetAddressInfoResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.verify|verify} messages.
|
|
75780
|
+
* @function encodeDelimited
|
|
75781
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75782
|
+
* @static
|
|
75783
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressInfoResponse} message GetAddressInfoResponse message or plain object to encode
|
|
75784
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75785
|
+
* @returns {$protobuf.Writer} Writer
|
|
75786
|
+
*/
|
|
75787
|
+
GetAddressInfoResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
75788
|
+
return this.encode(message, writer).ldelim();
|
|
75789
|
+
};
|
|
75790
|
+
|
|
75791
|
+
/**
|
|
75792
|
+
* Decodes a GetAddressInfoResponse message from the specified reader or buffer.
|
|
75793
|
+
* @function decode
|
|
75794
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75795
|
+
* @static
|
|
75796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75797
|
+
* @param {number} [length] Message length if known beforehand
|
|
75798
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
|
|
75799
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75800
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75801
|
+
*/
|
|
75802
|
+
GetAddressInfoResponse.decode = function decode(reader, length) {
|
|
75803
|
+
if (!(reader instanceof $Reader))
|
|
75804
|
+
reader = $Reader.create(reader);
|
|
75805
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse();
|
|
75806
|
+
while (reader.pos < end) {
|
|
75807
|
+
var tag = reader.uint32();
|
|
75808
|
+
switch (tag >>> 3) {
|
|
75809
|
+
case 1:
|
|
75810
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.decode(reader, reader.uint32());
|
|
75811
|
+
break;
|
|
75812
|
+
default:
|
|
75813
|
+
reader.skipType(tag & 7);
|
|
75814
|
+
break;
|
|
75815
|
+
}
|
|
75816
|
+
}
|
|
75817
|
+
return message;
|
|
75818
|
+
};
|
|
75819
|
+
|
|
75820
|
+
/**
|
|
75821
|
+
* Decodes a GetAddressInfoResponse message from the specified reader or buffer, length delimited.
|
|
75822
|
+
* @function decodeDelimited
|
|
75823
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75824
|
+
* @static
|
|
75825
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
75826
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
|
|
75827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
75828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
75829
|
+
*/
|
|
75830
|
+
GetAddressInfoResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
75831
|
+
if (!(reader instanceof $Reader))
|
|
75832
|
+
reader = new $Reader(reader);
|
|
75833
|
+
return this.decode(reader, reader.uint32());
|
|
75834
|
+
};
|
|
75835
|
+
|
|
75836
|
+
/**
|
|
75837
|
+
* Verifies a GetAddressInfoResponse message.
|
|
75838
|
+
* @function verify
|
|
75839
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75840
|
+
* @static
|
|
75841
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
75842
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
75843
|
+
*/
|
|
75844
|
+
GetAddressInfoResponse.verify = function verify(message) {
|
|
75845
|
+
if (typeof message !== "object" || message === null)
|
|
75846
|
+
return "object expected";
|
|
75847
|
+
var properties = {};
|
|
75848
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
75849
|
+
properties.version = 1;
|
|
75850
|
+
{
|
|
75851
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify(message.v0);
|
|
75852
|
+
if (error)
|
|
75853
|
+
return "v0." + error;
|
|
75854
|
+
}
|
|
75855
|
+
}
|
|
75856
|
+
return null;
|
|
75857
|
+
};
|
|
75858
|
+
|
|
75859
|
+
/**
|
|
75860
|
+
* Creates a GetAddressInfoResponse message from a plain object. Also converts values to their respective internal types.
|
|
75861
|
+
* @function fromObject
|
|
75862
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75863
|
+
* @static
|
|
75864
|
+
* @param {Object.<string,*>} object Plain object
|
|
75865
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse} GetAddressInfoResponse
|
|
75866
|
+
*/
|
|
75867
|
+
GetAddressInfoResponse.fromObject = function fromObject(object) {
|
|
75868
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoResponse)
|
|
75869
|
+
return object;
|
|
75870
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse();
|
|
75871
|
+
if (object.v0 != null) {
|
|
75872
|
+
if (typeof object.v0 !== "object")
|
|
75873
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.v0: object expected");
|
|
75874
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.fromObject(object.v0);
|
|
75875
|
+
}
|
|
75876
|
+
return message;
|
|
75877
|
+
};
|
|
75878
|
+
|
|
75879
|
+
/**
|
|
75880
|
+
* Creates a plain object from a GetAddressInfoResponse message. Also converts values to other types if specified.
|
|
75881
|
+
* @function toObject
|
|
75882
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75883
|
+
* @static
|
|
75884
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse} message GetAddressInfoResponse
|
|
75885
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
75886
|
+
* @returns {Object.<string,*>} Plain object
|
|
75887
|
+
*/
|
|
75888
|
+
GetAddressInfoResponse.toObject = function toObject(message, options) {
|
|
75889
|
+
if (!options)
|
|
75890
|
+
options = {};
|
|
75891
|
+
var object = {};
|
|
75892
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
75893
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.toObject(message.v0, options);
|
|
75894
|
+
if (options.oneofs)
|
|
75895
|
+
object.version = "v0";
|
|
75896
|
+
}
|
|
75897
|
+
return object;
|
|
75898
|
+
};
|
|
75899
|
+
|
|
75900
|
+
/**
|
|
75901
|
+
* Converts this GetAddressInfoResponse to JSON.
|
|
75902
|
+
* @function toJSON
|
|
75903
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75904
|
+
* @instance
|
|
75905
|
+
* @returns {Object.<string,*>} JSON object
|
|
75906
|
+
*/
|
|
75907
|
+
GetAddressInfoResponse.prototype.toJSON = function toJSON() {
|
|
75908
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
75909
|
+
};
|
|
75910
|
+
|
|
75911
|
+
GetAddressInfoResponse.GetAddressInfoResponseV0 = (function() {
|
|
75912
|
+
|
|
75913
|
+
/**
|
|
75914
|
+
* Properties of a GetAddressInfoResponseV0.
|
|
75915
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75916
|
+
* @interface IGetAddressInfoResponseV0
|
|
75917
|
+
* @property {org.dash.platform.dapi.v0.IAddressInfoEntry|null} [addressInfoEntry] GetAddressInfoResponseV0 addressInfoEntry
|
|
75918
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressInfoResponseV0 proof
|
|
75919
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressInfoResponseV0 metadata
|
|
75920
|
+
*/
|
|
75921
|
+
|
|
75922
|
+
/**
|
|
75923
|
+
* Constructs a new GetAddressInfoResponseV0.
|
|
75924
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse
|
|
75925
|
+
* @classdesc Represents a GetAddressInfoResponseV0.
|
|
75926
|
+
* @implements IGetAddressInfoResponseV0
|
|
75927
|
+
* @constructor
|
|
75928
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0=} [properties] Properties to set
|
|
75929
|
+
*/
|
|
75930
|
+
function GetAddressInfoResponseV0(properties) {
|
|
75931
|
+
if (properties)
|
|
75932
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
75933
|
+
if (properties[keys[i]] != null)
|
|
75934
|
+
this[keys[i]] = properties[keys[i]];
|
|
75935
|
+
}
|
|
75936
|
+
|
|
75937
|
+
/**
|
|
75938
|
+
* GetAddressInfoResponseV0 addressInfoEntry.
|
|
75939
|
+
* @member {org.dash.platform.dapi.v0.IAddressInfoEntry|null|undefined} addressInfoEntry
|
|
75940
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75941
|
+
* @instance
|
|
75942
|
+
*/
|
|
75943
|
+
GetAddressInfoResponseV0.prototype.addressInfoEntry = null;
|
|
75944
|
+
|
|
75945
|
+
/**
|
|
75946
|
+
* GetAddressInfoResponseV0 proof.
|
|
75947
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
75948
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75949
|
+
* @instance
|
|
75950
|
+
*/
|
|
75951
|
+
GetAddressInfoResponseV0.prototype.proof = null;
|
|
75952
|
+
|
|
75953
|
+
/**
|
|
75954
|
+
* GetAddressInfoResponseV0 metadata.
|
|
75955
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
75956
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75957
|
+
* @instance
|
|
75958
|
+
*/
|
|
75959
|
+
GetAddressInfoResponseV0.prototype.metadata = null;
|
|
75960
|
+
|
|
75961
|
+
// OneOf field names bound to virtual getters and setters
|
|
75962
|
+
var $oneOfFields;
|
|
75963
|
+
|
|
75964
|
+
/**
|
|
75965
|
+
* GetAddressInfoResponseV0 result.
|
|
75966
|
+
* @member {"addressInfoEntry"|"proof"|undefined} result
|
|
75967
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75968
|
+
* @instance
|
|
75969
|
+
*/
|
|
75970
|
+
Object.defineProperty(GetAddressInfoResponseV0.prototype, "result", {
|
|
75971
|
+
get: $util.oneOfGetter($oneOfFields = ["addressInfoEntry", "proof"]),
|
|
75972
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
75973
|
+
});
|
|
75974
|
+
|
|
75975
|
+
/**
|
|
75976
|
+
* Creates a new GetAddressInfoResponseV0 instance using the specified properties.
|
|
75977
|
+
* @function create
|
|
75978
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75979
|
+
* @static
|
|
75980
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0=} [properties] Properties to set
|
|
75981
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0 instance
|
|
75982
|
+
*/
|
|
75983
|
+
GetAddressInfoResponseV0.create = function create(properties) {
|
|
75984
|
+
return new GetAddressInfoResponseV0(properties);
|
|
75985
|
+
};
|
|
75986
|
+
|
|
75987
|
+
/**
|
|
75988
|
+
* Encodes the specified GetAddressInfoResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify|verify} messages.
|
|
75989
|
+
* @function encode
|
|
75990
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
75991
|
+
* @static
|
|
75992
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0} message GetAddressInfoResponseV0 message or plain object to encode
|
|
75993
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
75994
|
+
* @returns {$protobuf.Writer} Writer
|
|
75995
|
+
*/
|
|
75996
|
+
GetAddressInfoResponseV0.encode = function encode(message, writer) {
|
|
75997
|
+
if (!writer)
|
|
75998
|
+
writer = $Writer.create();
|
|
75999
|
+
if (message.addressInfoEntry != null && Object.hasOwnProperty.call(message, "addressInfoEntry"))
|
|
76000
|
+
$root.org.dash.platform.dapi.v0.AddressInfoEntry.encode(message.addressInfoEntry, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
76001
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
76002
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
76003
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
76004
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
76005
|
+
return writer;
|
|
76006
|
+
};
|
|
76007
|
+
|
|
76008
|
+
/**
|
|
76009
|
+
* Encodes the specified GetAddressInfoResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.verify|verify} messages.
|
|
76010
|
+
* @function encodeDelimited
|
|
76011
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76012
|
+
* @static
|
|
76013
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.IGetAddressInfoResponseV0} message GetAddressInfoResponseV0 message or plain object to encode
|
|
76014
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76015
|
+
* @returns {$protobuf.Writer} Writer
|
|
76016
|
+
*/
|
|
76017
|
+
GetAddressInfoResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76018
|
+
return this.encode(message, writer).ldelim();
|
|
76019
|
+
};
|
|
76020
|
+
|
|
76021
|
+
/**
|
|
76022
|
+
* Decodes a GetAddressInfoResponseV0 message from the specified reader or buffer.
|
|
76023
|
+
* @function decode
|
|
76024
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76025
|
+
* @static
|
|
76026
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76027
|
+
* @param {number} [length] Message length if known beforehand
|
|
76028
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
|
|
76029
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76030
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76031
|
+
*/
|
|
76032
|
+
GetAddressInfoResponseV0.decode = function decode(reader, length) {
|
|
76033
|
+
if (!(reader instanceof $Reader))
|
|
76034
|
+
reader = $Reader.create(reader);
|
|
76035
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0();
|
|
76036
|
+
while (reader.pos < end) {
|
|
76037
|
+
var tag = reader.uint32();
|
|
76038
|
+
switch (tag >>> 3) {
|
|
76039
|
+
case 1:
|
|
76040
|
+
message.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.decode(reader, reader.uint32());
|
|
76041
|
+
break;
|
|
76042
|
+
case 2:
|
|
76043
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
76044
|
+
break;
|
|
76045
|
+
case 3:
|
|
76046
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
76047
|
+
break;
|
|
76048
|
+
default:
|
|
76049
|
+
reader.skipType(tag & 7);
|
|
76050
|
+
break;
|
|
76051
|
+
}
|
|
76052
|
+
}
|
|
76053
|
+
return message;
|
|
76054
|
+
};
|
|
76055
|
+
|
|
76056
|
+
/**
|
|
76057
|
+
* Decodes a GetAddressInfoResponseV0 message from the specified reader or buffer, length delimited.
|
|
76058
|
+
* @function decodeDelimited
|
|
76059
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76060
|
+
* @static
|
|
76061
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76062
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
|
|
76063
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76064
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76065
|
+
*/
|
|
76066
|
+
GetAddressInfoResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
76067
|
+
if (!(reader instanceof $Reader))
|
|
76068
|
+
reader = new $Reader(reader);
|
|
76069
|
+
return this.decode(reader, reader.uint32());
|
|
76070
|
+
};
|
|
76071
|
+
|
|
76072
|
+
/**
|
|
76073
|
+
* Verifies a GetAddressInfoResponseV0 message.
|
|
76074
|
+
* @function verify
|
|
76075
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76076
|
+
* @static
|
|
76077
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76078
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76079
|
+
*/
|
|
76080
|
+
GetAddressInfoResponseV0.verify = function verify(message) {
|
|
76081
|
+
if (typeof message !== "object" || message === null)
|
|
76082
|
+
return "object expected";
|
|
76083
|
+
var properties = {};
|
|
76084
|
+
if (message.addressInfoEntry != null && message.hasOwnProperty("addressInfoEntry")) {
|
|
76085
|
+
properties.result = 1;
|
|
76086
|
+
{
|
|
76087
|
+
var error = $root.org.dash.platform.dapi.v0.AddressInfoEntry.verify(message.addressInfoEntry);
|
|
76088
|
+
if (error)
|
|
76089
|
+
return "addressInfoEntry." + error;
|
|
76090
|
+
}
|
|
76091
|
+
}
|
|
76092
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
76093
|
+
if (properties.result === 1)
|
|
76094
|
+
return "result: multiple values";
|
|
76095
|
+
properties.result = 1;
|
|
76096
|
+
{
|
|
76097
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
76098
|
+
if (error)
|
|
76099
|
+
return "proof." + error;
|
|
76100
|
+
}
|
|
76101
|
+
}
|
|
76102
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
76103
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
76104
|
+
if (error)
|
|
76105
|
+
return "metadata." + error;
|
|
76106
|
+
}
|
|
76107
|
+
return null;
|
|
76108
|
+
};
|
|
76109
|
+
|
|
76110
|
+
/**
|
|
76111
|
+
* Creates a GetAddressInfoResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
76112
|
+
* @function fromObject
|
|
76113
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76114
|
+
* @static
|
|
76115
|
+
* @param {Object.<string,*>} object Plain object
|
|
76116
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} GetAddressInfoResponseV0
|
|
76117
|
+
*/
|
|
76118
|
+
GetAddressInfoResponseV0.fromObject = function fromObject(object) {
|
|
76119
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0)
|
|
76120
|
+
return object;
|
|
76121
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0();
|
|
76122
|
+
if (object.addressInfoEntry != null) {
|
|
76123
|
+
if (typeof object.addressInfoEntry !== "object")
|
|
76124
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.addressInfoEntry: object expected");
|
|
76125
|
+
message.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.fromObject(object.addressInfoEntry);
|
|
76126
|
+
}
|
|
76127
|
+
if (object.proof != null) {
|
|
76128
|
+
if (typeof object.proof !== "object")
|
|
76129
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.proof: object expected");
|
|
76130
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
76131
|
+
}
|
|
76132
|
+
if (object.metadata != null) {
|
|
76133
|
+
if (typeof object.metadata !== "object")
|
|
76134
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0.metadata: object expected");
|
|
76135
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
76136
|
+
}
|
|
76137
|
+
return message;
|
|
76138
|
+
};
|
|
76139
|
+
|
|
76140
|
+
/**
|
|
76141
|
+
* Creates a plain object from a GetAddressInfoResponseV0 message. Also converts values to other types if specified.
|
|
76142
|
+
* @function toObject
|
|
76143
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76144
|
+
* @static
|
|
76145
|
+
* @param {org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0} message GetAddressInfoResponseV0
|
|
76146
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76147
|
+
* @returns {Object.<string,*>} Plain object
|
|
76148
|
+
*/
|
|
76149
|
+
GetAddressInfoResponseV0.toObject = function toObject(message, options) {
|
|
76150
|
+
if (!options)
|
|
76151
|
+
options = {};
|
|
76152
|
+
var object = {};
|
|
76153
|
+
if (options.defaults)
|
|
76154
|
+
object.metadata = null;
|
|
76155
|
+
if (message.addressInfoEntry != null && message.hasOwnProperty("addressInfoEntry")) {
|
|
76156
|
+
object.addressInfoEntry = $root.org.dash.platform.dapi.v0.AddressInfoEntry.toObject(message.addressInfoEntry, options);
|
|
76157
|
+
if (options.oneofs)
|
|
76158
|
+
object.result = "addressInfoEntry";
|
|
76159
|
+
}
|
|
76160
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
76161
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
76162
|
+
if (options.oneofs)
|
|
76163
|
+
object.result = "proof";
|
|
76164
|
+
}
|
|
76165
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
76166
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
76167
|
+
return object;
|
|
76168
|
+
};
|
|
76169
|
+
|
|
76170
|
+
/**
|
|
76171
|
+
* Converts this GetAddressInfoResponseV0 to JSON.
|
|
76172
|
+
* @function toJSON
|
|
76173
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0
|
|
76174
|
+
* @instance
|
|
76175
|
+
* @returns {Object.<string,*>} JSON object
|
|
76176
|
+
*/
|
|
76177
|
+
GetAddressInfoResponseV0.prototype.toJSON = function toJSON() {
|
|
76178
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76179
|
+
};
|
|
76180
|
+
|
|
76181
|
+
return GetAddressInfoResponseV0;
|
|
76182
|
+
})();
|
|
76183
|
+
|
|
76184
|
+
return GetAddressInfoResponse;
|
|
76185
|
+
})();
|
|
76186
|
+
|
|
76187
|
+
v0.GetAddressesInfosRequest = (function() {
|
|
76188
|
+
|
|
76189
|
+
/**
|
|
76190
|
+
* Properties of a GetAddressesInfosRequest.
|
|
76191
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76192
|
+
* @interface IGetAddressesInfosRequest
|
|
76193
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0|null} [v0] GetAddressesInfosRequest v0
|
|
76194
|
+
*/
|
|
76195
|
+
|
|
76196
|
+
/**
|
|
76197
|
+
* Constructs a new GetAddressesInfosRequest.
|
|
76198
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76199
|
+
* @classdesc Represents a GetAddressesInfosRequest.
|
|
76200
|
+
* @implements IGetAddressesInfosRequest
|
|
76201
|
+
* @constructor
|
|
76202
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest=} [properties] Properties to set
|
|
76203
|
+
*/
|
|
76204
|
+
function GetAddressesInfosRequest(properties) {
|
|
76205
|
+
if (properties)
|
|
76206
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76207
|
+
if (properties[keys[i]] != null)
|
|
76208
|
+
this[keys[i]] = properties[keys[i]];
|
|
76209
|
+
}
|
|
76210
|
+
|
|
76211
|
+
/**
|
|
76212
|
+
* GetAddressesInfosRequest v0.
|
|
76213
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0|null|undefined} v0
|
|
76214
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76215
|
+
* @instance
|
|
76216
|
+
*/
|
|
76217
|
+
GetAddressesInfosRequest.prototype.v0 = null;
|
|
76218
|
+
|
|
76219
|
+
// OneOf field names bound to virtual getters and setters
|
|
76220
|
+
var $oneOfFields;
|
|
76221
|
+
|
|
76222
|
+
/**
|
|
76223
|
+
* GetAddressesInfosRequest version.
|
|
76224
|
+
* @member {"v0"|undefined} version
|
|
76225
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76226
|
+
* @instance
|
|
76227
|
+
*/
|
|
76228
|
+
Object.defineProperty(GetAddressesInfosRequest.prototype, "version", {
|
|
76229
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
76230
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
76231
|
+
});
|
|
76232
|
+
|
|
76233
|
+
/**
|
|
76234
|
+
* Creates a new GetAddressesInfosRequest instance using the specified properties.
|
|
76235
|
+
* @function create
|
|
76236
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76237
|
+
* @static
|
|
76238
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest=} [properties] Properties to set
|
|
76239
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest instance
|
|
76240
|
+
*/
|
|
76241
|
+
GetAddressesInfosRequest.create = function create(properties) {
|
|
76242
|
+
return new GetAddressesInfosRequest(properties);
|
|
76243
|
+
};
|
|
76244
|
+
|
|
76245
|
+
/**
|
|
76246
|
+
* Encodes the specified GetAddressesInfosRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.verify|verify} messages.
|
|
76247
|
+
* @function encode
|
|
76248
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76249
|
+
* @static
|
|
76250
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} message GetAddressesInfosRequest message or plain object to encode
|
|
76251
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76252
|
+
* @returns {$protobuf.Writer} Writer
|
|
76253
|
+
*/
|
|
76254
|
+
GetAddressesInfosRequest.encode = function encode(message, writer) {
|
|
76255
|
+
if (!writer)
|
|
76256
|
+
writer = $Writer.create();
|
|
76257
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
76258
|
+
$root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
76259
|
+
return writer;
|
|
76260
|
+
};
|
|
76261
|
+
|
|
76262
|
+
/**
|
|
76263
|
+
* Encodes the specified GetAddressesInfosRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.verify|verify} messages.
|
|
76264
|
+
* @function encodeDelimited
|
|
76265
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76266
|
+
* @static
|
|
76267
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosRequest} message GetAddressesInfosRequest message or plain object to encode
|
|
76268
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76269
|
+
* @returns {$protobuf.Writer} Writer
|
|
76270
|
+
*/
|
|
76271
|
+
GetAddressesInfosRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76272
|
+
return this.encode(message, writer).ldelim();
|
|
76273
|
+
};
|
|
76274
|
+
|
|
76275
|
+
/**
|
|
76276
|
+
* Decodes a GetAddressesInfosRequest message from the specified reader or buffer.
|
|
76277
|
+
* @function decode
|
|
76278
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76279
|
+
* @static
|
|
76280
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76281
|
+
* @param {number} [length] Message length if known beforehand
|
|
76282
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
|
|
76283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76285
|
+
*/
|
|
76286
|
+
GetAddressesInfosRequest.decode = function decode(reader, length) {
|
|
76287
|
+
if (!(reader instanceof $Reader))
|
|
76288
|
+
reader = $Reader.create(reader);
|
|
76289
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest();
|
|
76290
|
+
while (reader.pos < end) {
|
|
76291
|
+
var tag = reader.uint32();
|
|
76292
|
+
switch (tag >>> 3) {
|
|
76293
|
+
case 1:
|
|
76294
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.decode(reader, reader.uint32());
|
|
76295
|
+
break;
|
|
76296
|
+
default:
|
|
76297
|
+
reader.skipType(tag & 7);
|
|
76298
|
+
break;
|
|
76299
|
+
}
|
|
76300
|
+
}
|
|
76301
|
+
return message;
|
|
76302
|
+
};
|
|
76303
|
+
|
|
76304
|
+
/**
|
|
76305
|
+
* Decodes a GetAddressesInfosRequest message from the specified reader or buffer, length delimited.
|
|
76306
|
+
* @function decodeDelimited
|
|
76307
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76308
|
+
* @static
|
|
76309
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76310
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
|
|
76311
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76312
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76313
|
+
*/
|
|
76314
|
+
GetAddressesInfosRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
76315
|
+
if (!(reader instanceof $Reader))
|
|
76316
|
+
reader = new $Reader(reader);
|
|
76317
|
+
return this.decode(reader, reader.uint32());
|
|
76318
|
+
};
|
|
76319
|
+
|
|
76320
|
+
/**
|
|
76321
|
+
* Verifies a GetAddressesInfosRequest message.
|
|
76322
|
+
* @function verify
|
|
76323
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76324
|
+
* @static
|
|
76325
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76326
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76327
|
+
*/
|
|
76328
|
+
GetAddressesInfosRequest.verify = function verify(message) {
|
|
76329
|
+
if (typeof message !== "object" || message === null)
|
|
76330
|
+
return "object expected";
|
|
76331
|
+
var properties = {};
|
|
76332
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
76333
|
+
properties.version = 1;
|
|
76334
|
+
{
|
|
76335
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify(message.v0);
|
|
76336
|
+
if (error)
|
|
76337
|
+
return "v0." + error;
|
|
76338
|
+
}
|
|
76339
|
+
}
|
|
76340
|
+
return null;
|
|
76341
|
+
};
|
|
76342
|
+
|
|
76343
|
+
/**
|
|
76344
|
+
* Creates a GetAddressesInfosRequest message from a plain object. Also converts values to their respective internal types.
|
|
76345
|
+
* @function fromObject
|
|
76346
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76347
|
+
* @static
|
|
76348
|
+
* @param {Object.<string,*>} object Plain object
|
|
76349
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest} GetAddressesInfosRequest
|
|
76350
|
+
*/
|
|
76351
|
+
GetAddressesInfosRequest.fromObject = function fromObject(object) {
|
|
76352
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest)
|
|
76353
|
+
return object;
|
|
76354
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest();
|
|
76355
|
+
if (object.v0 != null) {
|
|
76356
|
+
if (typeof object.v0 !== "object")
|
|
76357
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosRequest.v0: object expected");
|
|
76358
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.fromObject(object.v0);
|
|
76359
|
+
}
|
|
76360
|
+
return message;
|
|
76361
|
+
};
|
|
76362
|
+
|
|
76363
|
+
/**
|
|
76364
|
+
* Creates a plain object from a GetAddressesInfosRequest message. Also converts values to other types if specified.
|
|
76365
|
+
* @function toObject
|
|
76366
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76367
|
+
* @static
|
|
76368
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest} message GetAddressesInfosRequest
|
|
76369
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76370
|
+
* @returns {Object.<string,*>} Plain object
|
|
76371
|
+
*/
|
|
76372
|
+
GetAddressesInfosRequest.toObject = function toObject(message, options) {
|
|
76373
|
+
if (!options)
|
|
76374
|
+
options = {};
|
|
76375
|
+
var object = {};
|
|
76376
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
76377
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.toObject(message.v0, options);
|
|
76378
|
+
if (options.oneofs)
|
|
76379
|
+
object.version = "v0";
|
|
76380
|
+
}
|
|
76381
|
+
return object;
|
|
76382
|
+
};
|
|
76383
|
+
|
|
76384
|
+
/**
|
|
76385
|
+
* Converts this GetAddressesInfosRequest to JSON.
|
|
76386
|
+
* @function toJSON
|
|
76387
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76388
|
+
* @instance
|
|
76389
|
+
* @returns {Object.<string,*>} JSON object
|
|
76390
|
+
*/
|
|
76391
|
+
GetAddressesInfosRequest.prototype.toJSON = function toJSON() {
|
|
76392
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76393
|
+
};
|
|
76394
|
+
|
|
76395
|
+
GetAddressesInfosRequest.GetAddressesInfosRequestV0 = (function() {
|
|
76396
|
+
|
|
76397
|
+
/**
|
|
76398
|
+
* Properties of a GetAddressesInfosRequestV0.
|
|
76399
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76400
|
+
* @interface IGetAddressesInfosRequestV0
|
|
76401
|
+
* @property {Array.<Uint8Array>|null} [addresses] GetAddressesInfosRequestV0 addresses
|
|
76402
|
+
* @property {boolean|null} [prove] GetAddressesInfosRequestV0 prove
|
|
76403
|
+
*/
|
|
76404
|
+
|
|
76405
|
+
/**
|
|
76406
|
+
* Constructs a new GetAddressesInfosRequestV0.
|
|
76407
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest
|
|
76408
|
+
* @classdesc Represents a GetAddressesInfosRequestV0.
|
|
76409
|
+
* @implements IGetAddressesInfosRequestV0
|
|
76410
|
+
* @constructor
|
|
76411
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0=} [properties] Properties to set
|
|
76412
|
+
*/
|
|
76413
|
+
function GetAddressesInfosRequestV0(properties) {
|
|
76414
|
+
this.addresses = [];
|
|
76415
|
+
if (properties)
|
|
76416
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76417
|
+
if (properties[keys[i]] != null)
|
|
76418
|
+
this[keys[i]] = properties[keys[i]];
|
|
76419
|
+
}
|
|
76420
|
+
|
|
76421
|
+
/**
|
|
76422
|
+
* GetAddressesInfosRequestV0 addresses.
|
|
76423
|
+
* @member {Array.<Uint8Array>} addresses
|
|
76424
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76425
|
+
* @instance
|
|
76426
|
+
*/
|
|
76427
|
+
GetAddressesInfosRequestV0.prototype.addresses = $util.emptyArray;
|
|
76428
|
+
|
|
76429
|
+
/**
|
|
76430
|
+
* GetAddressesInfosRequestV0 prove.
|
|
76431
|
+
* @member {boolean} prove
|
|
76432
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76433
|
+
* @instance
|
|
76434
|
+
*/
|
|
76435
|
+
GetAddressesInfosRequestV0.prototype.prove = false;
|
|
76436
|
+
|
|
76437
|
+
/**
|
|
76438
|
+
* Creates a new GetAddressesInfosRequestV0 instance using the specified properties.
|
|
76439
|
+
* @function create
|
|
76440
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76441
|
+
* @static
|
|
76442
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0=} [properties] Properties to set
|
|
76443
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0 instance
|
|
76444
|
+
*/
|
|
76445
|
+
GetAddressesInfosRequestV0.create = function create(properties) {
|
|
76446
|
+
return new GetAddressesInfosRequestV0(properties);
|
|
76447
|
+
};
|
|
76448
|
+
|
|
76449
|
+
/**
|
|
76450
|
+
* Encodes the specified GetAddressesInfosRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify|verify} messages.
|
|
76451
|
+
* @function encode
|
|
76452
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76453
|
+
* @static
|
|
76454
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0} message GetAddressesInfosRequestV0 message or plain object to encode
|
|
76455
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76456
|
+
* @returns {$protobuf.Writer} Writer
|
|
76457
|
+
*/
|
|
76458
|
+
GetAddressesInfosRequestV0.encode = function encode(message, writer) {
|
|
76459
|
+
if (!writer)
|
|
76460
|
+
writer = $Writer.create();
|
|
76461
|
+
if (message.addresses != null && message.addresses.length)
|
|
76462
|
+
for (var i = 0; i < message.addresses.length; ++i)
|
|
76463
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.addresses[i]);
|
|
76464
|
+
if (message.prove != null && Object.hasOwnProperty.call(message, "prove"))
|
|
76465
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove);
|
|
76466
|
+
return writer;
|
|
76467
|
+
};
|
|
76468
|
+
|
|
76469
|
+
/**
|
|
76470
|
+
* Encodes the specified GetAddressesInfosRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.verify|verify} messages.
|
|
76471
|
+
* @function encodeDelimited
|
|
76472
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76473
|
+
* @static
|
|
76474
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.IGetAddressesInfosRequestV0} message GetAddressesInfosRequestV0 message or plain object to encode
|
|
76475
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76476
|
+
* @returns {$protobuf.Writer} Writer
|
|
76477
|
+
*/
|
|
76478
|
+
GetAddressesInfosRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76479
|
+
return this.encode(message, writer).ldelim();
|
|
76480
|
+
};
|
|
76481
|
+
|
|
76482
|
+
/**
|
|
76483
|
+
* Decodes a GetAddressesInfosRequestV0 message from the specified reader or buffer.
|
|
76484
|
+
* @function decode
|
|
76485
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76486
|
+
* @static
|
|
76487
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76488
|
+
* @param {number} [length] Message length if known beforehand
|
|
76489
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
|
|
76490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76492
|
+
*/
|
|
76493
|
+
GetAddressesInfosRequestV0.decode = function decode(reader, length) {
|
|
76494
|
+
if (!(reader instanceof $Reader))
|
|
76495
|
+
reader = $Reader.create(reader);
|
|
76496
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0();
|
|
76497
|
+
while (reader.pos < end) {
|
|
76498
|
+
var tag = reader.uint32();
|
|
76499
|
+
switch (tag >>> 3) {
|
|
76500
|
+
case 1:
|
|
76501
|
+
if (!(message.addresses && message.addresses.length))
|
|
76502
|
+
message.addresses = [];
|
|
76503
|
+
message.addresses.push(reader.bytes());
|
|
76504
|
+
break;
|
|
76505
|
+
case 2:
|
|
76506
|
+
message.prove = reader.bool();
|
|
76507
|
+
break;
|
|
76508
|
+
default:
|
|
76509
|
+
reader.skipType(tag & 7);
|
|
76510
|
+
break;
|
|
76511
|
+
}
|
|
76512
|
+
}
|
|
76513
|
+
return message;
|
|
76514
|
+
};
|
|
76515
|
+
|
|
76516
|
+
/**
|
|
76517
|
+
* Decodes a GetAddressesInfosRequestV0 message from the specified reader or buffer, length delimited.
|
|
76518
|
+
* @function decodeDelimited
|
|
76519
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76520
|
+
* @static
|
|
76521
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76522
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
|
|
76523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76525
|
+
*/
|
|
76526
|
+
GetAddressesInfosRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
76527
|
+
if (!(reader instanceof $Reader))
|
|
76528
|
+
reader = new $Reader(reader);
|
|
76529
|
+
return this.decode(reader, reader.uint32());
|
|
76530
|
+
};
|
|
76531
|
+
|
|
76532
|
+
/**
|
|
76533
|
+
* Verifies a GetAddressesInfosRequestV0 message.
|
|
76534
|
+
* @function verify
|
|
76535
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76536
|
+
* @static
|
|
76537
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76538
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76539
|
+
*/
|
|
76540
|
+
GetAddressesInfosRequestV0.verify = function verify(message) {
|
|
76541
|
+
if (typeof message !== "object" || message === null)
|
|
76542
|
+
return "object expected";
|
|
76543
|
+
if (message.addresses != null && message.hasOwnProperty("addresses")) {
|
|
76544
|
+
if (!Array.isArray(message.addresses))
|
|
76545
|
+
return "addresses: array expected";
|
|
76546
|
+
for (var i = 0; i < message.addresses.length; ++i)
|
|
76547
|
+
if (!(message.addresses[i] && typeof message.addresses[i].length === "number" || $util.isString(message.addresses[i])))
|
|
76548
|
+
return "addresses: buffer[] expected";
|
|
76549
|
+
}
|
|
76550
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
76551
|
+
if (typeof message.prove !== "boolean")
|
|
76552
|
+
return "prove: boolean expected";
|
|
76553
|
+
return null;
|
|
76554
|
+
};
|
|
76555
|
+
|
|
76556
|
+
/**
|
|
76557
|
+
* Creates a GetAddressesInfosRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
76558
|
+
* @function fromObject
|
|
76559
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76560
|
+
* @static
|
|
76561
|
+
* @param {Object.<string,*>} object Plain object
|
|
76562
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} GetAddressesInfosRequestV0
|
|
76563
|
+
*/
|
|
76564
|
+
GetAddressesInfosRequestV0.fromObject = function fromObject(object) {
|
|
76565
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0)
|
|
76566
|
+
return object;
|
|
76567
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0();
|
|
76568
|
+
if (object.addresses) {
|
|
76569
|
+
if (!Array.isArray(object.addresses))
|
|
76570
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0.addresses: array expected");
|
|
76571
|
+
message.addresses = [];
|
|
76572
|
+
for (var i = 0; i < object.addresses.length; ++i)
|
|
76573
|
+
if (typeof object.addresses[i] === "string")
|
|
76574
|
+
$util.base64.decode(object.addresses[i], message.addresses[i] = $util.newBuffer($util.base64.length(object.addresses[i])), 0);
|
|
76575
|
+
else if (object.addresses[i].length >= 0)
|
|
76576
|
+
message.addresses[i] = object.addresses[i];
|
|
76577
|
+
}
|
|
76578
|
+
if (object.prove != null)
|
|
76579
|
+
message.prove = Boolean(object.prove);
|
|
76580
|
+
return message;
|
|
76581
|
+
};
|
|
76582
|
+
|
|
76583
|
+
/**
|
|
76584
|
+
* Creates a plain object from a GetAddressesInfosRequestV0 message. Also converts values to other types if specified.
|
|
76585
|
+
* @function toObject
|
|
76586
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76587
|
+
* @static
|
|
76588
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0} message GetAddressesInfosRequestV0
|
|
76589
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76590
|
+
* @returns {Object.<string,*>} Plain object
|
|
76591
|
+
*/
|
|
76592
|
+
GetAddressesInfosRequestV0.toObject = function toObject(message, options) {
|
|
76593
|
+
if (!options)
|
|
76594
|
+
options = {};
|
|
76595
|
+
var object = {};
|
|
76596
|
+
if (options.arrays || options.defaults)
|
|
76597
|
+
object.addresses = [];
|
|
76598
|
+
if (options.defaults)
|
|
76599
|
+
object.prove = false;
|
|
76600
|
+
if (message.addresses && message.addresses.length) {
|
|
76601
|
+
object.addresses = [];
|
|
76602
|
+
for (var j = 0; j < message.addresses.length; ++j)
|
|
76603
|
+
object.addresses[j] = options.bytes === String ? $util.base64.encode(message.addresses[j], 0, message.addresses[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.addresses[j]) : message.addresses[j];
|
|
76604
|
+
}
|
|
76605
|
+
if (message.prove != null && message.hasOwnProperty("prove"))
|
|
76606
|
+
object.prove = message.prove;
|
|
76607
|
+
return object;
|
|
76608
|
+
};
|
|
76609
|
+
|
|
76610
|
+
/**
|
|
76611
|
+
* Converts this GetAddressesInfosRequestV0 to JSON.
|
|
76612
|
+
* @function toJSON
|
|
76613
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0
|
|
76614
|
+
* @instance
|
|
76615
|
+
* @returns {Object.<string,*>} JSON object
|
|
76616
|
+
*/
|
|
76617
|
+
GetAddressesInfosRequestV0.prototype.toJSON = function toJSON() {
|
|
76618
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76619
|
+
};
|
|
76620
|
+
|
|
76621
|
+
return GetAddressesInfosRequestV0;
|
|
76622
|
+
})();
|
|
76623
|
+
|
|
76624
|
+
return GetAddressesInfosRequest;
|
|
76625
|
+
})();
|
|
76626
|
+
|
|
76627
|
+
v0.GetAddressesInfosResponse = (function() {
|
|
76628
|
+
|
|
76629
|
+
/**
|
|
76630
|
+
* Properties of a GetAddressesInfosResponse.
|
|
76631
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76632
|
+
* @interface IGetAddressesInfosResponse
|
|
76633
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0|null} [v0] GetAddressesInfosResponse v0
|
|
76634
|
+
*/
|
|
76635
|
+
|
|
76636
|
+
/**
|
|
76637
|
+
* Constructs a new GetAddressesInfosResponse.
|
|
76638
|
+
* @memberof org.dash.platform.dapi.v0
|
|
76639
|
+
* @classdesc Represents a GetAddressesInfosResponse.
|
|
76640
|
+
* @implements IGetAddressesInfosResponse
|
|
76641
|
+
* @constructor
|
|
76642
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse=} [properties] Properties to set
|
|
76643
|
+
*/
|
|
76644
|
+
function GetAddressesInfosResponse(properties) {
|
|
76645
|
+
if (properties)
|
|
76646
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76647
|
+
if (properties[keys[i]] != null)
|
|
76648
|
+
this[keys[i]] = properties[keys[i]];
|
|
76649
|
+
}
|
|
76650
|
+
|
|
76651
|
+
/**
|
|
76652
|
+
* GetAddressesInfosResponse v0.
|
|
76653
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0|null|undefined} v0
|
|
76654
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76655
|
+
* @instance
|
|
76656
|
+
*/
|
|
76657
|
+
GetAddressesInfosResponse.prototype.v0 = null;
|
|
76658
|
+
|
|
76659
|
+
// OneOf field names bound to virtual getters and setters
|
|
76660
|
+
var $oneOfFields;
|
|
76661
|
+
|
|
76662
|
+
/**
|
|
76663
|
+
* GetAddressesInfosResponse version.
|
|
76664
|
+
* @member {"v0"|undefined} version
|
|
76665
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76666
|
+
* @instance
|
|
76667
|
+
*/
|
|
76668
|
+
Object.defineProperty(GetAddressesInfosResponse.prototype, "version", {
|
|
76669
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
76670
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
76671
|
+
});
|
|
76672
|
+
|
|
76673
|
+
/**
|
|
76674
|
+
* Creates a new GetAddressesInfosResponse instance using the specified properties.
|
|
76675
|
+
* @function create
|
|
76676
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76677
|
+
* @static
|
|
76678
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse=} [properties] Properties to set
|
|
76679
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse instance
|
|
76680
|
+
*/
|
|
76681
|
+
GetAddressesInfosResponse.create = function create(properties) {
|
|
76682
|
+
return new GetAddressesInfosResponse(properties);
|
|
76683
|
+
};
|
|
76684
|
+
|
|
76685
|
+
/**
|
|
76686
|
+
* Encodes the specified GetAddressesInfosResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.verify|verify} messages.
|
|
76687
|
+
* @function encode
|
|
76688
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76689
|
+
* @static
|
|
76690
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse} message GetAddressesInfosResponse message or plain object to encode
|
|
76691
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76692
|
+
* @returns {$protobuf.Writer} Writer
|
|
76693
|
+
*/
|
|
76694
|
+
GetAddressesInfosResponse.encode = function encode(message, writer) {
|
|
76695
|
+
if (!writer)
|
|
76696
|
+
writer = $Writer.create();
|
|
76697
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
76698
|
+
$root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
76699
|
+
return writer;
|
|
76700
|
+
};
|
|
76701
|
+
|
|
76702
|
+
/**
|
|
76703
|
+
* Encodes the specified GetAddressesInfosResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.verify|verify} messages.
|
|
76704
|
+
* @function encodeDelimited
|
|
76705
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76706
|
+
* @static
|
|
76707
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesInfosResponse} message GetAddressesInfosResponse message or plain object to encode
|
|
76708
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76709
|
+
* @returns {$protobuf.Writer} Writer
|
|
76710
|
+
*/
|
|
76711
|
+
GetAddressesInfosResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76712
|
+
return this.encode(message, writer).ldelim();
|
|
76713
|
+
};
|
|
76714
|
+
|
|
76715
|
+
/**
|
|
76716
|
+
* Decodes a GetAddressesInfosResponse message from the specified reader or buffer.
|
|
76717
|
+
* @function decode
|
|
76718
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76719
|
+
* @static
|
|
76720
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76721
|
+
* @param {number} [length] Message length if known beforehand
|
|
76722
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
|
|
76723
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76724
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76725
|
+
*/
|
|
76726
|
+
GetAddressesInfosResponse.decode = function decode(reader, length) {
|
|
76727
|
+
if (!(reader instanceof $Reader))
|
|
76728
|
+
reader = $Reader.create(reader);
|
|
76729
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse();
|
|
76730
|
+
while (reader.pos < end) {
|
|
76731
|
+
var tag = reader.uint32();
|
|
76732
|
+
switch (tag >>> 3) {
|
|
76733
|
+
case 1:
|
|
76734
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.decode(reader, reader.uint32());
|
|
76735
|
+
break;
|
|
76736
|
+
default:
|
|
76737
|
+
reader.skipType(tag & 7);
|
|
76738
|
+
break;
|
|
76739
|
+
}
|
|
76740
|
+
}
|
|
76741
|
+
return message;
|
|
76742
|
+
};
|
|
76743
|
+
|
|
76744
|
+
/**
|
|
76745
|
+
* Decodes a GetAddressesInfosResponse message from the specified reader or buffer, length delimited.
|
|
76746
|
+
* @function decodeDelimited
|
|
76747
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76748
|
+
* @static
|
|
76749
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76750
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
|
|
76751
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76752
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76753
|
+
*/
|
|
76754
|
+
GetAddressesInfosResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
76755
|
+
if (!(reader instanceof $Reader))
|
|
76756
|
+
reader = new $Reader(reader);
|
|
76757
|
+
return this.decode(reader, reader.uint32());
|
|
76758
|
+
};
|
|
76759
|
+
|
|
76760
|
+
/**
|
|
76761
|
+
* Verifies a GetAddressesInfosResponse message.
|
|
76762
|
+
* @function verify
|
|
76763
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76764
|
+
* @static
|
|
76765
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76766
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76767
|
+
*/
|
|
76768
|
+
GetAddressesInfosResponse.verify = function verify(message) {
|
|
76769
|
+
if (typeof message !== "object" || message === null)
|
|
76770
|
+
return "object expected";
|
|
76771
|
+
var properties = {};
|
|
76772
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
76773
|
+
properties.version = 1;
|
|
76774
|
+
{
|
|
76775
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify(message.v0);
|
|
76776
|
+
if (error)
|
|
76777
|
+
return "v0." + error;
|
|
76778
|
+
}
|
|
76779
|
+
}
|
|
76780
|
+
return null;
|
|
76781
|
+
};
|
|
76782
|
+
|
|
76783
|
+
/**
|
|
76784
|
+
* Creates a GetAddressesInfosResponse message from a plain object. Also converts values to their respective internal types.
|
|
76785
|
+
* @function fromObject
|
|
76786
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76787
|
+
* @static
|
|
76788
|
+
* @param {Object.<string,*>} object Plain object
|
|
76789
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse} GetAddressesInfosResponse
|
|
76790
|
+
*/
|
|
76791
|
+
GetAddressesInfosResponse.fromObject = function fromObject(object) {
|
|
76792
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse)
|
|
76793
|
+
return object;
|
|
76794
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse();
|
|
76795
|
+
if (object.v0 != null) {
|
|
76796
|
+
if (typeof object.v0 !== "object")
|
|
76797
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.v0: object expected");
|
|
76798
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.fromObject(object.v0);
|
|
76799
|
+
}
|
|
76800
|
+
return message;
|
|
76801
|
+
};
|
|
76802
|
+
|
|
76803
|
+
/**
|
|
76804
|
+
* Creates a plain object from a GetAddressesInfosResponse message. Also converts values to other types if specified.
|
|
76805
|
+
* @function toObject
|
|
76806
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76807
|
+
* @static
|
|
76808
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse} message GetAddressesInfosResponse
|
|
76809
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
76810
|
+
* @returns {Object.<string,*>} Plain object
|
|
76811
|
+
*/
|
|
76812
|
+
GetAddressesInfosResponse.toObject = function toObject(message, options) {
|
|
76813
|
+
if (!options)
|
|
76814
|
+
options = {};
|
|
76815
|
+
var object = {};
|
|
76816
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
76817
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.toObject(message.v0, options);
|
|
76818
|
+
if (options.oneofs)
|
|
76819
|
+
object.version = "v0";
|
|
76820
|
+
}
|
|
76821
|
+
return object;
|
|
76822
|
+
};
|
|
76823
|
+
|
|
76824
|
+
/**
|
|
76825
|
+
* Converts this GetAddressesInfosResponse to JSON.
|
|
76826
|
+
* @function toJSON
|
|
76827
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76828
|
+
* @instance
|
|
76829
|
+
* @returns {Object.<string,*>} JSON object
|
|
76830
|
+
*/
|
|
76831
|
+
GetAddressesInfosResponse.prototype.toJSON = function toJSON() {
|
|
76832
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
76833
|
+
};
|
|
76834
|
+
|
|
76835
|
+
GetAddressesInfosResponse.GetAddressesInfosResponseV0 = (function() {
|
|
76836
|
+
|
|
76837
|
+
/**
|
|
76838
|
+
* Properties of a GetAddressesInfosResponseV0.
|
|
76839
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76840
|
+
* @interface IGetAddressesInfosResponseV0
|
|
76841
|
+
* @property {org.dash.platform.dapi.v0.IAddressInfoEntries|null} [addressInfoEntries] GetAddressesInfosResponseV0 addressInfoEntries
|
|
76842
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressesInfosResponseV0 proof
|
|
76843
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressesInfosResponseV0 metadata
|
|
76844
|
+
*/
|
|
76845
|
+
|
|
76846
|
+
/**
|
|
76847
|
+
* Constructs a new GetAddressesInfosResponseV0.
|
|
76848
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse
|
|
76849
|
+
* @classdesc Represents a GetAddressesInfosResponseV0.
|
|
76850
|
+
* @implements IGetAddressesInfosResponseV0
|
|
76851
|
+
* @constructor
|
|
76852
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0=} [properties] Properties to set
|
|
76853
|
+
*/
|
|
76854
|
+
function GetAddressesInfosResponseV0(properties) {
|
|
76855
|
+
if (properties)
|
|
76856
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76857
|
+
if (properties[keys[i]] != null)
|
|
76858
|
+
this[keys[i]] = properties[keys[i]];
|
|
76859
|
+
}
|
|
76860
|
+
|
|
76861
|
+
/**
|
|
76862
|
+
* GetAddressesInfosResponseV0 addressInfoEntries.
|
|
76863
|
+
* @member {org.dash.platform.dapi.v0.IAddressInfoEntries|null|undefined} addressInfoEntries
|
|
76864
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76865
|
+
* @instance
|
|
76866
|
+
*/
|
|
76867
|
+
GetAddressesInfosResponseV0.prototype.addressInfoEntries = null;
|
|
76868
|
+
|
|
76869
|
+
/**
|
|
76870
|
+
* GetAddressesInfosResponseV0 proof.
|
|
76871
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
76872
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76873
|
+
* @instance
|
|
76874
|
+
*/
|
|
76875
|
+
GetAddressesInfosResponseV0.prototype.proof = null;
|
|
76876
|
+
|
|
76877
|
+
/**
|
|
76878
|
+
* GetAddressesInfosResponseV0 metadata.
|
|
76879
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
76880
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76881
|
+
* @instance
|
|
76882
|
+
*/
|
|
76883
|
+
GetAddressesInfosResponseV0.prototype.metadata = null;
|
|
76884
|
+
|
|
76885
|
+
// OneOf field names bound to virtual getters and setters
|
|
76886
|
+
var $oneOfFields;
|
|
76887
|
+
|
|
76888
|
+
/**
|
|
76889
|
+
* GetAddressesInfosResponseV0 result.
|
|
76890
|
+
* @member {"addressInfoEntries"|"proof"|undefined} result
|
|
76891
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76892
|
+
* @instance
|
|
76893
|
+
*/
|
|
76894
|
+
Object.defineProperty(GetAddressesInfosResponseV0.prototype, "result", {
|
|
76895
|
+
get: $util.oneOfGetter($oneOfFields = ["addressInfoEntries", "proof"]),
|
|
76896
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
76897
|
+
});
|
|
76898
|
+
|
|
76899
|
+
/**
|
|
76900
|
+
* Creates a new GetAddressesInfosResponseV0 instance using the specified properties.
|
|
76901
|
+
* @function create
|
|
76902
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76903
|
+
* @static
|
|
76904
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0=} [properties] Properties to set
|
|
76905
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0 instance
|
|
76906
|
+
*/
|
|
76907
|
+
GetAddressesInfosResponseV0.create = function create(properties) {
|
|
76908
|
+
return new GetAddressesInfosResponseV0(properties);
|
|
76909
|
+
};
|
|
76910
|
+
|
|
76911
|
+
/**
|
|
76912
|
+
* Encodes the specified GetAddressesInfosResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify|verify} messages.
|
|
76913
|
+
* @function encode
|
|
76914
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76915
|
+
* @static
|
|
76916
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0} message GetAddressesInfosResponseV0 message or plain object to encode
|
|
76917
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76918
|
+
* @returns {$protobuf.Writer} Writer
|
|
76919
|
+
*/
|
|
76920
|
+
GetAddressesInfosResponseV0.encode = function encode(message, writer) {
|
|
76921
|
+
if (!writer)
|
|
76922
|
+
writer = $Writer.create();
|
|
76923
|
+
if (message.addressInfoEntries != null && Object.hasOwnProperty.call(message, "addressInfoEntries"))
|
|
76924
|
+
$root.org.dash.platform.dapi.v0.AddressInfoEntries.encode(message.addressInfoEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
76925
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
76926
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
76927
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
76928
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
76929
|
+
return writer;
|
|
76930
|
+
};
|
|
76931
|
+
|
|
76932
|
+
/**
|
|
76933
|
+
* Encodes the specified GetAddressesInfosResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.verify|verify} messages.
|
|
76934
|
+
* @function encodeDelimited
|
|
76935
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76936
|
+
* @static
|
|
76937
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.IGetAddressesInfosResponseV0} message GetAddressesInfosResponseV0 message or plain object to encode
|
|
76938
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76939
|
+
* @returns {$protobuf.Writer} Writer
|
|
76940
|
+
*/
|
|
76941
|
+
GetAddressesInfosResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76942
|
+
return this.encode(message, writer).ldelim();
|
|
76943
|
+
};
|
|
76944
|
+
|
|
76945
|
+
/**
|
|
76946
|
+
* Decodes a GetAddressesInfosResponseV0 message from the specified reader or buffer.
|
|
76947
|
+
* @function decode
|
|
76948
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76949
|
+
* @static
|
|
76950
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76951
|
+
* @param {number} [length] Message length if known beforehand
|
|
76952
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
|
|
76953
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76954
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76955
|
+
*/
|
|
76956
|
+
GetAddressesInfosResponseV0.decode = function decode(reader, length) {
|
|
76957
|
+
if (!(reader instanceof $Reader))
|
|
76958
|
+
reader = $Reader.create(reader);
|
|
76959
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0();
|
|
76960
|
+
while (reader.pos < end) {
|
|
76961
|
+
var tag = reader.uint32();
|
|
76962
|
+
switch (tag >>> 3) {
|
|
76963
|
+
case 1:
|
|
76964
|
+
message.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.decode(reader, reader.uint32());
|
|
76965
|
+
break;
|
|
76966
|
+
case 2:
|
|
76967
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
76968
|
+
break;
|
|
76969
|
+
case 3:
|
|
76970
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
76971
|
+
break;
|
|
76972
|
+
default:
|
|
76973
|
+
reader.skipType(tag & 7);
|
|
76974
|
+
break;
|
|
76975
|
+
}
|
|
76976
|
+
}
|
|
76977
|
+
return message;
|
|
76978
|
+
};
|
|
76979
|
+
|
|
76980
|
+
/**
|
|
76981
|
+
* Decodes a GetAddressesInfosResponseV0 message from the specified reader or buffer, length delimited.
|
|
76982
|
+
* @function decodeDelimited
|
|
76983
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
76984
|
+
* @static
|
|
76985
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76986
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
|
|
76987
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76988
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76989
|
+
*/
|
|
76990
|
+
GetAddressesInfosResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
76991
|
+
if (!(reader instanceof $Reader))
|
|
76992
|
+
reader = new $Reader(reader);
|
|
76993
|
+
return this.decode(reader, reader.uint32());
|
|
76994
|
+
};
|
|
76995
|
+
|
|
76996
|
+
/**
|
|
76997
|
+
* Verifies a GetAddressesInfosResponseV0 message.
|
|
76998
|
+
* @function verify
|
|
76999
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
77000
|
+
* @static
|
|
77001
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77002
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77003
|
+
*/
|
|
77004
|
+
GetAddressesInfosResponseV0.verify = function verify(message) {
|
|
77005
|
+
if (typeof message !== "object" || message === null)
|
|
77006
|
+
return "object expected";
|
|
77007
|
+
var properties = {};
|
|
77008
|
+
if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
|
|
77009
|
+
properties.result = 1;
|
|
77010
|
+
{
|
|
77011
|
+
var error = $root.org.dash.platform.dapi.v0.AddressInfoEntries.verify(message.addressInfoEntries);
|
|
77012
|
+
if (error)
|
|
77013
|
+
return "addressInfoEntries." + error;
|
|
77014
|
+
}
|
|
77015
|
+
}
|
|
77016
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
77017
|
+
if (properties.result === 1)
|
|
77018
|
+
return "result: multiple values";
|
|
77019
|
+
properties.result = 1;
|
|
77020
|
+
{
|
|
77021
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
77022
|
+
if (error)
|
|
77023
|
+
return "proof." + error;
|
|
77024
|
+
}
|
|
77025
|
+
}
|
|
77026
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
77027
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
77028
|
+
if (error)
|
|
77029
|
+
return "metadata." + error;
|
|
77030
|
+
}
|
|
77031
|
+
return null;
|
|
77032
|
+
};
|
|
77033
|
+
|
|
77034
|
+
/**
|
|
77035
|
+
* Creates a GetAddressesInfosResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
77036
|
+
* @function fromObject
|
|
77037
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
77038
|
+
* @static
|
|
77039
|
+
* @param {Object.<string,*>} object Plain object
|
|
77040
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} GetAddressesInfosResponseV0
|
|
77041
|
+
*/
|
|
77042
|
+
GetAddressesInfosResponseV0.fromObject = function fromObject(object) {
|
|
77043
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0)
|
|
77044
|
+
return object;
|
|
77045
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0();
|
|
77046
|
+
if (object.addressInfoEntries != null) {
|
|
77047
|
+
if (typeof object.addressInfoEntries !== "object")
|
|
77048
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.addressInfoEntries: object expected");
|
|
77049
|
+
message.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.fromObject(object.addressInfoEntries);
|
|
77050
|
+
}
|
|
77051
|
+
if (object.proof != null) {
|
|
77052
|
+
if (typeof object.proof !== "object")
|
|
77053
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.proof: object expected");
|
|
77054
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
77055
|
+
}
|
|
77056
|
+
if (object.metadata != null) {
|
|
77057
|
+
if (typeof object.metadata !== "object")
|
|
77058
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0.metadata: object expected");
|
|
77059
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
77060
|
+
}
|
|
77061
|
+
return message;
|
|
77062
|
+
};
|
|
77063
|
+
|
|
77064
|
+
/**
|
|
77065
|
+
* Creates a plain object from a GetAddressesInfosResponseV0 message. Also converts values to other types if specified.
|
|
77066
|
+
* @function toObject
|
|
77067
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
77068
|
+
* @static
|
|
77069
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0} message GetAddressesInfosResponseV0
|
|
77070
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77071
|
+
* @returns {Object.<string,*>} Plain object
|
|
77072
|
+
*/
|
|
77073
|
+
GetAddressesInfosResponseV0.toObject = function toObject(message, options) {
|
|
77074
|
+
if (!options)
|
|
77075
|
+
options = {};
|
|
77076
|
+
var object = {};
|
|
77077
|
+
if (options.defaults)
|
|
77078
|
+
object.metadata = null;
|
|
77079
|
+
if (message.addressInfoEntries != null && message.hasOwnProperty("addressInfoEntries")) {
|
|
77080
|
+
object.addressInfoEntries = $root.org.dash.platform.dapi.v0.AddressInfoEntries.toObject(message.addressInfoEntries, options);
|
|
77081
|
+
if (options.oneofs)
|
|
77082
|
+
object.result = "addressInfoEntries";
|
|
77083
|
+
}
|
|
77084
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
77085
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
77086
|
+
if (options.oneofs)
|
|
77087
|
+
object.result = "proof";
|
|
77088
|
+
}
|
|
77089
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
77090
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
77091
|
+
return object;
|
|
77092
|
+
};
|
|
77093
|
+
|
|
77094
|
+
/**
|
|
77095
|
+
* Converts this GetAddressesInfosResponseV0 to JSON.
|
|
77096
|
+
* @function toJSON
|
|
77097
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
77098
|
+
* @instance
|
|
77099
|
+
* @returns {Object.<string,*>} JSON object
|
|
77100
|
+
*/
|
|
77101
|
+
GetAddressesInfosResponseV0.prototype.toJSON = function toJSON() {
|
|
77102
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77103
|
+
};
|
|
77104
|
+
|
|
77105
|
+
return GetAddressesInfosResponseV0;
|
|
77106
|
+
})();
|
|
77107
|
+
|
|
77108
|
+
return GetAddressesInfosResponse;
|
|
77109
|
+
})();
|
|
77110
|
+
|
|
77111
|
+
v0.GetAddressesTrunkStateRequest = (function() {
|
|
77112
|
+
|
|
77113
|
+
/**
|
|
77114
|
+
* Properties of a GetAddressesTrunkStateRequest.
|
|
77115
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77116
|
+
* @interface IGetAddressesTrunkStateRequest
|
|
77117
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0|null} [v0] GetAddressesTrunkStateRequest v0
|
|
77118
|
+
*/
|
|
77119
|
+
|
|
77120
|
+
/**
|
|
77121
|
+
* Constructs a new GetAddressesTrunkStateRequest.
|
|
77122
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77123
|
+
* @classdesc Represents a GetAddressesTrunkStateRequest.
|
|
77124
|
+
* @implements IGetAddressesTrunkStateRequest
|
|
77125
|
+
* @constructor
|
|
77126
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest=} [properties] Properties to set
|
|
77127
|
+
*/
|
|
77128
|
+
function GetAddressesTrunkStateRequest(properties) {
|
|
77129
|
+
if (properties)
|
|
77130
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77131
|
+
if (properties[keys[i]] != null)
|
|
77132
|
+
this[keys[i]] = properties[keys[i]];
|
|
77133
|
+
}
|
|
77134
|
+
|
|
77135
|
+
/**
|
|
77136
|
+
* GetAddressesTrunkStateRequest v0.
|
|
77137
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0|null|undefined} v0
|
|
77138
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77139
|
+
* @instance
|
|
77140
|
+
*/
|
|
77141
|
+
GetAddressesTrunkStateRequest.prototype.v0 = null;
|
|
77142
|
+
|
|
77143
|
+
// OneOf field names bound to virtual getters and setters
|
|
77144
|
+
var $oneOfFields;
|
|
77145
|
+
|
|
77146
|
+
/**
|
|
77147
|
+
* GetAddressesTrunkStateRequest version.
|
|
77148
|
+
* @member {"v0"|undefined} version
|
|
77149
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77150
|
+
* @instance
|
|
77151
|
+
*/
|
|
77152
|
+
Object.defineProperty(GetAddressesTrunkStateRequest.prototype, "version", {
|
|
77153
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
77154
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77155
|
+
});
|
|
77156
|
+
|
|
77157
|
+
/**
|
|
77158
|
+
* Creates a new GetAddressesTrunkStateRequest instance using the specified properties.
|
|
77159
|
+
* @function create
|
|
77160
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77161
|
+
* @static
|
|
77162
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest=} [properties] Properties to set
|
|
77163
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest instance
|
|
77164
|
+
*/
|
|
77165
|
+
GetAddressesTrunkStateRequest.create = function create(properties) {
|
|
77166
|
+
return new GetAddressesTrunkStateRequest(properties);
|
|
77167
|
+
};
|
|
77168
|
+
|
|
77169
|
+
/**
|
|
77170
|
+
* Encodes the specified GetAddressesTrunkStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.verify|verify} messages.
|
|
77171
|
+
* @function encode
|
|
77172
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77173
|
+
* @static
|
|
77174
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest message or plain object to encode
|
|
77175
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77176
|
+
* @returns {$protobuf.Writer} Writer
|
|
77177
|
+
*/
|
|
77178
|
+
GetAddressesTrunkStateRequest.encode = function encode(message, writer) {
|
|
77179
|
+
if (!writer)
|
|
77180
|
+
writer = $Writer.create();
|
|
77181
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
77182
|
+
$root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
77183
|
+
return writer;
|
|
77184
|
+
};
|
|
77185
|
+
|
|
77186
|
+
/**
|
|
77187
|
+
* Encodes the specified GetAddressesTrunkStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.verify|verify} messages.
|
|
77188
|
+
* @function encodeDelimited
|
|
77189
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77190
|
+
* @static
|
|
77191
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest message or plain object to encode
|
|
77192
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77193
|
+
* @returns {$protobuf.Writer} Writer
|
|
77194
|
+
*/
|
|
77195
|
+
GetAddressesTrunkStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77196
|
+
return this.encode(message, writer).ldelim();
|
|
77197
|
+
};
|
|
77198
|
+
|
|
77199
|
+
/**
|
|
77200
|
+
* Decodes a GetAddressesTrunkStateRequest message from the specified reader or buffer.
|
|
77201
|
+
* @function decode
|
|
77202
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77203
|
+
* @static
|
|
77204
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77205
|
+
* @param {number} [length] Message length if known beforehand
|
|
77206
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
|
|
77207
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77208
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77209
|
+
*/
|
|
77210
|
+
GetAddressesTrunkStateRequest.decode = function decode(reader, length) {
|
|
77211
|
+
if (!(reader instanceof $Reader))
|
|
77212
|
+
reader = $Reader.create(reader);
|
|
77213
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest();
|
|
77214
|
+
while (reader.pos < end) {
|
|
77215
|
+
var tag = reader.uint32();
|
|
77216
|
+
switch (tag >>> 3) {
|
|
77217
|
+
case 1:
|
|
77218
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.decode(reader, reader.uint32());
|
|
77219
|
+
break;
|
|
77220
|
+
default:
|
|
77221
|
+
reader.skipType(tag & 7);
|
|
77222
|
+
break;
|
|
77223
|
+
}
|
|
77224
|
+
}
|
|
77225
|
+
return message;
|
|
77226
|
+
};
|
|
77227
|
+
|
|
77228
|
+
/**
|
|
77229
|
+
* Decodes a GetAddressesTrunkStateRequest message from the specified reader or buffer, length delimited.
|
|
77230
|
+
* @function decodeDelimited
|
|
77231
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77232
|
+
* @static
|
|
77233
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77234
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
|
|
77235
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77236
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77237
|
+
*/
|
|
77238
|
+
GetAddressesTrunkStateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
77239
|
+
if (!(reader instanceof $Reader))
|
|
77240
|
+
reader = new $Reader(reader);
|
|
77241
|
+
return this.decode(reader, reader.uint32());
|
|
77242
|
+
};
|
|
77243
|
+
|
|
77244
|
+
/**
|
|
77245
|
+
* Verifies a GetAddressesTrunkStateRequest message.
|
|
77246
|
+
* @function verify
|
|
77247
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77248
|
+
* @static
|
|
77249
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77250
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77251
|
+
*/
|
|
77252
|
+
GetAddressesTrunkStateRequest.verify = function verify(message) {
|
|
77253
|
+
if (typeof message !== "object" || message === null)
|
|
77254
|
+
return "object expected";
|
|
77255
|
+
var properties = {};
|
|
77256
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
77257
|
+
properties.version = 1;
|
|
77258
|
+
{
|
|
77259
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify(message.v0);
|
|
77260
|
+
if (error)
|
|
77261
|
+
return "v0." + error;
|
|
77262
|
+
}
|
|
77263
|
+
}
|
|
77264
|
+
return null;
|
|
77265
|
+
};
|
|
77266
|
+
|
|
77267
|
+
/**
|
|
77268
|
+
* Creates a GetAddressesTrunkStateRequest message from a plain object. Also converts values to their respective internal types.
|
|
77269
|
+
* @function fromObject
|
|
77270
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77271
|
+
* @static
|
|
77272
|
+
* @param {Object.<string,*>} object Plain object
|
|
77273
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} GetAddressesTrunkStateRequest
|
|
77274
|
+
*/
|
|
77275
|
+
GetAddressesTrunkStateRequest.fromObject = function fromObject(object) {
|
|
77276
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest)
|
|
77277
|
+
return object;
|
|
77278
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest();
|
|
77279
|
+
if (object.v0 != null) {
|
|
77280
|
+
if (typeof object.v0 !== "object")
|
|
77281
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.v0: object expected");
|
|
77282
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.fromObject(object.v0);
|
|
77283
|
+
}
|
|
77284
|
+
return message;
|
|
77285
|
+
};
|
|
77286
|
+
|
|
77287
|
+
/**
|
|
77288
|
+
* Creates a plain object from a GetAddressesTrunkStateRequest message. Also converts values to other types if specified.
|
|
77289
|
+
* @function toObject
|
|
77290
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77291
|
+
* @static
|
|
77292
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest} message GetAddressesTrunkStateRequest
|
|
77293
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77294
|
+
* @returns {Object.<string,*>} Plain object
|
|
77295
|
+
*/
|
|
77296
|
+
GetAddressesTrunkStateRequest.toObject = function toObject(message, options) {
|
|
77297
|
+
if (!options)
|
|
77298
|
+
options = {};
|
|
77299
|
+
var object = {};
|
|
77300
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
77301
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.toObject(message.v0, options);
|
|
77302
|
+
if (options.oneofs)
|
|
77303
|
+
object.version = "v0";
|
|
77304
|
+
}
|
|
77305
|
+
return object;
|
|
77306
|
+
};
|
|
77307
|
+
|
|
77308
|
+
/**
|
|
77309
|
+
* Converts this GetAddressesTrunkStateRequest to JSON.
|
|
77310
|
+
* @function toJSON
|
|
77311
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77312
|
+
* @instance
|
|
77313
|
+
* @returns {Object.<string,*>} JSON object
|
|
77314
|
+
*/
|
|
77315
|
+
GetAddressesTrunkStateRequest.prototype.toJSON = function toJSON() {
|
|
77316
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77317
|
+
};
|
|
77318
|
+
|
|
77319
|
+
GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0 = (function() {
|
|
77320
|
+
|
|
77321
|
+
/**
|
|
77322
|
+
* Properties of a GetAddressesTrunkStateRequestV0.
|
|
77323
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77324
|
+
* @interface IGetAddressesTrunkStateRequestV0
|
|
77325
|
+
*/
|
|
77326
|
+
|
|
77327
|
+
/**
|
|
77328
|
+
* Constructs a new GetAddressesTrunkStateRequestV0.
|
|
77329
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest
|
|
77330
|
+
* @classdesc Represents a GetAddressesTrunkStateRequestV0.
|
|
77331
|
+
* @implements IGetAddressesTrunkStateRequestV0
|
|
77332
|
+
* @constructor
|
|
77333
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0=} [properties] Properties to set
|
|
77334
|
+
*/
|
|
77335
|
+
function GetAddressesTrunkStateRequestV0(properties) {
|
|
77336
|
+
if (properties)
|
|
77337
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77338
|
+
if (properties[keys[i]] != null)
|
|
77339
|
+
this[keys[i]] = properties[keys[i]];
|
|
77340
|
+
}
|
|
77341
|
+
|
|
77342
|
+
/**
|
|
77343
|
+
* Creates a new GetAddressesTrunkStateRequestV0 instance using the specified properties.
|
|
77344
|
+
* @function create
|
|
77345
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77346
|
+
* @static
|
|
77347
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0=} [properties] Properties to set
|
|
77348
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0 instance
|
|
77349
|
+
*/
|
|
77350
|
+
GetAddressesTrunkStateRequestV0.create = function create(properties) {
|
|
77351
|
+
return new GetAddressesTrunkStateRequestV0(properties);
|
|
77352
|
+
};
|
|
77353
|
+
|
|
77354
|
+
/**
|
|
77355
|
+
* Encodes the specified GetAddressesTrunkStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify|verify} messages.
|
|
77356
|
+
* @function encode
|
|
77357
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77358
|
+
* @static
|
|
77359
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0 message or plain object to encode
|
|
77360
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77361
|
+
* @returns {$protobuf.Writer} Writer
|
|
77362
|
+
*/
|
|
77363
|
+
GetAddressesTrunkStateRequestV0.encode = function encode(message, writer) {
|
|
77364
|
+
if (!writer)
|
|
77365
|
+
writer = $Writer.create();
|
|
77366
|
+
return writer;
|
|
77367
|
+
};
|
|
77368
|
+
|
|
77369
|
+
/**
|
|
77370
|
+
* Encodes the specified GetAddressesTrunkStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0.verify|verify} messages.
|
|
77371
|
+
* @function encodeDelimited
|
|
77372
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77373
|
+
* @static
|
|
77374
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.IGetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0 message or plain object to encode
|
|
77375
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77376
|
+
* @returns {$protobuf.Writer} Writer
|
|
77377
|
+
*/
|
|
77378
|
+
GetAddressesTrunkStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77379
|
+
return this.encode(message, writer).ldelim();
|
|
77380
|
+
};
|
|
77381
|
+
|
|
77382
|
+
/**
|
|
77383
|
+
* Decodes a GetAddressesTrunkStateRequestV0 message from the specified reader or buffer.
|
|
77384
|
+
* @function decode
|
|
77385
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77386
|
+
* @static
|
|
77387
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77388
|
+
* @param {number} [length] Message length if known beforehand
|
|
77389
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
|
|
77390
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77391
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77392
|
+
*/
|
|
77393
|
+
GetAddressesTrunkStateRequestV0.decode = function decode(reader, length) {
|
|
77394
|
+
if (!(reader instanceof $Reader))
|
|
77395
|
+
reader = $Reader.create(reader);
|
|
77396
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0();
|
|
77397
|
+
while (reader.pos < end) {
|
|
77398
|
+
var tag = reader.uint32();
|
|
77399
|
+
switch (tag >>> 3) {
|
|
77400
|
+
default:
|
|
77401
|
+
reader.skipType(tag & 7);
|
|
77402
|
+
break;
|
|
77403
|
+
}
|
|
77404
|
+
}
|
|
77405
|
+
return message;
|
|
77406
|
+
};
|
|
77407
|
+
|
|
77408
|
+
/**
|
|
77409
|
+
* Decodes a GetAddressesTrunkStateRequestV0 message from the specified reader or buffer, length delimited.
|
|
77410
|
+
* @function decodeDelimited
|
|
77411
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77412
|
+
* @static
|
|
77413
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77414
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
|
|
77415
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77416
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77417
|
+
*/
|
|
77418
|
+
GetAddressesTrunkStateRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
77419
|
+
if (!(reader instanceof $Reader))
|
|
77420
|
+
reader = new $Reader(reader);
|
|
77421
|
+
return this.decode(reader, reader.uint32());
|
|
77422
|
+
};
|
|
77423
|
+
|
|
77424
|
+
/**
|
|
77425
|
+
* Verifies a GetAddressesTrunkStateRequestV0 message.
|
|
77426
|
+
* @function verify
|
|
77427
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77428
|
+
* @static
|
|
77429
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77430
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77431
|
+
*/
|
|
77432
|
+
GetAddressesTrunkStateRequestV0.verify = function verify(message) {
|
|
77433
|
+
if (typeof message !== "object" || message === null)
|
|
77434
|
+
return "object expected";
|
|
77435
|
+
return null;
|
|
77436
|
+
};
|
|
77437
|
+
|
|
77438
|
+
/**
|
|
77439
|
+
* Creates a GetAddressesTrunkStateRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
77440
|
+
* @function fromObject
|
|
77441
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77442
|
+
* @static
|
|
77443
|
+
* @param {Object.<string,*>} object Plain object
|
|
77444
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} GetAddressesTrunkStateRequestV0
|
|
77445
|
+
*/
|
|
77446
|
+
GetAddressesTrunkStateRequestV0.fromObject = function fromObject(object) {
|
|
77447
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0)
|
|
77448
|
+
return object;
|
|
77449
|
+
return new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0();
|
|
77450
|
+
};
|
|
77451
|
+
|
|
77452
|
+
/**
|
|
77453
|
+
* Creates a plain object from a GetAddressesTrunkStateRequestV0 message. Also converts values to other types if specified.
|
|
77454
|
+
* @function toObject
|
|
77455
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77456
|
+
* @static
|
|
77457
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0} message GetAddressesTrunkStateRequestV0
|
|
77458
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77459
|
+
* @returns {Object.<string,*>} Plain object
|
|
77460
|
+
*/
|
|
77461
|
+
GetAddressesTrunkStateRequestV0.toObject = function toObject() {
|
|
77462
|
+
return {};
|
|
77463
|
+
};
|
|
77464
|
+
|
|
77465
|
+
/**
|
|
77466
|
+
* Converts this GetAddressesTrunkStateRequestV0 to JSON.
|
|
77467
|
+
* @function toJSON
|
|
77468
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0
|
|
77469
|
+
* @instance
|
|
77470
|
+
* @returns {Object.<string,*>} JSON object
|
|
77471
|
+
*/
|
|
77472
|
+
GetAddressesTrunkStateRequestV0.prototype.toJSON = function toJSON() {
|
|
77473
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77474
|
+
};
|
|
77475
|
+
|
|
77476
|
+
return GetAddressesTrunkStateRequestV0;
|
|
77477
|
+
})();
|
|
77478
|
+
|
|
77479
|
+
return GetAddressesTrunkStateRequest;
|
|
77480
|
+
})();
|
|
77481
|
+
|
|
77482
|
+
v0.GetAddressesTrunkStateResponse = (function() {
|
|
77483
|
+
|
|
77484
|
+
/**
|
|
77485
|
+
* Properties of a GetAddressesTrunkStateResponse.
|
|
77486
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77487
|
+
* @interface IGetAddressesTrunkStateResponse
|
|
77488
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0|null} [v0] GetAddressesTrunkStateResponse v0
|
|
77489
|
+
*/
|
|
77490
|
+
|
|
77491
|
+
/**
|
|
77492
|
+
* Constructs a new GetAddressesTrunkStateResponse.
|
|
77493
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77494
|
+
* @classdesc Represents a GetAddressesTrunkStateResponse.
|
|
77495
|
+
* @implements IGetAddressesTrunkStateResponse
|
|
77496
|
+
* @constructor
|
|
77497
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse=} [properties] Properties to set
|
|
77498
|
+
*/
|
|
77499
|
+
function GetAddressesTrunkStateResponse(properties) {
|
|
77500
|
+
if (properties)
|
|
77501
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77502
|
+
if (properties[keys[i]] != null)
|
|
77503
|
+
this[keys[i]] = properties[keys[i]];
|
|
77504
|
+
}
|
|
77505
|
+
|
|
77506
|
+
/**
|
|
77507
|
+
* GetAddressesTrunkStateResponse v0.
|
|
77508
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0|null|undefined} v0
|
|
77509
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77510
|
+
* @instance
|
|
77511
|
+
*/
|
|
77512
|
+
GetAddressesTrunkStateResponse.prototype.v0 = null;
|
|
77513
|
+
|
|
77514
|
+
// OneOf field names bound to virtual getters and setters
|
|
77515
|
+
var $oneOfFields;
|
|
77516
|
+
|
|
77517
|
+
/**
|
|
77518
|
+
* GetAddressesTrunkStateResponse version.
|
|
77519
|
+
* @member {"v0"|undefined} version
|
|
77520
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77521
|
+
* @instance
|
|
77522
|
+
*/
|
|
77523
|
+
Object.defineProperty(GetAddressesTrunkStateResponse.prototype, "version", {
|
|
77524
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
77525
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77526
|
+
});
|
|
77527
|
+
|
|
77528
|
+
/**
|
|
77529
|
+
* Creates a new GetAddressesTrunkStateResponse instance using the specified properties.
|
|
77530
|
+
* @function create
|
|
77531
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77532
|
+
* @static
|
|
77533
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse=} [properties] Properties to set
|
|
77534
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse instance
|
|
77535
|
+
*/
|
|
77536
|
+
GetAddressesTrunkStateResponse.create = function create(properties) {
|
|
77537
|
+
return new GetAddressesTrunkStateResponse(properties);
|
|
77538
|
+
};
|
|
77539
|
+
|
|
77540
|
+
/**
|
|
77541
|
+
* Encodes the specified GetAddressesTrunkStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.verify|verify} messages.
|
|
77542
|
+
* @function encode
|
|
77543
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77544
|
+
* @static
|
|
77545
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse message or plain object to encode
|
|
77546
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77547
|
+
* @returns {$protobuf.Writer} Writer
|
|
77548
|
+
*/
|
|
77549
|
+
GetAddressesTrunkStateResponse.encode = function encode(message, writer) {
|
|
77550
|
+
if (!writer)
|
|
77551
|
+
writer = $Writer.create();
|
|
77552
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
77553
|
+
$root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
77554
|
+
return writer;
|
|
77555
|
+
};
|
|
77556
|
+
|
|
77557
|
+
/**
|
|
77558
|
+
* Encodes the specified GetAddressesTrunkStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.verify|verify} messages.
|
|
77559
|
+
* @function encodeDelimited
|
|
77560
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77561
|
+
* @static
|
|
77562
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse message or plain object to encode
|
|
77563
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77564
|
+
* @returns {$protobuf.Writer} Writer
|
|
77565
|
+
*/
|
|
77566
|
+
GetAddressesTrunkStateResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77567
|
+
return this.encode(message, writer).ldelim();
|
|
77568
|
+
};
|
|
77569
|
+
|
|
77570
|
+
/**
|
|
77571
|
+
* Decodes a GetAddressesTrunkStateResponse message from the specified reader or buffer.
|
|
77572
|
+
* @function decode
|
|
77573
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77574
|
+
* @static
|
|
77575
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77576
|
+
* @param {number} [length] Message length if known beforehand
|
|
77577
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
|
|
77578
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77579
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77580
|
+
*/
|
|
77581
|
+
GetAddressesTrunkStateResponse.decode = function decode(reader, length) {
|
|
77582
|
+
if (!(reader instanceof $Reader))
|
|
77583
|
+
reader = $Reader.create(reader);
|
|
77584
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse();
|
|
77585
|
+
while (reader.pos < end) {
|
|
77586
|
+
var tag = reader.uint32();
|
|
77587
|
+
switch (tag >>> 3) {
|
|
77588
|
+
case 1:
|
|
77589
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.decode(reader, reader.uint32());
|
|
77590
|
+
break;
|
|
77591
|
+
default:
|
|
77592
|
+
reader.skipType(tag & 7);
|
|
77593
|
+
break;
|
|
77594
|
+
}
|
|
77595
|
+
}
|
|
77596
|
+
return message;
|
|
77597
|
+
};
|
|
77598
|
+
|
|
77599
|
+
/**
|
|
77600
|
+
* Decodes a GetAddressesTrunkStateResponse message from the specified reader or buffer, length delimited.
|
|
77601
|
+
* @function decodeDelimited
|
|
77602
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77603
|
+
* @static
|
|
77604
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77605
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
|
|
77606
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77607
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77608
|
+
*/
|
|
77609
|
+
GetAddressesTrunkStateResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
77610
|
+
if (!(reader instanceof $Reader))
|
|
77611
|
+
reader = new $Reader(reader);
|
|
77612
|
+
return this.decode(reader, reader.uint32());
|
|
77613
|
+
};
|
|
77614
|
+
|
|
77615
|
+
/**
|
|
77616
|
+
* Verifies a GetAddressesTrunkStateResponse message.
|
|
77617
|
+
* @function verify
|
|
77618
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77619
|
+
* @static
|
|
77620
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77621
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77622
|
+
*/
|
|
77623
|
+
GetAddressesTrunkStateResponse.verify = function verify(message) {
|
|
77624
|
+
if (typeof message !== "object" || message === null)
|
|
77625
|
+
return "object expected";
|
|
77626
|
+
var properties = {};
|
|
77627
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
77628
|
+
properties.version = 1;
|
|
77629
|
+
{
|
|
77630
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify(message.v0);
|
|
77631
|
+
if (error)
|
|
77632
|
+
return "v0." + error;
|
|
77633
|
+
}
|
|
77634
|
+
}
|
|
77635
|
+
return null;
|
|
77636
|
+
};
|
|
77637
|
+
|
|
77638
|
+
/**
|
|
77639
|
+
* Creates a GetAddressesTrunkStateResponse message from a plain object. Also converts values to their respective internal types.
|
|
77640
|
+
* @function fromObject
|
|
77641
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77642
|
+
* @static
|
|
77643
|
+
* @param {Object.<string,*>} object Plain object
|
|
77644
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} GetAddressesTrunkStateResponse
|
|
77645
|
+
*/
|
|
77646
|
+
GetAddressesTrunkStateResponse.fromObject = function fromObject(object) {
|
|
77647
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse)
|
|
77648
|
+
return object;
|
|
77649
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse();
|
|
77650
|
+
if (object.v0 != null) {
|
|
77651
|
+
if (typeof object.v0 !== "object")
|
|
77652
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.v0: object expected");
|
|
77653
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.fromObject(object.v0);
|
|
77654
|
+
}
|
|
77655
|
+
return message;
|
|
77656
|
+
};
|
|
77657
|
+
|
|
77658
|
+
/**
|
|
77659
|
+
* Creates a plain object from a GetAddressesTrunkStateResponse message. Also converts values to other types if specified.
|
|
77660
|
+
* @function toObject
|
|
77661
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77662
|
+
* @static
|
|
77663
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse} message GetAddressesTrunkStateResponse
|
|
77664
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77665
|
+
* @returns {Object.<string,*>} Plain object
|
|
77666
|
+
*/
|
|
77667
|
+
GetAddressesTrunkStateResponse.toObject = function toObject(message, options) {
|
|
77668
|
+
if (!options)
|
|
77669
|
+
options = {};
|
|
77670
|
+
var object = {};
|
|
77671
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
77672
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.toObject(message.v0, options);
|
|
77673
|
+
if (options.oneofs)
|
|
77674
|
+
object.version = "v0";
|
|
77675
|
+
}
|
|
77676
|
+
return object;
|
|
77677
|
+
};
|
|
77678
|
+
|
|
77679
|
+
/**
|
|
77680
|
+
* Converts this GetAddressesTrunkStateResponse to JSON.
|
|
77681
|
+
* @function toJSON
|
|
77682
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77683
|
+
* @instance
|
|
77684
|
+
* @returns {Object.<string,*>} JSON object
|
|
77685
|
+
*/
|
|
77686
|
+
GetAddressesTrunkStateResponse.prototype.toJSON = function toJSON() {
|
|
77687
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77688
|
+
};
|
|
77689
|
+
|
|
77690
|
+
GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0 = (function() {
|
|
77691
|
+
|
|
77692
|
+
/**
|
|
77693
|
+
* Properties of a GetAddressesTrunkStateResponseV0.
|
|
77694
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77695
|
+
* @interface IGetAddressesTrunkStateResponseV0
|
|
77696
|
+
* @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetAddressesTrunkStateResponseV0 proof
|
|
77697
|
+
* @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetAddressesTrunkStateResponseV0 metadata
|
|
77698
|
+
*/
|
|
77699
|
+
|
|
77700
|
+
/**
|
|
77701
|
+
* Constructs a new GetAddressesTrunkStateResponseV0.
|
|
77702
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse
|
|
77703
|
+
* @classdesc Represents a GetAddressesTrunkStateResponseV0.
|
|
77704
|
+
* @implements IGetAddressesTrunkStateResponseV0
|
|
77705
|
+
* @constructor
|
|
77706
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0=} [properties] Properties to set
|
|
77707
|
+
*/
|
|
77708
|
+
function GetAddressesTrunkStateResponseV0(properties) {
|
|
77709
|
+
if (properties)
|
|
77710
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77711
|
+
if (properties[keys[i]] != null)
|
|
77712
|
+
this[keys[i]] = properties[keys[i]];
|
|
77713
|
+
}
|
|
77714
|
+
|
|
77715
|
+
/**
|
|
77716
|
+
* GetAddressesTrunkStateResponseV0 proof.
|
|
77717
|
+
* @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof
|
|
77718
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77719
|
+
* @instance
|
|
77720
|
+
*/
|
|
77721
|
+
GetAddressesTrunkStateResponseV0.prototype.proof = null;
|
|
77722
|
+
|
|
77723
|
+
/**
|
|
77724
|
+
* GetAddressesTrunkStateResponseV0 metadata.
|
|
77725
|
+
* @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata
|
|
77726
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77727
|
+
* @instance
|
|
77728
|
+
*/
|
|
77729
|
+
GetAddressesTrunkStateResponseV0.prototype.metadata = null;
|
|
77730
|
+
|
|
77731
|
+
/**
|
|
77732
|
+
* Creates a new GetAddressesTrunkStateResponseV0 instance using the specified properties.
|
|
77733
|
+
* @function create
|
|
77734
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77735
|
+
* @static
|
|
77736
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0=} [properties] Properties to set
|
|
77737
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0 instance
|
|
77738
|
+
*/
|
|
77739
|
+
GetAddressesTrunkStateResponseV0.create = function create(properties) {
|
|
77740
|
+
return new GetAddressesTrunkStateResponseV0(properties);
|
|
77741
|
+
};
|
|
77742
|
+
|
|
77743
|
+
/**
|
|
77744
|
+
* Encodes the specified GetAddressesTrunkStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify|verify} messages.
|
|
77745
|
+
* @function encode
|
|
77746
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77747
|
+
* @static
|
|
77748
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0 message or plain object to encode
|
|
77749
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77750
|
+
* @returns {$protobuf.Writer} Writer
|
|
77751
|
+
*/
|
|
77752
|
+
GetAddressesTrunkStateResponseV0.encode = function encode(message, writer) {
|
|
77753
|
+
if (!writer)
|
|
77754
|
+
writer = $Writer.create();
|
|
77755
|
+
if (message.proof != null && Object.hasOwnProperty.call(message, "proof"))
|
|
77756
|
+
$root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
77757
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
77758
|
+
$root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
77759
|
+
return writer;
|
|
77760
|
+
};
|
|
77761
|
+
|
|
77762
|
+
/**
|
|
77763
|
+
* Encodes the specified GetAddressesTrunkStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.verify|verify} messages.
|
|
77764
|
+
* @function encodeDelimited
|
|
77765
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77766
|
+
* @static
|
|
77767
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.IGetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0 message or plain object to encode
|
|
77768
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77769
|
+
* @returns {$protobuf.Writer} Writer
|
|
77770
|
+
*/
|
|
77771
|
+
GetAddressesTrunkStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77772
|
+
return this.encode(message, writer).ldelim();
|
|
77773
|
+
};
|
|
77774
|
+
|
|
77775
|
+
/**
|
|
77776
|
+
* Decodes a GetAddressesTrunkStateResponseV0 message from the specified reader or buffer.
|
|
77777
|
+
* @function decode
|
|
77778
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77779
|
+
* @static
|
|
77780
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77781
|
+
* @param {number} [length] Message length if known beforehand
|
|
77782
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
|
|
77783
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77784
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77785
|
+
*/
|
|
77786
|
+
GetAddressesTrunkStateResponseV0.decode = function decode(reader, length) {
|
|
77787
|
+
if (!(reader instanceof $Reader))
|
|
77788
|
+
reader = $Reader.create(reader);
|
|
77789
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0();
|
|
77790
|
+
while (reader.pos < end) {
|
|
77791
|
+
var tag = reader.uint32();
|
|
77792
|
+
switch (tag >>> 3) {
|
|
77793
|
+
case 2:
|
|
77794
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32());
|
|
77795
|
+
break;
|
|
77796
|
+
case 3:
|
|
77797
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32());
|
|
77798
|
+
break;
|
|
77799
|
+
default:
|
|
77800
|
+
reader.skipType(tag & 7);
|
|
77801
|
+
break;
|
|
77802
|
+
}
|
|
77803
|
+
}
|
|
77804
|
+
return message;
|
|
77805
|
+
};
|
|
77806
|
+
|
|
77807
|
+
/**
|
|
77808
|
+
* Decodes a GetAddressesTrunkStateResponseV0 message from the specified reader or buffer, length delimited.
|
|
77809
|
+
* @function decodeDelimited
|
|
77810
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77811
|
+
* @static
|
|
77812
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
77813
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
|
|
77814
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
77815
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
77816
|
+
*/
|
|
77817
|
+
GetAddressesTrunkStateResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
77818
|
+
if (!(reader instanceof $Reader))
|
|
77819
|
+
reader = new $Reader(reader);
|
|
77820
|
+
return this.decode(reader, reader.uint32());
|
|
77821
|
+
};
|
|
77822
|
+
|
|
77823
|
+
/**
|
|
77824
|
+
* Verifies a GetAddressesTrunkStateResponseV0 message.
|
|
77825
|
+
* @function verify
|
|
77826
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77827
|
+
* @static
|
|
77828
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
77829
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
77830
|
+
*/
|
|
77831
|
+
GetAddressesTrunkStateResponseV0.verify = function verify(message) {
|
|
77832
|
+
if (typeof message !== "object" || message === null)
|
|
77833
|
+
return "object expected";
|
|
77834
|
+
if (message.proof != null && message.hasOwnProperty("proof")) {
|
|
77835
|
+
var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof);
|
|
77836
|
+
if (error)
|
|
77837
|
+
return "proof." + error;
|
|
77838
|
+
}
|
|
77839
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
77840
|
+
var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata);
|
|
77841
|
+
if (error)
|
|
77842
|
+
return "metadata." + error;
|
|
77843
|
+
}
|
|
77844
|
+
return null;
|
|
77845
|
+
};
|
|
77846
|
+
|
|
77847
|
+
/**
|
|
77848
|
+
* Creates a GetAddressesTrunkStateResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
77849
|
+
* @function fromObject
|
|
77850
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77851
|
+
* @static
|
|
77852
|
+
* @param {Object.<string,*>} object Plain object
|
|
77853
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} GetAddressesTrunkStateResponseV0
|
|
77854
|
+
*/
|
|
77855
|
+
GetAddressesTrunkStateResponseV0.fromObject = function fromObject(object) {
|
|
77856
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0)
|
|
77857
|
+
return object;
|
|
77858
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0();
|
|
77859
|
+
if (object.proof != null) {
|
|
77860
|
+
if (typeof object.proof !== "object")
|
|
77861
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.proof: object expected");
|
|
77862
|
+
message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof);
|
|
77863
|
+
}
|
|
77864
|
+
if (object.metadata != null) {
|
|
77865
|
+
if (typeof object.metadata !== "object")
|
|
77866
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0.metadata: object expected");
|
|
77867
|
+
message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata);
|
|
77868
|
+
}
|
|
77869
|
+
return message;
|
|
77870
|
+
};
|
|
77871
|
+
|
|
77872
|
+
/**
|
|
77873
|
+
* Creates a plain object from a GetAddressesTrunkStateResponseV0 message. Also converts values to other types if specified.
|
|
77874
|
+
* @function toObject
|
|
77875
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77876
|
+
* @static
|
|
77877
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0} message GetAddressesTrunkStateResponseV0
|
|
77878
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77879
|
+
* @returns {Object.<string,*>} Plain object
|
|
77880
|
+
*/
|
|
77881
|
+
GetAddressesTrunkStateResponseV0.toObject = function toObject(message, options) {
|
|
77882
|
+
if (!options)
|
|
77883
|
+
options = {};
|
|
77884
|
+
var object = {};
|
|
77885
|
+
if (options.defaults) {
|
|
77886
|
+
object.proof = null;
|
|
77887
|
+
object.metadata = null;
|
|
77888
|
+
}
|
|
77889
|
+
if (message.proof != null && message.hasOwnProperty("proof"))
|
|
77890
|
+
object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options);
|
|
77891
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
77892
|
+
object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options);
|
|
77893
|
+
return object;
|
|
77894
|
+
};
|
|
77895
|
+
|
|
77896
|
+
/**
|
|
77897
|
+
* Converts this GetAddressesTrunkStateResponseV0 to JSON.
|
|
77898
|
+
* @function toJSON
|
|
77899
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0
|
|
77900
|
+
* @instance
|
|
77901
|
+
* @returns {Object.<string,*>} JSON object
|
|
77902
|
+
*/
|
|
77903
|
+
GetAddressesTrunkStateResponseV0.prototype.toJSON = function toJSON() {
|
|
77904
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77905
|
+
};
|
|
77906
|
+
|
|
77907
|
+
return GetAddressesTrunkStateResponseV0;
|
|
77908
|
+
})();
|
|
77909
|
+
|
|
77910
|
+
return GetAddressesTrunkStateResponse;
|
|
77911
|
+
})();
|
|
77912
|
+
|
|
77913
|
+
v0.GetAddressesBranchStateRequest = (function() {
|
|
77914
|
+
|
|
77915
|
+
/**
|
|
77916
|
+
* Properties of a GetAddressesBranchStateRequest.
|
|
77917
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77918
|
+
* @interface IGetAddressesBranchStateRequest
|
|
77919
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0|null} [v0] GetAddressesBranchStateRequest v0
|
|
77920
|
+
*/
|
|
77921
|
+
|
|
77922
|
+
/**
|
|
77923
|
+
* Constructs a new GetAddressesBranchStateRequest.
|
|
77924
|
+
* @memberof org.dash.platform.dapi.v0
|
|
77925
|
+
* @classdesc Represents a GetAddressesBranchStateRequest.
|
|
77926
|
+
* @implements IGetAddressesBranchStateRequest
|
|
77927
|
+
* @constructor
|
|
77928
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest=} [properties] Properties to set
|
|
77929
|
+
*/
|
|
77930
|
+
function GetAddressesBranchStateRequest(properties) {
|
|
77931
|
+
if (properties)
|
|
77932
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
77933
|
+
if (properties[keys[i]] != null)
|
|
77934
|
+
this[keys[i]] = properties[keys[i]];
|
|
77935
|
+
}
|
|
77936
|
+
|
|
77937
|
+
/**
|
|
77938
|
+
* GetAddressesBranchStateRequest v0.
|
|
77939
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0|null|undefined} v0
|
|
77940
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
77941
|
+
* @instance
|
|
77942
|
+
*/
|
|
77943
|
+
GetAddressesBranchStateRequest.prototype.v0 = null;
|
|
77944
|
+
|
|
77945
|
+
// OneOf field names bound to virtual getters and setters
|
|
77946
|
+
var $oneOfFields;
|
|
77947
|
+
|
|
77948
|
+
/**
|
|
77949
|
+
* GetAddressesBranchStateRequest version.
|
|
77950
|
+
* @member {"v0"|undefined} version
|
|
77951
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
77952
|
+
* @instance
|
|
77953
|
+
*/
|
|
77954
|
+
Object.defineProperty(GetAddressesBranchStateRequest.prototype, "version", {
|
|
77955
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
77956
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77957
|
+
});
|
|
77958
|
+
|
|
77959
|
+
/**
|
|
77960
|
+
* Creates a new GetAddressesBranchStateRequest instance using the specified properties.
|
|
77961
|
+
* @function create
|
|
77962
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
77963
|
+
* @static
|
|
77964
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest=} [properties] Properties to set
|
|
77965
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest instance
|
|
77966
|
+
*/
|
|
77967
|
+
GetAddressesBranchStateRequest.create = function create(properties) {
|
|
77968
|
+
return new GetAddressesBranchStateRequest(properties);
|
|
77969
|
+
};
|
|
77970
|
+
|
|
77971
|
+
/**
|
|
77972
|
+
* Encodes the specified GetAddressesBranchStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.verify|verify} messages.
|
|
77973
|
+
* @function encode
|
|
77974
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
77975
|
+
* @static
|
|
77976
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} message GetAddressesBranchStateRequest message or plain object to encode
|
|
77977
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77978
|
+
* @returns {$protobuf.Writer} Writer
|
|
77979
|
+
*/
|
|
77980
|
+
GetAddressesBranchStateRequest.encode = function encode(message, writer) {
|
|
77981
|
+
if (!writer)
|
|
77982
|
+
writer = $Writer.create();
|
|
77983
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
77984
|
+
$root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
77985
|
+
return writer;
|
|
77986
|
+
};
|
|
77987
|
+
|
|
77988
|
+
/**
|
|
77989
|
+
* Encodes the specified GetAddressesBranchStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.verify|verify} messages.
|
|
77990
|
+
* @function encodeDelimited
|
|
77991
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
77992
|
+
* @static
|
|
77993
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateRequest} message GetAddressesBranchStateRequest message or plain object to encode
|
|
77994
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
77995
|
+
* @returns {$protobuf.Writer} Writer
|
|
77996
|
+
*/
|
|
77997
|
+
GetAddressesBranchStateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
77998
|
+
return this.encode(message, writer).ldelim();
|
|
77999
|
+
};
|
|
78000
|
+
|
|
78001
|
+
/**
|
|
78002
|
+
* Decodes a GetAddressesBranchStateRequest message from the specified reader or buffer.
|
|
78003
|
+
* @function decode
|
|
78004
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78005
|
+
* @static
|
|
78006
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78007
|
+
* @param {number} [length] Message length if known beforehand
|
|
78008
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
|
|
78009
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78010
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78011
|
+
*/
|
|
78012
|
+
GetAddressesBranchStateRequest.decode = function decode(reader, length) {
|
|
78013
|
+
if (!(reader instanceof $Reader))
|
|
78014
|
+
reader = $Reader.create(reader);
|
|
78015
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest();
|
|
78016
|
+
while (reader.pos < end) {
|
|
78017
|
+
var tag = reader.uint32();
|
|
78018
|
+
switch (tag >>> 3) {
|
|
78019
|
+
case 1:
|
|
78020
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.decode(reader, reader.uint32());
|
|
78021
|
+
break;
|
|
78022
|
+
default:
|
|
78023
|
+
reader.skipType(tag & 7);
|
|
78024
|
+
break;
|
|
78025
|
+
}
|
|
78026
|
+
}
|
|
78027
|
+
return message;
|
|
78028
|
+
};
|
|
78029
|
+
|
|
78030
|
+
/**
|
|
78031
|
+
* Decodes a GetAddressesBranchStateRequest message from the specified reader or buffer, length delimited.
|
|
78032
|
+
* @function decodeDelimited
|
|
78033
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78034
|
+
* @static
|
|
78035
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78036
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
|
|
78037
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78038
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78039
|
+
*/
|
|
78040
|
+
GetAddressesBranchStateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
78041
|
+
if (!(reader instanceof $Reader))
|
|
78042
|
+
reader = new $Reader(reader);
|
|
78043
|
+
return this.decode(reader, reader.uint32());
|
|
78044
|
+
};
|
|
78045
|
+
|
|
78046
|
+
/**
|
|
78047
|
+
* Verifies a GetAddressesBranchStateRequest message.
|
|
78048
|
+
* @function verify
|
|
78049
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78050
|
+
* @static
|
|
78051
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78052
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78053
|
+
*/
|
|
78054
|
+
GetAddressesBranchStateRequest.verify = function verify(message) {
|
|
78055
|
+
if (typeof message !== "object" || message === null)
|
|
78056
|
+
return "object expected";
|
|
78057
|
+
var properties = {};
|
|
78058
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
78059
|
+
properties.version = 1;
|
|
78060
|
+
{
|
|
78061
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify(message.v0);
|
|
78062
|
+
if (error)
|
|
78063
|
+
return "v0." + error;
|
|
78064
|
+
}
|
|
78065
|
+
}
|
|
78066
|
+
return null;
|
|
78067
|
+
};
|
|
78068
|
+
|
|
78069
|
+
/**
|
|
78070
|
+
* Creates a GetAddressesBranchStateRequest message from a plain object. Also converts values to their respective internal types.
|
|
78071
|
+
* @function fromObject
|
|
78072
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78073
|
+
* @static
|
|
78074
|
+
* @param {Object.<string,*>} object Plain object
|
|
78075
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} GetAddressesBranchStateRequest
|
|
78076
|
+
*/
|
|
78077
|
+
GetAddressesBranchStateRequest.fromObject = function fromObject(object) {
|
|
78078
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest)
|
|
78079
|
+
return object;
|
|
78080
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest();
|
|
78081
|
+
if (object.v0 != null) {
|
|
78082
|
+
if (typeof object.v0 !== "object")
|
|
78083
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.v0: object expected");
|
|
78084
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.fromObject(object.v0);
|
|
78085
|
+
}
|
|
78086
|
+
return message;
|
|
78087
|
+
};
|
|
78088
|
+
|
|
78089
|
+
/**
|
|
78090
|
+
* Creates a plain object from a GetAddressesBranchStateRequest message. Also converts values to other types if specified.
|
|
78091
|
+
* @function toObject
|
|
78092
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78093
|
+
* @static
|
|
78094
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest} message GetAddressesBranchStateRequest
|
|
78095
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78096
|
+
* @returns {Object.<string,*>} Plain object
|
|
78097
|
+
*/
|
|
78098
|
+
GetAddressesBranchStateRequest.toObject = function toObject(message, options) {
|
|
78099
|
+
if (!options)
|
|
78100
|
+
options = {};
|
|
78101
|
+
var object = {};
|
|
78102
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
78103
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.toObject(message.v0, options);
|
|
78104
|
+
if (options.oneofs)
|
|
78105
|
+
object.version = "v0";
|
|
78106
|
+
}
|
|
78107
|
+
return object;
|
|
78108
|
+
};
|
|
78109
|
+
|
|
78110
|
+
/**
|
|
78111
|
+
* Converts this GetAddressesBranchStateRequest to JSON.
|
|
78112
|
+
* @function toJSON
|
|
78113
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78114
|
+
* @instance
|
|
78115
|
+
* @returns {Object.<string,*>} JSON object
|
|
78116
|
+
*/
|
|
78117
|
+
GetAddressesBranchStateRequest.prototype.toJSON = function toJSON() {
|
|
78118
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78119
|
+
};
|
|
78120
|
+
|
|
78121
|
+
GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0 = (function() {
|
|
78122
|
+
|
|
78123
|
+
/**
|
|
78124
|
+
* Properties of a GetAddressesBranchStateRequestV0.
|
|
78125
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78126
|
+
* @interface IGetAddressesBranchStateRequestV0
|
|
78127
|
+
* @property {Uint8Array|null} [key] GetAddressesBranchStateRequestV0 key
|
|
78128
|
+
* @property {number|null} [depth] GetAddressesBranchStateRequestV0 depth
|
|
78129
|
+
*/
|
|
78130
|
+
|
|
78131
|
+
/**
|
|
78132
|
+
* Constructs a new GetAddressesBranchStateRequestV0.
|
|
78133
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest
|
|
78134
|
+
* @classdesc Represents a GetAddressesBranchStateRequestV0.
|
|
78135
|
+
* @implements IGetAddressesBranchStateRequestV0
|
|
78136
|
+
* @constructor
|
|
78137
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0=} [properties] Properties to set
|
|
78138
|
+
*/
|
|
78139
|
+
function GetAddressesBranchStateRequestV0(properties) {
|
|
78140
|
+
if (properties)
|
|
78141
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
78142
|
+
if (properties[keys[i]] != null)
|
|
78143
|
+
this[keys[i]] = properties[keys[i]];
|
|
78144
|
+
}
|
|
78145
|
+
|
|
78146
|
+
/**
|
|
78147
|
+
* GetAddressesBranchStateRequestV0 key.
|
|
78148
|
+
* @member {Uint8Array} key
|
|
78149
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78150
|
+
* @instance
|
|
78151
|
+
*/
|
|
78152
|
+
GetAddressesBranchStateRequestV0.prototype.key = $util.newBuffer([]);
|
|
78153
|
+
|
|
78154
|
+
/**
|
|
78155
|
+
* GetAddressesBranchStateRequestV0 depth.
|
|
78156
|
+
* @member {number} depth
|
|
78157
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78158
|
+
* @instance
|
|
78159
|
+
*/
|
|
78160
|
+
GetAddressesBranchStateRequestV0.prototype.depth = 0;
|
|
78161
|
+
|
|
78162
|
+
/**
|
|
78163
|
+
* Creates a new GetAddressesBranchStateRequestV0 instance using the specified properties.
|
|
78164
|
+
* @function create
|
|
78165
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78166
|
+
* @static
|
|
78167
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0=} [properties] Properties to set
|
|
78168
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0 instance
|
|
78169
|
+
*/
|
|
78170
|
+
GetAddressesBranchStateRequestV0.create = function create(properties) {
|
|
78171
|
+
return new GetAddressesBranchStateRequestV0(properties);
|
|
78172
|
+
};
|
|
78173
|
+
|
|
78174
|
+
/**
|
|
78175
|
+
* Encodes the specified GetAddressesBranchStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify|verify} messages.
|
|
78176
|
+
* @function encode
|
|
78177
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78178
|
+
* @static
|
|
78179
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0 message or plain object to encode
|
|
78180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78181
|
+
* @returns {$protobuf.Writer} Writer
|
|
78182
|
+
*/
|
|
78183
|
+
GetAddressesBranchStateRequestV0.encode = function encode(message, writer) {
|
|
78184
|
+
if (!writer)
|
|
78185
|
+
writer = $Writer.create();
|
|
78186
|
+
if (message.key != null && Object.hasOwnProperty.call(message, "key"))
|
|
78187
|
+
writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key);
|
|
78188
|
+
if (message.depth != null && Object.hasOwnProperty.call(message, "depth"))
|
|
78189
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.depth);
|
|
78190
|
+
return writer;
|
|
78191
|
+
};
|
|
78192
|
+
|
|
78193
|
+
/**
|
|
78194
|
+
* Encodes the specified GetAddressesBranchStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0.verify|verify} messages.
|
|
78195
|
+
* @function encodeDelimited
|
|
78196
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78197
|
+
* @static
|
|
78198
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.IGetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0 message or plain object to encode
|
|
78199
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78200
|
+
* @returns {$protobuf.Writer} Writer
|
|
78201
|
+
*/
|
|
78202
|
+
GetAddressesBranchStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
78203
|
+
return this.encode(message, writer).ldelim();
|
|
78204
|
+
};
|
|
78205
|
+
|
|
78206
|
+
/**
|
|
78207
|
+
* Decodes a GetAddressesBranchStateRequestV0 message from the specified reader or buffer.
|
|
78208
|
+
* @function decode
|
|
78209
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78210
|
+
* @static
|
|
78211
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78212
|
+
* @param {number} [length] Message length if known beforehand
|
|
78213
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
|
|
78214
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78215
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78216
|
+
*/
|
|
78217
|
+
GetAddressesBranchStateRequestV0.decode = function decode(reader, length) {
|
|
78218
|
+
if (!(reader instanceof $Reader))
|
|
78219
|
+
reader = $Reader.create(reader);
|
|
78220
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0();
|
|
78221
|
+
while (reader.pos < end) {
|
|
78222
|
+
var tag = reader.uint32();
|
|
78223
|
+
switch (tag >>> 3) {
|
|
78224
|
+
case 1:
|
|
78225
|
+
message.key = reader.bytes();
|
|
78226
|
+
break;
|
|
78227
|
+
case 2:
|
|
78228
|
+
message.depth = reader.uint32();
|
|
78229
|
+
break;
|
|
78230
|
+
default:
|
|
78231
|
+
reader.skipType(tag & 7);
|
|
78232
|
+
break;
|
|
78233
|
+
}
|
|
78234
|
+
}
|
|
78235
|
+
return message;
|
|
78236
|
+
};
|
|
78237
|
+
|
|
78238
|
+
/**
|
|
78239
|
+
* Decodes a GetAddressesBranchStateRequestV0 message from the specified reader or buffer, length delimited.
|
|
78240
|
+
* @function decodeDelimited
|
|
78241
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78242
|
+
* @static
|
|
78243
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78244
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
|
|
78245
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78246
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78247
|
+
*/
|
|
78248
|
+
GetAddressesBranchStateRequestV0.decodeDelimited = function decodeDelimited(reader) {
|
|
78249
|
+
if (!(reader instanceof $Reader))
|
|
78250
|
+
reader = new $Reader(reader);
|
|
78251
|
+
return this.decode(reader, reader.uint32());
|
|
78252
|
+
};
|
|
78253
|
+
|
|
78254
|
+
/**
|
|
78255
|
+
* Verifies a GetAddressesBranchStateRequestV0 message.
|
|
78256
|
+
* @function verify
|
|
78257
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78258
|
+
* @static
|
|
78259
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78260
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78261
|
+
*/
|
|
78262
|
+
GetAddressesBranchStateRequestV0.verify = function verify(message) {
|
|
78263
|
+
if (typeof message !== "object" || message === null)
|
|
78264
|
+
return "object expected";
|
|
78265
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
78266
|
+
if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key)))
|
|
78267
|
+
return "key: buffer expected";
|
|
78268
|
+
if (message.depth != null && message.hasOwnProperty("depth"))
|
|
78269
|
+
if (!$util.isInteger(message.depth))
|
|
78270
|
+
return "depth: integer expected";
|
|
78271
|
+
return null;
|
|
78272
|
+
};
|
|
78273
|
+
|
|
78274
|
+
/**
|
|
78275
|
+
* Creates a GetAddressesBranchStateRequestV0 message from a plain object. Also converts values to their respective internal types.
|
|
78276
|
+
* @function fromObject
|
|
78277
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78278
|
+
* @static
|
|
78279
|
+
* @param {Object.<string,*>} object Plain object
|
|
78280
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} GetAddressesBranchStateRequestV0
|
|
78281
|
+
*/
|
|
78282
|
+
GetAddressesBranchStateRequestV0.fromObject = function fromObject(object) {
|
|
78283
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0)
|
|
78284
|
+
return object;
|
|
78285
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0();
|
|
78286
|
+
if (object.key != null)
|
|
78287
|
+
if (typeof object.key === "string")
|
|
78288
|
+
$util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0);
|
|
78289
|
+
else if (object.key.length >= 0)
|
|
78290
|
+
message.key = object.key;
|
|
78291
|
+
if (object.depth != null)
|
|
78292
|
+
message.depth = object.depth >>> 0;
|
|
78293
|
+
return message;
|
|
78294
|
+
};
|
|
78295
|
+
|
|
78296
|
+
/**
|
|
78297
|
+
* Creates a plain object from a GetAddressesBranchStateRequestV0 message. Also converts values to other types if specified.
|
|
78298
|
+
* @function toObject
|
|
78299
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78300
|
+
* @static
|
|
78301
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0} message GetAddressesBranchStateRequestV0
|
|
78302
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78303
|
+
* @returns {Object.<string,*>} Plain object
|
|
78304
|
+
*/
|
|
78305
|
+
GetAddressesBranchStateRequestV0.toObject = function toObject(message, options) {
|
|
78306
|
+
if (!options)
|
|
78307
|
+
options = {};
|
|
78308
|
+
var object = {};
|
|
78309
|
+
if (options.defaults) {
|
|
78310
|
+
if (options.bytes === String)
|
|
78311
|
+
object.key = "";
|
|
78312
|
+
else {
|
|
78313
|
+
object.key = [];
|
|
78314
|
+
if (options.bytes !== Array)
|
|
78315
|
+
object.key = $util.newBuffer(object.key);
|
|
78316
|
+
}
|
|
78317
|
+
object.depth = 0;
|
|
78318
|
+
}
|
|
78319
|
+
if (message.key != null && message.hasOwnProperty("key"))
|
|
78320
|
+
object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key;
|
|
78321
|
+
if (message.depth != null && message.hasOwnProperty("depth"))
|
|
78322
|
+
object.depth = message.depth;
|
|
78323
|
+
return object;
|
|
78324
|
+
};
|
|
78325
|
+
|
|
78326
|
+
/**
|
|
78327
|
+
* Converts this GetAddressesBranchStateRequestV0 to JSON.
|
|
78328
|
+
* @function toJSON
|
|
78329
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0
|
|
78330
|
+
* @instance
|
|
78331
|
+
* @returns {Object.<string,*>} JSON object
|
|
78332
|
+
*/
|
|
78333
|
+
GetAddressesBranchStateRequestV0.prototype.toJSON = function toJSON() {
|
|
78334
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78335
|
+
};
|
|
78336
|
+
|
|
78337
|
+
return GetAddressesBranchStateRequestV0;
|
|
78338
|
+
})();
|
|
78339
|
+
|
|
78340
|
+
return GetAddressesBranchStateRequest;
|
|
78341
|
+
})();
|
|
78342
|
+
|
|
78343
|
+
v0.GetAddressesBranchStateResponse = (function() {
|
|
78344
|
+
|
|
78345
|
+
/**
|
|
78346
|
+
* Properties of a GetAddressesBranchStateResponse.
|
|
78347
|
+
* @memberof org.dash.platform.dapi.v0
|
|
78348
|
+
* @interface IGetAddressesBranchStateResponse
|
|
78349
|
+
* @property {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0|null} [v0] GetAddressesBranchStateResponse v0
|
|
78350
|
+
*/
|
|
78351
|
+
|
|
78352
|
+
/**
|
|
78353
|
+
* Constructs a new GetAddressesBranchStateResponse.
|
|
78354
|
+
* @memberof org.dash.platform.dapi.v0
|
|
78355
|
+
* @classdesc Represents a GetAddressesBranchStateResponse.
|
|
78356
|
+
* @implements IGetAddressesBranchStateResponse
|
|
78357
|
+
* @constructor
|
|
78358
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse=} [properties] Properties to set
|
|
78359
|
+
*/
|
|
78360
|
+
function GetAddressesBranchStateResponse(properties) {
|
|
78361
|
+
if (properties)
|
|
78362
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
78363
|
+
if (properties[keys[i]] != null)
|
|
78364
|
+
this[keys[i]] = properties[keys[i]];
|
|
78365
|
+
}
|
|
78366
|
+
|
|
78367
|
+
/**
|
|
78368
|
+
* GetAddressesBranchStateResponse v0.
|
|
78369
|
+
* @member {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0|null|undefined} v0
|
|
78370
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78371
|
+
* @instance
|
|
78372
|
+
*/
|
|
78373
|
+
GetAddressesBranchStateResponse.prototype.v0 = null;
|
|
78374
|
+
|
|
78375
|
+
// OneOf field names bound to virtual getters and setters
|
|
78376
|
+
var $oneOfFields;
|
|
78377
|
+
|
|
78378
|
+
/**
|
|
78379
|
+
* GetAddressesBranchStateResponse version.
|
|
78380
|
+
* @member {"v0"|undefined} version
|
|
78381
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78382
|
+
* @instance
|
|
78383
|
+
*/
|
|
78384
|
+
Object.defineProperty(GetAddressesBranchStateResponse.prototype, "version", {
|
|
78385
|
+
get: $util.oneOfGetter($oneOfFields = ["v0"]),
|
|
78386
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
78387
|
+
});
|
|
78388
|
+
|
|
78389
|
+
/**
|
|
78390
|
+
* Creates a new GetAddressesBranchStateResponse instance using the specified properties.
|
|
78391
|
+
* @function create
|
|
78392
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78393
|
+
* @static
|
|
78394
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse=} [properties] Properties to set
|
|
78395
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse instance
|
|
78396
|
+
*/
|
|
78397
|
+
GetAddressesBranchStateResponse.create = function create(properties) {
|
|
78398
|
+
return new GetAddressesBranchStateResponse(properties);
|
|
78399
|
+
};
|
|
78400
|
+
|
|
78401
|
+
/**
|
|
78402
|
+
* Encodes the specified GetAddressesBranchStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.verify|verify} messages.
|
|
78403
|
+
* @function encode
|
|
78404
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78405
|
+
* @static
|
|
78406
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse} message GetAddressesBranchStateResponse message or plain object to encode
|
|
78407
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78408
|
+
* @returns {$protobuf.Writer} Writer
|
|
78409
|
+
*/
|
|
78410
|
+
GetAddressesBranchStateResponse.encode = function encode(message, writer) {
|
|
78411
|
+
if (!writer)
|
|
78412
|
+
writer = $Writer.create();
|
|
78413
|
+
if (message.v0 != null && Object.hasOwnProperty.call(message, "v0"))
|
|
78414
|
+
$root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
78415
|
+
return writer;
|
|
78416
|
+
};
|
|
78417
|
+
|
|
78418
|
+
/**
|
|
78419
|
+
* Encodes the specified GetAddressesBranchStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.verify|verify} messages.
|
|
78420
|
+
* @function encodeDelimited
|
|
78421
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78422
|
+
* @static
|
|
78423
|
+
* @param {org.dash.platform.dapi.v0.IGetAddressesBranchStateResponse} message GetAddressesBranchStateResponse message or plain object to encode
|
|
78424
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78425
|
+
* @returns {$protobuf.Writer} Writer
|
|
78426
|
+
*/
|
|
78427
|
+
GetAddressesBranchStateResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
78428
|
+
return this.encode(message, writer).ldelim();
|
|
78429
|
+
};
|
|
78430
|
+
|
|
78431
|
+
/**
|
|
78432
|
+
* Decodes a GetAddressesBranchStateResponse message from the specified reader or buffer.
|
|
78433
|
+
* @function decode
|
|
78434
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78435
|
+
* @static
|
|
78436
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78437
|
+
* @param {number} [length] Message length if known beforehand
|
|
78438
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
|
|
78439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78441
|
+
*/
|
|
78442
|
+
GetAddressesBranchStateResponse.decode = function decode(reader, length) {
|
|
78443
|
+
if (!(reader instanceof $Reader))
|
|
78444
|
+
reader = $Reader.create(reader);
|
|
78445
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse();
|
|
78446
|
+
while (reader.pos < end) {
|
|
78447
|
+
var tag = reader.uint32();
|
|
78448
|
+
switch (tag >>> 3) {
|
|
78449
|
+
case 1:
|
|
78450
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.decode(reader, reader.uint32());
|
|
78451
|
+
break;
|
|
78452
|
+
default:
|
|
78453
|
+
reader.skipType(tag & 7);
|
|
78454
|
+
break;
|
|
78455
|
+
}
|
|
78456
|
+
}
|
|
78457
|
+
return message;
|
|
78458
|
+
};
|
|
78459
|
+
|
|
78460
|
+
/**
|
|
78461
|
+
* Decodes a GetAddressesBranchStateResponse message from the specified reader or buffer, length delimited.
|
|
78462
|
+
* @function decodeDelimited
|
|
78463
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78464
|
+
* @static
|
|
78465
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78466
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
|
|
78467
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78468
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78469
|
+
*/
|
|
78470
|
+
GetAddressesBranchStateResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
78471
|
+
if (!(reader instanceof $Reader))
|
|
78472
|
+
reader = new $Reader(reader);
|
|
78473
|
+
return this.decode(reader, reader.uint32());
|
|
78474
|
+
};
|
|
78475
|
+
|
|
78476
|
+
/**
|
|
78477
|
+
* Verifies a GetAddressesBranchStateResponse message.
|
|
78478
|
+
* @function verify
|
|
78479
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78480
|
+
* @static
|
|
78481
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78482
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78483
|
+
*/
|
|
78484
|
+
GetAddressesBranchStateResponse.verify = function verify(message) {
|
|
78485
|
+
if (typeof message !== "object" || message === null)
|
|
78486
|
+
return "object expected";
|
|
78487
|
+
var properties = {};
|
|
78488
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
78489
|
+
properties.version = 1;
|
|
78490
|
+
{
|
|
78491
|
+
var error = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify(message.v0);
|
|
78492
|
+
if (error)
|
|
78493
|
+
return "v0." + error;
|
|
78494
|
+
}
|
|
78495
|
+
}
|
|
78496
|
+
return null;
|
|
78497
|
+
};
|
|
78498
|
+
|
|
78499
|
+
/**
|
|
78500
|
+
* Creates a GetAddressesBranchStateResponse message from a plain object. Also converts values to their respective internal types.
|
|
78501
|
+
* @function fromObject
|
|
78502
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78503
|
+
* @static
|
|
78504
|
+
* @param {Object.<string,*>} object Plain object
|
|
78505
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} GetAddressesBranchStateResponse
|
|
78506
|
+
*/
|
|
78507
|
+
GetAddressesBranchStateResponse.fromObject = function fromObject(object) {
|
|
78508
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse)
|
|
78509
|
+
return object;
|
|
78510
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse();
|
|
78511
|
+
if (object.v0 != null) {
|
|
78512
|
+
if (typeof object.v0 !== "object")
|
|
78513
|
+
throw TypeError(".org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.v0: object expected");
|
|
78514
|
+
message.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.fromObject(object.v0);
|
|
78515
|
+
}
|
|
78516
|
+
return message;
|
|
78517
|
+
};
|
|
78518
|
+
|
|
78519
|
+
/**
|
|
78520
|
+
* Creates a plain object from a GetAddressesBranchStateResponse message. Also converts values to other types if specified.
|
|
78521
|
+
* @function toObject
|
|
78522
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78523
|
+
* @static
|
|
78524
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse} message GetAddressesBranchStateResponse
|
|
78525
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78526
|
+
* @returns {Object.<string,*>} Plain object
|
|
78527
|
+
*/
|
|
78528
|
+
GetAddressesBranchStateResponse.toObject = function toObject(message, options) {
|
|
78529
|
+
if (!options)
|
|
78530
|
+
options = {};
|
|
78531
|
+
var object = {};
|
|
78532
|
+
if (message.v0 != null && message.hasOwnProperty("v0")) {
|
|
78533
|
+
object.v0 = $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.toObject(message.v0, options);
|
|
78534
|
+
if (options.oneofs)
|
|
78535
|
+
object.version = "v0";
|
|
78536
|
+
}
|
|
78537
|
+
return object;
|
|
78538
|
+
};
|
|
78539
|
+
|
|
78540
|
+
/**
|
|
78541
|
+
* Converts this GetAddressesBranchStateResponse to JSON.
|
|
78542
|
+
* @function toJSON
|
|
78543
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78544
|
+
* @instance
|
|
78545
|
+
* @returns {Object.<string,*>} JSON object
|
|
78546
|
+
*/
|
|
78547
|
+
GetAddressesBranchStateResponse.prototype.toJSON = function toJSON() {
|
|
78548
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78549
|
+
};
|
|
78550
|
+
|
|
78551
|
+
GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0 = (function() {
|
|
78552
|
+
|
|
78553
|
+
/**
|
|
78554
|
+
* Properties of a GetAddressesBranchStateResponseV0.
|
|
78555
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78556
|
+
* @interface IGetAddressesBranchStateResponseV0
|
|
78557
|
+
* @property {Uint8Array|null} [merkProof] GetAddressesBranchStateResponseV0 merkProof
|
|
78558
|
+
*/
|
|
78559
|
+
|
|
78560
|
+
/**
|
|
78561
|
+
* Constructs a new GetAddressesBranchStateResponseV0.
|
|
78562
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse
|
|
78563
|
+
* @classdesc Represents a GetAddressesBranchStateResponseV0.
|
|
78564
|
+
* @implements IGetAddressesBranchStateResponseV0
|
|
78565
|
+
* @constructor
|
|
78566
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0=} [properties] Properties to set
|
|
78567
|
+
*/
|
|
78568
|
+
function GetAddressesBranchStateResponseV0(properties) {
|
|
78569
|
+
if (properties)
|
|
78570
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
78571
|
+
if (properties[keys[i]] != null)
|
|
78572
|
+
this[keys[i]] = properties[keys[i]];
|
|
78573
|
+
}
|
|
78574
|
+
|
|
78575
|
+
/**
|
|
78576
|
+
* GetAddressesBranchStateResponseV0 merkProof.
|
|
78577
|
+
* @member {Uint8Array} merkProof
|
|
78578
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78579
|
+
* @instance
|
|
78580
|
+
*/
|
|
78581
|
+
GetAddressesBranchStateResponseV0.prototype.merkProof = $util.newBuffer([]);
|
|
78582
|
+
|
|
78583
|
+
/**
|
|
78584
|
+
* Creates a new GetAddressesBranchStateResponseV0 instance using the specified properties.
|
|
78585
|
+
* @function create
|
|
78586
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78587
|
+
* @static
|
|
78588
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0=} [properties] Properties to set
|
|
78589
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0 instance
|
|
78590
|
+
*/
|
|
78591
|
+
GetAddressesBranchStateResponseV0.create = function create(properties) {
|
|
78592
|
+
return new GetAddressesBranchStateResponseV0(properties);
|
|
78593
|
+
};
|
|
78594
|
+
|
|
78595
|
+
/**
|
|
78596
|
+
* Encodes the specified GetAddressesBranchStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify|verify} messages.
|
|
78597
|
+
* @function encode
|
|
78598
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78599
|
+
* @static
|
|
78600
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0 message or plain object to encode
|
|
78601
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78602
|
+
* @returns {$protobuf.Writer} Writer
|
|
78603
|
+
*/
|
|
78604
|
+
GetAddressesBranchStateResponseV0.encode = function encode(message, writer) {
|
|
78605
|
+
if (!writer)
|
|
78606
|
+
writer = $Writer.create();
|
|
78607
|
+
if (message.merkProof != null && Object.hasOwnProperty.call(message, "merkProof"))
|
|
78608
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.merkProof);
|
|
78609
|
+
return writer;
|
|
78610
|
+
};
|
|
78611
|
+
|
|
78612
|
+
/**
|
|
78613
|
+
* Encodes the specified GetAddressesBranchStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0.verify|verify} messages.
|
|
78614
|
+
* @function encodeDelimited
|
|
78615
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78616
|
+
* @static
|
|
78617
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.IGetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0 message or plain object to encode
|
|
78618
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
78619
|
+
* @returns {$protobuf.Writer} Writer
|
|
78620
|
+
*/
|
|
78621
|
+
GetAddressesBranchStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) {
|
|
78622
|
+
return this.encode(message, writer).ldelim();
|
|
78623
|
+
};
|
|
78624
|
+
|
|
78625
|
+
/**
|
|
78626
|
+
* Decodes a GetAddressesBranchStateResponseV0 message from the specified reader or buffer.
|
|
78627
|
+
* @function decode
|
|
78628
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78629
|
+
* @static
|
|
78630
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78631
|
+
* @param {number} [length] Message length if known beforehand
|
|
78632
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
|
|
78633
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78634
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78635
|
+
*/
|
|
78636
|
+
GetAddressesBranchStateResponseV0.decode = function decode(reader, length) {
|
|
78637
|
+
if (!(reader instanceof $Reader))
|
|
78638
|
+
reader = $Reader.create(reader);
|
|
78639
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0();
|
|
78640
|
+
while (reader.pos < end) {
|
|
78641
|
+
var tag = reader.uint32();
|
|
78642
|
+
switch (tag >>> 3) {
|
|
78643
|
+
case 2:
|
|
78644
|
+
message.merkProof = reader.bytes();
|
|
78645
|
+
break;
|
|
78646
|
+
default:
|
|
78647
|
+
reader.skipType(tag & 7);
|
|
78648
|
+
break;
|
|
78649
|
+
}
|
|
78650
|
+
}
|
|
78651
|
+
return message;
|
|
78652
|
+
};
|
|
78653
|
+
|
|
78654
|
+
/**
|
|
78655
|
+
* Decodes a GetAddressesBranchStateResponseV0 message from the specified reader or buffer, length delimited.
|
|
78656
|
+
* @function decodeDelimited
|
|
78657
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78658
|
+
* @static
|
|
78659
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
78660
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
|
|
78661
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
78662
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
78663
|
+
*/
|
|
78664
|
+
GetAddressesBranchStateResponseV0.decodeDelimited = function decodeDelimited(reader) {
|
|
78665
|
+
if (!(reader instanceof $Reader))
|
|
78666
|
+
reader = new $Reader(reader);
|
|
78667
|
+
return this.decode(reader, reader.uint32());
|
|
78668
|
+
};
|
|
78669
|
+
|
|
78670
|
+
/**
|
|
78671
|
+
* Verifies a GetAddressesBranchStateResponseV0 message.
|
|
78672
|
+
* @function verify
|
|
78673
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78674
|
+
* @static
|
|
78675
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
78676
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
78677
|
+
*/
|
|
78678
|
+
GetAddressesBranchStateResponseV0.verify = function verify(message) {
|
|
78679
|
+
if (typeof message !== "object" || message === null)
|
|
78680
|
+
return "object expected";
|
|
78681
|
+
if (message.merkProof != null && message.hasOwnProperty("merkProof"))
|
|
78682
|
+
if (!(message.merkProof && typeof message.merkProof.length === "number" || $util.isString(message.merkProof)))
|
|
78683
|
+
return "merkProof: buffer expected";
|
|
78684
|
+
return null;
|
|
78685
|
+
};
|
|
78686
|
+
|
|
78687
|
+
/**
|
|
78688
|
+
* Creates a GetAddressesBranchStateResponseV0 message from a plain object. Also converts values to their respective internal types.
|
|
78689
|
+
* @function fromObject
|
|
78690
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78691
|
+
* @static
|
|
78692
|
+
* @param {Object.<string,*>} object Plain object
|
|
78693
|
+
* @returns {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} GetAddressesBranchStateResponseV0
|
|
78694
|
+
*/
|
|
78695
|
+
GetAddressesBranchStateResponseV0.fromObject = function fromObject(object) {
|
|
78696
|
+
if (object instanceof $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0)
|
|
78697
|
+
return object;
|
|
78698
|
+
var message = new $root.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0();
|
|
78699
|
+
if (object.merkProof != null)
|
|
78700
|
+
if (typeof object.merkProof === "string")
|
|
78701
|
+
$util.base64.decode(object.merkProof, message.merkProof = $util.newBuffer($util.base64.length(object.merkProof)), 0);
|
|
78702
|
+
else if (object.merkProof.length >= 0)
|
|
78703
|
+
message.merkProof = object.merkProof;
|
|
78704
|
+
return message;
|
|
78705
|
+
};
|
|
78706
|
+
|
|
78707
|
+
/**
|
|
78708
|
+
* Creates a plain object from a GetAddressesBranchStateResponseV0 message. Also converts values to other types if specified.
|
|
78709
|
+
* @function toObject
|
|
78710
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78711
|
+
* @static
|
|
78712
|
+
* @param {org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0} message GetAddressesBranchStateResponseV0
|
|
78713
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
78714
|
+
* @returns {Object.<string,*>} Plain object
|
|
78715
|
+
*/
|
|
78716
|
+
GetAddressesBranchStateResponseV0.toObject = function toObject(message, options) {
|
|
78717
|
+
if (!options)
|
|
78718
|
+
options = {};
|
|
78719
|
+
var object = {};
|
|
78720
|
+
if (options.defaults)
|
|
78721
|
+
if (options.bytes === String)
|
|
78722
|
+
object.merkProof = "";
|
|
78723
|
+
else {
|
|
78724
|
+
object.merkProof = [];
|
|
78725
|
+
if (options.bytes !== Array)
|
|
78726
|
+
object.merkProof = $util.newBuffer(object.merkProof);
|
|
78727
|
+
}
|
|
78728
|
+
if (message.merkProof != null && message.hasOwnProperty("merkProof"))
|
|
78729
|
+
object.merkProof = options.bytes === String ? $util.base64.encode(message.merkProof, 0, message.merkProof.length) : options.bytes === Array ? Array.prototype.slice.call(message.merkProof) : message.merkProof;
|
|
78730
|
+
return object;
|
|
78731
|
+
};
|
|
78732
|
+
|
|
78733
|
+
/**
|
|
78734
|
+
* Converts this GetAddressesBranchStateResponseV0 to JSON.
|
|
78735
|
+
* @function toJSON
|
|
78736
|
+
* @memberof org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0
|
|
78737
|
+
* @instance
|
|
78738
|
+
* @returns {Object.<string,*>} JSON object
|
|
78739
|
+
*/
|
|
78740
|
+
GetAddressesBranchStateResponseV0.prototype.toJSON = function toJSON() {
|
|
78741
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
78742
|
+
};
|
|
78743
|
+
|
|
78744
|
+
return GetAddressesBranchStateResponseV0;
|
|
78745
|
+
})();
|
|
78746
|
+
|
|
78747
|
+
return GetAddressesBranchStateResponse;
|
|
78748
|
+
})();
|
|
78749
|
+
|
|
74485
78750
|
return v0;
|
|
74486
78751
|
})();
|
|
74487
78752
|
|