From cdcc19ac966b1d4417da31ab69b412bd9491e095 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Tue, 9 Jun 2026 14:25:37 +0200 Subject: [PATCH 1/3] refactor: remove orphaned shielded nullifier-changes subsystem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After #3819 the wallet detects spends via the note scan, so the server-side nullifier-CHANGES machinery has no remaining consumer. This removes it entirely. Removed: - rs-drive: the recent + compacted nullifier-changes trees and the trunk/branch nullifier-set scan — store/fetch/compact/cleanup ops, prove_* (x4), verify_* (x4), the grovedb changes-tree structure (shielded pool 8 -> 5 children), and the per-block changes write (store_nullifiers_for_block, dropped from insert_nullifiers). - rs-drive-abci: the cleanup_recent_block_storage_nullifiers block event, the 4 query handlers + their service.rs methods + shielded/mod.rs declarations. - dapi-grpc: the 4 RPCs (getRecentNullifierChanges, getRecentCompactedNullifierChanges, getNullifiersTrunkState, getNullifiersBranchState) + their messages from platform.proto, build.rs versioned-message arrays, and the regenerated nodejs/web/python/objc/java clients. - rs-platform-version: the nullifier-changes method/query/verify/prove versions (kept the sibling address-balance fields in DriveSavedBlockTransactionsMethodVersions). Kept (unchanged): - The permanent consensus nullifier SET: insert_nullifiers / has_nullifier / validate_nullifiers / getShieldedNullifiers — double-spend prevention. - The address-balance saved_block_transactions subsystem (still in use). Pre-release v12 shielded pool: the pool subtree structure changes (app-hash differs; dev/test state rebuilds), but the permanent nullifier set, the commitment-tree anchor, and double-spend enforcement are unchanged. Estimated-cost weights updated to match the new 5-child layout. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/dapi-grpc/build.rs | 28 +- .../clients/drive/v0/nodejs/drive_pbjs.js | 4696 ----------------- .../dash/platform/dapi/v0/PlatformGrpc.java | 296 -- .../platform/v0/nodejs/platform_pbjs.js | 4696 ----------------- .../platform/v0/nodejs/platform_protoc.js | 4344 --------------- .../platform/v0/objective-c/Platform.pbobjc.h | 439 -- .../platform/v0/objective-c/Platform.pbobjc.m | 1211 ----- .../platform/v0/objective-c/Platform.pbrpc.h | 52 - .../platform/v0/objective-c/Platform.pbrpc.m | 80 - .../platform/v0/python/platform_pb2.py | 1064 +--- .../platform/v0/python/platform_pb2_grpc.py | 132 - .../clients/platform/v0/web/platform_pb.d.ts | 574 -- .../clients/platform/v0/web/platform_pb.js | 4344 --------------- .../platform/v0/web/platform_pb_service.d.ts | 76 - .../platform/v0/web/platform_pb_service.js | 160 - .../protos/platform/v0/platform.proto | 103 - packages/rs-dapi-client/src/transport/grpc.rs | 39 - .../src/services/platform_service/mod.rs | 24 - .../engine/run_block_proposal/v0/mod.rs | 3 - .../mod.rs | 41 - .../v0/mod.rs | 111 - .../state_transition_processing/mod.rs | 1 - packages/rs-drive-abci/src/query/service.rs | 74 +- .../rs-drive-abci/src/query/shielded/mod.rs | 4 - .../shielded/nullifiers_branch_state/mod.rs | 110 - .../nullifiers_branch_state/v0/mod.rs | 257 - .../shielded/nullifiers_trunk_state/mod.rs | 86 - .../shielded/nullifiers_trunk_state/v0/mod.rs | 177 - .../recent_compacted_nullifier_changes/mod.rs | 122 - .../v0/mod.rs | 182 - .../shielded/recent_nullifier_changes/mod.rs | 119 - .../recent_nullifier_changes/v0/mod.rs | 165 - .../src/drive/shielded/estimated_costs.rs | 13 +- .../drive/shielded/has_nullifier/v0/mod.rs | 8 +- .../drive/shielded/insert_nullifiers/mod.rs | 22 +- .../shielded/insert_nullifiers/v0/mod.rs | 39 +- .../insert_shielded_pool_structure.rs | 49 +- packages/rs-drive/src/drive/shielded/mod.rs | 8 - .../mod.rs | 49 - .../v0/mod.rs | 332 -- .../nullifiers/compact_nullifiers/mod.rs | 61 - .../nullifiers/compact_nullifiers/v0/mod.rs | 305 -- .../fetch_compacted_nullifiers/mod.rs | 39 - .../fetch_compacted_nullifiers/v0/mod.rs | 296 -- .../nullifiers/fetch_nullifiers/mod.rs | 39 - .../nullifiers/fetch_nullifiers/v0/mod.rs | 176 - .../src/drive/shielded/nullifiers/mod.rs | 18 - .../src/drive/shielded/nullifiers/queries.rs | 83 - .../nullifiers/store_nullifiers/mod.rs | 55 - .../nullifiers/store_nullifiers/v0/mod.rs | 320 -- .../src/drive/shielded/nullifiers/types.rs | 269 - packages/rs-drive/src/drive/shielded/paths.rs | 14 +- .../rs-drive/src/drive/shielded/prove/mod.rs | 11 - .../prove_compacted_nullifier_changes/mod.rs | 48 - .../v0/mod.rs | 93 - .../prove_nullifiers_branch_query/mod.rs | 94 - .../prove_nullifiers_branch_query/v0/mod.rs | 71 - .../prove/prove_nullifiers_trunk_query/mod.rs | 74 - .../prove_nullifiers_trunk_query/v0/mod.rs | 56 - .../prove_recent_nullifier_changes/mod.rs | 48 - .../prove_recent_nullifier_changes/v0/mod.rs | 31 - .../src/util/batch/drive_op_batch/shielded.rs | 17 +- packages/rs-drive/src/verify/shielded/mod.rs | 8 - .../verify_compacted_nullifier_changes/mod.rs | 66 - .../v0/mod.rs | 283 - .../verify_nullifiers_branch_query/mod.rs | 94 - .../verify_nullifiers_branch_query/v0/mod.rs | 48 - .../verify_nullifiers_trunk_query/mod.rs | 78 - .../verify_nullifiers_trunk_query/v0/mod.rs | 41 - .../verify_recent_nullifier_changes/mod.rs | 68 - .../verify_recent_nullifier_changes/v0/mod.rs | 194 - .../drive_abci_method_versions/mod.rs | 2 - .../drive_abci_method_versions/v1.rs | 2 - .../drive_abci_method_versions/v2.rs | 2 - .../drive_abci_method_versions/v3.rs | 2 - .../drive_abci_method_versions/v4.rs | 2 - .../drive_abci_method_versions/v5.rs | 2 - .../drive_abci_method_versions/v6.rs | 2 - .../drive_abci_method_versions/v7.rs | 8 +- .../drive_abci_method_versions/v8.rs | 2 - .../drive_abci_query_versions/mod.rs | 4 - .../drive_abci_query_versions/v0.rs | 20 - .../drive_abci_query_versions/v1.rs | 20 - .../drive_group_method_versions/mod.rs | 4 - .../drive_verify_method_versions/mod.rs | 4 - .../drive_verify_method_versions/v1.rs | 4 - .../src/version/drive_versions/mod.rs | 8 - .../src/version/drive_versions/v1.rs | 10 - .../src/version/drive_versions/v2.rs | 10 - .../src/version/drive_versions/v3.rs | 10 - .../src/version/drive_versions/v4.rs | 10 - .../src/version/drive_versions/v5.rs | 10 - .../src/version/drive_versions/v6.rs | 10 - .../src/version/drive_versions/v7.rs | 10 - .../src/version/mocks/v2_test.rs | 26 +- .../src/version/mocks/v3_test.rs | 2 - .../src/version/protocol_version.rs | 12 - packages/rs-sdk/src/sdk.rs | 5 +- 98 files changed, 56 insertions(+), 27575 deletions(-) delete mode 100644 packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/mod.rs delete mode 100644 packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/v0/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/v0/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/v0/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/v0/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/queries.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/nullifiers/types.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/v0/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/v0/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/v0/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/v0/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/v0/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/mod.rs delete mode 100644 packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/v0/mod.rs diff --git a/packages/dapi-grpc/build.rs b/packages/dapi-grpc/build.rs index 9b03bb14385..d97e8b2032c 100644 --- a/packages/dapi-grpc/build.rs +++ b/packages/dapi-grpc/build.rs @@ -84,7 +84,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig { // Derive features for versioned messages // // "GetConsensusParamsRequest" is excluded as this message does not support proofs - const VERSIONED_REQUESTS: [&str; 58] = [ + const VERSIONED_REQUESTS: [&str; 56] = [ "GetDataContractHistoryRequest", "GetDataContractRequest", "GetDataContractsRequest", @@ -141,19 +141,11 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig { "GetShieldedPoolStateRequest", "GetShieldedNotesCountRequest", "GetShieldedNullifiersRequest", - "GetRecentNullifierChangesRequest", - "GetRecentCompactedNullifierChangesRequest", ]; - const PROOF_ONLY_VERSIONED_REQUESTS: [&str; 2] = [ - "GetAddressesTrunkStateRequest", - "GetNullifiersTrunkStateRequest", - ]; + const PROOF_ONLY_VERSIONED_REQUESTS: [&str; 1] = ["GetAddressesTrunkStateRequest"]; - const MERK_PROOF_VERSIONED_REQUESTS: [&str; 2] = [ - "GetAddressesBranchStateRequest", - "GetNullifiersBranchStateRequest", - ]; + const MERK_PROOF_VERSIONED_REQUESTS: [&str; 1] = ["GetAddressesBranchStateRequest"]; // The following responses are excluded as they don't support proofs: // - "GetConsensusParamsResponse" @@ -163,7 +155,7 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig { // - "GetIdentityByNonUniquePublicKeyHashResponse" // // "GetEvonodesProposedEpochBlocksResponse" is used for 2 Requests - const VERSIONED_RESPONSES: [&str; 56] = [ + const VERSIONED_RESPONSES: [&str; 54] = [ "GetDataContractHistoryResponse", "GetDataContractResponse", "GetDataContractsResponse", @@ -218,19 +210,11 @@ fn configure_platform(mut platform: MappingConfig) -> MappingConfig { "GetShieldedPoolStateResponse", "GetShieldedNotesCountResponse", "GetShieldedNullifiersResponse", - "GetRecentNullifierChangesResponse", - "GetRecentCompactedNullifierChangesResponse", ]; - const PROOF_ONLY_VERSIONED_RESPONSES: [&str; 2] = [ - "GetAddressesTrunkStateResponse", - "GetNullifiersTrunkStateResponse", - ]; + const PROOF_ONLY_VERSIONED_RESPONSES: [&str; 1] = ["GetAddressesTrunkStateResponse"]; - const MERK_PROOF_VERSIONED_RESPONSES: [&str; 2] = [ - "GetAddressesBranchStateResponse", - "GetNullifiersBranchStateResponse", - ]; + const MERK_PROOF_VERSIONED_RESPONSES: [&str; 1] = ["GetAddressesBranchStateResponse"]; check_unique(&VERSIONED_REQUESTS).expect("VERSIONED_REQUESTS"); check_unique(&VERSIONED_RESPONSES).expect("VERSIONED_RESPONSES"); diff --git a/packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js b/packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js index fc4654b5f70..7d382e919fb 100644 --- a/packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js +++ b/packages/dapi-grpc/clients/drive/v0/nodejs/drive_pbjs.js @@ -2574,138 +2574,6 @@ $root.org = (function() { * @variation 2 */ - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getNullifiersTrunkState}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getNullifiersTrunkStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} [response] GetNullifiersTrunkStateResponse - */ - - /** - * Calls getNullifiersTrunkState. - * @function getNullifiersTrunkState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} request GetNullifiersTrunkStateRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getNullifiersTrunkStateCallback} callback Node-style callback called with the error, if any, and GetNullifiersTrunkStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getNullifiersTrunkState = function getNullifiersTrunkState(request, callback) { - return this.rpcCall(getNullifiersTrunkState, $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest, $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse, request, callback); - }, "name", { value: "getNullifiersTrunkState" }); - - /** - * Calls getNullifiersTrunkState. - * @function getNullifiersTrunkState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} request GetNullifiersTrunkStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getNullifiersBranchState}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getNullifiersBranchStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} [response] GetNullifiersBranchStateResponse - */ - - /** - * Calls getNullifiersBranchState. - * @function getNullifiersBranchState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} request GetNullifiersBranchStateRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getNullifiersBranchStateCallback} callback Node-style callback called with the error, if any, and GetNullifiersBranchStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getNullifiersBranchState = function getNullifiersBranchState(request, callback) { - return this.rpcCall(getNullifiersBranchState, $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest, $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse, request, callback); - }, "name", { value: "getNullifiersBranchState" }); - - /** - * Calls getNullifiersBranchState. - * @function getNullifiersBranchState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} request GetNullifiersBranchStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentNullifierChanges}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getRecentNullifierChangesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} [response] GetRecentNullifierChangesResponse - */ - - /** - * Calls getRecentNullifierChanges. - * @function getRecentNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} request GetRecentNullifierChangesRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getRecentNullifierChangesCallback} callback Node-style callback called with the error, if any, and GetRecentNullifierChangesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getRecentNullifierChanges = function getRecentNullifierChanges(request, callback) { - return this.rpcCall(getRecentNullifierChanges, $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse, request, callback); - }, "name", { value: "getRecentNullifierChanges" }); - - /** - * Calls getRecentNullifierChanges. - * @function getRecentNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} request GetRecentNullifierChangesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentCompactedNullifierChanges}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getRecentCompactedNullifierChangesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} [response] GetRecentCompactedNullifierChangesResponse - */ - - /** - * Calls getRecentCompactedNullifierChanges. - * @function getRecentCompactedNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} request GetRecentCompactedNullifierChangesRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getRecentCompactedNullifierChangesCallback} callback Node-style callback called with the error, if any, and GetRecentCompactedNullifierChangesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getRecentCompactedNullifierChanges = function getRecentCompactedNullifierChanges(request, callback) { - return this.rpcCall(getRecentCompactedNullifierChanges, $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse, request, callback); - }, "name", { value: "getRecentCompactedNullifierChanges" }); - - /** - * Calls getRecentCompactedNullifierChanges. - * @function getRecentCompactedNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} request GetRecentCompactedNullifierChangesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - return Platform; })(); @@ -97306,4570 +97174,6 @@ $root.org = (function() { return GetShieldedNullifiersResponse; })(); - v0.GetNullifiersTrunkStateRequest = (function() { - - /** - * Properties of a GetNullifiersTrunkStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersTrunkStateRequest - * @property {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0|null} [v0] GetNullifiersTrunkStateRequest v0 - */ - - /** - * Constructs a new GetNullifiersTrunkStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersTrunkStateRequest. - * @implements IGetNullifiersTrunkStateRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest=} [properties] Properties to set - */ - function GetNullifiersTrunkStateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateRequest v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - */ - GetNullifiersTrunkStateRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersTrunkStateRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - */ - Object.defineProperty(GetNullifiersTrunkStateRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersTrunkStateRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest instance - */ - GetNullifiersTrunkStateRequest.create = function create(properties) { - return new GetNullifiersTrunkStateRequest(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - */ - GetNullifiersTrunkStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 = (function() { - - /** - * Properties of a GetNullifiersTrunkStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @interface IGetNullifiersTrunkStateRequestV0 - * @property {number|null} [poolType] GetNullifiersTrunkStateRequestV0 poolType - * @property {Uint8Array|null} [poolIdentifier] GetNullifiersTrunkStateRequestV0 poolIdentifier - */ - - /** - * Constructs a new GetNullifiersTrunkStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @classdesc Represents a GetNullifiersTrunkStateRequestV0. - * @implements IGetNullifiersTrunkStateRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0=} [properties] Properties to set - */ - function GetNullifiersTrunkStateRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateRequestV0 poolType. - * @member {number} poolType - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - */ - GetNullifiersTrunkStateRequestV0.prototype.poolType = 0; - - /** - * GetNullifiersTrunkStateRequestV0 poolIdentifier. - * @member {Uint8Array} poolIdentifier - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - */ - GetNullifiersTrunkStateRequestV0.prototype.poolIdentifier = $util.newBuffer([]); - - /** - * Creates a new GetNullifiersTrunkStateRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 instance - */ - GetNullifiersTrunkStateRequestV0.create = function create(properties) { - return new GetNullifiersTrunkStateRequestV0(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.poolType != null && Object.hasOwnProperty.call(message, "poolType")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.poolType); - if (message.poolIdentifier != null && Object.hasOwnProperty.call(message, "poolIdentifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.poolIdentifier); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.poolType = reader.uint32(); - break; - case 2: - message.poolIdentifier = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.poolType != null && message.hasOwnProperty("poolType")) - if (!$util.isInteger(message.poolType)) - return "poolType: integer expected"; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - if (!(message.poolIdentifier && typeof message.poolIdentifier.length === "number" || $util.isString(message.poolIdentifier))) - return "poolIdentifier: buffer expected"; - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - */ - GetNullifiersTrunkStateRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0(); - if (object.poolType != null) - message.poolType = object.poolType >>> 0; - if (object.poolIdentifier != null) - if (typeof object.poolIdentifier === "string") - $util.base64.decode(object.poolIdentifier, message.poolIdentifier = $util.newBuffer($util.base64.length(object.poolIdentifier)), 0); - else if (object.poolIdentifier.length >= 0) - message.poolIdentifier = object.poolIdentifier; - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.poolType = 0; - if (options.bytes === String) - object.poolIdentifier = ""; - else { - object.poolIdentifier = []; - if (options.bytes !== Array) - object.poolIdentifier = $util.newBuffer(object.poolIdentifier); - } - } - if (message.poolType != null && message.hasOwnProperty("poolType")) - object.poolType = message.poolType; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - object.poolIdentifier = options.bytes === String ? $util.base64.encode(message.poolIdentifier, 0, message.poolIdentifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.poolIdentifier) : message.poolIdentifier; - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersTrunkStateRequestV0; - })(); - - return GetNullifiersTrunkStateRequest; - })(); - - v0.GetNullifiersTrunkStateResponse = (function() { - - /** - * Properties of a GetNullifiersTrunkStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersTrunkStateResponse - * @property {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0|null} [v0] GetNullifiersTrunkStateResponse v0 - */ - - /** - * Constructs a new GetNullifiersTrunkStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersTrunkStateResponse. - * @implements IGetNullifiersTrunkStateResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse=} [properties] Properties to set - */ - function GetNullifiersTrunkStateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateResponse v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - */ - GetNullifiersTrunkStateResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersTrunkStateResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - */ - Object.defineProperty(GetNullifiersTrunkStateResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersTrunkStateResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse instance - */ - GetNullifiersTrunkStateResponse.create = function create(properties) { - return new GetNullifiersTrunkStateResponse(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - */ - GetNullifiersTrunkStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 = (function() { - - /** - * Properties of a GetNullifiersTrunkStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @interface IGetNullifiersTrunkStateResponseV0 - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetNullifiersTrunkStateResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetNullifiersTrunkStateResponseV0 metadata - */ - - /** - * Constructs a new GetNullifiersTrunkStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @classdesc Represents a GetNullifiersTrunkStateResponseV0. - * @implements IGetNullifiersTrunkStateResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0=} [properties] Properties to set - */ - function GetNullifiersTrunkStateResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - */ - GetNullifiersTrunkStateResponseV0.prototype.proof = null; - - /** - * GetNullifiersTrunkStateResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - */ - GetNullifiersTrunkStateResponseV0.prototype.metadata = null; - - /** - * Creates a new GetNullifiersTrunkStateResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 instance - */ - GetNullifiersTrunkStateResponseV0.create = function create(properties) { - return new GetNullifiersTrunkStateResponseV0(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.proof != null && message.hasOwnProperty("proof")) { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - */ - GetNullifiersTrunkStateResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0(); - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.proof = null; - object.metadata = null; - } - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersTrunkStateResponseV0; - })(); - - return GetNullifiersTrunkStateResponse; - })(); - - v0.GetNullifiersBranchStateRequest = (function() { - - /** - * Properties of a GetNullifiersBranchStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersBranchStateRequest - * @property {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0|null} [v0] GetNullifiersBranchStateRequest v0 - */ - - /** - * Constructs a new GetNullifiersBranchStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersBranchStateRequest. - * @implements IGetNullifiersBranchStateRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest=} [properties] Properties to set - */ - function GetNullifiersBranchStateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateRequest v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - */ - GetNullifiersBranchStateRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersBranchStateRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - */ - Object.defineProperty(GetNullifiersBranchStateRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersBranchStateRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest instance - */ - GetNullifiersBranchStateRequest.create = function create(properties) { - return new GetNullifiersBranchStateRequest(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersBranchStateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - */ - GetNullifiersBranchStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersBranchStateRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 = (function() { - - /** - * Properties of a GetNullifiersBranchStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @interface IGetNullifiersBranchStateRequestV0 - * @property {number|null} [poolType] GetNullifiersBranchStateRequestV0 poolType - * @property {Uint8Array|null} [poolIdentifier] GetNullifiersBranchStateRequestV0 poolIdentifier - * @property {Uint8Array|null} [key] GetNullifiersBranchStateRequestV0 key - * @property {number|null} [depth] GetNullifiersBranchStateRequestV0 depth - * @property {number|Long|null} [checkpointHeight] GetNullifiersBranchStateRequestV0 checkpointHeight - */ - - /** - * Constructs a new GetNullifiersBranchStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @classdesc Represents a GetNullifiersBranchStateRequestV0. - * @implements IGetNullifiersBranchStateRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0=} [properties] Properties to set - */ - function GetNullifiersBranchStateRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateRequestV0 poolType. - * @member {number} poolType - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.poolType = 0; - - /** - * GetNullifiersBranchStateRequestV0 poolIdentifier. - * @member {Uint8Array} poolIdentifier - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.poolIdentifier = $util.newBuffer([]); - - /** - * GetNullifiersBranchStateRequestV0 key. - * @member {Uint8Array} key - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.key = $util.newBuffer([]); - - /** - * GetNullifiersBranchStateRequestV0 depth. - * @member {number} depth - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.depth = 0; - - /** - * GetNullifiersBranchStateRequestV0 checkpointHeight. - * @member {number|Long} checkpointHeight - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.checkpointHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new GetNullifiersBranchStateRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 instance - */ - GetNullifiersBranchStateRequestV0.create = function create(properties) { - return new GetNullifiersBranchStateRequestV0(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.poolType != null && Object.hasOwnProperty.call(message, "poolType")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.poolType); - if (message.poolIdentifier != null && Object.hasOwnProperty.call(message, "poolIdentifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.poolIdentifier); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.key); - if (message.depth != null && Object.hasOwnProperty.call(message, "depth")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.depth); - if (message.checkpointHeight != null && Object.hasOwnProperty.call(message, "checkpointHeight")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.checkpointHeight); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.poolType = reader.uint32(); - break; - case 2: - message.poolIdentifier = reader.bytes(); - break; - case 3: - message.key = reader.bytes(); - break; - case 4: - message.depth = reader.uint32(); - break; - case 5: - message.checkpointHeight = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.poolType != null && message.hasOwnProperty("poolType")) - if (!$util.isInteger(message.poolType)) - return "poolType: integer expected"; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - if (!(message.poolIdentifier && typeof message.poolIdentifier.length === "number" || $util.isString(message.poolIdentifier))) - return "poolIdentifier: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.depth != null && message.hasOwnProperty("depth")) - if (!$util.isInteger(message.depth)) - return "depth: integer expected"; - if (message.checkpointHeight != null && message.hasOwnProperty("checkpointHeight")) - if (!$util.isInteger(message.checkpointHeight) && !(message.checkpointHeight && $util.isInteger(message.checkpointHeight.low) && $util.isInteger(message.checkpointHeight.high))) - return "checkpointHeight: integer|Long expected"; - return null; - }; - - /** - * Creates a GetNullifiersBranchStateRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - */ - GetNullifiersBranchStateRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0(); - if (object.poolType != null) - message.poolType = object.poolType >>> 0; - if (object.poolIdentifier != null) - if (typeof object.poolIdentifier === "string") - $util.base64.decode(object.poolIdentifier, message.poolIdentifier = $util.newBuffer($util.base64.length(object.poolIdentifier)), 0); - else if (object.poolIdentifier.length >= 0) - message.poolIdentifier = object.poolIdentifier; - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; - if (object.depth != null) - message.depth = object.depth >>> 0; - if (object.checkpointHeight != null) - if ($util.Long) - (message.checkpointHeight = $util.Long.fromValue(object.checkpointHeight)).unsigned = true; - else if (typeof object.checkpointHeight === "string") - message.checkpointHeight = parseInt(object.checkpointHeight, 10); - else if (typeof object.checkpointHeight === "number") - message.checkpointHeight = object.checkpointHeight; - else if (typeof object.checkpointHeight === "object") - message.checkpointHeight = new $util.LongBits(object.checkpointHeight.low >>> 0, object.checkpointHeight.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.poolType = 0; - if (options.bytes === String) - object.poolIdentifier = ""; - else { - object.poolIdentifier = []; - if (options.bytes !== Array) - object.poolIdentifier = $util.newBuffer(object.poolIdentifier); - } - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.depth = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.checkpointHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.checkpointHeight = options.longs === String ? "0" : 0; - } - if (message.poolType != null && message.hasOwnProperty("poolType")) - object.poolType = message.poolType; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - object.poolIdentifier = options.bytes === String ? $util.base64.encode(message.poolIdentifier, 0, message.poolIdentifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.poolIdentifier) : message.poolIdentifier; - if (message.key != null && message.hasOwnProperty("key")) - 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; - if (message.depth != null && message.hasOwnProperty("depth")) - object.depth = message.depth; - if (message.checkpointHeight != null && message.hasOwnProperty("checkpointHeight")) - if (typeof message.checkpointHeight === "number") - object.checkpointHeight = options.longs === String ? String(message.checkpointHeight) : message.checkpointHeight; - else - object.checkpointHeight = options.longs === String ? $util.Long.prototype.toString.call(message.checkpointHeight) : options.longs === Number ? new $util.LongBits(message.checkpointHeight.low >>> 0, message.checkpointHeight.high >>> 0).toNumber(true) : message.checkpointHeight; - return object; - }; - - /** - * Converts this GetNullifiersBranchStateRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersBranchStateRequestV0; - })(); - - return GetNullifiersBranchStateRequest; - })(); - - v0.GetNullifiersBranchStateResponse = (function() { - - /** - * Properties of a GetNullifiersBranchStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersBranchStateResponse - * @property {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0|null} [v0] GetNullifiersBranchStateResponse v0 - */ - - /** - * Constructs a new GetNullifiersBranchStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersBranchStateResponse. - * @implements IGetNullifiersBranchStateResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse=} [properties] Properties to set - */ - function GetNullifiersBranchStateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateResponse v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - */ - GetNullifiersBranchStateResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersBranchStateResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - */ - Object.defineProperty(GetNullifiersBranchStateResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersBranchStateResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse instance - */ - GetNullifiersBranchStateResponse.create = function create(properties) { - return new GetNullifiersBranchStateResponse(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersBranchStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - */ - GetNullifiersBranchStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersBranchStateResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 = (function() { - - /** - * Properties of a GetNullifiersBranchStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @interface IGetNullifiersBranchStateResponseV0 - * @property {Uint8Array|null} [merkProof] GetNullifiersBranchStateResponseV0 merkProof - */ - - /** - * Constructs a new GetNullifiersBranchStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @classdesc Represents a GetNullifiersBranchStateResponseV0. - * @implements IGetNullifiersBranchStateResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0=} [properties] Properties to set - */ - function GetNullifiersBranchStateResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateResponseV0 merkProof. - * @member {Uint8Array} merkProof - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @instance - */ - GetNullifiersBranchStateResponseV0.prototype.merkProof = $util.newBuffer([]); - - /** - * Creates a new GetNullifiersBranchStateResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 instance - */ - GetNullifiersBranchStateResponseV0.create = function create(properties) { - return new GetNullifiersBranchStateResponseV0(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.merkProof != null && Object.hasOwnProperty.call(message, "merkProof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.merkProof); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.merkProof = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.merkProof != null && message.hasOwnProperty("merkProof")) - if (!(message.merkProof && typeof message.merkProof.length === "number" || $util.isString(message.merkProof))) - return "merkProof: buffer expected"; - return null; - }; - - /** - * Creates a GetNullifiersBranchStateResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - */ - GetNullifiersBranchStateResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0(); - if (object.merkProof != null) - if (typeof object.merkProof === "string") - $util.base64.decode(object.merkProof, message.merkProof = $util.newBuffer($util.base64.length(object.merkProof)), 0); - else if (object.merkProof.length >= 0) - message.merkProof = object.merkProof; - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.merkProof = ""; - else { - object.merkProof = []; - if (options.bytes !== Array) - object.merkProof = $util.newBuffer(object.merkProof); - } - if (message.merkProof != null && message.hasOwnProperty("merkProof")) - 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; - return object; - }; - - /** - * Converts this GetNullifiersBranchStateResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersBranchStateResponseV0; - })(); - - return GetNullifiersBranchStateResponse; - })(); - - v0.BlockNullifierChanges = (function() { - - /** - * Properties of a BlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @interface IBlockNullifierChanges - * @property {number|Long|null} [blockHeight] BlockNullifierChanges blockHeight - * @property {Array.|null} [nullifiers] BlockNullifierChanges nullifiers - */ - - /** - * Constructs a new BlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a BlockNullifierChanges. - * @implements IBlockNullifierChanges - * @constructor - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges=} [properties] Properties to set - */ - function BlockNullifierChanges(properties) { - this.nullifiers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlockNullifierChanges blockHeight. - * @member {number|Long} blockHeight - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - */ - BlockNullifierChanges.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * BlockNullifierChanges nullifiers. - * @member {Array.} nullifiers - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - */ - BlockNullifierChanges.prototype.nullifiers = $util.emptyArray; - - /** - * Creates a new BlockNullifierChanges instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges instance - */ - BlockNullifierChanges.create = function create(properties) { - return new BlockNullifierChanges(properties); - }; - - /** - * Encodes the specified BlockNullifierChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockNullifierChanges.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges} message BlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlockNullifierChanges.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight); - if (message.nullifiers != null && message.nullifiers.length) - for (var i = 0; i < message.nullifiers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.nullifiers[i]); - return writer; - }; - - /** - * Encodes the specified BlockNullifierChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockNullifierChanges.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges} message BlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlockNullifierChanges.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BlockNullifierChanges message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlockNullifierChanges.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockNullifierChanges(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = reader.uint64(); - break; - case 2: - if (!(message.nullifiers && message.nullifiers.length)) - message.nullifiers = []; - message.nullifiers.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BlockNullifierChanges message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlockNullifierChanges.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BlockNullifierChanges message. - * @function verify - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlockNullifierChanges.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) - if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high))) - return "blockHeight: integer|Long expected"; - if (message.nullifiers != null && message.hasOwnProperty("nullifiers")) { - if (!Array.isArray(message.nullifiers)) - return "nullifiers: array expected"; - for (var i = 0; i < message.nullifiers.length; ++i) - if (!(message.nullifiers[i] && typeof message.nullifiers[i].length === "number" || $util.isString(message.nullifiers[i]))) - return "nullifiers: buffer[] expected"; - } - return null; - }; - - /** - * Creates a BlockNullifierChanges message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - */ - BlockNullifierChanges.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.BlockNullifierChanges) - return object; - var message = new $root.org.dash.platform.dapi.v0.BlockNullifierChanges(); - if (object.blockHeight != null) - if ($util.Long) - (message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true; - else if (typeof object.blockHeight === "string") - message.blockHeight = parseInt(object.blockHeight, 10); - else if (typeof object.blockHeight === "number") - message.blockHeight = object.blockHeight; - else if (typeof object.blockHeight === "object") - message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true); - if (object.nullifiers) { - if (!Array.isArray(object.nullifiers)) - throw TypeError(".org.dash.platform.dapi.v0.BlockNullifierChanges.nullifiers: array expected"); - message.nullifiers = []; - for (var i = 0; i < object.nullifiers.length; ++i) - if (typeof object.nullifiers[i] === "string") - $util.base64.decode(object.nullifiers[i], message.nullifiers[i] = $util.newBuffer($util.base64.length(object.nullifiers[i])), 0); - else if (object.nullifiers[i].length >= 0) - message.nullifiers[i] = object.nullifiers[i]; - } - return message; - }; - - /** - * Creates a plain object from a BlockNullifierChanges message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.BlockNullifierChanges} message BlockNullifierChanges - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BlockNullifierChanges.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.nullifiers = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.blockHeight = options.longs === String ? "0" : 0; - if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) - if (typeof message.blockHeight === "number") - object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight; - else - object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight; - if (message.nullifiers && message.nullifiers.length) { - object.nullifiers = []; - for (var j = 0; j < message.nullifiers.length; ++j) - object.nullifiers[j] = options.bytes === String ? $util.base64.encode(message.nullifiers[j], 0, message.nullifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.nullifiers[j]) : message.nullifiers[j]; - } - return object; - }; - - /** - * Converts this BlockNullifierChanges to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - * @returns {Object.} JSON object - */ - BlockNullifierChanges.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BlockNullifierChanges; - })(); - - v0.NullifierUpdateEntries = (function() { - - /** - * Properties of a NullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @interface INullifierUpdateEntries - * @property {Array.|null} [blockChanges] NullifierUpdateEntries blockChanges - */ - - /** - * Constructs a new NullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a NullifierUpdateEntries. - * @implements INullifierUpdateEntries - * @constructor - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries=} [properties] Properties to set - */ - function NullifierUpdateEntries(properties) { - this.blockChanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NullifierUpdateEntries blockChanges. - * @member {Array.} blockChanges - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @instance - */ - NullifierUpdateEntries.prototype.blockChanges = $util.emptyArray; - - /** - * Creates a new NullifierUpdateEntries instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries instance - */ - NullifierUpdateEntries.create = function create(properties) { - return new NullifierUpdateEntries(properties); - }; - - /** - * Encodes the specified NullifierUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.NullifierUpdateEntries.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries} message NullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NullifierUpdateEntries.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.blockChanges != null && message.blockChanges.length) - for (var i = 0; i < message.blockChanges.length; ++i) - $root.org.dash.platform.dapi.v0.BlockNullifierChanges.encode(message.blockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NullifierUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.NullifierUpdateEntries.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries} message NullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NullifierUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NullifierUpdateEntries message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NullifierUpdateEntries.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.NullifierUpdateEntries(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.blockChanges && message.blockChanges.length)) - message.blockChanges = []; - message.blockChanges.push($root.org.dash.platform.dapi.v0.BlockNullifierChanges.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NullifierUpdateEntries message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NullifierUpdateEntries.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NullifierUpdateEntries message. - * @function verify - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NullifierUpdateEntries.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.blockChanges != null && message.hasOwnProperty("blockChanges")) { - if (!Array.isArray(message.blockChanges)) - return "blockChanges: array expected"; - for (var i = 0; i < message.blockChanges.length; ++i) { - var error = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.verify(message.blockChanges[i]); - if (error) - return "blockChanges." + error; - } - } - return null; - }; - - /** - * Creates a NullifierUpdateEntries message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - */ - NullifierUpdateEntries.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.NullifierUpdateEntries) - return object; - var message = new $root.org.dash.platform.dapi.v0.NullifierUpdateEntries(); - if (object.blockChanges) { - if (!Array.isArray(object.blockChanges)) - throw TypeError(".org.dash.platform.dapi.v0.NullifierUpdateEntries.blockChanges: array expected"); - message.blockChanges = []; - for (var i = 0; i < object.blockChanges.length; ++i) { - if (typeof object.blockChanges[i] !== "object") - throw TypeError(".org.dash.platform.dapi.v0.NullifierUpdateEntries.blockChanges: object expected"); - message.blockChanges[i] = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.fromObject(object.blockChanges[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a NullifierUpdateEntries message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.NullifierUpdateEntries} message NullifierUpdateEntries - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NullifierUpdateEntries.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.blockChanges = []; - if (message.blockChanges && message.blockChanges.length) { - object.blockChanges = []; - for (var j = 0; j < message.blockChanges.length; ++j) - object.blockChanges[j] = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject(message.blockChanges[j], options); - } - return object; - }; - - /** - * Converts this NullifierUpdateEntries to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @instance - * @returns {Object.} JSON object - */ - NullifierUpdateEntries.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NullifierUpdateEntries; - })(); - - v0.GetRecentNullifierChangesRequest = (function() { - - /** - * Properties of a GetRecentNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentNullifierChangesRequest - * @property {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0|null} [v0] GetRecentNullifierChangesRequest v0 - */ - - /** - * Constructs a new GetRecentNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentNullifierChangesRequest. - * @implements IGetRecentNullifierChangesRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest=} [properties] Properties to set - */ - function GetRecentNullifierChangesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesRequest v0. - * @member {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - */ - GetRecentNullifierChangesRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest instance - */ - GetRecentNullifierChangesRequest.create = function create(properties) { - return new GetRecentNullifierChangesRequest(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - */ - GetRecentNullifierChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentNullifierChangesRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 = (function() { - - /** - * Properties of a GetRecentNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @interface IGetRecentNullifierChangesRequestV0 - * @property {number|Long|null} [startHeight] GetRecentNullifierChangesRequestV0 startHeight - * @property {boolean|null} [prove] GetRecentNullifierChangesRequestV0 prove - */ - - /** - * Constructs a new GetRecentNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @classdesc Represents a GetRecentNullifierChangesRequestV0. - * @implements IGetRecentNullifierChangesRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0=} [properties] Properties to set - */ - function GetRecentNullifierChangesRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesRequestV0 startHeight. - * @member {number|Long} startHeight - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - */ - GetRecentNullifierChangesRequestV0.prototype.startHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetRecentNullifierChangesRequestV0 prove. - * @member {boolean} prove - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - */ - GetRecentNullifierChangesRequestV0.prototype.prove = false; - - /** - * Creates a new GetRecentNullifierChangesRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 instance - */ - GetRecentNullifierChangesRequestV0.create = function create(properties) { - return new GetRecentNullifierChangesRequestV0(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startHeight != null && Object.hasOwnProperty.call(message, "startHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startHeight); - if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startHeight = reader.uint64(); - break; - case 2: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startHeight != null && message.hasOwnProperty("startHeight")) - if (!$util.isInteger(message.startHeight) && !(message.startHeight && $util.isInteger(message.startHeight.low) && $util.isInteger(message.startHeight.high))) - return "startHeight: integer|Long expected"; - if (message.prove != null && message.hasOwnProperty("prove")) - if (typeof message.prove !== "boolean") - return "prove: boolean expected"; - return null; - }; - - /** - * Creates a GetRecentNullifierChangesRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - */ - GetRecentNullifierChangesRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0(); - if (object.startHeight != null) - if ($util.Long) - (message.startHeight = $util.Long.fromValue(object.startHeight)).unsigned = true; - else if (typeof object.startHeight === "string") - message.startHeight = parseInt(object.startHeight, 10); - else if (typeof object.startHeight === "number") - message.startHeight = object.startHeight; - else if (typeof object.startHeight === "object") - message.startHeight = new $util.LongBits(object.startHeight.low >>> 0, object.startHeight.high >>> 0).toNumber(true); - if (object.prove != null) - message.prove = Boolean(object.prove); - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startHeight = options.longs === String ? "0" : 0; - object.prove = false; - } - if (message.startHeight != null && message.hasOwnProperty("startHeight")) - if (typeof message.startHeight === "number") - object.startHeight = options.longs === String ? String(message.startHeight) : message.startHeight; - else - object.startHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startHeight) : options.longs === Number ? new $util.LongBits(message.startHeight.low >>> 0, message.startHeight.high >>> 0).toNumber(true) : message.startHeight; - if (message.prove != null && message.hasOwnProperty("prove")) - object.prove = message.prove; - return object; - }; - - /** - * Converts this GetRecentNullifierChangesRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentNullifierChangesRequestV0; - })(); - - return GetRecentNullifierChangesRequest; - })(); - - v0.GetRecentNullifierChangesResponse = (function() { - - /** - * Properties of a GetRecentNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentNullifierChangesResponse - * @property {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0|null} [v0] GetRecentNullifierChangesResponse v0 - */ - - /** - * Constructs a new GetRecentNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentNullifierChangesResponse. - * @implements IGetRecentNullifierChangesResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse=} [properties] Properties to set - */ - function GetRecentNullifierChangesResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesResponse v0. - * @member {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - */ - GetRecentNullifierChangesResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse instance - */ - GetRecentNullifierChangesResponse.create = function create(properties) { - return new GetRecentNullifierChangesResponse(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - */ - GetRecentNullifierChangesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentNullifierChangesResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 = (function() { - - /** - * Properties of a GetRecentNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @interface IGetRecentNullifierChangesResponseV0 - * @property {org.dash.platform.dapi.v0.INullifierUpdateEntries|null} [nullifierUpdateEntries] GetRecentNullifierChangesResponseV0 nullifierUpdateEntries - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentNullifierChangesResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentNullifierChangesResponseV0 metadata - */ - - /** - * Constructs a new GetRecentNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @classdesc Represents a GetRecentNullifierChangesResponseV0. - * @implements IGetRecentNullifierChangesResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0=} [properties] Properties to set - */ - function GetRecentNullifierChangesResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesResponseV0 nullifierUpdateEntries. - * @member {org.dash.platform.dapi.v0.INullifierUpdateEntries|null|undefined} nullifierUpdateEntries - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.nullifierUpdateEntries = null; - - /** - * GetRecentNullifierChangesResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.proof = null; - - /** - * GetRecentNullifierChangesResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesResponseV0 result. - * @member {"nullifierUpdateEntries"|"proof"|undefined} result - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesResponseV0.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["nullifierUpdateEntries", "proof"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 instance - */ - GetRecentNullifierChangesResponseV0.create = function create(properties) { - return new GetRecentNullifierChangesResponseV0(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullifierUpdateEntries != null && Object.hasOwnProperty.call(message, "nullifierUpdateEntries")) - $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.encode(message.nullifierUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.decode(reader, reader.uint32()); - break; - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nullifierUpdateEntries != null && message.hasOwnProperty("nullifierUpdateEntries")) { - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.verify(message.nullifierUpdateEntries); - if (error) - return "nullifierUpdateEntries." + error; - } - } - if (message.proof != null && message.hasOwnProperty("proof")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - */ - GetRecentNullifierChangesResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0(); - if (object.nullifierUpdateEntries != null) { - if (typeof object.nullifierUpdateEntries !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.nullifierUpdateEntries: object expected"); - message.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.fromObject(object.nullifierUpdateEntries); - } - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.nullifierUpdateEntries != null && message.hasOwnProperty("nullifierUpdateEntries")) { - object.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(message.nullifierUpdateEntries, options); - if (options.oneofs) - object.result = "nullifierUpdateEntries"; - } - if (message.proof != null && message.hasOwnProperty("proof")) { - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (options.oneofs) - object.result = "proof"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetRecentNullifierChangesResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentNullifierChangesResponseV0; - })(); - - return GetRecentNullifierChangesResponse; - })(); - - v0.CompactedBlockNullifierChanges = (function() { - - /** - * Properties of a CompactedBlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @interface ICompactedBlockNullifierChanges - * @property {number|Long|null} [startBlockHeight] CompactedBlockNullifierChanges startBlockHeight - * @property {number|Long|null} [endBlockHeight] CompactedBlockNullifierChanges endBlockHeight - * @property {Array.|null} [nullifiers] CompactedBlockNullifierChanges nullifiers - */ - - /** - * Constructs a new CompactedBlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a CompactedBlockNullifierChanges. - * @implements ICompactedBlockNullifierChanges - * @constructor - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges=} [properties] Properties to set - */ - function CompactedBlockNullifierChanges(properties) { - this.nullifiers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompactedBlockNullifierChanges startBlockHeight. - * @member {number|Long} startBlockHeight - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * CompactedBlockNullifierChanges endBlockHeight. - * @member {number|Long} endBlockHeight - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.endBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * CompactedBlockNullifierChanges nullifiers. - * @member {Array.} nullifiers - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.nullifiers = $util.emptyArray; - - /** - * Creates a new CompactedBlockNullifierChanges instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges instance - */ - CompactedBlockNullifierChanges.create = function create(properties) { - return new CompactedBlockNullifierChanges(properties); - }; - - /** - * Encodes the specified CompactedBlockNullifierChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges} message CompactedBlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedBlockNullifierChanges.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight); - if (message.endBlockHeight != null && Object.hasOwnProperty.call(message, "endBlockHeight")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight); - if (message.nullifiers != null && message.nullifiers.length) - for (var i = 0; i < message.nullifiers.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.nullifiers[i]); - return writer; - }; - - /** - * Encodes the specified CompactedBlockNullifierChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges} message CompactedBlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedBlockNullifierChanges.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CompactedBlockNullifierChanges message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedBlockNullifierChanges.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startBlockHeight = reader.uint64(); - break; - case 2: - message.endBlockHeight = reader.uint64(); - break; - case 3: - if (!(message.nullifiers && message.nullifiers.length)) - message.nullifiers = []; - message.nullifiers.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CompactedBlockNullifierChanges message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedBlockNullifierChanges.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CompactedBlockNullifierChanges message. - * @function verify - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompactedBlockNullifierChanges.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high))) - return "startBlockHeight: integer|Long expected"; - if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight")) - if (!$util.isInteger(message.endBlockHeight) && !(message.endBlockHeight && $util.isInteger(message.endBlockHeight.low) && $util.isInteger(message.endBlockHeight.high))) - return "endBlockHeight: integer|Long expected"; - if (message.nullifiers != null && message.hasOwnProperty("nullifiers")) { - if (!Array.isArray(message.nullifiers)) - return "nullifiers: array expected"; - for (var i = 0; i < message.nullifiers.length; ++i) - if (!(message.nullifiers[i] && typeof message.nullifiers[i].length === "number" || $util.isString(message.nullifiers[i]))) - return "nullifiers: buffer[] expected"; - } - return null; - }; - - /** - * Creates a CompactedBlockNullifierChanges message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - */ - CompactedBlockNullifierChanges.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges) - return object; - var message = new $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges(); - if (object.startBlockHeight != null) - if ($util.Long) - (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true; - else if (typeof object.startBlockHeight === "string") - message.startBlockHeight = parseInt(object.startBlockHeight, 10); - else if (typeof object.startBlockHeight === "number") - message.startBlockHeight = object.startBlockHeight; - else if (typeof object.startBlockHeight === "object") - message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true); - if (object.endBlockHeight != null) - if ($util.Long) - (message.endBlockHeight = $util.Long.fromValue(object.endBlockHeight)).unsigned = true; - else if (typeof object.endBlockHeight === "string") - message.endBlockHeight = parseInt(object.endBlockHeight, 10); - else if (typeof object.endBlockHeight === "number") - message.endBlockHeight = object.endBlockHeight; - else if (typeof object.endBlockHeight === "object") - message.endBlockHeight = new $util.LongBits(object.endBlockHeight.low >>> 0, object.endBlockHeight.high >>> 0).toNumber(true); - if (object.nullifiers) { - if (!Array.isArray(object.nullifiers)) - throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.nullifiers: array expected"); - message.nullifiers = []; - for (var i = 0; i < object.nullifiers.length; ++i) - if (typeof object.nullifiers[i] === "string") - $util.base64.decode(object.nullifiers[i], message.nullifiers[i] = $util.newBuffer($util.base64.length(object.nullifiers[i])), 0); - else if (object.nullifiers[i].length >= 0) - message.nullifiers[i] = object.nullifiers[i]; - } - return message; - }; - - /** - * Creates a plain object from a CompactedBlockNullifierChanges message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} message CompactedBlockNullifierChanges - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompactedBlockNullifierChanges.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.nullifiers = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startBlockHeight = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.endBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endBlockHeight = options.longs === String ? "0" : 0; - } - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (typeof message.startBlockHeight === "number") - object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight; - else - object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight; - if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight")) - if (typeof message.endBlockHeight === "number") - object.endBlockHeight = options.longs === String ? String(message.endBlockHeight) : message.endBlockHeight; - else - object.endBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.endBlockHeight) : options.longs === Number ? new $util.LongBits(message.endBlockHeight.low >>> 0, message.endBlockHeight.high >>> 0).toNumber(true) : message.endBlockHeight; - if (message.nullifiers && message.nullifiers.length) { - object.nullifiers = []; - for (var j = 0; j < message.nullifiers.length; ++j) - object.nullifiers[j] = options.bytes === String ? $util.base64.encode(message.nullifiers[j], 0, message.nullifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.nullifiers[j]) : message.nullifiers[j]; - } - return object; - }; - - /** - * Converts this CompactedBlockNullifierChanges to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - * @returns {Object.} JSON object - */ - CompactedBlockNullifierChanges.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CompactedBlockNullifierChanges; - })(); - - v0.CompactedNullifierUpdateEntries = (function() { - - /** - * Properties of a CompactedNullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @interface ICompactedNullifierUpdateEntries - * @property {Array.|null} [compactedBlockChanges] CompactedNullifierUpdateEntries compactedBlockChanges - */ - - /** - * Constructs a new CompactedNullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a CompactedNullifierUpdateEntries. - * @implements ICompactedNullifierUpdateEntries - * @constructor - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries=} [properties] Properties to set - */ - function CompactedNullifierUpdateEntries(properties) { - this.compactedBlockChanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompactedNullifierUpdateEntries compactedBlockChanges. - * @member {Array.} compactedBlockChanges - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @instance - */ - CompactedNullifierUpdateEntries.prototype.compactedBlockChanges = $util.emptyArray; - - /** - * Creates a new CompactedNullifierUpdateEntries instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries instance - */ - CompactedNullifierUpdateEntries.create = function create(properties) { - return new CompactedNullifierUpdateEntries(properties); - }; - - /** - * Encodes the specified CompactedNullifierUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedNullifierUpdateEntries.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compactedBlockChanges != null && message.compactedBlockChanges.length) - for (var i = 0; i < message.compactedBlockChanges.length; ++i) - $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.encode(message.compactedBlockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CompactedNullifierUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedNullifierUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CompactedNullifierUpdateEntries message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedNullifierUpdateEntries.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.compactedBlockChanges && message.compactedBlockChanges.length)) - message.compactedBlockChanges = []; - message.compactedBlockChanges.push($root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CompactedNullifierUpdateEntries message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedNullifierUpdateEntries.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CompactedNullifierUpdateEntries message. - * @function verify - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompactedNullifierUpdateEntries.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compactedBlockChanges != null && message.hasOwnProperty("compactedBlockChanges")) { - if (!Array.isArray(message.compactedBlockChanges)) - return "compactedBlockChanges: array expected"; - for (var i = 0; i < message.compactedBlockChanges.length; ++i) { - var error = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify(message.compactedBlockChanges[i]); - if (error) - return "compactedBlockChanges." + error; - } - } - return null; - }; - - /** - * Creates a CompactedNullifierUpdateEntries message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - */ - CompactedNullifierUpdateEntries.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries) - return object; - var message = new $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries(); - if (object.compactedBlockChanges) { - if (!Array.isArray(object.compactedBlockChanges)) - throw TypeError(".org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.compactedBlockChanges: array expected"); - message.compactedBlockChanges = []; - for (var i = 0; i < object.compactedBlockChanges.length; ++i) { - if (typeof object.compactedBlockChanges[i] !== "object") - throw TypeError(".org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.compactedBlockChanges: object expected"); - message.compactedBlockChanges[i] = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.fromObject(object.compactedBlockChanges[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a CompactedNullifierUpdateEntries message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompactedNullifierUpdateEntries.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.compactedBlockChanges = []; - if (message.compactedBlockChanges && message.compactedBlockChanges.length) { - object.compactedBlockChanges = []; - for (var j = 0; j < message.compactedBlockChanges.length; ++j) - object.compactedBlockChanges[j] = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject(message.compactedBlockChanges[j], options); - } - return object; - }; - - /** - * Converts this CompactedNullifierUpdateEntries to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @instance - * @returns {Object.} JSON object - */ - CompactedNullifierUpdateEntries.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CompactedNullifierUpdateEntries; - })(); - - v0.GetRecentCompactedNullifierChangesRequest = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentCompactedNullifierChangesRequest - * @property {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0|null} [v0] GetRecentCompactedNullifierChangesRequest v0 - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentCompactedNullifierChangesRequest. - * @implements IGetRecentCompactedNullifierChangesRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesRequest v0. - * @member {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - */ - GetRecentCompactedNullifierChangesRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest instance - */ - GetRecentCompactedNullifierChangesRequest.create = function create(properties) { - return new GetRecentCompactedNullifierChangesRequest(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - */ - GetRecentCompactedNullifierChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @interface IGetRecentCompactedNullifierChangesRequestV0 - * @property {number|Long|null} [startBlockHeight] GetRecentCompactedNullifierChangesRequestV0 startBlockHeight - * @property {boolean|null} [prove] GetRecentCompactedNullifierChangesRequestV0 prove - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @classdesc Represents a GetRecentCompactedNullifierChangesRequestV0. - * @implements IGetRecentCompactedNullifierChangesRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesRequestV0 startBlockHeight. - * @member {number|Long} startBlockHeight - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetRecentCompactedNullifierChangesRequestV0 prove. - * @member {boolean} prove - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.prove = false; - - /** - * Creates a new GetRecentCompactedNullifierChangesRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 instance - */ - GetRecentCompactedNullifierChangesRequestV0.create = function create(properties) { - return new GetRecentCompactedNullifierChangesRequestV0(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight); - if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startBlockHeight = reader.uint64(); - break; - case 2: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high))) - return "startBlockHeight: integer|Long expected"; - if (message.prove != null && message.hasOwnProperty("prove")) - if (typeof message.prove !== "boolean") - return "prove: boolean expected"; - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - */ - GetRecentCompactedNullifierChangesRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0(); - if (object.startBlockHeight != null) - if ($util.Long) - (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true; - else if (typeof object.startBlockHeight === "string") - message.startBlockHeight = parseInt(object.startBlockHeight, 10); - else if (typeof object.startBlockHeight === "number") - message.startBlockHeight = object.startBlockHeight; - else if (typeof object.startBlockHeight === "object") - message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true); - if (object.prove != null) - message.prove = Boolean(object.prove); - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startBlockHeight = options.longs === String ? "0" : 0; - object.prove = false; - } - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (typeof message.startBlockHeight === "number") - object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight; - else - object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight; - if (message.prove != null && message.hasOwnProperty("prove")) - object.prove = message.prove; - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentCompactedNullifierChangesRequestV0; - })(); - - return GetRecentCompactedNullifierChangesRequest; - })(); - - v0.GetRecentCompactedNullifierChangesResponse = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentCompactedNullifierChangesResponse - * @property {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0|null} [v0] GetRecentCompactedNullifierChangesResponse v0 - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentCompactedNullifierChangesResponse. - * @implements IGetRecentCompactedNullifierChangesResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesResponse v0. - * @member {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - */ - GetRecentCompactedNullifierChangesResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse instance - */ - GetRecentCompactedNullifierChangesResponse.create = function create(properties) { - return new GetRecentCompactedNullifierChangesResponse(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - */ - GetRecentCompactedNullifierChangesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @interface IGetRecentCompactedNullifierChangesResponseV0 - * @property {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries|null} [compactedNullifierUpdateEntries] GetRecentCompactedNullifierChangesResponseV0 compactedNullifierUpdateEntries - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentCompactedNullifierChangesResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentCompactedNullifierChangesResponseV0 metadata - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @classdesc Represents a GetRecentCompactedNullifierChangesResponseV0. - * @implements IGetRecentCompactedNullifierChangesResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesResponseV0 compactedNullifierUpdateEntries. - * @member {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries|null|undefined} compactedNullifierUpdateEntries - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.compactedNullifierUpdateEntries = null; - - /** - * GetRecentCompactedNullifierChangesResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.proof = null; - - /** - * GetRecentCompactedNullifierChangesResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesResponseV0 result. - * @member {"compactedNullifierUpdateEntries"|"proof"|undefined} result - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesResponseV0.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["compactedNullifierUpdateEntries", "proof"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 instance - */ - GetRecentCompactedNullifierChangesResponseV0.create = function create(properties) { - return new GetRecentCompactedNullifierChangesResponseV0(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compactedNullifierUpdateEntries != null && Object.hasOwnProperty.call(message, "compactedNullifierUpdateEntries")) - $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.encode(message.compactedNullifierUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.decode(reader, reader.uint32()); - break; - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.compactedNullifierUpdateEntries != null && message.hasOwnProperty("compactedNullifierUpdateEntries")) { - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify(message.compactedNullifierUpdateEntries); - if (error) - return "compactedNullifierUpdateEntries." + error; - } - } - if (message.proof != null && message.hasOwnProperty("proof")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - */ - GetRecentCompactedNullifierChangesResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0(); - if (object.compactedNullifierUpdateEntries != null) { - if (typeof object.compactedNullifierUpdateEntries !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.compactedNullifierUpdateEntries: object expected"); - message.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.fromObject(object.compactedNullifierUpdateEntries); - } - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.compactedNullifierUpdateEntries != null && message.hasOwnProperty("compactedNullifierUpdateEntries")) { - object.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(message.compactedNullifierUpdateEntries, options); - if (options.oneofs) - object.result = "compactedNullifierUpdateEntries"; - } - if (message.proof != null && message.hasOwnProperty("proof")) { - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (options.oneofs) - object.result = "proof"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentCompactedNullifierChangesResponseV0; - })(); - - return GetRecentCompactedNullifierChangesResponse; - })(); - return v0; })(); diff --git a/packages/dapi-grpc/clients/platform/v0/java/org/dash/platform/dapi/v0/PlatformGrpc.java b/packages/dapi-grpc/clients/platform/v0/java/org/dash/platform/dapi/v0/PlatformGrpc.java index 67c0cdfa9f2..668850dfd5d 100644 --- a/packages/dapi-grpc/clients/platform/v0/java/org/dash/platform/dapi/v0/PlatformGrpc.java +++ b/packages/dapi-grpc/clients/platform/v0/java/org/dash/platform/dapi/v0/PlatformGrpc.java @@ -1875,130 +1875,6 @@ org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse> getG return getGetShieldedNullifiersMethod; } - private static volatile io.grpc.MethodDescriptor getGetNullifiersTrunkStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "getNullifiersTrunkState", - requestType = org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest.class, - responseType = org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNullifiersTrunkStateMethod() { - io.grpc.MethodDescriptor getGetNullifiersTrunkStateMethod; - if ((getGetNullifiersTrunkStateMethod = PlatformGrpc.getGetNullifiersTrunkStateMethod) == null) { - synchronized (PlatformGrpc.class) { - if ((getGetNullifiersTrunkStateMethod = PlatformGrpc.getGetNullifiersTrunkStateMethod) == null) { - PlatformGrpc.getGetNullifiersTrunkStateMethod = getGetNullifiersTrunkStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getNullifiersTrunkState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new PlatformMethodDescriptorSupplier("getNullifiersTrunkState")) - .build(); - } - } - } - return getGetNullifiersTrunkStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNullifiersBranchStateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "getNullifiersBranchState", - requestType = org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest.class, - responseType = org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNullifiersBranchStateMethod() { - io.grpc.MethodDescriptor getGetNullifiersBranchStateMethod; - if ((getGetNullifiersBranchStateMethod = PlatformGrpc.getGetNullifiersBranchStateMethod) == null) { - synchronized (PlatformGrpc.class) { - if ((getGetNullifiersBranchStateMethod = PlatformGrpc.getGetNullifiersBranchStateMethod) == null) { - PlatformGrpc.getGetNullifiersBranchStateMethod = getGetNullifiersBranchStateMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getNullifiersBranchState")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateResponse.getDefaultInstance())) - .setSchemaDescriptor(new PlatformMethodDescriptorSupplier("getNullifiersBranchState")) - .build(); - } - } - } - return getGetNullifiersBranchStateMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRecentNullifierChangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "getRecentNullifierChanges", - requestType = org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest.class, - responseType = org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRecentNullifierChangesMethod() { - io.grpc.MethodDescriptor getGetRecentNullifierChangesMethod; - if ((getGetRecentNullifierChangesMethod = PlatformGrpc.getGetRecentNullifierChangesMethod) == null) { - synchronized (PlatformGrpc.class) { - if ((getGetRecentNullifierChangesMethod = PlatformGrpc.getGetRecentNullifierChangesMethod) == null) { - PlatformGrpc.getGetRecentNullifierChangesMethod = getGetRecentNullifierChangesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getRecentNullifierChanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PlatformMethodDescriptorSupplier("getRecentNullifierChanges")) - .build(); - } - } - } - return getGetRecentNullifierChangesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRecentCompactedNullifierChangesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "getRecentCompactedNullifierChanges", - requestType = org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest.class, - responseType = org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRecentCompactedNullifierChangesMethod() { - io.grpc.MethodDescriptor getGetRecentCompactedNullifierChangesMethod; - if ((getGetRecentCompactedNullifierChangesMethod = PlatformGrpc.getGetRecentCompactedNullifierChangesMethod) == null) { - synchronized (PlatformGrpc.class) { - if ((getGetRecentCompactedNullifierChangesMethod = PlatformGrpc.getGetRecentCompactedNullifierChangesMethod) == null) { - PlatformGrpc.getGetRecentCompactedNullifierChangesMethod = getGetRecentCompactedNullifierChangesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getRecentCompactedNullifierChanges")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesResponse.getDefaultInstance())) - .setSchemaDescriptor(new PlatformMethodDescriptorSupplier("getRecentCompactedNullifierChanges")) - .build(); - } - } - } - return getGetRecentCompactedNullifierChangesMethod; - } - /** * Creates a new async stub that supports all call types for the service */ @@ -2488,34 +2364,6 @@ public void getShieldedNullifiers(org.dash.platform.dapi.v0.PlatformOuterClass.G io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetShieldedNullifiersMethod(), responseObserver); } - /** - */ - public void getNullifiersTrunkState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNullifiersTrunkStateMethod(), responseObserver); - } - - /** - */ - public void getNullifiersBranchState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNullifiersBranchStateMethod(), responseObserver); - } - - /** - */ - public void getRecentNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecentNullifierChangesMethod(), responseObserver); - } - - /** - */ - public void getRecentCompactedNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRecentCompactedNullifierChangesMethod(), responseObserver); - } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( @@ -2938,34 +2786,6 @@ public void getRecentCompactedNullifierChanges(org.dash.platform.dapi.v0.Platfor org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest, org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersResponse>( this, METHODID_GET_SHIELDED_NULLIFIERS))) - .addMethod( - getGetNullifiersTrunkStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest, - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateResponse>( - this, METHODID_GET_NULLIFIERS_TRUNK_STATE))) - .addMethod( - getGetNullifiersBranchStateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest, - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateResponse>( - this, METHODID_GET_NULLIFIERS_BRANCH_STATE))) - .addMethod( - getGetRecentNullifierChangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest, - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesResponse>( - this, METHODID_GET_RECENT_NULLIFIER_CHANGES))) - .addMethod( - getGetRecentCompactedNullifierChangesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest, - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesResponse>( - this, METHODID_GET_RECENT_COMPACTED_NULLIFIER_CHANGES))) .build(); } } @@ -3484,38 +3304,6 @@ public void getShieldedNullifiers(org.dash.platform.dapi.v0.PlatformOuterClass.G io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetShieldedNullifiersMethod(), getCallOptions()), request, responseObserver); } - - /** - */ - public void getNullifiersTrunkState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNullifiersTrunkStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getNullifiersBranchState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNullifiersBranchStateMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getRecentNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecentNullifierChangesMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void getRecentCompactedNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRecentCompactedNullifierChangesMethod(), getCallOptions()), request, responseObserver); - } } /** @@ -3972,34 +3760,6 @@ public org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRespons return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetShieldedNullifiersMethod(), getCallOptions(), request); } - - /** - */ - public org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateResponse getNullifiersTrunkState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNullifiersTrunkStateMethod(), getCallOptions(), request); - } - - /** - */ - public org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateResponse getNullifiersBranchState(org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNullifiersBranchStateMethod(), getCallOptions(), request); - } - - /** - */ - public org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesResponse getRecentNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecentNullifierChangesMethod(), getCallOptions(), request); - } - - /** - */ - public org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesResponse getRecentCompactedNullifierChanges(org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRecentCompactedNullifierChangesMethod(), getCallOptions(), request); - } } /** @@ -4516,38 +4276,6 @@ public com.google.common.util.concurrent.ListenableFuture getNullifiersTrunkState( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNullifiersTrunkStateMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture getNullifiersBranchState( - org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNullifiersBranchStateMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture getRecentNullifierChanges( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecentNullifierChangesMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture getRecentCompactedNullifierChanges( - org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRecentCompactedNullifierChangesMethod(), getCallOptions()), request); - } } private static final int METHODID_BROADCAST_STATE_TRANSITION = 0; @@ -4610,10 +4338,6 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4872,22 +4596,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getShieldedNullifiers((org.dash.platform.dapi.v0.PlatformOuterClass.GetShieldedNullifiersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_GET_NULLIFIERS_TRUNK_STATE: - serviceImpl.getNullifiersTrunkState((org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersTrunkStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NULLIFIERS_BRANCH_STATE: - serviceImpl.getNullifiersBranchState((org.dash.platform.dapi.v0.PlatformOuterClass.GetNullifiersBranchStateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RECENT_NULLIFIER_CHANGES: - serviceImpl.getRecentNullifierChanges((org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentNullifierChangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RECENT_COMPACTED_NULLIFIER_CHANGES: - serviceImpl.getRecentCompactedNullifierChanges((org.dash.platform.dapi.v0.PlatformOuterClass.GetRecentCompactedNullifierChangesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; default: throw new AssertionError(); } @@ -5009,10 +4717,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetShieldedPoolStateMethod()) .addMethod(getGetShieldedNotesCountMethod()) .addMethod(getGetShieldedNullifiersMethod()) - .addMethod(getGetNullifiersTrunkStateMethod()) - .addMethod(getGetNullifiersBranchStateMethod()) - .addMethod(getGetRecentNullifierChangesMethod()) - .addMethod(getGetRecentCompactedNullifierChangesMethod()) .build(); } } diff --git a/packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js b/packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js index 6821194a33c..727887cb44c 100644 --- a/packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js +++ b/packages/dapi-grpc/clients/platform/v0/nodejs/platform_pbjs.js @@ -2066,138 +2066,6 @@ $root.org = (function() { * @variation 2 */ - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getNullifiersTrunkState}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getNullifiersTrunkStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} [response] GetNullifiersTrunkStateResponse - */ - - /** - * Calls getNullifiersTrunkState. - * @function getNullifiersTrunkState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} request GetNullifiersTrunkStateRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getNullifiersTrunkStateCallback} callback Node-style callback called with the error, if any, and GetNullifiersTrunkStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getNullifiersTrunkState = function getNullifiersTrunkState(request, callback) { - return this.rpcCall(getNullifiersTrunkState, $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest, $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse, request, callback); - }, "name", { value: "getNullifiersTrunkState" }); - - /** - * Calls getNullifiersTrunkState. - * @function getNullifiersTrunkState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} request GetNullifiersTrunkStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getNullifiersBranchState}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getNullifiersBranchStateCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} [response] GetNullifiersBranchStateResponse - */ - - /** - * Calls getNullifiersBranchState. - * @function getNullifiersBranchState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} request GetNullifiersBranchStateRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getNullifiersBranchStateCallback} callback Node-style callback called with the error, if any, and GetNullifiersBranchStateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getNullifiersBranchState = function getNullifiersBranchState(request, callback) { - return this.rpcCall(getNullifiersBranchState, $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest, $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse, request, callback); - }, "name", { value: "getNullifiersBranchState" }); - - /** - * Calls getNullifiersBranchState. - * @function getNullifiersBranchState - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} request GetNullifiersBranchStateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentNullifierChanges}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getRecentNullifierChangesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} [response] GetRecentNullifierChangesResponse - */ - - /** - * Calls getRecentNullifierChanges. - * @function getRecentNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} request GetRecentNullifierChangesRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getRecentNullifierChangesCallback} callback Node-style callback called with the error, if any, and GetRecentNullifierChangesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getRecentNullifierChanges = function getRecentNullifierChanges(request, callback) { - return this.rpcCall(getRecentNullifierChanges, $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse, request, callback); - }, "name", { value: "getRecentNullifierChanges" }); - - /** - * Calls getRecentNullifierChanges. - * @function getRecentNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} request GetRecentNullifierChangesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link org.dash.platform.dapi.v0.Platform#getRecentCompactedNullifierChanges}. - * @memberof org.dash.platform.dapi.v0.Platform - * @typedef getRecentCompactedNullifierChangesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} [response] GetRecentCompactedNullifierChangesResponse - */ - - /** - * Calls getRecentCompactedNullifierChanges. - * @function getRecentCompactedNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} request GetRecentCompactedNullifierChangesRequest message or plain object - * @param {org.dash.platform.dapi.v0.Platform.getRecentCompactedNullifierChangesCallback} callback Node-style callback called with the error, if any, and GetRecentCompactedNullifierChangesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(Platform.prototype.getRecentCompactedNullifierChanges = function getRecentCompactedNullifierChanges(request, callback) { - return this.rpcCall(getRecentCompactedNullifierChanges, $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest, $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse, request, callback); - }, "name", { value: "getRecentCompactedNullifierChanges" }); - - /** - * Calls getRecentCompactedNullifierChanges. - * @function getRecentCompactedNullifierChanges - * @memberof org.dash.platform.dapi.v0.Platform - * @instance - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} request GetRecentCompactedNullifierChangesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - return Platform; })(); @@ -96798,4570 +96666,6 @@ $root.org = (function() { return GetShieldedNullifiersResponse; })(); - v0.GetNullifiersTrunkStateRequest = (function() { - - /** - * Properties of a GetNullifiersTrunkStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersTrunkStateRequest - * @property {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0|null} [v0] GetNullifiersTrunkStateRequest v0 - */ - - /** - * Constructs a new GetNullifiersTrunkStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersTrunkStateRequest. - * @implements IGetNullifiersTrunkStateRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest=} [properties] Properties to set - */ - function GetNullifiersTrunkStateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateRequest v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - */ - GetNullifiersTrunkStateRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersTrunkStateRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - */ - Object.defineProperty(GetNullifiersTrunkStateRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersTrunkStateRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest instance - */ - GetNullifiersTrunkStateRequest.create = function create(properties) { - return new GetNullifiersTrunkStateRequest(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} GetNullifiersTrunkStateRequest - */ - GetNullifiersTrunkStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} message GetNullifiersTrunkStateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 = (function() { - - /** - * Properties of a GetNullifiersTrunkStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @interface IGetNullifiersTrunkStateRequestV0 - * @property {number|null} [poolType] GetNullifiersTrunkStateRequestV0 poolType - * @property {Uint8Array|null} [poolIdentifier] GetNullifiersTrunkStateRequestV0 poolIdentifier - */ - - /** - * Constructs a new GetNullifiersTrunkStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest - * @classdesc Represents a GetNullifiersTrunkStateRequestV0. - * @implements IGetNullifiersTrunkStateRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0=} [properties] Properties to set - */ - function GetNullifiersTrunkStateRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateRequestV0 poolType. - * @member {number} poolType - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - */ - GetNullifiersTrunkStateRequestV0.prototype.poolType = 0; - - /** - * GetNullifiersTrunkStateRequestV0 poolIdentifier. - * @member {Uint8Array} poolIdentifier - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - */ - GetNullifiersTrunkStateRequestV0.prototype.poolIdentifier = $util.newBuffer([]); - - /** - * Creates a new GetNullifiersTrunkStateRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 instance - */ - GetNullifiersTrunkStateRequestV0.create = function create(properties) { - return new GetNullifiersTrunkStateRequestV0(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.poolType != null && Object.hasOwnProperty.call(message, "poolType")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.poolType); - if (message.poolIdentifier != null && Object.hasOwnProperty.call(message, "poolIdentifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.poolIdentifier); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.IGetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.poolType = reader.uint32(); - break; - case 2: - message.poolIdentifier = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.poolType != null && message.hasOwnProperty("poolType")) - if (!$util.isInteger(message.poolType)) - return "poolType: integer expected"; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - if (!(message.poolIdentifier && typeof message.poolIdentifier.length === "number" || $util.isString(message.poolIdentifier))) - return "poolIdentifier: buffer expected"; - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} GetNullifiersTrunkStateRequestV0 - */ - GetNullifiersTrunkStateRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0(); - if (object.poolType != null) - message.poolType = object.poolType >>> 0; - if (object.poolIdentifier != null) - if (typeof object.poolIdentifier === "string") - $util.base64.decode(object.poolIdentifier, message.poolIdentifier = $util.newBuffer($util.base64.length(object.poolIdentifier)), 0); - else if (object.poolIdentifier.length >= 0) - message.poolIdentifier = object.poolIdentifier; - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} message GetNullifiersTrunkStateRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.poolType = 0; - if (options.bytes === String) - object.poolIdentifier = ""; - else { - object.poolIdentifier = []; - if (options.bytes !== Array) - object.poolIdentifier = $util.newBuffer(object.poolIdentifier); - } - } - if (message.poolType != null && message.hasOwnProperty("poolType")) - object.poolType = message.poolType; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - object.poolIdentifier = options.bytes === String ? $util.base64.encode(message.poolIdentifier, 0, message.poolIdentifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.poolIdentifier) : message.poolIdentifier; - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersTrunkStateRequestV0; - })(); - - return GetNullifiersTrunkStateRequest; - })(); - - v0.GetNullifiersTrunkStateResponse = (function() { - - /** - * Properties of a GetNullifiersTrunkStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersTrunkStateResponse - * @property {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0|null} [v0] GetNullifiersTrunkStateResponse v0 - */ - - /** - * Constructs a new GetNullifiersTrunkStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersTrunkStateResponse. - * @implements IGetNullifiersTrunkStateResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse=} [properties] Properties to set - */ - function GetNullifiersTrunkStateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateResponse v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - */ - GetNullifiersTrunkStateResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersTrunkStateResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - */ - Object.defineProperty(GetNullifiersTrunkStateResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersTrunkStateResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse instance - */ - GetNullifiersTrunkStateResponse.create = function create(properties) { - return new GetNullifiersTrunkStateResponse(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} GetNullifiersTrunkStateResponse - */ - GetNullifiersTrunkStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} message GetNullifiersTrunkStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 = (function() { - - /** - * Properties of a GetNullifiersTrunkStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @interface IGetNullifiersTrunkStateResponseV0 - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetNullifiersTrunkStateResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetNullifiersTrunkStateResponseV0 metadata - */ - - /** - * Constructs a new GetNullifiersTrunkStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse - * @classdesc Represents a GetNullifiersTrunkStateResponseV0. - * @implements IGetNullifiersTrunkStateResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0=} [properties] Properties to set - */ - function GetNullifiersTrunkStateResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersTrunkStateResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - */ - GetNullifiersTrunkStateResponseV0.prototype.proof = null; - - /** - * GetNullifiersTrunkStateResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - */ - GetNullifiersTrunkStateResponseV0.prototype.metadata = null; - - /** - * Creates a new GetNullifiersTrunkStateResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 instance - */ - GetNullifiersTrunkStateResponseV0.create = function create(properties) { - return new GetNullifiersTrunkStateResponseV0(properties); - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersTrunkStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.IGetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersTrunkStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersTrunkStateResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersTrunkStateResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersTrunkStateResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersTrunkStateResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersTrunkStateResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.proof != null && message.hasOwnProperty("proof")) { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetNullifiersTrunkStateResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} GetNullifiersTrunkStateResponseV0 - */ - GetNullifiersTrunkStateResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0(); - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersTrunkStateResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} message GetNullifiersTrunkStateResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersTrunkStateResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.proof = null; - object.metadata = null; - } - if (message.proof != null && message.hasOwnProperty("proof")) - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetNullifiersTrunkStateResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersTrunkStateResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersTrunkStateResponseV0; - })(); - - return GetNullifiersTrunkStateResponse; - })(); - - v0.GetNullifiersBranchStateRequest = (function() { - - /** - * Properties of a GetNullifiersBranchStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersBranchStateRequest - * @property {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0|null} [v0] GetNullifiersBranchStateRequest v0 - */ - - /** - * Constructs a new GetNullifiersBranchStateRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersBranchStateRequest. - * @implements IGetNullifiersBranchStateRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest=} [properties] Properties to set - */ - function GetNullifiersBranchStateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateRequest v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - */ - GetNullifiersBranchStateRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersBranchStateRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - */ - Object.defineProperty(GetNullifiersBranchStateRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersBranchStateRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest instance - */ - GetNullifiersBranchStateRequest.create = function create(properties) { - return new GetNullifiersBranchStateRequest(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersBranchStateRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} GetNullifiersBranchStateRequest - */ - GetNullifiersBranchStateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} message GetNullifiersBranchStateRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersBranchStateRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 = (function() { - - /** - * Properties of a GetNullifiersBranchStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @interface IGetNullifiersBranchStateRequestV0 - * @property {number|null} [poolType] GetNullifiersBranchStateRequestV0 poolType - * @property {Uint8Array|null} [poolIdentifier] GetNullifiersBranchStateRequestV0 poolIdentifier - * @property {Uint8Array|null} [key] GetNullifiersBranchStateRequestV0 key - * @property {number|null} [depth] GetNullifiersBranchStateRequestV0 depth - * @property {number|Long|null} [checkpointHeight] GetNullifiersBranchStateRequestV0 checkpointHeight - */ - - /** - * Constructs a new GetNullifiersBranchStateRequestV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest - * @classdesc Represents a GetNullifiersBranchStateRequestV0. - * @implements IGetNullifiersBranchStateRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0=} [properties] Properties to set - */ - function GetNullifiersBranchStateRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateRequestV0 poolType. - * @member {number} poolType - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.poolType = 0; - - /** - * GetNullifiersBranchStateRequestV0 poolIdentifier. - * @member {Uint8Array} poolIdentifier - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.poolIdentifier = $util.newBuffer([]); - - /** - * GetNullifiersBranchStateRequestV0 key. - * @member {Uint8Array} key - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.key = $util.newBuffer([]); - - /** - * GetNullifiersBranchStateRequestV0 depth. - * @member {number} depth - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.depth = 0; - - /** - * GetNullifiersBranchStateRequestV0 checkpointHeight. - * @member {number|Long} checkpointHeight - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - */ - GetNullifiersBranchStateRequestV0.prototype.checkpointHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new GetNullifiersBranchStateRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 instance - */ - GetNullifiersBranchStateRequestV0.create = function create(properties) { - return new GetNullifiersBranchStateRequestV0(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.poolType != null && Object.hasOwnProperty.call(message, "poolType")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.poolType); - if (message.poolIdentifier != null && Object.hasOwnProperty.call(message, "poolIdentifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.poolIdentifier); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.key); - if (message.depth != null && Object.hasOwnProperty.call(message, "depth")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.depth); - if (message.checkpointHeight != null && Object.hasOwnProperty.call(message, "checkpointHeight")) - writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.checkpointHeight); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.IGetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.poolType = reader.uint32(); - break; - case 2: - message.poolIdentifier = reader.bytes(); - break; - case 3: - message.key = reader.bytes(); - break; - case 4: - message.depth = reader.uint32(); - break; - case 5: - message.checkpointHeight = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.poolType != null && message.hasOwnProperty("poolType")) - if (!$util.isInteger(message.poolType)) - return "poolType: integer expected"; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - if (!(message.poolIdentifier && typeof message.poolIdentifier.length === "number" || $util.isString(message.poolIdentifier))) - return "poolIdentifier: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.depth != null && message.hasOwnProperty("depth")) - if (!$util.isInteger(message.depth)) - return "depth: integer expected"; - if (message.checkpointHeight != null && message.hasOwnProperty("checkpointHeight")) - if (!$util.isInteger(message.checkpointHeight) && !(message.checkpointHeight && $util.isInteger(message.checkpointHeight.low) && $util.isInteger(message.checkpointHeight.high))) - return "checkpointHeight: integer|Long expected"; - return null; - }; - - /** - * Creates a GetNullifiersBranchStateRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} GetNullifiersBranchStateRequestV0 - */ - GetNullifiersBranchStateRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0(); - if (object.poolType != null) - message.poolType = object.poolType >>> 0; - if (object.poolIdentifier != null) - if (typeof object.poolIdentifier === "string") - $util.base64.decode(object.poolIdentifier, message.poolIdentifier = $util.newBuffer($util.base64.length(object.poolIdentifier)), 0); - else if (object.poolIdentifier.length >= 0) - message.poolIdentifier = object.poolIdentifier; - if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; - if (object.depth != null) - message.depth = object.depth >>> 0; - if (object.checkpointHeight != null) - if ($util.Long) - (message.checkpointHeight = $util.Long.fromValue(object.checkpointHeight)).unsigned = true; - else if (typeof object.checkpointHeight === "string") - message.checkpointHeight = parseInt(object.checkpointHeight, 10); - else if (typeof object.checkpointHeight === "number") - message.checkpointHeight = object.checkpointHeight; - else if (typeof object.checkpointHeight === "object") - message.checkpointHeight = new $util.LongBits(object.checkpointHeight.low >>> 0, object.checkpointHeight.high >>> 0).toNumber(true); - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} message GetNullifiersBranchStateRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.poolType = 0; - if (options.bytes === String) - object.poolIdentifier = ""; - else { - object.poolIdentifier = []; - if (options.bytes !== Array) - object.poolIdentifier = $util.newBuffer(object.poolIdentifier); - } - if (options.bytes === String) - object.key = ""; - else { - object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.depth = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.checkpointHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.checkpointHeight = options.longs === String ? "0" : 0; - } - if (message.poolType != null && message.hasOwnProperty("poolType")) - object.poolType = message.poolType; - if (message.poolIdentifier != null && message.hasOwnProperty("poolIdentifier")) - object.poolIdentifier = options.bytes === String ? $util.base64.encode(message.poolIdentifier, 0, message.poolIdentifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.poolIdentifier) : message.poolIdentifier; - if (message.key != null && message.hasOwnProperty("key")) - 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; - if (message.depth != null && message.hasOwnProperty("depth")) - object.depth = message.depth; - if (message.checkpointHeight != null && message.hasOwnProperty("checkpointHeight")) - if (typeof message.checkpointHeight === "number") - object.checkpointHeight = options.longs === String ? String(message.checkpointHeight) : message.checkpointHeight; - else - object.checkpointHeight = options.longs === String ? $util.Long.prototype.toString.call(message.checkpointHeight) : options.longs === Number ? new $util.LongBits(message.checkpointHeight.low >>> 0, message.checkpointHeight.high >>> 0).toNumber(true) : message.checkpointHeight; - return object; - }; - - /** - * Converts this GetNullifiersBranchStateRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersBranchStateRequestV0; - })(); - - return GetNullifiersBranchStateRequest; - })(); - - v0.GetNullifiersBranchStateResponse = (function() { - - /** - * Properties of a GetNullifiersBranchStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetNullifiersBranchStateResponse - * @property {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0|null} [v0] GetNullifiersBranchStateResponse v0 - */ - - /** - * Constructs a new GetNullifiersBranchStateResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetNullifiersBranchStateResponse. - * @implements IGetNullifiersBranchStateResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse=} [properties] Properties to set - */ - function GetNullifiersBranchStateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateResponse v0. - * @member {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - */ - GetNullifiersBranchStateResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetNullifiersBranchStateResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - */ - Object.defineProperty(GetNullifiersBranchStateResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetNullifiersBranchStateResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse instance - */ - GetNullifiersBranchStateResponse.create = function create(properties) { - return new GetNullifiersBranchStateResponse(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetNullifiersBranchStateResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} GetNullifiersBranchStateResponse - */ - GetNullifiersBranchStateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} message GetNullifiersBranchStateResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetNullifiersBranchStateResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 = (function() { - - /** - * Properties of a GetNullifiersBranchStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @interface IGetNullifiersBranchStateResponseV0 - * @property {Uint8Array|null} [merkProof] GetNullifiersBranchStateResponseV0 merkProof - */ - - /** - * Constructs a new GetNullifiersBranchStateResponseV0. - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse - * @classdesc Represents a GetNullifiersBranchStateResponseV0. - * @implements IGetNullifiersBranchStateResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0=} [properties] Properties to set - */ - function GetNullifiersBranchStateResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetNullifiersBranchStateResponseV0 merkProof. - * @member {Uint8Array} merkProof - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @instance - */ - GetNullifiersBranchStateResponseV0.prototype.merkProof = $util.newBuffer([]); - - /** - * Creates a new GetNullifiersBranchStateResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 instance - */ - GetNullifiersBranchStateResponseV0.create = function create(properties) { - return new GetNullifiersBranchStateResponseV0(properties); - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.merkProof != null && Object.hasOwnProperty.call(message, "merkProof")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.merkProof); - return writer; - }; - - /** - * Encodes the specified GetNullifiersBranchStateResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.IGetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNullifiersBranchStateResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetNullifiersBranchStateResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.merkProof = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetNullifiersBranchStateResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetNullifiersBranchStateResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetNullifiersBranchStateResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetNullifiersBranchStateResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.merkProof != null && message.hasOwnProperty("merkProof")) - if (!(message.merkProof && typeof message.merkProof.length === "number" || $util.isString(message.merkProof))) - return "merkProof: buffer expected"; - return null; - }; - - /** - * Creates a GetNullifiersBranchStateResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} GetNullifiersBranchStateResponseV0 - */ - GetNullifiersBranchStateResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0(); - if (object.merkProof != null) - if (typeof object.merkProof === "string") - $util.base64.decode(object.merkProof, message.merkProof = $util.newBuffer($util.base64.length(object.merkProof)), 0); - else if (object.merkProof.length >= 0) - message.merkProof = object.merkProof; - return message; - }; - - /** - * Creates a plain object from a GetNullifiersBranchStateResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} message GetNullifiersBranchStateResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetNullifiersBranchStateResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - if (options.bytes === String) - object.merkProof = ""; - else { - object.merkProof = []; - if (options.bytes !== Array) - object.merkProof = $util.newBuffer(object.merkProof); - } - if (message.merkProof != null && message.hasOwnProperty("merkProof")) - 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; - return object; - }; - - /** - * Converts this GetNullifiersBranchStateResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetNullifiersBranchStateResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNullifiersBranchStateResponseV0; - })(); - - return GetNullifiersBranchStateResponse; - })(); - - v0.BlockNullifierChanges = (function() { - - /** - * Properties of a BlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @interface IBlockNullifierChanges - * @property {number|Long|null} [blockHeight] BlockNullifierChanges blockHeight - * @property {Array.|null} [nullifiers] BlockNullifierChanges nullifiers - */ - - /** - * Constructs a new BlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a BlockNullifierChanges. - * @implements IBlockNullifierChanges - * @constructor - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges=} [properties] Properties to set - */ - function BlockNullifierChanges(properties) { - this.nullifiers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlockNullifierChanges blockHeight. - * @member {number|Long} blockHeight - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - */ - BlockNullifierChanges.prototype.blockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * BlockNullifierChanges nullifiers. - * @member {Array.} nullifiers - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - */ - BlockNullifierChanges.prototype.nullifiers = $util.emptyArray; - - /** - * Creates a new BlockNullifierChanges instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges instance - */ - BlockNullifierChanges.create = function create(properties) { - return new BlockNullifierChanges(properties); - }; - - /** - * Encodes the specified BlockNullifierChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.BlockNullifierChanges.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges} message BlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlockNullifierChanges.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.blockHeight != null && Object.hasOwnProperty.call(message, "blockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.blockHeight); - if (message.nullifiers != null && message.nullifiers.length) - for (var i = 0; i < message.nullifiers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.nullifiers[i]); - return writer; - }; - - /** - * Encodes the specified BlockNullifierChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.BlockNullifierChanges.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.IBlockNullifierChanges} message BlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlockNullifierChanges.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a BlockNullifierChanges message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlockNullifierChanges.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.BlockNullifierChanges(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.blockHeight = reader.uint64(); - break; - case 2: - if (!(message.nullifiers && message.nullifiers.length)) - message.nullifiers = []; - message.nullifiers.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a BlockNullifierChanges message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlockNullifierChanges.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BlockNullifierChanges message. - * @function verify - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlockNullifierChanges.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) - if (!$util.isInteger(message.blockHeight) && !(message.blockHeight && $util.isInteger(message.blockHeight.low) && $util.isInteger(message.blockHeight.high))) - return "blockHeight: integer|Long expected"; - if (message.nullifiers != null && message.hasOwnProperty("nullifiers")) { - if (!Array.isArray(message.nullifiers)) - return "nullifiers: array expected"; - for (var i = 0; i < message.nullifiers.length; ++i) - if (!(message.nullifiers[i] && typeof message.nullifiers[i].length === "number" || $util.isString(message.nullifiers[i]))) - return "nullifiers: buffer[] expected"; - } - return null; - }; - - /** - * Creates a BlockNullifierChanges message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.BlockNullifierChanges} BlockNullifierChanges - */ - BlockNullifierChanges.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.BlockNullifierChanges) - return object; - var message = new $root.org.dash.platform.dapi.v0.BlockNullifierChanges(); - if (object.blockHeight != null) - if ($util.Long) - (message.blockHeight = $util.Long.fromValue(object.blockHeight)).unsigned = true; - else if (typeof object.blockHeight === "string") - message.blockHeight = parseInt(object.blockHeight, 10); - else if (typeof object.blockHeight === "number") - message.blockHeight = object.blockHeight; - else if (typeof object.blockHeight === "object") - message.blockHeight = new $util.LongBits(object.blockHeight.low >>> 0, object.blockHeight.high >>> 0).toNumber(true); - if (object.nullifiers) { - if (!Array.isArray(object.nullifiers)) - throw TypeError(".org.dash.platform.dapi.v0.BlockNullifierChanges.nullifiers: array expected"); - message.nullifiers = []; - for (var i = 0; i < object.nullifiers.length; ++i) - if (typeof object.nullifiers[i] === "string") - $util.base64.decode(object.nullifiers[i], message.nullifiers[i] = $util.newBuffer($util.base64.length(object.nullifiers[i])), 0); - else if (object.nullifiers[i].length >= 0) - message.nullifiers[i] = object.nullifiers[i]; - } - return message; - }; - - /** - * Creates a plain object from a BlockNullifierChanges message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.BlockNullifierChanges} message BlockNullifierChanges - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BlockNullifierChanges.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.nullifiers = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.blockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.blockHeight = options.longs === String ? "0" : 0; - if (message.blockHeight != null && message.hasOwnProperty("blockHeight")) - if (typeof message.blockHeight === "number") - object.blockHeight = options.longs === String ? String(message.blockHeight) : message.blockHeight; - else - object.blockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.blockHeight) : options.longs === Number ? new $util.LongBits(message.blockHeight.low >>> 0, message.blockHeight.high >>> 0).toNumber(true) : message.blockHeight; - if (message.nullifiers && message.nullifiers.length) { - object.nullifiers = []; - for (var j = 0; j < message.nullifiers.length; ++j) - object.nullifiers[j] = options.bytes === String ? $util.base64.encode(message.nullifiers[j], 0, message.nullifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.nullifiers[j]) : message.nullifiers[j]; - } - return object; - }; - - /** - * Converts this BlockNullifierChanges to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.BlockNullifierChanges - * @instance - * @returns {Object.} JSON object - */ - BlockNullifierChanges.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BlockNullifierChanges; - })(); - - v0.NullifierUpdateEntries = (function() { - - /** - * Properties of a NullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @interface INullifierUpdateEntries - * @property {Array.|null} [blockChanges] NullifierUpdateEntries blockChanges - */ - - /** - * Constructs a new NullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a NullifierUpdateEntries. - * @implements INullifierUpdateEntries - * @constructor - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries=} [properties] Properties to set - */ - function NullifierUpdateEntries(properties) { - this.blockChanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NullifierUpdateEntries blockChanges. - * @member {Array.} blockChanges - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @instance - */ - NullifierUpdateEntries.prototype.blockChanges = $util.emptyArray; - - /** - * Creates a new NullifierUpdateEntries instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries instance - */ - NullifierUpdateEntries.create = function create(properties) { - return new NullifierUpdateEntries(properties); - }; - - /** - * Encodes the specified NullifierUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.NullifierUpdateEntries.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries} message NullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NullifierUpdateEntries.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.blockChanges != null && message.blockChanges.length) - for (var i = 0; i < message.blockChanges.length; ++i) - $root.org.dash.platform.dapi.v0.BlockNullifierChanges.encode(message.blockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified NullifierUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.NullifierUpdateEntries.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.INullifierUpdateEntries} message NullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NullifierUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a NullifierUpdateEntries message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NullifierUpdateEntries.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.NullifierUpdateEntries(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.blockChanges && message.blockChanges.length)) - message.blockChanges = []; - message.blockChanges.push($root.org.dash.platform.dapi.v0.BlockNullifierChanges.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a NullifierUpdateEntries message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NullifierUpdateEntries.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NullifierUpdateEntries message. - * @function verify - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NullifierUpdateEntries.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.blockChanges != null && message.hasOwnProperty("blockChanges")) { - if (!Array.isArray(message.blockChanges)) - return "blockChanges: array expected"; - for (var i = 0; i < message.blockChanges.length; ++i) { - var error = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.verify(message.blockChanges[i]); - if (error) - return "blockChanges." + error; - } - } - return null; - }; - - /** - * Creates a NullifierUpdateEntries message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.NullifierUpdateEntries} NullifierUpdateEntries - */ - NullifierUpdateEntries.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.NullifierUpdateEntries) - return object; - var message = new $root.org.dash.platform.dapi.v0.NullifierUpdateEntries(); - if (object.blockChanges) { - if (!Array.isArray(object.blockChanges)) - throw TypeError(".org.dash.platform.dapi.v0.NullifierUpdateEntries.blockChanges: array expected"); - message.blockChanges = []; - for (var i = 0; i < object.blockChanges.length; ++i) { - if (typeof object.blockChanges[i] !== "object") - throw TypeError(".org.dash.platform.dapi.v0.NullifierUpdateEntries.blockChanges: object expected"); - message.blockChanges[i] = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.fromObject(object.blockChanges[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a NullifierUpdateEntries message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.NullifierUpdateEntries} message NullifierUpdateEntries - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NullifierUpdateEntries.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.blockChanges = []; - if (message.blockChanges && message.blockChanges.length) { - object.blockChanges = []; - for (var j = 0; j < message.blockChanges.length; ++j) - object.blockChanges[j] = $root.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject(message.blockChanges[j], options); - } - return object; - }; - - /** - * Converts this NullifierUpdateEntries to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.NullifierUpdateEntries - * @instance - * @returns {Object.} JSON object - */ - NullifierUpdateEntries.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return NullifierUpdateEntries; - })(); - - v0.GetRecentNullifierChangesRequest = (function() { - - /** - * Properties of a GetRecentNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentNullifierChangesRequest - * @property {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0|null} [v0] GetRecentNullifierChangesRequest v0 - */ - - /** - * Constructs a new GetRecentNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentNullifierChangesRequest. - * @implements IGetRecentNullifierChangesRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest=} [properties] Properties to set - */ - function GetRecentNullifierChangesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesRequest v0. - * @member {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - */ - GetRecentNullifierChangesRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest instance - */ - GetRecentNullifierChangesRequest.create = function create(properties) { - return new GetRecentNullifierChangesRequest(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} GetRecentNullifierChangesRequest - */ - GetRecentNullifierChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} message GetRecentNullifierChangesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentNullifierChangesRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 = (function() { - - /** - * Properties of a GetRecentNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @interface IGetRecentNullifierChangesRequestV0 - * @property {number|Long|null} [startHeight] GetRecentNullifierChangesRequestV0 startHeight - * @property {boolean|null} [prove] GetRecentNullifierChangesRequestV0 prove - */ - - /** - * Constructs a new GetRecentNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest - * @classdesc Represents a GetRecentNullifierChangesRequestV0. - * @implements IGetRecentNullifierChangesRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0=} [properties] Properties to set - */ - function GetRecentNullifierChangesRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesRequestV0 startHeight. - * @member {number|Long} startHeight - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - */ - GetRecentNullifierChangesRequestV0.prototype.startHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetRecentNullifierChangesRequestV0 prove. - * @member {boolean} prove - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - */ - GetRecentNullifierChangesRequestV0.prototype.prove = false; - - /** - * Creates a new GetRecentNullifierChangesRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 instance - */ - GetRecentNullifierChangesRequestV0.create = function create(properties) { - return new GetRecentNullifierChangesRequestV0(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startHeight != null && Object.hasOwnProperty.call(message, "startHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startHeight); - if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.IGetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startHeight = reader.uint64(); - break; - case 2: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startHeight != null && message.hasOwnProperty("startHeight")) - if (!$util.isInteger(message.startHeight) && !(message.startHeight && $util.isInteger(message.startHeight.low) && $util.isInteger(message.startHeight.high))) - return "startHeight: integer|Long expected"; - if (message.prove != null && message.hasOwnProperty("prove")) - if (typeof message.prove !== "boolean") - return "prove: boolean expected"; - return null; - }; - - /** - * Creates a GetRecentNullifierChangesRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} GetRecentNullifierChangesRequestV0 - */ - GetRecentNullifierChangesRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0(); - if (object.startHeight != null) - if ($util.Long) - (message.startHeight = $util.Long.fromValue(object.startHeight)).unsigned = true; - else if (typeof object.startHeight === "string") - message.startHeight = parseInt(object.startHeight, 10); - else if (typeof object.startHeight === "number") - message.startHeight = object.startHeight; - else if (typeof object.startHeight === "object") - message.startHeight = new $util.LongBits(object.startHeight.low >>> 0, object.startHeight.high >>> 0).toNumber(true); - if (object.prove != null) - message.prove = Boolean(object.prove); - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} message GetRecentNullifierChangesRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startHeight = options.longs === String ? "0" : 0; - object.prove = false; - } - if (message.startHeight != null && message.hasOwnProperty("startHeight")) - if (typeof message.startHeight === "number") - object.startHeight = options.longs === String ? String(message.startHeight) : message.startHeight; - else - object.startHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startHeight) : options.longs === Number ? new $util.LongBits(message.startHeight.low >>> 0, message.startHeight.high >>> 0).toNumber(true) : message.startHeight; - if (message.prove != null && message.hasOwnProperty("prove")) - object.prove = message.prove; - return object; - }; - - /** - * Converts this GetRecentNullifierChangesRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentNullifierChangesRequestV0; - })(); - - return GetRecentNullifierChangesRequest; - })(); - - v0.GetRecentNullifierChangesResponse = (function() { - - /** - * Properties of a GetRecentNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentNullifierChangesResponse - * @property {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0|null} [v0] GetRecentNullifierChangesResponse v0 - */ - - /** - * Constructs a new GetRecentNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentNullifierChangesResponse. - * @implements IGetRecentNullifierChangesResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse=} [properties] Properties to set - */ - function GetRecentNullifierChangesResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesResponse v0. - * @member {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - */ - GetRecentNullifierChangesResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse instance - */ - GetRecentNullifierChangesResponse.create = function create(properties) { - return new GetRecentNullifierChangesResponse(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} GetRecentNullifierChangesResponse - */ - GetRecentNullifierChangesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} message GetRecentNullifierChangesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentNullifierChangesResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 = (function() { - - /** - * Properties of a GetRecentNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @interface IGetRecentNullifierChangesResponseV0 - * @property {org.dash.platform.dapi.v0.INullifierUpdateEntries|null} [nullifierUpdateEntries] GetRecentNullifierChangesResponseV0 nullifierUpdateEntries - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentNullifierChangesResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentNullifierChangesResponseV0 metadata - */ - - /** - * Constructs a new GetRecentNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse - * @classdesc Represents a GetRecentNullifierChangesResponseV0. - * @implements IGetRecentNullifierChangesResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0=} [properties] Properties to set - */ - function GetRecentNullifierChangesResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentNullifierChangesResponseV0 nullifierUpdateEntries. - * @member {org.dash.platform.dapi.v0.INullifierUpdateEntries|null|undefined} nullifierUpdateEntries - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.nullifierUpdateEntries = null; - - /** - * GetRecentNullifierChangesResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.proof = null; - - /** - * GetRecentNullifierChangesResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - GetRecentNullifierChangesResponseV0.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentNullifierChangesResponseV0 result. - * @member {"nullifierUpdateEntries"|"proof"|undefined} result - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - */ - Object.defineProperty(GetRecentNullifierChangesResponseV0.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["nullifierUpdateEntries", "proof"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentNullifierChangesResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 instance - */ - GetRecentNullifierChangesResponseV0.create = function create(properties) { - return new GetRecentNullifierChangesResponseV0(properties); - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullifierUpdateEntries != null && Object.hasOwnProperty.call(message, "nullifierUpdateEntries")) - $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.encode(message.nullifierUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentNullifierChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.IGetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentNullifierChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentNullifierChangesResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.decode(reader, reader.uint32()); - break; - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentNullifierChangesResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentNullifierChangesResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentNullifierChangesResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentNullifierChangesResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nullifierUpdateEntries != null && message.hasOwnProperty("nullifierUpdateEntries")) { - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.verify(message.nullifierUpdateEntries); - if (error) - return "nullifierUpdateEntries." + error; - } - } - if (message.proof != null && message.hasOwnProperty("proof")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetRecentNullifierChangesResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} GetRecentNullifierChangesResponseV0 - */ - GetRecentNullifierChangesResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0(); - if (object.nullifierUpdateEntries != null) { - if (typeof object.nullifierUpdateEntries !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.nullifierUpdateEntries: object expected"); - message.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.fromObject(object.nullifierUpdateEntries); - } - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentNullifierChangesResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} message GetRecentNullifierChangesResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentNullifierChangesResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.nullifierUpdateEntries != null && message.hasOwnProperty("nullifierUpdateEntries")) { - object.nullifierUpdateEntries = $root.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(message.nullifierUpdateEntries, options); - if (options.oneofs) - object.result = "nullifierUpdateEntries"; - } - if (message.proof != null && message.hasOwnProperty("proof")) { - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (options.oneofs) - object.result = "proof"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetRecentNullifierChangesResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentNullifierChangesResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentNullifierChangesResponseV0; - })(); - - return GetRecentNullifierChangesResponse; - })(); - - v0.CompactedBlockNullifierChanges = (function() { - - /** - * Properties of a CompactedBlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @interface ICompactedBlockNullifierChanges - * @property {number|Long|null} [startBlockHeight] CompactedBlockNullifierChanges startBlockHeight - * @property {number|Long|null} [endBlockHeight] CompactedBlockNullifierChanges endBlockHeight - * @property {Array.|null} [nullifiers] CompactedBlockNullifierChanges nullifiers - */ - - /** - * Constructs a new CompactedBlockNullifierChanges. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a CompactedBlockNullifierChanges. - * @implements ICompactedBlockNullifierChanges - * @constructor - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges=} [properties] Properties to set - */ - function CompactedBlockNullifierChanges(properties) { - this.nullifiers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompactedBlockNullifierChanges startBlockHeight. - * @member {number|Long} startBlockHeight - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * CompactedBlockNullifierChanges endBlockHeight. - * @member {number|Long} endBlockHeight - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.endBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * CompactedBlockNullifierChanges nullifiers. - * @member {Array.} nullifiers - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - */ - CompactedBlockNullifierChanges.prototype.nullifiers = $util.emptyArray; - - /** - * Creates a new CompactedBlockNullifierChanges instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges instance - */ - CompactedBlockNullifierChanges.create = function create(properties) { - return new CompactedBlockNullifierChanges(properties); - }; - - /** - * Encodes the specified CompactedBlockNullifierChanges message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges} message CompactedBlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedBlockNullifierChanges.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight); - if (message.endBlockHeight != null && Object.hasOwnProperty.call(message, "endBlockHeight")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endBlockHeight); - if (message.nullifiers != null && message.nullifiers.length) - for (var i = 0; i < message.nullifiers.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.nullifiers[i]); - return writer; - }; - - /** - * Encodes the specified CompactedBlockNullifierChanges message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.ICompactedBlockNullifierChanges} message CompactedBlockNullifierChanges message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedBlockNullifierChanges.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CompactedBlockNullifierChanges message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedBlockNullifierChanges.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startBlockHeight = reader.uint64(); - break; - case 2: - message.endBlockHeight = reader.uint64(); - break; - case 3: - if (!(message.nullifiers && message.nullifiers.length)) - message.nullifiers = []; - message.nullifiers.push(reader.bytes()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CompactedBlockNullifierChanges message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedBlockNullifierChanges.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CompactedBlockNullifierChanges message. - * @function verify - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompactedBlockNullifierChanges.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high))) - return "startBlockHeight: integer|Long expected"; - if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight")) - if (!$util.isInteger(message.endBlockHeight) && !(message.endBlockHeight && $util.isInteger(message.endBlockHeight.low) && $util.isInteger(message.endBlockHeight.high))) - return "endBlockHeight: integer|Long expected"; - if (message.nullifiers != null && message.hasOwnProperty("nullifiers")) { - if (!Array.isArray(message.nullifiers)) - return "nullifiers: array expected"; - for (var i = 0; i < message.nullifiers.length; ++i) - if (!(message.nullifiers[i] && typeof message.nullifiers[i].length === "number" || $util.isString(message.nullifiers[i]))) - return "nullifiers: buffer[] expected"; - } - return null; - }; - - /** - * Creates a CompactedBlockNullifierChanges message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} CompactedBlockNullifierChanges - */ - CompactedBlockNullifierChanges.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges) - return object; - var message = new $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges(); - if (object.startBlockHeight != null) - if ($util.Long) - (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true; - else if (typeof object.startBlockHeight === "string") - message.startBlockHeight = parseInt(object.startBlockHeight, 10); - else if (typeof object.startBlockHeight === "number") - message.startBlockHeight = object.startBlockHeight; - else if (typeof object.startBlockHeight === "object") - message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true); - if (object.endBlockHeight != null) - if ($util.Long) - (message.endBlockHeight = $util.Long.fromValue(object.endBlockHeight)).unsigned = true; - else if (typeof object.endBlockHeight === "string") - message.endBlockHeight = parseInt(object.endBlockHeight, 10); - else if (typeof object.endBlockHeight === "number") - message.endBlockHeight = object.endBlockHeight; - else if (typeof object.endBlockHeight === "object") - message.endBlockHeight = new $util.LongBits(object.endBlockHeight.low >>> 0, object.endBlockHeight.high >>> 0).toNumber(true); - if (object.nullifiers) { - if (!Array.isArray(object.nullifiers)) - throw TypeError(".org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.nullifiers: array expected"); - message.nullifiers = []; - for (var i = 0; i < object.nullifiers.length; ++i) - if (typeof object.nullifiers[i] === "string") - $util.base64.decode(object.nullifiers[i], message.nullifiers[i] = $util.newBuffer($util.base64.length(object.nullifiers[i])), 0); - else if (object.nullifiers[i].length >= 0) - message.nullifiers[i] = object.nullifiers[i]; - } - return message; - }; - - /** - * Creates a plain object from a CompactedBlockNullifierChanges message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @static - * @param {org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} message CompactedBlockNullifierChanges - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompactedBlockNullifierChanges.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.nullifiers = []; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startBlockHeight = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.endBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endBlockHeight = options.longs === String ? "0" : 0; - } - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (typeof message.startBlockHeight === "number") - object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight; - else - object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight; - if (message.endBlockHeight != null && message.hasOwnProperty("endBlockHeight")) - if (typeof message.endBlockHeight === "number") - object.endBlockHeight = options.longs === String ? String(message.endBlockHeight) : message.endBlockHeight; - else - object.endBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.endBlockHeight) : options.longs === Number ? new $util.LongBits(message.endBlockHeight.low >>> 0, message.endBlockHeight.high >>> 0).toNumber(true) : message.endBlockHeight; - if (message.nullifiers && message.nullifiers.length) { - object.nullifiers = []; - for (var j = 0; j < message.nullifiers.length; ++j) - object.nullifiers[j] = options.bytes === String ? $util.base64.encode(message.nullifiers[j], 0, message.nullifiers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.nullifiers[j]) : message.nullifiers[j]; - } - return object; - }; - - /** - * Converts this CompactedBlockNullifierChanges to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.CompactedBlockNullifierChanges - * @instance - * @returns {Object.} JSON object - */ - CompactedBlockNullifierChanges.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CompactedBlockNullifierChanges; - })(); - - v0.CompactedNullifierUpdateEntries = (function() { - - /** - * Properties of a CompactedNullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @interface ICompactedNullifierUpdateEntries - * @property {Array.|null} [compactedBlockChanges] CompactedNullifierUpdateEntries compactedBlockChanges - */ - - /** - * Constructs a new CompactedNullifierUpdateEntries. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a CompactedNullifierUpdateEntries. - * @implements ICompactedNullifierUpdateEntries - * @constructor - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries=} [properties] Properties to set - */ - function CompactedNullifierUpdateEntries(properties) { - this.compactedBlockChanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompactedNullifierUpdateEntries compactedBlockChanges. - * @member {Array.} compactedBlockChanges - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @instance - */ - CompactedNullifierUpdateEntries.prototype.compactedBlockChanges = $util.emptyArray; - - /** - * Creates a new CompactedNullifierUpdateEntries instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries instance - */ - CompactedNullifierUpdateEntries.create = function create(properties) { - return new CompactedNullifierUpdateEntries(properties); - }; - - /** - * Encodes the specified CompactedNullifierUpdateEntries message. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedNullifierUpdateEntries.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compactedBlockChanges != null && message.compactedBlockChanges.length) - for (var i = 0; i < message.compactedBlockChanges.length; ++i) - $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.encode(message.compactedBlockChanges[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CompactedNullifierUpdateEntries message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompactedNullifierUpdateEntries.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CompactedNullifierUpdateEntries message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedNullifierUpdateEntries.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.compactedBlockChanges && message.compactedBlockChanges.length)) - message.compactedBlockChanges = []; - message.compactedBlockChanges.push($root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CompactedNullifierUpdateEntries message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompactedNullifierUpdateEntries.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CompactedNullifierUpdateEntries message. - * @function verify - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompactedNullifierUpdateEntries.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compactedBlockChanges != null && message.hasOwnProperty("compactedBlockChanges")) { - if (!Array.isArray(message.compactedBlockChanges)) - return "compactedBlockChanges: array expected"; - for (var i = 0; i < message.compactedBlockChanges.length; ++i) { - var error = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.verify(message.compactedBlockChanges[i]); - if (error) - return "compactedBlockChanges." + error; - } - } - return null; - }; - - /** - * Creates a CompactedNullifierUpdateEntries message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} CompactedNullifierUpdateEntries - */ - CompactedNullifierUpdateEntries.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries) - return object; - var message = new $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries(); - if (object.compactedBlockChanges) { - if (!Array.isArray(object.compactedBlockChanges)) - throw TypeError(".org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.compactedBlockChanges: array expected"); - message.compactedBlockChanges = []; - for (var i = 0; i < object.compactedBlockChanges.length; ++i) { - if (typeof object.compactedBlockChanges[i] !== "object") - throw TypeError(".org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.compactedBlockChanges: object expected"); - message.compactedBlockChanges[i] = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.fromObject(object.compactedBlockChanges[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a CompactedNullifierUpdateEntries message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @static - * @param {org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} message CompactedNullifierUpdateEntries - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CompactedNullifierUpdateEntries.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.compactedBlockChanges = []; - if (message.compactedBlockChanges && message.compactedBlockChanges.length) { - object.compactedBlockChanges = []; - for (var j = 0; j < message.compactedBlockChanges.length; ++j) - object.compactedBlockChanges[j] = $root.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject(message.compactedBlockChanges[j], options); - } - return object; - }; - - /** - * Converts this CompactedNullifierUpdateEntries to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries - * @instance - * @returns {Object.} JSON object - */ - CompactedNullifierUpdateEntries.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CompactedNullifierUpdateEntries; - })(); - - v0.GetRecentCompactedNullifierChangesRequest = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentCompactedNullifierChangesRequest - * @property {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0|null} [v0] GetRecentCompactedNullifierChangesRequest v0 - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesRequest. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentCompactedNullifierChangesRequest. - * @implements IGetRecentCompactedNullifierChangesRequest - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesRequest v0. - * @member {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - */ - GetRecentCompactedNullifierChangesRequest.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesRequest version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesRequest.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesRequest instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest instance - */ - GetRecentCompactedNullifierChangesRequest.create = function create(properties) { - return new GetRecentCompactedNullifierChangesRequest(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequest message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequest message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequest message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesRequest message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} GetRecentCompactedNullifierChangesRequest - */ - GetRecentCompactedNullifierChangesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} message GetRecentCompactedNullifierChangesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesRequest to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @interface IGetRecentCompactedNullifierChangesRequestV0 - * @property {number|Long|null} [startBlockHeight] GetRecentCompactedNullifierChangesRequestV0 startBlockHeight - * @property {boolean|null} [prove] GetRecentCompactedNullifierChangesRequestV0 prove - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesRequestV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest - * @classdesc Represents a GetRecentCompactedNullifierChangesRequestV0. - * @implements IGetRecentCompactedNullifierChangesRequestV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesRequestV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesRequestV0 startBlockHeight. - * @member {number|Long} startBlockHeight - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.startBlockHeight = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * GetRecentCompactedNullifierChangesRequestV0 prove. - * @member {boolean} prove - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.prove = false; - - /** - * Creates a new GetRecentCompactedNullifierChangesRequestV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 instance - */ - GetRecentCompactedNullifierChangesRequestV0.create = function create(properties) { - return new GetRecentCompactedNullifierChangesRequestV0(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequestV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequestV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startBlockHeight != null && Object.hasOwnProperty.call(message, "startBlockHeight")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startBlockHeight); - if (message.prove != null && Object.hasOwnProperty.call(message, "prove")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.prove); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesRequestV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.IGetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesRequestV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequestV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequestV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startBlockHeight = reader.uint64(); - break; - case 2: - message.prove = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesRequestV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesRequestV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesRequestV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesRequestV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (!$util.isInteger(message.startBlockHeight) && !(message.startBlockHeight && $util.isInteger(message.startBlockHeight.low) && $util.isInteger(message.startBlockHeight.high))) - return "startBlockHeight: integer|Long expected"; - if (message.prove != null && message.hasOwnProperty("prove")) - if (typeof message.prove !== "boolean") - return "prove: boolean expected"; - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesRequestV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} GetRecentCompactedNullifierChangesRequestV0 - */ - GetRecentCompactedNullifierChangesRequestV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0(); - if (object.startBlockHeight != null) - if ($util.Long) - (message.startBlockHeight = $util.Long.fromValue(object.startBlockHeight)).unsigned = true; - else if (typeof object.startBlockHeight === "string") - message.startBlockHeight = parseInt(object.startBlockHeight, 10); - else if (typeof object.startBlockHeight === "number") - message.startBlockHeight = object.startBlockHeight; - else if (typeof object.startBlockHeight === "object") - message.startBlockHeight = new $util.LongBits(object.startBlockHeight.low >>> 0, object.startBlockHeight.high >>> 0).toNumber(true); - if (object.prove != null) - message.prove = Boolean(object.prove); - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesRequestV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} message GetRecentCompactedNullifierChangesRequestV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesRequestV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.startBlockHeight = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startBlockHeight = options.longs === String ? "0" : 0; - object.prove = false; - } - if (message.startBlockHeight != null && message.hasOwnProperty("startBlockHeight")) - if (typeof message.startBlockHeight === "number") - object.startBlockHeight = options.longs === String ? String(message.startBlockHeight) : message.startBlockHeight; - else - object.startBlockHeight = options.longs === String ? $util.Long.prototype.toString.call(message.startBlockHeight) : options.longs === Number ? new $util.LongBits(message.startBlockHeight.low >>> 0, message.startBlockHeight.high >>> 0).toNumber(true) : message.startBlockHeight; - if (message.prove != null && message.hasOwnProperty("prove")) - object.prove = message.prove; - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesRequestV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesRequestV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentCompactedNullifierChangesRequestV0; - })(); - - return GetRecentCompactedNullifierChangesRequest; - })(); - - v0.GetRecentCompactedNullifierChangesResponse = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @interface IGetRecentCompactedNullifierChangesResponse - * @property {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0|null} [v0] GetRecentCompactedNullifierChangesResponse v0 - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesResponse. - * @memberof org.dash.platform.dapi.v0 - * @classdesc Represents a GetRecentCompactedNullifierChangesResponse. - * @implements IGetRecentCompactedNullifierChangesResponse - * @constructor - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesResponse v0. - * @member {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0|null|undefined} v0 - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - */ - GetRecentCompactedNullifierChangesResponse.prototype.v0 = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesResponse version. - * @member {"v0"|undefined} version - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesResponse.prototype, "version", { - get: $util.oneOfGetter($oneOfFields = ["v0"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesResponse instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse instance - */ - GetRecentCompactedNullifierChangesResponse.create = function create(properties) { - return new GetRecentCompactedNullifierChangesResponse(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponse message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.v0 != null && Object.hasOwnProperty.call(message, "v0")) - $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.encode(message.v0, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponse message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.IGetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponse message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesResponse message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - properties.version = 1; - { - var error = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify(message.v0); - if (error) - return "v0." + error; - } - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} GetRecentCompactedNullifierChangesResponse - */ - GetRecentCompactedNullifierChangesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse(); - if (object.v0 != null) { - if (typeof object.v0 !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.v0: object expected"); - message.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.fromObject(object.v0); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} message GetRecentCompactedNullifierChangesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.v0 != null && message.hasOwnProperty("v0")) { - object.v0 = $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(message.v0, options); - if (options.oneofs) - object.version = "v0"; - } - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesResponse to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 = (function() { - - /** - * Properties of a GetRecentCompactedNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @interface IGetRecentCompactedNullifierChangesResponseV0 - * @property {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries|null} [compactedNullifierUpdateEntries] GetRecentCompactedNullifierChangesResponseV0 compactedNullifierUpdateEntries - * @property {org.dash.platform.dapi.v0.IProof|null} [proof] GetRecentCompactedNullifierChangesResponseV0 proof - * @property {org.dash.platform.dapi.v0.IResponseMetadata|null} [metadata] GetRecentCompactedNullifierChangesResponseV0 metadata - */ - - /** - * Constructs a new GetRecentCompactedNullifierChangesResponseV0. - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse - * @classdesc Represents a GetRecentCompactedNullifierChangesResponseV0. - * @implements IGetRecentCompactedNullifierChangesResponseV0 - * @constructor - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0=} [properties] Properties to set - */ - function GetRecentCompactedNullifierChangesResponseV0(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetRecentCompactedNullifierChangesResponseV0 compactedNullifierUpdateEntries. - * @member {org.dash.platform.dapi.v0.ICompactedNullifierUpdateEntries|null|undefined} compactedNullifierUpdateEntries - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.compactedNullifierUpdateEntries = null; - - /** - * GetRecentCompactedNullifierChangesResponseV0 proof. - * @member {org.dash.platform.dapi.v0.IProof|null|undefined} proof - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.proof = null; - - /** - * GetRecentCompactedNullifierChangesResponseV0 metadata. - * @member {org.dash.platform.dapi.v0.IResponseMetadata|null|undefined} metadata - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetRecentCompactedNullifierChangesResponseV0 result. - * @member {"compactedNullifierUpdateEntries"|"proof"|undefined} result - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - */ - Object.defineProperty(GetRecentCompactedNullifierChangesResponseV0.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["compactedNullifierUpdateEntries", "proof"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetRecentCompactedNullifierChangesResponseV0 instance using the specified properties. - * @function create - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0=} [properties] Properties to set - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 instance - */ - GetRecentCompactedNullifierChangesResponseV0.create = function create(properties) { - return new GetRecentCompactedNullifierChangesResponseV0(properties); - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponseV0 message. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify|verify} messages. - * @function encode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponseV0.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compactedNullifierUpdateEntries != null && Object.hasOwnProperty.call(message, "compactedNullifierUpdateEntries")) - $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.encode(message.compactedNullifierUpdateEntries, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.proof != null && Object.hasOwnProperty.call(message, "proof")) - $root.org.dash.platform.dapi.v0.Proof.encode(message.proof, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.org.dash.platform.dapi.v0.ResponseMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetRecentCompactedNullifierChangesResponseV0 message, length delimited. Does not implicitly {@link org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.verify|verify} messages. - * @function encodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.IGetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetRecentCompactedNullifierChangesResponseV0.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponseV0 message from the specified reader or buffer. - * @function decode - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponseV0.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.decode(reader, reader.uint32()); - break; - case 2: - message.proof = $root.org.dash.platform.dapi.v0.Proof.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetRecentCompactedNullifierChangesResponseV0 message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetRecentCompactedNullifierChangesResponseV0.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetRecentCompactedNullifierChangesResponseV0 message. - * @function verify - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetRecentCompactedNullifierChangesResponseV0.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.compactedNullifierUpdateEntries != null && message.hasOwnProperty("compactedNullifierUpdateEntries")) { - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.verify(message.compactedNullifierUpdateEntries); - if (error) - return "compactedNullifierUpdateEntries." + error; - } - } - if (message.proof != null && message.hasOwnProperty("proof")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - { - var error = $root.org.dash.platform.dapi.v0.Proof.verify(message.proof); - if (error) - return "proof." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.org.dash.platform.dapi.v0.ResponseMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - /** - * Creates a GetRecentCompactedNullifierChangesResponseV0 message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {Object.} object Plain object - * @returns {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} GetRecentCompactedNullifierChangesResponseV0 - */ - GetRecentCompactedNullifierChangesResponseV0.fromObject = function fromObject(object) { - if (object instanceof $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0) - return object; - var message = new $root.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0(); - if (object.compactedNullifierUpdateEntries != null) { - if (typeof object.compactedNullifierUpdateEntries !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.compactedNullifierUpdateEntries: object expected"); - message.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.fromObject(object.compactedNullifierUpdateEntries); - } - if (object.proof != null) { - if (typeof object.proof !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.proof: object expected"); - message.proof = $root.org.dash.platform.dapi.v0.Proof.fromObject(object.proof); - } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.metadata: object expected"); - message.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.fromObject(object.metadata); - } - return message; - }; - - /** - * Creates a plain object from a GetRecentCompactedNullifierChangesResponseV0 message. Also converts values to other types if specified. - * @function toObject - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @static - * @param {org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} message GetRecentCompactedNullifierChangesResponseV0 - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetRecentCompactedNullifierChangesResponseV0.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.metadata = null; - if (message.compactedNullifierUpdateEntries != null && message.hasOwnProperty("compactedNullifierUpdateEntries")) { - object.compactedNullifierUpdateEntries = $root.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(message.compactedNullifierUpdateEntries, options); - if (options.oneofs) - object.result = "compactedNullifierUpdateEntries"; - } - if (message.proof != null && message.hasOwnProperty("proof")) { - object.proof = $root.org.dash.platform.dapi.v0.Proof.toObject(message.proof, options); - if (options.oneofs) - object.result = "proof"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.org.dash.platform.dapi.v0.ResponseMetadata.toObject(message.metadata, options); - return object; - }; - - /** - * Converts this GetRecentCompactedNullifierChangesResponseV0 to JSON. - * @function toJSON - * @memberof org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 - * @instance - * @returns {Object.} JSON object - */ - GetRecentCompactedNullifierChangesResponseV0.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetRecentCompactedNullifierChangesResponseV0; - })(); - - return GetRecentCompactedNullifierChangesResponse; - })(); - return v0; })(); diff --git a/packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js b/packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js index cfbd3a82738..de7152f9dc9 100644 --- a/packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js +++ b/packages/dapi-grpc/clients/platform/v0/nodejs/platform_protoc.js @@ -31,15 +31,12 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.AllKeys', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BalanceAndNonce', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockAddressBalanceChanges', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockNullifierChanges', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest.VersionCase', null, { proto }); @@ -426,18 +423,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRe goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0.ResultCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest.GetPathElementsRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest.VersionCase', null, { proto }); @@ -485,20 +470,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBala goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.ResultCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.VersionCase', null, { proto }); @@ -634,7 +605,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyPurpose', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyRequestType', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyRequestType.RequestCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.NullifierUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.Proof', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.ResponseMetadata', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.SearchKey', null, { proto }); @@ -8923,426 +8893,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses.displayName = 'proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.BlockNullifierChanges.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.BlockNullifierChanges, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.displayName = 'proto.org.dash.platform.dapi.v0.BlockNullifierChanges'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.NullifierUpdateEntries, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.displayName = 'proto.org.dash.platform.dapi.v0.NullifierUpdateEntries'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.displayName = 'proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.displayName = 'proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0'; -} @@ -94338,3900 +93888,6 @@ proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.prototype.hasV0 = }; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - poolType: jspb.Message.getFieldWithDefault(msg, 1, 0), - poolIdentifier: msg.getPoolIdentifier_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPoolType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPoolIdentifier(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolType(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPoolIdentifier_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional uint32 pool_type = 1; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.setPoolType = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes pool_identifier = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes pool_identifier = 2; - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPoolIdentifier())); -}; - - -/** - * optional bytes pool_identifier = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPoolIdentifier())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.setPoolIdentifier = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional GetNullifiersTrunkStateRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.setProof = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetNullifiersTrunkStateResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - poolType: jspb.Message.getFieldWithDefault(msg, 1, 0), - poolIdentifier: msg.getPoolIdentifier_asB64(), - key: msg.getKey_asB64(), - depth: jspb.Message.getFieldWithDefault(msg, 4, 0), - checkpointHeight: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPoolType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPoolIdentifier(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDepth(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCheckpointHeight(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolType(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPoolIdentifier_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getDepth(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getCheckpointHeight(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional uint32 pool_type = 1; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setPoolType = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes pool_identifier = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes pool_identifier = 2; - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPoolIdentifier())); -}; - - -/** - * optional bytes pool_identifier = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPoolIdentifier())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setPoolIdentifier = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes key = 3; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes key = 3; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes key = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional uint32 depth = 4; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getDepth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setDepth = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 checkpoint_height = 5; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getCheckpointHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setCheckpointHeight = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional GetNullifiersBranchStateRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - merkProof: msg.getMerkProof_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMerkProof(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMerkProof_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional bytes merk_proof = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes merk_proof = 2; - * This is a type-conversion wrapper around `getMerkProof()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMerkProof())); -}; - - -/** - * optional bytes merk_proof = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMerkProof()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMerkProof())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.setMerkProof = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional GetNullifiersBranchStateResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - nullifiersList: msg.getNullifiersList_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.BlockNullifierChanges; - return proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setBlockHeight(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addNullifiers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getNullifiersList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 2, - f - ); - } -}; - - -/** - * optional uint64 block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated bytes nullifiers = 2; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * repeated bytes nullifiers = 2; - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getNullifiersList())); -}; - - -/** - * repeated bytes nullifiers = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getNullifiersList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.setNullifiersList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.addNullifiers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.clearNullifiersList = function() { - return this.setNullifiersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject = function(includeInstance, msg) { - var f, obj = { - blockChangesList: jspb.Message.toObjectList(msg.getBlockChangesList(), - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.NullifierUpdateEntries; - return proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.BlockNullifierChanges; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader); - msg.addBlockChanges(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BlockNullifierChanges block_changes = 1; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.getBlockChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.BlockNullifierChanges, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} returns this -*/ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.setBlockChangesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges=} opt_value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.addBlockChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.BlockNullifierChanges, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} returns this - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.clearBlockChangesList = function() { - return this.setBlockChangesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - startHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartHeight(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setProve(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getProve(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional uint64 start_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.getStartHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.setStartHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional bool prove = 2; - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.getProve = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.setProve = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional GetRecentNullifierChangesRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase = { - RESULT_NOT_SET: 0, - NULLIFIER_UPDATE_ENTRIES: 1, - PROOF: 2 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getResultCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - nullifierUpdateEntries: (f = msg.getNullifierUpdateEntries()) && proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(includeInstance, f), - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.NullifierUpdateEntries; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader); - msg.setNullifierUpdateEntries(value); - break; - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNullifierUpdateEntries(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter - ); - } - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional NullifierUpdateEntries nullifier_update_entries = 1; - * @return {?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getNullifierUpdateEntries = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.NullifierUpdateEntries, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setNullifierUpdateEntries = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearNullifierUpdateEntries = function() { - return this.setNullifierUpdateEntries(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasNullifierUpdateEntries = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setProof = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetRecentNullifierChangesResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject = function(includeInstance, msg) { - var f, obj = { - startBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endBlockHeight: jspb.Message.getFieldWithDefault(msg, 2, "0"), - nullifiersList: msg.getNullifiersList_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges; - return proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartBlockHeight(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndBlockHeight(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addNullifiers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getEndBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getNullifiersList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 3, - f - ); - } -}; - - -/** - * optional uint64 start_block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getStartBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setStartBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 end_block_height = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getEndBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setEndBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * repeated bytes nullifiers = 3; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * repeated bytes nullifiers = 3; - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getNullifiersList())); -}; - - -/** - * repeated bytes nullifiers = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getNullifiersList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setNullifiersList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.addNullifiers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.clearNullifiersList = function() { - return this.setNullifiersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject = function(includeInstance, msg) { - var f, obj = { - compactedBlockChangesList: jspb.Message.toObjectList(msg.getCompactedBlockChangesList(), - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries; - return proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader); - msg.addCompactedBlockChanges(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCompactedBlockChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated CompactedBlockNullifierChanges compacted_block_changes = 1; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.getCompactedBlockChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} returns this -*/ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.setCompactedBlockChangesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges=} opt_value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.addCompactedBlockChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.clearCompactedBlockChangesList = function() { - return this.setCompactedBlockChangesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - startBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartBlockHeight(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setProve(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getProve(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional uint64 start_block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.getStartBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.setStartBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional bool prove = 2; - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.getProve = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.setProve = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional GetRecentCompactedNullifierChangesRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase = { - RESULT_NOT_SET: 0, - COMPACTED_NULLIFIER_UPDATE_ENTRIES: 1, - PROOF: 2 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getResultCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - compactedNullifierUpdateEntries: (f = msg.getCompactedNullifierUpdateEntries()) && proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(includeInstance, f), - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader); - msg.setCompactedNullifierUpdateEntries(value); - break; - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCompactedNullifierUpdateEntries(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter - ); - } - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CompactedNullifierUpdateEntries compacted_nullifier_update_entries = 1; - * @return {?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getCompactedNullifierUpdateEntries = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setCompactedNullifierUpdateEntries = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearCompactedNullifierUpdateEntries = function() { - return this.setCompactedNullifierUpdateEntries(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasCompactedNullifierUpdateEntries = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setProof = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetRecentCompactedNullifierChangesResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - /** * @enum {number} */ diff --git a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h index a48ed8b1926..be03578f98b 100644 --- a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h +++ b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.h @@ -36,12 +36,9 @@ CF_EXTERN_C_BEGIN @class BalanceAndNonce; @class BlockAddressBalanceChanges; @class BlockHeightCreditEntry; -@class BlockNullifierChanges; @class CompactedAddressBalanceChange; @class CompactedAddressBalanceUpdateEntries; @class CompactedBlockAddressBalanceChanges; -@class CompactedBlockNullifierChanges; -@class CompactedNullifierUpdateEntries; @class GPBBytesValue; @class GPBUInt32Value; @class GetAddressInfoRequest_GetAddressInfoRequestV0; @@ -218,10 +215,6 @@ CF_EXTERN_C_BEGIN @class GetIdentityTokenInfosResponse_GetIdentityTokenInfosResponseV0_TokenInfos; @class GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0; @class GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0; -@class GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0; -@class GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0; -@class GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0; -@class GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0; @class GetPathElementsRequest_GetPathElementsRequestV0; @class GetPathElementsResponse_GetPathElementsResponseV0; @class GetPathElementsResponse_GetPathElementsResponseV0_Elements; @@ -239,10 +232,6 @@ CF_EXTERN_C_BEGIN @class GetRecentAddressBalanceChangesResponse_GetRecentAddressBalanceChangesResponseV0; @class GetRecentCompactedAddressBalanceChangesRequest_GetRecentCompactedAddressBalanceChangesRequestV0; @class GetRecentCompactedAddressBalanceChangesResponse_GetRecentCompactedAddressBalanceChangesResponseV0; -@class GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0; -@class GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0; -@class GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0; -@class GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0; @class GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0; @class GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0; @class GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors; @@ -305,7 +294,6 @@ CF_EXTERN_C_BEGIN @class GetVotePollsByEndDateResponse_GetVotePollsByEndDateResponseV0_SerializedVotePollsByTimestamp; @class GetVotePollsByEndDateResponse_GetVotePollsByEndDateResponseV0_SerializedVotePollsByTimestamps; @class KeyRequestType; -@class NullifierUpdateEntries; @class Proof; @class ResponseMetadata; @class SearchKey; @@ -10752,433 +10740,6 @@ GPB_FINAL @interface GetShieldedNullifiersResponse_GetShieldedNullifiersResponse @end -#pragma mark - GetNullifiersTrunkStateRequest - -typedef GPB_ENUM(GetNullifiersTrunkStateRequest_FieldNumber) { - GetNullifiersTrunkStateRequest_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetNullifiersTrunkStateRequest_Version_OneOfCase) { - GetNullifiersTrunkStateRequest_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetNullifiersTrunkStateRequest_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetNullifiersTrunkStateRequest : GPBMessage - -@property(nonatomic, readonly) GetNullifiersTrunkStateRequest_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetNullifiersTrunkStateRequest_ClearVersionOneOfCase(GetNullifiersTrunkStateRequest *message); - -#pragma mark - GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 - -typedef GPB_ENUM(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0_FieldNumber) { - GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0_FieldNumber_PoolType = 1, - GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0_FieldNumber_PoolIdentifier = 2, -}; - -GPB_FINAL @interface GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 : GPBMessage - -/** ShieldedPoolType enum value (0=credit, 1=main token, 2=individual token) */ -@property(nonatomic, readwrite) uint32_t poolType; - -/** 32-byte Identifier, required for pool_type=2 */ -@property(nonatomic, readwrite, copy, null_resettable) NSData *poolIdentifier; - -@end - -#pragma mark - GetNullifiersTrunkStateResponse - -typedef GPB_ENUM(GetNullifiersTrunkStateResponse_FieldNumber) { - GetNullifiersTrunkStateResponse_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetNullifiersTrunkStateResponse_Version_OneOfCase) { - GetNullifiersTrunkStateResponse_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetNullifiersTrunkStateResponse_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetNullifiersTrunkStateResponse : GPBMessage - -@property(nonatomic, readonly) GetNullifiersTrunkStateResponse_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetNullifiersTrunkStateResponse_ClearVersionOneOfCase(GetNullifiersTrunkStateResponse *message); - -#pragma mark - GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 - -typedef GPB_ENUM(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0_FieldNumber) { - GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0_FieldNumber_Proof = 2, - GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0_FieldNumber_Metadata = 3, -}; - -GPB_FINAL @interface GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 : GPBMessage - -@property(nonatomic, readwrite, strong, null_resettable) Proof *proof; -/** Test to see if @c proof has been set. */ -@property(nonatomic, readwrite) BOOL hasProof; - -@property(nonatomic, readwrite, strong, null_resettable) ResponseMetadata *metadata; -/** Test to see if @c metadata has been set. */ -@property(nonatomic, readwrite) BOOL hasMetadata; - -@end - -#pragma mark - GetNullifiersBranchStateRequest - -typedef GPB_ENUM(GetNullifiersBranchStateRequest_FieldNumber) { - GetNullifiersBranchStateRequest_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetNullifiersBranchStateRequest_Version_OneOfCase) { - GetNullifiersBranchStateRequest_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetNullifiersBranchStateRequest_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetNullifiersBranchStateRequest : GPBMessage - -@property(nonatomic, readonly) GetNullifiersBranchStateRequest_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetNullifiersBranchStateRequest_ClearVersionOneOfCase(GetNullifiersBranchStateRequest *message); - -#pragma mark - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 - -typedef GPB_ENUM(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber) { - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_PoolType = 1, - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_PoolIdentifier = 2, - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_Key = 3, - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_Depth = 4, - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_CheckpointHeight = 5, -}; - -GPB_FINAL @interface GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 : GPBMessage - -@property(nonatomic, readwrite) uint32_t poolType; - -@property(nonatomic, readwrite, copy, null_resettable) NSData *poolIdentifier; - -@property(nonatomic, readwrite, copy, null_resettable) NSData *key; - -@property(nonatomic, readwrite) uint32_t depth; - -@property(nonatomic, readwrite) uint64_t checkpointHeight; - -@end - -#pragma mark - GetNullifiersBranchStateResponse - -typedef GPB_ENUM(GetNullifiersBranchStateResponse_FieldNumber) { - GetNullifiersBranchStateResponse_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetNullifiersBranchStateResponse_Version_OneOfCase) { - GetNullifiersBranchStateResponse_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetNullifiersBranchStateResponse_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetNullifiersBranchStateResponse : GPBMessage - -@property(nonatomic, readonly) GetNullifiersBranchStateResponse_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetNullifiersBranchStateResponse_ClearVersionOneOfCase(GetNullifiersBranchStateResponse *message); - -#pragma mark - GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 - -typedef GPB_ENUM(GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0_FieldNumber) { - GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0_FieldNumber_MerkProof = 2, -}; - -GPB_FINAL @interface GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 : GPBMessage - -@property(nonatomic, readwrite, copy, null_resettable) NSData *merkProof; - -@end - -#pragma mark - BlockNullifierChanges - -typedef GPB_ENUM(BlockNullifierChanges_FieldNumber) { - BlockNullifierChanges_FieldNumber_BlockHeight = 1, - BlockNullifierChanges_FieldNumber_NullifiersArray = 2, -}; - -GPB_FINAL @interface BlockNullifierChanges : GPBMessage - -@property(nonatomic, readwrite) uint64_t blockHeight; - -/** Each is 32 bytes */ -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *nullifiersArray; -/** The number of items in @c nullifiersArray without causing the array to be created. */ -@property(nonatomic, readonly) NSUInteger nullifiersArray_Count; - -@end - -#pragma mark - NullifierUpdateEntries - -typedef GPB_ENUM(NullifierUpdateEntries_FieldNumber) { - NullifierUpdateEntries_FieldNumber_BlockChangesArray = 1, -}; - -GPB_FINAL @interface NullifierUpdateEntries : GPBMessage - -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *blockChangesArray; -/** The number of items in @c blockChangesArray without causing the array to be created. */ -@property(nonatomic, readonly) NSUInteger blockChangesArray_Count; - -@end - -#pragma mark - GetRecentNullifierChangesRequest - -typedef GPB_ENUM(GetRecentNullifierChangesRequest_FieldNumber) { - GetRecentNullifierChangesRequest_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetRecentNullifierChangesRequest_Version_OneOfCase) { - GetRecentNullifierChangesRequest_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentNullifierChangesRequest_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetRecentNullifierChangesRequest : GPBMessage - -@property(nonatomic, readonly) GetRecentNullifierChangesRequest_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetRecentNullifierChangesRequest_ClearVersionOneOfCase(GetRecentNullifierChangesRequest *message); - -#pragma mark - GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 - -typedef GPB_ENUM(GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0_FieldNumber) { - GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0_FieldNumber_StartHeight = 1, - GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0_FieldNumber_Prove = 2, -}; - -GPB_FINAL @interface GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 : GPBMessage - -@property(nonatomic, readwrite) uint64_t startHeight; - -@property(nonatomic, readwrite) BOOL prove; - -@end - -#pragma mark - GetRecentNullifierChangesResponse - -typedef GPB_ENUM(GetRecentNullifierChangesResponse_FieldNumber) { - GetRecentNullifierChangesResponse_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetRecentNullifierChangesResponse_Version_OneOfCase) { - GetRecentNullifierChangesResponse_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentNullifierChangesResponse_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetRecentNullifierChangesResponse : GPBMessage - -@property(nonatomic, readonly) GetRecentNullifierChangesResponse_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetRecentNullifierChangesResponse_ClearVersionOneOfCase(GetRecentNullifierChangesResponse *message); - -#pragma mark - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 - -typedef GPB_ENUM(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber) { - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_NullifierUpdateEntries = 1, - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_Proof = 2, - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_Metadata = 3, -}; - -typedef GPB_ENUM(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_Result_OneOfCase) { - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_Result_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_Result_OneOfCase_NullifierUpdateEntries = 1, - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_Result_OneOfCase_Proof = 2, -}; - -GPB_FINAL @interface GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 : GPBMessage - -@property(nonatomic, readonly) GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_Result_OneOfCase resultOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) NullifierUpdateEntries *nullifierUpdateEntries; - -@property(nonatomic, readwrite, strong, null_resettable) Proof *proof; - -@property(nonatomic, readwrite, strong, null_resettable) ResponseMetadata *metadata; -/** Test to see if @c metadata has been set. */ -@property(nonatomic, readwrite) BOOL hasMetadata; - -@end - -/** - * Clears whatever value was set for the oneof 'result'. - **/ -void GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_ClearResultOneOfCase(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 *message); - -#pragma mark - CompactedBlockNullifierChanges - -typedef GPB_ENUM(CompactedBlockNullifierChanges_FieldNumber) { - CompactedBlockNullifierChanges_FieldNumber_StartBlockHeight = 1, - CompactedBlockNullifierChanges_FieldNumber_EndBlockHeight = 2, - CompactedBlockNullifierChanges_FieldNumber_NullifiersArray = 3, -}; - -GPB_FINAL @interface CompactedBlockNullifierChanges : GPBMessage - -@property(nonatomic, readwrite) uint64_t startBlockHeight; - -@property(nonatomic, readwrite) uint64_t endBlockHeight; - -/** Each is 32 bytes */ -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *nullifiersArray; -/** The number of items in @c nullifiersArray without causing the array to be created. */ -@property(nonatomic, readonly) NSUInteger nullifiersArray_Count; - -@end - -#pragma mark - CompactedNullifierUpdateEntries - -typedef GPB_ENUM(CompactedNullifierUpdateEntries_FieldNumber) { - CompactedNullifierUpdateEntries_FieldNumber_CompactedBlockChangesArray = 1, -}; - -GPB_FINAL @interface CompactedNullifierUpdateEntries : GPBMessage - -@property(nonatomic, readwrite, strong, null_resettable) NSMutableArray *compactedBlockChangesArray; -/** The number of items in @c compactedBlockChangesArray without causing the array to be created. */ -@property(nonatomic, readonly) NSUInteger compactedBlockChangesArray_Count; - -@end - -#pragma mark - GetRecentCompactedNullifierChangesRequest - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesRequest_FieldNumber) { - GetRecentCompactedNullifierChangesRequest_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesRequest_Version_OneOfCase) { - GetRecentCompactedNullifierChangesRequest_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentCompactedNullifierChangesRequest_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetRecentCompactedNullifierChangesRequest : GPBMessage - -@property(nonatomic, readonly) GetRecentCompactedNullifierChangesRequest_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetRecentCompactedNullifierChangesRequest_ClearVersionOneOfCase(GetRecentCompactedNullifierChangesRequest *message); - -#pragma mark - GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0_FieldNumber) { - GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0_FieldNumber_StartBlockHeight = 1, - GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0_FieldNumber_Prove = 2, -}; - -GPB_FINAL @interface GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 : GPBMessage - -@property(nonatomic, readwrite) uint64_t startBlockHeight; - -@property(nonatomic, readwrite) BOOL prove; - -@end - -#pragma mark - GetRecentCompactedNullifierChangesResponse - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesResponse_FieldNumber) { - GetRecentCompactedNullifierChangesResponse_FieldNumber_V0 = 1, -}; - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesResponse_Version_OneOfCase) { - GetRecentCompactedNullifierChangesResponse_Version_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentCompactedNullifierChangesResponse_Version_OneOfCase_V0 = 1, -}; - -GPB_FINAL @interface GetRecentCompactedNullifierChangesResponse : GPBMessage - -@property(nonatomic, readonly) GetRecentCompactedNullifierChangesResponse_Version_OneOfCase versionOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 *v0; - -@end - -/** - * Clears whatever value was set for the oneof 'version'. - **/ -void GetRecentCompactedNullifierChangesResponse_ClearVersionOneOfCase(GetRecentCompactedNullifierChangesResponse *message); - -#pragma mark - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber) { - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_CompactedNullifierUpdateEntries = 1, - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_Proof = 2, - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_Metadata = 3, -}; - -typedef GPB_ENUM(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_Result_OneOfCase) { - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_Result_OneOfCase_GPBUnsetOneOfCase = 0, - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_Result_OneOfCase_CompactedNullifierUpdateEntries = 1, - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_Result_OneOfCase_Proof = 2, -}; - -GPB_FINAL @interface GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 : GPBMessage - -@property(nonatomic, readonly) GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_Result_OneOfCase resultOneOfCase; - -@property(nonatomic, readwrite, strong, null_resettable) CompactedNullifierUpdateEntries *compactedNullifierUpdateEntries; - -@property(nonatomic, readwrite, strong, null_resettable) Proof *proof; - -@property(nonatomic, readwrite, strong, null_resettable) ResponseMetadata *metadata; -/** Test to see if @c metadata has been set. */ -@property(nonatomic, readwrite) BOOL hasMetadata; - -@end - -/** - * Clears whatever value was set for the oneof 'result'. - **/ -void GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_ClearResultOneOfCase(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 *message); - NS_ASSUME_NONNULL_END CF_EXTERN_C_END diff --git a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.m b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.m index 38a69366066..60bb3a4017a 100644 --- a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.m +++ b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbobjc.m @@ -36,12 +36,9 @@ GPBObjCClassDeclaration(BalanceAndNonce); GPBObjCClassDeclaration(BlockAddressBalanceChanges); GPBObjCClassDeclaration(BlockHeightCreditEntry); -GPBObjCClassDeclaration(BlockNullifierChanges); GPBObjCClassDeclaration(CompactedAddressBalanceChange); GPBObjCClassDeclaration(CompactedAddressBalanceUpdateEntries); GPBObjCClassDeclaration(CompactedBlockAddressBalanceChanges); -GPBObjCClassDeclaration(CompactedBlockNullifierChanges); -GPBObjCClassDeclaration(CompactedNullifierUpdateEntries); GPBObjCClassDeclaration(GPBBytesValue); GPBObjCClassDeclaration(GPBUInt32Value); GPBObjCClassDeclaration(GetAddressInfoRequest); @@ -293,14 +290,6 @@ GPBObjCClassDeclaration(GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0); GPBObjCClassDeclaration(GetMostRecentShieldedAnchorResponse); GPBObjCClassDeclaration(GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0); -GPBObjCClassDeclaration(GetNullifiersBranchStateRequest); -GPBObjCClassDeclaration(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0); -GPBObjCClassDeclaration(GetNullifiersBranchStateResponse); -GPBObjCClassDeclaration(GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0); -GPBObjCClassDeclaration(GetNullifiersTrunkStateRequest); -GPBObjCClassDeclaration(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0); -GPBObjCClassDeclaration(GetNullifiersTrunkStateResponse); -GPBObjCClassDeclaration(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0); GPBObjCClassDeclaration(GetPathElementsRequest); GPBObjCClassDeclaration(GetPathElementsRequest_GetPathElementsRequestV0); GPBObjCClassDeclaration(GetPathElementsResponse); @@ -330,14 +319,6 @@ GPBObjCClassDeclaration(GetRecentCompactedAddressBalanceChangesRequest_GetRecentCompactedAddressBalanceChangesRequestV0); GPBObjCClassDeclaration(GetRecentCompactedAddressBalanceChangesResponse); GPBObjCClassDeclaration(GetRecentCompactedAddressBalanceChangesResponse_GetRecentCompactedAddressBalanceChangesResponseV0); -GPBObjCClassDeclaration(GetRecentCompactedNullifierChangesRequest); -GPBObjCClassDeclaration(GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0); -GPBObjCClassDeclaration(GetRecentCompactedNullifierChangesResponse); -GPBObjCClassDeclaration(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0); -GPBObjCClassDeclaration(GetRecentNullifierChangesRequest); -GPBObjCClassDeclaration(GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0); -GPBObjCClassDeclaration(GetRecentNullifierChangesResponse); -GPBObjCClassDeclaration(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0); GPBObjCClassDeclaration(GetShieldedAnchorsRequest); GPBObjCClassDeclaration(GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0); GPBObjCClassDeclaration(GetShieldedAnchorsResponse); @@ -428,7 +409,6 @@ GPBObjCClassDeclaration(GetVotePollsByEndDateResponse_GetVotePollsByEndDateResponseV0_SerializedVotePollsByTimestamp); GPBObjCClassDeclaration(GetVotePollsByEndDateResponse_GetVotePollsByEndDateResponseV0_SerializedVotePollsByTimestamps); GPBObjCClassDeclaration(KeyRequestType); -GPBObjCClassDeclaration(NullifierUpdateEntries); GPBObjCClassDeclaration(Proof); GPBObjCClassDeclaration(ResponseMetadata); GPBObjCClassDeclaration(SearchKey); @@ -26412,1197 +26392,6 @@ + (GPBDescriptor *)descriptor { @end -#pragma mark - GetNullifiersTrunkStateRequest - -@implementation GetNullifiersTrunkStateRequest - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetNullifiersTrunkStateRequest__storage_ { - uint32_t _has_storage_[2]; - GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 *v0; -} GetNullifiersTrunkStateRequest__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0), - .number = GetNullifiersTrunkStateRequest_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateRequest__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersTrunkStateRequest class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersTrunkStateRequest__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetNullifiersTrunkStateRequest_ClearVersionOneOfCase(GetNullifiersTrunkStateRequest *message) { - GPBDescriptor *descriptor = [GetNullifiersTrunkStateRequest descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 - -@implementation GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 - -@dynamic poolType; -@dynamic poolIdentifier; - -typedef struct GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0__storage_ { - uint32_t _has_storage_[1]; - uint32_t poolType; - NSData *poolIdentifier; -} GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "poolType", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0_FieldNumber_PoolType, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0__storage_, poolType), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt32, - }, - { - .name = "poolIdentifier", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0_FieldNumber_PoolIdentifier, - .hasIndex = 1, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0__storage_, poolIdentifier), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBytes, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersTrunkStateRequest_GetNullifiersTrunkStateRequestV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetNullifiersTrunkStateRequest)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetNullifiersTrunkStateResponse - -@implementation GetNullifiersTrunkStateResponse - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetNullifiersTrunkStateResponse__storage_ { - uint32_t _has_storage_[2]; - GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 *v0; -} GetNullifiersTrunkStateResponse__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0), - .number = GetNullifiersTrunkStateResponse_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateResponse__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersTrunkStateResponse class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersTrunkStateResponse__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetNullifiersTrunkStateResponse_ClearVersionOneOfCase(GetNullifiersTrunkStateResponse *message) { - GPBDescriptor *descriptor = [GetNullifiersTrunkStateResponse descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 - -@implementation GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 - -@dynamic hasProof, proof; -@dynamic hasMetadata, metadata; - -typedef struct GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0__storage_ { - uint32_t _has_storage_[1]; - Proof *proof; - ResponseMetadata *metadata; -} GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "proof", - .dataTypeSpecific.clazz = GPBObjCClass(Proof), - .number = GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0_FieldNumber_Proof, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0__storage_, proof), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - { - .name = "metadata", - .dataTypeSpecific.clazz = GPBObjCClass(ResponseMetadata), - .number = GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0_FieldNumber_Metadata, - .hasIndex = 1, - .offset = (uint32_t)offsetof(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0__storage_, metadata), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersTrunkStateResponse_GetNullifiersTrunkStateResponseV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetNullifiersTrunkStateResponse)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetNullifiersBranchStateRequest - -@implementation GetNullifiersBranchStateRequest - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetNullifiersBranchStateRequest__storage_ { - uint32_t _has_storage_[2]; - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 *v0; -} GetNullifiersBranchStateRequest__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0), - .number = GetNullifiersBranchStateRequest_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersBranchStateRequest class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersBranchStateRequest__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetNullifiersBranchStateRequest_ClearVersionOneOfCase(GetNullifiersBranchStateRequest *message) { - GPBDescriptor *descriptor = [GetNullifiersBranchStateRequest descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 - -@implementation GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 - -@dynamic poolType; -@dynamic poolIdentifier; -@dynamic key; -@dynamic depth; -@dynamic checkpointHeight; - -typedef struct GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_ { - uint32_t _has_storage_[1]; - uint32_t poolType; - uint32_t depth; - NSData *poolIdentifier; - NSData *key; - uint64_t checkpointHeight; -} GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "poolType", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_PoolType, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_, poolType), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt32, - }, - { - .name = "poolIdentifier", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_PoolIdentifier, - .hasIndex = 1, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_, poolIdentifier), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBytes, - }, - { - .name = "key", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_Key, - .hasIndex = 2, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_, key), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBytes, - }, - { - .name = "depth", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_Depth, - .hasIndex = 3, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_, depth), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt32, - }, - { - .name = "checkpointHeight", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0_FieldNumber_CheckpointHeight, - .hasIndex = 4, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_, checkpointHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersBranchStateRequest_GetNullifiersBranchStateRequestV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetNullifiersBranchStateRequest)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetNullifiersBranchStateResponse - -@implementation GetNullifiersBranchStateResponse - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetNullifiersBranchStateResponse__storage_ { - uint32_t _has_storage_[2]; - GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 *v0; -} GetNullifiersBranchStateResponse__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0), - .number = GetNullifiersBranchStateResponse_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateResponse__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersBranchStateResponse class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersBranchStateResponse__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetNullifiersBranchStateResponse_ClearVersionOneOfCase(GetNullifiersBranchStateResponse *message) { - GPBDescriptor *descriptor = [GetNullifiersBranchStateResponse descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 - -@implementation GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 - -@dynamic merkProof; - -typedef struct GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0__storage_ { - uint32_t _has_storage_[1]; - NSData *merkProof; -} GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "merkProof", - .dataTypeSpecific.clazz = Nil, - .number = GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0_FieldNumber_MerkProof, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0__storage_, merkProof), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBytes, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetNullifiersBranchStateResponse_GetNullifiersBranchStateResponseV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetNullifiersBranchStateResponse)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - BlockNullifierChanges - -@implementation BlockNullifierChanges - -@dynamic blockHeight; -@dynamic nullifiersArray, nullifiersArray_Count; - -typedef struct BlockNullifierChanges__storage_ { - uint32_t _has_storage_[1]; - NSMutableArray *nullifiersArray; - uint64_t blockHeight; -} BlockNullifierChanges__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "blockHeight", - .dataTypeSpecific.clazz = Nil, - .number = BlockNullifierChanges_FieldNumber_BlockHeight, - .hasIndex = 0, - .offset = (uint32_t)offsetof(BlockNullifierChanges__storage_, blockHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - { - .name = "nullifiersArray", - .dataTypeSpecific.clazz = Nil, - .number = BlockNullifierChanges_FieldNumber_NullifiersArray, - .hasIndex = GPBNoHasBit, - .offset = (uint32_t)offsetof(BlockNullifierChanges__storage_, nullifiersArray), - .flags = GPBFieldRepeated, - .dataType = GPBDataTypeBytes, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[BlockNullifierChanges class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(BlockNullifierChanges__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - NullifierUpdateEntries - -@implementation NullifierUpdateEntries - -@dynamic blockChangesArray, blockChangesArray_Count; - -typedef struct NullifierUpdateEntries__storage_ { - uint32_t _has_storage_[1]; - NSMutableArray *blockChangesArray; -} NullifierUpdateEntries__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "blockChangesArray", - .dataTypeSpecific.clazz = GPBObjCClass(BlockNullifierChanges), - .number = NullifierUpdateEntries_FieldNumber_BlockChangesArray, - .hasIndex = GPBNoHasBit, - .offset = (uint32_t)offsetof(NullifierUpdateEntries__storage_, blockChangesArray), - .flags = GPBFieldRepeated, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[NullifierUpdateEntries class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(NullifierUpdateEntries__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetRecentNullifierChangesRequest - -@implementation GetRecentNullifierChangesRequest - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetRecentNullifierChangesRequest__storage_ { - uint32_t _has_storage_[2]; - GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 *v0; -} GetRecentNullifierChangesRequest__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0), - .number = GetRecentNullifierChangesRequest_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesRequest__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentNullifierChangesRequest class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentNullifierChangesRequest__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentNullifierChangesRequest_ClearVersionOneOfCase(GetRecentNullifierChangesRequest *message) { - GPBDescriptor *descriptor = [GetRecentNullifierChangesRequest descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 - -@implementation GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 - -@dynamic startHeight; -@dynamic prove; - -typedef struct GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0__storage_ { - uint32_t _has_storage_[1]; - uint64_t startHeight; -} GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "startHeight", - .dataTypeSpecific.clazz = Nil, - .number = GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0_FieldNumber_StartHeight, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0__storage_, startHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - { - .name = "prove", - .dataTypeSpecific.clazz = Nil, - .number = GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0_FieldNumber_Prove, - .hasIndex = 1, - .offset = 2, // Stored in _has_storage_ to save space. - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBool, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentNullifierChangesRequest_GetRecentNullifierChangesRequestV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetRecentNullifierChangesRequest)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetRecentNullifierChangesResponse - -@implementation GetRecentNullifierChangesResponse - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetRecentNullifierChangesResponse__storage_ { - uint32_t _has_storage_[2]; - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 *v0; -} GetRecentNullifierChangesResponse__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0), - .number = GetRecentNullifierChangesResponse_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesResponse__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentNullifierChangesResponse class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentNullifierChangesResponse__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentNullifierChangesResponse_ClearVersionOneOfCase(GetRecentNullifierChangesResponse *message) { - GPBDescriptor *descriptor = [GetRecentNullifierChangesResponse descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 - -@implementation GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 - -@dynamic resultOneOfCase; -@dynamic nullifierUpdateEntries; -@dynamic proof; -@dynamic hasMetadata, metadata; - -typedef struct GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_ { - uint32_t _has_storage_[2]; - NullifierUpdateEntries *nullifierUpdateEntries; - Proof *proof; - ResponseMetadata *metadata; -} GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "nullifierUpdateEntries", - .dataTypeSpecific.clazz = GPBObjCClass(NullifierUpdateEntries), - .number = GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_NullifierUpdateEntries, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_, nullifierUpdateEntries), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - { - .name = "proof", - .dataTypeSpecific.clazz = GPBObjCClass(Proof), - .number = GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_Proof, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_, proof), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - { - .name = "metadata", - .dataTypeSpecific.clazz = GPBObjCClass(ResponseMetadata), - .number = GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_FieldNumber_Metadata, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_, metadata), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "result", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetRecentNullifierChangesResponse)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0_ClearResultOneOfCase(GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 *message) { - GPBDescriptor *descriptor = [GetRecentNullifierChangesResponse_GetRecentNullifierChangesResponseV0 descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - CompactedBlockNullifierChanges - -@implementation CompactedBlockNullifierChanges - -@dynamic startBlockHeight; -@dynamic endBlockHeight; -@dynamic nullifiersArray, nullifiersArray_Count; - -typedef struct CompactedBlockNullifierChanges__storage_ { - uint32_t _has_storage_[1]; - NSMutableArray *nullifiersArray; - uint64_t startBlockHeight; - uint64_t endBlockHeight; -} CompactedBlockNullifierChanges__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "startBlockHeight", - .dataTypeSpecific.clazz = Nil, - .number = CompactedBlockNullifierChanges_FieldNumber_StartBlockHeight, - .hasIndex = 0, - .offset = (uint32_t)offsetof(CompactedBlockNullifierChanges__storage_, startBlockHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - { - .name = "endBlockHeight", - .dataTypeSpecific.clazz = Nil, - .number = CompactedBlockNullifierChanges_FieldNumber_EndBlockHeight, - .hasIndex = 1, - .offset = (uint32_t)offsetof(CompactedBlockNullifierChanges__storage_, endBlockHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - { - .name = "nullifiersArray", - .dataTypeSpecific.clazz = Nil, - .number = CompactedBlockNullifierChanges_FieldNumber_NullifiersArray, - .hasIndex = GPBNoHasBit, - .offset = (uint32_t)offsetof(CompactedBlockNullifierChanges__storage_, nullifiersArray), - .flags = GPBFieldRepeated, - .dataType = GPBDataTypeBytes, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[CompactedBlockNullifierChanges class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(CompactedBlockNullifierChanges__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - CompactedNullifierUpdateEntries - -@implementation CompactedNullifierUpdateEntries - -@dynamic compactedBlockChangesArray, compactedBlockChangesArray_Count; - -typedef struct CompactedNullifierUpdateEntries__storage_ { - uint32_t _has_storage_[1]; - NSMutableArray *compactedBlockChangesArray; -} CompactedNullifierUpdateEntries__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "compactedBlockChangesArray", - .dataTypeSpecific.clazz = GPBObjCClass(CompactedBlockNullifierChanges), - .number = CompactedNullifierUpdateEntries_FieldNumber_CompactedBlockChangesArray, - .hasIndex = GPBNoHasBit, - .offset = (uint32_t)offsetof(CompactedNullifierUpdateEntries__storage_, compactedBlockChangesArray), - .flags = GPBFieldRepeated, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[CompactedNullifierUpdateEntries class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(CompactedNullifierUpdateEntries__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetRecentCompactedNullifierChangesRequest - -@implementation GetRecentCompactedNullifierChangesRequest - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetRecentCompactedNullifierChangesRequest__storage_ { - uint32_t _has_storage_[2]; - GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 *v0; -} GetRecentCompactedNullifierChangesRequest__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0), - .number = GetRecentCompactedNullifierChangesRequest_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesRequest__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentCompactedNullifierChangesRequest class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentCompactedNullifierChangesRequest__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentCompactedNullifierChangesRequest_ClearVersionOneOfCase(GetRecentCompactedNullifierChangesRequest *message) { - GPBDescriptor *descriptor = [GetRecentCompactedNullifierChangesRequest descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 - -@implementation GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 - -@dynamic startBlockHeight; -@dynamic prove; - -typedef struct GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0__storage_ { - uint32_t _has_storage_[1]; - uint64_t startBlockHeight; -} GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "startBlockHeight", - .dataTypeSpecific.clazz = Nil, - .number = GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0_FieldNumber_StartBlockHeight, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0__storage_, startBlockHeight), - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeUInt64, - }, - { - .name = "prove", - .dataTypeSpecific.clazz = Nil, - .number = GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0_FieldNumber_Prove, - .hasIndex = 1, - .offset = 2, // Stored in _has_storage_ to save space. - .flags = (GPBFieldFlags)(GPBFieldOptional | GPBFieldClearHasIvarOnZero), - .dataType = GPBDataTypeBool, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentCompactedNullifierChangesRequest_GetRecentCompactedNullifierChangesRequestV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetRecentCompactedNullifierChangesRequest)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -#pragma mark - GetRecentCompactedNullifierChangesResponse - -@implementation GetRecentCompactedNullifierChangesResponse - -@dynamic versionOneOfCase; -@dynamic v0; - -typedef struct GetRecentCompactedNullifierChangesResponse__storage_ { - uint32_t _has_storage_[2]; - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 *v0; -} GetRecentCompactedNullifierChangesResponse__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "v0", - .dataTypeSpecific.clazz = GPBObjCClass(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0), - .number = GetRecentCompactedNullifierChangesResponse_FieldNumber_V0, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesResponse__storage_, v0), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentCompactedNullifierChangesResponse class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentCompactedNullifierChangesResponse__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "version", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentCompactedNullifierChangesResponse_ClearVersionOneOfCase(GetRecentCompactedNullifierChangesResponse *message) { - GPBDescriptor *descriptor = [GetRecentCompactedNullifierChangesResponse descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} -#pragma mark - GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 - -@implementation GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 - -@dynamic resultOneOfCase; -@dynamic compactedNullifierUpdateEntries; -@dynamic proof; -@dynamic hasMetadata, metadata; - -typedef struct GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_ { - uint32_t _has_storage_[2]; - CompactedNullifierUpdateEntries *compactedNullifierUpdateEntries; - Proof *proof; - ResponseMetadata *metadata; -} GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_; - -// This method is threadsafe because it is initially called -// in +initialize for each subclass. -+ (GPBDescriptor *)descriptor { - static GPBDescriptor *descriptor = nil; - if (!descriptor) { - static GPBMessageFieldDescription fields[] = { - { - .name = "compactedNullifierUpdateEntries", - .dataTypeSpecific.clazz = GPBObjCClass(CompactedNullifierUpdateEntries), - .number = GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_CompactedNullifierUpdateEntries, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_, compactedNullifierUpdateEntries), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - { - .name = "proof", - .dataTypeSpecific.clazz = GPBObjCClass(Proof), - .number = GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_Proof, - .hasIndex = -1, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_, proof), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - { - .name = "metadata", - .dataTypeSpecific.clazz = GPBObjCClass(ResponseMetadata), - .number = GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_FieldNumber_Metadata, - .hasIndex = 0, - .offset = (uint32_t)offsetof(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_, metadata), - .flags = GPBFieldOptional, - .dataType = GPBDataTypeMessage, - }, - }; - GPBDescriptor *localDescriptor = - [GPBDescriptor allocDescriptorForClass:[GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 class] - rootClass:[PlatformRoot class] - file:PlatformRoot_FileDescriptor() - fields:fields - fieldCount:(uint32_t)(sizeof(fields) / sizeof(GPBMessageFieldDescription)) - storageSize:sizeof(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0__storage_) - flags:(GPBDescriptorInitializationFlags)(GPBDescriptorInitializationFlag_UsesClassRefs | GPBDescriptorInitializationFlag_Proto3OptionalKnown)]; - static const char *oneofs[] = { - "result", - }; - [localDescriptor setupOneofs:oneofs - count:(uint32_t)(sizeof(oneofs) / sizeof(char*)) - firstHasIndex:-1]; - [localDescriptor setupContainingMessageClass:GPBObjCClass(GetRecentCompactedNullifierChangesResponse)]; - #if defined(DEBUG) && DEBUG - NSAssert(descriptor == nil, @"Startup recursed!"); - #endif // DEBUG - descriptor = localDescriptor; - } - return descriptor; -} - -@end - -void GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0_ClearResultOneOfCase(GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 *message) { - GPBDescriptor *descriptor = [GetRecentCompactedNullifierChangesResponse_GetRecentCompactedNullifierChangesResponseV0 descriptor]; - GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0]; - GPBClearOneof(message, oneof); -} #pragma clang diagnostic pop diff --git a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.h b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.h index a866b2d77ec..80eb95850f4 100644 --- a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.h +++ b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.h @@ -91,10 +91,6 @@ @class GetIdentityTokenInfosResponse; @class GetMostRecentShieldedAnchorRequest; @class GetMostRecentShieldedAnchorResponse; -@class GetNullifiersBranchStateRequest; -@class GetNullifiersBranchStateResponse; -@class GetNullifiersTrunkStateRequest; -@class GetNullifiersTrunkStateResponse; @class GetPathElementsRequest; @class GetPathElementsResponse; @class GetPrefundedSpecializedBalanceRequest; @@ -107,10 +103,6 @@ @class GetRecentAddressBalanceChangesResponse; @class GetRecentCompactedAddressBalanceChangesRequest; @class GetRecentCompactedAddressBalanceChangesResponse; -@class GetRecentCompactedNullifierChangesRequest; -@class GetRecentCompactedNullifierChangesResponse; -@class GetRecentNullifierChangesRequest; -@class GetRecentNullifierChangesResponse; @class GetShieldedAnchorsRequest; @class GetShieldedAnchorsResponse; @class GetShieldedEncryptedNotesRequest; @@ -432,22 +424,6 @@ NS_ASSUME_NONNULL_BEGIN - (GRPCUnaryProtoCall *)getShieldedNullifiersWithMessage:(GetShieldedNullifiersRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions; -#pragma mark getNullifiersTrunkState(GetNullifiersTrunkStateRequest) returns (GetNullifiersTrunkStateResponse) - -- (GRPCUnaryProtoCall *)getNullifiersTrunkStateWithMessage:(GetNullifiersTrunkStateRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions; - -#pragma mark getNullifiersBranchState(GetNullifiersBranchStateRequest) returns (GetNullifiersBranchStateResponse) - -- (GRPCUnaryProtoCall *)getNullifiersBranchStateWithMessage:(GetNullifiersBranchStateRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions; - -#pragma mark getRecentNullifierChanges(GetRecentNullifierChangesRequest) returns (GetRecentNullifierChangesResponse) - -- (GRPCUnaryProtoCall *)getRecentNullifierChangesWithMessage:(GetRecentNullifierChangesRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions; - -#pragma mark getRecentCompactedNullifierChanges(GetRecentCompactedNullifierChangesRequest) returns (GetRecentCompactedNullifierChangesResponse) - -- (GRPCUnaryProtoCall *)getRecentCompactedNullifierChangesWithMessage:(GetRecentCompactedNullifierChangesRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions; - @end /** @@ -946,34 +922,6 @@ NS_ASSUME_NONNULL_BEGIN - (GRPCProtoCall *)RPCTogetShieldedNullifiersWithRequest:(GetShieldedNullifiersRequest *)request handler:(void(^)(GetShieldedNullifiersResponse *_Nullable response, NSError *_Nullable error))handler; -#pragma mark getNullifiersTrunkState(GetNullifiersTrunkStateRequest) returns (GetNullifiersTrunkStateResponse) - -- (void)getNullifiersTrunkStateWithRequest:(GetNullifiersTrunkStateRequest *)request handler:(void(^)(GetNullifiersTrunkStateResponse *_Nullable response, NSError *_Nullable error))handler; - -- (GRPCProtoCall *)RPCTogetNullifiersTrunkStateWithRequest:(GetNullifiersTrunkStateRequest *)request handler:(void(^)(GetNullifiersTrunkStateResponse *_Nullable response, NSError *_Nullable error))handler; - - -#pragma mark getNullifiersBranchState(GetNullifiersBranchStateRequest) returns (GetNullifiersBranchStateResponse) - -- (void)getNullifiersBranchStateWithRequest:(GetNullifiersBranchStateRequest *)request handler:(void(^)(GetNullifiersBranchStateResponse *_Nullable response, NSError *_Nullable error))handler; - -- (GRPCProtoCall *)RPCTogetNullifiersBranchStateWithRequest:(GetNullifiersBranchStateRequest *)request handler:(void(^)(GetNullifiersBranchStateResponse *_Nullable response, NSError *_Nullable error))handler; - - -#pragma mark getRecentNullifierChanges(GetRecentNullifierChangesRequest) returns (GetRecentNullifierChangesResponse) - -- (void)getRecentNullifierChangesWithRequest:(GetRecentNullifierChangesRequest *)request handler:(void(^)(GetRecentNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler; - -- (GRPCProtoCall *)RPCTogetRecentNullifierChangesWithRequest:(GetRecentNullifierChangesRequest *)request handler:(void(^)(GetRecentNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler; - - -#pragma mark getRecentCompactedNullifierChanges(GetRecentCompactedNullifierChangesRequest) returns (GetRecentCompactedNullifierChangesResponse) - -- (void)getRecentCompactedNullifierChangesWithRequest:(GetRecentCompactedNullifierChangesRequest *)request handler:(void(^)(GetRecentCompactedNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler; - -- (GRPCProtoCall *)RPCTogetRecentCompactedNullifierChangesWithRequest:(GetRecentCompactedNullifierChangesRequest *)request handler:(void(^)(GetRecentCompactedNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler; - - @end diff --git a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.m b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.m index 34854614948..393fbb73018 100644 --- a/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.m +++ b/packages/dapi-grpc/clients/platform/v0/objective-c/Platform.pbrpc.m @@ -1361,85 +1361,5 @@ - (GRPCUnaryProtoCall *)getShieldedNullifiersWithMessage:(GetShieldedNullifiersR responseClass:[GetShieldedNullifiersResponse class]]; } -#pragma mark getNullifiersTrunkState(GetNullifiersTrunkStateRequest) returns (GetNullifiersTrunkStateResponse) - -- (void)getNullifiersTrunkStateWithRequest:(GetNullifiersTrunkStateRequest *)request handler:(void(^)(GetNullifiersTrunkStateResponse *_Nullable response, NSError *_Nullable error))handler{ - [[self RPCTogetNullifiersTrunkStateWithRequest:request handler:handler] start]; -} -// Returns a not-yet-started RPC object. -- (GRPCProtoCall *)RPCTogetNullifiersTrunkStateWithRequest:(GetNullifiersTrunkStateRequest *)request handler:(void(^)(GetNullifiersTrunkStateResponse *_Nullable response, NSError *_Nullable error))handler{ - return [self RPCToMethod:@"getNullifiersTrunkState" - requestsWriter:[GRXWriter writerWithValue:request] - responseClass:[GetNullifiersTrunkStateResponse class] - responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]]; -} -- (GRPCUnaryProtoCall *)getNullifiersTrunkStateWithMessage:(GetNullifiersTrunkStateRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions { - return [self RPCToMethod:@"getNullifiersTrunkState" - message:message - responseHandler:handler - callOptions:callOptions - responseClass:[GetNullifiersTrunkStateResponse class]]; -} - -#pragma mark getNullifiersBranchState(GetNullifiersBranchStateRequest) returns (GetNullifiersBranchStateResponse) - -- (void)getNullifiersBranchStateWithRequest:(GetNullifiersBranchStateRequest *)request handler:(void(^)(GetNullifiersBranchStateResponse *_Nullable response, NSError *_Nullable error))handler{ - [[self RPCTogetNullifiersBranchStateWithRequest:request handler:handler] start]; -} -// Returns a not-yet-started RPC object. -- (GRPCProtoCall *)RPCTogetNullifiersBranchStateWithRequest:(GetNullifiersBranchStateRequest *)request handler:(void(^)(GetNullifiersBranchStateResponse *_Nullable response, NSError *_Nullable error))handler{ - return [self RPCToMethod:@"getNullifiersBranchState" - requestsWriter:[GRXWriter writerWithValue:request] - responseClass:[GetNullifiersBranchStateResponse class] - responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]]; -} -- (GRPCUnaryProtoCall *)getNullifiersBranchStateWithMessage:(GetNullifiersBranchStateRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions { - return [self RPCToMethod:@"getNullifiersBranchState" - message:message - responseHandler:handler - callOptions:callOptions - responseClass:[GetNullifiersBranchStateResponse class]]; -} - -#pragma mark getRecentNullifierChanges(GetRecentNullifierChangesRequest) returns (GetRecentNullifierChangesResponse) - -- (void)getRecentNullifierChangesWithRequest:(GetRecentNullifierChangesRequest *)request handler:(void(^)(GetRecentNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler{ - [[self RPCTogetRecentNullifierChangesWithRequest:request handler:handler] start]; -} -// Returns a not-yet-started RPC object. -- (GRPCProtoCall *)RPCTogetRecentNullifierChangesWithRequest:(GetRecentNullifierChangesRequest *)request handler:(void(^)(GetRecentNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler{ - return [self RPCToMethod:@"getRecentNullifierChanges" - requestsWriter:[GRXWriter writerWithValue:request] - responseClass:[GetRecentNullifierChangesResponse class] - responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]]; -} -- (GRPCUnaryProtoCall *)getRecentNullifierChangesWithMessage:(GetRecentNullifierChangesRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions { - return [self RPCToMethod:@"getRecentNullifierChanges" - message:message - responseHandler:handler - callOptions:callOptions - responseClass:[GetRecentNullifierChangesResponse class]]; -} - -#pragma mark getRecentCompactedNullifierChanges(GetRecentCompactedNullifierChangesRequest) returns (GetRecentCompactedNullifierChangesResponse) - -- (void)getRecentCompactedNullifierChangesWithRequest:(GetRecentCompactedNullifierChangesRequest *)request handler:(void(^)(GetRecentCompactedNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler{ - [[self RPCTogetRecentCompactedNullifierChangesWithRequest:request handler:handler] start]; -} -// Returns a not-yet-started RPC object. -- (GRPCProtoCall *)RPCTogetRecentCompactedNullifierChangesWithRequest:(GetRecentCompactedNullifierChangesRequest *)request handler:(void(^)(GetRecentCompactedNullifierChangesResponse *_Nullable response, NSError *_Nullable error))handler{ - return [self RPCToMethod:@"getRecentCompactedNullifierChanges" - requestsWriter:[GRXWriter writerWithValue:request] - responseClass:[GetRecentCompactedNullifierChangesResponse class] - responsesWriteable:[GRXWriteable writeableWithSingleHandler:handler]]; -} -- (GRPCUnaryProtoCall *)getRecentCompactedNullifierChangesWithMessage:(GetRecentCompactedNullifierChangesRequest *)message responseHandler:(id)handler callOptions:(GRPCCallOptions *_Nullable)callOptions { - return [self RPCToMethod:@"getRecentCompactedNullifierChanges" - message:message - responseHandler:handler - callOptions:callOptions - responseClass:[GetRecentCompactedNullifierChangesResponse class]]; -} - @end #endif diff --git a/packages/dapi-grpc/clients/platform/v0/python/platform_pb2.py b/packages/dapi-grpc/clients/platform/v0/python/platform_pb2.py index 554c5f2a126..92539597cd8 100644 --- a/packages/dapi-grpc/clients/platform/v0/python/platform_pb2.py +++ b/packages/dapi-grpc/clients/platform/v0/python/platform_pb2.py @@ -23,7 +23,7 @@ syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\x0eplatform.proto\x12\x19org.dash.platform.dapi.v0\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\x01\n\x05Proof\x12\x15\n\rgrovedb_proof\x18\x01 \x01(\x0c\x12\x13\n\x0bquorum_hash\x18\x02 \x01(\x0c\x12\x11\n\tsignature\x18\x03 \x01(\x0c\x12\r\n\x05round\x18\x04 \x01(\r\x12\x15\n\rblock_id_hash\x18\x05 \x01(\x0c\x12\x13\n\x0bquorum_type\x18\x06 \x01(\r\"\x98\x01\n\x10ResponseMetadata\x12\x12\n\x06height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12 \n\x18\x63ore_chain_locked_height\x18\x02 \x01(\r\x12\r\n\x05\x65poch\x18\x03 \x01(\r\x12\x13\n\x07time_ms\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x18\n\x10protocol_version\x18\x05 \x01(\r\x12\x10\n\x08\x63hain_id\x18\x06 \x01(\t\"L\n\x1dStateTransitionBroadcastError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\";\n\x1f\x42roadcastStateTransitionRequest\x12\x18\n\x10state_transition\x18\x01 \x01(\x0c\"\"\n BroadcastStateTransitionResponse\"\xa4\x01\n\x12GetIdentityRequest\x12P\n\x02v0\x18\x01 \x01(\x0b\x32\x42.org.dash.platform.dapi.v0.GetIdentityRequest.GetIdentityRequestV0H\x00\x1a\x31\n\x14GetIdentityRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xc1\x01\n\x17GetIdentityNonceRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetIdentityNonceRequest.GetIdentityNonceRequestV0H\x00\x1a?\n\x19GetIdentityNonceRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf6\x01\n\x1fGetIdentityContractNonceRequest\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentityContractNonceRequest.GetIdentityContractNonceRequestV0H\x00\x1a\\\n!GetIdentityContractNonceRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xc0\x01\n\x19GetIdentityBalanceRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetIdentityBalanceRequest.GetIdentityBalanceRequestV0H\x00\x1a\x38\n\x1bGetIdentityBalanceRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xec\x01\n$GetIdentityBalanceAndRevisionRequest\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionRequest.GetIdentityBalanceAndRevisionRequestV0H\x00\x1a\x43\n&GetIdentityBalanceAndRevisionRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9e\x02\n\x13GetIdentityResponse\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetIdentityResponse.GetIdentityResponseV0H\x00\x1a\xa7\x01\n\x15GetIdentityResponseV0\x12\x12\n\x08identity\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbc\x02\n\x18GetIdentityNonceResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetIdentityNonceResponse.GetIdentityNonceResponseV0H\x00\x1a\xb6\x01\n\x1aGetIdentityNonceResponseV0\x12\x1c\n\x0eidentity_nonce\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xe5\x02\n GetIdentityContractNonceResponse\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentityContractNonceResponse.GetIdentityContractNonceResponseV0H\x00\x1a\xc7\x01\n\"GetIdentityContractNonceResponseV0\x12%\n\x17identity_contract_nonce\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbd\x02\n\x1aGetIdentityBalanceResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.GetIdentityBalanceResponseV0H\x00\x1a\xb1\x01\n\x1cGetIdentityBalanceResponseV0\x12\x15\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb1\x04\n%GetIdentityBalanceAndRevisionResponse\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.GetIdentityBalanceAndRevisionResponseV0H\x00\x1a\x84\x03\n\'GetIdentityBalanceAndRevisionResponseV0\x12\x9b\x01\n\x14\x62\x61lance_and_revision\x18\x01 \x01(\x0b\x32{.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.GetIdentityBalanceAndRevisionResponseV0.BalanceAndRevisionH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a?\n\x12\x42\x61lanceAndRevision\x12\x13\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x14\n\x08revision\x18\x02 \x01(\x04\x42\x02\x30\x01\x42\x08\n\x06resultB\t\n\x07version\"\xd1\x01\n\x0eKeyRequestType\x12\x36\n\x08\x61ll_keys\x18\x01 \x01(\x0b\x32\".org.dash.platform.dapi.v0.AllKeysH\x00\x12@\n\rspecific_keys\x18\x02 \x01(\x0b\x32\'.org.dash.platform.dapi.v0.SpecificKeysH\x00\x12:\n\nsearch_key\x18\x03 \x01(\x0b\x32$.org.dash.platform.dapi.v0.SearchKeyH\x00\x42\t\n\x07request\"\t\n\x07\x41llKeys\"\x1f\n\x0cSpecificKeys\x12\x0f\n\x07key_ids\x18\x01 \x03(\r\"\xb6\x01\n\tSearchKey\x12I\n\x0bpurpose_map\x18\x01 \x03(\x0b\x32\x34.org.dash.platform.dapi.v0.SearchKey.PurposeMapEntry\x1a^\n\x0fPurposeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.org.dash.platform.dapi.v0.SecurityLevelMap:\x02\x38\x01\"\xbf\x02\n\x10SecurityLevelMap\x12]\n\x12security_level_map\x18\x01 \x03(\x0b\x32\x41.org.dash.platform.dapi.v0.SecurityLevelMap.SecurityLevelMapEntry\x1aw\n\x15SecurityLevelMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12M\n\x05value\x18\x02 \x01(\x0e\x32>.org.dash.platform.dapi.v0.SecurityLevelMap.KeyKindRequestType:\x02\x38\x01\"S\n\x12KeyKindRequestType\x12\x1f\n\x1b\x43URRENT_KEY_OF_KIND_REQUEST\x10\x00\x12\x1c\n\x18\x41LL_KEYS_OF_KIND_REQUEST\x10\x01\"\xda\x02\n\x16GetIdentityKeysRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetIdentityKeysRequest.GetIdentityKeysRequestV0H\x00\x1a\xda\x01\n\x18GetIdentityKeysRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12?\n\x0crequest_type\x18\x02 \x01(\x0b\x32).org.dash.platform.dapi.v0.KeyRequestType\x12+\n\x05limit\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\x99\x03\n\x17GetIdentityKeysResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetIdentityKeysResponse.GetIdentityKeysResponseV0H\x00\x1a\x96\x02\n\x19GetIdentityKeysResponseV0\x12\x61\n\x04keys\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetIdentityKeysResponse.GetIdentityKeysResponseV0.KeysH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1a\n\x04Keys\x12\x12\n\nkeys_bytes\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xef\x02\n GetIdentitiesContractKeysRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentitiesContractKeysRequest.GetIdentitiesContractKeysRequestV0H\x00\x1a\xd1\x01\n\"GetIdentitiesContractKeysRequestV0\x12\x16\n\x0eidentities_ids\x18\x01 \x03(\x0c\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\x0c\x12\x1f\n\x12\x64ocument_type_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x37\n\x08purposes\x18\x04 \x03(\x0e\x32%.org.dash.platform.dapi.v0.KeyPurpose\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x15\n\x13_document_type_nameB\t\n\x07version\"\xdf\x06\n!GetIdentitiesContractKeysResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0H\x00\x1a\xbe\x05\n#GetIdentitiesContractKeysResponseV0\x12\x8a\x01\n\x0fidentities_keys\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.IdentitiesKeysH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aY\n\x0bPurposeKeys\x12\x36\n\x07purpose\x18\x01 \x01(\x0e\x32%.org.dash.platform.dapi.v0.KeyPurpose\x12\x12\n\nkeys_bytes\x18\x02 \x03(\x0c\x1a\x9f\x01\n\x0cIdentityKeys\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12z\n\x04keys\x18\x02 \x03(\x0b\x32l.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.PurposeKeys\x1a\x90\x01\n\x0eIdentitiesKeys\x12~\n\x07\x65ntries\x18\x01 \x03(\x0b\x32m.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.IdentityKeysB\x08\n\x06resultB\t\n\x07version\"\xa4\x02\n*GetEvonodesProposedEpochBlocksByIdsRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0H\x00\x1ah\n,GetEvonodesProposedEpochBlocksByIdsRequestV0\x12\x12\n\x05\x65poch\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x0b\n\x03ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\x08\n\x06_epochB\t\n\x07version\"\x92\x06\n&GetEvonodesProposedEpochBlocksResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0H\x00\x1a\xe2\x04\n(GetEvonodesProposedEpochBlocksResponseV0\x12\xb1\x01\n#evonodes_proposed_block_counts_info\x18\x01 \x01(\x0b\x32\x81\x01.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocksH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a?\n\x15\x45vonodeProposedBlocks\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x02 \x01(\x04\x42\x02\x30\x01\x1a\xc4\x01\n\x16\x45vonodesProposedBlocks\x12\xa9\x01\n\x1e\x65vonodes_proposed_block_counts\x18\x01 \x03(\x0b\x32\x80\x01.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocksB\x08\n\x06resultB\t\n\x07version\"\xf2\x02\n,GetEvonodesProposedEpochBlocksByRangeRequest\x12\x84\x01\n\x02v0\x18\x01 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0H\x00\x1a\xaf\x01\n.GetEvonodesProposedEpochBlocksByRangeRequestV0\x12\x12\n\x05\x65poch\x18\x01 \x01(\rH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x0bstart_after\x18\x03 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x04 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x07\n\x05startB\x08\n\x06_epochB\x08\n\x06_limitB\t\n\x07version\"\xcd\x01\n\x1cGetIdentitiesBalancesRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0H\x00\x1a<\n\x1eGetIdentitiesBalancesRequestV0\x12\x0b\n\x03ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9f\x05\n\x1dGetIdentitiesBalancesResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0H\x00\x1a\x8a\x04\n\x1fGetIdentitiesBalancesResponseV0\x12\x8a\x01\n\x13identities_balances\x18\x01 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aL\n\x0fIdentityBalance\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\x8f\x01\n\x12IdentitiesBalances\x12y\n\x07\x65ntries\x18\x01 \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalanceB\x08\n\x06resultB\t\n\x07version\"\xb4\x01\n\x16GetDataContractRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetDataContractRequest.GetDataContractRequestV0H\x00\x1a\x35\n\x18GetDataContractRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xb3\x02\n\x17GetDataContractResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetDataContractResponse.GetDataContractResponseV0H\x00\x1a\xb0\x01\n\x19GetDataContractResponseV0\x12\x17\n\rdata_contract\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb9\x01\n\x17GetDataContractsRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0H\x00\x1a\x37\n\x19GetDataContractsRequestV0\x12\x0b\n\x03ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xcf\x04\n\x18GetDataContractsResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetDataContractsResponse.GetDataContractsResponseV0H\x00\x1a[\n\x11\x44\x61taContractEntry\x12\x12\n\nidentifier\x18\x01 \x01(\x0c\x12\x32\n\rdata_contract\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x1au\n\rDataContracts\x12\x64\n\x15\x64\x61ta_contract_entries\x18\x01 \x03(\x0b\x32\x45.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContractEntry\x1a\xf5\x01\n\x1aGetDataContractsResponseV0\x12[\n\x0e\x64\x61ta_contracts\x18\x01 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContractsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc5\x02\n\x1dGetDataContractHistoryRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.GetDataContractHistoryRequestV0H\x00\x1a\xb0\x01\n\x1fGetDataContractHistoryRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12+\n\x05limit\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0bstart_at_ms\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\xb2\x05\n\x1eGetDataContractHistoryResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0H\x00\x1a\x9a\x04\n GetDataContractHistoryResponseV0\x12\x8f\x01\n\x15\x64\x61ta_contract_history\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0.DataContractHistoryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a;\n\x18\x44\x61taContractHistoryEntry\x12\x10\n\x04\x64\x61te\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05value\x18\x02 \x01(\x0c\x1a\xaa\x01\n\x13\x44\x61taContractHistory\x12\x92\x01\n\x15\x64\x61ta_contract_entries\x18\x01 \x03(\x0b\x32s.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0.DataContractHistoryEntryB\x08\n\x06resultB\t\n\x07version\"\xdb\x17\n\x13GetDocumentsRequest\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV0H\x00\x12R\n\x02v1\x18\x02 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1H\x00\x1a\xfe\x02\n\x12\x44ocumentFieldValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x19\n\x0bint64_value\x18\x02 \x01(\x12\x42\x02\x30\x01H\x00\x12\x1a\n\x0cuint64_value\x18\x03 \x01(\x04\x42\x02\x30\x01H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04text\x18\x05 \x01(\tH\x00\x12\x15\n\x0b\x62ytes_value\x18\x06 \x01(\x0cH\x00\x12[\n\x04list\x18\x07 \x01(\x0b\x32K.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.ValueListH\x00\x12\x14\n\nnull_value\x18\x08 \x01(\x08H\x00\x1a^\n\tValueList\x12Q\n\x06values\x18\x01 \x03(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValueB\t\n\x07variant\x1a\xbe\x01\n\x0bWhereClause\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12N\n\x08operator\x18\x02 \x01(\x0e\x32<.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator\x12P\n\x05value\x18\x03 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue\x1a\xa4\x01\n\x0fHavingAggregate\x12Y\n\x08\x66unction\x18\x01 \x01(\x0e\x32G.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate.Function\x12\r\n\x05\x66ield\x18\x02 \x01(\t\"\'\n\x08\x46unction\x12\t\n\x05\x43OUNT\x10\x00\x12\x07\n\x03SUM\x10\x01\x12\x07\n\x03\x41VG\x10\x02\x1a\xa9\x01\n\rHavingRanking\x12O\n\x04kind\x18\x01 \x01(\x0e\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind\x12\x12\n\x01n\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\"-\n\x04Kind\x12\x07\n\x03MIN\x10\x00\x12\x07\n\x03MAX\x10\x01\x12\x07\n\x03TOP\x10\x02\x12\n\n\x06\x42OTTOM\x10\x03\x42\x04\n\x02_n\x1a\xca\x04\n\x0cHavingClause\x12Q\n\taggregate\x18\x01 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate\x12V\n\x08operator\x18\x02 \x01(\x0e\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator\x12R\n\x05value\x18\x03 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValueH\x00\x12O\n\x07ranking\x18\x04 \x01(\x0b\x32<.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRankingH\x00\"\xe0\x01\n\x08Operator\x12\t\n\x05\x45QUAL\x10\x00\x12\r\n\tNOT_EQUAL\x10\x01\x12\x10\n\x0cGREATER_THAN\x10\x02\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x05\x12\x0b\n\x07\x42\x45TWEEN\x10\x06\x12\x1a\n\x16\x42\x45TWEEN_EXCLUDE_BOUNDS\x10\x07\x12\x18\n\x14\x42\x45TWEEN_EXCLUDE_LEFT\x10\x08\x12\x19\n\x15\x42\x45TWEEN_EXCLUDE_RIGHT\x10\t\x12\x06\n\x02IN\x10\nB\x07\n\x05right\x1a\x90\x01\n\x0bOrderClause\x12\x0f\n\x05\x66ield\x18\x01 \x01(\tH\x00\x12S\n\taggregate\x18\x03 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregateH\x00\x12\x11\n\tascending\x18\x02 \x01(\x08\x42\x08\n\x06target\x1a\xbb\x01\n\x15GetDocumentsRequestV0\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x15\n\rdocument_type\x18\x02 \x01(\t\x12\r\n\x05where\x18\x03 \x01(\x0c\x12\x10\n\x08order_by\x18\x04 \x01(\x0c\x12\r\n\x05limit\x18\x05 \x01(\r\x12\x15\n\x0bstart_after\x18\x06 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x07 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x08 \x01(\x08\x42\x07\n\x05start\x1a\xf3\x05\n\x15GetDocumentsRequestV1\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x15\n\rdocument_type\x18\x02 \x01(\t\x12Q\n\rwhere_clauses\x18\x03 \x03(\x0b\x32:.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause\x12L\n\x08order_by\x18\x04 \x03(\x0b\x32:.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause\x12\x12\n\x05limit\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x0bstart_after\x18\x06 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x07 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x08 \x01(\x08\x12\\\n\x07selects\x18\t \x03(\x0b\x32K.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select\x12\x10\n\x08group_by\x18\n \x03(\t\x12K\n\x06having\x18\x0b \x03(\x0b\x32;.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause\x12\x13\n\x06offset\x18\x0c \x01(\rH\x02\x88\x01\x01\x1a\xc9\x01\n\x06Select\x12\x66\n\x08\x66unction\x18\x01 \x01(\x0e\x32T.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function\x12\r\n\x05\x66ield\x18\x02 \x01(\t\"H\n\x08\x46unction\x12\r\n\tDOCUMENTS\x10\x00\x12\t\n\x05\x43OUNT\x10\x01\x12\x07\n\x03SUM\x10\x02\x12\x07\n\x03\x41VG\x10\x03\x12\x07\n\x03MIN\x10\x04\x12\x07\n\x03MAX\x10\x05\x42\x07\n\x05startB\x08\n\x06_limitB\t\n\x07_offset\"\xe7\x01\n\rWhereOperator\x12\t\n\x05\x45QUAL\x10\x00\x12\x10\n\x0cGREATER_THAN\x10\x01\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x02\x12\r\n\tLESS_THAN\x10\x03\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x04\x12\x0b\n\x07\x42\x45TWEEN\x10\x05\x12\x1a\n\x16\x42\x45TWEEN_EXCLUDE_BOUNDS\x10\x06\x12\x18\n\x14\x42\x45TWEEN_EXCLUDE_LEFT\x10\x07\x12\x19\n\x15\x42\x45TWEEN_EXCLUDE_RIGHT\x10\x08\x12\x06\n\x02IN\x10\t\x12\x0f\n\x0bSTARTS_WITH\x10\nB\t\n\x07version\"\x86\x13\n\x14GetDocumentsResponse\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0H\x00\x12T\n\x02v1\x18\x02 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1H\x00\x1a\x9b\x02\n\x16GetDocumentsResponseV0\x12\x65\n\tdocuments\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.DocumentsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1e\n\tDocuments\x12\x11\n\tdocuments\x18\x01 \x03(\x0c\x42\x08\n\x06result\x1a\x98\x0f\n\x16GetDocumentsResponseV1\x12\x61\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultDataH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1e\n\tDocuments\x12\x11\n\tdocuments\x18\x01 \x03(\x0c\x1aL\n\nCountEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x03 \x01(\x04\x42\x02\x30\x01\x42\t\n\x07_in_key\x1ar\n\x0c\x43ountEntries\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntry\x1a\xa0\x01\n\x0c\x43ountResults\x12\x1d\n\x0f\x61ggregate_count\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x66\n\x07\x65ntries\x18\x02 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntriesH\x00\x42\t\n\x07variant\x1aH\n\x08SumEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x0f\n\x03sum\x18\x03 \x01(\x12\x42\x02\x30\x01\x42\t\n\x07_in_key\x1an\n\nSumEntries\x12`\n\x07\x65ntries\x18\x01 \x03(\x0b\x32O.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumEntry\x1a\x9a\x01\n\nSumResults\x12\x1b\n\raggregate_sum\x18\x01 \x01(\x12\x42\x02\x30\x01H\x00\x12\x64\n\x07\x65ntries\x18\x02 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumEntriesH\x00\x42\t\n\x07variant\x1a_\n\x0c\x41verageEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x03 \x01(\x04\x42\x02\x30\x01\x12\x0f\n\x03sum\x18\x04 \x01(\x12\x42\x02\x30\x01\x42\t\n\x07_in_key\x1av\n\x0e\x41verageEntries\x12\x64\n\x07\x65ntries\x18\x01 \x03(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageEntry\x1a\x36\n\x10\x41verageAggregate\x12\x11\n\x05\x63ount\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0f\n\x03sum\x18\x02 \x01(\x12\x42\x02\x30\x01\x1a\xfb\x01\n\x0e\x41verageResults\x12t\n\x11\x61ggregate_average\x18\x01 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageAggregateH\x00\x12h\n\x07\x65ntries\x18\x02 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageEntriesH\x00\x42\t\n\x07variant\x1a\xb3\x03\n\nResultData\x12\x65\n\tdocuments\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.DocumentsH\x00\x12\x65\n\x06\x63ounts\x18\x02 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResultsH\x00\x12\x61\n\x04sums\x18\x03 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResultsH\x00\x12i\n\x08\x61verages\x18\x04 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResultsH\x00\x42\t\n\x07variantB\x08\n\x06resultB\t\n\x07version\"\xf4\x02\n\x19GetDocumentHistoryRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentHistoryRequest.GetDocumentHistoryRequestV0H\x00\x1a\xeb\x01\n\x1bGetDocumentHistoryRequestV0\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64ocument_id\x18\x03 \x01(\x0c\x12+\n\x05limit\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0bstart_at_ms\x18\x06 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x07 \x01(\x08\x42\t\n\x07version\"\xf7\x04\n\x1aGetDocumentHistoryResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0H\x00\x1a\xeb\x03\n\x1cGetDocumentHistoryResponseV0\x12~\n\x10\x64ocument_history\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x37\n\x14\x44ocumentHistoryEntry\x12\x10\n\x04\x64\x61te\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05value\x18\x02 \x01(\x0c\x1a\x95\x01\n\x0f\x44ocumentHistory\x12\x81\x01\n\x10\x64ocument_entries\x18\x01 \x03(\x0b\x32g.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntryB\x08\n\x06resultB\t\n\x07version\"\xed\x01\n!GetIdentityByPublicKeyHashRequest\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashRequest.GetIdentityByPublicKeyHashRequestV0H\x00\x1aM\n#GetIdentityByPublicKeyHashRequestV0\x12\x17\n\x0fpublic_key_hash\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xda\x02\n\"GetIdentityByPublicKeyHashResponse\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashResponse.GetIdentityByPublicKeyHashResponseV0H\x00\x1a\xb6\x01\n$GetIdentityByPublicKeyHashResponseV0\x12\x12\n\x08identity\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbd\x02\n*GetIdentityByNonUniquePublicKeyHashRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0H\x00\x1a\x80\x01\n,GetIdentityByNonUniquePublicKeyHashRequestV0\x12\x17\n\x0fpublic_key_hash\x18\x01 \x01(\x0c\x12\x18\n\x0bstart_after\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\x0e\n\x0c_start_afterB\t\n\x07version\"\xd6\x06\n+GetIdentityByNonUniquePublicKeyHashResponse\x12\x82\x01\n\x02v0\x18\x01 \x01(\x0b\x32t.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0H\x00\x1a\x96\x05\n-GetIdentityByNonUniquePublicKeyHashResponseV0\x12\x9a\x01\n\x08identity\x18\x01 \x01(\x0b\x32\x85\x01.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponseH\x00\x12\x9d\x01\n\x05proof\x18\x02 \x01(\x0b\x32\x8b\x01.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponseH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x36\n\x10IdentityResponse\x12\x15\n\x08identity\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_identity\x1a\xa6\x01\n\x16IdentityProvedResponse\x12P\n&grovedb_identity_public_key_hash_proof\x18\x01 \x01(\x0b\x32 .org.dash.platform.dapi.v0.Proof\x12!\n\x14identity_proof_bytes\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x17\n\x15_identity_proof_bytesB\x08\n\x06resultB\t\n\x07version\"\xfb\x01\n#WaitForStateTransitionResultRequest\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.WaitForStateTransitionResultRequestV0H\x00\x1aU\n%WaitForStateTransitionResultRequestV0\x12\x1d\n\x15state_transition_hash\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x99\x03\n$WaitForStateTransitionResultResponse\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0H\x00\x1a\xef\x01\n&WaitForStateTransitionResultResponseV0\x12I\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x38.org.dash.platform.dapi.v0.StateTransitionBroadcastErrorH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc4\x01\n\x19GetConsensusParamsRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetConsensusParamsRequest.GetConsensusParamsRequestV0H\x00\x1a<\n\x1bGetConsensusParamsRequestV0\x12\x0e\n\x06height\x18\x01 \x01(\x05\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9c\x04\n\x1aGetConsensusParamsResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetConsensusParamsResponse.GetConsensusParamsResponseV0H\x00\x1aP\n\x14\x43onsensusParamsBlock\x12\x11\n\tmax_bytes\x18\x01 \x01(\t\x12\x0f\n\x07max_gas\x18\x02 \x01(\t\x12\x14\n\x0ctime_iota_ms\x18\x03 \x01(\t\x1a\x62\n\x17\x43onsensusParamsEvidence\x12\x1a\n\x12max_age_num_blocks\x18\x01 \x01(\t\x12\x18\n\x10max_age_duration\x18\x02 \x01(\t\x12\x11\n\tmax_bytes\x18\x03 \x01(\t\x1a\xda\x01\n\x1cGetConsensusParamsResponseV0\x12Y\n\x05\x62lock\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetConsensusParamsResponse.ConsensusParamsBlock\x12_\n\x08\x65vidence\x18\x02 \x01(\x0b\x32M.org.dash.platform.dapi.v0.GetConsensusParamsResponse.ConsensusParamsEvidenceB\t\n\x07version\"\xe4\x01\n%GetProtocolVersionUpgradeStateRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateRequest.GetProtocolVersionUpgradeStateRequestV0H\x00\x1a\x38\n\'GetProtocolVersionUpgradeStateRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xb5\x05\n&GetProtocolVersionUpgradeStateResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0H\x00\x1a\x85\x04\n(GetProtocolVersionUpgradeStateResponseV0\x12\x87\x01\n\x08versions\x18\x01 \x01(\x0b\x32s.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0.VersionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x96\x01\n\x08Versions\x12\x89\x01\n\x08versions\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0.VersionEntry\x1a:\n\x0cVersionEntry\x12\x16\n\x0eversion_number\x18\x01 \x01(\r\x12\x12\n\nvote_count\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xa3\x02\n*GetProtocolVersionUpgradeVoteStatusRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusRequest.GetProtocolVersionUpgradeVoteStatusRequestV0H\x00\x1ag\n,GetProtocolVersionUpgradeVoteStatusRequestV0\x12\x19\n\x11start_pro_tx_hash\x18\x01 \x01(\x0c\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xef\x05\n+GetProtocolVersionUpgradeVoteStatusResponse\x12\x82\x01\n\x02v0\x18\x01 \x01(\x0b\x32t.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0H\x00\x1a\xaf\x04\n-GetProtocolVersionUpgradeVoteStatusResponseV0\x12\x98\x01\n\x08versions\x18\x01 \x01(\x0b\x32\x83\x01.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignalsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xaf\x01\n\x0eVersionSignals\x12\x9c\x01\n\x0fversion_signals\x18\x01 \x03(\x0b\x32\x82\x01.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignal\x1a\x35\n\rVersionSignal\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x0f\n\x07version\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xf5\x01\n\x14GetEpochsInfoRequest\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetEpochsInfoRequest.GetEpochsInfoRequestV0H\x00\x1a|\n\x16GetEpochsInfoRequestV0\x12\x31\n\x0bstart_epoch\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\x11\n\tascending\x18\x03 \x01(\x08\x12\r\n\x05prove\x18\x04 \x01(\x08\x42\t\n\x07version\"\x99\x05\n\x15GetEpochsInfoResponse\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0H\x00\x1a\x9c\x04\n\x17GetEpochsInfoResponseV0\x12\x65\n\x06\x65pochs\x18\x01 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0.EpochInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1au\n\nEpochInfos\x12g\n\x0b\x65poch_infos\x18\x01 \x03(\x0b\x32R.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0.EpochInfo\x1a\xa6\x01\n\tEpochInfo\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x1e\n\x12\x66irst_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x1f\n\x17\x66irst_core_block_height\x18\x03 \x01(\r\x12\x16\n\nstart_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x0e\x66\x65\x65_multiplier\x18\x05 \x01(\x01\x12\x18\n\x10protocol_version\x18\x06 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xbf\x02\n\x1dGetFinalizedEpochInfosRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0H\x00\x1a\xaa\x01\n\x1fGetFinalizedEpochInfosRequestV0\x12\x19\n\x11start_epoch_index\x18\x01 \x01(\r\x12\"\n\x1astart_epoch_index_included\x18\x02 \x01(\x08\x12\x17\n\x0f\x65nd_epoch_index\x18\x03 \x01(\r\x12 \n\x18\x65nd_epoch_index_included\x18\x04 \x01(\x08\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\xbd\t\n\x1eGetFinalizedEpochInfosResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0H\x00\x1a\xa5\x08\n GetFinalizedEpochInfosResponseV0\x12\x80\x01\n\x06\x65pochs\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xa4\x01\n\x13\x46inalizedEpochInfos\x12\x8c\x01\n\x15\x66inalized_epoch_infos\x18\x01 \x03(\x0b\x32m.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo\x1a\x9f\x04\n\x12\x46inalizedEpochInfo\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x1e\n\x12\x66irst_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x1f\n\x17\x66irst_core_block_height\x18\x03 \x01(\r\x12\x1c\n\x10\x66irst_block_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x0e\x66\x65\x65_multiplier\x18\x05 \x01(\x01\x12\x18\n\x10protocol_version\x18\x06 \x01(\r\x12!\n\x15total_blocks_in_epoch\x18\x07 \x01(\x04\x42\x02\x30\x01\x12*\n\"next_epoch_start_core_block_height\x18\x08 \x01(\r\x12!\n\x15total_processing_fees\x18\t \x01(\x04\x42\x02\x30\x01\x12*\n\x1etotal_distributed_storage_fees\x18\n \x01(\x04\x42\x02\x30\x01\x12&\n\x1atotal_created_storage_fees\x18\x0b \x01(\x04\x42\x02\x30\x01\x12\x1e\n\x12\x63ore_block_rewards\x18\x0c \x01(\x04\x42\x02\x30\x01\x12\x81\x01\n\x0f\x62lock_proposers\x18\r \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer\x1a\x39\n\rBlockProposer\x12\x13\n\x0bproposer_id\x18\x01 \x01(\x0c\x12\x13\n\x0b\x62lock_count\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xde\x04\n\x1cGetContestedResourcesRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetContestedResourcesRequest.GetContestedResourcesRequestV0H\x00\x1a\xcc\x03\n\x1eGetContestedResourcesRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x1a\n\x12start_index_values\x18\x04 \x03(\x0c\x12\x18\n\x10\x65nd_index_values\x18\x05 \x03(\x0c\x12\x89\x01\n\x13start_at_value_info\x18\x06 \x01(\x0b\x32g.org.dash.platform.dapi.v0.GetContestedResourcesRequest.GetContestedResourcesRequestV0.StartAtValueInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x07 \x01(\rH\x01\x88\x01\x01\x12\x17\n\x0forder_ascending\x18\x08 \x01(\x08\x12\r\n\x05prove\x18\t \x01(\x08\x1a\x45\n\x10StartAtValueInfo\x12\x13\n\x0bstart_value\x18\x01 \x01(\x0c\x12\x1c\n\x14start_value_included\x18\x02 \x01(\x08\x42\x16\n\x14_start_at_value_infoB\x08\n\x06_countB\t\n\x07version\"\x88\x04\n\x1dGetContestedResourcesResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetContestedResourcesResponse.GetContestedResourcesResponseV0H\x00\x1a\xf3\x02\n\x1fGetContestedResourcesResponseV0\x12\x95\x01\n\x19\x63ontested_resource_values\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetContestedResourcesResponse.GetContestedResourcesResponseV0.ContestedResourceValuesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a<\n\x17\x43ontestedResourceValues\x12!\n\x19\x63ontested_resource_values\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xd2\x05\n\x1cGetVotePollsByEndDateRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0H\x00\x1a\xc0\x04\n\x1eGetVotePollsByEndDateRequestV0\x12\x84\x01\n\x0fstart_time_info\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0.StartAtTimeInfoH\x00\x88\x01\x01\x12\x80\x01\n\rend_time_info\x18\x02 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0.EndAtTimeInfoH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\x13\n\x06offset\x18\x04 \x01(\rH\x03\x88\x01\x01\x12\x11\n\tascending\x18\x05 \x01(\x08\x12\r\n\x05prove\x18\x06 \x01(\x08\x1aI\n\x0fStartAtTimeInfo\x12\x19\n\rstart_time_ms\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x13start_time_included\x18\x02 \x01(\x08\x1a\x43\n\rEndAtTimeInfo\x12\x17\n\x0b\x65nd_time_ms\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65nd_time_included\x18\x02 \x01(\x08\x42\x12\n\x10_start_time_infoB\x10\n\x0e_end_time_infoB\x08\n\x06_limitB\t\n\x07_offsetB\t\n\x07version\"\x83\x06\n\x1dGetVotePollsByEndDateResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0H\x00\x1a\xee\x04\n\x1fGetVotePollsByEndDateResponseV0\x12\x9c\x01\n\x18vote_polls_by_timestamps\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0.SerializedVotePollsByTimestampsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aV\n\x1eSerializedVotePollsByTimestamp\x12\x15\n\ttimestamp\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1d\n\x15serialized_vote_polls\x18\x02 \x03(\x0c\x1a\xd7\x01\n\x1fSerializedVotePollsByTimestamps\x12\x99\x01\n\x18vote_polls_by_timestamps\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0.SerializedVotePollsByTimestamp\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x42\x08\n\x06resultB\t\n\x07version\"\xff\x06\n$GetContestedResourceVoteStateRequest\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0H\x00\x1a\xd5\x05\n&GetContestedResourceVoteStateRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x14\n\x0cindex_values\x18\x04 \x03(\x0c\x12\x86\x01\n\x0bresult_type\x18\x05 \x01(\x0e\x32q.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0.ResultType\x12\x36\n.allow_include_locked_and_abstaining_vote_tally\x18\x06 \x01(\x08\x12\xa3\x01\n\x18start_at_identifier_info\x18\x07 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0.StartAtIdentifierInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x08 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\t \x01(\x08\x1aT\n\x15StartAtIdentifierInfo\x12\x18\n\x10start_identifier\x18\x01 \x01(\x0c\x12!\n\x19start_identifier_included\x18\x02 \x01(\x08\"I\n\nResultType\x12\r\n\tDOCUMENTS\x10\x00\x12\x0e\n\nVOTE_TALLY\x10\x01\x12\x1c\n\x18\x44OCUMENTS_AND_VOTE_TALLY\x10\x02\x42\x1b\n\x19_start_at_identifier_infoB\x08\n\x06_countB\t\n\x07version\"\x94\x0c\n%GetContestedResourceVoteStateResponse\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0H\x00\x1a\xe7\n\n\'GetContestedResourceVoteStateResponseV0\x12\xae\x01\n\x1d\x63ontested_resource_contenders\x18\x01 \x01(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.ContestedResourceContendersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xda\x03\n\x10\x46inishedVoteInfo\x12\xad\x01\n\x15\x66inished_vote_outcome\x18\x01 \x01(\x0e\x32\x8d\x01.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.FinishedVoteInfo.FinishedVoteOutcome\x12\x1f\n\x12won_by_identity_id\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12$\n\x18\x66inished_at_block_height\x18\x03 \x01(\x04\x42\x02\x30\x01\x12%\n\x1d\x66inished_at_core_block_height\x18\x04 \x01(\r\x12%\n\x19\x66inished_at_block_time_ms\x18\x05 \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x66inished_at_epoch\x18\x06 \x01(\r\"O\n\x13\x46inishedVoteOutcome\x12\x14\n\x10TOWARDS_IDENTITY\x10\x00\x12\n\n\x06LOCKED\x10\x01\x12\x16\n\x12NO_PREVIOUS_WINNER\x10\x02\x42\x15\n\x13_won_by_identity_id\x1a\xc4\x03\n\x1b\x43ontestedResourceContenders\x12\x86\x01\n\ncontenders\x18\x01 \x03(\x0b\x32r.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.Contender\x12\x1f\n\x12\x61\x62stain_vote_tally\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x0flock_vote_tally\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x9a\x01\n\x12\x66inished_vote_info\x18\x04 \x01(\x0b\x32y.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.FinishedVoteInfoH\x02\x88\x01\x01\x42\x15\n\x13_abstain_vote_tallyB\x12\n\x10_lock_vote_tallyB\x15\n\x13_finished_vote_info\x1ak\n\tContender\x12\x12\n\nidentifier\x18\x01 \x01(\x0c\x12\x17\n\nvote_count\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08\x64ocument\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x42\r\n\x0b_vote_countB\x0b\n\t_documentB\x08\n\x06resultB\t\n\x07version\"\xd5\x05\n,GetContestedResourceVotersForIdentityRequest\x12\x84\x01\n\x02v0\x18\x01 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest.GetContestedResourceVotersForIdentityRequestV0H\x00\x1a\x92\x04\n.GetContestedResourceVotersForIdentityRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x14\n\x0cindex_values\x18\x04 \x03(\x0c\x12\x15\n\rcontestant_id\x18\x05 \x01(\x0c\x12\xb4\x01\n\x18start_at_identifier_info\x18\x06 \x01(\x0b\x32\x8c\x01.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest.GetContestedResourceVotersForIdentityRequestV0.StartAtIdentifierInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x07 \x01(\rH\x01\x88\x01\x01\x12\x17\n\x0forder_ascending\x18\x08 \x01(\x08\x12\r\n\x05prove\x18\t \x01(\x08\x1aT\n\x15StartAtIdentifierInfo\x12\x18\n\x10start_identifier\x18\x01 \x01(\x0c\x12!\n\x19start_identifier_included\x18\x02 \x01(\x08\x42\x1b\n\x19_start_at_identifier_infoB\x08\n\x06_countB\t\n\x07version\"\xf1\x04\n-GetContestedResourceVotersForIdentityResponse\x12\x86\x01\n\x02v0\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse.GetContestedResourceVotersForIdentityResponseV0H\x00\x1a\xab\x03\n/GetContestedResourceVotersForIdentityResponseV0\x12\xb6\x01\n\x19\x63ontested_resource_voters\x18\x01 \x01(\x0b\x32\x90\x01.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse.GetContestedResourceVotersForIdentityResponseV0.ContestedResourceVotersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x43\n\x17\x43ontestedResourceVoters\x12\x0e\n\x06voters\x18\x01 \x03(\x0c\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x42\x08\n\x06resultB\t\n\x07version\"\xad\x05\n(GetContestedResourceIdentityVotesRequest\x12|\n\x02v0\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest.GetContestedResourceIdentityVotesRequestV0H\x00\x1a\xf7\x03\n*GetContestedResourceIdentityVotesRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12+\n\x05limit\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0forder_ascending\x18\x04 \x01(\x08\x12\xae\x01\n\x1astart_at_vote_poll_id_info\x18\x05 \x01(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest.GetContestedResourceIdentityVotesRequestV0.StartAtVotePollIdInfoH\x00\x88\x01\x01\x12\r\n\x05prove\x18\x06 \x01(\x08\x1a\x61\n\x15StartAtVotePollIdInfo\x12 \n\x18start_at_poll_identifier\x18\x01 \x01(\x0c\x12&\n\x1estart_poll_identifier_included\x18\x02 \x01(\x08\x42\x1d\n\x1b_start_at_vote_poll_id_infoB\t\n\x07version\"\xc8\n\n)GetContestedResourceIdentityVotesResponse\x12~\n\x02v0\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0H\x00\x1a\x8f\t\n+GetContestedResourceIdentityVotesResponseV0\x12\xa1\x01\n\x05votes\x18\x01 \x01(\x0b\x32\x8f\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ContestedResourceIdentityVotesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xf7\x01\n\x1e\x43ontestedResourceIdentityVotes\x12\xba\x01\n!contested_resource_identity_votes\x18\x01 \x03(\x0b\x32\x8e\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ContestedResourceIdentityVote\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x1a\xad\x02\n\x12ResourceVoteChoice\x12\xad\x01\n\x10vote_choice_type\x18\x01 \x01(\x0e\x32\x92\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ResourceVoteChoice.VoteChoiceType\x12\x18\n\x0bidentity_id\x18\x02 \x01(\x0cH\x00\x88\x01\x01\"=\n\x0eVoteChoiceType\x12\x14\n\x10TOWARDS_IDENTITY\x10\x00\x12\x0b\n\x07\x41\x42STAIN\x10\x01\x12\x08\n\x04LOCK\x10\x02\x42\x0e\n\x0c_identity_id\x1a\x95\x02\n\x1d\x43ontestedResourceIdentityVote\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\'\n\x1fserialized_index_storage_values\x18\x03 \x03(\x0c\x12\x99\x01\n\x0bvote_choice\x18\x04 \x01(\x0b\x32\x83\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ResourceVoteChoiceB\x08\n\x06resultB\t\n\x07version\"\xf0\x01\n%GetPrefundedSpecializedBalanceRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceRequest.GetPrefundedSpecializedBalanceRequestV0H\x00\x1a\x44\n\'GetPrefundedSpecializedBalanceRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xed\x02\n&GetPrefundedSpecializedBalanceResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceResponse.GetPrefundedSpecializedBalanceResponseV0H\x00\x1a\xbd\x01\n(GetPrefundedSpecializedBalanceResponseV0\x12\x15\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xd0\x01\n GetTotalCreditsInPlatformRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0H\x00\x1a\x33\n\"GetTotalCreditsInPlatformRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xd9\x02\n!GetTotalCreditsInPlatformResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0H\x00\x1a\xb8\x01\n#GetTotalCreditsInPlatformResponseV0\x12\x15\n\x07\x63redits\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc4\x01\n\x16GetPathElementsRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetPathElementsRequest.GetPathElementsRequestV0H\x00\x1a\x45\n\x18GetPathElementsRequestV0\x12\x0c\n\x04path\x18\x01 \x03(\x0c\x12\x0c\n\x04keys\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xa3\x03\n\x17GetPathElementsResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0H\x00\x1a\xa0\x02\n\x19GetPathElementsResponseV0\x12i\n\x08\x65lements\x18\x01 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0.ElementsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1c\n\x08\x45lements\x12\x10\n\x08\x65lements\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\x81\x01\n\x10GetStatusRequest\x12L\n\x02v0\x18\x01 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0H\x00\x1a\x14\n\x12GetStatusRequestV0B\t\n\x07version\"\xe4\x10\n\x11GetStatusResponse\x12N\n\x02v0\x18\x01 \x01(\x0b\x32@.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0H\x00\x1a\xf3\x0f\n\x13GetStatusResponseV0\x12Y\n\x07version\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version\x12S\n\x04node\x18\x02 \x01(\x0b\x32\x45.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node\x12U\n\x05\x63hain\x18\x03 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain\x12Y\n\x07network\x18\x04 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network\x12^\n\nstate_sync\x18\x05 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync\x12S\n\x04time\x18\x06 \x01(\x0b\x32\x45.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time\x1a\x82\x05\n\x07Version\x12\x63\n\x08software\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software\x12\x63\n\x08protocol\x18\x02 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol\x1a^\n\x08Software\x12\x0c\n\x04\x64\x61pi\x18\x01 \x01(\t\x12\x12\n\x05\x64rive\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ntenderdash\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_driveB\r\n\x0b_tenderdash\x1a\xcc\x02\n\x08Protocol\x12p\n\ntenderdash\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash\x12\x66\n\x05\x64rive\x18\x02 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive\x1a(\n\nTenderdash\x12\x0b\n\x03p2p\x18\x01 \x01(\r\x12\r\n\x05\x62lock\x18\x02 \x01(\r\x1a<\n\x05\x44rive\x12\x0e\n\x06latest\x18\x03 \x01(\r\x12\x0f\n\x07\x63urrent\x18\x04 \x01(\r\x12\x12\n\nnext_epoch\x18\x05 \x01(\r\x1a\x7f\n\x04Time\x12\x11\n\x05local\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x05\x62lock\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\x12\x18\n\x07genesis\x18\x03 \x01(\x04\x42\x02\x30\x01H\x01\x88\x01\x01\x12\x12\n\x05\x65poch\x18\x04 \x01(\rH\x02\x88\x01\x01\x42\x08\n\x06_blockB\n\n\x08_genesisB\x08\n\x06_epoch\x1a<\n\x04Node\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x18\n\x0bpro_tx_hash\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0e\n\x0c_pro_tx_hash\x1a\xb3\x02\n\x05\x43hain\x12\x13\n\x0b\x63\x61tching_up\x18\x01 \x01(\x08\x12\x19\n\x11latest_block_hash\x18\x02 \x01(\x0c\x12\x17\n\x0flatest_app_hash\x18\x03 \x01(\x0c\x12\x1f\n\x13latest_block_height\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x13\x65\x61rliest_block_hash\x18\x05 \x01(\x0c\x12\x19\n\x11\x65\x61rliest_app_hash\x18\x06 \x01(\x0c\x12!\n\x15\x65\x61rliest_block_height\x18\x07 \x01(\x04\x42\x02\x30\x01\x12!\n\x15max_peer_block_height\x18\t \x01(\x04\x42\x02\x30\x01\x12%\n\x18\x63ore_chain_locked_height\x18\n \x01(\rH\x00\x88\x01\x01\x42\x1b\n\x19_core_chain_locked_height\x1a\x43\n\x07Network\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x13\n\x0bpeers_count\x18\x02 \x01(\r\x12\x11\n\tlistening\x18\x03 \x01(\x08\x1a\x85\x02\n\tStateSync\x12\x1d\n\x11total_synced_time\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0eremaining_time\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0ftotal_snapshots\x18\x03 \x01(\r\x12\"\n\x16\x63hunk_process_avg_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x0fsnapshot_height\x18\x05 \x01(\x04\x42\x02\x30\x01\x12!\n\x15snapshot_chunks_count\x18\x06 \x01(\x04\x42\x02\x30\x01\x12\x1d\n\x11\x62\x61\x63kfilled_blocks\x18\x07 \x01(\x04\x42\x02\x30\x01\x12!\n\x15\x62\x61\x63kfill_blocks_total\x18\x08 \x01(\x04\x42\x02\x30\x01\x42\t\n\x07version\"\xb1\x01\n\x1cGetCurrentQuorumsInfoRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0H\x00\x1a \n\x1eGetCurrentQuorumsInfoRequestV0B\t\n\x07version\"\xa1\x05\n\x1dGetCurrentQuorumsInfoResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0H\x00\x1a\x46\n\x0bValidatorV0\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x0f\n\x07node_ip\x18\x02 \x01(\t\x12\x11\n\tis_banned\x18\x03 \x01(\x08\x1a\xaf\x01\n\x0eValidatorSetV0\x12\x13\n\x0bquorum_hash\x18\x01 \x01(\x0c\x12\x13\n\x0b\x63ore_height\x18\x02 \x01(\r\x12U\n\x07members\x18\x03 \x03(\x0b\x32\x44.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0\x12\x1c\n\x14threshold_public_key\x18\x04 \x01(\x0c\x1a\x92\x02\n\x1fGetCurrentQuorumsInfoResponseV0\x12\x15\n\rquorum_hashes\x18\x01 \x03(\x0c\x12\x1b\n\x13\x63urrent_quorum_hash\x18\x02 \x01(\x0c\x12_\n\x0evalidator_sets\x18\x03 \x03(\x0b\x32G.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0\x12\x1b\n\x13last_block_proposer\x18\x04 \x01(\x0c\x12=\n\x08metadata\x18\x05 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\t\n\x07version\"\xf4\x01\n\x1fGetIdentityTokenBalancesRequest\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentityTokenBalancesRequest.GetIdentityTokenBalancesRequestV0H\x00\x1aZ\n!GetIdentityTokenBalancesRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x11\n\ttoken_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xad\x05\n GetIdentityTokenBalancesResponse\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0H\x00\x1a\x8f\x04\n\"GetIdentityTokenBalancesResponseV0\x12\x86\x01\n\x0etoken_balances\x18\x01 \x01(\x0b\x32l.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0.TokenBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aG\n\x11TokenBalanceEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x07\x62\x61lance\x18\x02 \x01(\x04H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\x9a\x01\n\rTokenBalances\x12\x88\x01\n\x0etoken_balances\x18\x01 \x03(\x0b\x32p.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0.TokenBalanceEntryB\x08\n\x06resultB\t\n\x07version\"\xfc\x01\n!GetIdentitiesTokenBalancesRequest\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesRequest.GetIdentitiesTokenBalancesRequestV0H\x00\x1a\\\n#GetIdentitiesTokenBalancesRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x0cidentity_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xf2\x05\n\"GetIdentitiesTokenBalancesResponse\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0H\x00\x1a\xce\x04\n$GetIdentitiesTokenBalancesResponseV0\x12\x9b\x01\n\x17identity_token_balances\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0.IdentityTokenBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aR\n\x19IdentityTokenBalanceEntry\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x14\n\x07\x62\x61lance\x18\x02 \x01(\x04H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\xb7\x01\n\x15IdentityTokenBalances\x12\x9d\x01\n\x17identity_token_balances\x18\x01 \x03(\x0b\x32|.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0.IdentityTokenBalanceEntryB\x08\n\x06resultB\t\n\x07version\"\xe8\x01\n\x1cGetIdentityTokenInfosRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetIdentityTokenInfosRequest.GetIdentityTokenInfosRequestV0H\x00\x1aW\n\x1eGetIdentityTokenInfosRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x11\n\ttoken_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\x98\x06\n\x1dGetIdentityTokenInfosResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0H\x00\x1a\x83\x05\n\x1fGetIdentityTokenInfosResponseV0\x12z\n\x0btoken_infos\x18\x01 \x01(\x0b\x32\x63.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a(\n\x16TokenIdentityInfoEntry\x12\x0e\n\x06\x66rozen\x18\x01 \x01(\x08\x1a\xb0\x01\n\x0eTokenInfoEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x82\x01\n\x04info\x18\x02 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenIdentityInfoEntryH\x00\x88\x01\x01\x42\x07\n\x05_info\x1a\x8a\x01\n\nTokenInfos\x12|\n\x0btoken_infos\x18\x01 \x03(\x0b\x32g.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xf0\x01\n\x1eGetIdentitiesTokenInfosRequest\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosRequest.GetIdentitiesTokenInfosRequestV0H\x00\x1aY\n GetIdentitiesTokenInfosRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x0cidentity_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xca\x06\n\x1fGetIdentitiesTokenInfosResponse\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0H\x00\x1a\xaf\x05\n!GetIdentitiesTokenInfosResponseV0\x12\x8f\x01\n\x14identity_token_infos\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.IdentityTokenInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a(\n\x16TokenIdentityInfoEntry\x12\x0e\n\x06\x66rozen\x18\x01 \x01(\x08\x1a\xb7\x01\n\x0eTokenInfoEntry\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x86\x01\n\x04info\x18\x02 \x01(\x0b\x32s.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.TokenIdentityInfoEntryH\x00\x88\x01\x01\x42\x07\n\x05_info\x1a\x97\x01\n\x12IdentityTokenInfos\x12\x80\x01\n\x0btoken_infos\x18\x01 \x03(\x0b\x32k.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.TokenInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xbf\x01\n\x17GetTokenStatusesRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetTokenStatusesRequest.GetTokenStatusesRequestV0H\x00\x1a=\n\x19GetTokenStatusesRequestV0\x12\x11\n\ttoken_ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xe7\x04\n\x18GetTokenStatusesResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0H\x00\x1a\xe1\x03\n\x1aGetTokenStatusesResponseV0\x12v\n\x0etoken_statuses\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatusesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x44\n\x10TokenStatusEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x13\n\x06paused\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\t\n\x07_paused\x1a\x88\x01\n\rTokenStatuses\x12w\n\x0etoken_statuses\x18\x01 \x03(\x0b\x32_.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatusEntryB\x08\n\x06resultB\t\n\x07version\"\xef\x01\n#GetTokenDirectPurchasePricesRequest\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0H\x00\x1aI\n%GetTokenDirectPurchasePricesRequestV0\x12\x11\n\ttoken_ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x8b\t\n$GetTokenDirectPurchasePricesResponse\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0H\x00\x1a\xe1\x07\n&GetTokenDirectPurchasePricesResponseV0\x12\xa9\x01\n\x1ctoken_direct_purchase_prices\x18\x01 \x01(\x0b\x32\x80\x01.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.TokenDirectPurchasePricesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x33\n\x10PriceForQuantity\x12\x10\n\x08quantity\x18\x01 \x01(\x04\x12\r\n\x05price\x18\x02 \x01(\x04\x1a\xa7\x01\n\x0fPricingSchedule\x12\x93\x01\n\x12price_for_quantity\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.PriceForQuantity\x1a\xe4\x01\n\x1dTokenDirectPurchasePriceEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x15\n\x0b\x66ixed_price\x18\x02 \x01(\x04H\x00\x12\x90\x01\n\x0evariable_price\x18\x03 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.PricingScheduleH\x00\x42\x07\n\x05price\x1a\xc8\x01\n\x19TokenDirectPurchasePrices\x12\xaa\x01\n\x1btoken_direct_purchase_price\x18\x01 \x03(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.TokenDirectPurchasePriceEntryB\x08\n\x06resultB\t\n\x07version\"\xce\x01\n\x1bGetTokenContractInfoRequest\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0H\x00\x1a@\n\x1dGetTokenContractInfoRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xfb\x03\n\x1cGetTokenContractInfoResponse\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0H\x00\x1a\xe9\x02\n\x1eGetTokenContractInfoResponseV0\x12|\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32l.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoDataH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aM\n\x15TokenContractInfoData\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17token_contract_position\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xef\x04\n)GetTokenPreProgrammedDistributionsRequest\x12~\n\x02v0\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest.GetTokenPreProgrammedDistributionsRequestV0H\x00\x1a\xb6\x03\n+GetTokenPreProgrammedDistributionsRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x98\x01\n\rstart_at_info\x18\x02 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest.GetTokenPreProgrammedDistributionsRequestV0.StartAtInfoH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x04 \x01(\x08\x1a\x9a\x01\n\x0bStartAtInfo\x12\x15\n\rstart_time_ms\x18\x01 \x01(\x04\x12\x1c\n\x0fstart_recipient\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12%\n\x18start_recipient_included\x18\x03 \x01(\x08H\x01\x88\x01\x01\x42\x12\n\x10_start_recipientB\x1b\n\x19_start_recipient_includedB\x10\n\x0e_start_at_infoB\x08\n\x06_limitB\t\n\x07version\"\xec\x07\n*GetTokenPreProgrammedDistributionsResponse\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0H\x00\x1a\xaf\x06\n,GetTokenPreProgrammedDistributionsResponseV0\x12\xa5\x01\n\x13token_distributions\x18\x01 \x01(\x0b\x32\x85\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenDistributionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a>\n\x16TokenDistributionEntry\x12\x14\n\x0crecipient_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x1a\xd4\x01\n\x1bTokenTimedDistributionEntry\x12\x11\n\ttimestamp\x18\x01 \x01(\x04\x12\xa1\x01\n\rdistributions\x18\x02 \x03(\x0b\x32\x89\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenDistributionEntry\x1a\xc3\x01\n\x12TokenDistributions\x12\xac\x01\n\x13token_distributions\x18\x01 \x03(\x0b\x32\x8e\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenTimedDistributionEntryB\x08\n\x06resultB\t\n\x07version\"\x82\x04\n-GetTokenPerpetualDistributionLastClaimRequest\x12\x86\x01\n\x02v0\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0H\x00\x1aI\n\x11\x43ontractTokenInfo\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17token_contract_position\x18\x02 \x01(\r\x1a\xf1\x01\n/GetTokenPerpetualDistributionLastClaimRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12v\n\rcontract_info\x18\x02 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfoH\x00\x88\x01\x01\x12\x13\n\x0bidentity_id\x18\x04 \x01(\x0c\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x10\n\x0e_contract_infoB\t\n\x07version\"\x93\x05\n.GetTokenPerpetualDistributionLastClaimResponse\x12\x88\x01\n\x02v0\x18\x01 \x01(\x0b\x32z.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0H\x00\x1a\xca\x03\n0GetTokenPerpetualDistributionLastClaimResponseV0\x12\x9f\x01\n\nlast_claim\x18\x01 \x01(\x0b\x32\x88\x01.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfoH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1ax\n\rLastClaimInfo\x12\x1a\n\x0ctimestamp_ms\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x1a\n\x0c\x62lock_height\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12\x0f\n\x05\x65poch\x18\x03 \x01(\rH\x00\x12\x13\n\traw_bytes\x18\x04 \x01(\x0cH\x00\x42\t\n\x07paid_atB\x08\n\x06resultB\t\n\x07version\"\xca\x01\n\x1aGetTokenTotalSupplyRequest\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0H\x00\x1a?\n\x1cGetTokenTotalSupplyRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xaf\x04\n\x1bGetTokenTotalSupplyResponse\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0H\x00\x1a\xa0\x03\n\x1dGetTokenTotalSupplyResponseV0\x12\x88\x01\n\x12token_total_supply\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1ax\n\x15TokenTotalSupplyEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x30\n(total_aggregated_amount_in_user_accounts\x18\x02 \x01(\x04\x12\x1b\n\x13total_system_amount\x18\x03 \x01(\x04\x42\x08\n\x06resultB\t\n\x07version\"\xd2\x01\n\x13GetGroupInfoRequest\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetGroupInfoRequest.GetGroupInfoRequestV0H\x00\x1a\\\n\x15GetGroupInfoRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xd4\x05\n\x14GetGroupInfoResponse\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0H\x00\x1a\xda\x04\n\x16GetGroupInfoResponseV0\x12\x66\n\ngroup_info\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupInfoH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x04 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x34\n\x10GroupMemberEntry\x12\x11\n\tmember_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\x98\x01\n\x0eGroupInfoEntry\x12h\n\x07members\x18\x01 \x03(\x0b\x32W.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupMemberEntry\x12\x1c\n\x14group_required_power\x18\x02 \x01(\r\x1a\x8a\x01\n\tGroupInfo\x12n\n\ngroup_info\x18\x01 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupInfoEntryH\x00\x88\x01\x01\x42\r\n\x0b_group_infoB\x08\n\x06resultB\t\n\x07version\"\xed\x03\n\x14GetGroupInfosRequest\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetGroupInfosRequest.GetGroupInfosRequestV0H\x00\x1au\n\x1cStartAtGroupContractPosition\x12%\n\x1dstart_group_contract_position\x18\x01 \x01(\r\x12.\n&start_group_contract_position_included\x18\x02 \x01(\x08\x1a\xfc\x01\n\x16GetGroupInfosRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12{\n start_at_group_contract_position\x18\x02 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetGroupInfosRequest.StartAtGroupContractPositionH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x04 \x01(\x08\x42#\n!_start_at_group_contract_positionB\x08\n\x06_countB\t\n\x07version\"\xff\x05\n\x15GetGroupInfosResponse\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0H\x00\x1a\x82\x05\n\x17GetGroupInfosResponseV0\x12j\n\x0bgroup_infos\x18\x01 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x04 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x34\n\x10GroupMemberEntry\x12\x11\n\tmember_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\xc3\x01\n\x16GroupPositionInfoEntry\x12\x1f\n\x17group_contract_position\x18\x01 \x01(\r\x12j\n\x07members\x18\x02 \x03(\x0b\x32Y.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupMemberEntry\x12\x1c\n\x14group_required_power\x18\x03 \x01(\r\x1a\x82\x01\n\nGroupInfos\x12t\n\x0bgroup_infos\x18\x01 \x03(\x0b\x32_.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupPositionInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xbe\x04\n\x16GetGroupActionsRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetGroupActionsRequest.GetGroupActionsRequestV0H\x00\x1aL\n\x0fStartAtActionId\x12\x17\n\x0fstart_action_id\x18\x01 \x01(\x0c\x12 \n\x18start_action_id_included\x18\x02 \x01(\x08\x1a\xc8\x02\n\x18GetGroupActionsRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12N\n\x06status\x18\x03 \x01(\x0e\x32>.org.dash.platform.dapi.v0.GetGroupActionsRequest.ActionStatus\x12\x62\n\x12start_at_action_id\x18\x04 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetGroupActionsRequest.StartAtActionIdH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x06 \x01(\x08\x42\x15\n\x13_start_at_action_idB\x08\n\x06_count\"&\n\x0c\x41\x63tionStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\n\n\x06\x43LOSED\x10\x01\x42\t\n\x07version\"\xd6\x1e\n\x17GetGroupActionsResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0H\x00\x1a\xd3\x1d\n\x19GetGroupActionsResponseV0\x12r\n\rgroup_actions\x18\x01 \x01(\x0b\x32Y.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a[\n\tMintEvent\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x04\x12\x14\n\x0crecipient_id\x18\x02 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a[\n\tBurnEvent\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x04\x12\x14\n\x0c\x62urn_from_id\x18\x02 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1aJ\n\x0b\x46reezeEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1aL\n\rUnfreezeEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\x66\n\x17\x44\x65stroyFrozenFundsEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\x64\n\x13SharedEncryptedNote\x12\x18\n\x10sender_key_index\x18\x01 \x01(\r\x12\x1b\n\x13recipient_key_index\x18\x02 \x01(\r\x12\x16\n\x0e\x65ncrypted_data\x18\x03 \x01(\x0c\x1a{\n\x15PersonalEncryptedNote\x12!\n\x19root_encryption_key_index\x18\x01 \x01(\r\x12\'\n\x1f\x64\x65rivation_encryption_key_index\x18\x02 \x01(\r\x12\x16\n\x0e\x65ncrypted_data\x18\x03 \x01(\x0c\x1a\xe9\x01\n\x14\x45mergencyActionEvent\x12\x81\x01\n\x0b\x61\x63tion_type\x18\x01 \x01(\x0e\x32l.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.EmergencyActionEvent.ActionType\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\"#\n\nActionType\x12\t\n\x05PAUSE\x10\x00\x12\n\n\x06RESUME\x10\x01\x42\x0e\n\x0c_public_note\x1a\x64\n\x16TokenConfigUpdateEvent\x12 \n\x18token_config_update_item\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\xe6\x03\n\x1eUpdateDirectPurchasePriceEvent\x12\x15\n\x0b\x66ixed_price\x18\x01 \x01(\x04H\x00\x12\x95\x01\n\x0evariable_price\x18\x02 \x01(\x0b\x32{.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.PricingScheduleH\x00\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x01\x88\x01\x01\x1a\x33\n\x10PriceForQuantity\x12\x10\n\x08quantity\x18\x01 \x01(\x04\x12\r\n\x05price\x18\x02 \x01(\x04\x1a\xac\x01\n\x0fPricingSchedule\x12\x98\x01\n\x12price_for_quantity\x18\x01 \x03(\x0b\x32|.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.PriceForQuantityB\x07\n\x05priceB\x0e\n\x0c_public_note\x1a\xfc\x02\n\x10GroupActionEvent\x12n\n\x0btoken_event\x18\x01 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEventH\x00\x12t\n\x0e\x64ocument_event\x18\x02 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DocumentEventH\x00\x12t\n\x0e\x63ontract_event\x18\x03 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ContractEventH\x00\x42\x0c\n\nevent_type\x1a\x8b\x01\n\rDocumentEvent\x12r\n\x06\x63reate\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DocumentCreateEventH\x00\x42\x06\n\x04type\x1a/\n\x13\x44ocumentCreateEvent\x12\x18\n\x10\x63reated_document\x18\x01 \x01(\x0c\x1a/\n\x13\x43ontractUpdateEvent\x12\x18\n\x10updated_contract\x18\x01 \x01(\x0c\x1a\x8b\x01\n\rContractEvent\x12r\n\x06update\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ContractUpdateEventH\x00\x42\x06\n\x04type\x1a\xd1\x07\n\nTokenEvent\x12\x66\n\x04mint\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintEventH\x00\x12\x66\n\x04\x62urn\x18\x02 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnEventH\x00\x12j\n\x06\x66reeze\x18\x03 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.FreezeEventH\x00\x12n\n\x08unfreeze\x18\x04 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UnfreezeEventH\x00\x12\x84\x01\n\x14\x64\x65stroy_frozen_funds\x18\x05 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DestroyFrozenFundsEventH\x00\x12}\n\x10\x65mergency_action\x18\x06 \x01(\x0b\x32\x61.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.EmergencyActionEventH\x00\x12\x82\x01\n\x13token_config_update\x18\x07 \x01(\x0b\x32\x63.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenConfigUpdateEventH\x00\x12\x83\x01\n\x0cupdate_price\x18\x08 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEventH\x00\x42\x06\n\x04type\x1a\x93\x01\n\x10GroupActionEntry\x12\x11\n\taction_id\x18\x01 \x01(\x0c\x12l\n\x05\x65vent\x18\x02 \x01(\x0b\x32].org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionEvent\x1a\x84\x01\n\x0cGroupActions\x12t\n\rgroup_actions\x18\x01 \x03(\x0b\x32].org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionEntryB\x08\n\x06resultB\t\n\x07version\"\x88\x03\n\x1cGetGroupActionSignersRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionSignersRequest.GetGroupActionSignersRequestV0H\x00\x1a\xce\x01\n\x1eGetGroupActionSignersRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12T\n\x06status\x18\x03 \x01(\x0e\x32\x44.org.dash.platform.dapi.v0.GetGroupActionSignersRequest.ActionStatus\x12\x11\n\taction_id\x18\x04 \x01(\x0c\x12\r\n\x05prove\x18\x05 \x01(\x08\"&\n\x0c\x41\x63tionStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\n\n\x06\x43LOSED\x10\x01\x42\t\n\x07version\"\x8b\x05\n\x1dGetGroupActionSignersResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0H\x00\x1a\xf6\x03\n\x1fGetGroupActionSignersResponseV0\x12\x8b\x01\n\x14group_action_signers\x18\x01 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0.GroupActionSignersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x35\n\x11GroupActionSigner\x12\x11\n\tsigner_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\x91\x01\n\x12GroupActionSigners\x12{\n\x07signers\x18\x01 \x03(\x0b\x32j.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0.GroupActionSignerB\x08\n\x06resultB\t\n\x07version\"\xb5\x01\n\x15GetAddressInfoRequest\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0H\x00\x1a\x39\n\x17GetAddressInfoRequestV0\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x85\x01\n\x10\x41\x64\x64ressInfoEntry\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12J\n\x11\x62\x61lance_and_nonce\x18\x02 \x01(\x0b\x32*.org.dash.platform.dapi.v0.BalanceAndNonceH\x00\x88\x01\x01\x42\x14\n\x12_balance_and_nonce\"1\n\x0f\x42\x61lanceAndNonce\x12\x0f\n\x07\x62\x61lance\x18\x01 \x01(\x04\x12\r\n\x05nonce\x18\x02 \x01(\r\"_\n\x12\x41\x64\x64ressInfoEntries\x12I\n\x14\x61\x64\x64ress_info_entries\x18\x01 \x03(\x0b\x32+.org.dash.platform.dapi.v0.AddressInfoEntry\"m\n\x14\x41\x64\x64ressBalanceChange\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\x19\n\x0bset_balance\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12\x1c\n\x0e\x61\x64\x64_to_balance\x18\x03 \x01(\x04\x42\x02\x30\x01H\x00\x42\x0b\n\toperation\"x\n\x1a\x42lockAddressBalanceChanges\x12\x18\n\x0c\x62lock_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12@\n\x07\x63hanges\x18\x02 \x03(\x0b\x32/.org.dash.platform.dapi.v0.AddressBalanceChange\"k\n\x1b\x41\x64\x64ressBalanceUpdateEntries\x12L\n\rblock_changes\x18\x01 \x03(\x0b\x32\x35.org.dash.platform.dapi.v0.BlockAddressBalanceChanges\"\xe1\x02\n\x16GetAddressInfoResponse\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0H\x00\x1a\xe1\x01\n\x18GetAddressInfoResponseV0\x12I\n\x12\x61\x64\x64ress_info_entry\x18\x01 \x01(\x0b\x32+.org.dash.platform.dapi.v0.AddressInfoEntryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc3\x01\n\x18GetAddressesInfosRequest\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0H\x00\x1a>\n\x1aGetAddressesInfosRequestV0\x12\x11\n\taddresses\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf1\x02\n\x19GetAddressesInfosResponse\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0H\x00\x1a\xe8\x01\n\x1bGetAddressesInfosResponseV0\x12M\n\x14\x61\x64\x64ress_info_entries\x18\x01 \x01(\x0b\x32-.org.dash.platform.dapi.v0.AddressInfoEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb5\x01\n\x1dGetAddressesTrunkStateRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0H\x00\x1a!\n\x1fGetAddressesTrunkStateRequestV0B\t\n\x07version\"\xaa\x02\n\x1eGetAddressesTrunkStateResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0H\x00\x1a\x92\x01\n GetAddressesTrunkStateResponseV0\x12/\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.Proof\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\t\n\x07version\"\xf0\x01\n\x1eGetAddressesBranchStateRequest\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0H\x00\x1aY\n GetAddressesBranchStateRequestV0\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\r\x12\x19\n\x11\x63heckpoint_height\x18\x03 \x01(\x04\x42\t\n\x07version\"\xd1\x01\n\x1fGetAddressesBranchStateResponse\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0H\x00\x1a\x37\n!GetAddressesBranchStateResponseV0\x12\x12\n\nmerk_proof\x18\x02 \x01(\x0c\x42\t\n\x07version\"\x9e\x02\n%GetRecentAddressBalanceChangesRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0H\x00\x1ar\n\'GetRecentAddressBalanceChangesRequestV0\x12\x18\n\x0cstart_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x12\x1e\n\x16start_height_exclusive\x18\x03 \x01(\x08\x42\t\n\x07version\"\xb8\x03\n&GetRecentAddressBalanceChangesResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0H\x00\x1a\x88\x02\n(GetRecentAddressBalanceChangesResponseV0\x12`\n\x1e\x61\x64\x64ress_balance_update_entries\x18\x01 \x01(\x0b\x32\x36.org.dash.platform.dapi.v0.AddressBalanceUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"G\n\x16\x42lockHeightCreditEntry\x12\x18\n\x0c\x62lock_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x13\n\x07\x63redits\x18\x02 \x01(\x04\x42\x02\x30\x01\"\xb0\x01\n\x1d\x43ompactedAddressBalanceChange\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\x19\n\x0bset_credits\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12V\n\x19\x61\x64\x64_to_credits_operations\x18\x03 \x01(\x0b\x32\x31.org.dash.platform.dapi.v0.AddToCreditsOperationsH\x00\x42\x0b\n\toperation\"\\\n\x16\x41\x64\x64ToCreditsOperations\x12\x42\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x31.org.dash.platform.dapi.v0.BlockHeightCreditEntry\"\xae\x01\n#CompactedBlockAddressBalanceChanges\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1c\n\x10\x65nd_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12I\n\x07\x63hanges\x18\x03 \x03(\x0b\x32\x38.org.dash.platform.dapi.v0.CompactedAddressBalanceChange\"\x87\x01\n$CompactedAddressBalanceUpdateEntries\x12_\n\x17\x63ompacted_block_changes\x18\x01 \x03(\x0b\x32>.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges\"\xa9\x02\n.GetRecentCompactedAddressBalanceChangesRequest\x12\x88\x01\n\x02v0\x18\x01 \x01(\x0b\x32z.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0H\x00\x1a\x61\n0GetRecentCompactedAddressBalanceChangesRequestV0\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf0\x03\n/GetRecentCompactedAddressBalanceChangesResponse\x12\x8a\x01\n\x02v0\x18\x01 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0H\x00\x1a\xa4\x02\n1GetRecentCompactedAddressBalanceChangesResponseV0\x12s\n(compacted_address_balance_update_entries\x18\x01 \x01(\x0b\x32?.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xf4\x01\n GetShieldedEncryptedNotesRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0H\x00\x1aW\n\"GetShieldedEncryptedNotesRequestV0\x12\x13\n\x0bstart_index\x18\x01 \x01(\x04\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xbc\x05\n!GetShieldedEncryptedNotesResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0H\x00\x1a\x9b\x04\n#GetShieldedEncryptedNotesResponseV0\x12\x8a\x01\n\x0f\x65ncrypted_notes\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aW\n\rEncryptedNote\x12\x11\n\tnullifier\x18\x01 \x01(\x0c\x12\x0b\n\x03\x63mx\x18\x02 \x01(\x0c\x12\x16\n\x0e\x65ncrypted_note\x18\x03 \x01(\x0c\x12\x0e\n\x06\x63v_net\x18\x04 \x01(\x0c\x1a\x91\x01\n\x0e\x45ncryptedNotes\x12\x7f\n\x07\x65ntries\x18\x01 \x03(\x0b\x32n.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNoteB\x08\n\x06resultB\t\n\x07version\"\xb4\x01\n\x19GetShieldedAnchorsRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0H\x00\x1a,\n\x1bGetShieldedAnchorsRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xb1\x03\n\x1aGetShieldedAnchorsResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0H\x00\x1a\xa5\x02\n\x1cGetShieldedAnchorsResponseV0\x12m\n\x07\x61nchors\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.AnchorsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1a\n\x07\x41nchors\x12\x0f\n\x07\x61nchors\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xd8\x01\n\"GetMostRecentShieldedAnchorRequest\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0H\x00\x1a\x35\n$GetMostRecentShieldedAnchorRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xdc\x02\n#GetMostRecentShieldedAnchorResponse\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0H\x00\x1a\xb5\x01\n%GetMostRecentShieldedAnchorResponseV0\x12\x10\n\x06\x61nchor\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbc\x01\n\x1bGetShieldedPoolStateRequest\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0H\x00\x1a.\n\x1dGetShieldedPoolStateRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xcb\x02\n\x1cGetShieldedPoolStateResponse\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0H\x00\x1a\xb9\x01\n\x1eGetShieldedPoolStateResponseV0\x12\x1b\n\rtotal_balance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc0\x01\n\x1cGetShieldedNotesCountRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0H\x00\x1a/\n\x1eGetShieldedNotesCountRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xd3\x02\n\x1dGetShieldedNotesCountResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0H\x00\x1a\xbe\x01\n\x1fGetShieldedNotesCountResponseV0\x12\x1f\n\x11total_notes_count\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xd4\x01\n\x1cGetShieldedNullifiersRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0H\x00\x1a\x43\n\x1eGetShieldedNullifiersRequestV0\x12\x12\n\nnullifiers\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x86\x05\n\x1dGetShieldedNullifiersResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0H\x00\x1a\xf1\x03\n\x1fGetShieldedNullifiersResponseV0\x12\x88\x01\n\x12nullifier_statuses\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatusesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x36\n\x0fNullifierStatus\x12\x11\n\tnullifier\x18\x01 \x01(\x0c\x12\x10\n\x08is_spent\x18\x02 \x01(\x08\x1a\x8e\x01\n\x11NullifierStatuses\x12y\n\x07\x65ntries\x18\x01 \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatusB\x08\n\x06resultB\t\n\x07version\"\xe5\x01\n\x1eGetNullifiersTrunkStateRequest\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0H\x00\x1aN\n GetNullifiersTrunkStateRequestV0\x12\x11\n\tpool_type\x18\x01 \x01(\r\x12\x17\n\x0fpool_identifier\x18\x02 \x01(\x0c\x42\t\n\x07version\"\xae\x02\n\x1fGetNullifiersTrunkStateResponse\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0H\x00\x1a\x93\x01\n!GetNullifiersTrunkStateResponseV0\x12/\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.Proof\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\t\n\x07version\"\xa1\x02\n\x1fGetNullifiersBranchStateRequest\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0H\x00\x1a\x86\x01\n!GetNullifiersBranchStateRequestV0\x12\x11\n\tpool_type\x18\x01 \x01(\r\x12\x17\n\x0fpool_identifier\x18\x02 \x01(\x0c\x12\x0b\n\x03key\x18\x03 \x01(\x0c\x12\r\n\x05\x64\x65pth\x18\x04 \x01(\r\x12\x19\n\x11\x63heckpoint_height\x18\x05 \x01(\x04\x42\t\n\x07version\"\xd5\x01\n GetNullifiersBranchStateResponse\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0H\x00\x1a\x38\n\"GetNullifiersBranchStateResponseV0\x12\x12\n\nmerk_proof\x18\x02 \x01(\x0c\x42\t\n\x07version\"E\n\x15\x42lockNullifierChanges\x12\x18\n\x0c\x62lock_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x12\n\nnullifiers\x18\x02 \x03(\x0c\"a\n\x16NullifierUpdateEntries\x12G\n\rblock_changes\x18\x01 \x03(\x0b\x32\x30.org.dash.platform.dapi.v0.BlockNullifierChanges\"\xea\x01\n GetRecentNullifierChangesRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0H\x00\x1aM\n\"GetRecentNullifierChangesRequestV0\x12\x18\n\x0cstart_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x99\x03\n!GetRecentNullifierChangesResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0H\x00\x1a\xf8\x01\n#GetRecentNullifierChangesResponseV0\x12U\n\x18nullifier_update_entries\x18\x01 \x01(\x0b\x32\x31.org.dash.platform.dapi.v0.NullifierUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"r\n\x1e\x43ompactedBlockNullifierChanges\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1c\n\x10\x65nd_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x12\n\nnullifiers\x18\x03 \x03(\x0c\"}\n\x1f\x43ompactedNullifierUpdateEntries\x12Z\n\x17\x63ompacted_block_changes\x18\x01 \x03(\x0b\x32\x39.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges\"\x94\x02\n)GetRecentCompactedNullifierChangesRequest\x12~\n\x02v0\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0H\x00\x1a\\\n+GetRecentCompactedNullifierChangesRequestV0\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xd1\x03\n*GetRecentCompactedNullifierChangesResponse\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0H\x00\x1a\x94\x02\n,GetRecentCompactedNullifierChangesResponseV0\x12h\n\"compacted_nullifier_update_entries\x18\x01 \x01(\x0b\x32:.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version*Z\n\nKeyPurpose\x12\x12\n\x0e\x41UTHENTICATION\x10\x00\x12\x0e\n\nENCRYPTION\x10\x01\x12\x0e\n\nDECRYPTION\x10\x02\x12\x0c\n\x08TRANSFER\x10\x03\x12\n\n\x06VOTING\x10\x05\x32\xc4I\n\x08Platform\x12\x93\x01\n\x18\x62roadcastStateTransition\x12:.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest\x1a;.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse\x12l\n\x0bgetIdentity\x12-.org.dash.platform.dapi.v0.GetIdentityRequest\x1a..org.dash.platform.dapi.v0.GetIdentityResponse\x12x\n\x0fgetIdentityKeys\x12\x31.org.dash.platform.dapi.v0.GetIdentityKeysRequest\x1a\x32.org.dash.platform.dapi.v0.GetIdentityKeysResponse\x12\x96\x01\n\x19getIdentitiesContractKeys\x12;.org.dash.platform.dapi.v0.GetIdentitiesContractKeysRequest\x1a<.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse\x12{\n\x10getIdentityNonce\x12\x32.org.dash.platform.dapi.v0.GetIdentityNonceRequest\x1a\x33.org.dash.platform.dapi.v0.GetIdentityNonceResponse\x12\x93\x01\n\x18getIdentityContractNonce\x12:.org.dash.platform.dapi.v0.GetIdentityContractNonceRequest\x1a;.org.dash.platform.dapi.v0.GetIdentityContractNonceResponse\x12\x81\x01\n\x12getIdentityBalance\x12\x34.org.dash.platform.dapi.v0.GetIdentityBalanceRequest\x1a\x35.org.dash.platform.dapi.v0.GetIdentityBalanceResponse\x12\x8a\x01\n\x15getIdentitiesBalances\x12\x37.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest\x1a\x38.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse\x12\xa2\x01\n\x1dgetIdentityBalanceAndRevision\x12?.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionRequest\x1a@.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse\x12\xaf\x01\n#getEvonodesProposedEpochBlocksByIds\x12\x45.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest\x1a\x41.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse\x12\xb3\x01\n%getEvonodesProposedEpochBlocksByRange\x12G.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest\x1a\x41.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse\x12x\n\x0fgetDataContract\x12\x31.org.dash.platform.dapi.v0.GetDataContractRequest\x1a\x32.org.dash.platform.dapi.v0.GetDataContractResponse\x12\x8d\x01\n\x16getDataContractHistory\x12\x38.org.dash.platform.dapi.v0.GetDataContractHistoryRequest\x1a\x39.org.dash.platform.dapi.v0.GetDataContractHistoryResponse\x12{\n\x10getDataContracts\x12\x32.org.dash.platform.dapi.v0.GetDataContractsRequest\x1a\x33.org.dash.platform.dapi.v0.GetDataContractsResponse\x12\x81\x01\n\x12getDocumentHistory\x12\x34.org.dash.platform.dapi.v0.GetDocumentHistoryRequest\x1a\x35.org.dash.platform.dapi.v0.GetDocumentHistoryResponse\x12o\n\x0cgetDocuments\x12..org.dash.platform.dapi.v0.GetDocumentsRequest\x1a/.org.dash.platform.dapi.v0.GetDocumentsResponse\x12\x99\x01\n\x1agetIdentityByPublicKeyHash\x12<.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashRequest\x1a=.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashResponse\x12\xb4\x01\n#getIdentityByNonUniquePublicKeyHash\x12\x45.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest\x1a\x46.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse\x12\x9f\x01\n\x1cwaitForStateTransitionResult\x12>.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest\x1a?.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse\x12\x81\x01\n\x12getConsensusParams\x12\x34.org.dash.platform.dapi.v0.GetConsensusParamsRequest\x1a\x35.org.dash.platform.dapi.v0.GetConsensusParamsResponse\x12\xa5\x01\n\x1egetProtocolVersionUpgradeState\x12@.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateRequest\x1a\x41.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse\x12\xb4\x01\n#getProtocolVersionUpgradeVoteStatus\x12\x45.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusRequest\x1a\x46.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse\x12r\n\rgetEpochsInfo\x12/.org.dash.platform.dapi.v0.GetEpochsInfoRequest\x1a\x30.org.dash.platform.dapi.v0.GetEpochsInfoResponse\x12\x8d\x01\n\x16getFinalizedEpochInfos\x12\x38.org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest\x1a\x39.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse\x12\x8a\x01\n\x15getContestedResources\x12\x37.org.dash.platform.dapi.v0.GetContestedResourcesRequest\x1a\x38.org.dash.platform.dapi.v0.GetContestedResourcesResponse\x12\xa2\x01\n\x1dgetContestedResourceVoteState\x12?.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest\x1a@.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse\x12\xba\x01\n%getContestedResourceVotersForIdentity\x12G.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest\x1aH.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse\x12\xae\x01\n!getContestedResourceIdentityVotes\x12\x43.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest\x1a\x44.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse\x12\x8a\x01\n\x15getVotePollsByEndDate\x12\x37.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest\x1a\x38.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse\x12\xa5\x01\n\x1egetPrefundedSpecializedBalance\x12@.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceRequest\x1a\x41.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceResponse\x12\x96\x01\n\x19getTotalCreditsInPlatform\x12;.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest\x1a<.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse\x12x\n\x0fgetPathElements\x12\x31.org.dash.platform.dapi.v0.GetPathElementsRequest\x1a\x32.org.dash.platform.dapi.v0.GetPathElementsResponse\x12\x66\n\tgetStatus\x12+.org.dash.platform.dapi.v0.GetStatusRequest\x1a,.org.dash.platform.dapi.v0.GetStatusResponse\x12\x8a\x01\n\x15getCurrentQuorumsInfo\x12\x37.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest\x1a\x38.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse\x12\x93\x01\n\x18getIdentityTokenBalances\x12:.org.dash.platform.dapi.v0.GetIdentityTokenBalancesRequest\x1a;.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse\x12\x99\x01\n\x1agetIdentitiesTokenBalances\x12<.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesRequest\x1a=.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse\x12\x8a\x01\n\x15getIdentityTokenInfos\x12\x37.org.dash.platform.dapi.v0.GetIdentityTokenInfosRequest\x1a\x38.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse\x12\x90\x01\n\x17getIdentitiesTokenInfos\x12\x39.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosRequest\x1a:.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse\x12{\n\x10getTokenStatuses\x12\x32.org.dash.platform.dapi.v0.GetTokenStatusesRequest\x1a\x33.org.dash.platform.dapi.v0.GetTokenStatusesResponse\x12\x9f\x01\n\x1cgetTokenDirectPurchasePrices\x12>.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest\x1a?.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse\x12\x87\x01\n\x14getTokenContractInfo\x12\x36.org.dash.platform.dapi.v0.GetTokenContractInfoRequest\x1a\x37.org.dash.platform.dapi.v0.GetTokenContractInfoResponse\x12\xb1\x01\n\"getTokenPreProgrammedDistributions\x12\x44.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest\x1a\x45.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse\x12\xbd\x01\n&getTokenPerpetualDistributionLastClaim\x12H.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest\x1aI.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse\x12\x84\x01\n\x13getTokenTotalSupply\x12\x35.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest\x1a\x36.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse\x12o\n\x0cgetGroupInfo\x12..org.dash.platform.dapi.v0.GetGroupInfoRequest\x1a/.org.dash.platform.dapi.v0.GetGroupInfoResponse\x12r\n\rgetGroupInfos\x12/.org.dash.platform.dapi.v0.GetGroupInfosRequest\x1a\x30.org.dash.platform.dapi.v0.GetGroupInfosResponse\x12x\n\x0fgetGroupActions\x12\x31.org.dash.platform.dapi.v0.GetGroupActionsRequest\x1a\x32.org.dash.platform.dapi.v0.GetGroupActionsResponse\x12\x8a\x01\n\x15getGroupActionSigners\x12\x37.org.dash.platform.dapi.v0.GetGroupActionSignersRequest\x1a\x38.org.dash.platform.dapi.v0.GetGroupActionSignersResponse\x12u\n\x0egetAddressInfo\x12\x30.org.dash.platform.dapi.v0.GetAddressInfoRequest\x1a\x31.org.dash.platform.dapi.v0.GetAddressInfoResponse\x12~\n\x11getAddressesInfos\x12\x33.org.dash.platform.dapi.v0.GetAddressesInfosRequest\x1a\x34.org.dash.platform.dapi.v0.GetAddressesInfosResponse\x12\x8d\x01\n\x16getAddressesTrunkState\x12\x38.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest\x1a\x39.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse\x12\x90\x01\n\x17getAddressesBranchState\x12\x39.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest\x1a:.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse\x12\xa5\x01\n\x1egetRecentAddressBalanceChanges\x12@.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest\x1a\x41.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse\x12\xc0\x01\n\'getRecentCompactedAddressBalanceChanges\x12I.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest\x1aJ.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse\x12\x96\x01\n\x19getShieldedEncryptedNotes\x12;.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest\x1a<.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse\x12\x81\x01\n\x12getShieldedAnchors\x12\x34.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest\x1a\x35.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse\x12\x9c\x01\n\x1bgetMostRecentShieldedAnchor\x12=.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest\x1a>.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse\x12\x87\x01\n\x14getShieldedPoolState\x12\x36.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest\x1a\x37.org.dash.platform.dapi.v0.GetShieldedPoolStateResponse\x12\x8a\x01\n\x15getShieldedNotesCount\x12\x37.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest\x1a\x38.org.dash.platform.dapi.v0.GetShieldedNotesCountResponse\x12\x8a\x01\n\x15getShieldedNullifiers\x12\x37.org.dash.platform.dapi.v0.GetShieldedNullifiersRequest\x1a\x38.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse\x12\x90\x01\n\x17getNullifiersTrunkState\x12\x39.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest\x1a:.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse\x12\x93\x01\n\x18getNullifiersBranchState\x12:.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest\x1a;.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse\x12\x96\x01\n\x19getRecentNullifierChanges\x12;.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest\x1a<.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse\x12\xb1\x01\n\"getRecentCompactedNullifierChanges\x12\x44.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest\x1a\x45.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponseb\x06proto3' + serialized_pb=b'\n\x0eplatform.proto\x12\x19org.dash.platform.dapi.v0\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x81\x01\n\x05Proof\x12\x15\n\rgrovedb_proof\x18\x01 \x01(\x0c\x12\x13\n\x0bquorum_hash\x18\x02 \x01(\x0c\x12\x11\n\tsignature\x18\x03 \x01(\x0c\x12\r\n\x05round\x18\x04 \x01(\r\x12\x15\n\rblock_id_hash\x18\x05 \x01(\x0c\x12\x13\n\x0bquorum_type\x18\x06 \x01(\r\"\x98\x01\n\x10ResponseMetadata\x12\x12\n\x06height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12 \n\x18\x63ore_chain_locked_height\x18\x02 \x01(\r\x12\r\n\x05\x65poch\x18\x03 \x01(\r\x12\x13\n\x07time_ms\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x18\n\x10protocol_version\x18\x05 \x01(\r\x12\x10\n\x08\x63hain_id\x18\x06 \x01(\t\"L\n\x1dStateTransitionBroadcastError\x12\x0c\n\x04\x63ode\x18\x01 \x01(\r\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\";\n\x1f\x42roadcastStateTransitionRequest\x12\x18\n\x10state_transition\x18\x01 \x01(\x0c\"\"\n BroadcastStateTransitionResponse\"\xa4\x01\n\x12GetIdentityRequest\x12P\n\x02v0\x18\x01 \x01(\x0b\x32\x42.org.dash.platform.dapi.v0.GetIdentityRequest.GetIdentityRequestV0H\x00\x1a\x31\n\x14GetIdentityRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xc1\x01\n\x17GetIdentityNonceRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetIdentityNonceRequest.GetIdentityNonceRequestV0H\x00\x1a?\n\x19GetIdentityNonceRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf6\x01\n\x1fGetIdentityContractNonceRequest\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentityContractNonceRequest.GetIdentityContractNonceRequestV0H\x00\x1a\\\n!GetIdentityContractNonceRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xc0\x01\n\x19GetIdentityBalanceRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetIdentityBalanceRequest.GetIdentityBalanceRequestV0H\x00\x1a\x38\n\x1bGetIdentityBalanceRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xec\x01\n$GetIdentityBalanceAndRevisionRequest\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionRequest.GetIdentityBalanceAndRevisionRequestV0H\x00\x1a\x43\n&GetIdentityBalanceAndRevisionRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9e\x02\n\x13GetIdentityResponse\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetIdentityResponse.GetIdentityResponseV0H\x00\x1a\xa7\x01\n\x15GetIdentityResponseV0\x12\x12\n\x08identity\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbc\x02\n\x18GetIdentityNonceResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetIdentityNonceResponse.GetIdentityNonceResponseV0H\x00\x1a\xb6\x01\n\x1aGetIdentityNonceResponseV0\x12\x1c\n\x0eidentity_nonce\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xe5\x02\n GetIdentityContractNonceResponse\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentityContractNonceResponse.GetIdentityContractNonceResponseV0H\x00\x1a\xc7\x01\n\"GetIdentityContractNonceResponseV0\x12%\n\x17identity_contract_nonce\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbd\x02\n\x1aGetIdentityBalanceResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetIdentityBalanceResponse.GetIdentityBalanceResponseV0H\x00\x1a\xb1\x01\n\x1cGetIdentityBalanceResponseV0\x12\x15\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb1\x04\n%GetIdentityBalanceAndRevisionResponse\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.GetIdentityBalanceAndRevisionResponseV0H\x00\x1a\x84\x03\n\'GetIdentityBalanceAndRevisionResponseV0\x12\x9b\x01\n\x14\x62\x61lance_and_revision\x18\x01 \x01(\x0b\x32{.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse.GetIdentityBalanceAndRevisionResponseV0.BalanceAndRevisionH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a?\n\x12\x42\x61lanceAndRevision\x12\x13\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x14\n\x08revision\x18\x02 \x01(\x04\x42\x02\x30\x01\x42\x08\n\x06resultB\t\n\x07version\"\xd1\x01\n\x0eKeyRequestType\x12\x36\n\x08\x61ll_keys\x18\x01 \x01(\x0b\x32\".org.dash.platform.dapi.v0.AllKeysH\x00\x12@\n\rspecific_keys\x18\x02 \x01(\x0b\x32\'.org.dash.platform.dapi.v0.SpecificKeysH\x00\x12:\n\nsearch_key\x18\x03 \x01(\x0b\x32$.org.dash.platform.dapi.v0.SearchKeyH\x00\x42\t\n\x07request\"\t\n\x07\x41llKeys\"\x1f\n\x0cSpecificKeys\x12\x0f\n\x07key_ids\x18\x01 \x03(\r\"\xb6\x01\n\tSearchKey\x12I\n\x0bpurpose_map\x18\x01 \x03(\x0b\x32\x34.org.dash.platform.dapi.v0.SearchKey.PurposeMapEntry\x1a^\n\x0fPurposeMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.org.dash.platform.dapi.v0.SecurityLevelMap:\x02\x38\x01\"\xbf\x02\n\x10SecurityLevelMap\x12]\n\x12security_level_map\x18\x01 \x03(\x0b\x32\x41.org.dash.platform.dapi.v0.SecurityLevelMap.SecurityLevelMapEntry\x1aw\n\x15SecurityLevelMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\r\x12M\n\x05value\x18\x02 \x01(\x0e\x32>.org.dash.platform.dapi.v0.SecurityLevelMap.KeyKindRequestType:\x02\x38\x01\"S\n\x12KeyKindRequestType\x12\x1f\n\x1b\x43URRENT_KEY_OF_KIND_REQUEST\x10\x00\x12\x1c\n\x18\x41LL_KEYS_OF_KIND_REQUEST\x10\x01\"\xda\x02\n\x16GetIdentityKeysRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetIdentityKeysRequest.GetIdentityKeysRequestV0H\x00\x1a\xda\x01\n\x18GetIdentityKeysRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12?\n\x0crequest_type\x18\x02 \x01(\x0b\x32).org.dash.platform.dapi.v0.KeyRequestType\x12+\n\x05limit\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\x99\x03\n\x17GetIdentityKeysResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetIdentityKeysResponse.GetIdentityKeysResponseV0H\x00\x1a\x96\x02\n\x19GetIdentityKeysResponseV0\x12\x61\n\x04keys\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetIdentityKeysResponse.GetIdentityKeysResponseV0.KeysH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1a\n\x04Keys\x12\x12\n\nkeys_bytes\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xef\x02\n GetIdentitiesContractKeysRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentitiesContractKeysRequest.GetIdentitiesContractKeysRequestV0H\x00\x1a\xd1\x01\n\"GetIdentitiesContractKeysRequestV0\x12\x16\n\x0eidentities_ids\x18\x01 \x03(\x0c\x12\x13\n\x0b\x63ontract_id\x18\x02 \x01(\x0c\x12\x1f\n\x12\x64ocument_type_name\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x37\n\x08purposes\x18\x04 \x03(\x0e\x32%.org.dash.platform.dapi.v0.KeyPurpose\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x15\n\x13_document_type_nameB\t\n\x07version\"\xdf\x06\n!GetIdentitiesContractKeysResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0H\x00\x1a\xbe\x05\n#GetIdentitiesContractKeysResponseV0\x12\x8a\x01\n\x0fidentities_keys\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.IdentitiesKeysH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aY\n\x0bPurposeKeys\x12\x36\n\x07purpose\x18\x01 \x01(\x0e\x32%.org.dash.platform.dapi.v0.KeyPurpose\x12\x12\n\nkeys_bytes\x18\x02 \x03(\x0c\x1a\x9f\x01\n\x0cIdentityKeys\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12z\n\x04keys\x18\x02 \x03(\x0b\x32l.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.PurposeKeys\x1a\x90\x01\n\x0eIdentitiesKeys\x12~\n\x07\x65ntries\x18\x01 \x03(\x0b\x32m.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse.GetIdentitiesContractKeysResponseV0.IdentityKeysB\x08\n\x06resultB\t\n\x07version\"\xa4\x02\n*GetEvonodesProposedEpochBlocksByIdsRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest.GetEvonodesProposedEpochBlocksByIdsRequestV0H\x00\x1ah\n,GetEvonodesProposedEpochBlocksByIdsRequestV0\x12\x12\n\x05\x65poch\x18\x01 \x01(\rH\x00\x88\x01\x01\x12\x0b\n\x03ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\x08\n\x06_epochB\t\n\x07version\"\x92\x06\n&GetEvonodesProposedEpochBlocksResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0H\x00\x1a\xe2\x04\n(GetEvonodesProposedEpochBlocksResponseV0\x12\xb1\x01\n#evonodes_proposed_block_counts_info\x18\x01 \x01(\x0b\x32\x81\x01.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodesProposedBlocksH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a?\n\x15\x45vonodeProposedBlocks\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x02 \x01(\x04\x42\x02\x30\x01\x1a\xc4\x01\n\x16\x45vonodesProposedBlocks\x12\xa9\x01\n\x1e\x65vonodes_proposed_block_counts\x18\x01 \x03(\x0b\x32\x80\x01.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse.GetEvonodesProposedEpochBlocksResponseV0.EvonodeProposedBlocksB\x08\n\x06resultB\t\n\x07version\"\xf2\x02\n,GetEvonodesProposedEpochBlocksByRangeRequest\x12\x84\x01\n\x02v0\x18\x01 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest.GetEvonodesProposedEpochBlocksByRangeRequestV0H\x00\x1a\xaf\x01\n.GetEvonodesProposedEpochBlocksByRangeRequestV0\x12\x12\n\x05\x65poch\x18\x01 \x01(\rH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x02 \x01(\rH\x02\x88\x01\x01\x12\x15\n\x0bstart_after\x18\x03 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x04 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x07\n\x05startB\x08\n\x06_epochB\x08\n\x06_limitB\t\n\x07version\"\xcd\x01\n\x1cGetIdentitiesBalancesRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest.GetIdentitiesBalancesRequestV0H\x00\x1a<\n\x1eGetIdentitiesBalancesRequestV0\x12\x0b\n\x03ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9f\x05\n\x1dGetIdentitiesBalancesResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0H\x00\x1a\x8a\x04\n\x1fGetIdentitiesBalancesResponseV0\x12\x8a\x01\n\x13identities_balances\x18\x01 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentitiesBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aL\n\x0fIdentityBalance\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\x8f\x01\n\x12IdentitiesBalances\x12y\n\x07\x65ntries\x18\x01 \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse.GetIdentitiesBalancesResponseV0.IdentityBalanceB\x08\n\x06resultB\t\n\x07version\"\xb4\x01\n\x16GetDataContractRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetDataContractRequest.GetDataContractRequestV0H\x00\x1a\x35\n\x18GetDataContractRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xb3\x02\n\x17GetDataContractResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetDataContractResponse.GetDataContractResponseV0H\x00\x1a\xb0\x01\n\x19GetDataContractResponseV0\x12\x17\n\rdata_contract\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb9\x01\n\x17GetDataContractsRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetDataContractsRequest.GetDataContractsRequestV0H\x00\x1a\x37\n\x19GetDataContractsRequestV0\x12\x0b\n\x03ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xcf\x04\n\x18GetDataContractsResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetDataContractsResponse.GetDataContractsResponseV0H\x00\x1a[\n\x11\x44\x61taContractEntry\x12\x12\n\nidentifier\x18\x01 \x01(\x0c\x12\x32\n\rdata_contract\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.BytesValue\x1au\n\rDataContracts\x12\x64\n\x15\x64\x61ta_contract_entries\x18\x01 \x03(\x0b\x32\x45.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContractEntry\x1a\xf5\x01\n\x1aGetDataContractsResponseV0\x12[\n\x0e\x64\x61ta_contracts\x18\x01 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDataContractsResponse.DataContractsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc5\x02\n\x1dGetDataContractHistoryRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetDataContractHistoryRequest.GetDataContractHistoryRequestV0H\x00\x1a\xb0\x01\n\x1fGetDataContractHistoryRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12+\n\x05limit\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0bstart_at_ms\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\xb2\x05\n\x1eGetDataContractHistoryResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0H\x00\x1a\x9a\x04\n GetDataContractHistoryResponseV0\x12\x8f\x01\n\x15\x64\x61ta_contract_history\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0.DataContractHistoryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a;\n\x18\x44\x61taContractHistoryEntry\x12\x10\n\x04\x64\x61te\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05value\x18\x02 \x01(\x0c\x1a\xaa\x01\n\x13\x44\x61taContractHistory\x12\x92\x01\n\x15\x64\x61ta_contract_entries\x18\x01 \x03(\x0b\x32s.org.dash.platform.dapi.v0.GetDataContractHistoryResponse.GetDataContractHistoryResponseV0.DataContractHistoryEntryB\x08\n\x06resultB\t\n\x07version\"\xdb\x17\n\x13GetDocumentsRequest\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV0H\x00\x12R\n\x02v1\x18\x02 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1H\x00\x1a\xfe\x02\n\x12\x44ocumentFieldValue\x12\x14\n\nbool_value\x18\x01 \x01(\x08H\x00\x12\x19\n\x0bint64_value\x18\x02 \x01(\x12\x42\x02\x30\x01H\x00\x12\x1a\n\x0cuint64_value\x18\x03 \x01(\x04\x42\x02\x30\x01H\x00\x12\x16\n\x0c\x64ouble_value\x18\x04 \x01(\x01H\x00\x12\x0e\n\x04text\x18\x05 \x01(\tH\x00\x12\x15\n\x0b\x62ytes_value\x18\x06 \x01(\x0cH\x00\x12[\n\x04list\x18\x07 \x01(\x0b\x32K.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue.ValueListH\x00\x12\x14\n\nnull_value\x18\x08 \x01(\x08H\x00\x1a^\n\tValueList\x12Q\n\x06values\x18\x01 \x03(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValueB\t\n\x07variant\x1a\xbe\x01\n\x0bWhereClause\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12N\n\x08operator\x18\x02 \x01(\x0e\x32<.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereOperator\x12P\n\x05value\x18\x03 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValue\x1a\xa4\x01\n\x0fHavingAggregate\x12Y\n\x08\x66unction\x18\x01 \x01(\x0e\x32G.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate.Function\x12\r\n\x05\x66ield\x18\x02 \x01(\t\"\'\n\x08\x46unction\x12\t\n\x05\x43OUNT\x10\x00\x12\x07\n\x03SUM\x10\x01\x12\x07\n\x03\x41VG\x10\x02\x1a\xa9\x01\n\rHavingRanking\x12O\n\x04kind\x18\x01 \x01(\x0e\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRanking.Kind\x12\x12\n\x01n\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\"-\n\x04Kind\x12\x07\n\x03MIN\x10\x00\x12\x07\n\x03MAX\x10\x01\x12\x07\n\x03TOP\x10\x02\x12\n\n\x06\x42OTTOM\x10\x03\x42\x04\n\x02_n\x1a\xca\x04\n\x0cHavingClause\x12Q\n\taggregate\x18\x01 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregate\x12V\n\x08operator\x18\x02 \x01(\x0e\x32\x44.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause.Operator\x12R\n\x05value\x18\x03 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetDocumentsRequest.DocumentFieldValueH\x00\x12O\n\x07ranking\x18\x04 \x01(\x0b\x32<.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingRankingH\x00\"\xe0\x01\n\x08Operator\x12\t\n\x05\x45QUAL\x10\x00\x12\r\n\tNOT_EQUAL\x10\x01\x12\x10\n\x0cGREATER_THAN\x10\x02\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x03\x12\r\n\tLESS_THAN\x10\x04\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x05\x12\x0b\n\x07\x42\x45TWEEN\x10\x06\x12\x1a\n\x16\x42\x45TWEEN_EXCLUDE_BOUNDS\x10\x07\x12\x18\n\x14\x42\x45TWEEN_EXCLUDE_LEFT\x10\x08\x12\x19\n\x15\x42\x45TWEEN_EXCLUDE_RIGHT\x10\t\x12\x06\n\x02IN\x10\nB\x07\n\x05right\x1a\x90\x01\n\x0bOrderClause\x12\x0f\n\x05\x66ield\x18\x01 \x01(\tH\x00\x12S\n\taggregate\x18\x03 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingAggregateH\x00\x12\x11\n\tascending\x18\x02 \x01(\x08\x42\x08\n\x06target\x1a\xbb\x01\n\x15GetDocumentsRequestV0\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x15\n\rdocument_type\x18\x02 \x01(\t\x12\r\n\x05where\x18\x03 \x01(\x0c\x12\x10\n\x08order_by\x18\x04 \x01(\x0c\x12\r\n\x05limit\x18\x05 \x01(\r\x12\x15\n\x0bstart_after\x18\x06 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x07 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x08 \x01(\x08\x42\x07\n\x05start\x1a\xf3\x05\n\x15GetDocumentsRequestV1\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x15\n\rdocument_type\x18\x02 \x01(\t\x12Q\n\rwhere_clauses\x18\x03 \x03(\x0b\x32:.org.dash.platform.dapi.v0.GetDocumentsRequest.WhereClause\x12L\n\x08order_by\x18\x04 \x03(\x0b\x32:.org.dash.platform.dapi.v0.GetDocumentsRequest.OrderClause\x12\x12\n\x05limit\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\x15\n\x0bstart_after\x18\x06 \x01(\x0cH\x00\x12\x12\n\x08start_at\x18\x07 \x01(\x0cH\x00\x12\r\n\x05prove\x18\x08 \x01(\x08\x12\\\n\x07selects\x18\t \x03(\x0b\x32K.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select\x12\x10\n\x08group_by\x18\n \x03(\t\x12K\n\x06having\x18\x0b \x03(\x0b\x32;.org.dash.platform.dapi.v0.GetDocumentsRequest.HavingClause\x12\x13\n\x06offset\x18\x0c \x01(\rH\x02\x88\x01\x01\x1a\xc9\x01\n\x06Select\x12\x66\n\x08\x66unction\x18\x01 \x01(\x0e\x32T.org.dash.platform.dapi.v0.GetDocumentsRequest.GetDocumentsRequestV1.Select.Function\x12\r\n\x05\x66ield\x18\x02 \x01(\t\"H\n\x08\x46unction\x12\r\n\tDOCUMENTS\x10\x00\x12\t\n\x05\x43OUNT\x10\x01\x12\x07\n\x03SUM\x10\x02\x12\x07\n\x03\x41VG\x10\x03\x12\x07\n\x03MIN\x10\x04\x12\x07\n\x03MAX\x10\x05\x42\x07\n\x05startB\x08\n\x06_limitB\t\n\x07_offset\"\xe7\x01\n\rWhereOperator\x12\t\n\x05\x45QUAL\x10\x00\x12\x10\n\x0cGREATER_THAN\x10\x01\x12\x1a\n\x16GREATER_THAN_OR_EQUALS\x10\x02\x12\r\n\tLESS_THAN\x10\x03\x12\x17\n\x13LESS_THAN_OR_EQUALS\x10\x04\x12\x0b\n\x07\x42\x45TWEEN\x10\x05\x12\x1a\n\x16\x42\x45TWEEN_EXCLUDE_BOUNDS\x10\x06\x12\x18\n\x14\x42\x45TWEEN_EXCLUDE_LEFT\x10\x07\x12\x19\n\x15\x42\x45TWEEN_EXCLUDE_RIGHT\x10\x08\x12\x06\n\x02IN\x10\t\x12\x0f\n\x0bSTARTS_WITH\x10\nB\t\n\x07version\"\x86\x13\n\x14GetDocumentsResponse\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0H\x00\x12T\n\x02v1\x18\x02 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1H\x00\x1a\x9b\x02\n\x16GetDocumentsResponseV0\x12\x65\n\tdocuments\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV0.DocumentsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1e\n\tDocuments\x12\x11\n\tdocuments\x18\x01 \x03(\x0c\x42\x08\n\x06result\x1a\x98\x0f\n\x16GetDocumentsResponseV1\x12\x61\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.ResultDataH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1e\n\tDocuments\x12\x11\n\tdocuments\x18\x01 \x03(\x0c\x1aL\n\nCountEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x03 \x01(\x04\x42\x02\x30\x01\x42\t\n\x07_in_key\x1ar\n\x0c\x43ountEntries\x12\x62\n\x07\x65ntries\x18\x01 \x03(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntry\x1a\xa0\x01\n\x0c\x43ountResults\x12\x1d\n\x0f\x61ggregate_count\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x66\n\x07\x65ntries\x18\x02 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountEntriesH\x00\x42\t\n\x07variant\x1aH\n\x08SumEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x0f\n\x03sum\x18\x03 \x01(\x12\x42\x02\x30\x01\x42\t\n\x07_in_key\x1an\n\nSumEntries\x12`\n\x07\x65ntries\x18\x01 \x03(\x0b\x32O.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumEntry\x1a\x9a\x01\n\nSumResults\x12\x1b\n\raggregate_sum\x18\x01 \x01(\x12\x42\x02\x30\x01H\x00\x12\x64\n\x07\x65ntries\x18\x02 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumEntriesH\x00\x42\t\n\x07variant\x1a_\n\x0c\x41verageEntry\x12\x13\n\x06in_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x11\n\x05\x63ount\x18\x03 \x01(\x04\x42\x02\x30\x01\x12\x0f\n\x03sum\x18\x04 \x01(\x12\x42\x02\x30\x01\x42\t\n\x07_in_key\x1av\n\x0e\x41verageEntries\x12\x64\n\x07\x65ntries\x18\x01 \x03(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageEntry\x1a\x36\n\x10\x41verageAggregate\x12\x11\n\x05\x63ount\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x0f\n\x03sum\x18\x02 \x01(\x12\x42\x02\x30\x01\x1a\xfb\x01\n\x0e\x41verageResults\x12t\n\x11\x61ggregate_average\x18\x01 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageAggregateH\x00\x12h\n\x07\x65ntries\x18\x02 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageEntriesH\x00\x42\t\n\x07variant\x1a\xb3\x03\n\nResultData\x12\x65\n\tdocuments\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.DocumentsH\x00\x12\x65\n\x06\x63ounts\x18\x02 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.CountResultsH\x00\x12\x61\n\x04sums\x18\x03 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.SumResultsH\x00\x12i\n\x08\x61verages\x18\x04 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetDocumentsResponse.GetDocumentsResponseV1.AverageResultsH\x00\x42\t\n\x07variantB\x08\n\x06resultB\t\n\x07version\"\xf4\x02\n\x19GetDocumentHistoryRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetDocumentHistoryRequest.GetDocumentHistoryRequestV0H\x00\x1a\xeb\x01\n\x1bGetDocumentHistoryRequestV0\x12\x18\n\x10\x64\x61ta_contract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64ocument_id\x18\x03 \x01(\x0c\x12+\n\x05limit\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x05 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0bstart_at_ms\x18\x06 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x07 \x01(\x08\x42\t\n\x07version\"\xf7\x04\n\x1aGetDocumentHistoryResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0H\x00\x1a\xeb\x03\n\x1cGetDocumentHistoryResponseV0\x12~\n\x10\x64ocument_history\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x37\n\x14\x44ocumentHistoryEntry\x12\x10\n\x04\x64\x61te\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05value\x18\x02 \x01(\x0c\x1a\x95\x01\n\x0f\x44ocumentHistory\x12\x81\x01\n\x10\x64ocument_entries\x18\x01 \x03(\x0b\x32g.org.dash.platform.dapi.v0.GetDocumentHistoryResponse.GetDocumentHistoryResponseV0.DocumentHistoryEntryB\x08\n\x06resultB\t\n\x07version\"\xed\x01\n!GetIdentityByPublicKeyHashRequest\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashRequest.GetIdentityByPublicKeyHashRequestV0H\x00\x1aM\n#GetIdentityByPublicKeyHashRequestV0\x12\x17\n\x0fpublic_key_hash\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xda\x02\n\"GetIdentityByPublicKeyHashResponse\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashResponse.GetIdentityByPublicKeyHashResponseV0H\x00\x1a\xb6\x01\n$GetIdentityByPublicKeyHashResponseV0\x12\x12\n\x08identity\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbd\x02\n*GetIdentityByNonUniquePublicKeyHashRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest.GetIdentityByNonUniquePublicKeyHashRequestV0H\x00\x1a\x80\x01\n,GetIdentityByNonUniquePublicKeyHashRequestV0\x12\x17\n\x0fpublic_key_hash\x18\x01 \x01(\x0c\x12\x18\n\x0bstart_after\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\x0e\n\x0c_start_afterB\t\n\x07version\"\xd6\x06\n+GetIdentityByNonUniquePublicKeyHashResponse\x12\x82\x01\n\x02v0\x18\x01 \x01(\x0b\x32t.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0H\x00\x1a\x96\x05\n-GetIdentityByNonUniquePublicKeyHashResponseV0\x12\x9a\x01\n\x08identity\x18\x01 \x01(\x0b\x32\x85\x01.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityResponseH\x00\x12\x9d\x01\n\x05proof\x18\x02 \x01(\x0b\x32\x8b\x01.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse.GetIdentityByNonUniquePublicKeyHashResponseV0.IdentityProvedResponseH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x36\n\x10IdentityResponse\x12\x15\n\x08identity\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x0b\n\t_identity\x1a\xa6\x01\n\x16IdentityProvedResponse\x12P\n&grovedb_identity_public_key_hash_proof\x18\x01 \x01(\x0b\x32 .org.dash.platform.dapi.v0.Proof\x12!\n\x14identity_proof_bytes\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x17\n\x15_identity_proof_bytesB\x08\n\x06resultB\t\n\x07version\"\xfb\x01\n#WaitForStateTransitionResultRequest\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest.WaitForStateTransitionResultRequestV0H\x00\x1aU\n%WaitForStateTransitionResultRequestV0\x12\x1d\n\x15state_transition_hash\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x99\x03\n$WaitForStateTransitionResultResponse\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse.WaitForStateTransitionResultResponseV0H\x00\x1a\xef\x01\n&WaitForStateTransitionResultResponseV0\x12I\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x38.org.dash.platform.dapi.v0.StateTransitionBroadcastErrorH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc4\x01\n\x19GetConsensusParamsRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetConsensusParamsRequest.GetConsensusParamsRequestV0H\x00\x1a<\n\x1bGetConsensusParamsRequestV0\x12\x0e\n\x06height\x18\x01 \x01(\x05\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x9c\x04\n\x1aGetConsensusParamsResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetConsensusParamsResponse.GetConsensusParamsResponseV0H\x00\x1aP\n\x14\x43onsensusParamsBlock\x12\x11\n\tmax_bytes\x18\x01 \x01(\t\x12\x0f\n\x07max_gas\x18\x02 \x01(\t\x12\x14\n\x0ctime_iota_ms\x18\x03 \x01(\t\x1a\x62\n\x17\x43onsensusParamsEvidence\x12\x1a\n\x12max_age_num_blocks\x18\x01 \x01(\t\x12\x18\n\x10max_age_duration\x18\x02 \x01(\t\x12\x11\n\tmax_bytes\x18\x03 \x01(\t\x1a\xda\x01\n\x1cGetConsensusParamsResponseV0\x12Y\n\x05\x62lock\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetConsensusParamsResponse.ConsensusParamsBlock\x12_\n\x08\x65vidence\x18\x02 \x01(\x0b\x32M.org.dash.platform.dapi.v0.GetConsensusParamsResponse.ConsensusParamsEvidenceB\t\n\x07version\"\xe4\x01\n%GetProtocolVersionUpgradeStateRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateRequest.GetProtocolVersionUpgradeStateRequestV0H\x00\x1a\x38\n\'GetProtocolVersionUpgradeStateRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xb5\x05\n&GetProtocolVersionUpgradeStateResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0H\x00\x1a\x85\x04\n(GetProtocolVersionUpgradeStateResponseV0\x12\x87\x01\n\x08versions\x18\x01 \x01(\x0b\x32s.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0.VersionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x96\x01\n\x08Versions\x12\x89\x01\n\x08versions\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse.GetProtocolVersionUpgradeStateResponseV0.VersionEntry\x1a:\n\x0cVersionEntry\x12\x16\n\x0eversion_number\x18\x01 \x01(\r\x12\x12\n\nvote_count\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xa3\x02\n*GetProtocolVersionUpgradeVoteStatusRequest\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusRequest.GetProtocolVersionUpgradeVoteStatusRequestV0H\x00\x1ag\n,GetProtocolVersionUpgradeVoteStatusRequestV0\x12\x19\n\x11start_pro_tx_hash\x18\x01 \x01(\x0c\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xef\x05\n+GetProtocolVersionUpgradeVoteStatusResponse\x12\x82\x01\n\x02v0\x18\x01 \x01(\x0b\x32t.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0H\x00\x1a\xaf\x04\n-GetProtocolVersionUpgradeVoteStatusResponseV0\x12\x98\x01\n\x08versions\x18\x01 \x01(\x0b\x32\x83\x01.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignalsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xaf\x01\n\x0eVersionSignals\x12\x9c\x01\n\x0fversion_signals\x18\x01 \x03(\x0b\x32\x82\x01.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse.GetProtocolVersionUpgradeVoteStatusResponseV0.VersionSignal\x1a\x35\n\rVersionSignal\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x0f\n\x07version\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xf5\x01\n\x14GetEpochsInfoRequest\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetEpochsInfoRequest.GetEpochsInfoRequestV0H\x00\x1a|\n\x16GetEpochsInfoRequestV0\x12\x31\n\x0bstart_epoch\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\x11\n\tascending\x18\x03 \x01(\x08\x12\r\n\x05prove\x18\x04 \x01(\x08\x42\t\n\x07version\"\x99\x05\n\x15GetEpochsInfoResponse\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0H\x00\x1a\x9c\x04\n\x17GetEpochsInfoResponseV0\x12\x65\n\x06\x65pochs\x18\x01 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0.EpochInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1au\n\nEpochInfos\x12g\n\x0b\x65poch_infos\x18\x01 \x03(\x0b\x32R.org.dash.platform.dapi.v0.GetEpochsInfoResponse.GetEpochsInfoResponseV0.EpochInfo\x1a\xa6\x01\n\tEpochInfo\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x1e\n\x12\x66irst_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x1f\n\x17\x66irst_core_block_height\x18\x03 \x01(\r\x12\x16\n\nstart_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x0e\x66\x65\x65_multiplier\x18\x05 \x01(\x01\x12\x18\n\x10protocol_version\x18\x06 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xbf\x02\n\x1dGetFinalizedEpochInfosRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0H\x00\x1a\xaa\x01\n\x1fGetFinalizedEpochInfosRequestV0\x12\x19\n\x11start_epoch_index\x18\x01 \x01(\r\x12\"\n\x1astart_epoch_index_included\x18\x02 \x01(\x08\x12\x17\n\x0f\x65nd_epoch_index\x18\x03 \x01(\r\x12 \n\x18\x65nd_epoch_index_included\x18\x04 \x01(\x08\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\t\n\x07version\"\xbd\t\n\x1eGetFinalizedEpochInfosResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0H\x00\x1a\xa5\x08\n GetFinalizedEpochInfosResponseV0\x12\x80\x01\n\x06\x65pochs\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xa4\x01\n\x13\x46inalizedEpochInfos\x12\x8c\x01\n\x15\x66inalized_epoch_infos\x18\x01 \x03(\x0b\x32m.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo\x1a\x9f\x04\n\x12\x46inalizedEpochInfo\x12\x0e\n\x06number\x18\x01 \x01(\r\x12\x1e\n\x12\x66irst_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x1f\n\x17\x66irst_core_block_height\x18\x03 \x01(\r\x12\x1c\n\x10\x66irst_block_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x0e\x66\x65\x65_multiplier\x18\x05 \x01(\x01\x12\x18\n\x10protocol_version\x18\x06 \x01(\r\x12!\n\x15total_blocks_in_epoch\x18\x07 \x01(\x04\x42\x02\x30\x01\x12*\n\"next_epoch_start_core_block_height\x18\x08 \x01(\r\x12!\n\x15total_processing_fees\x18\t \x01(\x04\x42\x02\x30\x01\x12*\n\x1etotal_distributed_storage_fees\x18\n \x01(\x04\x42\x02\x30\x01\x12&\n\x1atotal_created_storage_fees\x18\x0b \x01(\x04\x42\x02\x30\x01\x12\x1e\n\x12\x63ore_block_rewards\x18\x0c \x01(\x04\x42\x02\x30\x01\x12\x81\x01\n\x0f\x62lock_proposers\x18\r \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer\x1a\x39\n\rBlockProposer\x12\x13\n\x0bproposer_id\x18\x01 \x01(\x0c\x12\x13\n\x0b\x62lock_count\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xde\x04\n\x1cGetContestedResourcesRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetContestedResourcesRequest.GetContestedResourcesRequestV0H\x00\x1a\xcc\x03\n\x1eGetContestedResourcesRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x1a\n\x12start_index_values\x18\x04 \x03(\x0c\x12\x18\n\x10\x65nd_index_values\x18\x05 \x03(\x0c\x12\x89\x01\n\x13start_at_value_info\x18\x06 \x01(\x0b\x32g.org.dash.platform.dapi.v0.GetContestedResourcesRequest.GetContestedResourcesRequestV0.StartAtValueInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x07 \x01(\rH\x01\x88\x01\x01\x12\x17\n\x0forder_ascending\x18\x08 \x01(\x08\x12\r\n\x05prove\x18\t \x01(\x08\x1a\x45\n\x10StartAtValueInfo\x12\x13\n\x0bstart_value\x18\x01 \x01(\x0c\x12\x1c\n\x14start_value_included\x18\x02 \x01(\x08\x42\x16\n\x14_start_at_value_infoB\x08\n\x06_countB\t\n\x07version\"\x88\x04\n\x1dGetContestedResourcesResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetContestedResourcesResponse.GetContestedResourcesResponseV0H\x00\x1a\xf3\x02\n\x1fGetContestedResourcesResponseV0\x12\x95\x01\n\x19\x63ontested_resource_values\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetContestedResourcesResponse.GetContestedResourcesResponseV0.ContestedResourceValuesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a<\n\x17\x43ontestedResourceValues\x12!\n\x19\x63ontested_resource_values\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xd2\x05\n\x1cGetVotePollsByEndDateRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0H\x00\x1a\xc0\x04\n\x1eGetVotePollsByEndDateRequestV0\x12\x84\x01\n\x0fstart_time_info\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0.StartAtTimeInfoH\x00\x88\x01\x01\x12\x80\x01\n\rend_time_info\x18\x02 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest.GetVotePollsByEndDateRequestV0.EndAtTimeInfoH\x01\x88\x01\x01\x12\x12\n\x05limit\x18\x03 \x01(\rH\x02\x88\x01\x01\x12\x13\n\x06offset\x18\x04 \x01(\rH\x03\x88\x01\x01\x12\x11\n\tascending\x18\x05 \x01(\x08\x12\r\n\x05prove\x18\x06 \x01(\x08\x1aI\n\x0fStartAtTimeInfo\x12\x19\n\rstart_time_ms\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x13start_time_included\x18\x02 \x01(\x08\x1a\x43\n\rEndAtTimeInfo\x12\x17\n\x0b\x65nd_time_ms\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x65nd_time_included\x18\x02 \x01(\x08\x42\x12\n\x10_start_time_infoB\x10\n\x0e_end_time_infoB\x08\n\x06_limitB\t\n\x07_offsetB\t\n\x07version\"\x83\x06\n\x1dGetVotePollsByEndDateResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0H\x00\x1a\xee\x04\n\x1fGetVotePollsByEndDateResponseV0\x12\x9c\x01\n\x18vote_polls_by_timestamps\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0.SerializedVotePollsByTimestampsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aV\n\x1eSerializedVotePollsByTimestamp\x12\x15\n\ttimestamp\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1d\n\x15serialized_vote_polls\x18\x02 \x03(\x0c\x1a\xd7\x01\n\x1fSerializedVotePollsByTimestamps\x12\x99\x01\n\x18vote_polls_by_timestamps\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse.GetVotePollsByEndDateResponseV0.SerializedVotePollsByTimestamp\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x42\x08\n\x06resultB\t\n\x07version\"\xff\x06\n$GetContestedResourceVoteStateRequest\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0H\x00\x1a\xd5\x05\n&GetContestedResourceVoteStateRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x14\n\x0cindex_values\x18\x04 \x03(\x0c\x12\x86\x01\n\x0bresult_type\x18\x05 \x01(\x0e\x32q.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0.ResultType\x12\x36\n.allow_include_locked_and_abstaining_vote_tally\x18\x06 \x01(\x08\x12\xa3\x01\n\x18start_at_identifier_info\x18\x07 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest.GetContestedResourceVoteStateRequestV0.StartAtIdentifierInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x08 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\t \x01(\x08\x1aT\n\x15StartAtIdentifierInfo\x12\x18\n\x10start_identifier\x18\x01 \x01(\x0c\x12!\n\x19start_identifier_included\x18\x02 \x01(\x08\"I\n\nResultType\x12\r\n\tDOCUMENTS\x10\x00\x12\x0e\n\nVOTE_TALLY\x10\x01\x12\x1c\n\x18\x44OCUMENTS_AND_VOTE_TALLY\x10\x02\x42\x1b\n\x19_start_at_identifier_infoB\x08\n\x06_countB\t\n\x07version\"\x94\x0c\n%GetContestedResourceVoteStateResponse\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0H\x00\x1a\xe7\n\n\'GetContestedResourceVoteStateResponseV0\x12\xae\x01\n\x1d\x63ontested_resource_contenders\x18\x01 \x01(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.ContestedResourceContendersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xda\x03\n\x10\x46inishedVoteInfo\x12\xad\x01\n\x15\x66inished_vote_outcome\x18\x01 \x01(\x0e\x32\x8d\x01.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.FinishedVoteInfo.FinishedVoteOutcome\x12\x1f\n\x12won_by_identity_id\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12$\n\x18\x66inished_at_block_height\x18\x03 \x01(\x04\x42\x02\x30\x01\x12%\n\x1d\x66inished_at_core_block_height\x18\x04 \x01(\r\x12%\n\x19\x66inished_at_block_time_ms\x18\x05 \x01(\x04\x42\x02\x30\x01\x12\x19\n\x11\x66inished_at_epoch\x18\x06 \x01(\r\"O\n\x13\x46inishedVoteOutcome\x12\x14\n\x10TOWARDS_IDENTITY\x10\x00\x12\n\n\x06LOCKED\x10\x01\x12\x16\n\x12NO_PREVIOUS_WINNER\x10\x02\x42\x15\n\x13_won_by_identity_id\x1a\xc4\x03\n\x1b\x43ontestedResourceContenders\x12\x86\x01\n\ncontenders\x18\x01 \x03(\x0b\x32r.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.Contender\x12\x1f\n\x12\x61\x62stain_vote_tally\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x1c\n\x0flock_vote_tally\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x9a\x01\n\x12\x66inished_vote_info\x18\x04 \x01(\x0b\x32y.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse.GetContestedResourceVoteStateResponseV0.FinishedVoteInfoH\x02\x88\x01\x01\x42\x15\n\x13_abstain_vote_tallyB\x12\n\x10_lock_vote_tallyB\x15\n\x13_finished_vote_info\x1ak\n\tContender\x12\x12\n\nidentifier\x18\x01 \x01(\x0c\x12\x17\n\nvote_count\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x15\n\x08\x64ocument\x18\x03 \x01(\x0cH\x01\x88\x01\x01\x42\r\n\x0b_vote_countB\x0b\n\t_documentB\x08\n\x06resultB\t\n\x07version\"\xd5\x05\n,GetContestedResourceVotersForIdentityRequest\x12\x84\x01\n\x02v0\x18\x01 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest.GetContestedResourceVotersForIdentityRequestV0H\x00\x1a\x92\x04\n.GetContestedResourceVotersForIdentityRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\x12\n\nindex_name\x18\x03 \x01(\t\x12\x14\n\x0cindex_values\x18\x04 \x03(\x0c\x12\x15\n\rcontestant_id\x18\x05 \x01(\x0c\x12\xb4\x01\n\x18start_at_identifier_info\x18\x06 \x01(\x0b\x32\x8c\x01.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest.GetContestedResourceVotersForIdentityRequestV0.StartAtIdentifierInfoH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x07 \x01(\rH\x01\x88\x01\x01\x12\x17\n\x0forder_ascending\x18\x08 \x01(\x08\x12\r\n\x05prove\x18\t \x01(\x08\x1aT\n\x15StartAtIdentifierInfo\x12\x18\n\x10start_identifier\x18\x01 \x01(\x0c\x12!\n\x19start_identifier_included\x18\x02 \x01(\x08\x42\x1b\n\x19_start_at_identifier_infoB\x08\n\x06_countB\t\n\x07version\"\xf1\x04\n-GetContestedResourceVotersForIdentityResponse\x12\x86\x01\n\x02v0\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse.GetContestedResourceVotersForIdentityResponseV0H\x00\x1a\xab\x03\n/GetContestedResourceVotersForIdentityResponseV0\x12\xb6\x01\n\x19\x63ontested_resource_voters\x18\x01 \x01(\x0b\x32\x90\x01.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse.GetContestedResourceVotersForIdentityResponseV0.ContestedResourceVotersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x43\n\x17\x43ontestedResourceVoters\x12\x0e\n\x06voters\x18\x01 \x03(\x0c\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x42\x08\n\x06resultB\t\n\x07version\"\xad\x05\n(GetContestedResourceIdentityVotesRequest\x12|\n\x02v0\x18\x01 \x01(\x0b\x32n.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest.GetContestedResourceIdentityVotesRequestV0H\x00\x1a\xf7\x03\n*GetContestedResourceIdentityVotesRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12+\n\x05limit\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12,\n\x06offset\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\x12\x17\n\x0forder_ascending\x18\x04 \x01(\x08\x12\xae\x01\n\x1astart_at_vote_poll_id_info\x18\x05 \x01(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest.GetContestedResourceIdentityVotesRequestV0.StartAtVotePollIdInfoH\x00\x88\x01\x01\x12\r\n\x05prove\x18\x06 \x01(\x08\x1a\x61\n\x15StartAtVotePollIdInfo\x12 \n\x18start_at_poll_identifier\x18\x01 \x01(\x0c\x12&\n\x1estart_poll_identifier_included\x18\x02 \x01(\x08\x42\x1d\n\x1b_start_at_vote_poll_id_infoB\t\n\x07version\"\xc8\n\n)GetContestedResourceIdentityVotesResponse\x12~\n\x02v0\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0H\x00\x1a\x8f\t\n+GetContestedResourceIdentityVotesResponseV0\x12\xa1\x01\n\x05votes\x18\x01 \x01(\x0b\x32\x8f\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ContestedResourceIdentityVotesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\xf7\x01\n\x1e\x43ontestedResourceIdentityVotes\x12\xba\x01\n!contested_resource_identity_votes\x18\x01 \x03(\x0b\x32\x8e\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ContestedResourceIdentityVote\x12\x18\n\x10\x66inished_results\x18\x02 \x01(\x08\x1a\xad\x02\n\x12ResourceVoteChoice\x12\xad\x01\n\x10vote_choice_type\x18\x01 \x01(\x0e\x32\x92\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ResourceVoteChoice.VoteChoiceType\x12\x18\n\x0bidentity_id\x18\x02 \x01(\x0cH\x00\x88\x01\x01\"=\n\x0eVoteChoiceType\x12\x14\n\x10TOWARDS_IDENTITY\x10\x00\x12\x0b\n\x07\x41\x42STAIN\x10\x01\x12\x08\n\x04LOCK\x10\x02\x42\x0e\n\x0c_identity_id\x1a\x95\x02\n\x1d\x43ontestedResourceIdentityVote\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1a\n\x12\x64ocument_type_name\x18\x02 \x01(\t\x12\'\n\x1fserialized_index_storage_values\x18\x03 \x03(\x0c\x12\x99\x01\n\x0bvote_choice\x18\x04 \x01(\x0b\x32\x83\x01.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse.GetContestedResourceIdentityVotesResponseV0.ResourceVoteChoiceB\x08\n\x06resultB\t\n\x07version\"\xf0\x01\n%GetPrefundedSpecializedBalanceRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceRequest.GetPrefundedSpecializedBalanceRequestV0H\x00\x1a\x44\n\'GetPrefundedSpecializedBalanceRequestV0\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xed\x02\n&GetPrefundedSpecializedBalanceResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceResponse.GetPrefundedSpecializedBalanceResponseV0H\x00\x1a\xbd\x01\n(GetPrefundedSpecializedBalanceResponseV0\x12\x15\n\x07\x62\x61lance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xd0\x01\n GetTotalCreditsInPlatformRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest.GetTotalCreditsInPlatformRequestV0H\x00\x1a\x33\n\"GetTotalCreditsInPlatformRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xd9\x02\n!GetTotalCreditsInPlatformResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse.GetTotalCreditsInPlatformResponseV0H\x00\x1a\xb8\x01\n#GetTotalCreditsInPlatformResponseV0\x12\x15\n\x07\x63redits\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc4\x01\n\x16GetPathElementsRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetPathElementsRequest.GetPathElementsRequestV0H\x00\x1a\x45\n\x18GetPathElementsRequestV0\x12\x0c\n\x04path\x18\x01 \x03(\x0c\x12\x0c\n\x04keys\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xa3\x03\n\x17GetPathElementsResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0H\x00\x1a\xa0\x02\n\x19GetPathElementsResponseV0\x12i\n\x08\x65lements\x18\x01 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetPathElementsResponse.GetPathElementsResponseV0.ElementsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1c\n\x08\x45lements\x12\x10\n\x08\x65lements\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\x81\x01\n\x10GetStatusRequest\x12L\n\x02v0\x18\x01 \x01(\x0b\x32>.org.dash.platform.dapi.v0.GetStatusRequest.GetStatusRequestV0H\x00\x1a\x14\n\x12GetStatusRequestV0B\t\n\x07version\"\xe4\x10\n\x11GetStatusResponse\x12N\n\x02v0\x18\x01 \x01(\x0b\x32@.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0H\x00\x1a\xf3\x0f\n\x13GetStatusResponseV0\x12Y\n\x07version\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version\x12S\n\x04node\x18\x02 \x01(\x0b\x32\x45.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Node\x12U\n\x05\x63hain\x18\x03 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Chain\x12Y\n\x07network\x18\x04 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Network\x12^\n\nstate_sync\x18\x05 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.StateSync\x12S\n\x04time\x18\x06 \x01(\x0b\x32\x45.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Time\x1a\x82\x05\n\x07Version\x12\x63\n\x08software\x18\x01 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Software\x12\x63\n\x08protocol\x18\x02 \x01(\x0b\x32Q.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol\x1a^\n\x08Software\x12\x0c\n\x04\x64\x61pi\x18\x01 \x01(\t\x12\x12\n\x05\x64rive\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x17\n\ntenderdash\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_driveB\r\n\x0b_tenderdash\x1a\xcc\x02\n\x08Protocol\x12p\n\ntenderdash\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Tenderdash\x12\x66\n\x05\x64rive\x18\x02 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetStatusResponse.GetStatusResponseV0.Version.Protocol.Drive\x1a(\n\nTenderdash\x12\x0b\n\x03p2p\x18\x01 \x01(\r\x12\r\n\x05\x62lock\x18\x02 \x01(\r\x1a<\n\x05\x44rive\x12\x0e\n\x06latest\x18\x03 \x01(\r\x12\x0f\n\x07\x63urrent\x18\x04 \x01(\r\x12\x12\n\nnext_epoch\x18\x05 \x01(\r\x1a\x7f\n\x04Time\x12\x11\n\x05local\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x16\n\x05\x62lock\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x88\x01\x01\x12\x18\n\x07genesis\x18\x03 \x01(\x04\x42\x02\x30\x01H\x01\x88\x01\x01\x12\x12\n\x05\x65poch\x18\x04 \x01(\rH\x02\x88\x01\x01\x42\x08\n\x06_blockB\n\n\x08_genesisB\x08\n\x06_epoch\x1a<\n\x04Node\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x18\n\x0bpro_tx_hash\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x0e\n\x0c_pro_tx_hash\x1a\xb3\x02\n\x05\x43hain\x12\x13\n\x0b\x63\x61tching_up\x18\x01 \x01(\x08\x12\x19\n\x11latest_block_hash\x18\x02 \x01(\x0c\x12\x17\n\x0flatest_app_hash\x18\x03 \x01(\x0c\x12\x1f\n\x13latest_block_height\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x13\x65\x61rliest_block_hash\x18\x05 \x01(\x0c\x12\x19\n\x11\x65\x61rliest_app_hash\x18\x06 \x01(\x0c\x12!\n\x15\x65\x61rliest_block_height\x18\x07 \x01(\x04\x42\x02\x30\x01\x12!\n\x15max_peer_block_height\x18\t \x01(\x04\x42\x02\x30\x01\x12%\n\x18\x63ore_chain_locked_height\x18\n \x01(\rH\x00\x88\x01\x01\x42\x1b\n\x19_core_chain_locked_height\x1a\x43\n\x07Network\x12\x10\n\x08\x63hain_id\x18\x01 \x01(\t\x12\x13\n\x0bpeers_count\x18\x02 \x01(\r\x12\x11\n\tlistening\x18\x03 \x01(\x08\x1a\x85\x02\n\tStateSync\x12\x1d\n\x11total_synced_time\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1a\n\x0eremaining_time\x18\x02 \x01(\x04\x42\x02\x30\x01\x12\x17\n\x0ftotal_snapshots\x18\x03 \x01(\r\x12\"\n\x16\x63hunk_process_avg_time\x18\x04 \x01(\x04\x42\x02\x30\x01\x12\x1b\n\x0fsnapshot_height\x18\x05 \x01(\x04\x42\x02\x30\x01\x12!\n\x15snapshot_chunks_count\x18\x06 \x01(\x04\x42\x02\x30\x01\x12\x1d\n\x11\x62\x61\x63kfilled_blocks\x18\x07 \x01(\x04\x42\x02\x30\x01\x12!\n\x15\x62\x61\x63kfill_blocks_total\x18\x08 \x01(\x04\x42\x02\x30\x01\x42\t\n\x07version\"\xb1\x01\n\x1cGetCurrentQuorumsInfoRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest.GetCurrentQuorumsInfoRequestV0H\x00\x1a \n\x1eGetCurrentQuorumsInfoRequestV0B\t\n\x07version\"\xa1\x05\n\x1dGetCurrentQuorumsInfoResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.GetCurrentQuorumsInfoResponseV0H\x00\x1a\x46\n\x0bValidatorV0\x12\x13\n\x0bpro_tx_hash\x18\x01 \x01(\x0c\x12\x0f\n\x07node_ip\x18\x02 \x01(\t\x12\x11\n\tis_banned\x18\x03 \x01(\x08\x1a\xaf\x01\n\x0eValidatorSetV0\x12\x13\n\x0bquorum_hash\x18\x01 \x01(\x0c\x12\x13\n\x0b\x63ore_height\x18\x02 \x01(\r\x12U\n\x07members\x18\x03 \x03(\x0b\x32\x44.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorV0\x12\x1c\n\x14threshold_public_key\x18\x04 \x01(\x0c\x1a\x92\x02\n\x1fGetCurrentQuorumsInfoResponseV0\x12\x15\n\rquorum_hashes\x18\x01 \x03(\x0c\x12\x1b\n\x13\x63urrent_quorum_hash\x18\x02 \x01(\x0c\x12_\n\x0evalidator_sets\x18\x03 \x03(\x0b\x32G.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse.ValidatorSetV0\x12\x1b\n\x13last_block_proposer\x18\x04 \x01(\x0c\x12=\n\x08metadata\x18\x05 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\t\n\x07version\"\xf4\x01\n\x1fGetIdentityTokenBalancesRequest\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentityTokenBalancesRequest.GetIdentityTokenBalancesRequestV0H\x00\x1aZ\n!GetIdentityTokenBalancesRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x11\n\ttoken_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xad\x05\n GetIdentityTokenBalancesResponse\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0H\x00\x1a\x8f\x04\n\"GetIdentityTokenBalancesResponseV0\x12\x86\x01\n\x0etoken_balances\x18\x01 \x01(\x0b\x32l.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0.TokenBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aG\n\x11TokenBalanceEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x07\x62\x61lance\x18\x02 \x01(\x04H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\x9a\x01\n\rTokenBalances\x12\x88\x01\n\x0etoken_balances\x18\x01 \x03(\x0b\x32p.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse.GetIdentityTokenBalancesResponseV0.TokenBalanceEntryB\x08\n\x06resultB\t\n\x07version\"\xfc\x01\n!GetIdentitiesTokenBalancesRequest\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesRequest.GetIdentitiesTokenBalancesRequestV0H\x00\x1a\\\n#GetIdentitiesTokenBalancesRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x0cidentity_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xf2\x05\n\"GetIdentitiesTokenBalancesResponse\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0H\x00\x1a\xce\x04\n$GetIdentitiesTokenBalancesResponseV0\x12\x9b\x01\n\x17identity_token_balances\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0.IdentityTokenBalancesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aR\n\x19IdentityTokenBalanceEntry\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x14\n\x07\x62\x61lance\x18\x02 \x01(\x04H\x00\x88\x01\x01\x42\n\n\x08_balance\x1a\xb7\x01\n\x15IdentityTokenBalances\x12\x9d\x01\n\x17identity_token_balances\x18\x01 \x03(\x0b\x32|.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse.GetIdentitiesTokenBalancesResponseV0.IdentityTokenBalanceEntryB\x08\n\x06resultB\t\n\x07version\"\xe8\x01\n\x1cGetIdentityTokenInfosRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetIdentityTokenInfosRequest.GetIdentityTokenInfosRequestV0H\x00\x1aW\n\x1eGetIdentityTokenInfosRequestV0\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x11\n\ttoken_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\x98\x06\n\x1dGetIdentityTokenInfosResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0H\x00\x1a\x83\x05\n\x1fGetIdentityTokenInfosResponseV0\x12z\n\x0btoken_infos\x18\x01 \x01(\x0b\x32\x63.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a(\n\x16TokenIdentityInfoEntry\x12\x0e\n\x06\x66rozen\x18\x01 \x01(\x08\x1a\xb0\x01\n\x0eTokenInfoEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x82\x01\n\x04info\x18\x02 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenIdentityInfoEntryH\x00\x88\x01\x01\x42\x07\n\x05_info\x1a\x8a\x01\n\nTokenInfos\x12|\n\x0btoken_infos\x18\x01 \x03(\x0b\x32g.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse.GetIdentityTokenInfosResponseV0.TokenInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xf0\x01\n\x1eGetIdentitiesTokenInfosRequest\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosRequest.GetIdentitiesTokenInfosRequestV0H\x00\x1aY\n GetIdentitiesTokenInfosRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x14\n\x0cidentity_ids\x18\x02 \x03(\x0c\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xca\x06\n\x1fGetIdentitiesTokenInfosResponse\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0H\x00\x1a\xaf\x05\n!GetIdentitiesTokenInfosResponseV0\x12\x8f\x01\n\x14identity_token_infos\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.IdentityTokenInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a(\n\x16TokenIdentityInfoEntry\x12\x0e\n\x06\x66rozen\x18\x01 \x01(\x08\x1a\xb7\x01\n\x0eTokenInfoEntry\x12\x13\n\x0bidentity_id\x18\x01 \x01(\x0c\x12\x86\x01\n\x04info\x18\x02 \x01(\x0b\x32s.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.TokenIdentityInfoEntryH\x00\x88\x01\x01\x42\x07\n\x05_info\x1a\x97\x01\n\x12IdentityTokenInfos\x12\x80\x01\n\x0btoken_infos\x18\x01 \x03(\x0b\x32k.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse.GetIdentitiesTokenInfosResponseV0.TokenInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xbf\x01\n\x17GetTokenStatusesRequest\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetTokenStatusesRequest.GetTokenStatusesRequestV0H\x00\x1a=\n\x19GetTokenStatusesRequestV0\x12\x11\n\ttoken_ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xe7\x04\n\x18GetTokenStatusesResponse\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0H\x00\x1a\xe1\x03\n\x1aGetTokenStatusesResponseV0\x12v\n\x0etoken_statuses\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatusesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x44\n\x10TokenStatusEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x13\n\x06paused\x18\x02 \x01(\x08H\x00\x88\x01\x01\x42\t\n\x07_paused\x1a\x88\x01\n\rTokenStatuses\x12w\n\x0etoken_statuses\x18\x01 \x03(\x0b\x32_.org.dash.platform.dapi.v0.GetTokenStatusesResponse.GetTokenStatusesResponseV0.TokenStatusEntryB\x08\n\x06resultB\t\n\x07version\"\xef\x01\n#GetTokenDirectPurchasePricesRequest\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest.GetTokenDirectPurchasePricesRequestV0H\x00\x1aI\n%GetTokenDirectPurchasePricesRequestV0\x12\x11\n\ttoken_ids\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x8b\t\n$GetTokenDirectPurchasePricesResponse\x12t\n\x02v0\x18\x01 \x01(\x0b\x32\x66.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0H\x00\x1a\xe1\x07\n&GetTokenDirectPurchasePricesResponseV0\x12\xa9\x01\n\x1ctoken_direct_purchase_prices\x18\x01 \x01(\x0b\x32\x80\x01.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.TokenDirectPurchasePricesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x33\n\x10PriceForQuantity\x12\x10\n\x08quantity\x18\x01 \x01(\x04\x12\r\n\x05price\x18\x02 \x01(\x04\x1a\xa7\x01\n\x0fPricingSchedule\x12\x93\x01\n\x12price_for_quantity\x18\x01 \x03(\x0b\x32w.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.PriceForQuantity\x1a\xe4\x01\n\x1dTokenDirectPurchasePriceEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x15\n\x0b\x66ixed_price\x18\x02 \x01(\x04H\x00\x12\x90\x01\n\x0evariable_price\x18\x03 \x01(\x0b\x32v.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.PricingScheduleH\x00\x42\x07\n\x05price\x1a\xc8\x01\n\x19TokenDirectPurchasePrices\x12\xaa\x01\n\x1btoken_direct_purchase_price\x18\x01 \x03(\x0b\x32\x84\x01.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse.GetTokenDirectPurchasePricesResponseV0.TokenDirectPurchasePriceEntryB\x08\n\x06resultB\t\n\x07version\"\xce\x01\n\x1bGetTokenContractInfoRequest\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetTokenContractInfoRequest.GetTokenContractInfoRequestV0H\x00\x1a@\n\x1dGetTokenContractInfoRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xfb\x03\n\x1cGetTokenContractInfoResponse\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0H\x00\x1a\xe9\x02\n\x1eGetTokenContractInfoResponseV0\x12|\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32l.org.dash.platform.dapi.v0.GetTokenContractInfoResponse.GetTokenContractInfoResponseV0.TokenContractInfoDataH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aM\n\x15TokenContractInfoData\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17token_contract_position\x18\x02 \x01(\rB\x08\n\x06resultB\t\n\x07version\"\xef\x04\n)GetTokenPreProgrammedDistributionsRequest\x12~\n\x02v0\x18\x01 \x01(\x0b\x32p.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest.GetTokenPreProgrammedDistributionsRequestV0H\x00\x1a\xb6\x03\n+GetTokenPreProgrammedDistributionsRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x98\x01\n\rstart_at_info\x18\x02 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest.GetTokenPreProgrammedDistributionsRequestV0.StartAtInfoH\x00\x88\x01\x01\x12\x12\n\x05limit\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x04 \x01(\x08\x1a\x9a\x01\n\x0bStartAtInfo\x12\x15\n\rstart_time_ms\x18\x01 \x01(\x04\x12\x1c\n\x0fstart_recipient\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x12%\n\x18start_recipient_included\x18\x03 \x01(\x08H\x01\x88\x01\x01\x42\x12\n\x10_start_recipientB\x1b\n\x19_start_recipient_includedB\x10\n\x0e_start_at_infoB\x08\n\x06_limitB\t\n\x07version\"\xec\x07\n*GetTokenPreProgrammedDistributionsResponse\x12\x80\x01\n\x02v0\x18\x01 \x01(\x0b\x32r.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0H\x00\x1a\xaf\x06\n,GetTokenPreProgrammedDistributionsResponseV0\x12\xa5\x01\n\x13token_distributions\x18\x01 \x01(\x0b\x32\x85\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenDistributionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a>\n\x16TokenDistributionEntry\x12\x14\n\x0crecipient_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x1a\xd4\x01\n\x1bTokenTimedDistributionEntry\x12\x11\n\ttimestamp\x18\x01 \x01(\x04\x12\xa1\x01\n\rdistributions\x18\x02 \x03(\x0b\x32\x89\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenDistributionEntry\x1a\xc3\x01\n\x12TokenDistributions\x12\xac\x01\n\x13token_distributions\x18\x01 \x03(\x0b\x32\x8e\x01.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse.GetTokenPreProgrammedDistributionsResponseV0.TokenTimedDistributionEntryB\x08\n\x06resultB\t\n\x07version\"\x82\x04\n-GetTokenPerpetualDistributionLastClaimRequest\x12\x86\x01\n\x02v0\x18\x01 \x01(\x0b\x32x.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.GetTokenPerpetualDistributionLastClaimRequestV0H\x00\x1aI\n\x11\x43ontractTokenInfo\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17token_contract_position\x18\x02 \x01(\r\x1a\xf1\x01\n/GetTokenPerpetualDistributionLastClaimRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12v\n\rcontract_info\x18\x02 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest.ContractTokenInfoH\x00\x88\x01\x01\x12\x13\n\x0bidentity_id\x18\x04 \x01(\x0c\x12\r\n\x05prove\x18\x05 \x01(\x08\x42\x10\n\x0e_contract_infoB\t\n\x07version\"\x93\x05\n.GetTokenPerpetualDistributionLastClaimResponse\x12\x88\x01\n\x02v0\x18\x01 \x01(\x0b\x32z.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0H\x00\x1a\xca\x03\n0GetTokenPerpetualDistributionLastClaimResponseV0\x12\x9f\x01\n\nlast_claim\x18\x01 \x01(\x0b\x32\x88\x01.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse.GetTokenPerpetualDistributionLastClaimResponseV0.LastClaimInfoH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1ax\n\rLastClaimInfo\x12\x1a\n\x0ctimestamp_ms\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x1a\n\x0c\x62lock_height\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12\x0f\n\x05\x65poch\x18\x03 \x01(\rH\x00\x12\x13\n\traw_bytes\x18\x04 \x01(\x0cH\x00\x42\t\n\x07paid_atB\x08\n\x06resultB\t\n\x07version\"\xca\x01\n\x1aGetTokenTotalSupplyRequest\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest.GetTokenTotalSupplyRequestV0H\x00\x1a?\n\x1cGetTokenTotalSupplyRequestV0\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xaf\x04\n\x1bGetTokenTotalSupplyResponse\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0H\x00\x1a\xa0\x03\n\x1dGetTokenTotalSupplyResponseV0\x12\x88\x01\n\x12token_total_supply\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse.GetTokenTotalSupplyResponseV0.TokenTotalSupplyEntryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1ax\n\x15TokenTotalSupplyEntry\x12\x10\n\x08token_id\x18\x01 \x01(\x0c\x12\x30\n(total_aggregated_amount_in_user_accounts\x18\x02 \x01(\x04\x12\x1b\n\x13total_system_amount\x18\x03 \x01(\x04\x42\x08\n\x06resultB\t\n\x07version\"\xd2\x01\n\x13GetGroupInfoRequest\x12R\n\x02v0\x18\x01 \x01(\x0b\x32\x44.org.dash.platform.dapi.v0.GetGroupInfoRequest.GetGroupInfoRequestV0H\x00\x1a\\\n\x15GetGroupInfoRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xd4\x05\n\x14GetGroupInfoResponse\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0H\x00\x1a\xda\x04\n\x16GetGroupInfoResponseV0\x12\x66\n\ngroup_info\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupInfoH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x04 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x34\n\x10GroupMemberEntry\x12\x11\n\tmember_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\x98\x01\n\x0eGroupInfoEntry\x12h\n\x07members\x18\x01 \x03(\x0b\x32W.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupMemberEntry\x12\x1c\n\x14group_required_power\x18\x02 \x01(\r\x1a\x8a\x01\n\tGroupInfo\x12n\n\ngroup_info\x18\x01 \x01(\x0b\x32U.org.dash.platform.dapi.v0.GetGroupInfoResponse.GetGroupInfoResponseV0.GroupInfoEntryH\x00\x88\x01\x01\x42\r\n\x0b_group_infoB\x08\n\x06resultB\t\n\x07version\"\xed\x03\n\x14GetGroupInfosRequest\x12T\n\x02v0\x18\x01 \x01(\x0b\x32\x46.org.dash.platform.dapi.v0.GetGroupInfosRequest.GetGroupInfosRequestV0H\x00\x1au\n\x1cStartAtGroupContractPosition\x12%\n\x1dstart_group_contract_position\x18\x01 \x01(\r\x12.\n&start_group_contract_position_included\x18\x02 \x01(\x08\x1a\xfc\x01\n\x16GetGroupInfosRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12{\n start_at_group_contract_position\x18\x02 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetGroupInfosRequest.StartAtGroupContractPositionH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x04 \x01(\x08\x42#\n!_start_at_group_contract_positionB\x08\n\x06_countB\t\n\x07version\"\xff\x05\n\x15GetGroupInfosResponse\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0H\x00\x1a\x82\x05\n\x17GetGroupInfosResponseV0\x12j\n\x0bgroup_infos\x18\x01 \x01(\x0b\x32S.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupInfosH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x04 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x34\n\x10GroupMemberEntry\x12\x11\n\tmember_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\xc3\x01\n\x16GroupPositionInfoEntry\x12\x1f\n\x17group_contract_position\x18\x01 \x01(\r\x12j\n\x07members\x18\x02 \x03(\x0b\x32Y.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupMemberEntry\x12\x1c\n\x14group_required_power\x18\x03 \x01(\r\x1a\x82\x01\n\nGroupInfos\x12t\n\x0bgroup_infos\x18\x01 \x03(\x0b\x32_.org.dash.platform.dapi.v0.GetGroupInfosResponse.GetGroupInfosResponseV0.GroupPositionInfoEntryB\x08\n\x06resultB\t\n\x07version\"\xbe\x04\n\x16GetGroupActionsRequest\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetGroupActionsRequest.GetGroupActionsRequestV0H\x00\x1aL\n\x0fStartAtActionId\x12\x17\n\x0fstart_action_id\x18\x01 \x01(\x0c\x12 \n\x18start_action_id_included\x18\x02 \x01(\x08\x1a\xc8\x02\n\x18GetGroupActionsRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12N\n\x06status\x18\x03 \x01(\x0e\x32>.org.dash.platform.dapi.v0.GetGroupActionsRequest.ActionStatus\x12\x62\n\x12start_at_action_id\x18\x04 \x01(\x0b\x32\x41.org.dash.platform.dapi.v0.GetGroupActionsRequest.StartAtActionIdH\x00\x88\x01\x01\x12\x12\n\x05\x63ount\x18\x05 \x01(\rH\x01\x88\x01\x01\x12\r\n\x05prove\x18\x06 \x01(\x08\x42\x15\n\x13_start_at_action_idB\x08\n\x06_count\"&\n\x0c\x41\x63tionStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\n\n\x06\x43LOSED\x10\x01\x42\t\n\x07version\"\xd6\x1e\n\x17GetGroupActionsResponse\x12Z\n\x02v0\x18\x01 \x01(\x0b\x32L.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0H\x00\x1a\xd3\x1d\n\x19GetGroupActionsResponseV0\x12r\n\rgroup_actions\x18\x01 \x01(\x0b\x32Y.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a[\n\tMintEvent\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x04\x12\x14\n\x0crecipient_id\x18\x02 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a[\n\tBurnEvent\x12\x0e\n\x06\x61mount\x18\x01 \x01(\x04\x12\x14\n\x0c\x62urn_from_id\x18\x02 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1aJ\n\x0b\x46reezeEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1aL\n\rUnfreezeEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\x66\n\x17\x44\x65stroyFrozenFundsEvent\x12\x11\n\tfrozen_id\x18\x01 \x01(\x0c\x12\x0e\n\x06\x61mount\x18\x02 \x01(\x04\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\x64\n\x13SharedEncryptedNote\x12\x18\n\x10sender_key_index\x18\x01 \x01(\r\x12\x1b\n\x13recipient_key_index\x18\x02 \x01(\r\x12\x16\n\x0e\x65ncrypted_data\x18\x03 \x01(\x0c\x1a{\n\x15PersonalEncryptedNote\x12!\n\x19root_encryption_key_index\x18\x01 \x01(\r\x12\'\n\x1f\x64\x65rivation_encryption_key_index\x18\x02 \x01(\r\x12\x16\n\x0e\x65ncrypted_data\x18\x03 \x01(\x0c\x1a\xe9\x01\n\x14\x45mergencyActionEvent\x12\x81\x01\n\x0b\x61\x63tion_type\x18\x01 \x01(\x0e\x32l.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.EmergencyActionEvent.ActionType\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\"#\n\nActionType\x12\t\n\x05PAUSE\x10\x00\x12\n\n\x06RESUME\x10\x01\x42\x0e\n\x0c_public_note\x1a\x64\n\x16TokenConfigUpdateEvent\x12 \n\x18token_config_update_item\x18\x01 \x01(\x0c\x12\x18\n\x0bpublic_note\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_public_note\x1a\xe6\x03\n\x1eUpdateDirectPurchasePriceEvent\x12\x15\n\x0b\x66ixed_price\x18\x01 \x01(\x04H\x00\x12\x95\x01\n\x0evariable_price\x18\x02 \x01(\x0b\x32{.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.PricingScheduleH\x00\x12\x18\n\x0bpublic_note\x18\x03 \x01(\tH\x01\x88\x01\x01\x1a\x33\n\x10PriceForQuantity\x12\x10\n\x08quantity\x18\x01 \x01(\x04\x12\r\n\x05price\x18\x02 \x01(\x04\x1a\xac\x01\n\x0fPricingSchedule\x12\x98\x01\n\x12price_for_quantity\x18\x01 \x03(\x0b\x32|.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEvent.PriceForQuantityB\x07\n\x05priceB\x0e\n\x0c_public_note\x1a\xfc\x02\n\x10GroupActionEvent\x12n\n\x0btoken_event\x18\x01 \x01(\x0b\x32W.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenEventH\x00\x12t\n\x0e\x64ocument_event\x18\x02 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DocumentEventH\x00\x12t\n\x0e\x63ontract_event\x18\x03 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ContractEventH\x00\x42\x0c\n\nevent_type\x1a\x8b\x01\n\rDocumentEvent\x12r\n\x06\x63reate\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DocumentCreateEventH\x00\x42\x06\n\x04type\x1a/\n\x13\x44ocumentCreateEvent\x12\x18\n\x10\x63reated_document\x18\x01 \x01(\x0c\x1a/\n\x13\x43ontractUpdateEvent\x12\x18\n\x10updated_contract\x18\x01 \x01(\x0c\x1a\x8b\x01\n\rContractEvent\x12r\n\x06update\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.ContractUpdateEventH\x00\x42\x06\n\x04type\x1a\xd1\x07\n\nTokenEvent\x12\x66\n\x04mint\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.MintEventH\x00\x12\x66\n\x04\x62urn\x18\x02 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.BurnEventH\x00\x12j\n\x06\x66reeze\x18\x03 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.FreezeEventH\x00\x12n\n\x08unfreeze\x18\x04 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UnfreezeEventH\x00\x12\x84\x01\n\x14\x64\x65stroy_frozen_funds\x18\x05 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.DestroyFrozenFundsEventH\x00\x12}\n\x10\x65mergency_action\x18\x06 \x01(\x0b\x32\x61.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.EmergencyActionEventH\x00\x12\x82\x01\n\x13token_config_update\x18\x07 \x01(\x0b\x32\x63.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.TokenConfigUpdateEventH\x00\x12\x83\x01\n\x0cupdate_price\x18\x08 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.UpdateDirectPurchasePriceEventH\x00\x42\x06\n\x04type\x1a\x93\x01\n\x10GroupActionEntry\x12\x11\n\taction_id\x18\x01 \x01(\x0c\x12l\n\x05\x65vent\x18\x02 \x01(\x0b\x32].org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionEvent\x1a\x84\x01\n\x0cGroupActions\x12t\n\rgroup_actions\x18\x01 \x03(\x0b\x32].org.dash.platform.dapi.v0.GetGroupActionsResponse.GetGroupActionsResponseV0.GroupActionEntryB\x08\n\x06resultB\t\n\x07version\"\x88\x03\n\x1cGetGroupActionSignersRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetGroupActionSignersRequest.GetGroupActionSignersRequestV0H\x00\x1a\xce\x01\n\x1eGetGroupActionSignersRequestV0\x12\x13\n\x0b\x63ontract_id\x18\x01 \x01(\x0c\x12\x1f\n\x17group_contract_position\x18\x02 \x01(\r\x12T\n\x06status\x18\x03 \x01(\x0e\x32\x44.org.dash.platform.dapi.v0.GetGroupActionSignersRequest.ActionStatus\x12\x11\n\taction_id\x18\x04 \x01(\x0c\x12\r\n\x05prove\x18\x05 \x01(\x08\"&\n\x0c\x41\x63tionStatus\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\n\n\x06\x43LOSED\x10\x01\x42\t\n\x07version\"\x8b\x05\n\x1dGetGroupActionSignersResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0H\x00\x1a\xf6\x03\n\x1fGetGroupActionSignersResponseV0\x12\x8b\x01\n\x14group_action_signers\x18\x01 \x01(\x0b\x32k.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0.GroupActionSignersH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x35\n\x11GroupActionSigner\x12\x11\n\tsigner_id\x18\x01 \x01(\x0c\x12\r\n\x05power\x18\x02 \x01(\r\x1a\x91\x01\n\x12GroupActionSigners\x12{\n\x07signers\x18\x01 \x03(\x0b\x32j.org.dash.platform.dapi.v0.GetGroupActionSignersResponse.GetGroupActionSignersResponseV0.GroupActionSignerB\x08\n\x06resultB\t\n\x07version\"\xb5\x01\n\x15GetAddressInfoRequest\x12V\n\x02v0\x18\x01 \x01(\x0b\x32H.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0H\x00\x1a\x39\n\x17GetAddressInfoRequestV0\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x85\x01\n\x10\x41\x64\x64ressInfoEntry\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12J\n\x11\x62\x61lance_and_nonce\x18\x02 \x01(\x0b\x32*.org.dash.platform.dapi.v0.BalanceAndNonceH\x00\x88\x01\x01\x42\x14\n\x12_balance_and_nonce\"1\n\x0f\x42\x61lanceAndNonce\x12\x0f\n\x07\x62\x61lance\x18\x01 \x01(\x04\x12\r\n\x05nonce\x18\x02 \x01(\r\"_\n\x12\x41\x64\x64ressInfoEntries\x12I\n\x14\x61\x64\x64ress_info_entries\x18\x01 \x03(\x0b\x32+.org.dash.platform.dapi.v0.AddressInfoEntry\"m\n\x14\x41\x64\x64ressBalanceChange\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\x19\n\x0bset_balance\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12\x1c\n\x0e\x61\x64\x64_to_balance\x18\x03 \x01(\x04\x42\x02\x30\x01H\x00\x42\x0b\n\toperation\"x\n\x1a\x42lockAddressBalanceChanges\x12\x18\n\x0c\x62lock_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12@\n\x07\x63hanges\x18\x02 \x03(\x0b\x32/.org.dash.platform.dapi.v0.AddressBalanceChange\"k\n\x1b\x41\x64\x64ressBalanceUpdateEntries\x12L\n\rblock_changes\x18\x01 \x03(\x0b\x32\x35.org.dash.platform.dapi.v0.BlockAddressBalanceChanges\"\xe1\x02\n\x16GetAddressInfoResponse\x12X\n\x02v0\x18\x01 \x01(\x0b\x32J.org.dash.platform.dapi.v0.GetAddressInfoResponse.GetAddressInfoResponseV0H\x00\x1a\xe1\x01\n\x18GetAddressInfoResponseV0\x12I\n\x12\x61\x64\x64ress_info_entry\x18\x01 \x01(\x0b\x32+.org.dash.platform.dapi.v0.AddressInfoEntryH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc3\x01\n\x18GetAddressesInfosRequest\x12\\\n\x02v0\x18\x01 \x01(\x0b\x32N.org.dash.platform.dapi.v0.GetAddressesInfosRequest.GetAddressesInfosRequestV0H\x00\x1a>\n\x1aGetAddressesInfosRequestV0\x12\x11\n\taddresses\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf1\x02\n\x19GetAddressesInfosResponse\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0H\x00\x1a\xe8\x01\n\x1bGetAddressesInfosResponseV0\x12M\n\x14\x61\x64\x64ress_info_entries\x18\x01 \x01(\x0b\x32-.org.dash.platform.dapi.v0.AddressInfoEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xb5\x01\n\x1dGetAddressesTrunkStateRequest\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest.GetAddressesTrunkStateRequestV0H\x00\x1a!\n\x1fGetAddressesTrunkStateRequestV0B\t\n\x07version\"\xaa\x02\n\x1eGetAddressesTrunkStateResponse\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse.GetAddressesTrunkStateResponseV0H\x00\x1a\x92\x01\n GetAddressesTrunkStateResponseV0\x12/\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.Proof\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\t\n\x07version\"\xf0\x01\n\x1eGetAddressesBranchStateRequest\x12h\n\x02v0\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest.GetAddressesBranchStateRequestV0H\x00\x1aY\n GetAddressesBranchStateRequestV0\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\r\x12\x19\n\x11\x63heckpoint_height\x18\x03 \x01(\x04\x42\t\n\x07version\"\xd1\x01\n\x1fGetAddressesBranchStateResponse\x12j\n\x02v0\x18\x01 \x01(\x0b\x32\\.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse.GetAddressesBranchStateResponseV0H\x00\x1a\x37\n!GetAddressesBranchStateResponseV0\x12\x12\n\nmerk_proof\x18\x02 \x01(\x0c\x42\t\n\x07version\"\x9e\x02\n%GetRecentAddressBalanceChangesRequest\x12v\n\x02v0\x18\x01 \x01(\x0b\x32h.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest.GetRecentAddressBalanceChangesRequestV0H\x00\x1ar\n\'GetRecentAddressBalanceChangesRequestV0\x12\x18\n\x0cstart_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x12\x1e\n\x16start_height_exclusive\x18\x03 \x01(\x08\x42\t\n\x07version\"\xb8\x03\n&GetRecentAddressBalanceChangesResponse\x12x\n\x02v0\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse.GetRecentAddressBalanceChangesResponseV0H\x00\x1a\x88\x02\n(GetRecentAddressBalanceChangesResponseV0\x12`\n\x1e\x61\x64\x64ress_balance_update_entries\x18\x01 \x01(\x0b\x32\x36.org.dash.platform.dapi.v0.AddressBalanceUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"G\n\x16\x42lockHeightCreditEntry\x12\x18\n\x0c\x62lock_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x13\n\x07\x63redits\x18\x02 \x01(\x04\x42\x02\x30\x01\"\xb0\x01\n\x1d\x43ompactedAddressBalanceChange\x12\x0f\n\x07\x61\x64\x64ress\x18\x01 \x01(\x0c\x12\x19\n\x0bset_credits\x18\x02 \x01(\x04\x42\x02\x30\x01H\x00\x12V\n\x19\x61\x64\x64_to_credits_operations\x18\x03 \x01(\x0b\x32\x31.org.dash.platform.dapi.v0.AddToCreditsOperationsH\x00\x42\x0b\n\toperation\"\\\n\x16\x41\x64\x64ToCreditsOperations\x12\x42\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x31.org.dash.platform.dapi.v0.BlockHeightCreditEntry\"\xae\x01\n#CompactedBlockAddressBalanceChanges\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\x1c\n\x10\x65nd_block_height\x18\x02 \x01(\x04\x42\x02\x30\x01\x12I\n\x07\x63hanges\x18\x03 \x03(\x0b\x32\x38.org.dash.platform.dapi.v0.CompactedAddressBalanceChange\"\x87\x01\n$CompactedAddressBalanceUpdateEntries\x12_\n\x17\x63ompacted_block_changes\x18\x01 \x03(\x0b\x32>.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges\"\xa9\x02\n.GetRecentCompactedAddressBalanceChangesRequest\x12\x88\x01\n\x02v0\x18\x01 \x01(\x0b\x32z.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest.GetRecentCompactedAddressBalanceChangesRequestV0H\x00\x1a\x61\n0GetRecentCompactedAddressBalanceChangesRequestV0\x12\x1e\n\x12start_block_height\x18\x01 \x01(\x04\x42\x02\x30\x01\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\xf0\x03\n/GetRecentCompactedAddressBalanceChangesResponse\x12\x8a\x01\n\x02v0\x18\x01 \x01(\x0b\x32|.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0H\x00\x1a\xa4\x02\n1GetRecentCompactedAddressBalanceChangesResponseV0\x12s\n(compacted_address_balance_update_entries\x18\x01 \x01(\x0b\x32?.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntriesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xf4\x01\n GetShieldedEncryptedNotesRequest\x12l\n\x02v0\x18\x01 \x01(\x0b\x32^.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0H\x00\x1aW\n\"GetShieldedEncryptedNotesRequestV0\x12\x13\n\x0bstart_index\x18\x01 \x01(\x04\x12\r\n\x05\x63ount\x18\x02 \x01(\r\x12\r\n\x05prove\x18\x03 \x01(\x08\x42\t\n\x07version\"\xbc\x05\n!GetShieldedEncryptedNotesResponse\x12n\n\x02v0\x18\x01 \x01(\x0b\x32`.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0H\x00\x1a\x9b\x04\n#GetShieldedEncryptedNotesResponseV0\x12\x8a\x01\n\x0f\x65ncrypted_notes\x18\x01 \x01(\x0b\x32o.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1aW\n\rEncryptedNote\x12\x11\n\tnullifier\x18\x01 \x01(\x0c\x12\x0b\n\x03\x63mx\x18\x02 \x01(\x0c\x12\x16\n\x0e\x65ncrypted_note\x18\x03 \x01(\x0c\x12\x0e\n\x06\x63v_net\x18\x04 \x01(\x0c\x1a\x91\x01\n\x0e\x45ncryptedNotes\x12\x7f\n\x07\x65ntries\x18\x01 \x03(\x0b\x32n.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNoteB\x08\n\x06resultB\t\n\x07version\"\xb4\x01\n\x19GetShieldedAnchorsRequest\x12^\n\x02v0\x18\x01 \x01(\x0b\x32P.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0H\x00\x1a,\n\x1bGetShieldedAnchorsRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xb1\x03\n\x1aGetShieldedAnchorsResponse\x12`\n\x02v0\x18\x01 \x01(\x0b\x32R.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0H\x00\x1a\xa5\x02\n\x1cGetShieldedAnchorsResponseV0\x12m\n\x07\x61nchors\x18\x01 \x01(\x0b\x32Z.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.AnchorsH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x1a\n\x07\x41nchors\x12\x0f\n\x07\x61nchors\x18\x01 \x03(\x0c\x42\x08\n\x06resultB\t\n\x07version\"\xd8\x01\n\"GetMostRecentShieldedAnchorRequest\x12p\n\x02v0\x18\x01 \x01(\x0b\x32\x62.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0H\x00\x1a\x35\n$GetMostRecentShieldedAnchorRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xdc\x02\n#GetMostRecentShieldedAnchorResponse\x12r\n\x02v0\x18\x01 \x01(\x0b\x32\x64.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0H\x00\x1a\xb5\x01\n%GetMostRecentShieldedAnchorResponseV0\x12\x10\n\x06\x61nchor\x18\x01 \x01(\x0cH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xbc\x01\n\x1bGetShieldedPoolStateRequest\x12\x62\n\x02v0\x18\x01 \x01(\x0b\x32T.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0H\x00\x1a.\n\x1dGetShieldedPoolStateRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xcb\x02\n\x1cGetShieldedPoolStateResponse\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0H\x00\x1a\xb9\x01\n\x1eGetShieldedPoolStateResponseV0\x12\x1b\n\rtotal_balance\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xc0\x01\n\x1cGetShieldedNotesCountRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0H\x00\x1a/\n\x1eGetShieldedNotesCountRequestV0\x12\r\n\x05prove\x18\x01 \x01(\x08\x42\t\n\x07version\"\xd3\x02\n\x1dGetShieldedNotesCountResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0H\x00\x1a\xbe\x01\n\x1fGetShieldedNotesCountResponseV0\x12\x1f\n\x11total_notes_count\x18\x01 \x01(\x04\x42\x02\x30\x01H\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadataB\x08\n\x06resultB\t\n\x07version\"\xd4\x01\n\x1cGetShieldedNullifiersRequest\x12\x64\n\x02v0\x18\x01 \x01(\x0b\x32V.org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0H\x00\x1a\x43\n\x1eGetShieldedNullifiersRequestV0\x12\x12\n\nnullifiers\x18\x01 \x03(\x0c\x12\r\n\x05prove\x18\x02 \x01(\x08\x42\t\n\x07version\"\x86\x05\n\x1dGetShieldedNullifiersResponse\x12\x66\n\x02v0\x18\x01 \x01(\x0b\x32X.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0H\x00\x1a\xf1\x03\n\x1fGetShieldedNullifiersResponseV0\x12\x88\x01\n\x12nullifier_statuses\x18\x01 \x01(\x0b\x32j.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatusesH\x00\x12\x31\n\x05proof\x18\x02 \x01(\x0b\x32 .org.dash.platform.dapi.v0.ProofH\x00\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32+.org.dash.platform.dapi.v0.ResponseMetadata\x1a\x36\n\x0fNullifierStatus\x12\x11\n\tnullifier\x18\x01 \x01(\x0c\x12\x10\n\x08is_spent\x18\x02 \x01(\x08\x1a\x8e\x01\n\x11NullifierStatuses\x12y\n\x07\x65ntries\x18\x01 \x03(\x0b\x32h.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatusB\x08\n\x06resultB\t\n\x07version*Z\n\nKeyPurpose\x12\x12\n\x0e\x41UTHENTICATION\x10\x00\x12\x0e\n\nENCRYPTION\x10\x01\x12\x0e\n\nDECRYPTION\x10\x02\x12\x0c\n\x08TRANSFER\x10\x03\x12\n\n\x06VOTING\x10\x05\x32\xce\x44\n\x08Platform\x12\x93\x01\n\x18\x62roadcastStateTransition\x12:.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest\x1a;.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse\x12l\n\x0bgetIdentity\x12-.org.dash.platform.dapi.v0.GetIdentityRequest\x1a..org.dash.platform.dapi.v0.GetIdentityResponse\x12x\n\x0fgetIdentityKeys\x12\x31.org.dash.platform.dapi.v0.GetIdentityKeysRequest\x1a\x32.org.dash.platform.dapi.v0.GetIdentityKeysResponse\x12\x96\x01\n\x19getIdentitiesContractKeys\x12;.org.dash.platform.dapi.v0.GetIdentitiesContractKeysRequest\x1a<.org.dash.platform.dapi.v0.GetIdentitiesContractKeysResponse\x12{\n\x10getIdentityNonce\x12\x32.org.dash.platform.dapi.v0.GetIdentityNonceRequest\x1a\x33.org.dash.platform.dapi.v0.GetIdentityNonceResponse\x12\x93\x01\n\x18getIdentityContractNonce\x12:.org.dash.platform.dapi.v0.GetIdentityContractNonceRequest\x1a;.org.dash.platform.dapi.v0.GetIdentityContractNonceResponse\x12\x81\x01\n\x12getIdentityBalance\x12\x34.org.dash.platform.dapi.v0.GetIdentityBalanceRequest\x1a\x35.org.dash.platform.dapi.v0.GetIdentityBalanceResponse\x12\x8a\x01\n\x15getIdentitiesBalances\x12\x37.org.dash.platform.dapi.v0.GetIdentitiesBalancesRequest\x1a\x38.org.dash.platform.dapi.v0.GetIdentitiesBalancesResponse\x12\xa2\x01\n\x1dgetIdentityBalanceAndRevision\x12?.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionRequest\x1a@.org.dash.platform.dapi.v0.GetIdentityBalanceAndRevisionResponse\x12\xaf\x01\n#getEvonodesProposedEpochBlocksByIds\x12\x45.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByIdsRequest\x1a\x41.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse\x12\xb3\x01\n%getEvonodesProposedEpochBlocksByRange\x12G.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksByRangeRequest\x1a\x41.org.dash.platform.dapi.v0.GetEvonodesProposedEpochBlocksResponse\x12x\n\x0fgetDataContract\x12\x31.org.dash.platform.dapi.v0.GetDataContractRequest\x1a\x32.org.dash.platform.dapi.v0.GetDataContractResponse\x12\x8d\x01\n\x16getDataContractHistory\x12\x38.org.dash.platform.dapi.v0.GetDataContractHistoryRequest\x1a\x39.org.dash.platform.dapi.v0.GetDataContractHistoryResponse\x12{\n\x10getDataContracts\x12\x32.org.dash.platform.dapi.v0.GetDataContractsRequest\x1a\x33.org.dash.platform.dapi.v0.GetDataContractsResponse\x12\x81\x01\n\x12getDocumentHistory\x12\x34.org.dash.platform.dapi.v0.GetDocumentHistoryRequest\x1a\x35.org.dash.platform.dapi.v0.GetDocumentHistoryResponse\x12o\n\x0cgetDocuments\x12..org.dash.platform.dapi.v0.GetDocumentsRequest\x1a/.org.dash.platform.dapi.v0.GetDocumentsResponse\x12\x99\x01\n\x1agetIdentityByPublicKeyHash\x12<.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashRequest\x1a=.org.dash.platform.dapi.v0.GetIdentityByPublicKeyHashResponse\x12\xb4\x01\n#getIdentityByNonUniquePublicKeyHash\x12\x45.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashRequest\x1a\x46.org.dash.platform.dapi.v0.GetIdentityByNonUniquePublicKeyHashResponse\x12\x9f\x01\n\x1cwaitForStateTransitionResult\x12>.org.dash.platform.dapi.v0.WaitForStateTransitionResultRequest\x1a?.org.dash.platform.dapi.v0.WaitForStateTransitionResultResponse\x12\x81\x01\n\x12getConsensusParams\x12\x34.org.dash.platform.dapi.v0.GetConsensusParamsRequest\x1a\x35.org.dash.platform.dapi.v0.GetConsensusParamsResponse\x12\xa5\x01\n\x1egetProtocolVersionUpgradeState\x12@.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateRequest\x1a\x41.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeStateResponse\x12\xb4\x01\n#getProtocolVersionUpgradeVoteStatus\x12\x45.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusRequest\x1a\x46.org.dash.platform.dapi.v0.GetProtocolVersionUpgradeVoteStatusResponse\x12r\n\rgetEpochsInfo\x12/.org.dash.platform.dapi.v0.GetEpochsInfoRequest\x1a\x30.org.dash.platform.dapi.v0.GetEpochsInfoResponse\x12\x8d\x01\n\x16getFinalizedEpochInfos\x12\x38.org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest\x1a\x39.org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse\x12\x8a\x01\n\x15getContestedResources\x12\x37.org.dash.platform.dapi.v0.GetContestedResourcesRequest\x1a\x38.org.dash.platform.dapi.v0.GetContestedResourcesResponse\x12\xa2\x01\n\x1dgetContestedResourceVoteState\x12?.org.dash.platform.dapi.v0.GetContestedResourceVoteStateRequest\x1a@.org.dash.platform.dapi.v0.GetContestedResourceVoteStateResponse\x12\xba\x01\n%getContestedResourceVotersForIdentity\x12G.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityRequest\x1aH.org.dash.platform.dapi.v0.GetContestedResourceVotersForIdentityResponse\x12\xae\x01\n!getContestedResourceIdentityVotes\x12\x43.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesRequest\x1a\x44.org.dash.platform.dapi.v0.GetContestedResourceIdentityVotesResponse\x12\x8a\x01\n\x15getVotePollsByEndDate\x12\x37.org.dash.platform.dapi.v0.GetVotePollsByEndDateRequest\x1a\x38.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse\x12\xa5\x01\n\x1egetPrefundedSpecializedBalance\x12@.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceRequest\x1a\x41.org.dash.platform.dapi.v0.GetPrefundedSpecializedBalanceResponse\x12\x96\x01\n\x19getTotalCreditsInPlatform\x12;.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformRequest\x1a<.org.dash.platform.dapi.v0.GetTotalCreditsInPlatformResponse\x12x\n\x0fgetPathElements\x12\x31.org.dash.platform.dapi.v0.GetPathElementsRequest\x1a\x32.org.dash.platform.dapi.v0.GetPathElementsResponse\x12\x66\n\tgetStatus\x12+.org.dash.platform.dapi.v0.GetStatusRequest\x1a,.org.dash.platform.dapi.v0.GetStatusResponse\x12\x8a\x01\n\x15getCurrentQuorumsInfo\x12\x37.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoRequest\x1a\x38.org.dash.platform.dapi.v0.GetCurrentQuorumsInfoResponse\x12\x93\x01\n\x18getIdentityTokenBalances\x12:.org.dash.platform.dapi.v0.GetIdentityTokenBalancesRequest\x1a;.org.dash.platform.dapi.v0.GetIdentityTokenBalancesResponse\x12\x99\x01\n\x1agetIdentitiesTokenBalances\x12<.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesRequest\x1a=.org.dash.platform.dapi.v0.GetIdentitiesTokenBalancesResponse\x12\x8a\x01\n\x15getIdentityTokenInfos\x12\x37.org.dash.platform.dapi.v0.GetIdentityTokenInfosRequest\x1a\x38.org.dash.platform.dapi.v0.GetIdentityTokenInfosResponse\x12\x90\x01\n\x17getIdentitiesTokenInfos\x12\x39.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosRequest\x1a:.org.dash.platform.dapi.v0.GetIdentitiesTokenInfosResponse\x12{\n\x10getTokenStatuses\x12\x32.org.dash.platform.dapi.v0.GetTokenStatusesRequest\x1a\x33.org.dash.platform.dapi.v0.GetTokenStatusesResponse\x12\x9f\x01\n\x1cgetTokenDirectPurchasePrices\x12>.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesRequest\x1a?.org.dash.platform.dapi.v0.GetTokenDirectPurchasePricesResponse\x12\x87\x01\n\x14getTokenContractInfo\x12\x36.org.dash.platform.dapi.v0.GetTokenContractInfoRequest\x1a\x37.org.dash.platform.dapi.v0.GetTokenContractInfoResponse\x12\xb1\x01\n\"getTokenPreProgrammedDistributions\x12\x44.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsRequest\x1a\x45.org.dash.platform.dapi.v0.GetTokenPreProgrammedDistributionsResponse\x12\xbd\x01\n&getTokenPerpetualDistributionLastClaim\x12H.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimRequest\x1aI.org.dash.platform.dapi.v0.GetTokenPerpetualDistributionLastClaimResponse\x12\x84\x01\n\x13getTokenTotalSupply\x12\x35.org.dash.platform.dapi.v0.GetTokenTotalSupplyRequest\x1a\x36.org.dash.platform.dapi.v0.GetTokenTotalSupplyResponse\x12o\n\x0cgetGroupInfo\x12..org.dash.platform.dapi.v0.GetGroupInfoRequest\x1a/.org.dash.platform.dapi.v0.GetGroupInfoResponse\x12r\n\rgetGroupInfos\x12/.org.dash.platform.dapi.v0.GetGroupInfosRequest\x1a\x30.org.dash.platform.dapi.v0.GetGroupInfosResponse\x12x\n\x0fgetGroupActions\x12\x31.org.dash.platform.dapi.v0.GetGroupActionsRequest\x1a\x32.org.dash.platform.dapi.v0.GetGroupActionsResponse\x12\x8a\x01\n\x15getGroupActionSigners\x12\x37.org.dash.platform.dapi.v0.GetGroupActionSignersRequest\x1a\x38.org.dash.platform.dapi.v0.GetGroupActionSignersResponse\x12u\n\x0egetAddressInfo\x12\x30.org.dash.platform.dapi.v0.GetAddressInfoRequest\x1a\x31.org.dash.platform.dapi.v0.GetAddressInfoResponse\x12~\n\x11getAddressesInfos\x12\x33.org.dash.platform.dapi.v0.GetAddressesInfosRequest\x1a\x34.org.dash.platform.dapi.v0.GetAddressesInfosResponse\x12\x8d\x01\n\x16getAddressesTrunkState\x12\x38.org.dash.platform.dapi.v0.GetAddressesTrunkStateRequest\x1a\x39.org.dash.platform.dapi.v0.GetAddressesTrunkStateResponse\x12\x90\x01\n\x17getAddressesBranchState\x12\x39.org.dash.platform.dapi.v0.GetAddressesBranchStateRequest\x1a:.org.dash.platform.dapi.v0.GetAddressesBranchStateResponse\x12\xa5\x01\n\x1egetRecentAddressBalanceChanges\x12@.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesRequest\x1a\x41.org.dash.platform.dapi.v0.GetRecentAddressBalanceChangesResponse\x12\xc0\x01\n\'getRecentCompactedAddressBalanceChanges\x12I.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesRequest\x1aJ.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse\x12\x96\x01\n\x19getShieldedEncryptedNotes\x12;.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest\x1a<.org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse\x12\x81\x01\n\x12getShieldedAnchors\x12\x34.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest\x1a\x35.org.dash.platform.dapi.v0.GetShieldedAnchorsResponse\x12\x9c\x01\n\x1bgetMostRecentShieldedAnchor\x12=.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest\x1a>.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse\x12\x87\x01\n\x14getShieldedPoolState\x12\x36.org.dash.platform.dapi.v0.GetShieldedPoolStateRequest\x1a\x37.org.dash.platform.dapi.v0.GetShieldedPoolStateResponse\x12\x8a\x01\n\x15getShieldedNotesCount\x12\x37.org.dash.platform.dapi.v0.GetShieldedNotesCountRequest\x1a\x38.org.dash.platform.dapi.v0.GetShieldedNotesCountResponse\x12\x8a\x01\n\x15getShieldedNullifiers\x12\x37.org.dash.platform.dapi.v0.GetShieldedNullifiersRequest\x1a\x38.org.dash.platform.dapi.v0.GetShieldedNullifiersResponseb\x06proto3' , dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -62,8 +62,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=68534, - serialized_end=68624, + serialized_start=65680, + serialized_end=65770, ) _sym_db.RegisterEnumDescriptor(_KEYPURPOSE) @@ -17466,793 +17466,6 @@ serialized_end=65678, ) - -_GETNULLIFIERSTRUNKSTATEREQUEST_GETNULLIFIERSTRUNKSTATEREQUESTV0 = _descriptor.Descriptor( - name='GetNullifiersTrunkStateRequestV0', - full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='pool_type', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.pool_type', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pool_identifier', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.pool_identifier', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=65821, - serialized_end=65899, -) - -_GETNULLIFIERSTRUNKSTATEREQUEST = _descriptor.Descriptor( - name='GetNullifiersTrunkStateRequest', - full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETNULLIFIERSTRUNKSTATEREQUEST_GETNULLIFIERSTRUNKSTATEREQUESTV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=65681, - serialized_end=65910, -) - - -_GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0 = _descriptor.Descriptor( - name='GetNullifiersTrunkStateResponseV0', - full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='proof', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.proof', index=0, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.metadata', index=1, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=66057, - serialized_end=66204, -) - -_GETNULLIFIERSTRUNKSTATERESPONSE = _descriptor.Descriptor( - name='GetNullifiersTrunkStateResponse', - full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=65913, - serialized_end=66215, -) - - -_GETNULLIFIERSBRANCHSTATEREQUEST_GETNULLIFIERSBRANCHSTATEREQUESTV0 = _descriptor.Descriptor( - name='GetNullifiersBranchStateRequestV0', - full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='pool_type', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.pool_type', index=0, - number=1, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='pool_identifier', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.pool_identifier', index=1, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='key', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.key', index=2, - number=3, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='depth', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.depth', index=3, - number=4, type=13, cpp_type=3, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='checkpoint_height', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.checkpoint_height', index=4, - number=5, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=66362, - serialized_end=66496, -) - -_GETNULLIFIERSBRANCHSTATEREQUEST = _descriptor.Descriptor( - name='GetNullifiersBranchStateRequest', - full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETNULLIFIERSBRANCHSTATEREQUEST_GETNULLIFIERSBRANCHSTATEREQUESTV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=66218, - serialized_end=66507, -) - - -_GETNULLIFIERSBRANCHSTATERESPONSE_GETNULLIFIERSBRANCHSTATERESPONSEV0 = _descriptor.Descriptor( - name='GetNullifiersBranchStateResponseV0', - full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='merk_proof', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.merk_proof', index=0, - number=2, type=12, cpp_type=9, label=1, - has_default_value=False, default_value=b"", - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=66656, - serialized_end=66712, -) - -_GETNULLIFIERSBRANCHSTATERESPONSE = _descriptor.Descriptor( - name='GetNullifiersBranchStateResponse', - full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETNULLIFIERSBRANCHSTATERESPONSE_GETNULLIFIERSBRANCHSTATERESPONSEV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=66510, - serialized_end=66723, -) - - -_BLOCKNULLIFIERCHANGES = _descriptor.Descriptor( - name='BlockNullifierChanges', - full_name='org.dash.platform.dapi.v0.BlockNullifierChanges', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='block_height', full_name='org.dash.platform.dapi.v0.BlockNullifierChanges.block_height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='nullifiers', full_name='org.dash.platform.dapi.v0.BlockNullifierChanges.nullifiers', index=1, - number=2, type=12, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=66725, - serialized_end=66794, -) - - -_NULLIFIERUPDATEENTRIES = _descriptor.Descriptor( - name='NullifierUpdateEntries', - full_name='org.dash.platform.dapi.v0.NullifierUpdateEntries', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='block_changes', full_name='org.dash.platform.dapi.v0.NullifierUpdateEntries.block_changes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=66796, - serialized_end=66893, -) - - -_GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0 = _descriptor.Descriptor( - name='GetRecentNullifierChangesRequestV0', - full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='start_height', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.start_height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prove', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prove', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=67042, - serialized_end=67119, -) - -_GETRECENTNULLIFIERCHANGESREQUEST = _descriptor.Descriptor( - name='GetRecentNullifierChangesRequest', - full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=66896, - serialized_end=67130, -) - - -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0 = _descriptor.Descriptor( - name='GetRecentNullifierChangesResponseV0', - full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='nullifier_update_entries', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.nullifier_update_entries', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='proof', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.proof', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.metadata', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='result', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.result', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=67283, - serialized_end=67531, -) - -_GETRECENTNULLIFIERCHANGESRESPONSE = _descriptor.Descriptor( - name='GetRecentNullifierChangesResponse', - full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=67133, - serialized_end=67542, -) - - -_COMPACTEDBLOCKNULLIFIERCHANGES = _descriptor.Descriptor( - name='CompactedBlockNullifierChanges', - full_name='org.dash.platform.dapi.v0.CompactedBlockNullifierChanges', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='start_block_height', full_name='org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.start_block_height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='end_block_height', full_name='org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.end_block_height', index=1, - number=2, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='nullifiers', full_name='org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.nullifiers', index=2, - number=3, type=12, cpp_type=9, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=67544, - serialized_end=67658, -) - - -_COMPACTEDNULLIFIERUPDATEENTRIES = _descriptor.Descriptor( - name='CompactedNullifierUpdateEntries', - full_name='org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='compacted_block_changes', full_name='org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.compacted_block_changes', index=0, - number=1, type=11, cpp_type=10, label=3, - has_default_value=False, default_value=[], - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=67660, - serialized_end=67785, -) - - -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0 = _descriptor.Descriptor( - name='GetRecentCompactedNullifierChangesRequestV0', - full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='start_block_height', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.start_block_height', index=0, - number=1, type=4, cpp_type=4, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=b'0\001', file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='prove', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prove', index=1, - number=2, type=8, cpp_type=7, label=1, - has_default_value=False, default_value=False, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=67961, - serialized_end=68053, -) - -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST = _descriptor.Descriptor( - name='GetRecentCompactedNullifierChangesRequest', - full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=67788, - serialized_end=68064, -) - - -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0 = _descriptor.Descriptor( - name='GetRecentCompactedNullifierChangesResponseV0', - full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='compacted_nullifier_update_entries', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.compacted_nullifier_update_entries', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='proof', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.proof', index=1, - number=2, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - _descriptor.FieldDescriptor( - name='metadata', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.metadata', index=2, - number=3, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='result', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.result', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=68245, - serialized_end=68521, -) - -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE = _descriptor.Descriptor( - name='GetRecentCompactedNullifierChangesResponse', - full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[ - _descriptor.FieldDescriptor( - name='v0', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.v0', index=0, - number=1, type=11, cpp_type=10, label=1, - has_default_value=False, default_value=None, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), - ], - extensions=[ - ], - nested_types=[_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - _descriptor.OneofDescriptor( - name='version', full_name='org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.version', - index=0, containing_type=None, - create_key=_descriptor._internal_create_key, - fields=[]), - ], - serialized_start=68067, - serialized_end=68532, -) - _GETIDENTITYREQUEST_GETIDENTITYREQUESTV0.containing_type = _GETIDENTITYREQUEST _GETIDENTITYREQUEST.fields_by_name['v0'].message_type = _GETIDENTITYREQUEST_GETIDENTITYREQUESTV0 _GETIDENTITYREQUEST.oneofs_by_name['version'].fields.append( @@ -19973,68 +19186,6 @@ _GETSHIELDEDNULLIFIERSRESPONSE.oneofs_by_name['version'].fields.append( _GETSHIELDEDNULLIFIERSRESPONSE.fields_by_name['v0']) _GETSHIELDEDNULLIFIERSRESPONSE.fields_by_name['v0'].containing_oneof = _GETSHIELDEDNULLIFIERSRESPONSE.oneofs_by_name['version'] -_GETNULLIFIERSTRUNKSTATEREQUEST_GETNULLIFIERSTRUNKSTATEREQUESTV0.containing_type = _GETNULLIFIERSTRUNKSTATEREQUEST -_GETNULLIFIERSTRUNKSTATEREQUEST.fields_by_name['v0'].message_type = _GETNULLIFIERSTRUNKSTATEREQUEST_GETNULLIFIERSTRUNKSTATEREQUESTV0 -_GETNULLIFIERSTRUNKSTATEREQUEST.oneofs_by_name['version'].fields.append( - _GETNULLIFIERSTRUNKSTATEREQUEST.fields_by_name['v0']) -_GETNULLIFIERSTRUNKSTATEREQUEST.fields_by_name['v0'].containing_oneof = _GETNULLIFIERSTRUNKSTATEREQUEST.oneofs_by_name['version'] -_GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0.fields_by_name['proof'].message_type = _PROOF -_GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0.fields_by_name['metadata'].message_type = _RESPONSEMETADATA -_GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0.containing_type = _GETNULLIFIERSTRUNKSTATERESPONSE -_GETNULLIFIERSTRUNKSTATERESPONSE.fields_by_name['v0'].message_type = _GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0 -_GETNULLIFIERSTRUNKSTATERESPONSE.oneofs_by_name['version'].fields.append( - _GETNULLIFIERSTRUNKSTATERESPONSE.fields_by_name['v0']) -_GETNULLIFIERSTRUNKSTATERESPONSE.fields_by_name['v0'].containing_oneof = _GETNULLIFIERSTRUNKSTATERESPONSE.oneofs_by_name['version'] -_GETNULLIFIERSBRANCHSTATEREQUEST_GETNULLIFIERSBRANCHSTATEREQUESTV0.containing_type = _GETNULLIFIERSBRANCHSTATEREQUEST -_GETNULLIFIERSBRANCHSTATEREQUEST.fields_by_name['v0'].message_type = _GETNULLIFIERSBRANCHSTATEREQUEST_GETNULLIFIERSBRANCHSTATEREQUESTV0 -_GETNULLIFIERSBRANCHSTATEREQUEST.oneofs_by_name['version'].fields.append( - _GETNULLIFIERSBRANCHSTATEREQUEST.fields_by_name['v0']) -_GETNULLIFIERSBRANCHSTATEREQUEST.fields_by_name['v0'].containing_oneof = _GETNULLIFIERSBRANCHSTATEREQUEST.oneofs_by_name['version'] -_GETNULLIFIERSBRANCHSTATERESPONSE_GETNULLIFIERSBRANCHSTATERESPONSEV0.containing_type = _GETNULLIFIERSBRANCHSTATERESPONSE -_GETNULLIFIERSBRANCHSTATERESPONSE.fields_by_name['v0'].message_type = _GETNULLIFIERSBRANCHSTATERESPONSE_GETNULLIFIERSBRANCHSTATERESPONSEV0 -_GETNULLIFIERSBRANCHSTATERESPONSE.oneofs_by_name['version'].fields.append( - _GETNULLIFIERSBRANCHSTATERESPONSE.fields_by_name['v0']) -_GETNULLIFIERSBRANCHSTATERESPONSE.fields_by_name['v0'].containing_oneof = _GETNULLIFIERSBRANCHSTATERESPONSE.oneofs_by_name['version'] -_NULLIFIERUPDATEENTRIES.fields_by_name['block_changes'].message_type = _BLOCKNULLIFIERCHANGES -_GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0.containing_type = _GETRECENTNULLIFIERCHANGESREQUEST -_GETRECENTNULLIFIERCHANGESREQUEST.fields_by_name['v0'].message_type = _GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0 -_GETRECENTNULLIFIERCHANGESREQUEST.oneofs_by_name['version'].fields.append( - _GETRECENTNULLIFIERCHANGESREQUEST.fields_by_name['v0']) -_GETRECENTNULLIFIERCHANGESREQUEST.fields_by_name['v0'].containing_oneof = _GETRECENTNULLIFIERCHANGESREQUEST.oneofs_by_name['version'] -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['nullifier_update_entries'].message_type = _NULLIFIERUPDATEENTRIES -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof'].message_type = _PROOF -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['metadata'].message_type = _RESPONSEMETADATA -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.containing_type = _GETRECENTNULLIFIERCHANGESRESPONSE -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'].fields.append( - _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['nullifier_update_entries']) -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['nullifier_update_entries'].containing_oneof = _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'] -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'].fields.append( - _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof']) -_GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof'].containing_oneof = _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'] -_GETRECENTNULLIFIERCHANGESRESPONSE.fields_by_name['v0'].message_type = _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0 -_GETRECENTNULLIFIERCHANGESRESPONSE.oneofs_by_name['version'].fields.append( - _GETRECENTNULLIFIERCHANGESRESPONSE.fields_by_name['v0']) -_GETRECENTNULLIFIERCHANGESRESPONSE.fields_by_name['v0'].containing_oneof = _GETRECENTNULLIFIERCHANGESRESPONSE.oneofs_by_name['version'] -_COMPACTEDNULLIFIERUPDATEENTRIES.fields_by_name['compacted_block_changes'].message_type = _COMPACTEDBLOCKNULLIFIERCHANGES -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0.containing_type = _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST.fields_by_name['v0'].message_type = _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0 -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST.oneofs_by_name['version'].fields.append( - _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST.fields_by_name['v0']) -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST.fields_by_name['v0'].containing_oneof = _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST.oneofs_by_name['version'] -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['compacted_nullifier_update_entries'].message_type = _COMPACTEDNULLIFIERUPDATEENTRIES -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof'].message_type = _PROOF -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['metadata'].message_type = _RESPONSEMETADATA -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.containing_type = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'].fields.append( - _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['compacted_nullifier_update_entries']) -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['compacted_nullifier_update_entries'].containing_oneof = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'] -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'].fields.append( - _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof']) -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.fields_by_name['proof'].containing_oneof = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0.oneofs_by_name['result'] -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE.fields_by_name['v0'].message_type = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0 -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE.oneofs_by_name['version'].fields.append( - _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE.fields_by_name['v0']) -_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE.fields_by_name['v0'].containing_oneof = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE.oneofs_by_name['version'] DESCRIPTOR.message_types_by_name['Proof'] = _PROOF DESCRIPTOR.message_types_by_name['ResponseMetadata'] = _RESPONSEMETADATA DESCRIPTOR.message_types_by_name['StateTransitionBroadcastError'] = _STATETRANSITIONBROADCASTERROR @@ -20173,18 +19324,6 @@ DESCRIPTOR.message_types_by_name['GetShieldedNotesCountResponse'] = _GETSHIELDEDNOTESCOUNTRESPONSE DESCRIPTOR.message_types_by_name['GetShieldedNullifiersRequest'] = _GETSHIELDEDNULLIFIERSREQUEST DESCRIPTOR.message_types_by_name['GetShieldedNullifiersResponse'] = _GETSHIELDEDNULLIFIERSRESPONSE -DESCRIPTOR.message_types_by_name['GetNullifiersTrunkStateRequest'] = _GETNULLIFIERSTRUNKSTATEREQUEST -DESCRIPTOR.message_types_by_name['GetNullifiersTrunkStateResponse'] = _GETNULLIFIERSTRUNKSTATERESPONSE -DESCRIPTOR.message_types_by_name['GetNullifiersBranchStateRequest'] = _GETNULLIFIERSBRANCHSTATEREQUEST -DESCRIPTOR.message_types_by_name['GetNullifiersBranchStateResponse'] = _GETNULLIFIERSBRANCHSTATERESPONSE -DESCRIPTOR.message_types_by_name['BlockNullifierChanges'] = _BLOCKNULLIFIERCHANGES -DESCRIPTOR.message_types_by_name['NullifierUpdateEntries'] = _NULLIFIERUPDATEENTRIES -DESCRIPTOR.message_types_by_name['GetRecentNullifierChangesRequest'] = _GETRECENTNULLIFIERCHANGESREQUEST -DESCRIPTOR.message_types_by_name['GetRecentNullifierChangesResponse'] = _GETRECENTNULLIFIERCHANGESRESPONSE -DESCRIPTOR.message_types_by_name['CompactedBlockNullifierChanges'] = _COMPACTEDBLOCKNULLIFIERCHANGES -DESCRIPTOR.message_types_by_name['CompactedNullifierUpdateEntries'] = _COMPACTEDNULLIFIERUPDATEENTRIES -DESCRIPTOR.message_types_by_name['GetRecentCompactedNullifierChangesRequest'] = _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST -DESCRIPTOR.message_types_by_name['GetRecentCompactedNullifierChangesResponse'] = _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE DESCRIPTOR.enum_types_by_name['KeyPurpose'] = _KEYPURPOSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -23218,154 +22357,6 @@ _sym_db.RegisterMessage(GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatus) _sym_db.RegisterMessage(GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses) -GetNullifiersTrunkStateRequest = _reflection.GeneratedProtocolMessageType('GetNullifiersTrunkStateRequest', (_message.Message,), { - - 'GetNullifiersTrunkStateRequestV0' : _reflection.GeneratedProtocolMessageType('GetNullifiersTrunkStateRequestV0', (_message.Message,), { - 'DESCRIPTOR' : _GETNULLIFIERSTRUNKSTATEREQUEST_GETNULLIFIERSTRUNKSTATEREQUESTV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0) - }) - , - 'DESCRIPTOR' : _GETNULLIFIERSTRUNKSTATEREQUEST, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest) - }) -_sym_db.RegisterMessage(GetNullifiersTrunkStateRequest) -_sym_db.RegisterMessage(GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0) - -GetNullifiersTrunkStateResponse = _reflection.GeneratedProtocolMessageType('GetNullifiersTrunkStateResponse', (_message.Message,), { - - 'GetNullifiersTrunkStateResponseV0' : _reflection.GeneratedProtocolMessageType('GetNullifiersTrunkStateResponseV0', (_message.Message,), { - 'DESCRIPTOR' : _GETNULLIFIERSTRUNKSTATERESPONSE_GETNULLIFIERSTRUNKSTATERESPONSEV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0) - }) - , - 'DESCRIPTOR' : _GETNULLIFIERSTRUNKSTATERESPONSE, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse) - }) -_sym_db.RegisterMessage(GetNullifiersTrunkStateResponse) -_sym_db.RegisterMessage(GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0) - -GetNullifiersBranchStateRequest = _reflection.GeneratedProtocolMessageType('GetNullifiersBranchStateRequest', (_message.Message,), { - - 'GetNullifiersBranchStateRequestV0' : _reflection.GeneratedProtocolMessageType('GetNullifiersBranchStateRequestV0', (_message.Message,), { - 'DESCRIPTOR' : _GETNULLIFIERSBRANCHSTATEREQUEST_GETNULLIFIERSBRANCHSTATEREQUESTV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0) - }) - , - 'DESCRIPTOR' : _GETNULLIFIERSBRANCHSTATEREQUEST, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest) - }) -_sym_db.RegisterMessage(GetNullifiersBranchStateRequest) -_sym_db.RegisterMessage(GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0) - -GetNullifiersBranchStateResponse = _reflection.GeneratedProtocolMessageType('GetNullifiersBranchStateResponse', (_message.Message,), { - - 'GetNullifiersBranchStateResponseV0' : _reflection.GeneratedProtocolMessageType('GetNullifiersBranchStateResponseV0', (_message.Message,), { - 'DESCRIPTOR' : _GETNULLIFIERSBRANCHSTATERESPONSE_GETNULLIFIERSBRANCHSTATERESPONSEV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0) - }) - , - 'DESCRIPTOR' : _GETNULLIFIERSBRANCHSTATERESPONSE, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse) - }) -_sym_db.RegisterMessage(GetNullifiersBranchStateResponse) -_sym_db.RegisterMessage(GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0) - -BlockNullifierChanges = _reflection.GeneratedProtocolMessageType('BlockNullifierChanges', (_message.Message,), { - 'DESCRIPTOR' : _BLOCKNULLIFIERCHANGES, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.BlockNullifierChanges) - }) -_sym_db.RegisterMessage(BlockNullifierChanges) - -NullifierUpdateEntries = _reflection.GeneratedProtocolMessageType('NullifierUpdateEntries', (_message.Message,), { - 'DESCRIPTOR' : _NULLIFIERUPDATEENTRIES, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.NullifierUpdateEntries) - }) -_sym_db.RegisterMessage(NullifierUpdateEntries) - -GetRecentNullifierChangesRequest = _reflection.GeneratedProtocolMessageType('GetRecentNullifierChangesRequest', (_message.Message,), { - - 'GetRecentNullifierChangesRequestV0' : _reflection.GeneratedProtocolMessageType('GetRecentNullifierChangesRequestV0', (_message.Message,), { - 'DESCRIPTOR' : _GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0) - }) - , - 'DESCRIPTOR' : _GETRECENTNULLIFIERCHANGESREQUEST, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest) - }) -_sym_db.RegisterMessage(GetRecentNullifierChangesRequest) -_sym_db.RegisterMessage(GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0) - -GetRecentNullifierChangesResponse = _reflection.GeneratedProtocolMessageType('GetRecentNullifierChangesResponse', (_message.Message,), { - - 'GetRecentNullifierChangesResponseV0' : _reflection.GeneratedProtocolMessageType('GetRecentNullifierChangesResponseV0', (_message.Message,), { - 'DESCRIPTOR' : _GETRECENTNULLIFIERCHANGESRESPONSE_GETRECENTNULLIFIERCHANGESRESPONSEV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0) - }) - , - 'DESCRIPTOR' : _GETRECENTNULLIFIERCHANGESRESPONSE, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse) - }) -_sym_db.RegisterMessage(GetRecentNullifierChangesResponse) -_sym_db.RegisterMessage(GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0) - -CompactedBlockNullifierChanges = _reflection.GeneratedProtocolMessageType('CompactedBlockNullifierChanges', (_message.Message,), { - 'DESCRIPTOR' : _COMPACTEDBLOCKNULLIFIERCHANGES, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.CompactedBlockNullifierChanges) - }) -_sym_db.RegisterMessage(CompactedBlockNullifierChanges) - -CompactedNullifierUpdateEntries = _reflection.GeneratedProtocolMessageType('CompactedNullifierUpdateEntries', (_message.Message,), { - 'DESCRIPTOR' : _COMPACTEDNULLIFIERUPDATEENTRIES, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries) - }) -_sym_db.RegisterMessage(CompactedNullifierUpdateEntries) - -GetRecentCompactedNullifierChangesRequest = _reflection.GeneratedProtocolMessageType('GetRecentCompactedNullifierChangesRequest', (_message.Message,), { - - 'GetRecentCompactedNullifierChangesRequestV0' : _reflection.GeneratedProtocolMessageType('GetRecentCompactedNullifierChangesRequestV0', (_message.Message,), { - 'DESCRIPTOR' : _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0) - }) - , - 'DESCRIPTOR' : _GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest) - }) -_sym_db.RegisterMessage(GetRecentCompactedNullifierChangesRequest) -_sym_db.RegisterMessage(GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0) - -GetRecentCompactedNullifierChangesResponse = _reflection.GeneratedProtocolMessageType('GetRecentCompactedNullifierChangesResponse', (_message.Message,), { - - 'GetRecentCompactedNullifierChangesResponseV0' : _reflection.GeneratedProtocolMessageType('GetRecentCompactedNullifierChangesResponseV0', (_message.Message,), { - 'DESCRIPTOR' : _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSEV0, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0) - }) - , - 'DESCRIPTOR' : _GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE, - '__module__' : 'platform_pb2' - # @@protoc_insertion_point(class_scope:org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse) - }) -_sym_db.RegisterMessage(GetRecentCompactedNullifierChangesResponse) -_sym_db.RegisterMessage(GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0) - _RESPONSEMETADATA.fields_by_name['height']._options = None _RESPONSEMETADATA.fields_by_name['time_ms']._options = None @@ -23436,11 +22427,6 @@ _GETRECENTCOMPACTEDADDRESSBALANCECHANGESREQUEST_GETRECENTCOMPACTEDADDRESSBALANCECHANGESREQUESTV0.fields_by_name['start_block_height']._options = None _GETSHIELDEDPOOLSTATERESPONSE_GETSHIELDEDPOOLSTATERESPONSEV0.fields_by_name['total_balance']._options = None _GETSHIELDEDNOTESCOUNTRESPONSE_GETSHIELDEDNOTESCOUNTRESPONSEV0.fields_by_name['total_notes_count']._options = None -_BLOCKNULLIFIERCHANGES.fields_by_name['block_height']._options = None -_GETRECENTNULLIFIERCHANGESREQUEST_GETRECENTNULLIFIERCHANGESREQUESTV0.fields_by_name['start_height']._options = None -_COMPACTEDBLOCKNULLIFIERCHANGES.fields_by_name['start_block_height']._options = None -_COMPACTEDBLOCKNULLIFIERCHANGES.fields_by_name['end_block_height']._options = None -_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUESTV0.fields_by_name['start_block_height']._options = None _PLATFORM = _descriptor.ServiceDescriptor( name='Platform', @@ -23449,8 +22435,8 @@ index=0, serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_start=68627, - serialized_end=78039, + serialized_start=65773, + serialized_end=74555, methods=[ _descriptor.MethodDescriptor( name='broadcastStateTransition', @@ -24052,46 +23038,6 @@ serialized_options=None, create_key=_descriptor._internal_create_key, ), - _descriptor.MethodDescriptor( - name='getNullifiersTrunkState', - full_name='org.dash.platform.dapi.v0.Platform.getNullifiersTrunkState', - index=60, - containing_service=None, - input_type=_GETNULLIFIERSTRUNKSTATEREQUEST, - output_type=_GETNULLIFIERSTRUNKSTATERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='getNullifiersBranchState', - full_name='org.dash.platform.dapi.v0.Platform.getNullifiersBranchState', - index=61, - containing_service=None, - input_type=_GETNULLIFIERSBRANCHSTATEREQUEST, - output_type=_GETNULLIFIERSBRANCHSTATERESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='getRecentNullifierChanges', - full_name='org.dash.platform.dapi.v0.Platform.getRecentNullifierChanges', - index=62, - containing_service=None, - input_type=_GETRECENTNULLIFIERCHANGESREQUEST, - output_type=_GETRECENTNULLIFIERCHANGESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), - _descriptor.MethodDescriptor( - name='getRecentCompactedNullifierChanges', - full_name='org.dash.platform.dapi.v0.Platform.getRecentCompactedNullifierChanges', - index=63, - containing_service=None, - input_type=_GETRECENTCOMPACTEDNULLIFIERCHANGESREQUEST, - output_type=_GETRECENTCOMPACTEDNULLIFIERCHANGESRESPONSE, - serialized_options=None, - create_key=_descriptor._internal_create_key, - ), ]) _sym_db.RegisterServiceDescriptor(_PLATFORM) diff --git a/packages/dapi-grpc/clients/platform/v0/python/platform_pb2_grpc.py b/packages/dapi-grpc/clients/platform/v0/python/platform_pb2_grpc.py index 323aba15bc9..8b57e38dbaa 100644 --- a/packages/dapi-grpc/clients/platform/v0/python/platform_pb2_grpc.py +++ b/packages/dapi-grpc/clients/platform/v0/python/platform_pb2_grpc.py @@ -314,26 +314,6 @@ def __init__(self, channel): request_serializer=platform__pb2.GetShieldedNullifiersRequest.SerializeToString, response_deserializer=platform__pb2.GetShieldedNullifiersResponse.FromString, ) - self.getNullifiersTrunkState = channel.unary_unary( - '/org.dash.platform.dapi.v0.Platform/getNullifiersTrunkState', - request_serializer=platform__pb2.GetNullifiersTrunkStateRequest.SerializeToString, - response_deserializer=platform__pb2.GetNullifiersTrunkStateResponse.FromString, - ) - self.getNullifiersBranchState = channel.unary_unary( - '/org.dash.platform.dapi.v0.Platform/getNullifiersBranchState', - request_serializer=platform__pb2.GetNullifiersBranchStateRequest.SerializeToString, - response_deserializer=platform__pb2.GetNullifiersBranchStateResponse.FromString, - ) - self.getRecentNullifierChanges = channel.unary_unary( - '/org.dash.platform.dapi.v0.Platform/getRecentNullifierChanges', - request_serializer=platform__pb2.GetRecentNullifierChangesRequest.SerializeToString, - response_deserializer=platform__pb2.GetRecentNullifierChangesResponse.FromString, - ) - self.getRecentCompactedNullifierChanges = channel.unary_unary( - '/org.dash.platform.dapi.v0.Platform/getRecentCompactedNullifierChanges', - request_serializer=platform__pb2.GetRecentCompactedNullifierChangesRequest.SerializeToString, - response_deserializer=platform__pb2.GetRecentCompactedNullifierChangesResponse.FromString, - ) class PlatformServicer(object): @@ -706,30 +686,6 @@ def getShieldedNullifiers(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def getNullifiersTrunkState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getNullifiersBranchState(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getRecentNullifierChanges(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def getRecentCompactedNullifierChanges(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_PlatformServicer_to_server(servicer, server): rpc_method_handlers = { @@ -1033,26 +989,6 @@ def add_PlatformServicer_to_server(servicer, server): request_deserializer=platform__pb2.GetShieldedNullifiersRequest.FromString, response_serializer=platform__pb2.GetShieldedNullifiersResponse.SerializeToString, ), - 'getNullifiersTrunkState': grpc.unary_unary_rpc_method_handler( - servicer.getNullifiersTrunkState, - request_deserializer=platform__pb2.GetNullifiersTrunkStateRequest.FromString, - response_serializer=platform__pb2.GetNullifiersTrunkStateResponse.SerializeToString, - ), - 'getNullifiersBranchState': grpc.unary_unary_rpc_method_handler( - servicer.getNullifiersBranchState, - request_deserializer=platform__pb2.GetNullifiersBranchStateRequest.FromString, - response_serializer=platform__pb2.GetNullifiersBranchStateResponse.SerializeToString, - ), - 'getRecentNullifierChanges': grpc.unary_unary_rpc_method_handler( - servicer.getRecentNullifierChanges, - request_deserializer=platform__pb2.GetRecentNullifierChangesRequest.FromString, - response_serializer=platform__pb2.GetRecentNullifierChangesResponse.SerializeToString, - ), - 'getRecentCompactedNullifierChanges': grpc.unary_unary_rpc_method_handler( - servicer.getRecentCompactedNullifierChanges, - request_deserializer=platform__pb2.GetRecentCompactedNullifierChangesRequest.FromString, - response_serializer=platform__pb2.GetRecentCompactedNullifierChangesResponse.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'org.dash.platform.dapi.v0.Platform', rpc_method_handlers) @@ -2082,71 +2018,3 @@ def getShieldedNullifiers(request, platform__pb2.GetShieldedNullifiersResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def getNullifiersTrunkState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/org.dash.platform.dapi.v0.Platform/getNullifiersTrunkState', - platform__pb2.GetNullifiersTrunkStateRequest.SerializeToString, - platform__pb2.GetNullifiersTrunkStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def getNullifiersBranchState(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/org.dash.platform.dapi.v0.Platform/getNullifiersBranchState', - platform__pb2.GetNullifiersBranchStateRequest.SerializeToString, - platform__pb2.GetNullifiersBranchStateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def getRecentNullifierChanges(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/org.dash.platform.dapi.v0.Platform/getRecentNullifierChanges', - platform__pb2.GetRecentNullifierChangesRequest.SerializeToString, - platform__pb2.GetRecentNullifierChangesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def getRecentCompactedNullifierChanges(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/org.dash.platform.dapi.v0.Platform/getRecentCompactedNullifierChanges', - platform__pb2.GetRecentCompactedNullifierChangesRequest.SerializeToString, - platform__pb2.GetRecentCompactedNullifierChangesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/packages/dapi-grpc/clients/platform/v0/web/platform_pb.d.ts b/packages/dapi-grpc/clients/platform/v0/web/platform_pb.d.ts index b21598935b4..75f90aec7ae 100644 --- a/packages/dapi-grpc/clients/platform/v0/web/platform_pb.d.ts +++ b/packages/dapi-grpc/clients/platform/v0/web/platform_pb.d.ts @@ -12430,580 +12430,6 @@ export namespace GetShieldedNullifiersResponse { } } -export class GetNullifiersTrunkStateRequest extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 | undefined; - setV0(value?: GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0): void; - - getVersionCase(): GetNullifiersTrunkStateRequest.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersTrunkStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersTrunkStateRequest): GetNullifiersTrunkStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersTrunkStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersTrunkStateRequest; - static deserializeBinaryFromReader(message: GetNullifiersTrunkStateRequest, reader: jspb.BinaryReader): GetNullifiersTrunkStateRequest; -} - -export namespace GetNullifiersTrunkStateRequest { - export type AsObject = { - v0?: GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.AsObject, - } - - export class GetNullifiersTrunkStateRequestV0 extends jspb.Message { - getPoolType(): number; - setPoolType(value: number): void; - - getPoolIdentifier(): Uint8Array | string; - getPoolIdentifier_asU8(): Uint8Array; - getPoolIdentifier_asB64(): string; - setPoolIdentifier(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersTrunkStateRequestV0.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersTrunkStateRequestV0): GetNullifiersTrunkStateRequestV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersTrunkStateRequestV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersTrunkStateRequestV0; - static deserializeBinaryFromReader(message: GetNullifiersTrunkStateRequestV0, reader: jspb.BinaryReader): GetNullifiersTrunkStateRequestV0; - } - - export namespace GetNullifiersTrunkStateRequestV0 { - export type AsObject = { - poolType: number, - poolIdentifier: Uint8Array | string, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class GetNullifiersTrunkStateResponse extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 | undefined; - setV0(value?: GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0): void; - - getVersionCase(): GetNullifiersTrunkStateResponse.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersTrunkStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersTrunkStateResponse): GetNullifiersTrunkStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersTrunkStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersTrunkStateResponse; - static deserializeBinaryFromReader(message: GetNullifiersTrunkStateResponse, reader: jspb.BinaryReader): GetNullifiersTrunkStateResponse; -} - -export namespace GetNullifiersTrunkStateResponse { - export type AsObject = { - v0?: GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.AsObject, - } - - export class GetNullifiersTrunkStateResponseV0 extends jspb.Message { - hasProof(): boolean; - clearProof(): void; - getProof(): Proof | undefined; - setProof(value?: Proof): void; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): ResponseMetadata | undefined; - setMetadata(value?: ResponseMetadata): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersTrunkStateResponseV0.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersTrunkStateResponseV0): GetNullifiersTrunkStateResponseV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersTrunkStateResponseV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersTrunkStateResponseV0; - static deserializeBinaryFromReader(message: GetNullifiersTrunkStateResponseV0, reader: jspb.BinaryReader): GetNullifiersTrunkStateResponseV0; - } - - export namespace GetNullifiersTrunkStateResponseV0 { - export type AsObject = { - proof?: Proof.AsObject, - metadata?: ResponseMetadata.AsObject, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class GetNullifiersBranchStateRequest extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 | undefined; - setV0(value?: GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0): void; - - getVersionCase(): GetNullifiersBranchStateRequest.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersBranchStateRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersBranchStateRequest): GetNullifiersBranchStateRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersBranchStateRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersBranchStateRequest; - static deserializeBinaryFromReader(message: GetNullifiersBranchStateRequest, reader: jspb.BinaryReader): GetNullifiersBranchStateRequest; -} - -export namespace GetNullifiersBranchStateRequest { - export type AsObject = { - v0?: GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.AsObject, - } - - export class GetNullifiersBranchStateRequestV0 extends jspb.Message { - getPoolType(): number; - setPoolType(value: number): void; - - getPoolIdentifier(): Uint8Array | string; - getPoolIdentifier_asU8(): Uint8Array; - getPoolIdentifier_asB64(): string; - setPoolIdentifier(value: Uint8Array | string): void; - - getKey(): Uint8Array | string; - getKey_asU8(): Uint8Array; - getKey_asB64(): string; - setKey(value: Uint8Array | string): void; - - getDepth(): number; - setDepth(value: number): void; - - getCheckpointHeight(): number; - setCheckpointHeight(value: number): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersBranchStateRequestV0.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersBranchStateRequestV0): GetNullifiersBranchStateRequestV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersBranchStateRequestV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersBranchStateRequestV0; - static deserializeBinaryFromReader(message: GetNullifiersBranchStateRequestV0, reader: jspb.BinaryReader): GetNullifiersBranchStateRequestV0; - } - - export namespace GetNullifiersBranchStateRequestV0 { - export type AsObject = { - poolType: number, - poolIdentifier: Uint8Array | string, - key: Uint8Array | string, - depth: number, - checkpointHeight: number, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class GetNullifiersBranchStateResponse extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 | undefined; - setV0(value?: GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0): void; - - getVersionCase(): GetNullifiersBranchStateResponse.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersBranchStateResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersBranchStateResponse): GetNullifiersBranchStateResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersBranchStateResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersBranchStateResponse; - static deserializeBinaryFromReader(message: GetNullifiersBranchStateResponse, reader: jspb.BinaryReader): GetNullifiersBranchStateResponse; -} - -export namespace GetNullifiersBranchStateResponse { - export type AsObject = { - v0?: GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.AsObject, - } - - export class GetNullifiersBranchStateResponseV0 extends jspb.Message { - getMerkProof(): Uint8Array | string; - getMerkProof_asU8(): Uint8Array; - getMerkProof_asB64(): string; - setMerkProof(value: Uint8Array | string): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetNullifiersBranchStateResponseV0.AsObject; - static toObject(includeInstance: boolean, msg: GetNullifiersBranchStateResponseV0): GetNullifiersBranchStateResponseV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetNullifiersBranchStateResponseV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetNullifiersBranchStateResponseV0; - static deserializeBinaryFromReader(message: GetNullifiersBranchStateResponseV0, reader: jspb.BinaryReader): GetNullifiersBranchStateResponseV0; - } - - export namespace GetNullifiersBranchStateResponseV0 { - export type AsObject = { - merkProof: Uint8Array | string, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class BlockNullifierChanges extends jspb.Message { - getBlockHeight(): string; - setBlockHeight(value: string): void; - - clearNullifiersList(): void; - getNullifiersList(): Array; - getNullifiersList_asU8(): Array; - getNullifiersList_asB64(): Array; - setNullifiersList(value: Array): void; - addNullifiers(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): BlockNullifierChanges.AsObject; - static toObject(includeInstance: boolean, msg: BlockNullifierChanges): BlockNullifierChanges.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: BlockNullifierChanges, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): BlockNullifierChanges; - static deserializeBinaryFromReader(message: BlockNullifierChanges, reader: jspb.BinaryReader): BlockNullifierChanges; -} - -export namespace BlockNullifierChanges { - export type AsObject = { - blockHeight: string, - nullifiersList: Array, - } -} - -export class NullifierUpdateEntries extends jspb.Message { - clearBlockChangesList(): void; - getBlockChangesList(): Array; - setBlockChangesList(value: Array): void; - addBlockChanges(value?: BlockNullifierChanges, index?: number): BlockNullifierChanges; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): NullifierUpdateEntries.AsObject; - static toObject(includeInstance: boolean, msg: NullifierUpdateEntries): NullifierUpdateEntries.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: NullifierUpdateEntries, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): NullifierUpdateEntries; - static deserializeBinaryFromReader(message: NullifierUpdateEntries, reader: jspb.BinaryReader): NullifierUpdateEntries; -} - -export namespace NullifierUpdateEntries { - export type AsObject = { - blockChangesList: Array, - } -} - -export class GetRecentNullifierChangesRequest extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 | undefined; - setV0(value?: GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0): void; - - getVersionCase(): GetRecentNullifierChangesRequest.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentNullifierChangesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentNullifierChangesRequest): GetRecentNullifierChangesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentNullifierChangesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentNullifierChangesRequest; - static deserializeBinaryFromReader(message: GetRecentNullifierChangesRequest, reader: jspb.BinaryReader): GetRecentNullifierChangesRequest; -} - -export namespace GetRecentNullifierChangesRequest { - export type AsObject = { - v0?: GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.AsObject, - } - - export class GetRecentNullifierChangesRequestV0 extends jspb.Message { - getStartHeight(): string; - setStartHeight(value: string): void; - - getProve(): boolean; - setProve(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentNullifierChangesRequestV0.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentNullifierChangesRequestV0): GetRecentNullifierChangesRequestV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentNullifierChangesRequestV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentNullifierChangesRequestV0; - static deserializeBinaryFromReader(message: GetRecentNullifierChangesRequestV0, reader: jspb.BinaryReader): GetRecentNullifierChangesRequestV0; - } - - export namespace GetRecentNullifierChangesRequestV0 { - export type AsObject = { - startHeight: string, - prove: boolean, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class GetRecentNullifierChangesResponse extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 | undefined; - setV0(value?: GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0): void; - - getVersionCase(): GetRecentNullifierChangesResponse.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentNullifierChangesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentNullifierChangesResponse): GetRecentNullifierChangesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentNullifierChangesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentNullifierChangesResponse; - static deserializeBinaryFromReader(message: GetRecentNullifierChangesResponse, reader: jspb.BinaryReader): GetRecentNullifierChangesResponse; -} - -export namespace GetRecentNullifierChangesResponse { - export type AsObject = { - v0?: GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.AsObject, - } - - export class GetRecentNullifierChangesResponseV0 extends jspb.Message { - hasNullifierUpdateEntries(): boolean; - clearNullifierUpdateEntries(): void; - getNullifierUpdateEntries(): NullifierUpdateEntries | undefined; - setNullifierUpdateEntries(value?: NullifierUpdateEntries): void; - - hasProof(): boolean; - clearProof(): void; - getProof(): Proof | undefined; - setProof(value?: Proof): void; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): ResponseMetadata | undefined; - setMetadata(value?: ResponseMetadata): void; - - getResultCase(): GetRecentNullifierChangesResponseV0.ResultCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentNullifierChangesResponseV0.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentNullifierChangesResponseV0): GetRecentNullifierChangesResponseV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentNullifierChangesResponseV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentNullifierChangesResponseV0; - static deserializeBinaryFromReader(message: GetRecentNullifierChangesResponseV0, reader: jspb.BinaryReader): GetRecentNullifierChangesResponseV0; - } - - export namespace GetRecentNullifierChangesResponseV0 { - export type AsObject = { - nullifierUpdateEntries?: NullifierUpdateEntries.AsObject, - proof?: Proof.AsObject, - metadata?: ResponseMetadata.AsObject, - } - - export enum ResultCase { - RESULT_NOT_SET = 0, - NULLIFIER_UPDATE_ENTRIES = 1, - PROOF = 2, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class CompactedBlockNullifierChanges extends jspb.Message { - getStartBlockHeight(): string; - setStartBlockHeight(value: string): void; - - getEndBlockHeight(): string; - setEndBlockHeight(value: string): void; - - clearNullifiersList(): void; - getNullifiersList(): Array; - getNullifiersList_asU8(): Array; - getNullifiersList_asB64(): Array; - setNullifiersList(value: Array): void; - addNullifiers(value: Uint8Array | string, index?: number): Uint8Array | string; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CompactedBlockNullifierChanges.AsObject; - static toObject(includeInstance: boolean, msg: CompactedBlockNullifierChanges): CompactedBlockNullifierChanges.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CompactedBlockNullifierChanges, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CompactedBlockNullifierChanges; - static deserializeBinaryFromReader(message: CompactedBlockNullifierChanges, reader: jspb.BinaryReader): CompactedBlockNullifierChanges; -} - -export namespace CompactedBlockNullifierChanges { - export type AsObject = { - startBlockHeight: string, - endBlockHeight: string, - nullifiersList: Array, - } -} - -export class CompactedNullifierUpdateEntries extends jspb.Message { - clearCompactedBlockChangesList(): void; - getCompactedBlockChangesList(): Array; - setCompactedBlockChangesList(value: Array): void; - addCompactedBlockChanges(value?: CompactedBlockNullifierChanges, index?: number): CompactedBlockNullifierChanges; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): CompactedNullifierUpdateEntries.AsObject; - static toObject(includeInstance: boolean, msg: CompactedNullifierUpdateEntries): CompactedNullifierUpdateEntries.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: CompactedNullifierUpdateEntries, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): CompactedNullifierUpdateEntries; - static deserializeBinaryFromReader(message: CompactedNullifierUpdateEntries, reader: jspb.BinaryReader): CompactedNullifierUpdateEntries; -} - -export namespace CompactedNullifierUpdateEntries { - export type AsObject = { - compactedBlockChangesList: Array, - } -} - -export class GetRecentCompactedNullifierChangesRequest extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 | undefined; - setV0(value?: GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0): void; - - getVersionCase(): GetRecentCompactedNullifierChangesRequest.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentCompactedNullifierChangesRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentCompactedNullifierChangesRequest): GetRecentCompactedNullifierChangesRequest.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentCompactedNullifierChangesRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentCompactedNullifierChangesRequest; - static deserializeBinaryFromReader(message: GetRecentCompactedNullifierChangesRequest, reader: jspb.BinaryReader): GetRecentCompactedNullifierChangesRequest; -} - -export namespace GetRecentCompactedNullifierChangesRequest { - export type AsObject = { - v0?: GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.AsObject, - } - - export class GetRecentCompactedNullifierChangesRequestV0 extends jspb.Message { - getStartBlockHeight(): string; - setStartBlockHeight(value: string): void; - - getProve(): boolean; - setProve(value: boolean): void; - - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentCompactedNullifierChangesRequestV0.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentCompactedNullifierChangesRequestV0): GetRecentCompactedNullifierChangesRequestV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentCompactedNullifierChangesRequestV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentCompactedNullifierChangesRequestV0; - static deserializeBinaryFromReader(message: GetRecentCompactedNullifierChangesRequestV0, reader: jspb.BinaryReader): GetRecentCompactedNullifierChangesRequestV0; - } - - export namespace GetRecentCompactedNullifierChangesRequestV0 { - export type AsObject = { - startBlockHeight: string, - prove: boolean, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - -export class GetRecentCompactedNullifierChangesResponse extends jspb.Message { - hasV0(): boolean; - clearV0(): void; - getV0(): GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 | undefined; - setV0(value?: GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0): void; - - getVersionCase(): GetRecentCompactedNullifierChangesResponse.VersionCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentCompactedNullifierChangesResponse.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentCompactedNullifierChangesResponse): GetRecentCompactedNullifierChangesResponse.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentCompactedNullifierChangesResponse, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentCompactedNullifierChangesResponse; - static deserializeBinaryFromReader(message: GetRecentCompactedNullifierChangesResponse, reader: jspb.BinaryReader): GetRecentCompactedNullifierChangesResponse; -} - -export namespace GetRecentCompactedNullifierChangesResponse { - export type AsObject = { - v0?: GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.AsObject, - } - - export class GetRecentCompactedNullifierChangesResponseV0 extends jspb.Message { - hasCompactedNullifierUpdateEntries(): boolean; - clearCompactedNullifierUpdateEntries(): void; - getCompactedNullifierUpdateEntries(): CompactedNullifierUpdateEntries | undefined; - setCompactedNullifierUpdateEntries(value?: CompactedNullifierUpdateEntries): void; - - hasProof(): boolean; - clearProof(): void; - getProof(): Proof | undefined; - setProof(value?: Proof): void; - - hasMetadata(): boolean; - clearMetadata(): void; - getMetadata(): ResponseMetadata | undefined; - setMetadata(value?: ResponseMetadata): void; - - getResultCase(): GetRecentCompactedNullifierChangesResponseV0.ResultCase; - serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetRecentCompactedNullifierChangesResponseV0.AsObject; - static toObject(includeInstance: boolean, msg: GetRecentCompactedNullifierChangesResponseV0): GetRecentCompactedNullifierChangesResponseV0.AsObject; - static extensions: {[key: number]: jspb.ExtensionFieldInfo}; - static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetRecentCompactedNullifierChangesResponseV0, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetRecentCompactedNullifierChangesResponseV0; - static deserializeBinaryFromReader(message: GetRecentCompactedNullifierChangesResponseV0, reader: jspb.BinaryReader): GetRecentCompactedNullifierChangesResponseV0; - } - - export namespace GetRecentCompactedNullifierChangesResponseV0 { - export type AsObject = { - compactedNullifierUpdateEntries?: CompactedNullifierUpdateEntries.AsObject, - proof?: Proof.AsObject, - metadata?: ResponseMetadata.AsObject, - } - - export enum ResultCase { - RESULT_NOT_SET = 0, - COMPACTED_NULLIFIER_UPDATE_ENTRIES = 1, - PROOF = 2, - } - } - - export enum VersionCase { - VERSION_NOT_SET = 0, - V0 = 1, - } -} - export interface KeyPurposeMap { AUTHENTICATION: 0; ENCRYPTION: 1; diff --git a/packages/dapi-grpc/clients/platform/v0/web/platform_pb.js b/packages/dapi-grpc/clients/platform/v0/web/platform_pb.js index cfbd3a82738..de7152f9dc9 100644 --- a/packages/dapi-grpc/clients/platform/v0/web/platform_pb.js +++ b/packages/dapi-grpc/clients/platform/v0/web/platform_pb.js @@ -31,15 +31,12 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.AllKeys', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BalanceAndNonce', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockAddressBalanceChanges', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeightCreditEntry', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockNullifierChanges', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceChange.OperationCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedAddressBalanceUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedBlockAddressBalanceChanges', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest.GetAddressInfoRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetAddressInfoRequest.VersionCase', null, { proto }); @@ -426,18 +423,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRe goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0.ResultCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest.GetPathElementsRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetPathElementsRequest.VersionCase', null, { proto }); @@ -485,20 +470,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBala goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.GetRecentCompactedAddressBalanceChangesResponseV0.ResultCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedAddressBalanceChangesResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.VersionCase', null, { proto }); @@ -634,7 +605,6 @@ goog.exportSymbol('proto.org.dash.platform.dapi.v0.GetVotePollsByEndDateResponse goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyPurpose', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyRequestType', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.KeyRequestType.RequestCase', null, { proto }); -goog.exportSymbol('proto.org.dash.platform.dapi.v0.NullifierUpdateEntries', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.Proof', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.ResponseMetadata', null, { proto }); goog.exportSymbol('proto.org.dash.platform.dapi.v0.SearchKey', null, { proto }); @@ -8923,426 +8893,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses.displayName = 'proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.BlockNullifierChanges.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.BlockNullifierChanges, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.displayName = 'proto.org.dash.platform.dapi.v0.BlockNullifierChanges'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.NullifierUpdateEntries, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.displayName = 'proto.org.dash.platform.dapi.v0.NullifierUpdateEntries'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.displayName = 'proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.repeatedFields_, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.displayName = 'proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_); -}; -goog.inherits(proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.displayName = 'proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0'; -} @@ -94338,3900 +93888,6 @@ proto.org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.prototype.hasV0 = }; - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - poolType: jspb.Message.getFieldWithDefault(msg, 1, 0), - poolIdentifier: msg.getPoolIdentifier_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPoolType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPoolIdentifier(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolType(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPoolIdentifier_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional uint32 pool_type = 1; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.setPoolType = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes pool_identifier = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes pool_identifier = 2; - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPoolIdentifier())); -}; - - -/** - * optional bytes pool_identifier = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.getPoolIdentifier_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPoolIdentifier())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0.prototype.setPoolIdentifier = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional GetNullifiersTrunkStateRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.GetNullifiersTrunkStateRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.setProof = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetNullifiersTrunkStateResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.GetNullifiersTrunkStateResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersTrunkStateResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - poolType: jspb.Message.getFieldWithDefault(msg, 1, 0), - poolIdentifier: msg.getPoolIdentifier_asB64(), - key: msg.getKey_asB64(), - depth: jspb.Message.getFieldWithDefault(msg, 4, 0), - checkpointHeight: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPoolType(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPoolIdentifier(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDepth(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setCheckpointHeight(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPoolType(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getPoolIdentifier_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getDepth(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getCheckpointHeight(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } -}; - - -/** - * optional uint32 pool_type = 1; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setPoolType = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes pool_identifier = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes pool_identifier = 2; - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPoolIdentifier())); -}; - - -/** - * optional bytes pool_identifier = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPoolIdentifier()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getPoolIdentifier_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPoolIdentifier())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setPoolIdentifier = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes key = 3; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes key = 3; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes key = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional uint32 depth = 4; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getDepth = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setDepth = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional uint64 checkpoint_height = 5; - * @return {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.getCheckpointHeight = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0.prototype.setCheckpointHeight = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional GetNullifiersBranchStateRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.GetNullifiersBranchStateRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - merkProof: msg.getMerkProof_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0; - return proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setMerkProof(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMerkProof_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional bytes merk_proof = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes merk_proof = 2; - * This is a type-conversion wrapper around `getMerkProof()` - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getMerkProof())); -}; - - -/** - * optional bytes merk_proof = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getMerkProof()` - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.getMerkProof_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getMerkProof())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0.prototype.setMerkProof = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional GetNullifiersBranchStateResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.GetNullifiersBranchStateResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetNullifiersBranchStateResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject = function(includeInstance, msg) { - var f, obj = { - blockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - nullifiersList: msg.getNullifiersList_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.BlockNullifierChanges; - return proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setBlockHeight(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addNullifiers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getNullifiersList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 2, - f - ); - } -}; - - -/** - * optional uint64 block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.setBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * repeated bytes nullifiers = 2; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * repeated bytes nullifiers = 2; - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getNullifiersList())); -}; - - -/** - * repeated bytes nullifiers = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.getNullifiersList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getNullifiersList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.setNullifiersList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.addNullifiers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.BlockNullifierChanges.prototype.clearNullifiersList = function() { - return this.setNullifiersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject = function(includeInstance, msg) { - var f, obj = { - blockChangesList: jspb.Message.toObjectList(msg.getBlockChangesList(), - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.NullifierUpdateEntries; - return proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.BlockNullifierChanges; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.BlockNullifierChanges.deserializeBinaryFromReader); - msg.addBlockChanges(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlockChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.BlockNullifierChanges.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated BlockNullifierChanges block_changes = 1; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.getBlockChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.BlockNullifierChanges, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} returns this -*/ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.setBlockChangesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges=} opt_value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.BlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.addBlockChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.BlockNullifierChanges, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} returns this - */ -proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.prototype.clearBlockChangesList = function() { - return this.setBlockChangesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - startHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartHeight(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setProve(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getProve(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional uint64 start_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.getStartHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.setStartHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional bool prove = 2; - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.getProve = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0.prototype.setProve = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional GetRecentNullifierChangesRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.GetRecentNullifierChangesRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase = { - RESULT_NOT_SET: 0, - NULLIFIER_UPDATE_ENTRIES: 1, - PROOF: 2 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getResultCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - nullifierUpdateEntries: (f = msg.getNullifierUpdateEntries()) && proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.toObject(includeInstance, f), - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0; - return proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.NullifierUpdateEntries; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.deserializeBinaryFromReader); - msg.setNullifierUpdateEntries(value); - break; - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNullifierUpdateEntries(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.NullifierUpdateEntries.serializeBinaryToWriter - ); - } - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional NullifierUpdateEntries nullifier_update_entries = 1; - * @return {?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getNullifierUpdateEntries = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.NullifierUpdateEntries, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.NullifierUpdateEntries|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setNullifierUpdateEntries = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearNullifierUpdateEntries = function() { - return this.setNullifierUpdateEntries(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasNullifierUpdateEntries = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setProof = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetRecentNullifierChangesResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.GetRecentNullifierChangesResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentNullifierChangesResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject = function(includeInstance, msg) { - var f, obj = { - startBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - endBlockHeight: jspb.Message.getFieldWithDefault(msg, 2, "0"), - nullifiersList: msg.getNullifiersList_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges; - return proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartBlockHeight(value); - break; - case 2: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setEndBlockHeight(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.addNullifiers(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getEndBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 2, - f - ); - } - f = message.getNullifiersList_asU8(); - if (f.length > 0) { - writer.writeRepeatedBytes( - 3, - f - ); - } -}; - - -/** - * optional uint64 start_block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getStartBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setStartBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional uint64 end_block_height = 2; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getEndBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setEndBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * repeated bytes nullifiers = 3; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * repeated bytes nullifiers = 3; - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList_asB64 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsB64( - this.getNullifiersList())); -}; - - -/** - * repeated bytes nullifiers = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getNullifiersList()` - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.getNullifiersList_asU8 = function() { - return /** @type {!Array} */ (jspb.Message.bytesListAsU8( - this.getNullifiersList())); -}; - - -/** - * @param {!(Array|Array)} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.setNullifiersList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.addNullifiers = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.prototype.clearNullifiersList = function() { - return this.setNullifiersList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject = function(includeInstance, msg) { - var f, obj = { - compactedBlockChangesList: jspb.Message.toObjectList(msg.getCompactedBlockChangesList(), - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries; - return proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.deserializeBinaryFromReader); - msg.addCompactedBlockChanges(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCompactedBlockChangesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated CompactedBlockNullifierChanges compacted_block_changes = 1; - * @return {!Array} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.getCompactedBlockChangesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} returns this -*/ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.setCompactedBlockChangesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges=} opt_value - * @param {number=} opt_index - * @return {!proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges} - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.addCompactedBlockChanges = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.org.dash.platform.dapi.v0.CompactedBlockNullifierChanges, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} returns this - */ -proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.prototype.clearCompactedBlockChangesList = function() { - return this.setCompactedBlockChangesList([]); -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.toObject = function(includeInstance, msg) { - var f, obj = { - startBlockHeight: jspb.Message.getFieldWithDefault(msg, 1, "0"), - prove: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setStartBlockHeight(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setProve(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStartBlockHeight(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 1, - f - ); - } - f = message.getProve(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional uint64 start_block_height = 1; - * @return {string} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.getStartBlockHeight = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.setStartBlockHeight = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional bool prove = 2; - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.getProve = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0.prototype.setProve = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional GetRecentCompactedNullifierChangesRequestV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.GetRecentCompactedNullifierChangesRequestV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesRequest.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_ = [[1]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase = { - VERSION_NOT_SET: 0, - V0: 1 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.getVersionCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.VersionCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.toObject = function(includeInstance, msg) { - var f, obj = { - v0: (f = msg.getV0()) && proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader); - msg.setV0(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getV0(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter - ); - } -}; - - - -/** - * Oneof group definitions for this message. Each group defines the field - * numbers belonging to that group. When of these fields' value is set, all - * other fields in the group are cleared. During deserialization, if multiple - * fields are encountered for a group, only the last value seen will be kept. - * @private {!Array>} - * @const - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_ = [[1,2]]; - -/** - * @enum {number} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase = { - RESULT_NOT_SET: 0, - COMPACTED_NULLIFIER_UPDATE_ENTRIES: 1, - PROOF: 2 -}; - -/** - * @return {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getResultCase = function() { - return /** @type {proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.ResultCase} */(jspb.Message.computeOneofCase(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0])); -}; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.toObject = function(opt_includeInstance) { - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.toObject = function(includeInstance, msg) { - var f, obj = { - compactedNullifierUpdateEntries: (f = msg.getCompactedNullifierUpdateEntries()) && proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.toObject(includeInstance, f), - proof: (f = msg.getProof()) && proto.org.dash.platform.dapi.v0.Proof.toObject(includeInstance, f), - metadata: (f = msg.getMetadata()) && proto.org.dash.platform.dapi.v0.ResponseMetadata.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0; - return proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.deserializeBinaryFromReader); - msg.setCompactedNullifierUpdateEntries(value); - break; - case 2: - var value = new proto.org.dash.platform.dapi.v0.Proof; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.Proof.deserializeBinaryFromReader); - msg.setProof(value); - break; - case 3: - var value = new proto.org.dash.platform.dapi.v0.ResponseMetadata; - reader.readMessage(value,proto.org.dash.platform.dapi.v0.ResponseMetadata.deserializeBinaryFromReader); - msg.setMetadata(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCompactedNullifierUpdateEntries(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries.serializeBinaryToWriter - ); - } - f = message.getProof(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.org.dash.platform.dapi.v0.Proof.serializeBinaryToWriter - ); - } - f = message.getMetadata(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.org.dash.platform.dapi.v0.ResponseMetadata.serializeBinaryToWriter - ); - } -}; - - -/** - * optional CompactedNullifierUpdateEntries compacted_nullifier_update_entries = 1; - * @return {?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getCompactedNullifierUpdateEntries = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.CompactedNullifierUpdateEntries|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setCompactedNullifierUpdateEntries = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearCompactedNullifierUpdateEntries = function() { - return this.setCompactedNullifierUpdateEntries(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasCompactedNullifierUpdateEntries = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional Proof proof = 2; - * @return {?proto.org.dash.platform.dapi.v0.Proof} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getProof = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.Proof} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.Proof, 2)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.Proof|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setProof = function(value) { - return jspb.Message.setOneofWrapperField(this, 2, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearProof = function() { - return this.setProof(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasProof = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional ResponseMetadata metadata = 3; - * @return {?proto.org.dash.platform.dapi.v0.ResponseMetadata} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.getMetadata = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.ResponseMetadata} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.ResponseMetadata, 3)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.ResponseMetadata|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.setMetadata = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.clearMetadata = function() { - return this.setMetadata(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0.prototype.hasMetadata = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional GetRecentCompactedNullifierChangesResponseV0 v0 = 1; - * @return {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.getV0 = function() { - return /** @type{?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0} */ ( - jspb.Message.getWrapperField(this, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0, 1)); -}; - - -/** - * @param {?proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.GetRecentCompactedNullifierChangesResponseV0|undefined} value - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} returns this -*/ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.setV0 = function(value) { - return jspb.Message.setOneofWrapperField(this, 1, proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.oneofGroups_[0], value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse} returns this - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.clearV0 = function() { - return this.setV0(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.org.dash.platform.dapi.v0.GetRecentCompactedNullifierChangesResponse.prototype.hasV0 = function() { - return jspb.Message.getField(this, 1) != null; -}; - - /** * @enum {number} */ diff --git a/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.d.ts b/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.d.ts index ebab1197a0f..09a503266bd 100644 --- a/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.d.ts +++ b/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.d.ts @@ -544,42 +544,6 @@ type PlatformgetShieldedNullifiers = { readonly responseType: typeof platform_pb.GetShieldedNullifiersResponse; }; -type PlatformgetNullifiersTrunkState = { - readonly methodName: string; - readonly service: typeof Platform; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof platform_pb.GetNullifiersTrunkStateRequest; - readonly responseType: typeof platform_pb.GetNullifiersTrunkStateResponse; -}; - -type PlatformgetNullifiersBranchState = { - readonly methodName: string; - readonly service: typeof Platform; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof platform_pb.GetNullifiersBranchStateRequest; - readonly responseType: typeof platform_pb.GetNullifiersBranchStateResponse; -}; - -type PlatformgetRecentNullifierChanges = { - readonly methodName: string; - readonly service: typeof Platform; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof platform_pb.GetRecentNullifierChangesRequest; - readonly responseType: typeof platform_pb.GetRecentNullifierChangesResponse; -}; - -type PlatformgetRecentCompactedNullifierChanges = { - readonly methodName: string; - readonly service: typeof Platform; - readonly requestStream: false; - readonly responseStream: false; - readonly requestType: typeof platform_pb.GetRecentCompactedNullifierChangesRequest; - readonly responseType: typeof platform_pb.GetRecentCompactedNullifierChangesResponse; -}; - export class Platform { static readonly serviceName: string; static readonly broadcastStateTransition: PlatformbroadcastStateTransition; @@ -642,10 +606,6 @@ export class Platform { static readonly getShieldedPoolState: PlatformgetShieldedPoolState; static readonly getShieldedNotesCount: PlatformgetShieldedNotesCount; static readonly getShieldedNullifiers: PlatformgetShieldedNullifiers; - static readonly getNullifiersTrunkState: PlatformgetNullifiersTrunkState; - static readonly getNullifiersBranchState: PlatformgetNullifiersBranchState; - static readonly getRecentNullifierChanges: PlatformgetRecentNullifierChanges; - static readonly getRecentCompactedNullifierChanges: PlatformgetRecentCompactedNullifierChanges; } export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } @@ -1220,41 +1180,5 @@ export class PlatformClient { requestMessage: platform_pb.GetShieldedNullifiersRequest, callback: (error: ServiceError|null, responseMessage: platform_pb.GetShieldedNullifiersResponse|null) => void ): UnaryResponse; - getNullifiersTrunkState( - requestMessage: platform_pb.GetNullifiersTrunkStateRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetNullifiersTrunkStateResponse|null) => void - ): UnaryResponse; - getNullifiersTrunkState( - requestMessage: platform_pb.GetNullifiersTrunkStateRequest, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetNullifiersTrunkStateResponse|null) => void - ): UnaryResponse; - getNullifiersBranchState( - requestMessage: platform_pb.GetNullifiersBranchStateRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetNullifiersBranchStateResponse|null) => void - ): UnaryResponse; - getNullifiersBranchState( - requestMessage: platform_pb.GetNullifiersBranchStateRequest, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetNullifiersBranchStateResponse|null) => void - ): UnaryResponse; - getRecentNullifierChanges( - requestMessage: platform_pb.GetRecentNullifierChangesRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetRecentNullifierChangesResponse|null) => void - ): UnaryResponse; - getRecentNullifierChanges( - requestMessage: platform_pb.GetRecentNullifierChangesRequest, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetRecentNullifierChangesResponse|null) => void - ): UnaryResponse; - getRecentCompactedNullifierChanges( - requestMessage: platform_pb.GetRecentCompactedNullifierChangesRequest, - metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetRecentCompactedNullifierChangesResponse|null) => void - ): UnaryResponse; - getRecentCompactedNullifierChanges( - requestMessage: platform_pb.GetRecentCompactedNullifierChangesRequest, - callback: (error: ServiceError|null, responseMessage: platform_pb.GetRecentCompactedNullifierChangesResponse|null) => void - ): UnaryResponse; } diff --git a/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.js b/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.js index b5fa64eb420..51cf283c8a8 100644 --- a/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.js +++ b/packages/dapi-grpc/clients/platform/v0/web/platform_pb_service.js @@ -550,42 +550,6 @@ Platform.getShieldedNullifiers = { responseType: platform_pb.GetShieldedNullifiersResponse }; -Platform.getNullifiersTrunkState = { - methodName: "getNullifiersTrunkState", - service: Platform, - requestStream: false, - responseStream: false, - requestType: platform_pb.GetNullifiersTrunkStateRequest, - responseType: platform_pb.GetNullifiersTrunkStateResponse -}; - -Platform.getNullifiersBranchState = { - methodName: "getNullifiersBranchState", - service: Platform, - requestStream: false, - responseStream: false, - requestType: platform_pb.GetNullifiersBranchStateRequest, - responseType: platform_pb.GetNullifiersBranchStateResponse -}; - -Platform.getRecentNullifierChanges = { - methodName: "getRecentNullifierChanges", - service: Platform, - requestStream: false, - responseStream: false, - requestType: platform_pb.GetRecentNullifierChangesRequest, - responseType: platform_pb.GetRecentNullifierChangesResponse -}; - -Platform.getRecentCompactedNullifierChanges = { - methodName: "getRecentCompactedNullifierChanges", - service: Platform, - requestStream: false, - responseStream: false, - requestType: platform_pb.GetRecentCompactedNullifierChangesRequest, - responseType: platform_pb.GetRecentCompactedNullifierChangesResponse -}; - exports.Platform = Platform; function PlatformClient(serviceHost, options) { @@ -2453,129 +2417,5 @@ PlatformClient.prototype.getShieldedNullifiers = function getShieldedNullifiers( }; }; -PlatformClient.prototype.getNullifiersTrunkState = function getNullifiersTrunkState(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Platform.getNullifiersTrunkState, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -PlatformClient.prototype.getNullifiersBranchState = function getNullifiersBranchState(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Platform.getNullifiersBranchState, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -PlatformClient.prototype.getRecentNullifierChanges = function getRecentNullifierChanges(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Platform.getRecentNullifierChanges, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - -PlatformClient.prototype.getRecentCompactedNullifierChanges = function getRecentCompactedNullifierChanges(requestMessage, metadata, callback) { - if (arguments.length === 2) { - callback = arguments[1]; - } - var client = grpc.unary(Platform.getRecentCompactedNullifierChanges, { - request: requestMessage, - host: this.serviceHost, - metadata: metadata, - transport: this.options.transport, - debug: this.options.debug, - onEnd: function (response) { - if (callback) { - if (response.status !== grpc.Code.OK) { - var err = new Error(response.statusMessage); - err.code = response.status; - err.metadata = response.trailers; - callback(err, null); - } else { - callback(null, response.message); - } - } - } - }); - return { - cancel: function () { - callback = null; - client.close(); - } - }; -}; - exports.PlatformClient = PlatformClient; diff --git a/packages/dapi-grpc/protos/platform/v0/platform.proto b/packages/dapi-grpc/protos/platform/v0/platform.proto index 6aab9ce99e3..e584130d231 100644 --- a/packages/dapi-grpc/protos/platform/v0/platform.proto +++ b/packages/dapi-grpc/protos/platform/v0/platform.proto @@ -132,14 +132,6 @@ service Platform { returns (GetShieldedNotesCountResponse); rpc getShieldedNullifiers(GetShieldedNullifiersRequest) returns (GetShieldedNullifiersResponse); - rpc getNullifiersTrunkState(GetNullifiersTrunkStateRequest) - returns (GetNullifiersTrunkStateResponse); - rpc getNullifiersBranchState(GetNullifiersBranchStateRequest) - returns (GetNullifiersBranchStateResponse); - rpc getRecentNullifierChanges(GetRecentNullifierChangesRequest) - returns (GetRecentNullifierChangesResponse); - rpc getRecentCompactedNullifierChanges(GetRecentCompactedNullifierChangesRequest) - returns (GetRecentCompactedNullifierChangesResponse); } // Proof message includes cryptographic proofs for validating responses @@ -3025,98 +3017,3 @@ message GetShieldedNullifiersResponse { } oneof version { GetShieldedNullifiersResponseV0 v0 = 1; } } - -message GetNullifiersTrunkStateRequest { - message GetNullifiersTrunkStateRequestV0 { - uint32 pool_type = 1; // ShieldedPoolType enum value (0=credit, 1=main token, 2=individual token) - bytes pool_identifier = 2; // 32-byte Identifier, required for pool_type=2 - } - oneof version { GetNullifiersTrunkStateRequestV0 v0 = 1; } -} - -message GetNullifiersTrunkStateResponse { - message GetNullifiersTrunkStateResponseV0 { - Proof proof = 2; - ResponseMetadata metadata = 3; - } - oneof version { GetNullifiersTrunkStateResponseV0 v0 = 1; } -} - -message GetNullifiersBranchStateRequest { - message GetNullifiersBranchStateRequestV0 { - uint32 pool_type = 1; - bytes pool_identifier = 2; - bytes key = 3; - uint32 depth = 4; - uint64 checkpoint_height = 5; - } - oneof version { GetNullifiersBranchStateRequestV0 v0 = 1; } -} - -message GetNullifiersBranchStateResponse { - message GetNullifiersBranchStateResponseV0 { - bytes merk_proof = 2; - } - oneof version { GetNullifiersBranchStateResponseV0 v0 = 1; } -} - -// --- Recent Nullifier Changes --- - -message BlockNullifierChanges { - uint64 block_height = 1 [ jstype = JS_STRING ]; - repeated bytes nullifiers = 2; // Each is 32 bytes -} - -message NullifierUpdateEntries { - repeated BlockNullifierChanges block_changes = 1; -} - -message GetRecentNullifierChangesRequest { - message GetRecentNullifierChangesRequestV0 { - uint64 start_height = 1 [ jstype = JS_STRING ]; - bool prove = 2; - } - oneof version { GetRecentNullifierChangesRequestV0 v0 = 1; } -} - -message GetRecentNullifierChangesResponse { - message GetRecentNullifierChangesResponseV0 { - oneof result { - NullifierUpdateEntries nullifier_update_entries = 1; - Proof proof = 2; - } - ResponseMetadata metadata = 3; - } - oneof version { GetRecentNullifierChangesResponseV0 v0 = 1; } -} - -// --- Compacted Nullifier Changes --- - -message CompactedBlockNullifierChanges { - uint64 start_block_height = 1 [ jstype = JS_STRING ]; - uint64 end_block_height = 2 [ jstype = JS_STRING ]; - repeated bytes nullifiers = 3; // Each is 32 bytes -} - -message CompactedNullifierUpdateEntries { - repeated CompactedBlockNullifierChanges compacted_block_changes = 1; -} - -message GetRecentCompactedNullifierChangesRequest { - message GetRecentCompactedNullifierChangesRequestV0 { - uint64 start_block_height = 1 [ jstype = JS_STRING ]; - bool prove = 2; - } - oneof version { GetRecentCompactedNullifierChangesRequestV0 v0 = 1; } -} - -message GetRecentCompactedNullifierChangesResponse { - message GetRecentCompactedNullifierChangesResponseV0 { - oneof result { - CompactedNullifierUpdateEntries compacted_nullifier_update_entries = 1; - Proof proof = 2; - } - ResponseMetadata metadata = 3; - } - oneof version { GetRecentCompactedNullifierChangesResponseV0 v0 = 1; } -} diff --git a/packages/rs-dapi-client/src/transport/grpc.rs b/packages/rs-dapi-client/src/transport/grpc.rs index 27386140b16..6afa4c2f5db 100644 --- a/packages/rs-dapi-client/src/transport/grpc.rs +++ b/packages/rs-dapi-client/src/transport/grpc.rs @@ -514,45 +514,6 @@ impl_transport_request_grpc!( get_shielded_nullifiers ); -// rpc getRecentNullifierChanges(GetRecentNullifierChangesRequest) returns (GetRecentNullifierChangesResponse); -impl_transport_request_grpc!( - platform_proto::GetRecentNullifierChangesRequest, - platform_proto::GetRecentNullifierChangesResponse, - PlatformGrpcClient, - RequestSettings::default(), - get_recent_nullifier_changes -); - -// rpc getRecentCompactedNullifierChanges(GetRecentCompactedNullifierChangesRequest) returns (GetRecentCompactedNullifierChangesResponse); -impl_transport_request_grpc!( - platform_proto::GetRecentCompactedNullifierChangesRequest, - platform_proto::GetRecentCompactedNullifierChangesResponse, - PlatformGrpcClient, - RequestSettings { - max_decoding_message_size: Some(16 * 1024 * 1024), - ..RequestSettings::default() - }, - get_recent_compacted_nullifier_changes -); - -// rpc getNullifiersTrunkState(GetNullifiersTrunkStateRequest) returns (GetNullifiersTrunkStateResponse); -impl_transport_request_grpc!( - platform_proto::GetNullifiersTrunkStateRequest, - platform_proto::GetNullifiersTrunkStateResponse, - PlatformGrpcClient, - RequestSettings::default(), - get_nullifiers_trunk_state -); - -// rpc getNullifiersBranchState(GetNullifiersBranchStateRequest) returns (GetNullifiersBranchStateResponse); -impl_transport_request_grpc!( - platform_proto::GetNullifiersBranchStateRequest, - platform_proto::GetNullifiersBranchStateResponse, - PlatformGrpcClient, - RequestSettings::default(), - get_nullifiers_branch_state -); - // Link to each core gRPC request what client and method to use: impl_transport_request_grpc!( diff --git a/packages/rs-dapi/src/services/platform_service/mod.rs b/packages/rs-dapi/src/services/platform_service/mod.rs index f050c9a8cee..4372bc5067e 100644 --- a/packages/rs-dapi/src/services/platform_service/mod.rs +++ b/packages/rs-dapi/src/services/platform_service/mod.rs @@ -598,28 +598,4 @@ impl Platform for PlatformServiceImpl { dapi_grpc::platform::v0::GetShieldedNullifiersRequest, dapi_grpc::platform::v0::GetShieldedNullifiersResponse ); - - drive_method!( - get_nullifiers_trunk_state, - dapi_grpc::platform::v0::GetNullifiersTrunkStateRequest, - dapi_grpc::platform::v0::GetNullifiersTrunkStateResponse - ); - - drive_method!( - get_nullifiers_branch_state, - dapi_grpc::platform::v0::GetNullifiersBranchStateRequest, - dapi_grpc::platform::v0::GetNullifiersBranchStateResponse - ); - - drive_method!( - get_recent_nullifier_changes, - dapi_grpc::platform::v0::GetRecentNullifierChangesRequest, - dapi_grpc::platform::v0::GetRecentNullifierChangesResponse - ); - - drive_method!( - get_recent_compacted_nullifier_changes, - dapi_grpc::platform::v0::GetRecentCompactedNullifierChangesRequest, - dapi_grpc::platform::v0::GetRecentCompactedNullifierChangesResponse - ); } diff --git a/packages/rs-drive-abci/src/execution/engine/run_block_proposal/v0/mod.rs b/packages/rs-drive-abci/src/execution/engine/run_block_proposal/v0/mod.rs index f61f908af9f..823f1beabc5 100644 --- a/packages/rs-drive-abci/src/execution/engine/run_block_proposal/v0/mod.rs +++ b/packages/rs-drive-abci/src/execution/engine/run_block_proposal/v0/mod.rs @@ -344,9 +344,6 @@ where platform_version, )?; - // Clean up expired compacted nullifier entries - self.cleanup_recent_block_storage_nullifiers(&block_info, transaction, platform_version)?; - // Record shielded pool anchor if the commitment tree changed this block. // This stores block_height → anchor_bytes so shielded transactions can // reference a recent anchor for spend authorization. diff --git a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/mod.rs deleted file mode 100644 index 8acb0bbb838..00000000000 --- a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/mod.rs +++ /dev/null @@ -1,41 +0,0 @@ -mod v0; - -use crate::error::execution::ExecutionError; -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::rpc::core::CoreRPCLike; -use dpp::block::block_info::BlockInfo; -use dpp::version::PlatformVersion; -use drive::grovedb::Transaction; - -impl Platform -where - C: CoreRPCLike, -{ - /// Cleans up expired compacted nullifier entries from recent block storage. - pub(in crate::execution) fn cleanup_recent_block_storage_nullifiers( - &self, - block_info: &BlockInfo, - transaction: &Transaction, - platform_version: &PlatformVersion, - ) -> Result<(), Error> { - match platform_version - .drive_abci - .methods - .state_transition_processing - .cleanup_recent_block_storage_nullifiers - { - None => Ok(()), - Some(0) => self.cleanup_recent_block_storage_nullifiers_v0( - block_info, - transaction, - platform_version, - ), - Some(version) => Err(Error::Execution(ExecutionError::UnknownVersionMismatch { - method: "cleanup_recent_block_storage_nullifiers".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/v0/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/v0/mod.rs deleted file mode 100644 index 9d4651e54f8..00000000000 --- a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/cleanup_recent_block_storage_nullifiers/v0/mod.rs +++ /dev/null @@ -1,111 +0,0 @@ -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::rpc::core::CoreRPCLike; -use dpp::block::block_info::BlockInfo; -use dpp::version::PlatformVersion; -use drive::grovedb::Transaction; - -impl Platform -where - C: CoreRPCLike, -{ - /// Version 0 implementation of cleaning up expired compacted nullifier entries. - pub(super) fn cleanup_recent_block_storage_nullifiers_v0( - &self, - block_info: &BlockInfo, - transaction: &Transaction, - platform_version: &PlatformVersion, - ) -> Result<(), Error> { - self.drive.cleanup_expired_nullifier_compactions( - block_info.time_ms, - Some(transaction), - platform_version, - )?; - - Ok(()) - } -} - -#[cfg(test)] -mod tests { - use crate::test::helpers::setup::TestPlatformBuilder; - use dpp::block::block_info::BlockInfo; - use dpp::block::epoch::Epoch; - use dpp::version::PlatformVersion; - - #[test] - fn test_cleanup_nullifiers_with_no_expired_entries() { - let platform_version = PlatformVersion::latest(); - let platform = TestPlatformBuilder::new() - .build_with_mock_rpc() - .set_genesis_state(); - - let transaction = platform.drive.grove.start_transaction(); - - let block_info = BlockInfo { - time_ms: 1_000_000, - height: 1, - core_height: 1, - epoch: Epoch::default(), - }; - - let result = platform.cleanup_recent_block_storage_nullifiers_v0( - &block_info, - &transaction, - platform_version, - ); - - assert!(result.is_ok()); - } - - /// Nullifier cleanup must be idempotent on an empty state. - #[test] - fn test_cleanup_nullifiers_idempotent_on_empty_state() { - let platform_version = PlatformVersion::latest(); - let platform = TestPlatformBuilder::new() - .build_with_mock_rpc() - .set_genesis_state(); - - let transaction = platform.drive.grove.start_transaction(); - - let block_info = BlockInfo { - time_ms: 5_000, - height: 10, - core_height: 10, - epoch: Epoch::default(), - }; - - for _ in 0..3 { - platform - .cleanup_recent_block_storage_nullifiers_v0( - &block_info, - &transaction, - platform_version, - ) - .expect("nullifier cleanup must be idempotent on empty state"); - } - } - - /// Zero `time_ms` must be accepted and yield no error: nothing can have - /// expired "before time zero", so this is a safe no-op. - #[test] - fn test_cleanup_nullifiers_with_zero_time_ms() { - let platform_version = PlatformVersion::latest(); - let platform = TestPlatformBuilder::new() - .build_with_mock_rpc() - .set_genesis_state(); - - let transaction = platform.drive.grove.start_transaction(); - - let block_info = BlockInfo { - time_ms: 0, - height: 1, - core_height: 1, - epoch: Epoch::default(), - }; - - platform - .cleanup_recent_block_storage_nullifiers_v0(&block_info, &transaction, platform_version) - .expect("zero time_ms must be accepted"); - } -} diff --git a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/mod.rs b/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/mod.rs index 26ea2e160dc..84b91ec6afb 100644 --- a/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/mod.rs +++ b/packages/rs-drive-abci/src/execution/platform_events/state_transition_processing/mod.rs @@ -1,5 +1,4 @@ mod cleanup_recent_block_storage_address_balances; -mod cleanup_recent_block_storage_nullifiers; mod decode_raw_state_transitions; mod execute_event; mod process_raw_state_transitions; diff --git a/packages/rs-drive-abci/src/query/service.rs b/packages/rs-drive-abci/src/query/service.rs index b8322f77087..65de01da193 100644 --- a/packages/rs-drive-abci/src/query/service.rs +++ b/packages/rs-drive-abci/src/query/service.rs @@ -41,25 +41,21 @@ use dapi_grpc::platform::v0::{ GetIdentityResponse, GetIdentityTokenBalancesRequest, GetIdentityTokenBalancesResponse, GetIdentityTokenInfosRequest, GetIdentityTokenInfosResponse, GetMostRecentShieldedAnchorRequest, GetMostRecentShieldedAnchorResponse, - GetNullifiersBranchStateRequest, GetNullifiersBranchStateResponse, - GetNullifiersTrunkStateRequest, GetNullifiersTrunkStateResponse, GetPathElementsRequest, - GetPathElementsResponse, GetPrefundedSpecializedBalanceRequest, + GetPathElementsRequest, GetPathElementsResponse, GetPrefundedSpecializedBalanceRequest, GetPrefundedSpecializedBalanceResponse, GetProtocolVersionUpgradeStateRequest, GetProtocolVersionUpgradeStateResponse, GetProtocolVersionUpgradeVoteStatusRequest, GetProtocolVersionUpgradeVoteStatusResponse, GetRecentAddressBalanceChangesRequest, GetRecentAddressBalanceChangesResponse, GetRecentCompactedAddressBalanceChangesRequest, - GetRecentCompactedAddressBalanceChangesResponse, GetRecentCompactedNullifierChangesRequest, - GetRecentCompactedNullifierChangesResponse, GetRecentNullifierChangesRequest, - GetRecentNullifierChangesResponse, GetShieldedAnchorsRequest, GetShieldedAnchorsResponse, - GetShieldedEncryptedNotesRequest, GetShieldedEncryptedNotesResponse, - GetShieldedNotesCountRequest, GetShieldedNotesCountResponse, GetShieldedNullifiersRequest, - GetShieldedNullifiersResponse, GetShieldedPoolStateRequest, GetShieldedPoolStateResponse, - GetStatusRequest, GetStatusResponse, GetTokenContractInfoRequest, GetTokenContractInfoResponse, - GetTokenDirectPurchasePricesRequest, GetTokenDirectPurchasePricesResponse, - GetTokenPerpetualDistributionLastClaimRequest, GetTokenPerpetualDistributionLastClaimResponse, - GetTokenPreProgrammedDistributionsRequest, GetTokenPreProgrammedDistributionsResponse, - GetTokenStatusesRequest, GetTokenStatusesResponse, GetTokenTotalSupplyRequest, - GetTokenTotalSupplyResponse, GetTotalCreditsInPlatformRequest, + GetRecentCompactedAddressBalanceChangesResponse, GetShieldedAnchorsRequest, + GetShieldedAnchorsResponse, GetShieldedEncryptedNotesRequest, + GetShieldedEncryptedNotesResponse, GetShieldedNotesCountRequest, GetShieldedNotesCountResponse, + GetShieldedNullifiersRequest, GetShieldedNullifiersResponse, GetShieldedPoolStateRequest, + GetShieldedPoolStateResponse, GetStatusRequest, GetStatusResponse, GetTokenContractInfoRequest, + GetTokenContractInfoResponse, GetTokenDirectPurchasePricesRequest, + GetTokenDirectPurchasePricesResponse, GetTokenPerpetualDistributionLastClaimRequest, + GetTokenPerpetualDistributionLastClaimResponse, GetTokenPreProgrammedDistributionsRequest, + GetTokenPreProgrammedDistributionsResponse, GetTokenStatusesRequest, GetTokenStatusesResponse, + GetTokenTotalSupplyRequest, GetTokenTotalSupplyResponse, GetTotalCreditsInPlatformRequest, GetTotalCreditsInPlatformResponse, GetVotePollsByEndDateRequest, GetVotePollsByEndDateResponse, WaitForStateTransitionResultRequest, WaitForStateTransitionResultResponse, }; @@ -972,54 +968,6 @@ impl PlatformService for QueryService { ) .await } - - async fn get_nullifiers_trunk_state( - &self, - request: Request, - ) -> Result, Status> { - self.handle_blocking_query( - request, - Platform::::query_nullifiers_trunk_state, - "get_nullifiers_trunk_state", - ) - .await - } - - async fn get_nullifiers_branch_state( - &self, - request: Request, - ) -> Result, Status> { - self.handle_blocking_query( - request, - Platform::::query_nullifiers_branch_state, - "get_nullifiers_branch_state", - ) - .await - } - - async fn get_recent_nullifier_changes( - &self, - request: Request, - ) -> Result, Status> { - self.handle_blocking_query( - request, - Platform::::query_recent_nullifier_changes, - "get_recent_nullifier_changes", - ) - .await - } - - async fn get_recent_compacted_nullifier_changes( - &self, - request: Request, - ) -> Result, Status> { - self.handle_blocking_query( - request, - Platform::::query_recent_compacted_nullifier_changes, - "get_recent_compacted_nullifier_changes", - ) - .await - } } #[async_trait] diff --git a/packages/rs-drive-abci/src/query/shielded/mod.rs b/packages/rs-drive-abci/src/query/shielded/mod.rs index 996ebdf73f4..4ef6094db5a 100644 --- a/packages/rs-drive-abci/src/query/shielded/mod.rs +++ b/packages/rs-drive-abci/src/query/shielded/mod.rs @@ -3,8 +3,4 @@ mod encrypted_notes; mod most_recent_anchor; mod notes_count; mod nullifiers; -mod nullifiers_branch_state; -mod nullifiers_trunk_state; mod pool_state; -mod recent_compacted_nullifier_changes; -mod recent_nullifier_changes; diff --git a/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/mod.rs b/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/mod.rs deleted file mode 100644 index 51cd7ee7c17..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/mod.rs +++ /dev/null @@ -1,110 +0,0 @@ -use crate::error::query::QueryError; -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_nullifiers_branch_state_request::Version as RequestVersion; -use dapi_grpc::platform::v0::get_nullifiers_branch_state_response::Version as ResponseVersion; -use dapi_grpc::platform::v0::{GetNullifiersBranchStateRequest, GetNullifiersBranchStateResponse}; -use dpp::version::PlatformVersion; -mod v0; - -impl Platform { - /// Querying of the nullifiers branch state (merk proof for sync) - pub fn query_nullifiers_branch_state( - &self, - GetNullifiersBranchStateRequest { version }: GetNullifiersBranchStateRequest, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let Some(version) = version else { - return Ok(QueryValidationResult::new_with_error( - QueryError::DecodingError( - "could not decode nullifiers branch state query".to_string(), - ), - )); - }; - - let feature_version_bounds = &platform_version - .drive_abci - .query - .shielded_queries - .nullifiers_branch_state; - - let feature_version = match &version { - RequestVersion::V0(_) => 0, - }; - if !feature_version_bounds.check_version(feature_version) { - return Ok(QueryValidationResult::new_with_error( - QueryError::UnsupportedQueryVersion( - "nullifiers_branch_state".to_string(), - feature_version_bounds.min_version, - feature_version_bounds.max_version, - platform_version.protocol_version, - feature_version, - ), - )); - } - - match version { - RequestVersion::V0(request_v0) => { - let result = self.query_nullifiers_branch_state_v0( - request_v0, - platform_state, - platform_version, - )?; - Ok(result.map(|response_v0| GetNullifiersBranchStateResponse { - version: Some(ResponseVersion::V0(response_v0)), - })) - } - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dapi_grpc::platform::v0::get_nullifiers_branch_state_request::GetNullifiersBranchStateRequestV0; - use dpp::dashcore::Network; - - #[test] - fn missing_version_returns_decoding_error() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequest { version: None }; - - let result = platform - .query_nullifiers_branch_state(request, &state, version) - .expect("expected query to succeed with validation errors"); - - assert!(matches!( - result.errors.as_slice(), - [QueryError::DecodingError(msg)] - if msg.contains("nullifiers branch state") - )); - } - - #[test] - fn invalid_input_bubbles_up_through_dispatcher() { - // Confirm that when the v0 handler returns Err (e.g. for out-of-range depth), - // the dispatcher propagates it as an Err rather than swallowing it. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequest { - version: Some(RequestVersion::V0(GetNullifiersBranchStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 2, // below min_depth = 6 - checkpoint_height: 0, - })), - }; - - let err = platform - .query_nullifiers_branch_state(request, &state, version) - .expect_err("expected error from out-of-range depth"); - - assert!(matches!(err, Error::Drive(_))); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/v0/mod.rs b/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/v0/mod.rs deleted file mode 100644 index daada70ea16..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/nullifiers_branch_state/v0/mod.rs +++ /dev/null @@ -1,257 +0,0 @@ -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_nullifiers_branch_state_request::GetNullifiersBranchStateRequestV0; -use dapi_grpc::platform::v0::get_nullifiers_branch_state_response::GetNullifiersBranchStateResponseV0; -use dpp::version::PlatformVersion; - -impl Platform { - pub(super) fn query_nullifiers_branch_state_v0( - &self, - GetNullifiersBranchStateRequestV0 { - pool_type, - pool_identifier, - key, - depth, - checkpoint_height, - }: GetNullifiersBranchStateRequestV0, - _platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let pool_id = if pool_identifier.is_empty() { - None - } else { - Some(pool_identifier) - }; - - let merk_proof = self.drive.prove_nullifiers_branch_query( - pool_type, - pool_id, - key, - depth as u8, - checkpoint_height, - platform_version, - )?; - - let response = GetNullifiersBranchStateResponseV0 { merk_proof }; - - Ok(QueryValidationResult::new_with_data(response)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dpp::dashcore::Network; - use drive::drive::{Checkpoint, CheckpointInfo}; - use drive::error::drive::DriveError as DriveInnerError; - use drive::grovedb::GroveDb; - use std::collections::BTreeMap; - use std::sync::Arc; - - fn install_checkpoint( - platform: &crate::test::helpers::setup::TempPlatform, - height: u64, - ) { - let checkpoint_path = platform - .config - .db_path - .join("checkpoints") - .join(height.to_string()); - std::fs::create_dir_all(checkpoint_path.parent().unwrap()) - .expect("expected to create checkpoints dir"); - platform - .drive - .grove - .create_checkpoint(&checkpoint_path) - .expect("expected to create checkpoint"); - let checkpoint_db = - GroveDb::open(&checkpoint_path).expect("expected to open checkpoint db"); - let checkpoint = Checkpoint::new(checkpoint_db, checkpoint_path); - - let mut checkpoints_map = BTreeMap::new(); - checkpoints_map.insert( - height, - CheckpointInfo::new(height * 10, Arc::new(checkpoint)), - ); - platform.drive.checkpoints.store(Arc::new(checkpoints_map)); - } - - #[test] - fn depth_below_min_returns_invalid_input_error() { - // nullifiers_query_min_depth is 6, so depth=3 is out of range and must - // bubble up as a Drive InvalidInput error. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 3, - checkpoint_height: 0, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected depth-range error"); - - let is_invalid_input = matches!( - err, - Error::Drive(drive::error::Error::Drive(DriveInnerError::InvalidInput( - ref msg - ))) if msg.contains("depth") - ); - assert!(is_invalid_input, "unexpected error: {err:?}"); - } - - #[test] - fn depth_above_max_returns_invalid_input_error() { - // nullifiers_query_max_depth is 10, so depth=11 is out of range. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 11, - checkpoint_height: 0, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected depth-range error"); - - assert!(matches!( - err, - Error::Drive(drive::error::Error::Drive(DriveInnerError::InvalidInput(_))) - )); - } - - #[test] - fn unsupported_token_pool_type_returns_not_supported_error() { - // Pool types 1 and 2 are reserved for token shielded pools and must error - // out with NotSupported, exposing the nullifiers_path_for_pool match arm. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 1, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 6, - checkpoint_height: 0, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected unsupported pool type error"); - - assert!(matches!( - err, - Error::Drive(drive::error::Error::Drive(DriveInnerError::NotSupported(_))) - )); - } - - #[test] - fn unknown_pool_type_returns_invalid_input_error() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 999, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 6, - checkpoint_height: 0, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected unknown pool type error"); - - assert!(matches!( - err, - Error::Drive(drive::error::Error::Drive(DriveInnerError::InvalidInput( - ref msg - ))) if msg.contains("Unknown pool type") - )); - } - - #[test] - fn missing_checkpoint_returns_checkpoint_not_found_error() { - // No checkpoints configured, so the requested checkpoint_height cannot be - // resolved and the Drive layer must bubble up CheckpointNotFound. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 6, - checkpoint_height: 42, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected checkpoint missing error"); - - assert!(matches!( - err, - Error::Drive(drive::error::Error::Drive(DriveInnerError::CheckpointNotFound(h))) if h == 42 - )); - } - - #[test] - fn pool_identifier_empty_is_normalized_to_none() { - // When pool_identifier is empty and no checkpoint exists, the handler - // must still translate it to `None` before reaching the drive layer, - // which then errors with CheckpointNotFound rather than a path error. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 0, - // Explicitly empty – exercises the `is_empty() -> None` branch. - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 6, - checkpoint_height: 7, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected checkpoint missing error"); - - assert!(matches!( - err, - Error::Drive(drive::error::Error::Drive( - DriveInnerError::CheckpointNotFound(_) - )) - )); - } - - #[test] - fn branch_query_on_empty_tree_surfaces_merk_error() { - // When a checkpoint exists but the nullifiers tree is still empty, the - // underlying grovedb merk returns "branch_query cannot be performed on - // an empty tree". This documents that the drive-abci layer surfaces it - // verbatim as a Drive error rather than silently producing an empty proof. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - install_checkpoint(&platform, 1); - - let request = GetNullifiersBranchStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - key: vec![0u8; 32], - depth: 6, - checkpoint_height: 1, - }; - - let err = platform - .query_nullifiers_branch_state_v0(request, &state, version) - .expect_err("expected merk error on empty tree"); - - // The precise inner variant is a grovedb/merk implementation detail; we - // just assert it bubbles up as Error::Drive rather than being swallowed. - assert!(matches!(err, Error::Drive(_)), "unexpected error: {err:?}"); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/mod.rs b/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/mod.rs deleted file mode 100644 index aedaf2c1380..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/mod.rs +++ /dev/null @@ -1,86 +0,0 @@ -use crate::error::query::QueryError; -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_nullifiers_trunk_state_request::Version as RequestVersion; -use dapi_grpc::platform::v0::get_nullifiers_trunk_state_response::Version as ResponseVersion; -use dapi_grpc::platform::v0::{GetNullifiersTrunkStateRequest, GetNullifiersTrunkStateResponse}; -use dpp::version::PlatformVersion; -mod v0; - -impl Platform { - /// Querying of the nullifiers trunk state (proof for sync) - pub fn query_nullifiers_trunk_state( - &self, - GetNullifiersTrunkStateRequest { version }: GetNullifiersTrunkStateRequest, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let Some(version) = version else { - return Ok(QueryValidationResult::new_with_error( - QueryError::DecodingError( - "could not decode nullifiers trunk state query".to_string(), - ), - )); - }; - - let feature_version_bounds = &platform_version - .drive_abci - .query - .shielded_queries - .nullifiers_trunk_state; - - let feature_version = match &version { - RequestVersion::V0(_) => 0, - }; - if !feature_version_bounds.check_version(feature_version) { - return Ok(QueryValidationResult::new_with_error( - QueryError::UnsupportedQueryVersion( - "nullifiers_trunk_state".to_string(), - feature_version_bounds.min_version, - feature_version_bounds.max_version, - platform_version.protocol_version, - feature_version, - ), - )); - } - - match version { - RequestVersion::V0(request_v0) => { - let result = self.query_nullifiers_trunk_state_v0( - request_v0, - platform_state, - platform_version, - )?; - Ok(result.map(|response_v0| GetNullifiersTrunkStateResponse { - version: Some(ResponseVersion::V0(response_v0)), - })) - } - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dpp::dashcore::Network; - - #[test] - fn missing_version_returns_decoding_error() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersTrunkStateRequest { version: None }; - - let result = platform - .query_nullifiers_trunk_state(request, &state, version) - .expect("expected query to succeed with validation errors"); - - assert!(matches!( - result.errors.as_slice(), - [QueryError::DecodingError(msg)] - if msg.contains("nullifiers trunk state") - )); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/v0/mod.rs b/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/v0/mod.rs deleted file mode 100644 index 741d6e1df4c..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/nullifiers_trunk_state/v0/mod.rs +++ /dev/null @@ -1,177 +0,0 @@ -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_nullifiers_trunk_state_request::GetNullifiersTrunkStateRequestV0; -use dapi_grpc::platform::v0::get_nullifiers_trunk_state_response::GetNullifiersTrunkStateResponseV0; -use dpp::check_validation_result_with_data; -use dpp::validation::ValidationResult; -use dpp::version::PlatformVersion; -use drive::util::grove_operations::GroveDBToUse; - -impl Platform { - pub(super) fn query_nullifiers_trunk_state_v0( - &self, - GetNullifiersTrunkStateRequestV0 { - pool_type, - pool_identifier, - }: GetNullifiersTrunkStateRequestV0, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let pool_id = if pool_identifier.is_empty() { - None - } else { - Some(pool_identifier) - }; - - let proof = check_validation_result_with_data!(self.drive.prove_nullifiers_trunk_query( - pool_type, - pool_id, - platform_version - )); - - let (grovedb_used, proof) = - self.response_proof_v0(platform_state, proof, GroveDBToUse::LatestCheckpoint)?; - - let response = GetNullifiersTrunkStateResponseV0 { - proof: Some(proof), - metadata: Some(self.response_metadata_v0(platform_state, grovedb_used)), - }; - - Ok(QueryValidationResult::new_with_data(response)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::error::query::QueryError; - use crate::query::tests::setup_platform; - use dpp::dashcore::Network; - use drive::drive::{Checkpoint, CheckpointInfo}; - use drive::error::drive::DriveError as DriveInnerError; - use drive::grovedb::GroveDb; - use std::collections::BTreeMap; - use std::sync::Arc; - - #[test] - fn no_checkpoint_returns_validation_errors() { - // Without any registered checkpoint, prove_nullifiers_trunk_query returns - // a NoCheckpointsAvailable drive error, which the check_validation_result_with_data - // macro funnels into the validation errors list. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersTrunkStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - }; - - let result = platform - .query_nullifiers_trunk_state_v0(request, &state, version) - .expect("should return Ok with validation errors, not Err"); - - assert!( - !result.errors.is_empty(), - "expected validation errors when no checkpoint is available" - ); - assert!(matches!( - result.errors[0], - QueryError::Drive(drive::error::Error::Drive( - DriveInnerError::NoCheckpointsAvailable - )) - )); - } - - #[test] - fn unsupported_token_pool_type_returns_validation_errors() { - // pool_type=2 hits the NotSupported arm of nullifiers_path_for_pool. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersTrunkStateRequestV0 { - pool_type: 2, - pool_identifier: vec![7u8; 32], - }; - - let result = platform - .query_nullifiers_trunk_state_v0(request, &state, version) - .expect("should return Ok with validation errors, not Err"); - - assert!( - !result.errors.is_empty(), - "expected validation errors for unsupported pool" - ); - assert!(matches!( - result.errors[0], - QueryError::Drive(drive::error::Error::Drive(DriveInnerError::NotSupported(_))) - )); - } - - #[test] - fn unknown_pool_type_returns_validation_errors() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetNullifiersTrunkStateRequestV0 { - pool_type: 1234, - pool_identifier: vec![], - }; - - let result = platform - .query_nullifiers_trunk_state_v0(request, &state, version) - .expect("should return Ok with validation errors, not Err"); - - assert!(!result.errors.is_empty()); - assert!(matches!( - result.errors[0], - QueryError::Drive(drive::error::Error::Drive(DriveInnerError::InvalidInput(_))) - )); - } - - #[test] - fn with_checkpoint_returns_proof_and_metadata() { - // Create a checkpoint from the current (empty) state and wire it up so - // both the drive-layer prove call and response_proof_v0 succeed. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let checkpoint_path = platform.config.db_path.join("checkpoints").join("1"); - std::fs::create_dir_all(checkpoint_path.parent().unwrap()) - .expect("expected to create checkpoints dir"); - platform - .drive - .grove - .create_checkpoint(&checkpoint_path) - .expect("expected to create checkpoint"); - - let checkpoint_db = - GroveDb::open(&checkpoint_path).expect("expected to open checkpoint db"); - let checkpoint = Checkpoint::new(checkpoint_db, checkpoint_path); - - let mut checkpoints_map = BTreeMap::new(); - checkpoints_map.insert(1u64, CheckpointInfo::new(1000, Arc::new(checkpoint))); - platform.drive.checkpoints.store(Arc::new(checkpoints_map)); - - let mut checkpoint_states = BTreeMap::new(); - checkpoint_states.insert(1u64, state.clone()); - platform - .checkpoint_platform_states - .store(Arc::new(checkpoint_states)); - - let request = GetNullifiersTrunkStateRequestV0 { - pool_type: 0, - pool_identifier: vec![], - }; - - let result = platform - .query_nullifiers_trunk_state_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - let proof = response.proof.expect("expected proof present"); - assert!( - !proof.grovedb_proof.is_empty(), - "expected non-empty trunk proof bytes" - ); - assert!(response.metadata.is_some()); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/mod.rs b/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/mod.rs deleted file mode 100644 index 589693e55da..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/mod.rs +++ /dev/null @@ -1,122 +0,0 @@ -use crate::error::query::QueryError; -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_request::Version as RequestVersion; -use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_response::Version as ResponseVersion; -use dapi_grpc::platform::v0::{ - GetRecentCompactedNullifierChangesRequest, GetRecentCompactedNullifierChangesResponse, -}; -use dpp::version::PlatformVersion; - -mod v0; - -impl Platform { - /// Querying of recent compacted nullifier changes - pub fn query_recent_compacted_nullifier_changes( - &self, - GetRecentCompactedNullifierChangesRequest { version }: GetRecentCompactedNullifierChangesRequest, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let Some(version) = version else { - return Ok(QueryValidationResult::new_with_error( - QueryError::DecodingError( - "could not decode recent compacted nullifier changes query".to_string(), - ), - )); - }; - - let feature_version_bounds = &platform_version - .drive_abci - .query - .shielded_queries - .recent_compacted_nullifier_changes; - - let feature_version = match &version { - RequestVersion::V0(_) => 0, - }; - if !feature_version_bounds.check_version(feature_version) { - return Ok(QueryValidationResult::new_with_error( - QueryError::UnsupportedQueryVersion( - "recent_compacted_nullifier_changes".to_string(), - feature_version_bounds.min_version, - feature_version_bounds.max_version, - platform_version.protocol_version, - feature_version, - ), - )); - } - - match version { - RequestVersion::V0(request_v0) => { - let result = self.query_recent_compacted_nullifier_changes_v0( - request_v0, - platform_state, - platform_version, - )?; - Ok( - result.map(|response_v0| GetRecentCompactedNullifierChangesResponse { - version: Some(ResponseVersion::V0(response_v0)), - }), - ) - } - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_request::GetRecentCompactedNullifierChangesRequestV0; - use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_response::get_recent_compacted_nullifier_changes_response_v0; - use dpp::dashcore::Network; - - #[test] - fn missing_version_returns_decoding_error() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentCompactedNullifierChangesRequest { version: None }; - - let result = platform - .query_recent_compacted_nullifier_changes(request, &state, version) - .expect("expected query to succeed with validation errors"); - - assert!(matches!( - result.errors.as_slice(), - [QueryError::DecodingError(msg)] - if msg.contains("recent compacted nullifier changes") - )); - } - - #[test] - fn dispatcher_wraps_v0_response() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentCompactedNullifierChangesRequest { - version: Some(RequestVersion::V0( - GetRecentCompactedNullifierChangesRequestV0 { - start_block_height: 0, - prove: false, - }, - )), - }; - - let result = platform - .query_recent_compacted_nullifier_changes(request, &state, version) - .expect("expected query to succeed"); - assert!(result.errors.is_empty()); - - let response = result.data.expect("expected response data"); - let inner = match response.version { - Some(ResponseVersion::V0(v0)) => v0, - other => panic!("expected ResponseVersion::V0, got {:?}", other), - }; - assert!(matches!( - inner.result, - Some(get_recent_compacted_nullifier_changes_response_v0::Result::CompactedNullifierUpdateEntries(_)) - )); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/v0/mod.rs b/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/v0/mod.rs deleted file mode 100644 index a544e7ce08d..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/recent_compacted_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,182 +0,0 @@ -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::response_metadata::CheckpointUsed; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_request::GetRecentCompactedNullifierChangesRequestV0; -use dapi_grpc::platform::v0::get_recent_compacted_nullifier_changes_response::{ - get_recent_compacted_nullifier_changes_response_v0, - GetRecentCompactedNullifierChangesResponseV0, -}; -use dapi_grpc::platform::v0::{CompactedBlockNullifierChanges, CompactedNullifierUpdateEntries}; -use dpp::version::PlatformVersion; -use drive::util::grove_operations::GroveDBToUse; - -impl Platform { - pub(super) fn query_recent_compacted_nullifier_changes_v0( - &self, - GetRecentCompactedNullifierChangesRequestV0 { - start_block_height, - prove, - }: GetRecentCompactedNullifierChangesRequestV0, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let limit = Some(25u16); - - let response = if prove { - let proof = self.drive.prove_compacted_nullifier_changes( - start_block_height, - limit, - None, - platform_version, - )?; - - let (grovedb_used, proof) = - self.response_proof_v0(platform_state, proof, GroveDBToUse::Current)?; - - GetRecentCompactedNullifierChangesResponseV0 { - result: Some( - get_recent_compacted_nullifier_changes_response_v0::Result::Proof(proof), - ), - metadata: Some(self.response_metadata_v0(platform_state, grovedb_used)), - } - } else { - let compacted_nullifier_changes = self.drive.fetch_compacted_nullifier_changes( - start_block_height, - limit, - None, - platform_version, - )?; - - let compacted_block_changes: Vec = - compacted_nullifier_changes - .into_iter() - .map(|change| CompactedBlockNullifierChanges { - start_block_height: change.start_block, - end_block_height: change.end_block, - nullifiers: change.nullifiers.iter().map(|n| n.to_vec()).collect(), - }) - .collect(); - - GetRecentCompactedNullifierChangesResponseV0 { - result: Some( - get_recent_compacted_nullifier_changes_response_v0::Result::CompactedNullifierUpdateEntries( - CompactedNullifierUpdateEntries { compacted_block_changes }, - ), - ), - metadata: Some( - self.response_metadata_v0(platform_state, CheckpointUsed::Current), - ), - } - }; - - Ok(QueryValidationResult::new_with_data(response)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dpp::dashcore::Network; - - #[test] - fn empty_state_non_prove_returns_empty_entries() { - // With no compactions stored, the fetch returns an empty vector and the - // handler must wrap it in CompactedNullifierUpdateEntries with an empty - // list and populated metadata. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentCompactedNullifierChangesRequestV0 { - start_block_height: 0, - prove: false, - }; - - let result = platform - .query_recent_compacted_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some( - get_recent_compacted_nullifier_changes_response_v0::Result::CompactedNullifierUpdateEntries( - entries, - ), - ) => { - assert!( - entries.compacted_block_changes.is_empty(), - "expected empty compacted block changes on a fresh platform" - ); - } - other => panic!( - "expected CompactedNullifierUpdateEntries result, got {:?}", - other - ), - } - assert!(response.metadata.is_some()); - } - - #[test] - fn empty_state_prove_returns_proof_bytes() { - // The prove branch should produce non-empty proof bytes even for an - // empty shielded pool – the proof encodes the absence. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentCompactedNullifierChangesRequestV0 { - start_block_height: 0, - prove: true, - }; - - let result = platform - .query_recent_compacted_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some(get_recent_compacted_nullifier_changes_response_v0::Result::Proof(proof)) => { - assert!( - !proof.grovedb_proof.is_empty(), - "expected proof bytes for empty compacted pool" - ); - } - other => panic!("expected Proof result, got {:?}", other), - } - assert!(response.metadata.is_some()); - } - - #[test] - fn large_start_block_height_returns_empty_entries() { - // Querying well beyond any stored block should return an empty list - // without error. This exercises the "start > everything" branch of the - // compacted nullifier fetch. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentCompactedNullifierChangesRequestV0 { - start_block_height: u64::MAX - 1, - prove: false, - }; - - let result = platform - .query_recent_compacted_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some( - get_recent_compacted_nullifier_changes_response_v0::Result::CompactedNullifierUpdateEntries( - entries, - ), - ) => { - assert!(entries.compacted_block_changes.is_empty()); - } - other => panic!( - "expected CompactedNullifierUpdateEntries result, got {:?}", - other - ), - } - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/mod.rs b/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/mod.rs deleted file mode 100644 index 836e6efff11..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/mod.rs +++ /dev/null @@ -1,119 +0,0 @@ -use crate::error::query::QueryError; -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_recent_nullifier_changes_request::Version as RequestVersion; -use dapi_grpc::platform::v0::get_recent_nullifier_changes_response::Version as ResponseVersion; -use dapi_grpc::platform::v0::{ - GetRecentNullifierChangesRequest, GetRecentNullifierChangesResponse, -}; -use dpp::version::PlatformVersion; - -mod v0; - -impl Platform { - /// Querying of recent nullifier changes - pub fn query_recent_nullifier_changes( - &self, - GetRecentNullifierChangesRequest { version }: GetRecentNullifierChangesRequest, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let Some(version) = version else { - return Ok(QueryValidationResult::new_with_error( - QueryError::DecodingError( - "could not decode recent nullifier changes query".to_string(), - ), - )); - }; - - let feature_version_bounds = &platform_version - .drive_abci - .query - .shielded_queries - .recent_nullifier_changes; - - let feature_version = match &version { - RequestVersion::V0(_) => 0, - }; - if !feature_version_bounds.check_version(feature_version) { - return Ok(QueryValidationResult::new_with_error( - QueryError::UnsupportedQueryVersion( - "recent_nullifier_changes".to_string(), - feature_version_bounds.min_version, - feature_version_bounds.max_version, - platform_version.protocol_version, - feature_version, - ), - )); - } - - match version { - RequestVersion::V0(request_v0) => { - let result = self.query_recent_nullifier_changes_v0( - request_v0, - platform_state, - platform_version, - )?; - Ok(result.map(|response_v0| GetRecentNullifierChangesResponse { - version: Some(ResponseVersion::V0(response_v0)), - })) - } - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dapi_grpc::platform::v0::get_recent_nullifier_changes_request::GetRecentNullifierChangesRequestV0; - use dapi_grpc::platform::v0::get_recent_nullifier_changes_response::get_recent_nullifier_changes_response_v0; - use dpp::dashcore::Network; - - #[test] - fn missing_version_returns_decoding_error() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentNullifierChangesRequest { version: None }; - - let result = platform - .query_recent_nullifier_changes(request, &state, version) - .expect("expected query to succeed with validation errors"); - - assert!(matches!( - result.errors.as_slice(), - [QueryError::DecodingError(msg)] - if msg.contains("recent nullifier changes") - )); - } - - #[test] - fn dispatcher_wraps_v0_response() { - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentNullifierChangesRequest { - version: Some(RequestVersion::V0(GetRecentNullifierChangesRequestV0 { - start_height: 0, - prove: true, - })), - }; - - let result = platform - .query_recent_nullifier_changes(request, &state, version) - .expect("expected query to succeed"); - assert!(result.errors.is_empty()); - - let response = result.data.expect("expected response data"); - let inner = match response.version { - Some(ResponseVersion::V0(v0)) => v0, - other => panic!("expected ResponseVersion::V0, got {:?}", other), - }; - assert!(matches!( - inner.result, - Some(get_recent_nullifier_changes_response_v0::Result::Proof(_)) - )); - assert!(inner.metadata.is_some()); - } -} diff --git a/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/v0/mod.rs b/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/v0/mod.rs deleted file mode 100644 index 931cb70137f..00000000000 --- a/packages/rs-drive-abci/src/query/shielded/recent_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,165 +0,0 @@ -use crate::error::Error; -use crate::platform_types::platform::Platform; -use crate::platform_types::platform_state::PlatformState; -use crate::query::response_metadata::CheckpointUsed; -use crate::query::QueryValidationResult; -use dapi_grpc::platform::v0::get_recent_nullifier_changes_request::GetRecentNullifierChangesRequestV0; -use dapi_grpc::platform::v0::get_recent_nullifier_changes_response::{ - get_recent_nullifier_changes_response_v0, GetRecentNullifierChangesResponseV0, -}; -use dapi_grpc::platform::v0::{BlockNullifierChanges, NullifierUpdateEntries}; -use dpp::version::PlatformVersion; -use drive::util::grove_operations::GroveDBToUse; - -impl Platform { - pub(super) fn query_recent_nullifier_changes_v0( - &self, - GetRecentNullifierChangesRequestV0 { - start_height, - prove, - }: GetRecentNullifierChangesRequestV0, - platform_state: &PlatformState, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let limit = Some(100u16); - - let response = if prove { - let proof = self.drive.prove_recent_nullifier_changes( - start_height, - limit, - None, - platform_version, - )?; - - let (grovedb_used, proof) = - self.response_proof_v0(platform_state, proof, GroveDBToUse::Current)?; - - GetRecentNullifierChangesResponseV0 { - result: Some(get_recent_nullifier_changes_response_v0::Result::Proof( - proof, - )), - metadata: Some(self.response_metadata_v0(platform_state, grovedb_used)), - } - } else { - let nullifier_changes = self.drive.fetch_recent_nullifier_changes( - start_height, - limit, - None, - platform_version, - )?; - - let block_changes: Vec = nullifier_changes - .into_iter() - .map(|change| BlockNullifierChanges { - block_height: change.block_height, - nullifiers: change.nullifiers.iter().map(|n| n.to_vec()).collect(), - }) - .collect(); - - GetRecentNullifierChangesResponseV0 { - result: Some( - get_recent_nullifier_changes_response_v0::Result::NullifierUpdateEntries( - NullifierUpdateEntries { block_changes }, - ), - ), - metadata: Some(self.response_metadata_v0(platform_state, CheckpointUsed::Current)), - } - }; - - Ok(QueryValidationResult::new_with_data(response)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::query::tests::setup_platform; - use dpp::dashcore::Network; - - #[test] - fn empty_state_non_prove_returns_empty_entries() { - // An empty platform has no recent nullifier changes, so the non-prove - // branch must return an empty NullifierUpdateEntries and populated metadata. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentNullifierChangesRequestV0 { - start_height: 0, - prove: false, - }; - - let result = platform - .query_recent_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some(get_recent_nullifier_changes_response_v0::Result::NullifierUpdateEntries( - entries, - )) => { - assert!( - entries.block_changes.is_empty(), - "expected no block changes on a fresh platform" - ); - } - other => panic!("expected NullifierUpdateEntries, got {:?}", other), - } - assert!(response.metadata.is_some()); - } - - #[test] - fn empty_state_prove_returns_proof_bytes() { - // Prove branch on empty state must yield a non-empty absence proof and - // populated metadata. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentNullifierChangesRequestV0 { - start_height: 0, - prove: true, - }; - - let result = platform - .query_recent_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some(get_recent_nullifier_changes_response_v0::Result::Proof(proof)) => { - assert!( - !proof.grovedb_proof.is_empty(), - "expected proof bytes for empty recent-changes pool" - ); - } - other => panic!("expected Proof result, got {:?}", other), - } - assert!(response.metadata.is_some()); - } - - #[test] - fn large_start_height_returns_empty_entries() { - // A start height beyond anything stored should return empty entries - // without erroring – exercises the range-from-start-height branch. - let (platform, state, version) = setup_platform(None, Network::Testnet, None); - - let request = GetRecentNullifierChangesRequestV0 { - start_height: u64::MAX - 1, - prove: false, - }; - - let result = platform - .query_recent_nullifier_changes_v0(request, &state, version) - .expect("expected query to succeed"); - - assert!(result.errors.is_empty()); - let response = result.data.expect("expected response data"); - match response.result { - Some(get_recent_nullifier_changes_response_v0::Result::NullifierUpdateEntries( - entries, - )) => { - assert!(entries.block_changes.is_empty()); - } - other => panic!("expected NullifierUpdateEntries, got {:?}", other), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/estimated_costs.rs b/packages/rs-drive/src/drive/shielded/estimated_costs.rs index 6832b0f6021..859286eb24b 100644 --- a/packages/rs-drive/src/drive/shielded/estimated_costs.rs +++ b/packages/rs-drive/src/drive/shielded/estimated_costs.rs @@ -87,11 +87,8 @@ impl Drive { // Shielded credit pool: [ShieldedBalances, "M"] // SumTree containing: notes (CommitmentTree), permanent nullifiers (ProvableCountTree), - // total balance (SumItem), anchors (NormalTree), anchors-by-height (NormalTree), - // recent nullifiers (NotSummed CountSumTree — contributes 0 to pool sum), - // compacted nullifiers (NormalTree), - // expiration time (NormalTree). - // 8 elements total (7 subtrees + 1 item) → balanced Merk depth = ceil(log2(8)) = 3. + // total balance (SumItem), anchors (NormalTree), anchors-by-height (NormalTree). + // 5 elements total (4 subtrees + 1 item) → balanced Merk depth = ceil(log2(5)) = 3. // // The retired `SHIELDED_MOST_RECENT_ANCHOR_KEY = 7` slot used // to add a second `Item` entry; the most-recent anchor is @@ -110,15 +107,15 @@ impl Drive { sum_trees_weight: 0, big_sum_trees_weight: 0, count_trees_weight: 1, // permanent nullifiers (ProvableCountTree) - count_sum_trees_weight: 1, // recent nullifiers (NotSummed-wrapped CountSumTree) - non_sum_trees_weight: 5, // notes (CommitmentTree), anchors, anchors-by-height, compacted nullifiers, expiration time + count_sum_trees_weight: 0, + non_sum_trees_weight: 3, // notes (CommitmentTree), anchors, anchors-by-height provable_sum_trees_weight: 0, provable_count_trees_weight: 0, provable_count_sum_trees_weight: 0, provable_count_provable_sum_trees_weight: 0, }, None, - 7, // 7 subtrees: notes, permanent nullifiers, anchors, anchors-by-height, recent nullifiers, compacted nullifiers, expiration time + 4, // 4 subtrees: notes, permanent nullifiers, anchors, anchors-by-height )), items_size: Some((1, 8, None, 1)), // 1 item: total balance (SumItem, i64 = 8 bytes) references_size: None, diff --git a/packages/rs-drive/src/drive/shielded/has_nullifier/v0/mod.rs b/packages/rs-drive/src/drive/shielded/has_nullifier/v0/mod.rs index dc48e5c4602..067ce9be418 100644 --- a/packages/rs-drive/src/drive/shielded/has_nullifier/v0/mod.rs +++ b/packages/rs-drive/src/drive/shielded/has_nullifier/v0/mod.rs @@ -60,13 +60,7 @@ mod tests { let nullifier_a = [0xAAu8; 32]; let nullifier_b = [0xBBu8; 32]; let ops = drive - .insert_nullifiers_v0( - &[nullifier_a, nullifier_b], - 1, - 1000, - Some(&transaction), - platform_version, - ) + .insert_nullifiers_v0(&[nullifier_a, nullifier_b]) .expect("insert_nullifiers"); let grove_ops = crate::fees::op::LowLevelDriveOperation::grovedb_operations_batch_consume(ops); diff --git a/packages/rs-drive/src/drive/shielded/insert_nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/insert_nullifiers/mod.rs index c5cfabe89bd..56f5cb45c7b 100644 --- a/packages/rs-drive/src/drive/shielded/insert_nullifiers/mod.rs +++ b/packages/rs-drive/src/drive/shielded/insert_nullifiers/mod.rs @@ -4,38 +4,22 @@ use crate::drive::Drive; use crate::error::drive::DriveError; use crate::error::Error; use crate::fees::op::LowLevelDriveOperation; -use grovedb::TransactionArg; use platform_version::version::PlatformVersion; impl Drive { - /// Inserts nullifiers into the shielded pool. - /// - /// This performs two operations: - /// 1. Inserts each nullifier into the permanent nullifiers tree (double-spend prevention) - /// 2. Stores all nullifiers into per-block sync storage (for catch-up RPCs) + /// Inserts nullifiers into the shielded pool's permanent nullifiers tree + /// (double-spend prevention). /// /// # Parameters /// - `nullifiers`: The 32-byte nullifiers to insert - /// - `block_height`: The current block height (for sync storage) - /// - `block_time_ms`: The current block time in milliseconds (for sync storage expiration) - /// - `transaction`: The database transaction /// - `platform_version`: The platform version for dispatch pub fn insert_nullifiers( &self, nullifiers: &[[u8; 32]], - block_height: u64, - block_time_ms: u64, - transaction: TransactionArg, platform_version: &PlatformVersion, ) -> Result, Error> { match platform_version.drive.methods.shielded.insert_nullifiers { - 0 => self.insert_nullifiers_v0( - nullifiers, - block_height, - block_time_ms, - transaction, - platform_version, - ), + 0 => self.insert_nullifiers_v0(nullifiers), version => Err(Error::Drive(DriveError::UnknownVersionMismatch { method: "insert_nullifiers".to_string(), known_versions: vec![0], diff --git a/packages/rs-drive/src/drive/shielded/insert_nullifiers/v0/mod.rs b/packages/rs-drive/src/drive/shielded/insert_nullifiers/v0/mod.rs index 5854b29fa5b..6a59b446881 100644 --- a/packages/rs-drive/src/drive/shielded/insert_nullifiers/v0/mod.rs +++ b/packages/rs-drive/src/drive/shielded/insert_nullifiers/v0/mod.rs @@ -4,23 +4,16 @@ use crate::error::Error; use crate::fees::op::LowLevelDriveOperation; use crate::fees::op::LowLevelDriveOperation::GroveOperation; use grovedb::batch::QualifiedGroveDbOp; -use grovedb::{Element, TransactionArg}; -use platform_version::version::PlatformVersion; +use grovedb::Element; impl Drive { /// Version 0 implementation of inserting nullifiers. /// - /// For each nullifier: - /// 1. Inserts into the permanent nullifiers tree to prevent double-spend - /// - /// Then stores all nullifiers into per-block sync storage for catch-up RPCs. + /// For each nullifier, inserts into the permanent nullifiers tree to + /// prevent double-spend. pub(in crate::drive) fn insert_nullifiers_v0( &self, nullifiers: &[[u8; 32]], - block_height: u64, - block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, ) -> Result, Error> { let nullifiers_path = shielded_credit_pool_nullifiers_path_vec(); @@ -38,19 +31,6 @@ impl Drive { }) .collect(); - // Store to per-block sync storage for catch-up RPCs - // - // SAFETY: `store_nullifiers_for_block` writes under the same GroveDB - // transaction that the caller later uses to apply the returned `ops`. - // If that transaction aborts, neither write persists (atomic commit/rollback). - self.store_nullifiers_for_block( - nullifiers, - block_height, - block_time_ms, - transaction, - platform_version, - )?; - Ok(ops) } } @@ -62,14 +42,11 @@ mod tests { #[test] fn insert_empty_nullifier_slice_produces_empty_ops_vec() { - // Empty input edge case: no ops should be produced, sync storage should still - // be invoked (it no-ops internally for empty input). + // Empty input edge case: no ops should be produced. let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - let transaction = drive.grove.start_transaction(); let ops = drive - .insert_nullifiers_v0(&[], 1, 1_000, Some(&transaction), platform_version) + .insert_nullifiers_v0(&[]) .expect("empty nullifiers should be allowed"); assert!(ops.is_empty()); } @@ -83,7 +60,7 @@ mod tests { let nullifier = [0x11u8; 32]; let ops = drive - .insert_nullifiers_v0(&[nullifier], 1, 1_000, Some(&transaction), platform_version) + .insert_nullifiers_v0(&[nullifier]) .expect("insert single"); assert_eq!(ops.len(), 1); @@ -115,12 +92,10 @@ mod tests { fn insert_many_nullifiers_produces_matching_op_count() { // Multiple nullifiers - verifies one op per nullifier. let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - let transaction = drive.grove.start_transaction(); let nullifiers: Vec<[u8; 32]> = (0u8..5).map(|i| [i; 32]).collect(); let ops = drive - .insert_nullifiers_v0(&nullifiers, 1, 1_000, Some(&transaction), platform_version) + .insert_nullifiers_v0(&nullifiers) .expect("insert many"); assert_eq!(ops.len(), 5); } diff --git a/packages/rs-drive/src/drive/shielded/insert_shielded_pool_structure.rs b/packages/rs-drive/src/drive/shielded/insert_shielded_pool_structure.rs index e603e176d88..ca845288602 100644 --- a/packages/rs-drive/src/drive/shielded/insert_shielded_pool_structure.rs +++ b/packages/rs-drive/src/drive/shielded/insert_shielded_pool_structure.rs @@ -1,7 +1,3 @@ -use crate::drive::shielded::nullifiers::queries::{ - SHIELDED_COMPACTED_NULLIFIERS_KEY_U8, SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY_U8, - SHIELDED_RECENT_NULLIFIERS_KEY_U8, -}; use crate::drive::shielded::paths::{ shielded_credit_pool_path, MAIN_SHIELDED_CREDIT_POOL_KEY_U8, SHIELDED_ANCHORS_BY_HEIGHT_KEY, SHIELDED_ANCHORS_IN_POOL_KEY, SHIELDED_NOTES_CHUNK_POWER, SHIELDED_NOTES_KEY, @@ -14,7 +10,7 @@ use grovedb::{Element, TransactionArg}; use grovedb_path::SubtreePath; impl Drive { - /// Inserts the main shielded credit pool and its eight child subtrees under + /// Inserts the main shielded credit pool and its five child subtrees under /// an already-existing top-level `RootTree::ShieldedBalances` SumTree. /// /// CONSENSUS-CRITICAL: this is the single source of truth for the shielded @@ -37,9 +33,7 @@ impl Drive { /// 1. Do not reorder these inserts and do not move them into a batch. /// /// The caller MUST have already created the top-level - /// `RootTree::ShieldedBalances` SumTree; this helper only fills it in. The - /// recent-nullifiers `CountSumTree` is wrapped in `Element::NotSummed` so its - /// sum side does not propagate into the pool's "credits" aggregate. + /// `RootTree::ShieldedBalances` SumTree; this helper only fills it in. /// /// # Parameters /// @@ -62,7 +56,7 @@ impl Drive { &platform_version.drive, )?; - // The eight child inserts below are ordered breadth-first to match the + // The five child inserts below are ordered breadth-first to match the // intended balanced shape of the parent Merk tree (see the layout // diagram in `crate::drive::shielded::paths`). AVL rebalancing is // order-sensitive, so this ordering is what actually places @@ -126,43 +120,6 @@ impl Drive { &platform_version.drive, )?; - // Level 2: per-block recent-nullifiers CountSumTree wrapped in - // NotSummed — the sum side (per-block nullifier count) is suppressed - // so it does NOT propagate into the enclosing shielded pool SumTree. - // [ShieldedBalances, "M"] / [160] - self.grove_insert_if_not_exists( - (&shielded_pool_path).into(), - &[SHIELDED_RECENT_NULLIFIERS_KEY_U8], - Element::new_not_summed(Element::empty_count_sum_tree()) - .expect("count sum tree is a valid NotSummed inner"), - transaction, - None, - &platform_version.drive, - )?; - - // Level 2: compacted nullifiers NormalTree — - // (start_block, end_block) → serialized Vec<[u8;32]>. - // [ShieldedBalances, "M"] / [224] - self.grove_insert_if_not_exists( - (&shielded_pool_path).into(), - &[SHIELDED_COMPACTED_NULLIFIERS_KEY_U8], - Element::empty_tree(), - transaction, - None, - &platform_version.drive, - )?; - - // Level 3: nullifiers-expiration-time NormalTree (deepest leaf). - // [ShieldedBalances, "M"] / [240] - self.grove_insert_if_not_exists( - (&shielded_pool_path).into(), - &[SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY_U8], - Element::empty_tree(), - transaction, - None, - &platform_version.drive, - )?; - Ok(()) } } diff --git a/packages/rs-drive/src/drive/shielded/mod.rs b/packages/rs-drive/src/drive/shielded/mod.rs index a8dea31fb94..dacbd71625d 100644 --- a/packages/rs-drive/src/drive/shielded/mod.rs +++ b/packages/rs-drive/src/drive/shielded/mod.rs @@ -47,11 +47,3 @@ mod read_total_balance; /// Count the notes in the shielded pool commitment tree #[cfg(feature = "server")] mod notes_count; - -/// Prove methods for shielded pool queries -#[cfg(feature = "server")] -pub mod prove; - -/// Per-block nullifier storage for catch-up sync -#[cfg(any(feature = "server", feature = "verify"))] -pub mod nullifiers; diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/mod.rs deleted file mode 100644 index 3d5bcb96af0..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/mod.rs +++ /dev/null @@ -1,49 +0,0 @@ -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Cleans up expired compacted nullifier entries. - /// - /// This function queries the nullifier expiration time tree for entries with - /// expiration time <= current_block_time_ms, then deletes: - /// 1. The corresponding compacted nullifier entries - /// 2. The expiration time entries themselves - /// - /// # Arguments - /// * `current_block_time_ms` - The current block time in milliseconds - /// * `transaction` - Optional database transaction - /// * `platform_version` - The platform version - /// - /// # Returns - /// * `Ok(usize)` - The number of compacted entries that were cleaned up - /// * `Err` - An error occurred - pub fn cleanup_expired_nullifier_compactions( - &self, - current_block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result { - match platform_version - .drive - .methods - .saved_block_transactions - .cleanup_expired_nullifier_compactions - { - 0 => self.cleanup_expired_nullifier_compactions_v0( - current_block_time_ms, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "cleanup_expired_nullifier_compactions".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/v0/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/v0/mod.rs deleted file mode 100644 index 755d218e6f7..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/cleanup_expired_nullifier_compactions/v0/mod.rs +++ /dev/null @@ -1,332 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::{ - shielded_compacted_nullifiers_path_vec, shielded_nullifiers_expiration_time_path_vec, -}; -use crate::drive::shielded::nullifiers::types::NullifierExpirationRanges; -use crate::drive::Drive; -use crate::error::Error; -use crate::util::batch::grovedb_op_batch::GroveDbOpBatchV0Methods; -use crate::util::batch::GroveDbOpBatch; -use dpp::ProtocolError; -use grovedb::query_result_type::QueryResultType; -use grovedb::{PathQuery, Query, QueryItem, SizedQuery, TransactionArg}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation of cleaning up expired compacted nullifier entries. - /// - /// Queries for all expiration entries with time <= current_block_time_ms, - /// then deletes the corresponding compacted entries and the expiration entries. - /// - /// The query is unbounded (no limit) because the data model naturally caps - /// the number of expiration entries. Compaction triggers every 64 blocks or - /// 2048 nullifiers. With 3s blocks (201,600 blocks/week) and 1-week expiry: - /// - Normal load (~1 shielded TPS): ~3,150 entries/week - /// - Extreme load (683 shielded TPS, compaction every block): ~201,600 entries/week - /// - /// Both are well within GroveDB query capacity. - pub(in crate::drive) fn cleanup_expired_nullifier_compactions_v0( - &self, - current_block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result { - let expiration_path = shielded_nullifiers_expiration_time_path_vec(); - - // Query all entries with expiration time <= current_block_time_ms - let mut query = Query::new(); - // Range from 0 to current_block_time_ms (inclusive) - query.insert_item(QueryItem::RangeToInclusive( - ..=current_block_time_ms.to_be_bytes().to_vec(), - )); - - let path_query = - PathQuery::new(expiration_path.clone(), SizedQuery::new(query, None, None)); - - let (results, _) = self.grove_get_path_query( - &path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - let key_elements = results.to_key_elements(); - - if key_elements.is_empty() { - return Ok(0); - } - - let mut batch = GroveDbOpBatch::new(); - let mut total_cleaned = 0usize; - - let compacted_path = shielded_compacted_nullifiers_path_vec(); - - for (expiration_key, element) in key_elements { - // Get the vec of block ranges from the element - let grovedb::Element::Item(serialized_ranges, _) = element else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "expected item element for expiration block ranges".to_string(), - ), - ))); - }; - - // Deserialize the vec of block ranges - let ranges = NullifierExpirationRanges::decode(&serialized_ranges)?; - - // Delete each compacted nullifier entry - for (start_block, end_block) in ranges.iter() { - let mut compacted_key = Vec::with_capacity(16); - compacted_key.extend_from_slice(&start_block.to_be_bytes()); - compacted_key.extend_from_slice(&end_block.to_be_bytes()); - - batch.add_delete(compacted_path.clone(), compacted_key); - total_cleaned += 1; - } - - // Delete the expiration entry itself - batch.add_delete(expiration_path.clone(), expiration_key); - } - - if !batch.is_empty() { - self.grove_apply_batch(batch, false, transaction, &platform_version.drive)?; - } - - Ok(total_cleaned) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::drive::shielded::nullifiers::queries::{ - shielded_compacted_nullifiers_path, shielded_nullifiers_expiration_time_path, - }; - use crate::drive::shielded::nullifiers::types::CompactedNullifiers; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use grovedb::Element; - - /// Calculation: can the unbounded query in cleanup be a problem? - /// - /// Compaction triggers every 64 blocks or 2048 nullifiers. - /// Platform blocks can happen every ~3s. In one week (604,800s): - /// - 201,600 blocks - /// - At most 201,600 / 64 = 3,150 compaction events (block-triggered) - /// - Each compaction = 1 expiration entry (unique timestamp key) - /// - /// To get more compactions, nullifier-triggered compaction must dominate: - /// - 2048 nullifiers/block → compaction every block → 201,600 entries/week - /// - That requires 2048 shielded tx/block ÷ 3s = ~683 shielded TPS sustained - /// - /// Even at 683 TPS for a full week, only ~201,600 expiration entries accumulate. - /// At normal load (<1 shielded TPS), it's ~3,150 entries. - /// - /// This test creates 5,000 expiration entries (exceeding the normal worst-case week - /// at <1 TPS) and verifies cleanup handles them fine. - #[test] - fn test_cleanup_handles_5000_expired_entries() { - let drive = setup_drive_with_initial_state_structure(None); - let transaction = drive.grove.start_transaction(); - let platform_version = PlatformVersion::latest(); - - let expiration_path = shielded_nullifiers_expiration_time_path(); - let compacted_path = shielded_compacted_nullifiers_path(); - - let num_entries: u64 = 5000; - - // Insert 5000 expiration entries and their corresponding compacted entries. - // Each expiration entry has a unique timestamp key and references one block range. - for i in 0..num_entries { - let expiration_time_ms = (i + 1) * 1000; // 1s, 2s, ... 5000s - let expiration_key = expiration_time_ms.to_be_bytes().to_vec(); - - let start_block = i * 64; - let end_block = start_block + 63; - - // Serialize the block ranges for the expiration entry - let ranges = NullifierExpirationRanges::new(vec![(start_block, end_block)]); - let serialized_ranges = ranges.encode().expect("encode ranges"); - - // Insert expiration entry - drive - .grove - .insert( - expiration_path.as_ref(), - &expiration_key, - Element::new_item(serialized_ranges), - None, - Some(&transaction), - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("insert expiration entry"); - - // Insert corresponding compacted nullifier entry - let mut compacted_key = Vec::with_capacity(16); - compacted_key.extend_from_slice(&start_block.to_be_bytes()); - compacted_key.extend_from_slice(&end_block.to_be_bytes()); - - // Just a small dummy payload - let dummy_nullifiers = CompactedNullifiers::new(vec![[0u8; 32]]); - let serialized_nullifiers = dummy_nullifiers.encode().expect("encode nullifiers"); - - drive - .grove - .insert( - compacted_path.as_ref(), - &compacted_key, - Element::new_item(serialized_nullifiers), - None, - Some(&transaction), - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("insert compacted entry"); - } - - // Now cleanup all entries (current_block_time >= all expiration times) - let current_time_ms = (num_entries + 1) * 1000; - - let cleaned = drive - .cleanup_expired_nullifier_compactions( - current_time_ms, - Some(&transaction), - platform_version, - ) - .expect("cleanup should succeed with 5000 entries"); - - assert_eq!(cleaned, num_entries as usize); - } - - /// Cleanup on an empty expiration tree returns 0 with no error. - #[test] - fn cleanup_empty_tree_returns_zero() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let cleaned = drive - .cleanup_expired_nullifier_compactions_v0(u64::MAX, None, platform_version) - .expect("cleanup empty"); - assert_eq!(cleaned, 0); - } - - /// Cleanup must NOT remove entries whose expiration time is greater than - /// current_block_time_ms (strict boundary). - #[test] - fn cleanup_leaves_future_expirations_alone() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Force compaction to populate both compacted entries and expiration entries. - drive - .compact_nullifiers_with_current_block_v0( - &[[1u8; 32]], - 10, - 10_000, // expires at 10_000 + ONE_WEEK_IN_MS - None, - platform_version, - ) - .expect("compact"); - - // Cleanup at time < expiration: no entries removed. - let cleaned = drive - .cleanup_expired_nullifier_compactions_v0(5_000, None, platform_version) - .expect("cleanup"); - assert_eq!(cleaned, 0); - - // The compacted entry must still be present. - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch"); - assert_eq!(compacted.len(), 1); - } - - /// Cleanup at or past the expiration boundary deletes the compacted entry - /// and the corresponding expiration entry. - #[test] - fn cleanup_removes_expired_entry_and_its_compacted_counterpart() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let block_time = 10_000u64; - drive - .compact_nullifiers_with_current_block_v0( - &[[1u8; 32]], - 10, - block_time, - None, - platform_version, - ) - .expect("compact"); - - // Cleanup at a time past the expiration (block_time + 1 week + 1). - let current = - block_time + crate::drive::shielded::nullifiers::compact_nullifiers::ONE_WEEK_IN_MS + 1; - let cleaned = drive - .cleanup_expired_nullifier_compactions_v0(current, None, platform_version) - .expect("cleanup"); - assert_eq!(cleaned, 1); - - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch after cleanup"); - assert!( - compacted.is_empty(), - "compacted entry should have been cleaned up" - ); - - // A second cleanup must be a no-op: if the first call truly deleted - // the expiration-index entry (not just the compacted row), there is - // nothing left to iterate, so the returned count is 0. If the index - // row had been left behind the second cleanup would try to chase a - // dangling reference and either re-count 1 or error. - let cleaned_again = drive - .cleanup_expired_nullifier_compactions_v0(current, None, platform_version) - .expect("second cleanup must be a no-op"); - assert_eq!( - cleaned_again, 0, - "expiration index entry must also have been deleted" - ); - } - - /// Corrupting an expiration entry payload (garbage item data) triggers the - /// CorruptedSerialization branch in NullifierExpirationRanges::decode. - #[test] - fn cleanup_rejects_undecodable_expiration_payload() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let expiration_path = shielded_nullifiers_expiration_time_path(); - let key = 1_000u64.to_be_bytes().to_vec(); - drive - .grove - .insert( - expiration_path.as_ref(), - &key, - Element::new_item(vec![0xFFu8; 3]), - None, - None, - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("insert"); - - let err = drive - .cleanup_expired_nullifier_compactions_v0(u64::MAX, None, platform_version) - .expect_err("cleanup must reject undecodable payload"); - // Must be the specific CorruptedSerialization variant surfaced by - // `NullifierExpirationRanges::decode` — not any other ProtocolError. - match err { - Error::Protocol(boxed) => match *boxed { - ProtocolError::CorruptedSerialization(msg) => { - assert!( - msg.contains("cannot decode nullifier expiration ranges"), - "expected the NullifierExpirationRanges decode failure, got: {msg}" - ); - } - other => panic!("expected CorruptedSerialization, got ProtocolError::{other:?}"), - }, - other => panic!("expected Error::Protocol, got {other:?}"), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/mod.rs deleted file mode 100644 index d85d2815fa1..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/mod.rs +++ /dev/null @@ -1,61 +0,0 @@ -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -/// One week in milliseconds (used for compacted nullifier expiration) -pub const ONE_WEEK_IN_MS: u64 = 7 * 24 * 60 * 60 * 1000; - -impl Drive { - /// Compacts nullifiers from recent blocks, including the current block, - /// into a single compacted entry. - /// - /// This function drains all entries from the nullifiers tree, concatenates them - /// with the provided current block's nullifiers, and stores the result in - /// the compacted nullifiers tree with a (start_block, end_block) key. - /// - /// Also stores the expiration time (current block time + 1 week) in the - /// nullifiers expiration time tree. - /// - /// # Arguments - /// * `current_nullifiers` - The current block's nullifiers to include - /// * `current_block_height` - The height of the current block - /// * `current_block_time_ms` - The current block time in milliseconds - /// * `transaction` - Optional database transaction - /// * `platform_version` - The platform version - /// - /// # Returns - /// * `Ok((start, end))` - The block range that was compacted - /// * `Err` - An error occurred - pub fn compact_nullifiers_with_current_block( - &self, - current_nullifiers: &[[u8; 32]], - current_block_height: u64, - current_block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result<(u64, u64), Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .compact_nullifiers - { - 0 => self.compact_nullifiers_with_current_block_v0( - current_nullifiers, - current_block_height, - current_block_time_ms, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "compact_nullifiers_with_current_block".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/v0/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/v0/mod.rs deleted file mode 100644 index 7d8e1b8f7e3..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/compact_nullifiers/v0/mod.rs +++ /dev/null @@ -1,305 +0,0 @@ -use super::ONE_WEEK_IN_MS; -use crate::drive::shielded::nullifiers::queries::{ - shielded_compacted_nullifiers_path_vec, shielded_nullifiers_expiration_time_path, - shielded_nullifiers_expiration_time_path_vec, shielded_recent_nullifiers_path_vec, -}; -use crate::drive::shielded::nullifiers::types::{CompactedNullifiers, NullifierExpirationRanges}; -use crate::drive::Drive; -use crate::error::Error; -use crate::util::batch::grovedb_op_batch::GroveDbOpBatchV0Methods; -use crate::util::batch::GroveDbOpBatch; -use crate::util::grove_operations::DirectQueryType; -use dpp::ProtocolError; -use grovedb::query_result_type::QueryResultType; -use grovedb::{Element, PathQuery, Query, SizedQuery, TransactionArg}; -use grovedb_path::SubtreePath; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation of compacting nullifiers including a current block. - /// - /// Drains all entries from the nullifiers count sum tree, - /// concatenates them with the provided current block's nullifiers, - /// and stores the result in the compacted nullifiers tree - /// with a (start_block, end_block) key. - /// - /// Also stores the expiration time (current block time + 1 week) in the - /// nullifiers expiration time tree with the same (start_block, end_block) key. - /// - /// Returns the range of blocks that were compacted (start_block, end_block). - pub(in crate::drive) fn compact_nullifiers_with_current_block_v0( - &self, - current_nullifiers: &[[u8; 32]], - current_block_height: u64, - current_block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result<(u64, u64), Error> { - let path = shielded_recent_nullifiers_path_vec(); - - // Query all entries from the nullifiers tree - let mut query = Query::new(); - query.insert_all(); - - let path_query = PathQuery::new(path.clone(), SizedQuery::new(query, None, None)); - - let (results, _) = self.grove_get_path_query( - &path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - let key_elements = results.to_key_elements(); - - // Track block range - start with current block - let mut start_block: u64 = current_block_height; - let mut end_block: u64 = current_block_height; - - // Concatenate all nullifiers together (no merge semantics needed) - let mut combined_nullifiers: Vec<[u8; 32]> = Vec::new(); - let mut keys_to_delete: Vec> = Vec::new(); - - // Process stored blocks in chronological order (ascending by block height) - // Keys are big-endian u64, so they're already in ascending order - for (key, element) in key_elements { - // Parse block height from key (8 bytes, big-endian) - let height_bytes: [u8; 8] = key.clone().try_into().map_err(|_| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization( - "invalid block height key length".to_string(), - ))) - })?; - let block_height = u64::from_be_bytes(height_bytes); - - // Track start and end blocks - if block_height < start_block { - start_block = block_height; - } - if block_height > end_block { - end_block = block_height; - } - - // Get the serialized data from the ItemWithSumItem element - let Element::ItemWithSumItem(serialized_data, _, _) = element else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "expected item with sum item element for nullifiers".to_string(), - ), - ))); - }; - - // Deserialize the nullifier list - let block_nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - // Simply concatenate - no merge semantics needed for nullifiers - combined_nullifiers.extend(block_nullifiers.iter()); - - keys_to_delete.push(key); - } - - // Append the current block's nullifiers - combined_nullifiers.extend_from_slice(current_nullifiers); - - // Serialize the combined nullifiers - let serialized = CompactedNullifiers::new(combined_nullifiers).encode()?; - - // Create the compacted key: (start_block, end_block) as 16 bytes - let mut compacted_key = Vec::with_capacity(16); - compacted_key.extend_from_slice(&start_block.to_be_bytes()); - compacted_key.extend_from_slice(&end_block.to_be_bytes()); - - // Build batch operations - let mut batch = GroveDbOpBatch::new(); - - // Delete all original entries from the count sum tree - for key in keys_to_delete { - batch.add_delete(path.clone(), key); - } - - // Insert the compacted entry as a plain Item (not ItemWithSumItem) - batch.add_insert( - shielded_compacted_nullifiers_path_vec(), - compacted_key.clone(), - Element::new_item(serialized), - ); - - // Calculate expiration time (current block time + 1 week) - let expiration_time_ms = current_block_time_ms.saturating_add(ONE_WEEK_IN_MS); - let expiration_key = expiration_time_ms.to_be_bytes().to_vec(); - - // Check if an entry with this expiration time already exists - // If so, we need to append to the existing vec of block ranges - let expiration_path = shielded_nullifiers_expiration_time_path(); - - let mut drive_operations = vec![]; - let existing_ranges = self.grove_get_raw_optional( - SubtreePath::from(expiration_path.as_ref()), - &expiration_key, - DirectQueryType::StatefulDirectQuery, - transaction, - &mut drive_operations, - &platform_version.drive, - )?; - - let expiration_value = if let Some(Element::Item(existing_data, _)) = existing_ranges { - // Deserialize existing vec of block ranges and append the new one - let mut ranges = NullifierExpirationRanges::decode(&existing_data)?.into_inner(); - ranges.push((start_block, end_block)); - NullifierExpirationRanges::new(ranges).encode()? - } else { - // No existing entry, create new vec with single range - NullifierExpirationRanges::new(vec![(start_block, end_block)]).encode()? - }; - - // Store in the expiration tree: key = expiration_time, value = vec of (start_block, end_block) - batch.add_insert( - shielded_nullifiers_expiration_time_path_vec(), - expiration_key, - Element::new_item(expiration_value), - ); - - // Apply the batch - self.grove_apply_batch(batch, false, transaction, &platform_version.drive)?; - - Ok((start_block, end_block)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - - /// Compacting with no existing recent entries (empty pool) produces a single - /// compacted entry whose range is (current_block, current_block). - #[test] - fn compact_with_empty_pool_uses_current_block_as_range() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let nullifiers = vec![[7u8; 32], [8u8; 32]]; - - let (start, end) = drive - .compact_nullifiers_with_current_block_v0( - &nullifiers, - 42, - 5_000, - None, - platform_version, - ) - .expect("compact should succeed"); - - assert_eq!(start, 42); - assert_eq!(end, 42); - - // Read back via fetch_compacted. - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch compacted"); - assert_eq!(compacted.len(), 1); - assert_eq!(compacted[0].start_block, 42); - assert_eq!(compacted[0].end_block, 42); - assert_eq!(compacted[0].nullifiers.as_slice(), nullifiers.as_slice()); - } - - /// Compacting twice with the same current_block_time_ms must merge the two - /// ranges under the same expiration key (exercising the - /// "existing_ranges is Some" branch). We additionally drive a cleanup past - /// the shared expiration time: if the second compaction had *overwritten* - /// the expiration index entry instead of appending, cleanup would only - /// chase one range and leave the other compacted row dangling. - #[test] - fn second_compaction_with_same_time_appends_range_to_expiration() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let block_time = 1_000u64; - - drive - .compact_nullifiers_with_current_block_v0( - &[[1u8; 32]], - 10, - block_time, - None, - platform_version, - ) - .expect("first compact"); - - drive - .compact_nullifiers_with_current_block_v0( - &[[2u8; 32]], - 20, - block_time, // same block time → same expiration key - None, - platform_version, - ) - .expect("second compact"); - - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch"); - assert_eq!(compacted.len(), 2, "both compacted ranges must be present"); - - // Cleanup past the shared expiration must remove BOTH ranges. This is - // what proves the second compaction appended its range to the - // existing expiration-index entry rather than overwriting it — a - // single range under that key would leave one compacted row behind - // and the count would be 1, not 2. - let current = - block_time + crate::drive::shielded::nullifiers::compact_nullifiers::ONE_WEEK_IN_MS + 1; - let cleaned = drive - .cleanup_expired_nullifier_compactions_v0(current, None, platform_version) - .expect("cleanup"); - assert_eq!( - cleaned, 2, - "cleanup must delete both ranges stored under the shared expiration key" - ); - - let compacted_after = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch after cleanup"); - assert!( - compacted_after.is_empty(), - "no compacted rows should remain after cleanup" - ); - } - - /// Compacting drains entries stored via store_nullifiers_for_block_v0 and the - /// final combined list is the concatenation of stored + current in block order. - #[test] - fn compact_drains_recent_and_concats_in_order() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - drive - .store_nullifiers_for_block_v0(&[[1u8; 32]], 1, 100, None, platform_version) - .expect("store 1"); - drive - .store_nullifiers_for_block_v0(&[[2u8; 32]], 2, 200, None, platform_version) - .expect("store 2"); - - let (start, end) = drive - .compact_nullifiers_with_current_block_v0(&[[3u8; 32]], 3, 300, None, platform_version) - .expect("compact"); - - assert_eq!(start, 1); - assert_eq!(end, 3); - - // After compaction, recent pool should be drained. - let recent = drive - .fetch_recent_nullifier_changes(0, None, None, platform_version) - .expect("fetch recent"); - assert_eq!(recent.len(), 0, "recent should be drained after compact"); - - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch compacted"); - assert_eq!(compacted.len(), 1); - // Concatenation in ascending block order: [1][2][3] - assert_eq!( - compacted[0].nullifiers.as_slice(), - &[[1u8; 32], [2u8; 32], [3u8; 32]] - ); - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/mod.rs deleted file mode 100644 index 5b31db5e56e..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/mod.rs +++ /dev/null @@ -1,39 +0,0 @@ -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -use crate::drive::shielded::nullifiers::types::CompactedNullifierChange; - -impl Drive { - /// Fetches compacted nullifier changes starting from a given block height. - pub fn fetch_compacted_nullifier_changes( - &self, - start_block_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .fetch_nullifiers - { - 0 => self.fetch_compacted_nullifier_changes_v0( - start_block_height, - limit, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "fetch_compacted_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/v0/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/v0/mod.rs deleted file mode 100644 index ab349717a8b..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_compacted_nullifiers/v0/mod.rs +++ /dev/null @@ -1,296 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::shielded_compacted_nullifiers_path_vec; -use crate::drive::shielded::nullifiers::types::{CompactedNullifierChange, CompactedNullifiers}; -use crate::drive::Drive; -use crate::error::Error; -use dpp::ProtocolError; -use grovedb::query_result_type::QueryResultType; -use grovedb::{Element, PathQuery, Query, SizedQuery, TransactionArg}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation of fetching compacted nullifier changes. - /// - /// Retrieves all compacted nullifier change records where `end_block >= start_block_height`. - /// This includes ranges that contain `start_block_height` (e.g., range 400-600 when querying - /// from block 505) as well as ranges that start after `start_block_height`. - /// - /// Returns a vector of (start_block, end_block, nullifiers) tuples. - pub(in crate::drive) fn fetch_compacted_nullifier_changes_v0( - &self, - start_block_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let path = shielded_compacted_nullifiers_path_vec(); - - // Keys are 16 bytes: (start_block, end_block), both big-endian. - // We want ranges where end_block >= start_block_height, which includes: - // - Ranges that contain start_block_height (e.g., 400-600 contains 505) - // - Ranges that start at or after start_block_height - // - // Strategy: - // 1. First query: descending from (start_block_height, u64::MAX) with limit 1 - // to find any range where start_block <= start_block_height that might contain it - // 2. Second query: ascending from (start_block_height, 0) to get ranges - // that start at or after start_block_height - - let mut compacted_changes = Vec::new(); - let limit_usize = limit.map(|l| l as usize); - - // Short-circuit: if limit is zero, no results should be returned - if limit_usize == Some(0) { - return Ok(compacted_changes); - } - - // Query 1: Find if there's a range containing start_block_height - // Query descending from (start_block_height, u64::MAX) with limit 1 - let mut desc_end_key = Vec::with_capacity(16); - desc_end_key.extend_from_slice(&start_block_height.to_be_bytes()); - desc_end_key.extend_from_slice(&u64::MAX.to_be_bytes()); - - let mut desc_query = Query::new_with_direction(false); // descending - desc_query.insert_range_to_inclusive(..=desc_end_key); - - let desc_path_query = - PathQuery::new(path.clone(), SizedQuery::new(desc_query, Some(1), None)); - - let (desc_results, _) = self.grove_get_path_query( - &desc_path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - // Check if we found a range that contains start_block_height - if let Some((key, element)) = desc_results.to_key_elements().into_iter().next() { - let (start_block, end_block) = CompactedNullifierChange::parse_key(&key)?; - - // Only include if end_block >= start_block_height (range contains our block) - if end_block >= start_block_height { - let Element::Item(serialized_data, _) = element else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "expected item element for compacted nullifiers".to_string(), - ), - ))); - }; - - let nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - compacted_changes.push(CompactedNullifierChange { - start_block, - end_block, - nullifiers, - }); - } - } - - // Check if we've already hit the limit - if let Some(l) = limit_usize { - if compacted_changes.len() >= l { - return Ok(compacted_changes); - } - } - - // Query 2: Get ranges that start at or after start_block_height (ascending) - // Always use (start_block_height, 0) for consistent proof verification - // The result may overlap with descending query if descending found a range - // starting exactly at start_block_height - we dedupe below - let mut asc_start_key = Vec::with_capacity(16); - asc_start_key.extend_from_slice(&start_block_height.to_be_bytes()); - asc_start_key.extend_from_slice(&0u64.to_be_bytes()); - - let mut asc_query = Query::new(); - asc_query.insert_range_from(asc_start_key..); - - let asc_path_query = PathQuery::new(path, SizedQuery::new(asc_query, limit, None)); - - let (asc_results, _) = self.grove_get_path_query( - &asc_path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - // Track the (start_block, end_block) from descending query to avoid duplicates - let desc_range_key = compacted_changes - .first() - .map(|c| (c.start_block, c.end_block)); - - for (key, element) in asc_results.to_key_elements() { - // Check if we've reached the limit - if let Some(l) = limit_usize { - if compacted_changes.len() >= l { - break; - } - } - - let (start_block, end_block) = CompactedNullifierChange::parse_key(&key)?; - - // Skip if this is the same range we got from descending query - if Some((start_block, end_block)) == desc_range_key { - continue; - } - - let Element::Item(serialized_data, _) = element else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "expected item element for compacted nullifiers".to_string(), - ), - ))); - }; - - let nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - compacted_changes.push(CompactedNullifierChange { - start_block, - end_block, - nullifiers, - }); - } - - Ok(compacted_changes) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::drive::shielded::nullifiers::queries::shielded_compacted_nullifiers_path; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use dpp::ProtocolError; - use grovedb::Element; - - /// Limit=Some(0) must short-circuit before any GroveDB work and return an empty vec. - #[test] - fn limit_zero_short_circuits() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let result = drive - .fetch_compacted_nullifier_changes_v0(0, Some(0), None, platform_version) - .expect("limit 0 should return Ok([])"); - assert_eq!(result.len(), 0); - } - - /// Empty compacted tree should return empty vec. - #[test] - fn fetch_empty_compacted_tree_returns_empty() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let result = drive - .fetch_compacted_nullifier_changes_v0(0, None, None, platform_version) - .expect("empty tree fetch"); - assert!(result.is_empty()); - } - - /// Querying from a block_height past the only compacted range should miss that - /// range entirely (because end_block < start_block_height). - #[test] - fn query_past_the_only_range_returns_none() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Force-insert one compacted entry spanning blocks 10..=20. - let compacted_path = shielded_compacted_nullifiers_path(); - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&10u64.to_be_bytes()); - key.extend_from_slice(&20u64.to_be_bytes()); - let serialized = CompactedNullifiers::new(vec![[1u8; 32]]).encode().unwrap(); - drive - .grove - .insert( - compacted_path.as_ref(), - &key, - Element::new_item(serialized), - None, - None, - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("insert compacted"); - - // Query from block 1000 — past the 10..=20 range. - let result = drive - .fetch_compacted_nullifier_changes_v0(1000, None, None, platform_version) - .expect("fetch"); - assert_eq!(result.len(), 0, "range [10,20] does not cover 1000"); - } - - /// Querying from a block_height inside an existing range must return that range - /// (exercising the descending-query branch that covers `start_block_height`). - #[test] - fn query_inside_range_returns_it() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Force-insert a compacted entry spanning blocks 400..=600. - let compacted_path = shielded_compacted_nullifiers_path(); - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&400u64.to_be_bytes()); - key.extend_from_slice(&600u64.to_be_bytes()); - let nullifiers = vec![[0xAAu8; 32], [0xBBu8; 32]]; - let serialized = CompactedNullifiers::new(nullifiers.clone()) - .encode() - .unwrap(); - drive - .grove - .insert( - compacted_path.as_ref(), - &key, - Element::new_item(serialized), - None, - None, - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("insert"); - - let result = drive - .fetch_compacted_nullifier_changes_v0(505, None, None, platform_version) - .expect("fetch from block inside range"); - assert_eq!(result.len(), 1); - assert_eq!(result[0].start_block, 400); - assert_eq!(result[0].end_block, 600); - assert_eq!(result[0].nullifiers.as_slice(), nullifiers.as_slice()); - } - - /// Inserting a garbage item payload under the compacted path triggers the - /// CorruptedSerialization branch in CompactedNullifiers::decode. - #[test] - fn fetch_rejects_undecodable_payload_in_compacted_tree() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let compacted_path = shielded_compacted_nullifiers_path(); - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&0u64.to_be_bytes()); - key.extend_from_slice(&10u64.to_be_bytes()); - // Garbage bytes that bincode cannot decode into Vec<[u8;32]>. - drive - .grove - .insert( - compacted_path.as_ref(), - &key, - Element::new_item(vec![0xFFu8; 3]), - None, - None, - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("force-insert garbage item"); - - match drive.fetch_compacted_nullifier_changes_v0(0, None, None, platform_version) { - Err(Error::Protocol(b)) => match b.as_ref() { - ProtocolError::CorruptedSerialization(_) => {} - other => panic!("expected CorruptedSerialization, got: {:?}", other), - }, - Err(other) => panic!("expected Error::Protocol, got: {:?}", other), - Ok(_) => panic!("should reject undecodable payload"), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/mod.rs deleted file mode 100644 index edc0b04b4ce..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/mod.rs +++ /dev/null @@ -1,39 +0,0 @@ -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -use crate::drive::shielded::nullifiers::types::NullifierChangePerBlock; - -impl Drive { - /// Fetches recent nullifier changes starting from a given block height. - pub fn fetch_recent_nullifier_changes( - &self, - start_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .fetch_nullifiers - { - 0 => self.fetch_recent_nullifier_changes_v0( - start_height, - limit, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "fetch_recent_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/v0/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/v0/mod.rs deleted file mode 100644 index f14ae334770..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/fetch_nullifiers/v0/mod.rs +++ /dev/null @@ -1,176 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::shielded_recent_nullifiers_path_vec; -use crate::drive::shielded::nullifiers::types::{CompactedNullifiers, NullifierChangePerBlock}; -use crate::drive::Drive; -use crate::error::Error; -use dpp::ProtocolError; -use grovedb::query_result_type::QueryResultType; -use grovedb::{Element, PathQuery, Query, SizedQuery, TransactionArg}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation of fetching nullifier changes from a start height. - /// - /// Retrieves all nullifier change records from `start_height` onwards. - /// Returns a vector of (block_height, nullifiers) tuples. - pub(in crate::drive) fn fetch_recent_nullifier_changes_v0( - &self, - start_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let path = shielded_recent_nullifiers_path_vec(); - - // Create a range query starting from the specified height - let mut query = Query::new(); - query.insert_range_from(start_height.to_be_bytes().to_vec()..); - - let path_query = PathQuery::new(path, SizedQuery::new(query, limit, None)); - - let (results, _) = self.grove_get_path_query( - &path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - let mut nullifier_changes = Vec::new(); - - for (key, element) in results.to_key_elements() { - // Parse block height from key (8 bytes, big-endian) - let height_bytes: [u8; 8] = key.try_into().map_err(|_| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization( - "invalid block height key length".to_string(), - ))) - })?; - let block_height = u64::from_be_bytes(height_bytes); - - // Get the serialized data from the ItemWithSumItem element - let Element::ItemWithSumItem(serialized_data, _, _) = element else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "expected item with sum item element for nullifiers".to_string(), - ), - ))); - }; - - // Deserialize the nullifier list - let nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - nullifier_changes.push(NullifierChangePerBlock { - block_height, - nullifiers, - }); - } - - Ok(nullifier_changes) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::drive::shielded::nullifiers::queries::shielded_recent_nullifiers_path_vec; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use dpp::ProtocolError; - - /// Fetching from an empty nullifier pool returns an empty vec (not an error). - #[test] - fn fetch_empty_pool_returns_empty_vec() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let result = drive - .fetch_recent_nullifier_changes_v0(0, None, None, platform_version) - .expect("fetch should succeed"); - assert!(result.is_empty()); - } - - /// Fetch honors a non-zero start_height: blocks before start_height are skipped. - #[test] - fn fetch_skips_blocks_before_start_height() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Store 3 blocks. - for height in [10u64, 20, 30] { - drive - .store_nullifiers_for_block_v0( - &[[height as u8; 32]], - height, - 1_000 * height, - None, - platform_version, - ) - .expect("store"); - } - - let from_25 = drive - .fetch_recent_nullifier_changes_v0(25, None, None, platform_version) - .expect("fetch from 25"); - assert_eq!(from_25.len(), 1, "only block 30 should be returned"); - assert_eq!(from_25[0].block_height, 30); - } - - /// Fetch honors the limit parameter. With limit=2 and 3 stored blocks, we get 2. - #[test] - fn fetch_honors_limit() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - for height in [1u64, 2, 3] { - drive - .store_nullifiers_for_block_v0( - &[[height as u8; 32]], - height, - 1_000, - None, - platform_version, - ) - .expect("store"); - } - - let limited = drive - .fetch_recent_nullifier_changes_v0(0, Some(2), None, platform_version) - .expect("fetch with limit"); - assert_eq!(limited.len(), 2); - assert_eq!(limited[0].block_height, 1); - assert_eq!(limited[1].block_height, 2); - } - - /// Directly inserting a malformed (wrong-type) element into the nullifiers tree - /// triggers the CorruptedSerialization branch in the fetch loop. - #[test] - fn fetch_rejects_non_item_with_sum_item_element() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Insert a plain Item element directly (bypassing the store API). fetch expects - // ItemWithSumItem and must error on plain Item. - let path = shielded_recent_nullifiers_path_vec(); - let path_refs: Vec<&[u8]> = path.iter().map(|v| v.as_slice()).collect(); - let key = 1u64.to_be_bytes(); - drive - .grove - .insert( - path_refs.as_slice(), - &key, - grovedb::Element::new_item(vec![0u8; 4]), - None, - None, - &platform_version.drive.grove_version, - ) - .unwrap() - .expect("force-insert plain item"); - - match drive.fetch_recent_nullifier_changes_v0(0, None, None, platform_version) { - Err(Error::Protocol(b)) => match b.as_ref() { - ProtocolError::CorruptedSerialization(_) => {} - other => panic!("expected CorruptedSerialization, got: {:?}", other), - }, - Err(other) => panic!("expected Error::Protocol, got: {:?}", other), - Ok(_) => panic!("fetch should detect the wrong element kind"), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/mod.rs deleted file mode 100644 index e104d53f113..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/mod.rs +++ /dev/null @@ -1,18 +0,0 @@ -#[cfg(feature = "server")] -mod cleanup_expired_nullifier_compactions; -/// Compaction of per-block nullifier entries into range-keyed compacted entries -#[cfg(feature = "server")] -pub mod compact_nullifiers; -/// Fetching compacted nullifier changes -#[cfg(feature = "server")] -pub mod fetch_compacted_nullifiers; -/// Fetching recent per-block nullifier changes -#[cfg(feature = "server")] -pub mod fetch_nullifiers; -/// Path definitions and constants for per-block nullifier storage -pub mod queries; -#[cfg(feature = "server")] -mod store_nullifiers; -/// Wrapper types for serialized nullifier data -pub mod types; -pub use queries::*; diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/queries.rs b/packages/rs-drive/src/drive/shielded/nullifiers/queries.rs deleted file mode 100644 index 6088e0672e7..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/queries.rs +++ /dev/null @@ -1,83 +0,0 @@ -use crate::drive::shielded::paths::MAIN_SHIELDED_CREDIT_POOL_KEY; -use crate::drive::RootTree; - -// Byte positions chosen to balance the parent shielded-pool Merk tree — -// see the layout diagram at the top of `crate::drive::shielded::paths`. - -/// The subtree key for per-block nullifiers storage (CountSumTree). -/// -/// Depth 2 in the parent tree (right subtree of `SHIELDED_NOTES_KEY`). -pub const SHIELDED_RECENT_NULLIFIERS_KEY: &[u8; 1] = &[160]; - -/// The subtree key for per-block nullifiers storage as u8. -pub const SHIELDED_RECENT_NULLIFIERS_KEY_U8: u8 = 160; - -/// The subtree key for compacted nullifiers storage. -/// -/// Depth 2 in the parent tree. -pub const SHIELDED_COMPACTED_NULLIFIERS_KEY: &[u8; 1] = &[224]; - -/// The subtree key for compacted nullifiers storage as u8. -pub const SHIELDED_COMPACTED_NULLIFIERS_KEY_U8: u8 = 224; - -/// The subtree key for nullifiers expiration time storage. -/// -/// Deepest leaf in the parent tree — only touched by periodic expiry sweeps. -pub const SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY: &[u8; 1] = &[240]; - -/// The subtree key for nullifiers expiration time storage as u8. -pub const SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY_U8: u8 = 240; - -/// Path to per-block nullifiers: [ShieldedBalances, "M", [160]] -pub fn shielded_recent_nullifiers_path() -> [&'static [u8]; 3] { - [ - Into::<&[u8; 1]>::into(RootTree::ShieldedBalances), - MAIN_SHIELDED_CREDIT_POOL_KEY, - SHIELDED_RECENT_NULLIFIERS_KEY, - ] -} - -/// Path to per-block nullifiers as vec: [ShieldedBalances, "M", [160]] -pub fn shielded_recent_nullifiers_path_vec() -> Vec> { - vec![ - vec![RootTree::ShieldedBalances as u8], - MAIN_SHIELDED_CREDIT_POOL_KEY.to_vec(), - vec![SHIELDED_RECENT_NULLIFIERS_KEY_U8], - ] -} - -/// Path to compacted nullifiers: [ShieldedBalances, "M", [224]] -pub fn shielded_compacted_nullifiers_path() -> [&'static [u8]; 3] { - [ - Into::<&[u8; 1]>::into(RootTree::ShieldedBalances), - MAIN_SHIELDED_CREDIT_POOL_KEY, - SHIELDED_COMPACTED_NULLIFIERS_KEY, - ] -} - -/// Path to compacted nullifiers as vec: [ShieldedBalances, "M", [224]] -pub fn shielded_compacted_nullifiers_path_vec() -> Vec> { - vec![ - vec![RootTree::ShieldedBalances as u8], - MAIN_SHIELDED_CREDIT_POOL_KEY.to_vec(), - vec![SHIELDED_COMPACTED_NULLIFIERS_KEY_U8], - ] -} - -/// Path to nullifiers expiration time: [ShieldedBalances, "M", [240]] -pub fn shielded_nullifiers_expiration_time_path() -> [&'static [u8]; 3] { - [ - Into::<&[u8; 1]>::into(RootTree::ShieldedBalances), - MAIN_SHIELDED_CREDIT_POOL_KEY, - SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY, - ] -} - -/// Path to nullifiers expiration time as vec: [ShieldedBalances, "M", [240]] -pub fn shielded_nullifiers_expiration_time_path_vec() -> Vec> { - vec![ - vec![RootTree::ShieldedBalances as u8], - MAIN_SHIELDED_CREDIT_POOL_KEY.to_vec(), - vec![SHIELDED_NULLIFIERS_EXPIRATION_TIME_KEY_U8], - ] -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/mod.rs deleted file mode 100644 index 83cd007b612..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/mod.rs +++ /dev/null @@ -1,55 +0,0 @@ -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Stores nullifiers for a block in the shielded credit pool. - /// - /// This method serializes the nullifiers using bincode and stores - /// them keyed by block height. If compaction thresholds are exceeded, it will - /// compact existing entries along with the current block's data and store - /// an expiration time for the compacted entry. - /// - /// # Parameters - /// - `nullifiers`: The nullifiers to store for this block - /// - `block_height`: The height of the block these nullifiers belong to - /// - `block_time_ms`: The block time in milliseconds (used for expiration calculation) - /// - `transaction`: The database transaction - /// - `platform_version`: The platform version - /// - /// # Returns - /// - `Ok(())` on success - /// - `Err(Error)` if the operation fails - pub fn store_nullifiers_for_block( - &self, - nullifiers: &[[u8; 32]], - block_height: u64, - block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result<(), Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .store_nullifiers - { - 0 => self.store_nullifiers_for_block_v0( - nullifiers, - block_height, - block_time_ms, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "store_nullifiers_for_block".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/v0/mod.rs b/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/v0/mod.rs deleted file mode 100644 index cb282da0856..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/store_nullifiers/v0/mod.rs +++ /dev/null @@ -1,320 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::{ - shielded_recent_nullifiers_path, SHIELDED_RECENT_NULLIFIERS_KEY_U8, -}; -use crate::drive::shielded::nullifiers::types::CompactedNullifiers; -use crate::drive::shielded::paths::shielded_credit_pool_path; -use crate::drive::Drive; -use crate::error::Error; -use crate::util::grove_operations::DirectQueryType; -use grovedb::Element; -use grovedb::TransactionArg; - -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation of storing nullifiers for a block. - /// - /// Serializes the nullifier list using bincode and stores it in the - /// shielded credit pool per-block nullifiers count sum tree keyed by block height. - /// Each entry is an ItemWithSumItem where: - /// - The item contains the serialized nullifiers - /// - The sum value is the number of nullifiers - /// - /// Before storing, checks if compaction thresholds are exceeded and triggers - /// compaction if necessary. If compaction occurs, the current block's nullifiers - /// are included in the compaction rather than stored separately. - pub(in crate::drive) fn store_nullifiers_for_block_v0( - &self, - nullifiers: &[[u8; 32]], - block_height: u64, - block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result<(), Error> { - // Early return if there are no nullifiers to store - if nullifiers.is_empty() { - return Ok(()); - } - - // Check if compaction is needed - if so, include current nullifiers in compaction - let compacted = self.check_and_compact_nullifiers_if_needed( - nullifiers, - block_height, - block_time_ms, - transaction, - platform_version, - )?; - - // If we compacted, the current nullifiers are already included - don't store separately - if compacted { - return Ok(()); - } - - // Serialize the nullifiers using CompactedNullifiers wrapper - let serialized = CompactedNullifiers::new(nullifiers.to_vec()).encode()?; - - // The sum value is the number of nullifiers - let entry_count = i64::try_from(nullifiers.len()).map_err(|_| { - Error::Drive(crate::error::drive::DriveError::CorruptedDriveState( - "nullifier count exceeds i64::MAX".to_string(), - )) - })?; - - // Store in the shielded pool per-block nullifiers count sum tree with block height as key - let path = shielded_recent_nullifiers_path(); - - // Use block height as the key (big-endian for proper ordering) - let key = block_height.to_be_bytes(); - - // Insert as ItemWithSumItem where: - // - item data = serialized nullifiers - // - sum value = number of nullifiers - let mut drive_operations = vec![]; - self.grove_insert( - path.as_ref().into(), - &key, - Element::new_item_with_sum_item(serialized, entry_count), - transaction, - None, - &mut drive_operations, - &platform_version.drive, - )?; - - // Apply any operations that were generated - self.apply_batch_low_level_drive_operations( - None, - transaction, - drive_operations, - &mut vec![], - &platform_version.drive, - )?; - - Ok(()) - } - - /// Checks if compaction thresholds are exceeded and triggers compaction if needed. - /// If compaction occurs, the provided nullifiers are included in the compaction. - /// - /// Returns true if compaction was performed (meaning the nullifiers were included). - fn check_and_compact_nullifiers_if_needed( - &self, - nullifiers: &[[u8; 32]], - block_height: u64, - block_time_ms: u64, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result { - let pool_path = shielded_credit_pool_path(); - - // Get the count sum tree element to check current count and sum - let mut drive_operations = vec![]; - let tree_element = self.grove_get_raw( - (&pool_path).into(), - &[SHIELDED_RECENT_NULLIFIERS_KEY_U8], - DirectQueryType::StatefulDirectQuery, - transaction, - &mut drive_operations, - &platform_version.drive, - )?; - - // The recent-nullifiers subtree is wrapped in `Element::NotSummed` so - // that its sum side does not propagate into the enclosing shielded - // pool SumTree. `underlying()` peels the wrapper so we can read the - // inner CountSumTree's own (count, sum) for the compaction trigger. - if let Some(Element::CountSumTree(_, count, sum, _)) = - tree_element.as_ref().map(|e| e.underlying()) - { - let max_blocks = platform_version - .drive - .methods - .saved_block_transactions - .max_blocks_before_nullifier_compaction as u64; - let max_nullifiers = platform_version - .drive - .methods - .saved_block_transactions - .max_nullifiers_before_compaction as i64; - - // Check if either threshold would be exceeded after adding the current block - // count + 1 for the new block, sum + current nullifiers count - let new_count = *count + 1; - let new_sum = *sum + nullifiers.len() as i64; - - if new_count >= max_blocks || new_sum >= max_nullifiers { - // Trigger compaction, including the current block's nullifiers - self.compact_nullifiers_with_current_block( - nullifiers, - block_height, - block_time_ms, - transaction, - platform_version, - )?; - return Ok(true); - } - } - - Ok(false) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::drive::shielded::nullifiers::queries::{ - shielded_compacted_nullifiers_path_vec, shielded_recent_nullifiers_path_vec, - }; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use grovedb::{PathQuery, Query, SizedQuery}; - - /// Storing an empty nullifier list must be a no-op: nothing is written, - /// compaction isn't triggered, and no error is returned. - #[test] - fn store_empty_nullifiers_is_noop() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - drive - .store_nullifiers_for_block_v0(&[], 10, 1_000, None, platform_version) - .expect("empty store should succeed"); - - // Nothing should be stored in the recent-nullifiers tree. - let path = shielded_recent_nullifiers_path_vec(); - let mut query = Query::new(); - query.insert_all(); - let pq = PathQuery::new(path, SizedQuery::new(query, None, None)); - let (results, _) = drive - .grove_get_path_query( - &pq, - None, - grovedb::query_result_type::QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - ) - .expect("query should succeed"); - assert_eq!(results.to_key_elements().len(), 0); - } - - /// Storing a single batch of nullifiers for a block must round-trip via - /// fetch_recent_nullifier_changes without triggering compaction. - #[test] - fn store_single_block_round_trips_via_fetch() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let nullifiers = vec![[1u8; 32], [2u8; 32], [3u8; 32]]; - - drive - .store_nullifiers_for_block_v0(&nullifiers, 42, 1_000, None, platform_version) - .expect("store should succeed"); - - let changes = drive - .fetch_recent_nullifier_changes(0, None, None, platform_version) - .expect("fetch should succeed"); - - assert_eq!(changes.len(), 1); - assert_eq!(changes[0].block_height, 42); - assert_eq!(changes[0].nullifiers.as_slice(), nullifiers.as_slice()); - - // Nothing should have been compacted (we only stored one block). - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch compacted should succeed"); - assert_eq!(compacted.len(), 0); - } - - /// Exceeding the max_nullifiers_before_compaction threshold should trigger - /// compaction: recent-nullifiers tree is drained, compacted tree has one entry. - #[test] - fn compaction_triggers_on_nullifier_threshold() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Derive the compaction threshold from the active platform version so - // this test stays correct if the constant is bumped in a future - // drive version. - let max_nullifiers = platform_version - .drive - .methods - .saved_block_transactions - .max_nullifiers_before_compaction; - - let nullifiers: Vec<[u8; 32]> = (0..max_nullifiers) - .map(|i| [(i & 0xff) as u8; 32]) - .collect(); - - drive - .store_nullifiers_for_block_v0(&nullifiers, 1, 1_000, None, platform_version) - .expect("first store should succeed"); - - // First store doesn't trigger because count=0 before, sum=0 before. - // new_sum = 0 + max_nullifiers >= max_nullifiers, so compaction IS - // triggered on the first block. That means recent is empty and - // compacted has one entry spanning [1,1]. - let recent = drive - .fetch_recent_nullifier_changes(0, None, None, platform_version) - .expect("fetch recent"); - assert_eq!( - recent.len(), - 0, - "recent should be empty after threshold-triggered compaction" - ); - - let compacted = drive - .fetch_compacted_nullifier_changes(0, None, None, platform_version) - .expect("fetch compacted"); - assert_eq!(compacted.len(), 1); - assert_eq!(compacted[0].start_block, 1); - assert_eq!(compacted[0].end_block, 1); - - // The compacted entry key must exist in GroveDB. - let path = shielded_compacted_nullifiers_path_vec(); - let mut query = Query::new(); - query.insert_all(); - let pq = PathQuery::new(path, SizedQuery::new(query, None, None)); - let (results, _) = drive - .grove_get_path_query( - &pq, - None, - grovedb::query_result_type::QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - ) - .expect("query compacted"); - assert_eq!(results.to_key_elements().len(), 1); - } - - /// Storing under a transaction (Some(&tx)) should commit the nullifiers - /// only after the transaction commits. - #[test] - fn store_within_transaction_commits_correctly() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - let transaction = drive.grove.start_transaction(); - - drive - .store_nullifiers_for_block_v0( - &[[9u8; 32]], - 5, - 1_000, - Some(&transaction), - platform_version, - ) - .expect("store in tx"); - - // Without committing, the non-transactional reader should see nothing. - let changes_no_tx = drive - .fetch_recent_nullifier_changes(0, None, None, platform_version) - .expect("fetch without tx"); - assert_eq!(changes_no_tx.len(), 0); - - drive - .commit_transaction(transaction, &platform_version.drive) - .expect("commit"); - - let changes = drive - .fetch_recent_nullifier_changes(0, None, None, platform_version) - .expect("fetch after commit"); - assert_eq!(changes.len(), 1); - assert_eq!(changes[0].block_height, 5); - } -} diff --git a/packages/rs-drive/src/drive/shielded/nullifiers/types.rs b/packages/rs-drive/src/drive/shielded/nullifiers/types.rs deleted file mode 100644 index 02e619c7c5f..00000000000 --- a/packages/rs-drive/src/drive/shielded/nullifiers/types.rs +++ /dev/null @@ -1,269 +0,0 @@ -use crate::error::Error; -use dpp::ProtocolError; -use std::ops::Deref; - -/// Wrapper around `Vec<[u8; 32]>` for serialized nullifier lists. -/// -/// Encapsulates the bincode configuration used for encoding and decoding -/// compacted nullifier data, eliminating duplicated serialization boilerplate. -pub struct CompactedNullifiers(Vec<[u8; 32]>); - -impl CompactedNullifiers { - /// Creates a new `CompactedNullifiers` from the given nullifier list. - pub fn new(inner: Vec<[u8; 32]>) -> Self { - Self(inner) - } - - /// Returns the bincode configuration used for nullifier serialization. - /// - /// SAFETY: `with_no_limit()` is intentional. This data is deserialized from - /// GroveDB state which is always trusted. If state-level corruption occurs, - /// the problem is at the storage layer, not the deserialization layer. - /// Adding artificial limits here would mask real issues without providing - /// meaningful protection. - fn bincode_config() -> bincode::config::Configuration< - bincode::config::BigEndian, - bincode::config::Varint, - bincode::config::NoLimit, - > { - bincode::config::standard() - .with_big_endian() - .with_no_limit() - } - - /// Encodes the nullifier list into bytes using bincode. - pub fn encode(&self) -> Result, Error> { - bincode::encode_to_vec(&self.0, Self::bincode_config()).map_err(|e| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization(format!( - "cannot encode compacted nullifiers: {}", - e - )))) - }) - } - - /// Decodes a nullifier list from bytes using bincode. - pub fn decode(bytes: &[u8]) -> Result { - let (inner, _): (Vec<[u8; 32]>, usize) = - bincode::decode_from_slice(bytes, Self::bincode_config()).map_err(|e| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization(format!( - "cannot decode compacted nullifiers: {}", - e - )))) - })?; - Ok(Self(inner)) - } - - /// Consumes the wrapper and returns the inner `Vec<[u8; 32]>`. - pub fn into_inner(self) -> Vec<[u8; 32]> { - self.0 - } -} - -impl Deref for CompactedNullifiers { - type Target = Vec<[u8; 32]>; - - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -/// Wrapper around `Vec<(u64, u64)>` for serialized nullifier expiration range lists. -/// -/// Each `(u64, u64)` pair represents a `(start_block, end_block)` range of compacted -/// nullifiers that share the same expiration timestamp. Encapsulates the bincode -/// configuration used for encoding and decoding these ranges. -pub struct NullifierExpirationRanges(Vec<(u64, u64)>); - -impl NullifierExpirationRanges { - /// Creates a new `NullifierExpirationRanges` from the given range list. - pub fn new(inner: Vec<(u64, u64)>) -> Self { - Self(inner) - } - - /// Returns the bincode configuration used for expiration range serialization. - /// - /// SAFETY: `with_no_limit()` is intentional — see `CompactedNullifiers::bincode_config`. - fn bincode_config() -> bincode::config::Configuration< - bincode::config::BigEndian, - bincode::config::Varint, - bincode::config::NoLimit, - > { - bincode::config::standard() - .with_big_endian() - .with_no_limit() - } - - /// Encodes the expiration range list into bytes using bincode. - pub fn encode(&self) -> Result, Error> { - bincode::encode_to_vec(&self.0, Self::bincode_config()).map_err(|e| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization(format!( - "cannot encode nullifier expiration ranges: {}", - e - )))) - }) - } - - /// Decodes an expiration range list from bytes using bincode. - pub fn decode(bytes: &[u8]) -> Result { - let (inner, _): (Vec<(u64, u64)>, usize) = - bincode::decode_from_slice(bytes, Self::bincode_config()).map_err(|e| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization(format!( - "cannot decode nullifier expiration ranges: {}", - e - )))) - })?; - Ok(Self(inner)) - } - - /// Consumes the wrapper and returns the inner `Vec<(u64, u64)>`. - pub fn into_inner(self) -> Vec<(u64, u64)> { - self.0 - } -} - -impl Deref for NullifierExpirationRanges { - type Target = Vec<(u64, u64)>; - - fn deref(&self) -> &Self::Target { - &self.0 - } -} - -/// A single compacted nullifier change entry, representing nullifiers from a range of blocks. -/// -/// The key in GroveDB is 16 bytes: `(start_block, end_block)` in big-endian. -pub struct CompactedNullifierChange { - /// First block height in the compacted range. - pub start_block: u64, - /// Last block height in the compacted range. - pub end_block: u64, - /// The nullifiers from this range of blocks. - pub nullifiers: CompactedNullifiers, -} - -impl CompactedNullifierChange { - /// Parses start_block and end_block from a 16-byte big-endian key. - pub fn parse_key(key: &[u8]) -> Result<(u64, u64), Error> { - if key.len() != 16 { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "invalid compacted block key length, expected 16 bytes".to_string(), - ), - ))); - } - let start_block = u64::from_be_bytes(key[0..8].try_into().map_err(|_| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization( - "invalid compacted key slice".to_string(), - ))) - })?); - let end_block = u64::from_be_bytes(key[8..16].try_into().map_err(|_| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization( - "invalid compacted key slice".to_string(), - ))) - })?); - Ok((start_block, end_block)) - } -} - -#[cfg(test)] -#[allow(clippy::items_after_test_module)] -mod tests { - use super::*; - - #[test] - fn compacted_nullifiers_round_trip_empty() { - // Empty list round-trips cleanly. - let original = CompactedNullifiers::new(vec![]); - let bytes = original.encode().expect("encode empty"); - let decoded = CompactedNullifiers::decode(&bytes).expect("decode empty"); - assert!(decoded.is_empty()); - } - - #[test] - fn compacted_nullifiers_round_trip_many() { - // Non-empty list preserves order and contents. - let inputs: Vec<[u8; 32]> = (0u8..10).map(|i| [i; 32]).collect(); - let original = CompactedNullifiers::new(inputs.clone()); - let bytes = original.encode().expect("encode"); - let decoded = CompactedNullifiers::decode(&bytes).expect("decode"); - assert_eq!(decoded.into_inner(), inputs); - } - - #[test] - fn compacted_nullifiers_decode_garbage_returns_corrupted_serialization() { - // Arbitrary garbage bytes must not produce a valid CompactedNullifiers. - match CompactedNullifiers::decode(&[0xFFu8; 3]) { - Err(Error::Protocol(b)) => match b.as_ref() { - ProtocolError::CorruptedSerialization(_) => {} - other => panic!("expected CorruptedSerialization, got: {:?}", other), - }, - Err(other) => panic!("expected ProtocolError, got: {:?}", other), - Ok(_) => panic!("expected error, got Ok"), - } - } - - #[test] - fn expiration_ranges_round_trip() { - let ranges = vec![(1u64, 5u64), (6, 10), (100, 200)]; - let original = NullifierExpirationRanges::new(ranges.clone()); - let bytes = original.encode().expect("encode"); - let decoded = NullifierExpirationRanges::decode(&bytes).expect("decode"); - assert_eq!(decoded.into_inner(), ranges); - } - - #[test] - fn expiration_ranges_decode_garbage_returns_corrupted_serialization() { - match NullifierExpirationRanges::decode(&[0xAB, 0xCD]) { - Err(Error::Protocol(b)) => match b.as_ref() { - ProtocolError::CorruptedSerialization(_) => {} - other => panic!("expected CorruptedSerialization, got: {:?}", other), - }, - Err(other) => panic!("expected ProtocolError, got: {:?}", other), - Ok(_) => panic!("expected error, got Ok"), - } - } - - #[test] - fn parse_key_rejects_wrong_length() { - // < 16 bytes - let err = CompactedNullifierChange::parse_key(&[0u8; 8]) - .expect_err("short key should be rejected"); - assert!(matches!(err, Error::Protocol(_))); - - // > 16 bytes - let err = CompactedNullifierChange::parse_key(&[0u8; 24]) - .expect_err("long key should be rejected"); - assert!(matches!(err, Error::Protocol(_))); - - // Empty - let err = - CompactedNullifierChange::parse_key(&[]).expect_err("empty key should be rejected"); - assert!(matches!(err, Error::Protocol(_))); - } - - #[test] - fn parse_key_decodes_big_endian_u64_pair() { - let mut key = [0u8; 16]; - key[0..8].copy_from_slice(&100u64.to_be_bytes()); - key[8..16].copy_from_slice(&200u64.to_be_bytes()); - let (start, end) = CompactedNullifierChange::parse_key(&key).expect("parse"); - assert_eq!(start, 100); - assert_eq!(end, 200); - - // Max boundary values. - let mut key = [0u8; 16]; - key[0..8].copy_from_slice(&u64::MAX.to_be_bytes()); - key[8..16].copy_from_slice(&u64::MAX.to_be_bytes()); - let (start, end) = CompactedNullifierChange::parse_key(&key).expect("parse u64::MAX"); - assert_eq!(start, u64::MAX); - assert_eq!(end, u64::MAX); - } -} - -/// A single nullifier change entry for a specific block height. -pub struct NullifierChangePerBlock { - /// The block height this entry belongs to. - pub block_height: u64, - /// The nullifiers added in this block. - pub nullifiers: CompactedNullifiers, -} diff --git a/packages/rs-drive/src/drive/shielded/paths.rs b/packages/rs-drive/src/drive/shielded/paths.rs index 94717364c33..fc7ad7d6707 100644 --- a/packages/rs-drive/src/drive/shielded/paths.rs +++ b/packages/rs-drive/src/drive/shielded/paths.rs @@ -7,7 +7,7 @@ pub const MAIN_SHIELDED_CREDIT_POOL_KEY: &[u8; 1] = b"M"; /// The subtree key for the shielded credit pool as a u8 pub const MAIN_SHIELDED_CREDIT_POOL_KEY_U8: u8 = b'M'; -// The eight subtree keys of the shielded credit pool are placed at evenly-spaced +// The five subtree keys of the shielded credit pool are placed at evenly-spaced // byte positions across [0, 255] so that GroveDB's AVL-balanced parent tree // puts the highest-traffic subtree (`SHIELDED_NOTES_KEY`) at the root, with the // next-most-queried subtrees one hop below it, and the cold ones at the leaves: @@ -15,15 +15,13 @@ pub const MAIN_SHIELDED_CREDIT_POOL_KEY_U8: u8 = b'M'; // [128] NOTES ← root, every wallet sync // / \ // [64] NULLIFIERS [192] ANCHORS_IN_POOL -// / \ / \ -// [32] TOTAL [96] BY_HEIGHT [160] RECENT [224] COMPACTED -// \ -// [240] EXPIRATION +// / \ +// [32] TOTAL [96] BY_HEIGHT // // Within a depth tier (children of a given internal node), placement is by // access frequency: the spend-path subtrees (`NULLIFIERS`, `ANCHORS_IN_POOL`) -// are at depth 1; periodic-write subtrees (`COMPACTED_NULLIFIERS`, -// `EXPIRATION_TIME`) sit at the leaves. Key 7 is the historical +// are at depth 1; the cold balance/anchor-index subtrees (`TOTAL`, `BY_HEIGHT`) +// sit at the leaves. Key 7 is the historical // `SHIELDED_MOST_RECENT_ANCHOR_KEY` slot — see retired-key note below. /// Key for the total balance sum item inside a shielded pool. @@ -55,7 +53,7 @@ pub const SHIELDED_ANCHORS_BY_HEIGHT_KEY: u8 = 96; /// Key for the notes tree (CommitmentTree) inside a shielded pool. /// -/// Placed at byte 128 — the median of the eight pool subtrees, putting it at +/// Placed at byte 128 — the median of the pool subtrees, putting it at /// the root of the parent Merk tree because every wallet sync and every /// shield/transfer/spend touches this subtree. pub const SHIELDED_NOTES_KEY: u8 = 128; diff --git a/packages/rs-drive/src/drive/shielded/prove/mod.rs b/packages/rs-drive/src/drive/shielded/prove/mod.rs deleted file mode 100644 index 46c9fc05d26..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -/// Proves nullifiers using a trunk chunk query. -pub mod prove_nullifiers_trunk_query; - -/// Proves nullifiers using a branch chunk query. -pub mod prove_nullifiers_branch_query; - -/// Proves compacted nullifier changes starting from a given block height. -pub mod prove_compacted_nullifier_changes; - -/// Proves recent nullifier changes starting from a given block height. -pub mod prove_recent_nullifier_changes; diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/mod.rs deleted file mode 100644 index 11f1df609f7..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/mod.rs +++ /dev/null @@ -1,48 +0,0 @@ -//! Proves compacted nullifier changes starting from a given block height. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Proves compacted nullifier changes starting from a given block height. - /// - /// # Arguments - /// * `start_block_height` - The block height to start from - /// * `limit` - Optional maximum number of compacted entries to prove - /// * `transaction` - Optional database transaction - /// * `platform_version` - The platform version - /// - /// # Returns - /// A grovedb proof - pub fn prove_compacted_nullifier_changes( - &self, - start_block_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .fetch_nullifiers - { - 0 => self.prove_compacted_nullifier_changes_v0( - start_block_height, - limit, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_compacted_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/v0/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/v0/mod.rs deleted file mode 100644 index 5b3fd7de66f..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_compacted_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,93 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::shielded_compacted_nullifiers_path_vec; -use crate::drive::Drive; -use crate::error::Error; -use dpp::ProtocolError; -use grovedb::query_result_type::QueryResultType; -use grovedb::{PathQuery, Query, SizedQuery, TransactionArg}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation for proving compacted nullifier changes. - /// - /// Uses a two-step approach: - /// 1. First query (non-proving): descending to find any range containing start_block_height - /// 2. Second query (proving): ascending from the found start_block or start_block_height - /// - /// This ensures the proof covers all relevant ranges efficiently. - pub(super) fn prove_compacted_nullifier_changes_v0( - &self, - start_block_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let path = shielded_compacted_nullifiers_path_vec(); - - // Step 1: Non-proving descending query to find any range containing start_block_height - let mut desc_end_key = Vec::with_capacity(16); - desc_end_key.extend_from_slice(&start_block_height.to_be_bytes()); - desc_end_key.extend_from_slice(&u64::MAX.to_be_bytes()); - - let mut desc_query = Query::new_with_direction(false); // descending - desc_query.insert_range_to_inclusive(..=desc_end_key); - - let desc_path_query = - PathQuery::new(path.clone(), SizedQuery::new(desc_query, Some(1), None)); - - let (desc_results, _) = self.grove_get_path_query( - &desc_path_query, - transaction, - QueryResultType::QueryKeyElementPairResultType, - &mut vec![], - &platform_version.drive, - )?; - - // Determine the actual start key for the proved query - // If we found a containing range, use its exact key - // Otherwise use (start_block_height, start_block_height) since end_block >= start_block always - let start_key = if let Some((key, _)) = desc_results.to_key_elements().into_iter().next() { - if key.len() == 16 { - let end_block = u64::from_be_bytes(key[8..16].try_into().map_err(|_| { - Error::Protocol(Box::new(ProtocolError::CorruptedSerialization( - "invalid compacted key slice".to_string(), - ))) - })?); - // If this range contains start_block_height, use its exact key - if end_block >= start_block_height { - key - } else { - // No containing range, use (start_block_height, start_block_height) - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key - } - } else { - return Err(Error::Protocol(Box::new( - ProtocolError::CorruptedSerialization( - "invalid compacted block key length, expected 16 bytes".to_string(), - ), - ))); - } - } else { - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key - }; - - // Step 2: Proved ascending query from start_key - - let mut query = Query::new(); - query.insert_range_from(start_key..); - - let path_query = PathQuery::new(path, SizedQuery::new(query, limit, None)); - - self.grove_get_proved_path_query( - &path_query, - transaction, - &mut vec![], - &platform_version.drive, - ) - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/mod.rs deleted file mode 100644 index 4e18c88646c..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/mod.rs +++ /dev/null @@ -1,94 +0,0 @@ -//! Proves nullifiers using a branch chunk query. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::fees::op::LowLevelDriveOperation; -use dpp::prelude::BlockHeight; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Proves nullifiers using a branch chunk query. - /// - /// This function generates a branch chunk proof for navigating deeper into - /// the nullifiers tree after an initial trunk query. - /// - /// # Parameters - /// - `pool_type`: The shielded pool type (0 = credit, 1 = main token, 2 = individual token). - /// - `pool_identifier`: Optional 32-byte identifier for individual token pools (pool_type=2). - /// - `key`: The key to navigate to in the nullifiers tree before extracting the branch. - /// - `depth`: The depth of the branch to return from the key. - /// - `checkpoint_height`: Block height of the checkpoint to use for consistency. - /// - `platform_version`: The version of the platform that determines the correct method version. - /// - /// # Returns - /// - `Ok(Vec)`: The serialized proof bytes. - /// - `Err(Error)`: If an error occurs during the proof generation. - pub fn prove_nullifiers_branch_query( - &self, - pool_type: u32, - pool_identifier: Option>, - key: Vec, - depth: u8, - checkpoint_height: BlockHeight, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .shielded - .prove_nullifiers_branch_query - { - 0 => self.prove_nullifiers_branch_query_v0( - pool_type, - pool_identifier, - key, - depth, - checkpoint_height, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_nullifiers_branch_query".to_string(), - known_versions: vec![0], - received: version, - })), - } - } - - /// Proves nullifiers using a branch chunk query and tracks operations. - #[allow(clippy::too_many_arguments)] - pub fn prove_nullifiers_branch_query_operations( - &self, - pool_type: u32, - pool_identifier: Option>, - key: Vec, - depth: u8, - checkpoint_height: BlockHeight, - drive_operations: &mut Vec, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .shielded - .prove_nullifiers_branch_query - { - 0 => self.prove_nullifiers_branch_query_operations_v0( - pool_type, - pool_identifier, - key, - depth, - checkpoint_height, - drive_operations, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_nullifiers_branch_query_operations".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/v0/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/v0/mod.rs deleted file mode 100644 index 29ae94b3beb..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_branch_query/v0/mod.rs +++ /dev/null @@ -1,71 +0,0 @@ -use crate::drive::shielded::paths::nullifiers_path_for_pool; -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::fees::op::LowLevelDriveOperation; -use crate::util::grove_operations::GroveDBToUse; -use dpp::prelude::BlockHeight; -use dpp::version::PlatformVersion; -use grovedb::PathBranchChunkQuery; - -impl Drive { - pub(super) fn prove_nullifiers_branch_query_v0( - &self, - pool_type: u32, - pool_identifier: Option>, - key: Vec, - depth: u8, - checkpoint_height: BlockHeight, - platform_version: &PlatformVersion, - ) -> Result, Error> { - self.prove_nullifiers_branch_query_operations_v0( - pool_type, - pool_identifier, - key, - depth, - checkpoint_height, - &mut vec![], - platform_version, - ) - } - - #[allow(clippy::too_many_arguments)] - pub(super) fn prove_nullifiers_branch_query_operations_v0( - &self, - pool_type: u32, - pool_identifier: Option>, - key: Vec, - depth: u8, - checkpoint_height: BlockHeight, - drive_operations: &mut Vec, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let min_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_min_depth; - let max_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_max_depth; - - if depth < min_depth || depth > max_depth { - return Err(Error::Drive(DriveError::InvalidInput(format!( - "depth {} is outside the allowed range [{}, {}]", - depth, min_depth, max_depth - )))); - } - - let path = nullifiers_path_for_pool(pool_type, pool_identifier.as_deref())?; - let query = PathBranchChunkQuery { path, key, depth }; - - self.grove_get_proved_branch_chunk_query( - &query, - GroveDBToUse::Checkpoint(checkpoint_height), - drive_operations, - &platform_version.drive, - ) - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/mod.rs deleted file mode 100644 index bc0eff645d9..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/mod.rs +++ /dev/null @@ -1,74 +0,0 @@ -//! Proves nullifiers using a trunk chunk query. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::fees::op::LowLevelDriveOperation; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Proves nullifiers using a trunk chunk query. - /// - /// This function generates a trunk chunk proof for the nullifiers tree of a shielded pool, - /// useful for retrieving the initial structure of the tree up to the configured depth. - /// - /// # Parameters - /// - `pool_type`: The shielded pool type (0 = credit, 1 = main token, 2 = individual token). - /// - `pool_identifier`: Optional 32-byte identifier for individual token pools (pool_type=2). - /// - `platform_version`: The version of the platform that determines the correct method version - /// and the trunk query depth. - /// - /// # Returns - /// - `Ok(Vec)`: The serialized proof bytes. - /// - `Err(Error)`: If an error occurs during the proof generation. - pub fn prove_nullifiers_trunk_query( - &self, - pool_type: u32, - pool_identifier: Option>, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .shielded - .prove_nullifiers_trunk_query - { - 0 => self.prove_nullifiers_trunk_query_v0(pool_type, pool_identifier, platform_version), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_nullifiers_trunk_query".to_string(), - known_versions: vec![0], - received: version, - })), - } - } - - /// Proves nullifiers using a trunk chunk query and tracks operations. - pub fn prove_nullifiers_trunk_query_operations( - &self, - pool_type: u32, - pool_identifier: Option>, - drive_operations: &mut Vec, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .shielded - .prove_nullifiers_trunk_query - { - 0 => self.prove_nullifiers_trunk_query_operations_v0( - pool_type, - pool_identifier, - drive_operations, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_nullifiers_trunk_query_operations".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/v0/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/v0/mod.rs deleted file mode 100644 index 0b632a78a10..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_nullifiers_trunk_query/v0/mod.rs +++ /dev/null @@ -1,56 +0,0 @@ -use crate::drive::shielded::paths::nullifiers_path_for_pool; -use crate::drive::Drive; -use crate::error::Error; -use crate::fees::op::LowLevelDriveOperation; -use crate::util::grove_operations::GroveDBToUse; -use dpp::version::PlatformVersion; -use grovedb::PathTrunkChunkQuery; - -impl Drive { - pub(super) fn prove_nullifiers_trunk_query_v0( - &self, - pool_type: u32, - pool_identifier: Option>, - platform_version: &PlatformVersion, - ) -> Result, Error> { - self.prove_nullifiers_trunk_query_operations_v0( - pool_type, - pool_identifier, - &mut vec![], - platform_version, - ) - } - - pub(super) fn prove_nullifiers_trunk_query_operations_v0( - &self, - pool_type: u32, - pool_identifier: Option>, - drive_operations: &mut Vec, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let path = nullifiers_path_for_pool(pool_type, pool_identifier.as_deref())?; - let min_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_min_depth; - let max_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_max_depth; - - let query = PathTrunkChunkQuery { - path, - min_depth: Some(min_depth), - max_depth, - }; - - self.grove_get_proved_trunk_chunk_query( - &query, - GroveDBToUse::LatestCheckpoint, - drive_operations, - &platform_version.drive, - ) - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/mod.rs deleted file mode 100644 index 1b91ef3f9aa..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/mod.rs +++ /dev/null @@ -1,48 +0,0 @@ -//! Proves recent nullifier changes starting from a given block height. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::TransactionArg; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Proves recent nullifier changes starting from a given block height. - /// - /// # Arguments - /// * `start_height` - The block height to start from - /// * `limit` - Optional maximum number of blocks to prove - /// * `transaction` - Optional database transaction - /// * `platform_version` - The platform version - /// - /// # Returns - /// A grovedb proof - pub fn prove_recent_nullifier_changes( - &self, - start_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - match platform_version - .drive - .methods - .saved_block_transactions - .fetch_nullifiers - { - 0 => self.prove_recent_nullifier_changes_v0( - start_height, - limit, - transaction, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "prove_recent_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} diff --git a/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/v0/mod.rs b/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/v0/mod.rs deleted file mode 100644 index 750e1452668..00000000000 --- a/packages/rs-drive/src/drive/shielded/prove/prove_recent_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,31 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::shielded_recent_nullifiers_path_vec; -use crate::drive::Drive; -use crate::error::Error; -use grovedb::{PathQuery, Query, SizedQuery, TransactionArg}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Version 0 implementation for proving nullifier changes from a start height. - pub(super) fn prove_recent_nullifier_changes_v0( - &self, - start_height: u64, - limit: Option, - transaction: TransactionArg, - platform_version: &PlatformVersion, - ) -> Result, Error> { - let path = shielded_recent_nullifiers_path_vec(); - - // Create a range query starting from the specified height - let mut query = Query::new(); - query.insert_range_from(start_height.to_be_bytes().to_vec()..); - - let path_query = PathQuery::new(path, SizedQuery::new(query, limit, None)); - - self.grove_get_proved_path_query( - &path_query, - transaction, - &mut vec![], - &platform_version.drive, - ) - } -} diff --git a/packages/rs-drive/src/util/batch/drive_op_batch/shielded.rs b/packages/rs-drive/src/util/batch/drive_op_batch/shielded.rs index 758abc046e8..f384319727d 100644 --- a/packages/rs-drive/src/util/batch/drive_op_batch/shielded.rs +++ b/packages/rs-drive/src/util/batch/drive_op_batch/shielded.rs @@ -25,8 +25,7 @@ pub enum ShieldedPoolOperationType { /// The encrypted note payload (216 bytes) encrypted_note: Vec, }, - /// Insert nullifiers into the permanent tree (double-spend prevention) and - /// per-block sync storage (catch-up RPCs). + /// Insert nullifiers into the permanent tree (double-spend prevention). InsertNullifiers { /// The 32-byte nullifiers to insert nullifiers: Vec<[u8; 32]>, @@ -45,8 +44,8 @@ impl DriveLowLevelOperationConverter for ShieldedPoolOperationType { estimated_costs_only_with_layer_info: &mut Option< HashMap, >, - block_info: &BlockInfo, - transaction: TransactionArg, + _block_info: &BlockInfo, + _transaction: TransactionArg, platform_version: &PlatformVersion, ) -> Result, Error> { if let Some(ref mut estimated_costs) = estimated_costs_only_with_layer_info { @@ -60,13 +59,9 @@ impl DriveLowLevelOperationConverter for ShieldedPoolOperationType { cv_net, encrypted_note, } => Drive::insert_note_op(nullifier, cmx, cv_net, encrypted_note, platform_version), - ShieldedPoolOperationType::InsertNullifiers { nullifiers } => drive.insert_nullifiers( - &nullifiers, - block_info.height, - block_info.time_ms, - transaction, - platform_version, - ), + ShieldedPoolOperationType::InsertNullifiers { nullifiers } => { + drive.insert_nullifiers(&nullifiers, platform_version) + } ShieldedPoolOperationType::UpdateTotalBalance { new_total_balance } => { Drive::update_total_balance_op(new_total_balance, platform_version) } diff --git a/packages/rs-drive/src/verify/shielded/mod.rs b/packages/rs-drive/src/verify/shielded/mod.rs index 96ec0f9cb23..c5aa883881a 100644 --- a/packages/rs-drive/src/verify/shielded/mod.rs +++ b/packages/rs-drive/src/verify/shielded/mod.rs @@ -1,13 +1,5 @@ -/// Module for verifying compacted nullifier changes -pub mod verify_compacted_nullifier_changes; /// Module for verifying the most recent shielded anchor pub mod verify_most_recent_shielded_anchor; -/// Module for verifying nullifiers branch chunk queries -pub mod verify_nullifiers_branch_query; -/// Module for verifying nullifiers trunk chunk queries -pub mod verify_nullifiers_trunk_query; -/// Module for verifying recent nullifier changes -pub mod verify_recent_nullifier_changes; /// Module for verifying shielded anchors pub mod verify_shielded_anchors; /// Module for verifying shielded encrypted notes diff --git a/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/mod.rs b/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/mod.rs deleted file mode 100644 index 286d1bd4a40..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/mod.rs +++ /dev/null @@ -1,66 +0,0 @@ -mod v0; - -use crate::drive::shielded::nullifiers::types::CompactedNullifierChange; -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::verify::RootHash; -use dpp::version::PlatformVersion; - -impl Drive { - /// Verifies the proof of compacted nullifier changes starting from a given block height. - pub fn verify_compacted_nullifier_changes( - proof: &[u8], - start_block_height: u64, - limit: Option, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, Vec), Error> { - match platform_version - .drive - .methods - .verify - .shielded - .verify_compacted_nullifier_changes - { - 0 => Self::verify_compacted_nullifier_changes_v0( - proof, - start_block_height, - limit, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "verify_compacted_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use dpp::version::PlatformVersion; - - #[test] - fn test_verify_compacted_nullifier_changes_unknown_version_mismatch() { - let mut platform_version = PlatformVersion::latest().clone(); - platform_version - .drive - .methods - .verify - .shielded - .verify_compacted_nullifier_changes = 255; - - let result = Drive::verify_compacted_nullifier_changes(&[], 0, None, &platform_version); - - assert!( - matches!( - &result, - Err(Error::Drive(DriveError::UnknownVersionMismatch { .. })) - ), - "expected UnknownVersionMismatch, got is_err={}", - result.is_err(), - ); - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/v0/mod.rs b/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/v0/mod.rs deleted file mode 100644 index 1bc888258ce..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_compacted_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,283 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::{ - shielded_compacted_nullifiers_path_vec, SHIELDED_COMPACTED_NULLIFIERS_KEY_U8, -}; -use crate::drive::shielded::nullifiers::types::{CompactedNullifierChange, CompactedNullifiers}; -use crate::drive::shielded::paths::MAIN_SHIELDED_CREDIT_POOL_KEY_U8; -use crate::drive::Drive; -use crate::drive::RootTree; -use crate::error::proof::ProofError; -use crate::error::Error; -use crate::verify::RootHash; -use grovedb::operations::proof::{GroveDBProof, ProofBytes}; -use grovedb::{ - GroveDb, MerkProofDecoder, MerkProofNode, MerkProofOp, PathQuery, Query, SizedQuery, -}; -use platform_version::version::PlatformVersion; - -/// Extract KV entries from merk proof bytes using the proper decoder. -#[allow(clippy::type_complexity)] -fn extract_kv_entries_from_merk_proof(merk_proof: &[u8]) -> Result, Vec)>, Error> { - let mut entries = Vec::new(); - - let decoder = MerkProofDecoder::new(merk_proof); - - for op in decoder { - match op { - Ok(MerkProofOp::Push(MerkProofNode::KV(key, value))) - | Ok(MerkProofOp::PushInverted(MerkProofNode::KV(key, value))) => { - entries.push((key, value)); - } - Err(e) => { - tracing::error!(%e, "merk proof decode error"); - return Err(Error::Proof(ProofError::CorruptedProof(format!( - "failed to decode merk proof op: {}", - e - )))); - } - _ => {} - } - } - - Ok(entries) -} - -impl Drive { - /// Verifies compacted nullifier changes proof. - /// - /// This verification works by: - /// 1. Decoding the GroveDBProof structure - /// 2. Navigating to the compacted nullifiers layer ('o') - /// 3. Extracting KV entries from the merk proof - /// 4. Filtering entries where the key range contains start_block_height - /// 5. Verifying the root hash using a subset query - pub(super) fn verify_compacted_nullifier_changes_v0( - proof: &[u8], - start_block_height: u64, - limit: Option, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, Vec), Error> { - // Decode the GroveDBProof to navigate its structure - let grovedb_proof: GroveDBProof = { - let config = bincode::config::standard() - .with_big_endian() - .with_limit::<{ 4 * 1024 * 1024 }>(); - let (proof_data, bytes_read): (GroveDBProof, usize) = - bincode::decode_from_slice(proof, config).map_err(|e| { - Error::Proof(ProofError::CorruptedProof(format!( - "cannot decode GroveDBProof: {}", - e - ))) - })?; - if bytes_read != proof.len() { - return Err(Error::Proof(ProofError::CorruptedProof(format!( - "trailing bytes after GroveDBProof decode: read {} of {}", - bytes_read, - proof.len() - )))); - } - proof_data - }; - - // Navigate to the compacted nullifiers layer - // Path: ShieldedBalances -> MAIN_SHIELDED_CREDIT_POOL_KEY -> CompactedNullifiers ('o') - let shielded_balances_key = vec![RootTree::ShieldedBalances as u8]; - let pool_key = vec![MAIN_SHIELDED_CREDIT_POOL_KEY_U8]; - let compacted_key = vec![SHIELDED_COMPACTED_NULLIFIERS_KEY_U8]; - - // Extract KV entries from the compacted layer's merk proof to find - // if there's a containing range for start_block_height. - // V0 and V1 proofs have different layer types (MerkOnlyLayerProof vs LayerProof), - // so we handle them separately. - let kv_entries = match &grovedb_proof { - GroveDBProof::V0(v0) => { - let compacted_layer = v0 - .root_layer - .lower_layers - .get(&shielded_balances_key) - .and_then(|layer| layer.lower_layers.get(&pool_key)) - .and_then(|layer| layer.lower_layers.get(&compacted_key)); - compacted_layer - .map(|layer| extract_kv_entries_from_merk_proof(&layer.merk_proof)) - .transpose()? - .unwrap_or_default() - } - GroveDBProof::V1(v1) => { - let compacted_layer = v1 - .root_layer - .lower_layers - .get(&shielded_balances_key) - .and_then(|layer| layer.lower_layers.get(&pool_key)) - .and_then(|layer| layer.lower_layers.get(&compacted_key)); - compacted_layer - .map(|layer| match &layer.merk_proof { - ProofBytes::Merk(bytes) => extract_kv_entries_from_merk_proof(bytes), - other => Err(Error::Proof(ProofError::CorruptedProof(format!( - "unsupported V1 proof bytes variant for compacted nullifiers: {:?}", - std::mem::discriminant(other) - )))), - }) - .transpose()? - .unwrap_or_default() - } - }; - - // Look for a KV entry where the range contains start_block_height - // Keys are 16 bytes: (start_block, end_block), both big-endian - let containing_key = kv_entries.iter().find_map(|(key, _)| { - if key.len() != 16 { - return None; - } - // Safety: length verified to be 16 above - let range_start = - u64::from_be_bytes(key[0..8].try_into().expect("len checked to be 16")); - let range_end = - u64::from_be_bytes(key[8..16].try_into().expect("len checked to be 16")); - - // Check if this range contains start_block_height - if range_start <= start_block_height && start_block_height <= range_end { - Some(key.clone()) - } else { - None - } - }); - - // Determine the start_key for the query - // Use the containing range's key if found, otherwise (start_block_height, start_block_height) - let start_key = containing_key.unwrap_or_else(|| { - let mut key = Vec::with_capacity(16); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key.extend_from_slice(&start_block_height.to_be_bytes()); - key - }); - - // Verify the proof and get results using subset query - let path = shielded_compacted_nullifiers_path_vec(); - - let mut query = Query::new(); - query.insert_range_from(start_key..); - - let path_query = PathQuery::new(path, SizedQuery::new(query, limit, None)); - - let (root_hash, proved_key_values) = GroveDb::verify_subset_query( - proof, - &path_query, - &platform_version.drive.grove_version, - )?; - - // Process the verified results - let mut compacted_changes = Vec::new(); - - for (_path, key, maybe_element) in proved_key_values { - let Some(element) = maybe_element else { - continue; - }; - - let (start_block, end_block) = CompactedNullifierChange::parse_key(&key)?; - - // Get the serialized data from the Item element - let grovedb::Element::Item(serialized_data, _) = element else { - return Err(Error::Proof(ProofError::CorruptedProof( - "expected item element for compacted nullifiers".to_string(), - ))); - }; - - let nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - compacted_changes.push(CompactedNullifierChange { - start_block, - end_block, - nullifiers, - }); - } - - Ok((root_hash, compacted_changes)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use platform_version::version::PlatformVersion; - - #[test] - fn should_prove_and_verify_compacted_nullifier_changes_roundtrip() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Store enough blocks of nullifiers to trigger compaction - let max_blocks = platform_version - .drive - .methods - .saved_block_transactions - .max_blocks_before_nullifier_compaction as u64; - - for block_height in 1u64..=(max_blocks + 1) { - let nullifier = [block_height as u8; 32]; - drive - .store_nullifiers_for_block( - &[nullifier], - block_height, - block_height * 1000, - None, - platform_version, - ) - .expect("should store nullifiers"); - } - - // Prove compacted changes from block 1 - let proof = drive - .prove_compacted_nullifier_changes(1, None, None, platform_version) - .expect("should prove compacted nullifier changes"); - - // Verify the proof - let (root_hash, compacted_changes) = - Drive::verify_compacted_nullifier_changes(proof.as_slice(), 1, None, platform_version) - .expect("should verify proof"); - - assert!(!root_hash.is_empty(), "root hash should not be empty"); - // We should have at least one compacted entry - assert!( - !compacted_changes.is_empty(), - "should have at least one compacted entry" - ); - - // All entries should have valid block ranges - for change in &compacted_changes { - assert!( - change.start_block <= change.end_block, - "start should be <= end" - ); - assert!( - !change.nullifiers.is_empty(), - "each entry should have nullifiers" - ); - } - } - - #[test] - fn should_prove_and_verify_empty_compacted_nullifier_changes() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Prove compacted changes from block 100 with no data stored - let proof = drive - .prove_compacted_nullifier_changes(100, None, None, platform_version) - .expect("should prove empty compacted nullifier changes"); - - // Verify the proof - let (root_hash, compacted_changes) = Drive::verify_compacted_nullifier_changes( - proof.as_slice(), - 100, - None, - platform_version, - ) - .expect("should verify proof"); - - assert!(!root_hash.is_empty(), "root hash should not be empty"); - assert!( - compacted_changes.is_empty(), - "should have no compacted entries when no data stored" - ); - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/mod.rs b/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/mod.rs deleted file mode 100644 index c2a6df02128..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/mod.rs +++ /dev/null @@ -1,94 +0,0 @@ -//! Module for verifying nullifiers branch chunk queries. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::GroveBranchQueryResult; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Verifies a branch chunk proof for the nullifiers tree of a shielded pool. - /// - /// # Arguments - /// - `proof`: A byte slice containing the serialized branch chunk proof. - /// - `pool_type`: The shielded pool type (0 = credit, 1 = main token, 2 = individual token). - /// - `pool_identifier`: Optional 32-byte identifier for individual token pools. - /// - `key`: The key that was navigated to in the tree. - /// - `depth`: The depth of the branch that was returned. - /// - `expected_root_hash`: The expected root hash from the parent trunk/branch proof. - /// - `platform_version`: A reference to the platform version. - /// - /// # Returns - /// - `Ok(GroveBranchQueryResult)`: The verified branch query result. - /// - `Err(Error)`: If verification fails. - pub fn verify_nullifiers_branch_query( - proof: &[u8], - pool_type: u32, - pool_identifier: Option<&[u8]>, - key: Vec, - depth: u8, - expected_root_hash: [u8; 32], - platform_version: &PlatformVersion, - ) -> Result { - match platform_version - .drive - .methods - .verify - .shielded - .verify_nullifiers_branch_query - { - 0 => Self::verify_nullifiers_branch_query_v0( - proof, - pool_type, - pool_identifier, - key, - depth, - expected_root_hash, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "verify_nullifiers_branch_query".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use platform_version::version::PlatformVersion; - - #[test] - fn test_verify_nullifiers_branch_query_unknown_version_mismatch() { - let mut platform_version = PlatformVersion::latest().clone(); - platform_version - .drive - .methods - .verify - .shielded - .verify_nullifiers_branch_query = 255; - - let result = Drive::verify_nullifiers_branch_query( - &[], - 0, - None, - vec![], - 0, - [0u8; 32], - &platform_version, - ); - - assert!( - matches!( - result, - Err(Error::Drive(DriveError::UnknownVersionMismatch { .. })) - ), - "expected UnknownVersionMismatch, got {:?}", - result, - ); - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/v0/mod.rs b/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/v0/mod.rs deleted file mode 100644 index 3bf881ce221..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_nullifiers_branch_query/v0/mod.rs +++ /dev/null @@ -1,48 +0,0 @@ -use crate::drive::shielded::paths::nullifiers_path_for_pool; -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use grovedb::{GroveBranchQueryResult, GroveDb, PathBranchChunkQuery}; -use platform_version::version::PlatformVersion; - -impl Drive { - pub(super) fn verify_nullifiers_branch_query_v0( - proof: &[u8], - pool_type: u32, - pool_identifier: Option<&[u8]>, - key: Vec, - depth: u8, - expected_root_hash: [u8; 32], - platform_version: &PlatformVersion, - ) -> Result { - let min_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_min_depth; - let max_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_max_depth; - - if depth < min_depth || depth > max_depth { - return Err(Error::Drive(DriveError::InvalidInput(format!( - "depth {} is outside the allowed range [{}, {}]", - depth, min_depth, max_depth - )))); - } - - let path = nullifiers_path_for_pool(pool_type, pool_identifier)?; - let query = PathBranchChunkQuery { path, key, depth }; - - let result = GroveDb::verify_branch_chunk_proof( - proof, - &query, - expected_root_hash, - &platform_version.drive.grove_version, - )?; - - Ok(result) - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/mod.rs b/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/mod.rs deleted file mode 100644 index 0cdda2863bf..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/mod.rs +++ /dev/null @@ -1,78 +0,0 @@ -//! Module for verifying nullifiers trunk chunk queries. - -mod v0; - -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::verify::RootHash; -use grovedb::GroveTrunkQueryResult; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Verifies a trunk chunk proof for the nullifiers tree of a shielded pool. - /// - /// # Arguments - /// - `proof`: A byte slice containing the serialized trunk chunk proof. - /// - `pool_type`: The shielded pool type (0 = credit, 1 = main token, 2 = individual token). - /// - `pool_identifier`: Optional 32-byte identifier for individual token pools. - /// - `platform_version`: A reference to the platform version. - /// - /// # Returns - /// - `Ok((RootHash, GroveTrunkQueryResult))`: The root hash and verified trunk result. - /// - `Err(Error)`: If verification fails. - pub fn verify_nullifiers_trunk_query( - proof: &[u8], - pool_type: u32, - pool_identifier: Option<&[u8]>, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, GroveTrunkQueryResult), Error> { - match platform_version - .drive - .methods - .verify - .shielded - .verify_nullifiers_trunk_query - { - 0 => Self::verify_nullifiers_trunk_query_v0( - proof, - pool_type, - pool_identifier, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "verify_nullifiers_trunk_query".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use platform_version::version::PlatformVersion; - - #[test] - fn test_verify_nullifiers_trunk_query_unknown_version_mismatch() { - let mut platform_version = PlatformVersion::latest().clone(); - platform_version - .drive - .methods - .verify - .shielded - .verify_nullifiers_trunk_query = 255; - - let result = Drive::verify_nullifiers_trunk_query(&[], 0, None, &platform_version); - - assert!( - matches!( - result, - Err(Error::Drive(DriveError::UnknownVersionMismatch { .. })) - ), - "expected UnknownVersionMismatch, got {:?}", - result, - ); - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/v0/mod.rs b/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/v0/mod.rs deleted file mode 100644 index d25d8752d32..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_nullifiers_trunk_query/v0/mod.rs +++ /dev/null @@ -1,41 +0,0 @@ -use crate::drive::shielded::paths::nullifiers_path_for_pool; -use crate::drive::Drive; -use crate::error::Error; -use crate::verify::RootHash; -use grovedb::{GroveDb, GroveTrunkQueryResult, PathTrunkChunkQuery}; -use platform_version::version::PlatformVersion; - -impl Drive { - pub(super) fn verify_nullifiers_trunk_query_v0( - proof: &[u8], - pool_type: u32, - pool_identifier: Option<&[u8]>, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, GroveTrunkQueryResult), Error> { - let path = nullifiers_path_for_pool(pool_type, pool_identifier)?; - let min_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_min_depth; - let max_depth = platform_version - .drive - .methods - .shielded - .nullifiers_query_max_depth; - - let query = PathTrunkChunkQuery { - path, - min_depth: Some(min_depth), - max_depth, - }; - - let (root_hash, result) = GroveDb::verify_trunk_chunk_proof( - proof, - &query, - &platform_version.drive.grove_version, - )?; - - Ok((root_hash, result)) - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/mod.rs b/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/mod.rs deleted file mode 100644 index 933327c1712..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/mod.rs +++ /dev/null @@ -1,68 +0,0 @@ -mod v0; - -use crate::drive::shielded::nullifiers::types::NullifierChangePerBlock; -use crate::drive::Drive; -use crate::error::drive::DriveError; -use crate::error::Error; -use crate::verify::RootHash; -use dpp::version::PlatformVersion; - -impl Drive { - /// Verifies the proof of recent nullifier changes starting from a given block height. - pub fn verify_recent_nullifier_changes( - proof: &[u8], - start_block_height: u64, - limit: Option, - verify_subset_of_proof: bool, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, Vec), Error> { - match platform_version - .drive - .methods - .verify - .shielded - .verify_recent_nullifier_changes - { - 0 => Self::verify_recent_nullifier_changes_v0( - proof, - start_block_height, - limit, - verify_subset_of_proof, - platform_version, - ), - version => Err(Error::Drive(DriveError::UnknownVersionMismatch { - method: "verify_recent_nullifier_changes".to_string(), - known_versions: vec![0], - received: version, - })), - } - } -} - -#[cfg(test)] -mod tests { - use super::*; - use dpp::version::PlatformVersion; - - #[test] - fn test_verify_recent_nullifier_changes_unknown_version_mismatch() { - let mut platform_version = PlatformVersion::latest().clone(); - platform_version - .drive - .methods - .verify - .shielded - .verify_recent_nullifier_changes = 255; - - let result = Drive::verify_recent_nullifier_changes(&[], 0, None, false, &platform_version); - - assert!( - matches!( - &result, - Err(Error::Drive(DriveError::UnknownVersionMismatch { .. })) - ), - "expected UnknownVersionMismatch, got is_err={}", - result.is_err(), - ); - } -} diff --git a/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/v0/mod.rs b/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/v0/mod.rs deleted file mode 100644 index 05597134210..00000000000 --- a/packages/rs-drive/src/verify/shielded/verify_recent_nullifier_changes/v0/mod.rs +++ /dev/null @@ -1,194 +0,0 @@ -use crate::drive::shielded::nullifiers::queries::shielded_recent_nullifiers_path_vec; -use crate::drive::shielded::nullifiers::types::{CompactedNullifiers, NullifierChangePerBlock}; -use crate::drive::Drive; -use crate::error::proof::ProofError; -use crate::error::Error; -use crate::verify::RootHash; -use grovedb::{Element, GroveDb, PathQuery, Query, SizedQuery}; -use platform_version::version::PlatformVersion; - -impl Drive { - /// Verifies recent nullifier changes proof. - /// - /// Uses the same query as the prove function: a simple range query - /// starting from start_block_height. - pub(super) fn verify_recent_nullifier_changes_v0( - proof: &[u8], - start_block_height: u64, - limit: Option, - verify_subset_of_proof: bool, - platform_version: &PlatformVersion, - ) -> Result<(RootHash, Vec), Error> { - let path = shielded_recent_nullifiers_path_vec(); - - // Create the same range query as the prove function - let mut query = Query::new(); - query.insert_range_from(start_block_height.to_be_bytes().to_vec()..); - - let path_query = PathQuery::new(path, SizedQuery::new(query, limit, None)); - - let (root_hash, proved_key_values) = if verify_subset_of_proof { - GroveDb::verify_subset_query(proof, &path_query, &platform_version.drive.grove_version)? - } else { - GroveDb::verify_query(proof, &path_query, &platform_version.drive.grove_version)? - }; - - let mut nullifier_changes = Vec::new(); - - for (_path, key, maybe_element) in proved_key_values { - let Some(element) = maybe_element else { - continue; - }; - - // Parse block height from key (8 bytes, big-endian) - let height_bytes: [u8; 8] = key.try_into().map_err(|_| { - Error::Proof(ProofError::CorruptedProof( - "invalid block height key length".to_string(), - )) - })?; - let block_height = u64::from_be_bytes(height_bytes); - - // Get the serialized data from the ItemWithSumItem element - let Element::ItemWithSumItem(serialized_data, _, _) = element else { - return Err(Error::Proof(ProofError::CorruptedProof( - "expected item with sum item element for nullifiers".to_string(), - ))); - }; - - // Deserialize the nullifier list - let nullifiers = CompactedNullifiers::decode(&serialized_data)?; - - nullifier_changes.push(NullifierChangePerBlock { - block_height, - nullifiers, - }); - } - - Ok((root_hash, nullifier_changes)) - } -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::util::test_helpers::setup::setup_drive_with_initial_state_structure; - use platform_version::version::PlatformVersion; - - #[test] - fn should_prove_and_verify_recent_nullifier_changes() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - let nullifier_1 = [1u8; 32]; - let nullifier_2 = [2u8; 32]; - let nullifier_3 = [3u8; 32]; - - // Store nullifiers for block 100 - drive - .store_nullifiers_for_block( - &[nullifier_1, nullifier_2], - 100, - 100_000, - None, - platform_version, - ) - .expect("should store nullifiers for block 100"); - - // Store nullifiers for block 101 - drive - .store_nullifiers_for_block(&[nullifier_3], 101, 101_000, None, platform_version) - .expect("should store nullifiers for block 101"); - - // Prove from block 100 - let proof = drive - .prove_recent_nullifier_changes(100, None, None, platform_version) - .expect("should prove recent nullifier changes"); - - // Verify - let (root_hash, changes) = Drive::verify_recent_nullifier_changes( - proof.as_slice(), - 100, - None, - false, - platform_version, - ) - .expect("should verify proof"); - - assert!(!root_hash.is_empty(), "root hash should not be empty"); - assert_eq!(changes.len(), 2, "should have 2 blocks of changes"); - - assert_eq!(changes[0].block_height, 100); - assert_eq!(changes[0].nullifiers.len(), 2); - - assert_eq!(changes[1].block_height, 101); - assert_eq!(changes[1].nullifiers.len(), 1); - } - - #[test] - fn should_prove_and_verify_empty_recent_nullifier_changes() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Prove from block 100 with no data stored - let proof = drive - .prove_recent_nullifier_changes(100, None, None, platform_version) - .expect("should prove empty recent nullifier changes"); - - // Verify - let (root_hash, changes) = Drive::verify_recent_nullifier_changes( - proof.as_slice(), - 100, - None, - false, - platform_version, - ) - .expect("should verify proof"); - - assert!(!root_hash.is_empty(), "root hash should not be empty"); - assert!(changes.is_empty(), "should have no changes"); - } - - #[test] - fn should_prove_and_verify_recent_nullifier_changes_with_limit() { - let drive = setup_drive_with_initial_state_structure(None); - let platform_version = PlatformVersion::latest(); - - // Store 3 blocks of nullifiers - for block_height in 100u64..103 { - let nullifier = [block_height as u8; 32]; - drive - .store_nullifiers_for_block( - &[nullifier], - block_height, - block_height * 1000, - None, - platform_version, - ) - .expect("should store nullifiers"); - } - - // Prove from block 100 with limit 2 - let proof = drive - .prove_recent_nullifier_changes(100, Some(2), None, platform_version) - .expect("should prove with limit"); - - // Verify - let (root_hash, changes) = Drive::verify_recent_nullifier_changes( - proof.as_slice(), - 100, - Some(2), - false, - platform_version, - ) - .expect("should verify proof"); - - assert!(!root_hash.is_empty(), "root hash should not be empty"); - assert_eq!( - changes.len(), - 2, - "should have 2 blocks of changes (limited)" - ); - assert_eq!(changes[0].block_height, 100); - assert_eq!(changes[1].block_height, 101); - } -} diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/mod.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/mod.rs index 6714e44e35b..6255f4610f2 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/mod.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/mod.rs @@ -180,6 +180,4 @@ pub struct DriveAbciStateTransitionProcessingMethodVersions { pub validate_fees_of_event: FeatureVersion, pub store_address_balances_to_recent_block_storage: OptionalFeatureVersion, pub cleanup_recent_block_storage_address_balances: OptionalFeatureVersion, - pub store_nullifiers_to_recent_block_storage: OptionalFeatureVersion, - pub cleanup_recent_block_storage_nullifiers: OptionalFeatureVersion, } diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v1.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v1.rs index c23a4c3a972..7f8c9d6716d 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v1.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v1.rs @@ -107,8 +107,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V1: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v2.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v2.rs index 55d480292c2..f888a082728 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v2.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v2.rs @@ -108,8 +108,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V2: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v3.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v3.rs index c4d0ffa15e5..e62d6fdf292 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v3.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v3.rs @@ -107,8 +107,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V3: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v4.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v4.rs index bafa86a8534..97a56422e76 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v4.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v4.rs @@ -107,8 +107,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V4: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v5.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v5.rs index 778c6445530..321553aa6c8 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v5.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v5.rs @@ -111,8 +111,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V5: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v6.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v6.rs index de942d605ca..e2920929a13 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v6.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v6.rs @@ -109,8 +109,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V6: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v7.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v7.rs index 186328417d1..080982ba6e0 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v7.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v7.rs @@ -14,9 +14,7 @@ use crate::version::drive_abci_versions::drive_abci_method_versions::{ // Introduced in Protocol version 11 (3.0.0) for checkpoints. // -// The four shielded-pool block-processing methods -// (`store_nullifiers_to_recent_block_storage`, -// `cleanup_recent_block_storage_nullifiers`, `record_shielded_pool_anchor`, +// The shielded-pool block-processing methods (`record_shielded_pool_anchor`, // `prune_shielded_pool_anchors`) are deliberately `None` here: they read the // shielded credit pool subtree `[ShieldedBalances (52), "M"]`, which is only // created from protocol v12 onward. Activating them on a v11 state opens a @@ -118,10 +116,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V7: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: Some(0), // changed cleanup_recent_block_storage_address_balances: Some(0), // cleanup enabled when store is enabled - // Shielded-pool methods gated to v12 (DRIVE_ABCI_METHOD_VERSIONS_V8); the - // `[52, "M"]` subtree they touch does not exist on v11. - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v8.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v8.rs index 94e63cf5395..a33f3f2bedb 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v8.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_method_versions/v8.rs @@ -118,8 +118,6 @@ pub const DRIVE_ABCI_METHOD_VERSIONS_V8: DriveAbciMethodVersions = DriveAbciMeth validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: Some(0), cleanup_recent_block_storage_address_balances: Some(0), - store_nullifiers_to_recent_block_storage: Some(0), - cleanup_recent_block_storage_nullifiers: Some(0), }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/mod.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/mod.rs index 40811c22792..27d9e905f8a 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/mod.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/mod.rs @@ -120,10 +120,6 @@ pub struct DriveAbciQueryShieldedVersions { pub pool_state: FeatureVersionBounds, pub notes_count: FeatureVersionBounds, pub nullifiers: FeatureVersionBounds, - pub nullifiers_trunk_state: FeatureVersionBounds, - pub nullifiers_branch_state: FeatureVersionBounds, - pub recent_nullifier_changes: FeatureVersionBounds, - pub recent_compacted_nullifier_changes: FeatureVersionBounds, /// Maximum number of MMR chunks a single `getShieldedEncryptedNotes` /// query may span. /// diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v0.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v0.rs index fb54e7e9da5..de3b1cccfd1 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v0.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v0.rs @@ -292,26 +292,6 @@ pub const DRIVE_ABCI_QUERY_VERSIONS_V0: DriveAbciQueryVersions = DriveAbciQueryV max_version: 0, default_current_version: 0, }, - nullifiers_trunk_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - nullifiers_branch_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_compacted_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, max_query_chunks: 1, }, address_funds_queries: DriveAbciQueryAddressFundsVersions { diff --git a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v1.rs b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v1.rs index fb826c7093c..31ea6e4b7da 100644 --- a/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v1.rs +++ b/packages/rs-platform-version/src/version/drive_abci_versions/drive_abci_query_versions/v1.rs @@ -294,26 +294,6 @@ pub const DRIVE_ABCI_QUERY_VERSIONS_V1: DriveAbciQueryVersions = DriveAbciQueryV max_version: 0, default_current_version: 0, }, - nullifiers_trunk_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - nullifiers_branch_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_compacted_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, max_query_chunks: 4, }, address_funds_queries: DriveAbciQueryAddressFundsVersions { diff --git a/packages/rs-platform-version/src/version/drive_versions/drive_group_method_versions/mod.rs b/packages/rs-platform-version/src/version/drive_versions/drive_group_method_versions/mod.rs index c249f2981ea..5494feaba84 100644 --- a/packages/rs-platform-version/src/version/drive_versions/drive_group_method_versions/mod.rs +++ b/packages/rs-platform-version/src/version/drive_versions/drive_group_method_versions/mod.rs @@ -75,8 +75,4 @@ pub struct DriveShieldedMethodVersions { pub has_nullifier: FeatureVersion, pub read_total_balance: FeatureVersion, pub notes_count: FeatureVersion, - pub prove_nullifiers_trunk_query: FeatureVersion, - pub prove_nullifiers_branch_query: FeatureVersion, - pub nullifiers_query_min_depth: u8, - pub nullifiers_query_max_depth: u8, } diff --git a/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/mod.rs b/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/mod.rs index d3706fe728b..7de1dac8708 100644 --- a/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/mod.rs +++ b/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/mod.rs @@ -27,10 +27,6 @@ pub struct DriveVerifyShieldedMethodVersions { pub verify_shielded_encrypted_notes: FeatureVersion, pub verify_shielded_notes_count: FeatureVersion, pub verify_shielded_nullifiers: FeatureVersion, - pub verify_nullifiers_trunk_query: FeatureVersion, - pub verify_nullifiers_branch_query: FeatureVersion, - pub verify_recent_nullifier_changes: FeatureVersion, - pub verify_compacted_nullifier_changes: FeatureVersion, } #[derive(Clone, Debug, Default)] diff --git a/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/v1.rs b/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/v1.rs index 2581e083b5a..7261da1950c 100644 --- a/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/v1.rs +++ b/packages/rs-platform-version/src/version/drive_versions/drive_verify_method_versions/v1.rs @@ -119,9 +119,5 @@ pub const DRIVE_VERIFY_METHOD_VERSIONS_V1: DriveVerifyMethodVersions = DriveVeri verify_shielded_encrypted_notes: 0, verify_shielded_notes_count: 0, verify_shielded_nullifiers: 0, - verify_nullifiers_trunk_query: 0, - verify_nullifiers_branch_query: 0, - verify_recent_nullifier_changes: 0, - verify_compacted_nullifier_changes: 0, }, }; diff --git a/packages/rs-platform-version/src/version/drive_versions/mod.rs b/packages/rs-platform-version/src/version/drive_versions/mod.rs index 8ca5a2e18ea..3cfe39abc43 100644 --- a/packages/rs-platform-version/src/version/drive_versions/mod.rs +++ b/packages/rs-platform-version/src/version/drive_versions/mod.rs @@ -88,14 +88,6 @@ pub struct DriveSavedBlockTransactionsMethodVersions { pub max_blocks_before_compaction: u16, /// Maximum number of address balance entries before compaction is triggered pub max_addresses_before_compaction: u32, - pub store_nullifiers: FeatureVersion, - pub fetch_nullifiers: FeatureVersion, - pub compact_nullifiers: FeatureVersion, - pub cleanup_expired_nullifier_compactions: FeatureVersion, - /// Maximum number of blocks to store before nullifier compaction is triggered - pub max_blocks_before_nullifier_compaction: u16, - /// Maximum number of nullifier entries before compaction is triggered - pub max_nullifiers_before_compaction: u32, } #[derive(Clone, Debug, Default)] diff --git a/packages/rs-platform-version/src/version/drive_versions/v1.rs b/packages/rs-platform-version/src/version/drive_versions/v1.rs index 34a7e59a03d..04247776205 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v1.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v1.rs @@ -114,10 +114,6 @@ pub const DRIVE_VERSION_V1: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -126,12 +122,6 @@ pub const DRIVE_VERSION_V1: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v2.rs b/packages/rs-platform-version/src/version/drive_versions/v2.rs index 966b72fc36a..162b5af4c56 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v2.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v2.rs @@ -114,10 +114,6 @@ pub const DRIVE_VERSION_V2: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -126,12 +122,6 @@ pub const DRIVE_VERSION_V2: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v3.rs b/packages/rs-platform-version/src/version/drive_versions/v3.rs index 6370819f99a..738b86e7750 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v3.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v3.rs @@ -114,10 +114,6 @@ pub const DRIVE_VERSION_V3: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -126,12 +122,6 @@ pub const DRIVE_VERSION_V3: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v4.rs b/packages/rs-platform-version/src/version/drive_versions/v4.rs index 6834ab8ddd9..7a7aed7e23c 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v4.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v4.rs @@ -114,10 +114,6 @@ pub const DRIVE_VERSION_V4: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -126,12 +122,6 @@ pub const DRIVE_VERSION_V4: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v5.rs b/packages/rs-platform-version/src/version/drive_versions/v5.rs index 1acc326096e..44a6098c86b 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v5.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v5.rs @@ -116,10 +116,6 @@ pub const DRIVE_VERSION_V5: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -128,12 +124,6 @@ pub const DRIVE_VERSION_V5: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v6.rs b/packages/rs-platform-version/src/version/drive_versions/v6.rs index c74386d5d62..bd44f1b6ec4 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v6.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v6.rs @@ -118,10 +118,6 @@ pub const DRIVE_VERSION_V6: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -130,12 +126,6 @@ pub const DRIVE_VERSION_V6: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/drive_versions/v7.rs b/packages/rs-platform-version/src/version/drive_versions/v7.rs index 110119f97a9..2f9d8a7cc43 100644 --- a/packages/rs-platform-version/src/version/drive_versions/v7.rs +++ b/packages/rs-platform-version/src/version/drive_versions/v7.rs @@ -116,10 +116,6 @@ pub const DRIVE_VERSION_V7: DriveVersion = DriveVersion { has_nullifier: 0, read_total_balance: 0, notes_count: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, }, saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, @@ -128,12 +124,6 @@ pub const DRIVE_VERSION_V7: DriveVersion = DriveVersion { cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, - store_nullifiers: 0, - fetch_nullifiers: 0, - compact_nullifiers: 0, - cleanup_expired_nullifier_compactions: 0, - max_blocks_before_nullifier_compaction: 64, - max_nullifiers_before_compaction: 2048, }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, diff --git a/packages/rs-platform-version/src/version/mocks/v2_test.rs b/packages/rs-platform-version/src/version/mocks/v2_test.rs index 8428f56d283..5923453f19d 100644 --- a/packages/rs-platform-version/src/version/mocks/v2_test.rs +++ b/packages/rs-platform-version/src/version/mocks/v2_test.rs @@ -146,10 +146,6 @@ pub const TEST_PLATFORM_V2: PlatformVersion = PlatformVersion { insert_note: 0, insert_nullifiers: 0, update_total_balance: 0, - prove_nullifiers_trunk_query: 0, - prove_nullifiers_branch_query: 0, - nullifiers_query_min_depth: 6, - nullifiers_query_max_depth: 10, record_anchor_if_changed: 0, prune_anchors: 0, has_anchor: 0, @@ -157,7 +153,7 @@ pub const TEST_PLATFORM_V2: PlatformVersion = PlatformVersion { read_total_balance: 0, notes_count: 0, }, - saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, fetch_address_balances: 0, compact_address_balances: 0, cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048, store_nullifiers: 0, fetch_nullifiers: 0, compact_nullifiers: 0, cleanup_expired_nullifier_compactions: 0, max_blocks_before_nullifier_compaction: 64, max_nullifiers_before_compaction: 2048 }, + saved_block_transactions: DriveSavedBlockTransactionsMethodVersions { store_address_balances: 0, fetch_address_balances: 0, compact_address_balances: 0, cleanup_expired_address_balances: 0, max_blocks_before_compaction: 64, max_addresses_before_compaction: 2048 }, }, grove_methods: DRIVE_GROVE_METHOD_VERSIONS_V1, grove_version: GROVE_V1, @@ -446,26 +442,6 @@ pub const TEST_PLATFORM_V2: PlatformVersion = PlatformVersion { max_version: 0, default_current_version: 0, }, - nullifiers_trunk_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - nullifiers_branch_state: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, - recent_compacted_nullifier_changes: FeatureVersionBounds { - min_version: 0, - max_version: 0, - default_current_version: 0, - }, max_query_chunks: 1, }, address_funds_queries: DriveAbciQueryAddressFundsVersions { diff --git a/packages/rs-platform-version/src/version/mocks/v3_test.rs b/packages/rs-platform-version/src/version/mocks/v3_test.rs index 6e7318c7126..ed69f63081a 100644 --- a/packages/rs-platform-version/src/version/mocks/v3_test.rs +++ b/packages/rs-platform-version/src/version/mocks/v3_test.rs @@ -142,8 +142,6 @@ pub const TEST_PLATFORM_V3: PlatformVersion = PlatformVersion { validate_fees_of_event: 0, store_address_balances_to_recent_block_storage: None, cleanup_recent_block_storage_address_balances: None, - store_nullifiers_to_recent_block_storage: None, - cleanup_recent_block_storage_nullifiers: None, }, epoch: DriveAbciEpochMethodVersions { gather_epoch_info: 0, diff --git a/packages/rs-platform-version/src/version/protocol_version.rs b/packages/rs-platform-version/src/version/protocol_version.rs index 9bdee70906d..0d3a2651b9b 100644 --- a/packages/rs-platform-version/src/version/protocol_version.rs +++ b/packages/rs-platform-version/src/version/protocol_version.rs @@ -205,7 +205,6 @@ mod shielded_pool_gating_tests { fn shielded_block_processing_methods_inactive_before_v12() { let v11 = PlatformVersion::get(11).expect("protocol version 11 must exist"); let block_end = &v11.drive_abci.methods.block_end; - let st = &v11.drive_abci.methods.state_transition_processing; assert_eq!( block_end.record_shielded_pool_anchor, None, @@ -215,27 +214,16 @@ mod shielded_pool_gating_tests { block_end.prune_shielded_pool_anchors, None, "v11 must NOT prune shielded pool anchors: the [52, \"M\"] subtree does not exist before v12" ); - assert_eq!( - st.store_nullifiers_to_recent_block_storage, None, - "v11 must NOT store shielded nullifiers: the [52, \"M\"] subtree does not exist before v12" - ); - assert_eq!( - st.cleanup_recent_block_storage_nullifiers, None, - "v11 must NOT clean up shielded nullifiers: the [52, \"M\"] subtree does not exist before v12" - ); } #[test] fn shielded_block_processing_methods_active_at_v12() { let v12 = PlatformVersion::get(12).expect("protocol version 12 must exist"); let block_end = &v12.drive_abci.methods.block_end; - let st = &v12.drive_abci.methods.state_transition_processing; // At v12 the shielded pool subtree is created by the upgrade migration, // so the same methods must be active. assert_eq!(block_end.record_shielded_pool_anchor, Some(0)); assert_eq!(block_end.prune_shielded_pool_anchors, Some(0)); - assert_eq!(st.store_nullifiers_to_recent_block_storage, Some(0)); - assert_eq!(st.cleanup_recent_block_storage_nullifiers, Some(0)); } } diff --git a/packages/rs-sdk/src/sdk.rs b/packages/rs-sdk/src/sdk.rs index adf7c7d2e68..2100e7ea75c 100644 --- a/packages/rs-sdk/src/sdk.rs +++ b/packages/rs-sdk/src/sdk.rs @@ -255,10 +255,7 @@ impl Sdk { /// respective tolerance will be None regardless of method, to allow disabling staleness checks globally. fn freshness_criteria(&self, method_name: &str) -> (Option, Option) { match method_name { - "get_addresses_trunk_state" - | "get_addresses_branch_state" - | "get_nullifiers_trunk_state" - | "get_nullifiers_branch_state" => ( + "get_addresses_trunk_state" | "get_addresses_branch_state" => ( None, self.metadata_time_tolerance_ms .and(Some(ADDRESS_STATE_TIME_TOLERANCE_MS)), From f862ab82154ccf5c047e22856cc39c9658038cf4 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Tue, 9 Jun 2026 18:32:21 +0200 Subject: [PATCH 2/3] fix: build shielded FFI load path under --all-features The shielded-gated outgoing-notes load path in platform-wallet-ffi returned `String.into()` / `format!(...).into()` as its error, but `PersistenceError` does not implement `From`, so the crate failed to compile under the `shielded` feature (E0277). Construct `PersistenceError::backend(...)` to match the surrounding error sites. Regression from #3819 (only triggered with the `shielded` feature, which the congested CI on that PR didn't exercise). Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/rs-platform-wallet-ffi/src/persistence.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/rs-platform-wallet-ffi/src/persistence.rs b/packages/rs-platform-wallet-ffi/src/persistence.rs index 2cb9e57400a..60405d284f9 100644 --- a/packages/rs-platform-wallet-ffi/src/persistence.rs +++ b/packages/rs-platform-wallet-ffi/src/persistence.rs @@ -1430,10 +1430,10 @@ impl PlatformWalletPersistence for FFIPersister { .on_load_shielded_outgoing_notes_free_fn .is_some() { - return Err("on_load_shielded_outgoing_notes_fn and \ - on_load_shielded_outgoing_notes_free_fn must be provided together" - .to_string() - .into()); + return Err(PersistenceError::backend( + "on_load_shielded_outgoing_notes_fn and \ + on_load_shielded_outgoing_notes_free_fn must be provided together", + )); } // 1) notes @@ -1508,11 +1508,10 @@ impl PlatformWalletPersistence for FFIPersister { let rc = unsafe { load_outgoing(self.callbacks.context, &mut out_ptr, &mut out_count) }; if rc != 0 { - return Err(format!( + return Err(PersistenceError::backend(format!( "on_load_shielded_outgoing_notes_fn returned error code {}", rc - ) - .into()); + ))); } struct OutgoingGuard { context: *mut c_void, From 692b3122b954cd7bbcc1fd20240389d3abb84eef Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 10 Jun 2026 08:27:27 +0200 Subject: [PATCH 3/3] chore: prune removed nullifier-changes RPCs from grpc-queries cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drops the 4 removed RPCs (getNullifiersTrunkState, getNullifiersBranchState, getRecentNullifierChanges, getRecentCompactedNullifierChanges) from .github/grpc-queries-cache.json. The cache is committed as regenerated by check-grpc-coverage.py against the updated proto (which also picked up 3 queries now detected as implemented), so the post-merge coverage run produces no diff — the workflow's auto-commit is disabled, so a stale cache would otherwise stay perpetually dirty. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/grpc-queries-cache.json | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/grpc-queries-cache.json b/.github/grpc-queries-cache.json index d7878802908..ccdfbd20c97 100644 --- a/.github/grpc-queries-cache.json +++ b/.github/grpc-queries-cache.json @@ -165,18 +165,14 @@ "getShieldedNullifiers": { "status": "implemented" }, - "getNullifiersTrunkState": { + "getDocumentHistory": { "status": "implemented" }, - "getNullifiersBranchState": { + "getTokenPreProgrammedDistributions": { "status": "implemented" }, - "getRecentNullifierChanges": { - "status": "implemented" - }, - "getRecentCompactedNullifierChanges": { + "getShieldedNotesCount": { "status": "implemented" } - }, - "last_updated": "2026-03-10T11:25:01.317388" + } }