@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.mjs
CHANGED
|
@@ -2892,7 +2892,7 @@ var Account = {
|
|
|
2892
2892
|
if (message.address !== "") {
|
|
2893
2893
|
writer.uint32(26).string(message.address);
|
|
2894
2894
|
}
|
|
2895
|
-
if (message.hasBackup
|
|
2895
|
+
if (message.hasBackup !== false) {
|
|
2896
2896
|
writer.uint32(32).bool(message.hasBackup);
|
|
2897
2897
|
}
|
|
2898
2898
|
if (message.extra !== void 0) {
|
|
@@ -2981,7 +2981,7 @@ var Account = {
|
|
|
2981
2981
|
if (message.address !== "") {
|
|
2982
2982
|
obj.address = message.address;
|
|
2983
2983
|
}
|
|
2984
|
-
if (message.hasBackup
|
|
2984
|
+
if (message.hasBackup !== false) {
|
|
2985
2985
|
obj.hasBackup = message.hasBackup;
|
|
2986
2986
|
}
|
|
2987
2987
|
if (message.extra !== void 0) {
|
|
@@ -3617,6 +3617,9 @@ function longToNumber(long) {
|
|
|
3617
3617
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
3618
3618
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
3619
3619
|
}
|
|
3620
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
3621
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
3622
|
+
}
|
|
3620
3623
|
return long.toNumber();
|
|
3621
3624
|
}
|
|
3622
3625
|
if (import_minimal4.default.util.Long !== Long) {
|
|
@@ -4169,7 +4172,7 @@ var Feed = {
|
|
|
4169
4172
|
if (message.favicon !== "") {
|
|
4170
4173
|
writer.uint32(58).string(message.favicon);
|
|
4171
4174
|
}
|
|
4172
|
-
if (message.expired
|
|
4175
|
+
if (message.expired !== false) {
|
|
4173
4176
|
writer.uint32(64).bool(message.expired);
|
|
4174
4177
|
}
|
|
4175
4178
|
for (const v of message.items) {
|
|
@@ -4298,7 +4301,7 @@ var Feed = {
|
|
|
4298
4301
|
if (message.favicon !== "") {
|
|
4299
4302
|
obj.favicon = message.favicon;
|
|
4300
4303
|
}
|
|
4301
|
-
if (message.expired
|
|
4304
|
+
if (message.expired !== false) {
|
|
4302
4305
|
obj.expired = message.expired;
|
|
4303
4306
|
}
|
|
4304
4307
|
if (message.items?.length) {
|
|
@@ -5706,6 +5709,7 @@ __export(vochain_exports, {
|
|
|
5706
5709
|
ProofCA_Type: () => ProofCA_Type,
|
|
5707
5710
|
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5708
5711
|
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5712
|
+
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5709
5713
|
ProofMinime: () => ProofMinime,
|
|
5710
5714
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5711
5715
|
QuestionResult: () => QuestionResult,
|
|
@@ -6102,6 +6106,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6102
6106
|
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6103
6107
|
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6104
6108
|
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6109
|
+
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6105
6110
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6106
6111
|
return CensusOrigin2;
|
|
6107
6112
|
})(CensusOrigin || {});
|
|
@@ -6134,6 +6139,9 @@ function censusOriginFromJSON(object) {
|
|
|
6134
6139
|
case 15:
|
|
6135
6140
|
case "MINI_ME":
|
|
6136
6141
|
return 15 /* MINI_ME */;
|
|
6142
|
+
case 16:
|
|
6143
|
+
case "FARCASTER_FRAME":
|
|
6144
|
+
return 16 /* FARCASTER_FRAME */;
|
|
6137
6145
|
case -1:
|
|
6138
6146
|
case "UNRECOGNIZED":
|
|
6139
6147
|
default:
|
|
@@ -6160,6 +6168,8 @@ function censusOriginToJSON(object) {
|
|
|
6160
6168
|
return "ERC777";
|
|
6161
6169
|
case 15 /* MINI_ME */:
|
|
6162
6170
|
return "MINI_ME";
|
|
6171
|
+
case 16 /* FARCASTER_FRAME */:
|
|
6172
|
+
return "FARCASTER_FRAME";
|
|
6163
6173
|
case -1 /* UNRECOGNIZED */:
|
|
6164
6174
|
default:
|
|
6165
6175
|
return "UNRECOGNIZED";
|
|
@@ -6172,6 +6182,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6172
6182
|
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6173
6183
|
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6174
6184
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6185
|
+
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6175
6186
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6176
6187
|
return Census_Type2;
|
|
6177
6188
|
})(Census_Type || {});
|
|
@@ -6195,6 +6206,9 @@ function census_TypeFromJSON(object) {
|
|
|
6195
6206
|
case 5:
|
|
6196
6207
|
case "CA":
|
|
6197
6208
|
return 5 /* CA */;
|
|
6209
|
+
case 6:
|
|
6210
|
+
case "FARCASTER_FRAME":
|
|
6211
|
+
return 6 /* FARCASTER_FRAME */;
|
|
6198
6212
|
case -1:
|
|
6199
6213
|
case "UNRECOGNIZED":
|
|
6200
6214
|
default:
|
|
@@ -6215,6 +6229,8 @@ function census_TypeToJSON(object) {
|
|
|
6215
6229
|
return "ETHEREUMACCOUNT";
|
|
6216
6230
|
case 5 /* CA */:
|
|
6217
6231
|
return "CA";
|
|
6232
|
+
case 6 /* FARCASTER_FRAME */:
|
|
6233
|
+
return "FARCASTER_FRAME";
|
|
6218
6234
|
case -1 /* UNRECOGNIZED */:
|
|
6219
6235
|
default:
|
|
6220
6236
|
return "UNRECOGNIZED";
|
|
@@ -6530,6 +6546,9 @@ var Proof = {
|
|
|
6530
6546
|
case "minimeStorage":
|
|
6531
6547
|
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6532
6548
|
break;
|
|
6549
|
+
case "farcasterFrame":
|
|
6550
|
+
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6551
|
+
break;
|
|
6533
6552
|
}
|
|
6534
6553
|
return writer;
|
|
6535
6554
|
},
|
|
@@ -6582,6 +6601,15 @@ var Proof = {
|
|
|
6582
6601
|
}
|
|
6583
6602
|
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6584
6603
|
continue;
|
|
6604
|
+
case 9:
|
|
6605
|
+
if (tag !== 74) {
|
|
6606
|
+
break;
|
|
6607
|
+
}
|
|
6608
|
+
message.payload = {
|
|
6609
|
+
$case: "farcasterFrame",
|
|
6610
|
+
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6611
|
+
};
|
|
6612
|
+
continue;
|
|
6585
6613
|
}
|
|
6586
6614
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6587
6615
|
break;
|
|
@@ -6592,7 +6620,7 @@ var Proof = {
|
|
|
6592
6620
|
},
|
|
6593
6621
|
fromJSON(object) {
|
|
6594
6622
|
return {
|
|
6595
|
-
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
|
|
6623
|
+
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
|
|
6596
6624
|
};
|
|
6597
6625
|
},
|
|
6598
6626
|
toJSON(message) {
|
|
@@ -6615,6 +6643,9 @@ var Proof = {
|
|
|
6615
6643
|
if (message.payload?.$case === "minimeStorage") {
|
|
6616
6644
|
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6617
6645
|
}
|
|
6646
|
+
if (message.payload?.$case === "farcasterFrame") {
|
|
6647
|
+
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6648
|
+
}
|
|
6618
6649
|
return obj;
|
|
6619
6650
|
},
|
|
6620
6651
|
create(base) {
|
|
@@ -6649,6 +6680,12 @@ var Proof = {
|
|
|
6649
6680
|
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6650
6681
|
};
|
|
6651
6682
|
}
|
|
6683
|
+
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6684
|
+
message.payload = {
|
|
6685
|
+
$case: "farcasterFrame",
|
|
6686
|
+
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6687
|
+
};
|
|
6688
|
+
}
|
|
6652
6689
|
return message;
|
|
6653
6690
|
}
|
|
6654
6691
|
};
|
|
@@ -7280,6 +7317,86 @@ var ProofZkSNARK = {
|
|
|
7280
7317
|
return message;
|
|
7281
7318
|
}
|
|
7282
7319
|
};
|
|
7320
|
+
function createBaseProofFarcasterFrame() {
|
|
7321
|
+
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7322
|
+
}
|
|
7323
|
+
var ProofFarcasterFrame = {
|
|
7324
|
+
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7325
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7326
|
+
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7327
|
+
}
|
|
7328
|
+
if (message.censusProof !== void 0) {
|
|
7329
|
+
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7330
|
+
}
|
|
7331
|
+
if (message.publicKey.length !== 0) {
|
|
7332
|
+
writer.uint32(26).bytes(message.publicKey);
|
|
7333
|
+
}
|
|
7334
|
+
return writer;
|
|
7335
|
+
},
|
|
7336
|
+
decode(input, length) {
|
|
7337
|
+
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7338
|
+
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7339
|
+
const message = createBaseProofFarcasterFrame();
|
|
7340
|
+
while (reader.pos < end) {
|
|
7341
|
+
const tag = reader.uint32();
|
|
7342
|
+
switch (tag >>> 3) {
|
|
7343
|
+
case 1:
|
|
7344
|
+
if (tag !== 10) {
|
|
7345
|
+
break;
|
|
7346
|
+
}
|
|
7347
|
+
message.signedFrameMessageBody = reader.bytes();
|
|
7348
|
+
continue;
|
|
7349
|
+
case 2:
|
|
7350
|
+
if (tag !== 18) {
|
|
7351
|
+
break;
|
|
7352
|
+
}
|
|
7353
|
+
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7354
|
+
continue;
|
|
7355
|
+
case 3:
|
|
7356
|
+
if (tag !== 26) {
|
|
7357
|
+
break;
|
|
7358
|
+
}
|
|
7359
|
+
message.publicKey = reader.bytes();
|
|
7360
|
+
continue;
|
|
7361
|
+
}
|
|
7362
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7363
|
+
break;
|
|
7364
|
+
}
|
|
7365
|
+
reader.skipType(tag & 7);
|
|
7366
|
+
}
|
|
7367
|
+
return message;
|
|
7368
|
+
},
|
|
7369
|
+
fromJSON(object) {
|
|
7370
|
+
return {
|
|
7371
|
+
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7372
|
+
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7373
|
+
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7374
|
+
};
|
|
7375
|
+
},
|
|
7376
|
+
toJSON(message) {
|
|
7377
|
+
const obj = {};
|
|
7378
|
+
if (message.signedFrameMessageBody.length !== 0) {
|
|
7379
|
+
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7380
|
+
}
|
|
7381
|
+
if (message.censusProof !== void 0) {
|
|
7382
|
+
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7383
|
+
}
|
|
7384
|
+
if (message.publicKey.length !== 0) {
|
|
7385
|
+
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7386
|
+
}
|
|
7387
|
+
return obj;
|
|
7388
|
+
},
|
|
7389
|
+
create(base) {
|
|
7390
|
+
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7391
|
+
},
|
|
7392
|
+
fromPartial(object) {
|
|
7393
|
+
const message = createBaseProofFarcasterFrame();
|
|
7394
|
+
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7395
|
+
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7396
|
+
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7397
|
+
return message;
|
|
7398
|
+
}
|
|
7399
|
+
};
|
|
7283
7400
|
function createBaseAccount2() {
|
|
7284
7401
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7285
7402
|
}
|
|
@@ -7797,7 +7914,8 @@ function createBaseSetProcessTx() {
|
|
|
7797
7914
|
proof: void 0,
|
|
7798
7915
|
results: void 0,
|
|
7799
7916
|
tempSIKs: void 0,
|
|
7800
|
-
duration: void 0
|
|
7917
|
+
duration: void 0,
|
|
7918
|
+
censusSize: void 0
|
|
7801
7919
|
};
|
|
7802
7920
|
}
|
|
7803
7921
|
var SetProcessTx = {
|
|
@@ -7835,6 +7953,9 @@ var SetProcessTx = {
|
|
|
7835
7953
|
if (message.duration !== void 0) {
|
|
7836
7954
|
writer.uint32(88).uint32(message.duration);
|
|
7837
7955
|
}
|
|
7956
|
+
if (message.censusSize !== void 0) {
|
|
7957
|
+
writer.uint32(96).uint64(message.censusSize);
|
|
7958
|
+
}
|
|
7838
7959
|
return writer;
|
|
7839
7960
|
},
|
|
7840
7961
|
decode(input, length) {
|
|
@@ -7910,6 +8031,12 @@ var SetProcessTx = {
|
|
|
7910
8031
|
}
|
|
7911
8032
|
message.duration = reader.uint32();
|
|
7912
8033
|
continue;
|
|
8034
|
+
case 12:
|
|
8035
|
+
if (tag !== 96) {
|
|
8036
|
+
break;
|
|
8037
|
+
}
|
|
8038
|
+
message.censusSize = longToNumber2(reader.uint64());
|
|
8039
|
+
continue;
|
|
7913
8040
|
}
|
|
7914
8041
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7915
8042
|
break;
|
|
@@ -7930,7 +8057,8 @@ var SetProcessTx = {
|
|
|
7930
8057
|
proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
7931
8058
|
results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
7932
8059
|
tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
|
|
7933
|
-
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
|
|
8060
|
+
duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0,
|
|
8061
|
+
censusSize: isSet8(object.censusSize) ? globalThis.Number(object.censusSize) : void 0
|
|
7934
8062
|
};
|
|
7935
8063
|
},
|
|
7936
8064
|
toJSON(message) {
|
|
@@ -7968,6 +8096,9 @@ var SetProcessTx = {
|
|
|
7968
8096
|
if (message.duration !== void 0) {
|
|
7969
8097
|
obj.duration = Math.round(message.duration);
|
|
7970
8098
|
}
|
|
8099
|
+
if (message.censusSize !== void 0) {
|
|
8100
|
+
obj.censusSize = Math.round(message.censusSize);
|
|
8101
|
+
}
|
|
7971
8102
|
return obj;
|
|
7972
8103
|
},
|
|
7973
8104
|
create(base) {
|
|
@@ -7986,6 +8117,7 @@ var SetProcessTx = {
|
|
|
7986
8117
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
7987
8118
|
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
7988
8119
|
message.duration = object.duration ?? void 0;
|
|
8120
|
+
message.censusSize = object.censusSize ?? void 0;
|
|
7989
8121
|
return message;
|
|
7990
8122
|
}
|
|
7991
8123
|
};
|
|
@@ -9638,19 +9770,19 @@ function createBaseEnvelopeType() {
|
|
|
9638
9770
|
}
|
|
9639
9771
|
var EnvelopeType = {
|
|
9640
9772
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
9641
|
-
if (message.serial
|
|
9773
|
+
if (message.serial !== false) {
|
|
9642
9774
|
writer.uint32(8).bool(message.serial);
|
|
9643
9775
|
}
|
|
9644
|
-
if (message.anonymous
|
|
9776
|
+
if (message.anonymous !== false) {
|
|
9645
9777
|
writer.uint32(16).bool(message.anonymous);
|
|
9646
9778
|
}
|
|
9647
|
-
if (message.encryptedVotes
|
|
9779
|
+
if (message.encryptedVotes !== false) {
|
|
9648
9780
|
writer.uint32(24).bool(message.encryptedVotes);
|
|
9649
9781
|
}
|
|
9650
|
-
if (message.uniqueValues
|
|
9782
|
+
if (message.uniqueValues !== false) {
|
|
9651
9783
|
writer.uint32(32).bool(message.uniqueValues);
|
|
9652
9784
|
}
|
|
9653
|
-
if (message.costFromWeight
|
|
9785
|
+
if (message.costFromWeight !== false) {
|
|
9654
9786
|
writer.uint32(40).bool(message.costFromWeight);
|
|
9655
9787
|
}
|
|
9656
9788
|
return writer;
|
|
@@ -9711,19 +9843,19 @@ var EnvelopeType = {
|
|
|
9711
9843
|
},
|
|
9712
9844
|
toJSON(message) {
|
|
9713
9845
|
const obj = {};
|
|
9714
|
-
if (message.serial
|
|
9846
|
+
if (message.serial !== false) {
|
|
9715
9847
|
obj.serial = message.serial;
|
|
9716
9848
|
}
|
|
9717
|
-
if (message.anonymous
|
|
9849
|
+
if (message.anonymous !== false) {
|
|
9718
9850
|
obj.anonymous = message.anonymous;
|
|
9719
9851
|
}
|
|
9720
|
-
if (message.encryptedVotes
|
|
9852
|
+
if (message.encryptedVotes !== false) {
|
|
9721
9853
|
obj.encryptedVotes = message.encryptedVotes;
|
|
9722
9854
|
}
|
|
9723
|
-
if (message.uniqueValues
|
|
9855
|
+
if (message.uniqueValues !== false) {
|
|
9724
9856
|
obj.uniqueValues = message.uniqueValues;
|
|
9725
9857
|
}
|
|
9726
|
-
if (message.costFromWeight
|
|
9858
|
+
if (message.costFromWeight !== false) {
|
|
9727
9859
|
obj.costFromWeight = message.costFromWeight;
|
|
9728
9860
|
}
|
|
9729
9861
|
return obj;
|
|
@@ -9746,19 +9878,19 @@ function createBaseProcessMode() {
|
|
|
9746
9878
|
}
|
|
9747
9879
|
var ProcessMode = {
|
|
9748
9880
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
9749
|
-
if (message.autoStart
|
|
9881
|
+
if (message.autoStart !== false) {
|
|
9750
9882
|
writer.uint32(8).bool(message.autoStart);
|
|
9751
9883
|
}
|
|
9752
|
-
if (message.interruptible
|
|
9884
|
+
if (message.interruptible !== false) {
|
|
9753
9885
|
writer.uint32(16).bool(message.interruptible);
|
|
9754
9886
|
}
|
|
9755
|
-
if (message.dynamicCensus
|
|
9887
|
+
if (message.dynamicCensus !== false) {
|
|
9756
9888
|
writer.uint32(24).bool(message.dynamicCensus);
|
|
9757
9889
|
}
|
|
9758
|
-
if (message.encryptedMetaData
|
|
9890
|
+
if (message.encryptedMetaData !== false) {
|
|
9759
9891
|
writer.uint32(32).bool(message.encryptedMetaData);
|
|
9760
9892
|
}
|
|
9761
|
-
if (message.preRegister
|
|
9893
|
+
if (message.preRegister !== false) {
|
|
9762
9894
|
writer.uint32(40).bool(message.preRegister);
|
|
9763
9895
|
}
|
|
9764
9896
|
return writer;
|
|
@@ -9819,19 +9951,19 @@ var ProcessMode = {
|
|
|
9819
9951
|
},
|
|
9820
9952
|
toJSON(message) {
|
|
9821
9953
|
const obj = {};
|
|
9822
|
-
if (message.autoStart
|
|
9954
|
+
if (message.autoStart !== false) {
|
|
9823
9955
|
obj.autoStart = message.autoStart;
|
|
9824
9956
|
}
|
|
9825
|
-
if (message.interruptible
|
|
9957
|
+
if (message.interruptible !== false) {
|
|
9826
9958
|
obj.interruptible = message.interruptible;
|
|
9827
9959
|
}
|
|
9828
|
-
if (message.dynamicCensus
|
|
9960
|
+
if (message.dynamicCensus !== false) {
|
|
9829
9961
|
obj.dynamicCensus = message.dynamicCensus;
|
|
9830
9962
|
}
|
|
9831
|
-
if (message.encryptedMetaData
|
|
9963
|
+
if (message.encryptedMetaData !== false) {
|
|
9832
9964
|
obj.encryptedMetaData = message.encryptedMetaData;
|
|
9833
9965
|
}
|
|
9834
|
-
if (message.preRegister
|
|
9966
|
+
if (message.preRegister !== false) {
|
|
9835
9967
|
obj.preRegister = message.preRegister;
|
|
9836
9968
|
}
|
|
9837
9969
|
return obj;
|
|
@@ -10717,6 +10849,9 @@ function longToNumber2(long) {
|
|
|
10717
10849
|
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
10718
10850
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
10719
10851
|
}
|
|
10852
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
10853
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
10854
|
+
}
|
|
10720
10855
|
return long.toNumber();
|
|
10721
10856
|
}
|
|
10722
10857
|
if (import_minimal8.default.util.Long !== Long2) {
|
|
@@ -2772,7 +2772,7 @@ var Feed = {
|
|
|
2772
2772
|
if (message.favicon !== "") {
|
|
2773
2773
|
writer.uint32(58).string(message.favicon);
|
|
2774
2774
|
}
|
|
2775
|
-
if (message.expired
|
|
2775
|
+
if (message.expired !== false) {
|
|
2776
2776
|
writer.uint32(64).bool(message.expired);
|
|
2777
2777
|
}
|
|
2778
2778
|
for (const v of message.items) {
|
|
@@ -2901,7 +2901,7 @@ var Feed = {
|
|
|
2901
2901
|
if (message.favicon !== "") {
|
|
2902
2902
|
obj.favicon = message.favicon;
|
|
2903
2903
|
}
|
|
2904
|
-
if (message.expired
|
|
2904
|
+
if (message.expired !== false) {
|
|
2905
2905
|
obj.expired = message.expired;
|
|
2906
2906
|
}
|
|
2907
2907
|
if (message.items?.length) {
|
|
@@ -2730,7 +2730,7 @@ var Feed = {
|
|
|
2730
2730
|
if (message.favicon !== "") {
|
|
2731
2731
|
writer.uint32(58).string(message.favicon);
|
|
2732
2732
|
}
|
|
2733
|
-
if (message.expired
|
|
2733
|
+
if (message.expired !== false) {
|
|
2734
2734
|
writer.uint32(64).bool(message.expired);
|
|
2735
2735
|
}
|
|
2736
2736
|
for (const v of message.items) {
|
|
@@ -2859,7 +2859,7 @@ var Feed = {
|
|
|
2859
2859
|
if (message.favicon !== "") {
|
|
2860
2860
|
obj.favicon = message.favicon;
|
|
2861
2861
|
}
|
|
2862
|
-
if (message.expired
|
|
2862
|
+
if (message.expired !== false) {
|
|
2863
2863
|
obj.expired = message.expired;
|
|
2864
2864
|
}
|
|
2865
2865
|
if (message.items?.length) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { G as Account, K as AdminTx, v as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, W as CollectFaucetTx, $ as EnvelopeType, Y as FaucetPackage, X as FaucetPayload, N as NewProcessTx, a2 as OracleList, _ as Process, a8 as ProcessEndingList, a0 as ProcessMode, a6 as ProcessResult, P as ProcessStatus, a1 as ProcessVoteOptions, k as Proof, w as ProofArbo, A as ProofArbo_KeyType, x as ProofArbo_Type, o as ProofCA, q as ProofCA_Type, m as ProofEthereumAccount, l as ProofEthereumStorage, F as ProofFarcasterFrame, n as ProofMinime, E as ProofZkSNARK, a7 as QuestionResult, R as RegisterKeyTx, U as RegisterSIKTx, Q as SIKTx, L as SendTokensTx, O as SetAccountTx, Z as SetKeykeeperTx, J as SetProcessTx, M as SetTransactionCostsTx, I as SignedTx, S as SourceNetworkId, a9 as StoredKeys, a5 as TendermintHeader, H as Tx, T as TxType, a4 as Validator, a3 as ValidatorList, V as VoteEnvelope, d as censusOriginFromJSON, e as censusOriginToJSON, h as census_TypeFromJSON, j as census_TypeToJSON, p as processStatusFromJSON, b as processStatusToJSON, B as proofArbo_KeyTypeFromJSON, D as proofArbo_KeyTypeToJSON, y as proofArbo_TypeFromJSON, z as proofArbo_TypeToJSON, r as proofCA_TypeFromJSON, u as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-8445529b.js';
|
|
2
2
|
import 'protobufjs/minimal';
|