@vocdoni/proto 1.15.5 → 1.15.8
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/build/js/client-store/index.js +5 -2
- package/build/js/client-store/index.mjs +5 -2
- package/build/js/{index-cbd70a7b.d.ts → index-8445529b.d.ts} +1963 -403
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +162 -27
- package/build/js/index.mjs +162 -27
- package/build/js/metadata/index.js +2 -2
- package/build/js/metadata/index.mjs +2 -2
- package/build/js/vochain/index.d.ts +1 -1
- package/build/js/vochain/index.js +156 -23
- package/build/js/vochain/index.mjs +155 -23
- package/package.json +2 -2
package/build/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { i as ClientStore } from './index-d457aeb5.js';
|
|
2
2
|
export { i as Metadata } from './index-05df597a.js';
|
|
3
|
-
export { i as Vochain } from './index-
|
|
3
|
+
export { i as Vochain } from './index-8445529b.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
5
5
|
import './entity-e8dfcd83.js';
|
package/build/js/index.js
CHANGED
|
@@ -2903,7 +2903,7 @@ var Account = {
|
|
|
2903
2903
|
if (message.address !== "") {
|
|
2904
2904
|
writer.uint32(26).string(message.address);
|
|
2905
2905
|
}
|
|
2906
|
-
if (message.hasBackup
|
|
2906
|
+
if (message.hasBackup !== false) {
|
|
2907
2907
|
writer.uint32(32).bool(message.hasBackup);
|
|
2908
2908
|
}
|
|
2909
2909
|
if (message.extra !== void 0) {
|
|
@@ -2992,7 +2992,7 @@ var Account = {
|
|
|
2992
2992
|
if (message.address !== "") {
|
|
2993
2993
|
obj.address = message.address;
|
|
2994
2994
|
}
|
|
2995
|
-
if (message.hasBackup
|
|
2995
|
+
if (message.hasBackup !== false) {
|
|
2996
2996
|
obj.hasBackup = message.hasBackup;
|
|
2997
2997
|
}
|
|
2998
2998
|
if (message.extra !== void 0) {
|
|
@@ -3628,6 +3628,9 @@ function longToNumber(long) {
|
|
|
3628
3628
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3629
3629
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3630
3630
|
}
|
|
3631
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
3632
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
3633
|
+
}
|
|
3631
3634
|
return long.toNumber();
|
|
3632
3635
|
}
|
|
3633
3636
|
if (import_minimal4.default.util.Long !== import_long.default) {
|
|
@@ -4180,7 +4183,7 @@ var Feed = {
|
|
|
4180
4183
|
if (message.favicon !== "") {
|
|
4181
4184
|
writer.uint32(58).string(message.favicon);
|
|
4182
4185
|
}
|
|
4183
|
-
if (message.expired
|
|
4186
|
+
if (message.expired !== false) {
|
|
4184
4187
|
writer.uint32(64).bool(message.expired);
|
|
4185
4188
|
}
|
|
4186
4189
|
for (const v of message.items) {
|
|
@@ -4309,7 +4312,7 @@ var Feed = {
|
|
|
4309
4312
|
if (message.favicon !== "") {
|
|
4310
4313
|
obj.favicon = message.favicon;
|
|
4311
4314
|
}
|
|
4312
|
-
if (message.expired
|
|
4315
|
+
if (message.expired !== false) {
|
|
4313
4316
|
obj.expired = message.expired;
|
|
4314
4317
|
}
|
|
4315
4318
|
if (message.items?.length) {
|
|
@@ -5717,6 +5720,7 @@ __export(vochain_exports, {
|
|
|
5717
5720
|
ProofCA_Type: () => ProofCA_Type,
|
|
5718
5721
|
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5719
5722
|
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5723
|
+
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5720
5724
|
ProofMinime: () => ProofMinime,
|
|
5721
5725
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5722
5726
|
QuestionResult: () => QuestionResult,
|
|
@@ -6113,6 +6117,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6113
6117
|
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6114
6118
|
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6115
6119
|
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6120
|
+
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6116
6121
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6117
6122
|
return CensusOrigin2;
|
|
6118
6123
|
})(CensusOrigin || {});
|
|
@@ -6145,6 +6150,9 @@ function censusOriginFromJSON(object) {
|
|
|
6145
6150
|
case 15:
|
|
6146
6151
|
case "MINI_ME":
|
|
6147
6152
|
return 15 /* MINI_ME */;
|
|
6153
|
+
case 16:
|
|
6154
|
+
case "FARCASTER_FRAME":
|
|
6155
|
+
return 16 /* FARCASTER_FRAME */;
|
|
6148
6156
|
case -1:
|
|
6149
6157
|
case "UNRECOGNIZED":
|
|
6150
6158
|
default:
|
|
@@ -6171,6 +6179,8 @@ function censusOriginToJSON(object) {
|
|
|
6171
6179
|
return "ERC777";
|
|
6172
6180
|
case 15 /* MINI_ME */:
|
|
6173
6181
|
return "MINI_ME";
|
|
6182
|
+
case 16 /* FARCASTER_FRAME */:
|
|
6183
|
+
return "FARCASTER_FRAME";
|
|
6174
6184
|
case -1 /* UNRECOGNIZED */:
|
|
6175
6185
|
default:
|
|
6176
6186
|
return "UNRECOGNIZED";
|
|
@@ -6183,6 +6193,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6183
6193
|
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6184
6194
|
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6185
6195
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6196
|
+
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6186
6197
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6187
6198
|
return Census_Type2;
|
|
6188
6199
|
})(Census_Type || {});
|
|
@@ -6206,6 +6217,9 @@ function census_TypeFromJSON(object) {
|
|
|
6206
6217
|
case 5:
|
|
6207
6218
|
case "CA":
|
|
6208
6219
|
return 5 /* CA */;
|
|
6220
|
+
case 6:
|
|
6221
|
+
case "FARCASTER_FRAME":
|
|
6222
|
+
return 6 /* FARCASTER_FRAME */;
|
|
6209
6223
|
case -1:
|
|
6210
6224
|
case "UNRECOGNIZED":
|
|
6211
6225
|
default:
|
|
@@ -6226,6 +6240,8 @@ function census_TypeToJSON(object) {
|
|
|
6226
6240
|
return "ETHEREUMACCOUNT";
|
|
6227
6241
|
case 5 /* CA */:
|
|
6228
6242
|
return "CA";
|
|
6243
|
+
case 6 /* FARCASTER_FRAME */:
|
|
6244
|
+
return "FARCASTER_FRAME";
|
|
6229
6245
|
case -1 /* UNRECOGNIZED */:
|
|
6230
6246
|
default:
|
|
6231
6247
|
return "UNRECOGNIZED";
|
|
@@ -6541,6 +6557,9 @@ var Proof = {
|
|
|
6541
6557
|
case "minimeStorage":
|
|
6542
6558
|
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6543
6559
|
break;
|
|
6560
|
+
case "farcasterFrame":
|
|
6561
|
+
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6562
|
+
break;
|
|
6544
6563
|
}
|
|
6545
6564
|
return writer;
|
|
6546
6565
|
},
|
|
@@ -6593,6 +6612,15 @@ var Proof = {
|
|
|
6593
6612
|
}
|
|
6594
6613
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6595
6614
|
continue;
|
|
6615
|
+
case 9:
|
|
6616
|
+
if (tag !== 74) {
|
|
6617
|
+
break;
|
|
6618
|
+
}
|
|
6619
|
+
message.payload = {
|
|
6620
|
+
$case: "farcasterFrame",
|
|
6621
|
+
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6622
|
+
};
|
|
6623
|
+
continue;
|
|
6596
6624
|
}
|
|
6597
6625
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6598
6626
|
break;
|
|
@@ -6603,7 +6631,7 @@ var Proof = {
|
|
|
6603
6631
|
},
|
|
6604
6632
|
fromJSON(object) {
|
|
6605
6633
|
return {
|
|
6606
|
-
payload: isSet8(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet8(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet8(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet8(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet8(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet8(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
|
|
6634
|
+
payload: isSet8(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet8(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet8(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet8(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet8(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet8(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : isSet8(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
|
|
6607
6635
|
};
|
|
6608
6636
|
},
|
|
6609
6637
|
toJSON(message) {
|
|
@@ -6626,6 +6654,9 @@ var Proof = {
|
|
|
6626
6654
|
if (message.payload?.$case === "minimeStorage") {
|
|
6627
6655
|
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6628
6656
|
}
|
|
6657
|
+
if (message.payload?.$case === "farcasterFrame") {
|
|
6658
|
+
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6659
|
+
}
|
|
6629
6660
|
return obj;
|
|
6630
6661
|
},
|
|
6631
6662
|
create(base) {
|
|
@@ -6660,6 +6691,12 @@ var Proof = {
|
|
|
6660
6691
|
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6661
6692
|
};
|
|
6662
6693
|
}
|
|
6694
|
+
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6695
|
+
message.payload = {
|
|
6696
|
+
$case: "farcasterFrame",
|
|
6697
|
+
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6698
|
+
};
|
|
6699
|
+
}
|
|
6663
6700
|
return message;
|
|
6664
6701
|
}
|
|
6665
6702
|
};
|
|
@@ -7291,6 +7328,86 @@ var ProofZkSNARK = {
|
|
|
7291
7328
|
return message;
|
|
7292
7329
|
}
|
|
7293
7330
|
};
|
|
7331
|
+
function createBaseProofFarcasterFrame() {
|
|
7332
|
+
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7333
|
+
}
|
|
7334
|
+
var ProofFarcasterFrame = {
|
|
7335
|
+
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7336
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7337
|
+
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7338
|
+
}
|
|
7339
|
+
if (message.censusProof !== void 0) {
|
|
7340
|
+
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7341
|
+
}
|
|
7342
|
+
if (message.publicKey.length !== 0) {
|
|
7343
|
+
writer.uint32(26).bytes(message.publicKey);
|
|
7344
|
+
}
|
|
7345
|
+
return writer;
|
|
7346
|
+
},
|
|
7347
|
+
decode(input, length) {
|
|
7348
|
+
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7349
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7350
|
+
const message = createBaseProofFarcasterFrame();
|
|
7351
|
+
while (reader.pos < end) {
|
|
7352
|
+
const tag = reader.uint32();
|
|
7353
|
+
switch (tag >>> 3) {
|
|
7354
|
+
case 1:
|
|
7355
|
+
if (tag !== 10) {
|
|
7356
|
+
break;
|
|
7357
|
+
}
|
|
7358
|
+
message.signedFrameMessageBody = reader.bytes();
|
|
7359
|
+
continue;
|
|
7360
|
+
case 2:
|
|
7361
|
+
if (tag !== 18) {
|
|
7362
|
+
break;
|
|
7363
|
+
}
|
|
7364
|
+
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7365
|
+
continue;
|
|
7366
|
+
case 3:
|
|
7367
|
+
if (tag !== 26) {
|
|
7368
|
+
break;
|
|
7369
|
+
}
|
|
7370
|
+
message.publicKey = reader.bytes();
|
|
7371
|
+
continue;
|
|
7372
|
+
}
|
|
7373
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7374
|
+
break;
|
|
7375
|
+
}
|
|
7376
|
+
reader.skipType(tag & 7);
|
|
7377
|
+
}
|
|
7378
|
+
return message;
|
|
7379
|
+
},
|
|
7380
|
+
fromJSON(object) {
|
|
7381
|
+
return {
|
|
7382
|
+
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7383
|
+
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7384
|
+
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7385
|
+
};
|
|
7386
|
+
},
|
|
7387
|
+
toJSON(message) {
|
|
7388
|
+
const obj = {};
|
|
7389
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7390
|
+
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7391
|
+
}
|
|
7392
|
+
if (message.censusProof !== void 0) {
|
|
7393
|
+
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7394
|
+
}
|
|
7395
|
+
if (message.publicKey.length !== 0) {
|
|
7396
|
+
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7397
|
+
}
|
|
7398
|
+
return obj;
|
|
7399
|
+
},
|
|
7400
|
+
create(base) {
|
|
7401
|
+
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7402
|
+
},
|
|
7403
|
+
fromPartial(object) {
|
|
7404
|
+
const message = createBaseProofFarcasterFrame();
|
|
7405
|
+
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7406
|
+
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7407
|
+
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7408
|
+
return message;
|
|
7409
|
+
}
|
|
7410
|
+
};
|
|
7294
7411
|
function createBaseAccount2() {
|
|
7295
7412
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7296
7413
|
}
|
|
@@ -7808,7 +7925,8 @@ function createBaseSetProcessTx() {
|
|
|
7808
7925
|
proof: void 0,
|
|
7809
7926
|
results: void 0,
|
|
7810
7927
|
tempSIKs: void 0,
|
|
7811
|
-
duration: void 0
|
|
7928
|
+
duration: void 0,
|
|
7929
|
+
censusSize: void 0
|
|
7812
7930
|
};
|
|
7813
7931
|
}
|
|
7814
7932
|
var SetProcessTx = {
|
|
@@ -7846,6 +7964,9 @@ var SetProcessTx = {
|
|
|
7846
7964
|
if (message.duration !== void 0) {
|
|
7847
7965
|
writer.uint32(88).uint32(message.duration);
|
|
7848
7966
|
}
|
|
7967
|
+
if (message.censusSize !== void 0) {
|
|
7968
|
+
writer.uint32(96).uint64(message.censusSize);
|
|
7969
|
+
}
|
|
7849
7970
|
return writer;
|
|
7850
7971
|
},
|
|
7851
7972
|
decode(input, length) {
|
|
@@ -7921,6 +8042,12 @@ var SetProcessTx = {
|
|
|
7921
8042
|
}
|
|
7922
8043
|
message.duration = reader.uint32();
|
|
7923
8044
|
continue;
|
|
8045
|
+
case 12:
|
|
8046
|
+
if (tag !== 96) {
|
|
8047
|
+
break;
|
|
8048
|
+
}
|
|
8049
|
+
message.censusSize = longToNumber2(reader.uint64());
|
|
8050
|
+
continue;
|
|
7924
8051
|
}
|
|
7925
8052
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7926
8053
|
break;
|
|
@@ -7941,7 +8068,8 @@ var SetProcessTx = {
|
|
|
7941
8068
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
7942
8069
|
results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
7943
8070
|
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
7944
|
-
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
|
|
8071
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0,
|
|
8072
|
+
censusSize: isSet8(object.censusSize) ? globalThis.Number(object.censusSize) : void 0
|
|
7945
8073
|
};
|
|
7946
8074
|
},
|
|
7947
8075
|
toJSON(message) {
|
|
@@ -7979,6 +8107,9 @@ var SetProcessTx = {
|
|
|
7979
8107
|
if (message.duration !== void 0) {
|
|
7980
8108
|
obj.duration = Math.round(message.duration);
|
|
7981
8109
|
}
|
|
8110
|
+
if (message.censusSize !== void 0) {
|
|
8111
|
+
obj.censusSize = Math.round(message.censusSize);
|
|
8112
|
+
}
|
|
7982
8113
|
return obj;
|
|
7983
8114
|
},
|
|
7984
8115
|
create(base) {
|
|
@@ -7997,6 +8128,7 @@ var SetProcessTx = {
|
|
|
7997
8128
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
7998
8129
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
7999
8130
|
message.duration = object.duration ?? void 0;
|
|
8131
|
+
message.censusSize = object.censusSize ?? void 0;
|
|
8000
8132
|
return message;
|
|
8001
8133
|
}
|
|
8002
8134
|
};
|
|
@@ -9649,19 +9781,19 @@ function createBaseEnvelopeType() {
|
|
|
9649
9781
|
}
|
|
9650
9782
|
var EnvelopeType = {
|
|
9651
9783
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
9652
|
-
if (message.serial
|
|
9784
|
+
if (message.serial !== false) {
|
|
9653
9785
|
writer.uint32(8).bool(message.serial);
|
|
9654
9786
|
}
|
|
9655
|
-
if (message.anonymous
|
|
9787
|
+
if (message.anonymous !== false) {
|
|
9656
9788
|
writer.uint32(16).bool(message.anonymous);
|
|
9657
9789
|
}
|
|
9658
|
-
if (message.encryptedVotes
|
|
9790
|
+
if (message.encryptedVotes !== false) {
|
|
9659
9791
|
writer.uint32(24).bool(message.encryptedVotes);
|
|
9660
9792
|
}
|
|
9661
|
-
if (message.uniqueValues
|
|
9793
|
+
if (message.uniqueValues !== false) {
|
|
9662
9794
|
writer.uint32(32).bool(message.uniqueValues);
|
|
9663
9795
|
}
|
|
9664
|
-
if (message.costFromWeight
|
|
9796
|
+
if (message.costFromWeight !== false) {
|
|
9665
9797
|
writer.uint32(40).bool(message.costFromWeight);
|
|
9666
9798
|
}
|
|
9667
9799
|
return writer;
|
|
@@ -9722,19 +9854,19 @@ var EnvelopeType = {
|
|
|
9722
9854
|
},
|
|
9723
9855
|
toJSON(message) {
|
|
9724
9856
|
const obj = {};
|
|
9725
|
-
if (message.serial
|
|
9857
|
+
if (message.serial !== false) {
|
|
9726
9858
|
obj.serial = message.serial;
|
|
9727
9859
|
}
|
|
9728
|
-
if (message.anonymous
|
|
9860
|
+
if (message.anonymous !== false) {
|
|
9729
9861
|
obj.anonymous = message.anonymous;
|
|
9730
9862
|
}
|
|
9731
|
-
if (message.encryptedVotes
|
|
9863
|
+
if (message.encryptedVotes !== false) {
|
|
9732
9864
|
obj.encryptedVotes = message.encryptedVotes;
|
|
9733
9865
|
}
|
|
9734
|
-
if (message.uniqueValues
|
|
9866
|
+
if (message.uniqueValues !== false) {
|
|
9735
9867
|
obj.uniqueValues = message.uniqueValues;
|
|
9736
9868
|
}
|
|
9737
|
-
if (message.costFromWeight
|
|
9869
|
+
if (message.costFromWeight !== false) {
|
|
9738
9870
|
obj.costFromWeight = message.costFromWeight;
|
|
9739
9871
|
}
|
|
9740
9872
|
return obj;
|
|
@@ -9757,19 +9889,19 @@ function createBaseProcessMode() {
|
|
|
9757
9889
|
}
|
|
9758
9890
|
var ProcessMode = {
|
|
9759
9891
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
9760
|
-
if (message.autoStart
|
|
9892
|
+
if (message.autoStart !== false) {
|
|
9761
9893
|
writer.uint32(8).bool(message.autoStart);
|
|
9762
9894
|
}
|
|
9763
|
-
if (message.interruptible
|
|
9895
|
+
if (message.interruptible !== false) {
|
|
9764
9896
|
writer.uint32(16).bool(message.interruptible);
|
|
9765
9897
|
}
|
|
9766
|
-
if (message.dynamicCensus
|
|
9898
|
+
if (message.dynamicCensus !== false) {
|
|
9767
9899
|
writer.uint32(24).bool(message.dynamicCensus);
|
|
9768
9900
|
}
|
|
9769
|
-
if (message.encryptedMetaData
|
|
9901
|
+
if (message.encryptedMetaData !== false) {
|
|
9770
9902
|
writer.uint32(32).bool(message.encryptedMetaData);
|
|
9771
9903
|
}
|
|
9772
|
-
if (message.preRegister
|
|
9904
|
+
if (message.preRegister !== false) {
|
|
9773
9905
|
writer.uint32(40).bool(message.preRegister);
|
|
9774
9906
|
}
|
|
9775
9907
|
return writer;
|
|
@@ -9830,19 +9962,19 @@ var ProcessMode = {
|
|
|
9830
9962
|
},
|
|
9831
9963
|
toJSON(message) {
|
|
9832
9964
|
const obj = {};
|
|
9833
|
-
if (message.autoStart
|
|
9965
|
+
if (message.autoStart !== false) {
|
|
9834
9966
|
obj.autoStart = message.autoStart;
|
|
9835
9967
|
}
|
|
9836
|
-
if (message.interruptible
|
|
9968
|
+
if (message.interruptible !== false) {
|
|
9837
9969
|
obj.interruptible = message.interruptible;
|
|
9838
9970
|
}
|
|
9839
|
-
if (message.dynamicCensus
|
|
9971
|
+
if (message.dynamicCensus !== false) {
|
|
9840
9972
|
obj.dynamicCensus = message.dynamicCensus;
|
|
9841
9973
|
}
|
|
9842
|
-
if (message.encryptedMetaData
|
|
9974
|
+
if (message.encryptedMetaData !== false) {
|
|
9843
9975
|
obj.encryptedMetaData = message.encryptedMetaData;
|
|
9844
9976
|
}
|
|
9845
|
-
if (message.preRegister
|
|
9977
|
+
if (message.preRegister !== false) {
|
|
9846
9978
|
obj.preRegister = message.preRegister;
|
|
9847
9979
|
}
|
|
9848
9980
|
return obj;
|
|
@@ -10728,6 +10860,9 @@ function longToNumber2(long) {
|
|
|
10728
10860
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
10729
10861
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
10730
10862
|
}
|
|
10863
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
10864
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
10865
|
+
}
|
|
10731
10866
|
return long.toNumber();
|
|
10732
10867
|
}
|
|
10733
10868
|
if (import_minimal8.default.util.Long !== import_long2.default) {
|