dash-platform-sdk 1.4.0 → 1.5.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -15
- package/bundle.min.js +17 -17
- package/package.json +2 -2
- package/proto/generated/platform.client.d.ts +70 -0
- package/proto/generated/platform.client.js +61 -12
- package/proto/generated/platform.d.ts +1025 -0
- package/proto/generated/platform.js +2074 -1
- package/src/DashPlatformSDK.d.ts +2 -0
- package/src/DashPlatformSDK.js +3 -0
- package/src/constants.d.ts +1 -0
- package/src/constants.js +1 -0
- package/src/keyPair/index.d.ts +25 -0
- package/src/keyPair/index.js +33 -0
- package/src/node/{epochs.d.ts → epochInfos.d.ts} +1 -1
- package/src/node/{epochs.js → epochInfos.js} +1 -1
- package/src/node/finalizedEpochInfos.d.ts +21 -0
- package/src/node/finalizedEpochInfos.js +54 -0
- package/src/node/index.d.ts +9 -1
- package/src/node/index.js +11 -1
- package/src/shielded/createStateTransition.d.ts +3 -0
- package/src/shielded/createStateTransition.js +55 -0
- package/src/shielded/getMostRecentShieldedAnchor.d.ts +2 -0
- package/src/shielded/getMostRecentShieldedAnchor.js +36 -0
- package/src/shielded/getShieldedAnchors.d.ts +2 -0
- package/src/shielded/getShieldedAnchors.js +36 -0
- package/src/shielded/getShieldedEncryptedNotes.d.ts +3 -0
- package/src/shielded/getShieldedEncryptedNotes.js +43 -0
- package/src/shielded/getShieldedNotesCount.d.ts +2 -0
- package/src/shielded/getShieldedNotesCount.js +36 -0
- package/src/shielded/getShieldedNullifiers.d.ts +3 -0
- package/src/shielded/getShieldedNullifiers.js +40 -0
- package/src/shielded/getShieldedPoolState.d.ts +2 -0
- package/src/shielded/getShieldedPoolState.js +36 -0
- package/src/shielded/index.d.ts +130 -0
- package/src/shielded/index.js +186 -0
- package/test/unit/KeyPair.spec.js +32 -0
- package/test/unit/Node.spec.js +6 -0
- package/test/unit/Shielded.spec.d.ts +1 -0
- package/test/unit/Shielded.spec.js +236 -0
- package/types.d.ts +85 -1
|
@@ -9069,6 +9069,2072 @@ class GetAddressesInfosResponse_GetAddressesInfosResponseV0$Type extends Message
|
|
|
9069
9069
|
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetAddressesInfosResponse.GetAddressesInfosResponseV0
|
|
9070
9070
|
*/
|
|
9071
9071
|
export const GetAddressesInfosResponse_GetAddressesInfosResponseV0 = new GetAddressesInfosResponse_GetAddressesInfosResponseV0$Type();
|
|
9072
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9073
|
+
class GetShieldedEncryptedNotesRequest$Type extends MessageType {
|
|
9074
|
+
constructor() {
|
|
9075
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest", [
|
|
9076
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0 }
|
|
9077
|
+
]);
|
|
9078
|
+
}
|
|
9079
|
+
create(value) {
|
|
9080
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9081
|
+
message.version = { oneofKind: undefined };
|
|
9082
|
+
if (value !== undefined)
|
|
9083
|
+
reflectionMergePartial(this, message, value);
|
|
9084
|
+
return message;
|
|
9085
|
+
}
|
|
9086
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9087
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9088
|
+
while (reader.pos < end) {
|
|
9089
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9090
|
+
switch (fieldNo) {
|
|
9091
|
+
case /* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0 v0 */ 1:
|
|
9092
|
+
message.version = {
|
|
9093
|
+
oneofKind: "v0",
|
|
9094
|
+
v0: GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9095
|
+
};
|
|
9096
|
+
break;
|
|
9097
|
+
default:
|
|
9098
|
+
let u = options.readUnknownField;
|
|
9099
|
+
if (u === "throw")
|
|
9100
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9101
|
+
let d = reader.skip(wireType);
|
|
9102
|
+
if (u !== false)
|
|
9103
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9104
|
+
}
|
|
9105
|
+
}
|
|
9106
|
+
return message;
|
|
9107
|
+
}
|
|
9108
|
+
internalBinaryWrite(message, writer, options) {
|
|
9109
|
+
/* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0 v0 = 1; */
|
|
9110
|
+
if (message.version.oneofKind === "v0")
|
|
9111
|
+
GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9112
|
+
let u = options.writeUnknownFields;
|
|
9113
|
+
if (u !== false)
|
|
9114
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9115
|
+
return writer;
|
|
9116
|
+
}
|
|
9117
|
+
}
|
|
9118
|
+
/**
|
|
9119
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest
|
|
9120
|
+
*/
|
|
9121
|
+
export const GetShieldedEncryptedNotesRequest = new GetShieldedEncryptedNotesRequest$Type();
|
|
9122
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9123
|
+
class GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0$Type extends MessageType {
|
|
9124
|
+
constructor() {
|
|
9125
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0", [
|
|
9126
|
+
{ no: 1, name: "start_index", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
9127
|
+
{ no: 2, name: "count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
9128
|
+
{ no: 3, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
9129
|
+
]);
|
|
9130
|
+
}
|
|
9131
|
+
create(value) {
|
|
9132
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9133
|
+
message.startIndex = "0";
|
|
9134
|
+
message.count = 0;
|
|
9135
|
+
message.prove = false;
|
|
9136
|
+
if (value !== undefined)
|
|
9137
|
+
reflectionMergePartial(this, message, value);
|
|
9138
|
+
return message;
|
|
9139
|
+
}
|
|
9140
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9141
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9142
|
+
while (reader.pos < end) {
|
|
9143
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9144
|
+
switch (fieldNo) {
|
|
9145
|
+
case /* uint64 start_index */ 1:
|
|
9146
|
+
message.startIndex = reader.uint64().toString();
|
|
9147
|
+
break;
|
|
9148
|
+
case /* uint32 count */ 2:
|
|
9149
|
+
message.count = reader.uint32();
|
|
9150
|
+
break;
|
|
9151
|
+
case /* bool prove */ 3:
|
|
9152
|
+
message.prove = reader.bool();
|
|
9153
|
+
break;
|
|
9154
|
+
default:
|
|
9155
|
+
let u = options.readUnknownField;
|
|
9156
|
+
if (u === "throw")
|
|
9157
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9158
|
+
let d = reader.skip(wireType);
|
|
9159
|
+
if (u !== false)
|
|
9160
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9161
|
+
}
|
|
9162
|
+
}
|
|
9163
|
+
return message;
|
|
9164
|
+
}
|
|
9165
|
+
internalBinaryWrite(message, writer, options) {
|
|
9166
|
+
/* uint64 start_index = 1; */
|
|
9167
|
+
if (message.startIndex !== "0")
|
|
9168
|
+
writer.tag(1, WireType.Varint).uint64(message.startIndex);
|
|
9169
|
+
/* uint32 count = 2; */
|
|
9170
|
+
if (message.count !== 0)
|
|
9171
|
+
writer.tag(2, WireType.Varint).uint32(message.count);
|
|
9172
|
+
/* bool prove = 3; */
|
|
9173
|
+
if (message.prove !== false)
|
|
9174
|
+
writer.tag(3, WireType.Varint).bool(message.prove);
|
|
9175
|
+
let u = options.writeUnknownFields;
|
|
9176
|
+
if (u !== false)
|
|
9177
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9178
|
+
return writer;
|
|
9179
|
+
}
|
|
9180
|
+
}
|
|
9181
|
+
/**
|
|
9182
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesRequest.GetShieldedEncryptedNotesRequestV0
|
|
9183
|
+
*/
|
|
9184
|
+
export const GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0 = new GetShieldedEncryptedNotesRequest_GetShieldedEncryptedNotesRequestV0$Type();
|
|
9185
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9186
|
+
class GetShieldedEncryptedNotesResponse$Type extends MessageType {
|
|
9187
|
+
constructor() {
|
|
9188
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse", [
|
|
9189
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0 }
|
|
9190
|
+
]);
|
|
9191
|
+
}
|
|
9192
|
+
create(value) {
|
|
9193
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9194
|
+
message.version = { oneofKind: undefined };
|
|
9195
|
+
if (value !== undefined)
|
|
9196
|
+
reflectionMergePartial(this, message, value);
|
|
9197
|
+
return message;
|
|
9198
|
+
}
|
|
9199
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9200
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9201
|
+
while (reader.pos < end) {
|
|
9202
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9203
|
+
switch (fieldNo) {
|
|
9204
|
+
case /* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0 v0 */ 1:
|
|
9205
|
+
message.version = {
|
|
9206
|
+
oneofKind: "v0",
|
|
9207
|
+
v0: GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9208
|
+
};
|
|
9209
|
+
break;
|
|
9210
|
+
default:
|
|
9211
|
+
let u = options.readUnknownField;
|
|
9212
|
+
if (u === "throw")
|
|
9213
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9214
|
+
let d = reader.skip(wireType);
|
|
9215
|
+
if (u !== false)
|
|
9216
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9217
|
+
}
|
|
9218
|
+
}
|
|
9219
|
+
return message;
|
|
9220
|
+
}
|
|
9221
|
+
internalBinaryWrite(message, writer, options) {
|
|
9222
|
+
/* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0 v0 = 1; */
|
|
9223
|
+
if (message.version.oneofKind === "v0")
|
|
9224
|
+
GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9225
|
+
let u = options.writeUnknownFields;
|
|
9226
|
+
if (u !== false)
|
|
9227
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9228
|
+
return writer;
|
|
9229
|
+
}
|
|
9230
|
+
}
|
|
9231
|
+
/**
|
|
9232
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse
|
|
9233
|
+
*/
|
|
9234
|
+
export const GetShieldedEncryptedNotesResponse = new GetShieldedEncryptedNotesResponse$Type();
|
|
9235
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9236
|
+
class GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0$Type extends MessageType {
|
|
9237
|
+
constructor() {
|
|
9238
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0", [
|
|
9239
|
+
{ no: 1, name: "encrypted_notes", kind: "message", oneof: "result", T: () => GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes },
|
|
9240
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
9241
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
9242
|
+
]);
|
|
9243
|
+
}
|
|
9244
|
+
create(value) {
|
|
9245
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9246
|
+
message.result = { oneofKind: undefined };
|
|
9247
|
+
if (value !== undefined)
|
|
9248
|
+
reflectionMergePartial(this, message, value);
|
|
9249
|
+
return message;
|
|
9250
|
+
}
|
|
9251
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9252
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9253
|
+
while (reader.pos < end) {
|
|
9254
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9255
|
+
switch (fieldNo) {
|
|
9256
|
+
case /* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotes encrypted_notes */ 1:
|
|
9257
|
+
message.result = {
|
|
9258
|
+
oneofKind: "encryptedNotes",
|
|
9259
|
+
encryptedNotes: GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes.internalBinaryRead(reader, reader.uint32(), options, message.result.encryptedNotes)
|
|
9260
|
+
};
|
|
9261
|
+
break;
|
|
9262
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
9263
|
+
message.result = {
|
|
9264
|
+
oneofKind: "proof",
|
|
9265
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
9266
|
+
};
|
|
9267
|
+
break;
|
|
9268
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
9269
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
9270
|
+
break;
|
|
9271
|
+
default:
|
|
9272
|
+
let u = options.readUnknownField;
|
|
9273
|
+
if (u === "throw")
|
|
9274
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9275
|
+
let d = reader.skip(wireType);
|
|
9276
|
+
if (u !== false)
|
|
9277
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9278
|
+
}
|
|
9279
|
+
}
|
|
9280
|
+
return message;
|
|
9281
|
+
}
|
|
9282
|
+
internalBinaryWrite(message, writer, options) {
|
|
9283
|
+
/* org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotes encrypted_notes = 1; */
|
|
9284
|
+
if (message.result.oneofKind === "encryptedNotes")
|
|
9285
|
+
GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes.internalBinaryWrite(message.result.encryptedNotes, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9286
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
9287
|
+
if (message.result.oneofKind === "proof")
|
|
9288
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
9289
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
9290
|
+
if (message.metadata)
|
|
9291
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
9292
|
+
let u = options.writeUnknownFields;
|
|
9293
|
+
if (u !== false)
|
|
9294
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9295
|
+
return writer;
|
|
9296
|
+
}
|
|
9297
|
+
}
|
|
9298
|
+
/**
|
|
9299
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0
|
|
9300
|
+
*/
|
|
9301
|
+
export const GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0 = new GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0$Type();
|
|
9302
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9303
|
+
class GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote$Type extends MessageType {
|
|
9304
|
+
constructor() {
|
|
9305
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNote", [
|
|
9306
|
+
{ no: 1, name: "nullifier", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
9307
|
+
{ no: 2, name: "cmx", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
9308
|
+
{ no: 3, name: "encrypted_note", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
9309
|
+
{ no: 4, name: "cv_net", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
|
|
9310
|
+
]);
|
|
9311
|
+
}
|
|
9312
|
+
create(value) {
|
|
9313
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9314
|
+
message.nullifier = new Uint8Array(0);
|
|
9315
|
+
message.cmx = new Uint8Array(0);
|
|
9316
|
+
message.encryptedNote = new Uint8Array(0);
|
|
9317
|
+
message.cvNet = new Uint8Array(0);
|
|
9318
|
+
if (value !== undefined)
|
|
9319
|
+
reflectionMergePartial(this, message, value);
|
|
9320
|
+
return message;
|
|
9321
|
+
}
|
|
9322
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9323
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9324
|
+
while (reader.pos < end) {
|
|
9325
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9326
|
+
switch (fieldNo) {
|
|
9327
|
+
case /* bytes nullifier */ 1:
|
|
9328
|
+
message.nullifier = reader.bytes();
|
|
9329
|
+
break;
|
|
9330
|
+
case /* bytes cmx */ 2:
|
|
9331
|
+
message.cmx = reader.bytes();
|
|
9332
|
+
break;
|
|
9333
|
+
case /* bytes encrypted_note */ 3:
|
|
9334
|
+
message.encryptedNote = reader.bytes();
|
|
9335
|
+
break;
|
|
9336
|
+
case /* bytes cv_net */ 4:
|
|
9337
|
+
message.cvNet = reader.bytes();
|
|
9338
|
+
break;
|
|
9339
|
+
default:
|
|
9340
|
+
let u = options.readUnknownField;
|
|
9341
|
+
if (u === "throw")
|
|
9342
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9343
|
+
let d = reader.skip(wireType);
|
|
9344
|
+
if (u !== false)
|
|
9345
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9346
|
+
}
|
|
9347
|
+
}
|
|
9348
|
+
return message;
|
|
9349
|
+
}
|
|
9350
|
+
internalBinaryWrite(message, writer, options) {
|
|
9351
|
+
/* bytes nullifier = 1; */
|
|
9352
|
+
if (message.nullifier.length)
|
|
9353
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.nullifier);
|
|
9354
|
+
/* bytes cmx = 2; */
|
|
9355
|
+
if (message.cmx.length)
|
|
9356
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.cmx);
|
|
9357
|
+
/* bytes encrypted_note = 3; */
|
|
9358
|
+
if (message.encryptedNote.length)
|
|
9359
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.encryptedNote);
|
|
9360
|
+
/* bytes cv_net = 4; */
|
|
9361
|
+
if (message.cvNet.length)
|
|
9362
|
+
writer.tag(4, WireType.LengthDelimited).bytes(message.cvNet);
|
|
9363
|
+
let u = options.writeUnknownFields;
|
|
9364
|
+
if (u !== false)
|
|
9365
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9366
|
+
return writer;
|
|
9367
|
+
}
|
|
9368
|
+
}
|
|
9369
|
+
/**
|
|
9370
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNote
|
|
9371
|
+
*/
|
|
9372
|
+
export const GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote = new GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote$Type();
|
|
9373
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9374
|
+
class GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes$Type extends MessageType {
|
|
9375
|
+
constructor() {
|
|
9376
|
+
super("org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotes", [
|
|
9377
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote }
|
|
9378
|
+
]);
|
|
9379
|
+
}
|
|
9380
|
+
create(value) {
|
|
9381
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9382
|
+
message.entries = [];
|
|
9383
|
+
if (value !== undefined)
|
|
9384
|
+
reflectionMergePartial(this, message, value);
|
|
9385
|
+
return message;
|
|
9386
|
+
}
|
|
9387
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9388
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9389
|
+
while (reader.pos < end) {
|
|
9390
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9391
|
+
switch (fieldNo) {
|
|
9392
|
+
case /* repeated org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNote entries */ 1:
|
|
9393
|
+
message.entries.push(GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote.internalBinaryRead(reader, reader.uint32(), options));
|
|
9394
|
+
break;
|
|
9395
|
+
default:
|
|
9396
|
+
let u = options.readUnknownField;
|
|
9397
|
+
if (u === "throw")
|
|
9398
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9399
|
+
let d = reader.skip(wireType);
|
|
9400
|
+
if (u !== false)
|
|
9401
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9402
|
+
}
|
|
9403
|
+
}
|
|
9404
|
+
return message;
|
|
9405
|
+
}
|
|
9406
|
+
internalBinaryWrite(message, writer, options) {
|
|
9407
|
+
/* repeated org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNote entries = 1; */
|
|
9408
|
+
for (let i = 0; i < message.entries.length; i++)
|
|
9409
|
+
GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNote.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9410
|
+
let u = options.writeUnknownFields;
|
|
9411
|
+
if (u !== false)
|
|
9412
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9413
|
+
return writer;
|
|
9414
|
+
}
|
|
9415
|
+
}
|
|
9416
|
+
/**
|
|
9417
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedEncryptedNotesResponse.GetShieldedEncryptedNotesResponseV0.EncryptedNotes
|
|
9418
|
+
*/
|
|
9419
|
+
export const GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes = new GetShieldedEncryptedNotesResponse_GetShieldedEncryptedNotesResponseV0_EncryptedNotes$Type();
|
|
9420
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9421
|
+
class GetShieldedAnchorsRequest$Type extends MessageType {
|
|
9422
|
+
constructor() {
|
|
9423
|
+
super("org.dash.platform.dapi.v0.GetShieldedAnchorsRequest", [
|
|
9424
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0 }
|
|
9425
|
+
]);
|
|
9426
|
+
}
|
|
9427
|
+
create(value) {
|
|
9428
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9429
|
+
message.version = { oneofKind: undefined };
|
|
9430
|
+
if (value !== undefined)
|
|
9431
|
+
reflectionMergePartial(this, message, value);
|
|
9432
|
+
return message;
|
|
9433
|
+
}
|
|
9434
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9435
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9436
|
+
while (reader.pos < end) {
|
|
9437
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9438
|
+
switch (fieldNo) {
|
|
9439
|
+
case /* org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0 v0 */ 1:
|
|
9440
|
+
message.version = {
|
|
9441
|
+
oneofKind: "v0",
|
|
9442
|
+
v0: GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9443
|
+
};
|
|
9444
|
+
break;
|
|
9445
|
+
default:
|
|
9446
|
+
let u = options.readUnknownField;
|
|
9447
|
+
if (u === "throw")
|
|
9448
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9449
|
+
let d = reader.skip(wireType);
|
|
9450
|
+
if (u !== false)
|
|
9451
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9452
|
+
}
|
|
9453
|
+
}
|
|
9454
|
+
return message;
|
|
9455
|
+
}
|
|
9456
|
+
internalBinaryWrite(message, writer, options) {
|
|
9457
|
+
/* org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0 v0 = 1; */
|
|
9458
|
+
if (message.version.oneofKind === "v0")
|
|
9459
|
+
GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9460
|
+
let u = options.writeUnknownFields;
|
|
9461
|
+
if (u !== false)
|
|
9462
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9463
|
+
return writer;
|
|
9464
|
+
}
|
|
9465
|
+
}
|
|
9466
|
+
/**
|
|
9467
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedAnchorsRequest
|
|
9468
|
+
*/
|
|
9469
|
+
export const GetShieldedAnchorsRequest = new GetShieldedAnchorsRequest$Type();
|
|
9470
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9471
|
+
class GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0$Type extends MessageType {
|
|
9472
|
+
constructor() {
|
|
9473
|
+
super("org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0", [
|
|
9474
|
+
{ no: 1, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
9475
|
+
]);
|
|
9476
|
+
}
|
|
9477
|
+
create(value) {
|
|
9478
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9479
|
+
message.prove = false;
|
|
9480
|
+
if (value !== undefined)
|
|
9481
|
+
reflectionMergePartial(this, message, value);
|
|
9482
|
+
return message;
|
|
9483
|
+
}
|
|
9484
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9485
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9486
|
+
while (reader.pos < end) {
|
|
9487
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9488
|
+
switch (fieldNo) {
|
|
9489
|
+
case /* bool prove */ 1:
|
|
9490
|
+
message.prove = reader.bool();
|
|
9491
|
+
break;
|
|
9492
|
+
default:
|
|
9493
|
+
let u = options.readUnknownField;
|
|
9494
|
+
if (u === "throw")
|
|
9495
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9496
|
+
let d = reader.skip(wireType);
|
|
9497
|
+
if (u !== false)
|
|
9498
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9499
|
+
}
|
|
9500
|
+
}
|
|
9501
|
+
return message;
|
|
9502
|
+
}
|
|
9503
|
+
internalBinaryWrite(message, writer, options) {
|
|
9504
|
+
/* bool prove = 1; */
|
|
9505
|
+
if (message.prove !== false)
|
|
9506
|
+
writer.tag(1, WireType.Varint).bool(message.prove);
|
|
9507
|
+
let u = options.writeUnknownFields;
|
|
9508
|
+
if (u !== false)
|
|
9509
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9510
|
+
return writer;
|
|
9511
|
+
}
|
|
9512
|
+
}
|
|
9513
|
+
/**
|
|
9514
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedAnchorsRequest.GetShieldedAnchorsRequestV0
|
|
9515
|
+
*/
|
|
9516
|
+
export const GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0 = new GetShieldedAnchorsRequest_GetShieldedAnchorsRequestV0$Type();
|
|
9517
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9518
|
+
class GetShieldedAnchorsResponse$Type extends MessageType {
|
|
9519
|
+
constructor() {
|
|
9520
|
+
super("org.dash.platform.dapi.v0.GetShieldedAnchorsResponse", [
|
|
9521
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0 }
|
|
9522
|
+
]);
|
|
9523
|
+
}
|
|
9524
|
+
create(value) {
|
|
9525
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9526
|
+
message.version = { oneofKind: undefined };
|
|
9527
|
+
if (value !== undefined)
|
|
9528
|
+
reflectionMergePartial(this, message, value);
|
|
9529
|
+
return message;
|
|
9530
|
+
}
|
|
9531
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9532
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9533
|
+
while (reader.pos < end) {
|
|
9534
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9535
|
+
switch (fieldNo) {
|
|
9536
|
+
case /* org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0 v0 */ 1:
|
|
9537
|
+
message.version = {
|
|
9538
|
+
oneofKind: "v0",
|
|
9539
|
+
v0: GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9540
|
+
};
|
|
9541
|
+
break;
|
|
9542
|
+
default:
|
|
9543
|
+
let u = options.readUnknownField;
|
|
9544
|
+
if (u === "throw")
|
|
9545
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9546
|
+
let d = reader.skip(wireType);
|
|
9547
|
+
if (u !== false)
|
|
9548
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9549
|
+
}
|
|
9550
|
+
}
|
|
9551
|
+
return message;
|
|
9552
|
+
}
|
|
9553
|
+
internalBinaryWrite(message, writer, options) {
|
|
9554
|
+
/* org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0 v0 = 1; */
|
|
9555
|
+
if (message.version.oneofKind === "v0")
|
|
9556
|
+
GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9557
|
+
let u = options.writeUnknownFields;
|
|
9558
|
+
if (u !== false)
|
|
9559
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9560
|
+
return writer;
|
|
9561
|
+
}
|
|
9562
|
+
}
|
|
9563
|
+
/**
|
|
9564
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedAnchorsResponse
|
|
9565
|
+
*/
|
|
9566
|
+
export const GetShieldedAnchorsResponse = new GetShieldedAnchorsResponse$Type();
|
|
9567
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9568
|
+
class GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0$Type extends MessageType {
|
|
9569
|
+
constructor() {
|
|
9570
|
+
super("org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0", [
|
|
9571
|
+
{ no: 1, name: "anchors", kind: "message", oneof: "result", T: () => GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors },
|
|
9572
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
9573
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
9574
|
+
]);
|
|
9575
|
+
}
|
|
9576
|
+
create(value) {
|
|
9577
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9578
|
+
message.result = { oneofKind: undefined };
|
|
9579
|
+
if (value !== undefined)
|
|
9580
|
+
reflectionMergePartial(this, message, value);
|
|
9581
|
+
return message;
|
|
9582
|
+
}
|
|
9583
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9584
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9585
|
+
while (reader.pos < end) {
|
|
9586
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9587
|
+
switch (fieldNo) {
|
|
9588
|
+
case /* org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.Anchors anchors */ 1:
|
|
9589
|
+
message.result = {
|
|
9590
|
+
oneofKind: "anchors",
|
|
9591
|
+
anchors: GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors.internalBinaryRead(reader, reader.uint32(), options, message.result.anchors)
|
|
9592
|
+
};
|
|
9593
|
+
break;
|
|
9594
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
9595
|
+
message.result = {
|
|
9596
|
+
oneofKind: "proof",
|
|
9597
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
9598
|
+
};
|
|
9599
|
+
break;
|
|
9600
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
9601
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
9602
|
+
break;
|
|
9603
|
+
default:
|
|
9604
|
+
let u = options.readUnknownField;
|
|
9605
|
+
if (u === "throw")
|
|
9606
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9607
|
+
let d = reader.skip(wireType);
|
|
9608
|
+
if (u !== false)
|
|
9609
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9610
|
+
}
|
|
9611
|
+
}
|
|
9612
|
+
return message;
|
|
9613
|
+
}
|
|
9614
|
+
internalBinaryWrite(message, writer, options) {
|
|
9615
|
+
/* org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.Anchors anchors = 1; */
|
|
9616
|
+
if (message.result.oneofKind === "anchors")
|
|
9617
|
+
GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors.internalBinaryWrite(message.result.anchors, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9618
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
9619
|
+
if (message.result.oneofKind === "proof")
|
|
9620
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
9621
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
9622
|
+
if (message.metadata)
|
|
9623
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
9624
|
+
let u = options.writeUnknownFields;
|
|
9625
|
+
if (u !== false)
|
|
9626
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9627
|
+
return writer;
|
|
9628
|
+
}
|
|
9629
|
+
}
|
|
9630
|
+
/**
|
|
9631
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0
|
|
9632
|
+
*/
|
|
9633
|
+
export const GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0 = new GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0$Type();
|
|
9634
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9635
|
+
class GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors$Type extends MessageType {
|
|
9636
|
+
constructor() {
|
|
9637
|
+
super("org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.Anchors", [
|
|
9638
|
+
{ no: 1, name: "anchors", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ }
|
|
9639
|
+
]);
|
|
9640
|
+
}
|
|
9641
|
+
create(value) {
|
|
9642
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9643
|
+
message.anchors = [];
|
|
9644
|
+
if (value !== undefined)
|
|
9645
|
+
reflectionMergePartial(this, message, value);
|
|
9646
|
+
return message;
|
|
9647
|
+
}
|
|
9648
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9649
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9650
|
+
while (reader.pos < end) {
|
|
9651
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9652
|
+
switch (fieldNo) {
|
|
9653
|
+
case /* repeated bytes anchors */ 1:
|
|
9654
|
+
message.anchors.push(reader.bytes());
|
|
9655
|
+
break;
|
|
9656
|
+
default:
|
|
9657
|
+
let u = options.readUnknownField;
|
|
9658
|
+
if (u === "throw")
|
|
9659
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9660
|
+
let d = reader.skip(wireType);
|
|
9661
|
+
if (u !== false)
|
|
9662
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9663
|
+
}
|
|
9664
|
+
}
|
|
9665
|
+
return message;
|
|
9666
|
+
}
|
|
9667
|
+
internalBinaryWrite(message, writer, options) {
|
|
9668
|
+
/* repeated bytes anchors = 1; */
|
|
9669
|
+
for (let i = 0; i < message.anchors.length; i++)
|
|
9670
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.anchors[i]);
|
|
9671
|
+
let u = options.writeUnknownFields;
|
|
9672
|
+
if (u !== false)
|
|
9673
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9674
|
+
return writer;
|
|
9675
|
+
}
|
|
9676
|
+
}
|
|
9677
|
+
/**
|
|
9678
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedAnchorsResponse.GetShieldedAnchorsResponseV0.Anchors
|
|
9679
|
+
*/
|
|
9680
|
+
export const GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors = new GetShieldedAnchorsResponse_GetShieldedAnchorsResponseV0_Anchors$Type();
|
|
9681
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9682
|
+
class GetMostRecentShieldedAnchorRequest$Type extends MessageType {
|
|
9683
|
+
constructor() {
|
|
9684
|
+
super("org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest", [
|
|
9685
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0 }
|
|
9686
|
+
]);
|
|
9687
|
+
}
|
|
9688
|
+
create(value) {
|
|
9689
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9690
|
+
message.version = { oneofKind: undefined };
|
|
9691
|
+
if (value !== undefined)
|
|
9692
|
+
reflectionMergePartial(this, message, value);
|
|
9693
|
+
return message;
|
|
9694
|
+
}
|
|
9695
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9696
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9697
|
+
while (reader.pos < end) {
|
|
9698
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9699
|
+
switch (fieldNo) {
|
|
9700
|
+
case /* org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0 v0 */ 1:
|
|
9701
|
+
message.version = {
|
|
9702
|
+
oneofKind: "v0",
|
|
9703
|
+
v0: GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9704
|
+
};
|
|
9705
|
+
break;
|
|
9706
|
+
default:
|
|
9707
|
+
let u = options.readUnknownField;
|
|
9708
|
+
if (u === "throw")
|
|
9709
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9710
|
+
let d = reader.skip(wireType);
|
|
9711
|
+
if (u !== false)
|
|
9712
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9713
|
+
}
|
|
9714
|
+
}
|
|
9715
|
+
return message;
|
|
9716
|
+
}
|
|
9717
|
+
internalBinaryWrite(message, writer, options) {
|
|
9718
|
+
/* org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0 v0 = 1; */
|
|
9719
|
+
if (message.version.oneofKind === "v0")
|
|
9720
|
+
GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9721
|
+
let u = options.writeUnknownFields;
|
|
9722
|
+
if (u !== false)
|
|
9723
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9724
|
+
return writer;
|
|
9725
|
+
}
|
|
9726
|
+
}
|
|
9727
|
+
/**
|
|
9728
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest
|
|
9729
|
+
*/
|
|
9730
|
+
export const GetMostRecentShieldedAnchorRequest = new GetMostRecentShieldedAnchorRequest$Type();
|
|
9731
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9732
|
+
class GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0$Type extends MessageType {
|
|
9733
|
+
constructor() {
|
|
9734
|
+
super("org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0", [
|
|
9735
|
+
{ no: 1, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
9736
|
+
]);
|
|
9737
|
+
}
|
|
9738
|
+
create(value) {
|
|
9739
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9740
|
+
message.prove = false;
|
|
9741
|
+
if (value !== undefined)
|
|
9742
|
+
reflectionMergePartial(this, message, value);
|
|
9743
|
+
return message;
|
|
9744
|
+
}
|
|
9745
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9746
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9747
|
+
while (reader.pos < end) {
|
|
9748
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9749
|
+
switch (fieldNo) {
|
|
9750
|
+
case /* bool prove */ 1:
|
|
9751
|
+
message.prove = reader.bool();
|
|
9752
|
+
break;
|
|
9753
|
+
default:
|
|
9754
|
+
let u = options.readUnknownField;
|
|
9755
|
+
if (u === "throw")
|
|
9756
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9757
|
+
let d = reader.skip(wireType);
|
|
9758
|
+
if (u !== false)
|
|
9759
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9760
|
+
}
|
|
9761
|
+
}
|
|
9762
|
+
return message;
|
|
9763
|
+
}
|
|
9764
|
+
internalBinaryWrite(message, writer, options) {
|
|
9765
|
+
/* bool prove = 1; */
|
|
9766
|
+
if (message.prove !== false)
|
|
9767
|
+
writer.tag(1, WireType.Varint).bool(message.prove);
|
|
9768
|
+
let u = options.writeUnknownFields;
|
|
9769
|
+
if (u !== false)
|
|
9770
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9771
|
+
return writer;
|
|
9772
|
+
}
|
|
9773
|
+
}
|
|
9774
|
+
/**
|
|
9775
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorRequest.GetMostRecentShieldedAnchorRequestV0
|
|
9776
|
+
*/
|
|
9777
|
+
export const GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0 = new GetMostRecentShieldedAnchorRequest_GetMostRecentShieldedAnchorRequestV0$Type();
|
|
9778
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9779
|
+
class GetMostRecentShieldedAnchorResponse$Type extends MessageType {
|
|
9780
|
+
constructor() {
|
|
9781
|
+
super("org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse", [
|
|
9782
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0 }
|
|
9783
|
+
]);
|
|
9784
|
+
}
|
|
9785
|
+
create(value) {
|
|
9786
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9787
|
+
message.version = { oneofKind: undefined };
|
|
9788
|
+
if (value !== undefined)
|
|
9789
|
+
reflectionMergePartial(this, message, value);
|
|
9790
|
+
return message;
|
|
9791
|
+
}
|
|
9792
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9793
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9794
|
+
while (reader.pos < end) {
|
|
9795
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9796
|
+
switch (fieldNo) {
|
|
9797
|
+
case /* org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0 v0 */ 1:
|
|
9798
|
+
message.version = {
|
|
9799
|
+
oneofKind: "v0",
|
|
9800
|
+
v0: GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9801
|
+
};
|
|
9802
|
+
break;
|
|
9803
|
+
default:
|
|
9804
|
+
let u = options.readUnknownField;
|
|
9805
|
+
if (u === "throw")
|
|
9806
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9807
|
+
let d = reader.skip(wireType);
|
|
9808
|
+
if (u !== false)
|
|
9809
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9810
|
+
}
|
|
9811
|
+
}
|
|
9812
|
+
return message;
|
|
9813
|
+
}
|
|
9814
|
+
internalBinaryWrite(message, writer, options) {
|
|
9815
|
+
/* org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0 v0 = 1; */
|
|
9816
|
+
if (message.version.oneofKind === "v0")
|
|
9817
|
+
GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9818
|
+
let u = options.writeUnknownFields;
|
|
9819
|
+
if (u !== false)
|
|
9820
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9821
|
+
return writer;
|
|
9822
|
+
}
|
|
9823
|
+
}
|
|
9824
|
+
/**
|
|
9825
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse
|
|
9826
|
+
*/
|
|
9827
|
+
export const GetMostRecentShieldedAnchorResponse = new GetMostRecentShieldedAnchorResponse$Type();
|
|
9828
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9829
|
+
class GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0$Type extends MessageType {
|
|
9830
|
+
constructor() {
|
|
9831
|
+
super("org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0", [
|
|
9832
|
+
{ no: 1, name: "anchor", kind: "scalar", oneof: "result", T: 12 /*ScalarType.BYTES*/ },
|
|
9833
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
9834
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
9835
|
+
]);
|
|
9836
|
+
}
|
|
9837
|
+
create(value) {
|
|
9838
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9839
|
+
message.result = { oneofKind: undefined };
|
|
9840
|
+
if (value !== undefined)
|
|
9841
|
+
reflectionMergePartial(this, message, value);
|
|
9842
|
+
return message;
|
|
9843
|
+
}
|
|
9844
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9845
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9846
|
+
while (reader.pos < end) {
|
|
9847
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9848
|
+
switch (fieldNo) {
|
|
9849
|
+
case /* bytes anchor */ 1:
|
|
9850
|
+
message.result = {
|
|
9851
|
+
oneofKind: "anchor",
|
|
9852
|
+
anchor: reader.bytes()
|
|
9853
|
+
};
|
|
9854
|
+
break;
|
|
9855
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
9856
|
+
message.result = {
|
|
9857
|
+
oneofKind: "proof",
|
|
9858
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
9859
|
+
};
|
|
9860
|
+
break;
|
|
9861
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
9862
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
9863
|
+
break;
|
|
9864
|
+
default:
|
|
9865
|
+
let u = options.readUnknownField;
|
|
9866
|
+
if (u === "throw")
|
|
9867
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9868
|
+
let d = reader.skip(wireType);
|
|
9869
|
+
if (u !== false)
|
|
9870
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9871
|
+
}
|
|
9872
|
+
}
|
|
9873
|
+
return message;
|
|
9874
|
+
}
|
|
9875
|
+
internalBinaryWrite(message, writer, options) {
|
|
9876
|
+
/* bytes anchor = 1; */
|
|
9877
|
+
if (message.result.oneofKind === "anchor")
|
|
9878
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.result.anchor);
|
|
9879
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
9880
|
+
if (message.result.oneofKind === "proof")
|
|
9881
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
9882
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
9883
|
+
if (message.metadata)
|
|
9884
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
9885
|
+
let u = options.writeUnknownFields;
|
|
9886
|
+
if (u !== false)
|
|
9887
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9888
|
+
return writer;
|
|
9889
|
+
}
|
|
9890
|
+
}
|
|
9891
|
+
/**
|
|
9892
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetMostRecentShieldedAnchorResponse.GetMostRecentShieldedAnchorResponseV0
|
|
9893
|
+
*/
|
|
9894
|
+
export const GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0 = new GetMostRecentShieldedAnchorResponse_GetMostRecentShieldedAnchorResponseV0$Type();
|
|
9895
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9896
|
+
class GetShieldedPoolStateRequest$Type extends MessageType {
|
|
9897
|
+
constructor() {
|
|
9898
|
+
super("org.dash.platform.dapi.v0.GetShieldedPoolStateRequest", [
|
|
9899
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0 }
|
|
9900
|
+
]);
|
|
9901
|
+
}
|
|
9902
|
+
create(value) {
|
|
9903
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9904
|
+
message.version = { oneofKind: undefined };
|
|
9905
|
+
if (value !== undefined)
|
|
9906
|
+
reflectionMergePartial(this, message, value);
|
|
9907
|
+
return message;
|
|
9908
|
+
}
|
|
9909
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9910
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9911
|
+
while (reader.pos < end) {
|
|
9912
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9913
|
+
switch (fieldNo) {
|
|
9914
|
+
case /* org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0 v0 */ 1:
|
|
9915
|
+
message.version = {
|
|
9916
|
+
oneofKind: "v0",
|
|
9917
|
+
v0: GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
9918
|
+
};
|
|
9919
|
+
break;
|
|
9920
|
+
default:
|
|
9921
|
+
let u = options.readUnknownField;
|
|
9922
|
+
if (u === "throw")
|
|
9923
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9924
|
+
let d = reader.skip(wireType);
|
|
9925
|
+
if (u !== false)
|
|
9926
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9927
|
+
}
|
|
9928
|
+
}
|
|
9929
|
+
return message;
|
|
9930
|
+
}
|
|
9931
|
+
internalBinaryWrite(message, writer, options) {
|
|
9932
|
+
/* org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0 v0 = 1; */
|
|
9933
|
+
if (message.version.oneofKind === "v0")
|
|
9934
|
+
GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
9935
|
+
let u = options.writeUnknownFields;
|
|
9936
|
+
if (u !== false)
|
|
9937
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9938
|
+
return writer;
|
|
9939
|
+
}
|
|
9940
|
+
}
|
|
9941
|
+
/**
|
|
9942
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedPoolStateRequest
|
|
9943
|
+
*/
|
|
9944
|
+
export const GetShieldedPoolStateRequest = new GetShieldedPoolStateRequest$Type();
|
|
9945
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9946
|
+
class GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0$Type extends MessageType {
|
|
9947
|
+
constructor() {
|
|
9948
|
+
super("org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0", [
|
|
9949
|
+
{ no: 1, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
9950
|
+
]);
|
|
9951
|
+
}
|
|
9952
|
+
create(value) {
|
|
9953
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
9954
|
+
message.prove = false;
|
|
9955
|
+
if (value !== undefined)
|
|
9956
|
+
reflectionMergePartial(this, message, value);
|
|
9957
|
+
return message;
|
|
9958
|
+
}
|
|
9959
|
+
internalBinaryRead(reader, length, options, target) {
|
|
9960
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
9961
|
+
while (reader.pos < end) {
|
|
9962
|
+
let [fieldNo, wireType] = reader.tag();
|
|
9963
|
+
switch (fieldNo) {
|
|
9964
|
+
case /* bool prove */ 1:
|
|
9965
|
+
message.prove = reader.bool();
|
|
9966
|
+
break;
|
|
9967
|
+
default:
|
|
9968
|
+
let u = options.readUnknownField;
|
|
9969
|
+
if (u === "throw")
|
|
9970
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
9971
|
+
let d = reader.skip(wireType);
|
|
9972
|
+
if (u !== false)
|
|
9973
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
9974
|
+
}
|
|
9975
|
+
}
|
|
9976
|
+
return message;
|
|
9977
|
+
}
|
|
9978
|
+
internalBinaryWrite(message, writer, options) {
|
|
9979
|
+
/* bool prove = 1; */
|
|
9980
|
+
if (message.prove !== false)
|
|
9981
|
+
writer.tag(1, WireType.Varint).bool(message.prove);
|
|
9982
|
+
let u = options.writeUnknownFields;
|
|
9983
|
+
if (u !== false)
|
|
9984
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
9985
|
+
return writer;
|
|
9986
|
+
}
|
|
9987
|
+
}
|
|
9988
|
+
/**
|
|
9989
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedPoolStateRequest.GetShieldedPoolStateRequestV0
|
|
9990
|
+
*/
|
|
9991
|
+
export const GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0 = new GetShieldedPoolStateRequest_GetShieldedPoolStateRequestV0$Type();
|
|
9992
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9993
|
+
class GetShieldedPoolStateResponse$Type extends MessageType {
|
|
9994
|
+
constructor() {
|
|
9995
|
+
super("org.dash.platform.dapi.v0.GetShieldedPoolStateResponse", [
|
|
9996
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0 }
|
|
9997
|
+
]);
|
|
9998
|
+
}
|
|
9999
|
+
create(value) {
|
|
10000
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10001
|
+
message.version = { oneofKind: undefined };
|
|
10002
|
+
if (value !== undefined)
|
|
10003
|
+
reflectionMergePartial(this, message, value);
|
|
10004
|
+
return message;
|
|
10005
|
+
}
|
|
10006
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10007
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10008
|
+
while (reader.pos < end) {
|
|
10009
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10010
|
+
switch (fieldNo) {
|
|
10011
|
+
case /* org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0 v0 */ 1:
|
|
10012
|
+
message.version = {
|
|
10013
|
+
oneofKind: "v0",
|
|
10014
|
+
v0: GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10015
|
+
};
|
|
10016
|
+
break;
|
|
10017
|
+
default:
|
|
10018
|
+
let u = options.readUnknownField;
|
|
10019
|
+
if (u === "throw")
|
|
10020
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10021
|
+
let d = reader.skip(wireType);
|
|
10022
|
+
if (u !== false)
|
|
10023
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10024
|
+
}
|
|
10025
|
+
}
|
|
10026
|
+
return message;
|
|
10027
|
+
}
|
|
10028
|
+
internalBinaryWrite(message, writer, options) {
|
|
10029
|
+
/* org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0 v0 = 1; */
|
|
10030
|
+
if (message.version.oneofKind === "v0")
|
|
10031
|
+
GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10032
|
+
let u = options.writeUnknownFields;
|
|
10033
|
+
if (u !== false)
|
|
10034
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10035
|
+
return writer;
|
|
10036
|
+
}
|
|
10037
|
+
}
|
|
10038
|
+
/**
|
|
10039
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedPoolStateResponse
|
|
10040
|
+
*/
|
|
10041
|
+
export const GetShieldedPoolStateResponse = new GetShieldedPoolStateResponse$Type();
|
|
10042
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10043
|
+
class GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0$Type extends MessageType {
|
|
10044
|
+
constructor() {
|
|
10045
|
+
super("org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0", [
|
|
10046
|
+
{ no: 1, name: "total_balance", kind: "scalar", oneof: "result", T: 4 /*ScalarType.UINT64*/ },
|
|
10047
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
10048
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
10049
|
+
]);
|
|
10050
|
+
}
|
|
10051
|
+
create(value) {
|
|
10052
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10053
|
+
message.result = { oneofKind: undefined };
|
|
10054
|
+
if (value !== undefined)
|
|
10055
|
+
reflectionMergePartial(this, message, value);
|
|
10056
|
+
return message;
|
|
10057
|
+
}
|
|
10058
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10059
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10060
|
+
while (reader.pos < end) {
|
|
10061
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10062
|
+
switch (fieldNo) {
|
|
10063
|
+
case /* uint64 total_balance = 1 [jstype = JS_STRING] */ 1:
|
|
10064
|
+
message.result = {
|
|
10065
|
+
oneofKind: "totalBalance",
|
|
10066
|
+
totalBalance: reader.uint64().toString()
|
|
10067
|
+
};
|
|
10068
|
+
break;
|
|
10069
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
10070
|
+
message.result = {
|
|
10071
|
+
oneofKind: "proof",
|
|
10072
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
10073
|
+
};
|
|
10074
|
+
break;
|
|
10075
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
10076
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
10077
|
+
break;
|
|
10078
|
+
default:
|
|
10079
|
+
let u = options.readUnknownField;
|
|
10080
|
+
if (u === "throw")
|
|
10081
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10082
|
+
let d = reader.skip(wireType);
|
|
10083
|
+
if (u !== false)
|
|
10084
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10085
|
+
}
|
|
10086
|
+
}
|
|
10087
|
+
return message;
|
|
10088
|
+
}
|
|
10089
|
+
internalBinaryWrite(message, writer, options) {
|
|
10090
|
+
/* uint64 total_balance = 1 [jstype = JS_STRING]; */
|
|
10091
|
+
if (message.result.oneofKind === "totalBalance")
|
|
10092
|
+
writer.tag(1, WireType.Varint).uint64(message.result.totalBalance);
|
|
10093
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
10094
|
+
if (message.result.oneofKind === "proof")
|
|
10095
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
10096
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
10097
|
+
if (message.metadata)
|
|
10098
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
10099
|
+
let u = options.writeUnknownFields;
|
|
10100
|
+
if (u !== false)
|
|
10101
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10102
|
+
return writer;
|
|
10103
|
+
}
|
|
10104
|
+
}
|
|
10105
|
+
/**
|
|
10106
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedPoolStateResponse.GetShieldedPoolStateResponseV0
|
|
10107
|
+
*/
|
|
10108
|
+
export const GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0 = new GetShieldedPoolStateResponse_GetShieldedPoolStateResponseV0$Type();
|
|
10109
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10110
|
+
class GetShieldedNotesCountRequest$Type extends MessageType {
|
|
10111
|
+
constructor() {
|
|
10112
|
+
super("org.dash.platform.dapi.v0.GetShieldedNotesCountRequest", [
|
|
10113
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0 }
|
|
10114
|
+
]);
|
|
10115
|
+
}
|
|
10116
|
+
create(value) {
|
|
10117
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10118
|
+
message.version = { oneofKind: undefined };
|
|
10119
|
+
if (value !== undefined)
|
|
10120
|
+
reflectionMergePartial(this, message, value);
|
|
10121
|
+
return message;
|
|
10122
|
+
}
|
|
10123
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10124
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10125
|
+
while (reader.pos < end) {
|
|
10126
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10127
|
+
switch (fieldNo) {
|
|
10128
|
+
case /* org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0 v0 */ 1:
|
|
10129
|
+
message.version = {
|
|
10130
|
+
oneofKind: "v0",
|
|
10131
|
+
v0: GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10132
|
+
};
|
|
10133
|
+
break;
|
|
10134
|
+
default:
|
|
10135
|
+
let u = options.readUnknownField;
|
|
10136
|
+
if (u === "throw")
|
|
10137
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10138
|
+
let d = reader.skip(wireType);
|
|
10139
|
+
if (u !== false)
|
|
10140
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10141
|
+
}
|
|
10142
|
+
}
|
|
10143
|
+
return message;
|
|
10144
|
+
}
|
|
10145
|
+
internalBinaryWrite(message, writer, options) {
|
|
10146
|
+
/* org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0 v0 = 1; */
|
|
10147
|
+
if (message.version.oneofKind === "v0")
|
|
10148
|
+
GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10149
|
+
let u = options.writeUnknownFields;
|
|
10150
|
+
if (u !== false)
|
|
10151
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10152
|
+
return writer;
|
|
10153
|
+
}
|
|
10154
|
+
}
|
|
10155
|
+
/**
|
|
10156
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNotesCountRequest
|
|
10157
|
+
*/
|
|
10158
|
+
export const GetShieldedNotesCountRequest = new GetShieldedNotesCountRequest$Type();
|
|
10159
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10160
|
+
class GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0$Type extends MessageType {
|
|
10161
|
+
constructor() {
|
|
10162
|
+
super("org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0", [
|
|
10163
|
+
{ no: 1, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
10164
|
+
]);
|
|
10165
|
+
}
|
|
10166
|
+
create(value) {
|
|
10167
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10168
|
+
message.prove = false;
|
|
10169
|
+
if (value !== undefined)
|
|
10170
|
+
reflectionMergePartial(this, message, value);
|
|
10171
|
+
return message;
|
|
10172
|
+
}
|
|
10173
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10174
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10175
|
+
while (reader.pos < end) {
|
|
10176
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10177
|
+
switch (fieldNo) {
|
|
10178
|
+
case /* bool prove */ 1:
|
|
10179
|
+
message.prove = reader.bool();
|
|
10180
|
+
break;
|
|
10181
|
+
default:
|
|
10182
|
+
let u = options.readUnknownField;
|
|
10183
|
+
if (u === "throw")
|
|
10184
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10185
|
+
let d = reader.skip(wireType);
|
|
10186
|
+
if (u !== false)
|
|
10187
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10188
|
+
}
|
|
10189
|
+
}
|
|
10190
|
+
return message;
|
|
10191
|
+
}
|
|
10192
|
+
internalBinaryWrite(message, writer, options) {
|
|
10193
|
+
/* bool prove = 1; */
|
|
10194
|
+
if (message.prove !== false)
|
|
10195
|
+
writer.tag(1, WireType.Varint).bool(message.prove);
|
|
10196
|
+
let u = options.writeUnknownFields;
|
|
10197
|
+
if (u !== false)
|
|
10198
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10199
|
+
return writer;
|
|
10200
|
+
}
|
|
10201
|
+
}
|
|
10202
|
+
/**
|
|
10203
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNotesCountRequest.GetShieldedNotesCountRequestV0
|
|
10204
|
+
*/
|
|
10205
|
+
export const GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0 = new GetShieldedNotesCountRequest_GetShieldedNotesCountRequestV0$Type();
|
|
10206
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10207
|
+
class GetShieldedNotesCountResponse$Type extends MessageType {
|
|
10208
|
+
constructor() {
|
|
10209
|
+
super("org.dash.platform.dapi.v0.GetShieldedNotesCountResponse", [
|
|
10210
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0 }
|
|
10211
|
+
]);
|
|
10212
|
+
}
|
|
10213
|
+
create(value) {
|
|
10214
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10215
|
+
message.version = { oneofKind: undefined };
|
|
10216
|
+
if (value !== undefined)
|
|
10217
|
+
reflectionMergePartial(this, message, value);
|
|
10218
|
+
return message;
|
|
10219
|
+
}
|
|
10220
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10221
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10222
|
+
while (reader.pos < end) {
|
|
10223
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10224
|
+
switch (fieldNo) {
|
|
10225
|
+
case /* org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0 v0 */ 1:
|
|
10226
|
+
message.version = {
|
|
10227
|
+
oneofKind: "v0",
|
|
10228
|
+
v0: GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10229
|
+
};
|
|
10230
|
+
break;
|
|
10231
|
+
default:
|
|
10232
|
+
let u = options.readUnknownField;
|
|
10233
|
+
if (u === "throw")
|
|
10234
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10235
|
+
let d = reader.skip(wireType);
|
|
10236
|
+
if (u !== false)
|
|
10237
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10238
|
+
}
|
|
10239
|
+
}
|
|
10240
|
+
return message;
|
|
10241
|
+
}
|
|
10242
|
+
internalBinaryWrite(message, writer, options) {
|
|
10243
|
+
/* org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0 v0 = 1; */
|
|
10244
|
+
if (message.version.oneofKind === "v0")
|
|
10245
|
+
GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10246
|
+
let u = options.writeUnknownFields;
|
|
10247
|
+
if (u !== false)
|
|
10248
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10249
|
+
return writer;
|
|
10250
|
+
}
|
|
10251
|
+
}
|
|
10252
|
+
/**
|
|
10253
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNotesCountResponse
|
|
10254
|
+
*/
|
|
10255
|
+
export const GetShieldedNotesCountResponse = new GetShieldedNotesCountResponse$Type();
|
|
10256
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10257
|
+
class GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0$Type extends MessageType {
|
|
10258
|
+
constructor() {
|
|
10259
|
+
super("org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0", [
|
|
10260
|
+
{ no: 1, name: "total_notes_count", kind: "scalar", oneof: "result", T: 4 /*ScalarType.UINT64*/ },
|
|
10261
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
10262
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
10263
|
+
]);
|
|
10264
|
+
}
|
|
10265
|
+
create(value) {
|
|
10266
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10267
|
+
message.result = { oneofKind: undefined };
|
|
10268
|
+
if (value !== undefined)
|
|
10269
|
+
reflectionMergePartial(this, message, value);
|
|
10270
|
+
return message;
|
|
10271
|
+
}
|
|
10272
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10273
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10274
|
+
while (reader.pos < end) {
|
|
10275
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10276
|
+
switch (fieldNo) {
|
|
10277
|
+
case /* uint64 total_notes_count = 1 [jstype = JS_STRING] */ 1:
|
|
10278
|
+
message.result = {
|
|
10279
|
+
oneofKind: "totalNotesCount",
|
|
10280
|
+
totalNotesCount: reader.uint64().toString()
|
|
10281
|
+
};
|
|
10282
|
+
break;
|
|
10283
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
10284
|
+
message.result = {
|
|
10285
|
+
oneofKind: "proof",
|
|
10286
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
10287
|
+
};
|
|
10288
|
+
break;
|
|
10289
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
10290
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
10291
|
+
break;
|
|
10292
|
+
default:
|
|
10293
|
+
let u = options.readUnknownField;
|
|
10294
|
+
if (u === "throw")
|
|
10295
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10296
|
+
let d = reader.skip(wireType);
|
|
10297
|
+
if (u !== false)
|
|
10298
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10299
|
+
}
|
|
10300
|
+
}
|
|
10301
|
+
return message;
|
|
10302
|
+
}
|
|
10303
|
+
internalBinaryWrite(message, writer, options) {
|
|
10304
|
+
/* uint64 total_notes_count = 1 [jstype = JS_STRING]; */
|
|
10305
|
+
if (message.result.oneofKind === "totalNotesCount")
|
|
10306
|
+
writer.tag(1, WireType.Varint).uint64(message.result.totalNotesCount);
|
|
10307
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
10308
|
+
if (message.result.oneofKind === "proof")
|
|
10309
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
10310
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
10311
|
+
if (message.metadata)
|
|
10312
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
10313
|
+
let u = options.writeUnknownFields;
|
|
10314
|
+
if (u !== false)
|
|
10315
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10316
|
+
return writer;
|
|
10317
|
+
}
|
|
10318
|
+
}
|
|
10319
|
+
/**
|
|
10320
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNotesCountResponse.GetShieldedNotesCountResponseV0
|
|
10321
|
+
*/
|
|
10322
|
+
export const GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0 = new GetShieldedNotesCountResponse_GetShieldedNotesCountResponseV0$Type();
|
|
10323
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10324
|
+
class GetShieldedNullifiersRequest$Type extends MessageType {
|
|
10325
|
+
constructor() {
|
|
10326
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersRequest", [
|
|
10327
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0 }
|
|
10328
|
+
]);
|
|
10329
|
+
}
|
|
10330
|
+
create(value) {
|
|
10331
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10332
|
+
message.version = { oneofKind: undefined };
|
|
10333
|
+
if (value !== undefined)
|
|
10334
|
+
reflectionMergePartial(this, message, value);
|
|
10335
|
+
return message;
|
|
10336
|
+
}
|
|
10337
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10338
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10339
|
+
while (reader.pos < end) {
|
|
10340
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10341
|
+
switch (fieldNo) {
|
|
10342
|
+
case /* org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0 v0 */ 1:
|
|
10343
|
+
message.version = {
|
|
10344
|
+
oneofKind: "v0",
|
|
10345
|
+
v0: GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10346
|
+
};
|
|
10347
|
+
break;
|
|
10348
|
+
default:
|
|
10349
|
+
let u = options.readUnknownField;
|
|
10350
|
+
if (u === "throw")
|
|
10351
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10352
|
+
let d = reader.skip(wireType);
|
|
10353
|
+
if (u !== false)
|
|
10354
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10355
|
+
}
|
|
10356
|
+
}
|
|
10357
|
+
return message;
|
|
10358
|
+
}
|
|
10359
|
+
internalBinaryWrite(message, writer, options) {
|
|
10360
|
+
/* org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0 v0 = 1; */
|
|
10361
|
+
if (message.version.oneofKind === "v0")
|
|
10362
|
+
GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10363
|
+
let u = options.writeUnknownFields;
|
|
10364
|
+
if (u !== false)
|
|
10365
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10366
|
+
return writer;
|
|
10367
|
+
}
|
|
10368
|
+
}
|
|
10369
|
+
/**
|
|
10370
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersRequest
|
|
10371
|
+
*/
|
|
10372
|
+
export const GetShieldedNullifiersRequest = new GetShieldedNullifiersRequest$Type();
|
|
10373
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10374
|
+
class GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0$Type extends MessageType {
|
|
10375
|
+
constructor() {
|
|
10376
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0", [
|
|
10377
|
+
{ no: 1, name: "nullifiers", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
10378
|
+
{ no: 2, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
10379
|
+
]);
|
|
10380
|
+
}
|
|
10381
|
+
create(value) {
|
|
10382
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10383
|
+
message.nullifiers = [];
|
|
10384
|
+
message.prove = false;
|
|
10385
|
+
if (value !== undefined)
|
|
10386
|
+
reflectionMergePartial(this, message, value);
|
|
10387
|
+
return message;
|
|
10388
|
+
}
|
|
10389
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10390
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10391
|
+
while (reader.pos < end) {
|
|
10392
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10393
|
+
switch (fieldNo) {
|
|
10394
|
+
case /* repeated bytes nullifiers */ 1:
|
|
10395
|
+
message.nullifiers.push(reader.bytes());
|
|
10396
|
+
break;
|
|
10397
|
+
case /* bool prove */ 2:
|
|
10398
|
+
message.prove = reader.bool();
|
|
10399
|
+
break;
|
|
10400
|
+
default:
|
|
10401
|
+
let u = options.readUnknownField;
|
|
10402
|
+
if (u === "throw")
|
|
10403
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10404
|
+
let d = reader.skip(wireType);
|
|
10405
|
+
if (u !== false)
|
|
10406
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10407
|
+
}
|
|
10408
|
+
}
|
|
10409
|
+
return message;
|
|
10410
|
+
}
|
|
10411
|
+
internalBinaryWrite(message, writer, options) {
|
|
10412
|
+
/* repeated bytes nullifiers = 1; */
|
|
10413
|
+
for (let i = 0; i < message.nullifiers.length; i++)
|
|
10414
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.nullifiers[i]);
|
|
10415
|
+
/* bool prove = 2; */
|
|
10416
|
+
if (message.prove !== false)
|
|
10417
|
+
writer.tag(2, WireType.Varint).bool(message.prove);
|
|
10418
|
+
let u = options.writeUnknownFields;
|
|
10419
|
+
if (u !== false)
|
|
10420
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10421
|
+
return writer;
|
|
10422
|
+
}
|
|
10423
|
+
}
|
|
10424
|
+
/**
|
|
10425
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersRequest.GetShieldedNullifiersRequestV0
|
|
10426
|
+
*/
|
|
10427
|
+
export const GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0 = new GetShieldedNullifiersRequest_GetShieldedNullifiersRequestV0$Type();
|
|
10428
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10429
|
+
class GetShieldedNullifiersResponse$Type extends MessageType {
|
|
10430
|
+
constructor() {
|
|
10431
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersResponse", [
|
|
10432
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0 }
|
|
10433
|
+
]);
|
|
10434
|
+
}
|
|
10435
|
+
create(value) {
|
|
10436
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10437
|
+
message.version = { oneofKind: undefined };
|
|
10438
|
+
if (value !== undefined)
|
|
10439
|
+
reflectionMergePartial(this, message, value);
|
|
10440
|
+
return message;
|
|
10441
|
+
}
|
|
10442
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10443
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10444
|
+
while (reader.pos < end) {
|
|
10445
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10446
|
+
switch (fieldNo) {
|
|
10447
|
+
case /* org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0 v0 */ 1:
|
|
10448
|
+
message.version = {
|
|
10449
|
+
oneofKind: "v0",
|
|
10450
|
+
v0: GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10451
|
+
};
|
|
10452
|
+
break;
|
|
10453
|
+
default:
|
|
10454
|
+
let u = options.readUnknownField;
|
|
10455
|
+
if (u === "throw")
|
|
10456
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10457
|
+
let d = reader.skip(wireType);
|
|
10458
|
+
if (u !== false)
|
|
10459
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10460
|
+
}
|
|
10461
|
+
}
|
|
10462
|
+
return message;
|
|
10463
|
+
}
|
|
10464
|
+
internalBinaryWrite(message, writer, options) {
|
|
10465
|
+
/* org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0 v0 = 1; */
|
|
10466
|
+
if (message.version.oneofKind === "v0")
|
|
10467
|
+
GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10468
|
+
let u = options.writeUnknownFields;
|
|
10469
|
+
if (u !== false)
|
|
10470
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10471
|
+
return writer;
|
|
10472
|
+
}
|
|
10473
|
+
}
|
|
10474
|
+
/**
|
|
10475
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersResponse
|
|
10476
|
+
*/
|
|
10477
|
+
export const GetShieldedNullifiersResponse = new GetShieldedNullifiersResponse$Type();
|
|
10478
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10479
|
+
class GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0$Type extends MessageType {
|
|
10480
|
+
constructor() {
|
|
10481
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0", [
|
|
10482
|
+
{ no: 1, name: "nullifier_statuses", kind: "message", oneof: "result", T: () => GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses },
|
|
10483
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
10484
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
10485
|
+
]);
|
|
10486
|
+
}
|
|
10487
|
+
create(value) {
|
|
10488
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10489
|
+
message.result = { oneofKind: undefined };
|
|
10490
|
+
if (value !== undefined)
|
|
10491
|
+
reflectionMergePartial(this, message, value);
|
|
10492
|
+
return message;
|
|
10493
|
+
}
|
|
10494
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10495
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10496
|
+
while (reader.pos < end) {
|
|
10497
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10498
|
+
switch (fieldNo) {
|
|
10499
|
+
case /* org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses nullifier_statuses */ 1:
|
|
10500
|
+
message.result = {
|
|
10501
|
+
oneofKind: "nullifierStatuses",
|
|
10502
|
+
nullifierStatuses: GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses.internalBinaryRead(reader, reader.uint32(), options, message.result.nullifierStatuses)
|
|
10503
|
+
};
|
|
10504
|
+
break;
|
|
10505
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
10506
|
+
message.result = {
|
|
10507
|
+
oneofKind: "proof",
|
|
10508
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
10509
|
+
};
|
|
10510
|
+
break;
|
|
10511
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
10512
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
10513
|
+
break;
|
|
10514
|
+
default:
|
|
10515
|
+
let u = options.readUnknownField;
|
|
10516
|
+
if (u === "throw")
|
|
10517
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10518
|
+
let d = reader.skip(wireType);
|
|
10519
|
+
if (u !== false)
|
|
10520
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10521
|
+
}
|
|
10522
|
+
}
|
|
10523
|
+
return message;
|
|
10524
|
+
}
|
|
10525
|
+
internalBinaryWrite(message, writer, options) {
|
|
10526
|
+
/* org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses nullifier_statuses = 1; */
|
|
10527
|
+
if (message.result.oneofKind === "nullifierStatuses")
|
|
10528
|
+
GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses.internalBinaryWrite(message.result.nullifierStatuses, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10529
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
10530
|
+
if (message.result.oneofKind === "proof")
|
|
10531
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
10532
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
10533
|
+
if (message.metadata)
|
|
10534
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
10535
|
+
let u = options.writeUnknownFields;
|
|
10536
|
+
if (u !== false)
|
|
10537
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10538
|
+
return writer;
|
|
10539
|
+
}
|
|
10540
|
+
}
|
|
10541
|
+
/**
|
|
10542
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0
|
|
10543
|
+
*/
|
|
10544
|
+
export const GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0 = new GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0$Type();
|
|
10545
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10546
|
+
class GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus$Type extends MessageType {
|
|
10547
|
+
constructor() {
|
|
10548
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatus", [
|
|
10549
|
+
{ no: 1, name: "nullifier", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
10550
|
+
{ no: 2, name: "is_spent", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
10551
|
+
]);
|
|
10552
|
+
}
|
|
10553
|
+
create(value) {
|
|
10554
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10555
|
+
message.nullifier = new Uint8Array(0);
|
|
10556
|
+
message.isSpent = false;
|
|
10557
|
+
if (value !== undefined)
|
|
10558
|
+
reflectionMergePartial(this, message, value);
|
|
10559
|
+
return message;
|
|
10560
|
+
}
|
|
10561
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10562
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10563
|
+
while (reader.pos < end) {
|
|
10564
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10565
|
+
switch (fieldNo) {
|
|
10566
|
+
case /* bytes nullifier */ 1:
|
|
10567
|
+
message.nullifier = reader.bytes();
|
|
10568
|
+
break;
|
|
10569
|
+
case /* bool is_spent */ 2:
|
|
10570
|
+
message.isSpent = reader.bool();
|
|
10571
|
+
break;
|
|
10572
|
+
default:
|
|
10573
|
+
let u = options.readUnknownField;
|
|
10574
|
+
if (u === "throw")
|
|
10575
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10576
|
+
let d = reader.skip(wireType);
|
|
10577
|
+
if (u !== false)
|
|
10578
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10579
|
+
}
|
|
10580
|
+
}
|
|
10581
|
+
return message;
|
|
10582
|
+
}
|
|
10583
|
+
internalBinaryWrite(message, writer, options) {
|
|
10584
|
+
/* bytes nullifier = 1; */
|
|
10585
|
+
if (message.nullifier.length)
|
|
10586
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.nullifier);
|
|
10587
|
+
/* bool is_spent = 2; */
|
|
10588
|
+
if (message.isSpent !== false)
|
|
10589
|
+
writer.tag(2, WireType.Varint).bool(message.isSpent);
|
|
10590
|
+
let u = options.writeUnknownFields;
|
|
10591
|
+
if (u !== false)
|
|
10592
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10593
|
+
return writer;
|
|
10594
|
+
}
|
|
10595
|
+
}
|
|
10596
|
+
/**
|
|
10597
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatus
|
|
10598
|
+
*/
|
|
10599
|
+
export const GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus = new GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus$Type();
|
|
10600
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10601
|
+
class GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses$Type extends MessageType {
|
|
10602
|
+
constructor() {
|
|
10603
|
+
super("org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses", [
|
|
10604
|
+
{ no: 1, name: "entries", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus }
|
|
10605
|
+
]);
|
|
10606
|
+
}
|
|
10607
|
+
create(value) {
|
|
10608
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10609
|
+
message.entries = [];
|
|
10610
|
+
if (value !== undefined)
|
|
10611
|
+
reflectionMergePartial(this, message, value);
|
|
10612
|
+
return message;
|
|
10613
|
+
}
|
|
10614
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10615
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10616
|
+
while (reader.pos < end) {
|
|
10617
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10618
|
+
switch (fieldNo) {
|
|
10619
|
+
case /* repeated org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatus entries */ 1:
|
|
10620
|
+
message.entries.push(GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus.internalBinaryRead(reader, reader.uint32(), options));
|
|
10621
|
+
break;
|
|
10622
|
+
default:
|
|
10623
|
+
let u = options.readUnknownField;
|
|
10624
|
+
if (u === "throw")
|
|
10625
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10626
|
+
let d = reader.skip(wireType);
|
|
10627
|
+
if (u !== false)
|
|
10628
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10629
|
+
}
|
|
10630
|
+
}
|
|
10631
|
+
return message;
|
|
10632
|
+
}
|
|
10633
|
+
internalBinaryWrite(message, writer, options) {
|
|
10634
|
+
/* repeated org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatus entries = 1; */
|
|
10635
|
+
for (let i = 0; i < message.entries.length; i++)
|
|
10636
|
+
GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatus.internalBinaryWrite(message.entries[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10637
|
+
let u = options.writeUnknownFields;
|
|
10638
|
+
if (u !== false)
|
|
10639
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10640
|
+
return writer;
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
/**
|
|
10644
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetShieldedNullifiersResponse.GetShieldedNullifiersResponseV0.NullifierStatuses
|
|
10645
|
+
*/
|
|
10646
|
+
export const GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses = new GetShieldedNullifiersResponse_GetShieldedNullifiersResponseV0_NullifierStatuses$Type();
|
|
10647
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10648
|
+
class GetFinalizedEpochInfosRequest$Type extends MessageType {
|
|
10649
|
+
constructor() {
|
|
10650
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest", [
|
|
10651
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0 }
|
|
10652
|
+
]);
|
|
10653
|
+
}
|
|
10654
|
+
create(value) {
|
|
10655
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10656
|
+
message.version = { oneofKind: undefined };
|
|
10657
|
+
if (value !== undefined)
|
|
10658
|
+
reflectionMergePartial(this, message, value);
|
|
10659
|
+
return message;
|
|
10660
|
+
}
|
|
10661
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10662
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10663
|
+
while (reader.pos < end) {
|
|
10664
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10665
|
+
switch (fieldNo) {
|
|
10666
|
+
case /* org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0 v0 */ 1:
|
|
10667
|
+
message.version = {
|
|
10668
|
+
oneofKind: "v0",
|
|
10669
|
+
v0: GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10670
|
+
};
|
|
10671
|
+
break;
|
|
10672
|
+
default:
|
|
10673
|
+
let u = options.readUnknownField;
|
|
10674
|
+
if (u === "throw")
|
|
10675
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10676
|
+
let d = reader.skip(wireType);
|
|
10677
|
+
if (u !== false)
|
|
10678
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10679
|
+
}
|
|
10680
|
+
}
|
|
10681
|
+
return message;
|
|
10682
|
+
}
|
|
10683
|
+
internalBinaryWrite(message, writer, options) {
|
|
10684
|
+
/* org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0 v0 = 1; */
|
|
10685
|
+
if (message.version.oneofKind === "v0")
|
|
10686
|
+
GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10687
|
+
let u = options.writeUnknownFields;
|
|
10688
|
+
if (u !== false)
|
|
10689
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10690
|
+
return writer;
|
|
10691
|
+
}
|
|
10692
|
+
}
|
|
10693
|
+
/**
|
|
10694
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest
|
|
10695
|
+
*/
|
|
10696
|
+
export const GetFinalizedEpochInfosRequest = new GetFinalizedEpochInfosRequest$Type();
|
|
10697
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10698
|
+
class GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0$Type extends MessageType {
|
|
10699
|
+
constructor() {
|
|
10700
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0", [
|
|
10701
|
+
{ no: 1, name: "start_epoch_index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10702
|
+
{ no: 2, name: "start_epoch_index_included", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
10703
|
+
{ no: 3, name: "end_epoch_index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10704
|
+
{ no: 4, name: "end_epoch_index_included", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
10705
|
+
{ no: 5, name: "prove", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
10706
|
+
]);
|
|
10707
|
+
}
|
|
10708
|
+
create(value) {
|
|
10709
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10710
|
+
message.startEpochIndex = 0;
|
|
10711
|
+
message.startEpochIndexIncluded = false;
|
|
10712
|
+
message.endEpochIndex = 0;
|
|
10713
|
+
message.endEpochIndexIncluded = false;
|
|
10714
|
+
message.prove = false;
|
|
10715
|
+
if (value !== undefined)
|
|
10716
|
+
reflectionMergePartial(this, message, value);
|
|
10717
|
+
return message;
|
|
10718
|
+
}
|
|
10719
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10720
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10721
|
+
while (reader.pos < end) {
|
|
10722
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10723
|
+
switch (fieldNo) {
|
|
10724
|
+
case /* uint32 start_epoch_index */ 1:
|
|
10725
|
+
message.startEpochIndex = reader.uint32();
|
|
10726
|
+
break;
|
|
10727
|
+
case /* bool start_epoch_index_included */ 2:
|
|
10728
|
+
message.startEpochIndexIncluded = reader.bool();
|
|
10729
|
+
break;
|
|
10730
|
+
case /* uint32 end_epoch_index */ 3:
|
|
10731
|
+
message.endEpochIndex = reader.uint32();
|
|
10732
|
+
break;
|
|
10733
|
+
case /* bool end_epoch_index_included */ 4:
|
|
10734
|
+
message.endEpochIndexIncluded = reader.bool();
|
|
10735
|
+
break;
|
|
10736
|
+
case /* bool prove */ 5:
|
|
10737
|
+
message.prove = reader.bool();
|
|
10738
|
+
break;
|
|
10739
|
+
default:
|
|
10740
|
+
let u = options.readUnknownField;
|
|
10741
|
+
if (u === "throw")
|
|
10742
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10743
|
+
let d = reader.skip(wireType);
|
|
10744
|
+
if (u !== false)
|
|
10745
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10746
|
+
}
|
|
10747
|
+
}
|
|
10748
|
+
return message;
|
|
10749
|
+
}
|
|
10750
|
+
internalBinaryWrite(message, writer, options) {
|
|
10751
|
+
/* uint32 start_epoch_index = 1; */
|
|
10752
|
+
if (message.startEpochIndex !== 0)
|
|
10753
|
+
writer.tag(1, WireType.Varint).uint32(message.startEpochIndex);
|
|
10754
|
+
/* bool start_epoch_index_included = 2; */
|
|
10755
|
+
if (message.startEpochIndexIncluded !== false)
|
|
10756
|
+
writer.tag(2, WireType.Varint).bool(message.startEpochIndexIncluded);
|
|
10757
|
+
/* uint32 end_epoch_index = 3; */
|
|
10758
|
+
if (message.endEpochIndex !== 0)
|
|
10759
|
+
writer.tag(3, WireType.Varint).uint32(message.endEpochIndex);
|
|
10760
|
+
/* bool end_epoch_index_included = 4; */
|
|
10761
|
+
if (message.endEpochIndexIncluded !== false)
|
|
10762
|
+
writer.tag(4, WireType.Varint).bool(message.endEpochIndexIncluded);
|
|
10763
|
+
/* bool prove = 5; */
|
|
10764
|
+
if (message.prove !== false)
|
|
10765
|
+
writer.tag(5, WireType.Varint).bool(message.prove);
|
|
10766
|
+
let u = options.writeUnknownFields;
|
|
10767
|
+
if (u !== false)
|
|
10768
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10769
|
+
return writer;
|
|
10770
|
+
}
|
|
10771
|
+
}
|
|
10772
|
+
/**
|
|
10773
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosRequest.GetFinalizedEpochInfosRequestV0
|
|
10774
|
+
*/
|
|
10775
|
+
export const GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0 = new GetFinalizedEpochInfosRequest_GetFinalizedEpochInfosRequestV0$Type();
|
|
10776
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10777
|
+
class GetFinalizedEpochInfosResponse$Type extends MessageType {
|
|
10778
|
+
constructor() {
|
|
10779
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse", [
|
|
10780
|
+
{ no: 1, name: "v0", kind: "message", oneof: "version", T: () => GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0 }
|
|
10781
|
+
]);
|
|
10782
|
+
}
|
|
10783
|
+
create(value) {
|
|
10784
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10785
|
+
message.version = { oneofKind: undefined };
|
|
10786
|
+
if (value !== undefined)
|
|
10787
|
+
reflectionMergePartial(this, message, value);
|
|
10788
|
+
return message;
|
|
10789
|
+
}
|
|
10790
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10791
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10792
|
+
while (reader.pos < end) {
|
|
10793
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10794
|
+
switch (fieldNo) {
|
|
10795
|
+
case /* org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0 v0 */ 1:
|
|
10796
|
+
message.version = {
|
|
10797
|
+
oneofKind: "v0",
|
|
10798
|
+
v0: GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0.internalBinaryRead(reader, reader.uint32(), options, message.version.v0)
|
|
10799
|
+
};
|
|
10800
|
+
break;
|
|
10801
|
+
default:
|
|
10802
|
+
let u = options.readUnknownField;
|
|
10803
|
+
if (u === "throw")
|
|
10804
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10805
|
+
let d = reader.skip(wireType);
|
|
10806
|
+
if (u !== false)
|
|
10807
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10808
|
+
}
|
|
10809
|
+
}
|
|
10810
|
+
return message;
|
|
10811
|
+
}
|
|
10812
|
+
internalBinaryWrite(message, writer, options) {
|
|
10813
|
+
/* org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0 v0 = 1; */
|
|
10814
|
+
if (message.version.oneofKind === "v0")
|
|
10815
|
+
GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0.internalBinaryWrite(message.version.v0, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10816
|
+
let u = options.writeUnknownFields;
|
|
10817
|
+
if (u !== false)
|
|
10818
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10819
|
+
return writer;
|
|
10820
|
+
}
|
|
10821
|
+
}
|
|
10822
|
+
/**
|
|
10823
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse
|
|
10824
|
+
*/
|
|
10825
|
+
export const GetFinalizedEpochInfosResponse = new GetFinalizedEpochInfosResponse$Type();
|
|
10826
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10827
|
+
class GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0$Type extends MessageType {
|
|
10828
|
+
constructor() {
|
|
10829
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0", [
|
|
10830
|
+
{ no: 1, name: "epochs", kind: "message", oneof: "result", T: () => GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos },
|
|
10831
|
+
{ no: 2, name: "proof", kind: "message", oneof: "result", T: () => Proof },
|
|
10832
|
+
{ no: 3, name: "metadata", kind: "message", T: () => ResponseMetadata }
|
|
10833
|
+
]);
|
|
10834
|
+
}
|
|
10835
|
+
create(value) {
|
|
10836
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10837
|
+
message.result = { oneofKind: undefined };
|
|
10838
|
+
if (value !== undefined)
|
|
10839
|
+
reflectionMergePartial(this, message, value);
|
|
10840
|
+
return message;
|
|
10841
|
+
}
|
|
10842
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10843
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10844
|
+
while (reader.pos < end) {
|
|
10845
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10846
|
+
switch (fieldNo) {
|
|
10847
|
+
case /* org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfos epochs */ 1:
|
|
10848
|
+
message.result = {
|
|
10849
|
+
oneofKind: "epochs",
|
|
10850
|
+
epochs: GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos.internalBinaryRead(reader, reader.uint32(), options, message.result.epochs)
|
|
10851
|
+
};
|
|
10852
|
+
break;
|
|
10853
|
+
case /* org.dash.platform.dapi.v0.Proof proof */ 2:
|
|
10854
|
+
message.result = {
|
|
10855
|
+
oneofKind: "proof",
|
|
10856
|
+
proof: Proof.internalBinaryRead(reader, reader.uint32(), options, message.result.proof)
|
|
10857
|
+
};
|
|
10858
|
+
break;
|
|
10859
|
+
case /* org.dash.platform.dapi.v0.ResponseMetadata metadata */ 3:
|
|
10860
|
+
message.metadata = ResponseMetadata.internalBinaryRead(reader, reader.uint32(), options, message.metadata);
|
|
10861
|
+
break;
|
|
10862
|
+
default:
|
|
10863
|
+
let u = options.readUnknownField;
|
|
10864
|
+
if (u === "throw")
|
|
10865
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10866
|
+
let d = reader.skip(wireType);
|
|
10867
|
+
if (u !== false)
|
|
10868
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10869
|
+
}
|
|
10870
|
+
}
|
|
10871
|
+
return message;
|
|
10872
|
+
}
|
|
10873
|
+
internalBinaryWrite(message, writer, options) {
|
|
10874
|
+
/* org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfos epochs = 1; */
|
|
10875
|
+
if (message.result.oneofKind === "epochs")
|
|
10876
|
+
GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos.internalBinaryWrite(message.result.epochs, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10877
|
+
/* org.dash.platform.dapi.v0.Proof proof = 2; */
|
|
10878
|
+
if (message.result.oneofKind === "proof")
|
|
10879
|
+
Proof.internalBinaryWrite(message.result.proof, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
10880
|
+
/* org.dash.platform.dapi.v0.ResponseMetadata metadata = 3; */
|
|
10881
|
+
if (message.metadata)
|
|
10882
|
+
ResponseMetadata.internalBinaryWrite(message.metadata, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
10883
|
+
let u = options.writeUnknownFields;
|
|
10884
|
+
if (u !== false)
|
|
10885
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10886
|
+
return writer;
|
|
10887
|
+
}
|
|
10888
|
+
}
|
|
10889
|
+
/**
|
|
10890
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0
|
|
10891
|
+
*/
|
|
10892
|
+
export const GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0 = new GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0$Type();
|
|
10893
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10894
|
+
class GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos$Type extends MessageType {
|
|
10895
|
+
constructor() {
|
|
10896
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfos", [
|
|
10897
|
+
{ no: 1, name: "finalized_epoch_infos", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo }
|
|
10898
|
+
]);
|
|
10899
|
+
}
|
|
10900
|
+
create(value) {
|
|
10901
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10902
|
+
message.finalizedEpochInfos = [];
|
|
10903
|
+
if (value !== undefined)
|
|
10904
|
+
reflectionMergePartial(this, message, value);
|
|
10905
|
+
return message;
|
|
10906
|
+
}
|
|
10907
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10908
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10909
|
+
while (reader.pos < end) {
|
|
10910
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10911
|
+
switch (fieldNo) {
|
|
10912
|
+
case /* repeated org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo finalized_epoch_infos */ 1:
|
|
10913
|
+
message.finalizedEpochInfos.push(GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo.internalBinaryRead(reader, reader.uint32(), options));
|
|
10914
|
+
break;
|
|
10915
|
+
default:
|
|
10916
|
+
let u = options.readUnknownField;
|
|
10917
|
+
if (u === "throw")
|
|
10918
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
10919
|
+
let d = reader.skip(wireType);
|
|
10920
|
+
if (u !== false)
|
|
10921
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
10922
|
+
}
|
|
10923
|
+
}
|
|
10924
|
+
return message;
|
|
10925
|
+
}
|
|
10926
|
+
internalBinaryWrite(message, writer, options) {
|
|
10927
|
+
/* repeated org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo finalized_epoch_infos = 1; */
|
|
10928
|
+
for (let i = 0; i < message.finalizedEpochInfos.length; i++)
|
|
10929
|
+
GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo.internalBinaryWrite(message.finalizedEpochInfos[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
10930
|
+
let u = options.writeUnknownFields;
|
|
10931
|
+
if (u !== false)
|
|
10932
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
10933
|
+
return writer;
|
|
10934
|
+
}
|
|
10935
|
+
}
|
|
10936
|
+
/**
|
|
10937
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfos
|
|
10938
|
+
*/
|
|
10939
|
+
export const GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos = new GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfos$Type();
|
|
10940
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
10941
|
+
class GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo$Type extends MessageType {
|
|
10942
|
+
constructor() {
|
|
10943
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo", [
|
|
10944
|
+
{ no: 1, name: "number", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10945
|
+
{ no: 2, name: "first_block_height", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10946
|
+
{ no: 3, name: "first_core_block_height", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10947
|
+
{ no: 4, name: "first_block_time", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10948
|
+
{ no: 5, name: "fee_multiplier", kind: "scalar", T: 1 /*ScalarType.DOUBLE*/ },
|
|
10949
|
+
{ no: 6, name: "protocol_version", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10950
|
+
{ no: 7, name: "total_blocks_in_epoch", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10951
|
+
{ no: 8, name: "next_epoch_start_core_block_height", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
10952
|
+
{ no: 9, name: "total_processing_fees", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10953
|
+
{ no: 10, name: "total_distributed_storage_fees", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10954
|
+
{ no: 11, name: "total_created_storage_fees", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10955
|
+
{ no: 12, name: "core_block_rewards", kind: "scalar", T: 4 /*ScalarType.UINT64*/ },
|
|
10956
|
+
{ no: 13, name: "block_proposers", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer }
|
|
10957
|
+
]);
|
|
10958
|
+
}
|
|
10959
|
+
create(value) {
|
|
10960
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
10961
|
+
message.number = 0;
|
|
10962
|
+
message.firstBlockHeight = "0";
|
|
10963
|
+
message.firstCoreBlockHeight = 0;
|
|
10964
|
+
message.firstBlockTime = "0";
|
|
10965
|
+
message.feeMultiplier = 0;
|
|
10966
|
+
message.protocolVersion = 0;
|
|
10967
|
+
message.totalBlocksInEpoch = "0";
|
|
10968
|
+
message.nextEpochStartCoreBlockHeight = 0;
|
|
10969
|
+
message.totalProcessingFees = "0";
|
|
10970
|
+
message.totalDistributedStorageFees = "0";
|
|
10971
|
+
message.totalCreatedStorageFees = "0";
|
|
10972
|
+
message.coreBlockRewards = "0";
|
|
10973
|
+
message.blockProposers = [];
|
|
10974
|
+
if (value !== undefined)
|
|
10975
|
+
reflectionMergePartial(this, message, value);
|
|
10976
|
+
return message;
|
|
10977
|
+
}
|
|
10978
|
+
internalBinaryRead(reader, length, options, target) {
|
|
10979
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
10980
|
+
while (reader.pos < end) {
|
|
10981
|
+
let [fieldNo, wireType] = reader.tag();
|
|
10982
|
+
switch (fieldNo) {
|
|
10983
|
+
case /* uint32 number */ 1:
|
|
10984
|
+
message.number = reader.uint32();
|
|
10985
|
+
break;
|
|
10986
|
+
case /* uint64 first_block_height = 2 [jstype = JS_STRING] */ 2:
|
|
10987
|
+
message.firstBlockHeight = reader.uint64().toString();
|
|
10988
|
+
break;
|
|
10989
|
+
case /* uint32 first_core_block_height */ 3:
|
|
10990
|
+
message.firstCoreBlockHeight = reader.uint32();
|
|
10991
|
+
break;
|
|
10992
|
+
case /* uint64 first_block_time = 4 [jstype = JS_STRING] */ 4:
|
|
10993
|
+
message.firstBlockTime = reader.uint64().toString();
|
|
10994
|
+
break;
|
|
10995
|
+
case /* double fee_multiplier */ 5:
|
|
10996
|
+
message.feeMultiplier = reader.double();
|
|
10997
|
+
break;
|
|
10998
|
+
case /* uint32 protocol_version */ 6:
|
|
10999
|
+
message.protocolVersion = reader.uint32();
|
|
11000
|
+
break;
|
|
11001
|
+
case /* uint64 total_blocks_in_epoch = 7 [jstype = JS_STRING] */ 7:
|
|
11002
|
+
message.totalBlocksInEpoch = reader.uint64().toString();
|
|
11003
|
+
break;
|
|
11004
|
+
case /* uint32 next_epoch_start_core_block_height */ 8:
|
|
11005
|
+
message.nextEpochStartCoreBlockHeight = reader.uint32();
|
|
11006
|
+
break;
|
|
11007
|
+
case /* uint64 total_processing_fees = 9 [jstype = JS_STRING] */ 9:
|
|
11008
|
+
message.totalProcessingFees = reader.uint64().toString();
|
|
11009
|
+
break;
|
|
11010
|
+
case /* uint64 total_distributed_storage_fees = 10 [jstype = JS_STRING] */ 10:
|
|
11011
|
+
message.totalDistributedStorageFees = reader.uint64().toString();
|
|
11012
|
+
break;
|
|
11013
|
+
case /* uint64 total_created_storage_fees = 11 [jstype = JS_STRING] */ 11:
|
|
11014
|
+
message.totalCreatedStorageFees = reader.uint64().toString();
|
|
11015
|
+
break;
|
|
11016
|
+
case /* uint64 core_block_rewards = 12 [jstype = JS_STRING] */ 12:
|
|
11017
|
+
message.coreBlockRewards = reader.uint64().toString();
|
|
11018
|
+
break;
|
|
11019
|
+
case /* repeated org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer block_proposers */ 13:
|
|
11020
|
+
message.blockProposers.push(GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer.internalBinaryRead(reader, reader.uint32(), options));
|
|
11021
|
+
break;
|
|
11022
|
+
default:
|
|
11023
|
+
let u = options.readUnknownField;
|
|
11024
|
+
if (u === "throw")
|
|
11025
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11026
|
+
let d = reader.skip(wireType);
|
|
11027
|
+
if (u !== false)
|
|
11028
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11029
|
+
}
|
|
11030
|
+
}
|
|
11031
|
+
return message;
|
|
11032
|
+
}
|
|
11033
|
+
internalBinaryWrite(message, writer, options) {
|
|
11034
|
+
/* uint32 number = 1; */
|
|
11035
|
+
if (message.number !== 0)
|
|
11036
|
+
writer.tag(1, WireType.Varint).uint32(message.number);
|
|
11037
|
+
/* uint64 first_block_height = 2 [jstype = JS_STRING]; */
|
|
11038
|
+
if (message.firstBlockHeight !== "0")
|
|
11039
|
+
writer.tag(2, WireType.Varint).uint64(message.firstBlockHeight);
|
|
11040
|
+
/* uint32 first_core_block_height = 3; */
|
|
11041
|
+
if (message.firstCoreBlockHeight !== 0)
|
|
11042
|
+
writer.tag(3, WireType.Varint).uint32(message.firstCoreBlockHeight);
|
|
11043
|
+
/* uint64 first_block_time = 4 [jstype = JS_STRING]; */
|
|
11044
|
+
if (message.firstBlockTime !== "0")
|
|
11045
|
+
writer.tag(4, WireType.Varint).uint64(message.firstBlockTime);
|
|
11046
|
+
/* double fee_multiplier = 5; */
|
|
11047
|
+
if (message.feeMultiplier !== 0)
|
|
11048
|
+
writer.tag(5, WireType.Bit64).double(message.feeMultiplier);
|
|
11049
|
+
/* uint32 protocol_version = 6; */
|
|
11050
|
+
if (message.protocolVersion !== 0)
|
|
11051
|
+
writer.tag(6, WireType.Varint).uint32(message.protocolVersion);
|
|
11052
|
+
/* uint64 total_blocks_in_epoch = 7 [jstype = JS_STRING]; */
|
|
11053
|
+
if (message.totalBlocksInEpoch !== "0")
|
|
11054
|
+
writer.tag(7, WireType.Varint).uint64(message.totalBlocksInEpoch);
|
|
11055
|
+
/* uint32 next_epoch_start_core_block_height = 8; */
|
|
11056
|
+
if (message.nextEpochStartCoreBlockHeight !== 0)
|
|
11057
|
+
writer.tag(8, WireType.Varint).uint32(message.nextEpochStartCoreBlockHeight);
|
|
11058
|
+
/* uint64 total_processing_fees = 9 [jstype = JS_STRING]; */
|
|
11059
|
+
if (message.totalProcessingFees !== "0")
|
|
11060
|
+
writer.tag(9, WireType.Varint).uint64(message.totalProcessingFees);
|
|
11061
|
+
/* uint64 total_distributed_storage_fees = 10 [jstype = JS_STRING]; */
|
|
11062
|
+
if (message.totalDistributedStorageFees !== "0")
|
|
11063
|
+
writer.tag(10, WireType.Varint).uint64(message.totalDistributedStorageFees);
|
|
11064
|
+
/* uint64 total_created_storage_fees = 11 [jstype = JS_STRING]; */
|
|
11065
|
+
if (message.totalCreatedStorageFees !== "0")
|
|
11066
|
+
writer.tag(11, WireType.Varint).uint64(message.totalCreatedStorageFees);
|
|
11067
|
+
/* uint64 core_block_rewards = 12 [jstype = JS_STRING]; */
|
|
11068
|
+
if (message.coreBlockRewards !== "0")
|
|
11069
|
+
writer.tag(12, WireType.Varint).uint64(message.coreBlockRewards);
|
|
11070
|
+
/* repeated org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer block_proposers = 13; */
|
|
11071
|
+
for (let i = 0; i < message.blockProposers.length; i++)
|
|
11072
|
+
GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer.internalBinaryWrite(message.blockProposers[i], writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
11073
|
+
let u = options.writeUnknownFields;
|
|
11074
|
+
if (u !== false)
|
|
11075
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11076
|
+
return writer;
|
|
11077
|
+
}
|
|
11078
|
+
}
|
|
11079
|
+
/**
|
|
11080
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.FinalizedEpochInfo
|
|
11081
|
+
*/
|
|
11082
|
+
export const GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo = new GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_FinalizedEpochInfo$Type();
|
|
11083
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11084
|
+
class GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer$Type extends MessageType {
|
|
11085
|
+
constructor() {
|
|
11086
|
+
super("org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer", [
|
|
11087
|
+
{ no: 1, name: "proposer_id", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
11088
|
+
{ no: 2, name: "block_count", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
|
|
11089
|
+
]);
|
|
11090
|
+
}
|
|
11091
|
+
create(value) {
|
|
11092
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
11093
|
+
message.proposerId = new Uint8Array(0);
|
|
11094
|
+
message.blockCount = 0;
|
|
11095
|
+
if (value !== undefined)
|
|
11096
|
+
reflectionMergePartial(this, message, value);
|
|
11097
|
+
return message;
|
|
11098
|
+
}
|
|
11099
|
+
internalBinaryRead(reader, length, options, target) {
|
|
11100
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
11101
|
+
while (reader.pos < end) {
|
|
11102
|
+
let [fieldNo, wireType] = reader.tag();
|
|
11103
|
+
switch (fieldNo) {
|
|
11104
|
+
case /* bytes proposer_id */ 1:
|
|
11105
|
+
message.proposerId = reader.bytes();
|
|
11106
|
+
break;
|
|
11107
|
+
case /* uint32 block_count */ 2:
|
|
11108
|
+
message.blockCount = reader.uint32();
|
|
11109
|
+
break;
|
|
11110
|
+
default:
|
|
11111
|
+
let u = options.readUnknownField;
|
|
11112
|
+
if (u === "throw")
|
|
11113
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
11114
|
+
let d = reader.skip(wireType);
|
|
11115
|
+
if (u !== false)
|
|
11116
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
11117
|
+
}
|
|
11118
|
+
}
|
|
11119
|
+
return message;
|
|
11120
|
+
}
|
|
11121
|
+
internalBinaryWrite(message, writer, options) {
|
|
11122
|
+
/* bytes proposer_id = 1; */
|
|
11123
|
+
if (message.proposerId.length)
|
|
11124
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.proposerId);
|
|
11125
|
+
/* uint32 block_count = 2; */
|
|
11126
|
+
if (message.blockCount !== 0)
|
|
11127
|
+
writer.tag(2, WireType.Varint).uint32(message.blockCount);
|
|
11128
|
+
let u = options.writeUnknownFields;
|
|
11129
|
+
if (u !== false)
|
|
11130
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
11131
|
+
return writer;
|
|
11132
|
+
}
|
|
11133
|
+
}
|
|
11134
|
+
/**
|
|
11135
|
+
* @generated MessageType for protobuf message org.dash.platform.dapi.v0.GetFinalizedEpochInfosResponse.GetFinalizedEpochInfosResponseV0.BlockProposer
|
|
11136
|
+
*/
|
|
11137
|
+
export const GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer = new GetFinalizedEpochInfosResponse_GetFinalizedEpochInfosResponseV0_BlockProposer$Type();
|
|
9072
11138
|
/**
|
|
9073
11139
|
* @generated ServiceType for protobuf service org.dash.platform.dapi.v0.Platform
|
|
9074
11140
|
*/
|
|
@@ -9087,6 +11153,7 @@ export const Platform = new ServiceType("org.dash.platform.dapi.v0.Platform", [
|
|
|
9087
11153
|
{ name: "getIdentityByPublicKeyHash", options: {}, I: GetIdentityByPublicKeyHashRequest, O: GetIdentityByPublicKeyHashResponse },
|
|
9088
11154
|
{ name: "getIdentityByNonUniquePublicKeyHash", options: {}, I: GetIdentityByNonUniquePublicKeyHashRequest, O: GetIdentityByNonUniquePublicKeyHashResponse },
|
|
9089
11155
|
{ name: "getEpochsInfo", options: {}, I: GetEpochsInfoRequest, O: GetEpochsInfoResponse },
|
|
11156
|
+
{ name: "getFinalizedEpochInfos", options: {}, I: GetFinalizedEpochInfosRequest, O: GetFinalizedEpochInfosResponse },
|
|
9090
11157
|
{ name: "getContestedResources", options: {}, I: GetContestedResourcesRequest, O: GetContestedResourcesResponse },
|
|
9091
11158
|
{ name: "getContestedResourceVoteState", options: {}, I: GetContestedResourceVoteStateRequest, O: GetContestedResourceVoteStateResponse },
|
|
9092
11159
|
{ name: "getTotalCreditsInPlatform", options: {}, I: GetTotalCreditsInPlatformRequest, O: GetTotalCreditsInPlatformResponse },
|
|
@@ -9098,5 +11165,11 @@ export const Platform = new ServiceType("org.dash.platform.dapi.v0.Platform", [
|
|
|
9098
11165
|
{ name: "getTokenTotalSupply", options: {}, I: GetTokenTotalSupplyRequest, O: GetTokenTotalSupplyResponse },
|
|
9099
11166
|
{ name: "waitForStateTransitionResult", options: {}, I: WaitForStateTransitionResultRequest, O: WaitForStateTransitionResultResponse },
|
|
9100
11167
|
{ name: "getAddressInfo", options: {}, I: GetAddressInfoRequest, O: GetAddressInfoResponse },
|
|
9101
|
-
{ name: "getAddressesInfos", options: {}, I: GetAddressesInfosRequest, O: GetAddressesInfosResponse }
|
|
11168
|
+
{ name: "getAddressesInfos", options: {}, I: GetAddressesInfosRequest, O: GetAddressesInfosResponse },
|
|
11169
|
+
{ name: "getShieldedEncryptedNotes", options: {}, I: GetShieldedEncryptedNotesRequest, O: GetShieldedEncryptedNotesResponse },
|
|
11170
|
+
{ name: "getShieldedAnchors", options: {}, I: GetShieldedAnchorsRequest, O: GetShieldedAnchorsResponse },
|
|
11171
|
+
{ name: "getMostRecentShieldedAnchor", options: {}, I: GetMostRecentShieldedAnchorRequest, O: GetMostRecentShieldedAnchorResponse },
|
|
11172
|
+
{ name: "getShieldedPoolState", options: {}, I: GetShieldedPoolStateRequest, O: GetShieldedPoolStateResponse },
|
|
11173
|
+
{ name: "getShieldedNotesCount", options: {}, I: GetShieldedNotesCountRequest, O: GetShieldedNotesCountResponse },
|
|
11174
|
+
{ name: "getShieldedNullifiers", options: {}, I: GetShieldedNullifiersRequest, O: GetShieldedNullifiersResponse }
|
|
9102
11175
|
]);
|