@vocdoni/proto 1.15.13 → 1.16.0

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.
@@ -1106,9 +1106,27 @@ var require_reader = __commonJS({
1106
1106
  Reader.create = create();
1107
1107
  Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
1108
1108
  util.Array.prototype.slice;
1109
+ function readVarint32NearEnd(reader) {
1110
+ var value = 0;
1111
+ for (var i = 0; i < 4; ++i) {
1112
+ if (reader.pos >= reader.len)
1113
+ throw indexOutOfRange(reader);
1114
+ var b = reader.buf[reader.pos++];
1115
+ value = (value | (b & 127) << i * 7) >>> 0;
1116
+ if (b < 128)
1117
+ return value;
1118
+ }
1119
+ throw indexOutOfRange(reader);
1120
+ }
1109
1121
  Reader.prototype.uint32 = function read_uint32_setup() {
1110
1122
  var value = 4294967295;
1111
1123
  return function read_uint32() {
1124
+ if (this.len - this.pos < 5) {
1125
+ if (this.pos >= this.len)
1126
+ throw indexOutOfRange(this);
1127
+ if (this.buf[this.pos] >= 128)
1128
+ return readVarint32NearEnd(this);
1129
+ }
1112
1130
  value = (this.buf[this.pos] & 127) >>> 0;
1113
1131
  if (this.buf[this.pos++] < 128)
1114
1132
  return value;
@@ -1802,12 +1820,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
1802
1820
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE"] = 1] = "OFF_CHAIN_TREE";
1803
1821
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
1804
1822
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
1805
- CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
1806
- CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
1807
- CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
1808
- CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
1809
- CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
1810
- CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
1823
+ CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
1811
1824
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1812
1825
  return CensusOrigin2;
1813
1826
  })(CensusOrigin || {});
@@ -1825,24 +1838,9 @@ function censusOriginFromJSON(object) {
1825
1838
  case 3:
1826
1839
  case "OFF_CHAIN_CA":
1827
1840
  return 3 /* OFF_CHAIN_CA */;
1828
- case 11:
1829
- case "ERC20":
1830
- return 11 /* ERC20 */;
1831
- case 12:
1832
- case "ERC721":
1833
- return 12 /* ERC721 */;
1834
- case 13:
1835
- case "ERC1155":
1836
- return 13 /* ERC1155 */;
1837
- case 14:
1838
- case "ERC777":
1839
- return 14 /* ERC777 */;
1840
- case 15:
1841
- case "MINI_ME":
1842
- return 15 /* MINI_ME */;
1843
- case 16:
1844
- case "FARCASTER_FRAME":
1845
- return 16 /* FARCASTER_FRAME */;
1841
+ case 4:
1842
+ case "OFF_CHAIN_CA_V2":
1843
+ return 4 /* OFF_CHAIN_CA_V2 */;
1846
1844
  case -1:
1847
1845
  case "UNRECOGNIZED":
1848
1846
  default:
@@ -1859,18 +1857,8 @@ function censusOriginToJSON(object) {
1859
1857
  return "OFF_CHAIN_TREE_WEIGHTED";
1860
1858
  case 3 /* OFF_CHAIN_CA */:
1861
1859
  return "OFF_CHAIN_CA";
1862
- case 11 /* ERC20 */:
1863
- return "ERC20";
1864
- case 12 /* ERC721 */:
1865
- return "ERC721";
1866
- case 13 /* ERC1155 */:
1867
- return "ERC1155";
1868
- case 14 /* ERC777 */:
1869
- return "ERC777";
1870
- case 15 /* MINI_ME */:
1871
- return "MINI_ME";
1872
- case 16 /* FARCASTER_FRAME */:
1873
- return "FARCASTER_FRAME";
1860
+ case 4 /* OFF_CHAIN_CA_V2 */:
1861
+ return "OFF_CHAIN_CA_V2";
1874
1862
  case -1 /* UNRECOGNIZED */:
1875
1863
  default:
1876
1864
  return "UNRECOGNIZED";
@@ -1880,10 +1868,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
1880
1868
  Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
1881
1869
  Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
1882
1870
  Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
1883
- Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
1884
- Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
1885
1871
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
1886
- Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
1887
1872
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1888
1873
  return Census_Type2;
1889
1874
  })(Census_Type || {});
@@ -1898,18 +1883,9 @@ function census_TypeFromJSON(object) {
1898
1883
  case 2:
1899
1884
  case "ARBO_POSEIDON":
1900
1885
  return 2 /* ARBO_POSEIDON */;
1901
- case 3:
1902
- case "ETHEREUMSTORAGE":
1903
- return 3 /* ETHEREUMSTORAGE */;
1904
- case 4:
1905
- case "ETHEREUMACCOUNT":
1906
- return 4 /* ETHEREUMACCOUNT */;
1907
1886
  case 5:
1908
1887
  case "CA":
1909
1888
  return 5 /* CA */;
1910
- case 6:
1911
- case "FARCASTER_FRAME":
1912
- return 6 /* FARCASTER_FRAME */;
1913
1889
  case -1:
1914
1890
  case "UNRECOGNIZED":
1915
1891
  default:
@@ -1924,14 +1900,8 @@ function census_TypeToJSON(object) {
1924
1900
  return "ARBO_BLAKE2B";
1925
1901
  case 2 /* ARBO_POSEIDON */:
1926
1902
  return "ARBO_POSEIDON";
1927
- case 3 /* ETHEREUMSTORAGE */:
1928
- return "ETHEREUMSTORAGE";
1929
- case 4 /* ETHEREUMACCOUNT */:
1930
- return "ETHEREUMACCOUNT";
1931
1903
  case 5 /* CA */:
1932
1904
  return "CA";
1933
- case 6 /* FARCASTER_FRAME */:
1934
- return "FARCASTER_FRAME";
1935
1905
  case -1 /* UNRECOGNIZED */:
1936
1906
  default:
1937
1907
  return "UNRECOGNIZED";
@@ -2244,12 +2214,6 @@ function createBaseProof() {
2244
2214
  var Proof = {
2245
2215
  encode(message, writer = import_minimal.default.Writer.create()) {
2246
2216
  switch (message.payload?.$case) {
2247
- case "ethereumStorage":
2248
- ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
2249
- break;
2250
- case "ethereumAccount":
2251
- ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
2252
- break;
2253
2217
  case "ca":
2254
2218
  ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
2255
2219
  break;
@@ -2259,12 +2223,6 @@ var Proof = {
2259
2223
  case "zkSnark":
2260
2224
  ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
2261
2225
  break;
2262
- case "minimeStorage":
2263
- ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
2264
- break;
2265
- case "farcasterFrame":
2266
- ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
2267
- break;
2268
2226
  }
2269
2227
  return writer;
2270
2228
  },
@@ -2275,24 +2233,6 @@ var Proof = {
2275
2233
  while (reader.pos < end) {
2276
2234
  const tag = reader.uint32();
2277
2235
  switch (tag >>> 3) {
2278
- case 3:
2279
- if (tag !== 26) {
2280
- break;
2281
- }
2282
- message.payload = {
2283
- $case: "ethereumStorage",
2284
- ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
2285
- };
2286
- continue;
2287
- case 4:
2288
- if (tag !== 34) {
2289
- break;
2290
- }
2291
- message.payload = {
2292
- $case: "ethereumAccount",
2293
- ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
2294
- };
2295
- continue;
2296
2236
  case 5:
2297
2237
  if (tag !== 42) {
2298
2238
  break;
@@ -2311,21 +2251,6 @@ var Proof = {
2311
2251
  }
2312
2252
  message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
2313
2253
  continue;
2314
- case 8:
2315
- if (tag !== 66) {
2316
- break;
2317
- }
2318
- message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
2319
- continue;
2320
- case 9:
2321
- if (tag !== 74) {
2322
- break;
2323
- }
2324
- message.payload = {
2325
- $case: "farcasterFrame",
2326
- farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
2327
- };
2328
- continue;
2329
2254
  }
2330
2255
  if ((tag & 7) === 4 || tag === 0) {
2331
2256
  break;
@@ -2336,17 +2261,11 @@ var Proof = {
2336
2261
  },
2337
2262
  fromJSON(object) {
2338
2263
  return {
2339
- payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : isSet(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
2264
+ payload: isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : void 0
2340
2265
  };
2341
2266
  },
2342
2267
  toJSON(message) {
2343
2268
  const obj = {};
2344
- if (message.payload?.$case === "ethereumStorage") {
2345
- obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
2346
- }
2347
- if (message.payload?.$case === "ethereumAccount") {
2348
- obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
2349
- }
2350
2269
  if (message.payload?.$case === "ca") {
2351
2270
  obj.ca = ProofCA.toJSON(message.payload.ca);
2352
2271
  }
@@ -2356,12 +2275,6 @@ var Proof = {
2356
2275
  if (message.payload?.$case === "zkSnark") {
2357
2276
  obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
2358
2277
  }
2359
- if (message.payload?.$case === "minimeStorage") {
2360
- obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
2361
- }
2362
- if (message.payload?.$case === "farcasterFrame") {
2363
- obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
2364
- }
2365
2278
  return obj;
2366
2279
  },
2367
2280
  create(base) {
@@ -2369,18 +2282,6 @@ var Proof = {
2369
2282
  },
2370
2283
  fromPartial(object) {
2371
2284
  const message = createBaseProof();
2372
- if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
2373
- message.payload = {
2374
- $case: "ethereumStorage",
2375
- ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
2376
- };
2377
- }
2378
- if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
2379
- message.payload = {
2380
- $case: "ethereumAccount",
2381
- ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
2382
- };
2383
- }
2384
2285
  if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
2385
2286
  message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
2386
2287
  }
@@ -2390,278 +2291,6 @@ var Proof = {
2390
2291
  if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
2391
2292
  message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
2392
2293
  }
2393
- if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
2394
- message.payload = {
2395
- $case: "minimeStorage",
2396
- minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
2397
- };
2398
- }
2399
- if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
2400
- message.payload = {
2401
- $case: "farcasterFrame",
2402
- farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
2403
- };
2404
- }
2405
- return message;
2406
- }
2407
- };
2408
- function createBaseProofEthereumStorage() {
2409
- return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
2410
- }
2411
- var ProofEthereumStorage = {
2412
- encode(message, writer = import_minimal.default.Writer.create()) {
2413
- if (message.key.length !== 0) {
2414
- writer.uint32(10).bytes(message.key);
2415
- }
2416
- if (message.value.length !== 0) {
2417
- writer.uint32(18).bytes(message.value);
2418
- }
2419
- for (const v of message.siblings) {
2420
- writer.uint32(26).bytes(v);
2421
- }
2422
- return writer;
2423
- },
2424
- decode(input, length) {
2425
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
2426
- let end = length === void 0 ? reader.len : reader.pos + length;
2427
- const message = createBaseProofEthereumStorage();
2428
- while (reader.pos < end) {
2429
- const tag = reader.uint32();
2430
- switch (tag >>> 3) {
2431
- case 1:
2432
- if (tag !== 10) {
2433
- break;
2434
- }
2435
- message.key = reader.bytes();
2436
- continue;
2437
- case 2:
2438
- if (tag !== 18) {
2439
- break;
2440
- }
2441
- message.value = reader.bytes();
2442
- continue;
2443
- case 3:
2444
- if (tag !== 26) {
2445
- break;
2446
- }
2447
- message.siblings.push(reader.bytes());
2448
- continue;
2449
- }
2450
- if ((tag & 7) === 4 || tag === 0) {
2451
- break;
2452
- }
2453
- reader.skipType(tag & 7);
2454
- }
2455
- return message;
2456
- },
2457
- fromJSON(object) {
2458
- return {
2459
- key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
2460
- value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
2461
- siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2462
- };
2463
- },
2464
- toJSON(message) {
2465
- const obj = {};
2466
- if (message.key.length !== 0) {
2467
- obj.key = base64FromBytes(message.key);
2468
- }
2469
- if (message.value.length !== 0) {
2470
- obj.value = base64FromBytes(message.value);
2471
- }
2472
- if (message.siblings?.length) {
2473
- obj.siblings = message.siblings.map((e) => base64FromBytes(e));
2474
- }
2475
- return obj;
2476
- },
2477
- create(base) {
2478
- return ProofEthereumStorage.fromPartial(base ?? {});
2479
- },
2480
- fromPartial(object) {
2481
- const message = createBaseProofEthereumStorage();
2482
- message.key = object.key ?? new Uint8Array(0);
2483
- message.value = object.value ?? new Uint8Array(0);
2484
- message.siblings = object.siblings?.map((e) => e) || [];
2485
- return message;
2486
- }
2487
- };
2488
- function createBaseProofEthereumAccount() {
2489
- return {
2490
- nonce: new Uint8Array(0),
2491
- balance: new Uint8Array(0),
2492
- storageHash: new Uint8Array(0),
2493
- codeHash: new Uint8Array(0),
2494
- siblings: []
2495
- };
2496
- }
2497
- var ProofEthereumAccount = {
2498
- encode(message, writer = import_minimal.default.Writer.create()) {
2499
- if (message.nonce.length !== 0) {
2500
- writer.uint32(10).bytes(message.nonce);
2501
- }
2502
- if (message.balance.length !== 0) {
2503
- writer.uint32(18).bytes(message.balance);
2504
- }
2505
- if (message.storageHash.length !== 0) {
2506
- writer.uint32(26).bytes(message.storageHash);
2507
- }
2508
- if (message.codeHash.length !== 0) {
2509
- writer.uint32(34).bytes(message.codeHash);
2510
- }
2511
- for (const v of message.siblings) {
2512
- writer.uint32(42).bytes(v);
2513
- }
2514
- return writer;
2515
- },
2516
- decode(input, length) {
2517
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
2518
- let end = length === void 0 ? reader.len : reader.pos + length;
2519
- const message = createBaseProofEthereumAccount();
2520
- while (reader.pos < end) {
2521
- const tag = reader.uint32();
2522
- switch (tag >>> 3) {
2523
- case 1:
2524
- if (tag !== 10) {
2525
- break;
2526
- }
2527
- message.nonce = reader.bytes();
2528
- continue;
2529
- case 2:
2530
- if (tag !== 18) {
2531
- break;
2532
- }
2533
- message.balance = reader.bytes();
2534
- continue;
2535
- case 3:
2536
- if (tag !== 26) {
2537
- break;
2538
- }
2539
- message.storageHash = reader.bytes();
2540
- continue;
2541
- case 4:
2542
- if (tag !== 34) {
2543
- break;
2544
- }
2545
- message.codeHash = reader.bytes();
2546
- continue;
2547
- case 5:
2548
- if (tag !== 42) {
2549
- break;
2550
- }
2551
- message.siblings.push(reader.bytes());
2552
- continue;
2553
- }
2554
- if ((tag & 7) === 4 || tag === 0) {
2555
- break;
2556
- }
2557
- reader.skipType(tag & 7);
2558
- }
2559
- return message;
2560
- },
2561
- fromJSON(object) {
2562
- return {
2563
- nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
2564
- balance: isSet(object.balance) ? bytesFromBase64(object.balance) : new Uint8Array(0),
2565
- storageHash: isSet(object.storageHash) ? bytesFromBase64(object.storageHash) : new Uint8Array(0),
2566
- codeHash: isSet(object.codeHash) ? bytesFromBase64(object.codeHash) : new Uint8Array(0),
2567
- siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2568
- };
2569
- },
2570
- toJSON(message) {
2571
- const obj = {};
2572
- if (message.nonce.length !== 0) {
2573
- obj.nonce = base64FromBytes(message.nonce);
2574
- }
2575
- if (message.balance.length !== 0) {
2576
- obj.balance = base64FromBytes(message.balance);
2577
- }
2578
- if (message.storageHash.length !== 0) {
2579
- obj.storageHash = base64FromBytes(message.storageHash);
2580
- }
2581
- if (message.codeHash.length !== 0) {
2582
- obj.codeHash = base64FromBytes(message.codeHash);
2583
- }
2584
- if (message.siblings?.length) {
2585
- obj.siblings = message.siblings.map((e) => base64FromBytes(e));
2586
- }
2587
- return obj;
2588
- },
2589
- create(base) {
2590
- return ProofEthereumAccount.fromPartial(base ?? {});
2591
- },
2592
- fromPartial(object) {
2593
- const message = createBaseProofEthereumAccount();
2594
- message.nonce = object.nonce ?? new Uint8Array(0);
2595
- message.balance = object.balance ?? new Uint8Array(0);
2596
- message.storageHash = object.storageHash ?? new Uint8Array(0);
2597
- message.codeHash = object.codeHash ?? new Uint8Array(0);
2598
- message.siblings = object.siblings?.map((e) => e) || [];
2599
- return message;
2600
- }
2601
- };
2602
- function createBaseProofMinime() {
2603
- return { proofPrevBlock: void 0, proofNextBlock: void 0 };
2604
- }
2605
- var ProofMinime = {
2606
- encode(message, writer = import_minimal.default.Writer.create()) {
2607
- if (message.proofPrevBlock !== void 0) {
2608
- ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
2609
- }
2610
- if (message.proofNextBlock !== void 0) {
2611
- ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
2612
- }
2613
- return writer;
2614
- },
2615
- decode(input, length) {
2616
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
2617
- let end = length === void 0 ? reader.len : reader.pos + length;
2618
- const message = createBaseProofMinime();
2619
- while (reader.pos < end) {
2620
- const tag = reader.uint32();
2621
- switch (tag >>> 3) {
2622
- case 1:
2623
- if (tag !== 10) {
2624
- break;
2625
- }
2626
- message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
2627
- continue;
2628
- case 2:
2629
- if (tag !== 18) {
2630
- break;
2631
- }
2632
- message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
2633
- continue;
2634
- }
2635
- if ((tag & 7) === 4 || tag === 0) {
2636
- break;
2637
- }
2638
- reader.skipType(tag & 7);
2639
- }
2640
- return message;
2641
- },
2642
- fromJSON(object) {
2643
- return {
2644
- proofPrevBlock: isSet(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
2645
- proofNextBlock: isSet(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
2646
- };
2647
- },
2648
- toJSON(message) {
2649
- const obj = {};
2650
- if (message.proofPrevBlock !== void 0) {
2651
- obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
2652
- }
2653
- if (message.proofNextBlock !== void 0) {
2654
- obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
2655
- }
2656
- return obj;
2657
- },
2658
- create(base) {
2659
- return ProofMinime.fromPartial(base ?? {});
2660
- },
2661
- fromPartial(object) {
2662
- const message = createBaseProofMinime();
2663
- message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
2664
- message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
2665
2294
  return message;
2666
2295
  }
2667
2296
  };
@@ -3047,86 +2676,6 @@ var ProofZkSNARK = {
3047
2676
  return message;
3048
2677
  }
3049
2678
  };
3050
- function createBaseProofFarcasterFrame() {
3051
- return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
3052
- }
3053
- var ProofFarcasterFrame = {
3054
- encode(message, writer = import_minimal.default.Writer.create()) {
3055
- if (message.signedFrameMessageBody.length !== 0) {
3056
- writer.uint32(10).bytes(message.signedFrameMessageBody);
3057
- }
3058
- if (message.censusProof !== void 0) {
3059
- ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
3060
- }
3061
- if (message.publicKey.length !== 0) {
3062
- writer.uint32(26).bytes(message.publicKey);
3063
- }
3064
- return writer;
3065
- },
3066
- decode(input, length) {
3067
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
3068
- let end = length === void 0 ? reader.len : reader.pos + length;
3069
- const message = createBaseProofFarcasterFrame();
3070
- while (reader.pos < end) {
3071
- const tag = reader.uint32();
3072
- switch (tag >>> 3) {
3073
- case 1:
3074
- if (tag !== 10) {
3075
- break;
3076
- }
3077
- message.signedFrameMessageBody = reader.bytes();
3078
- continue;
3079
- case 2:
3080
- if (tag !== 18) {
3081
- break;
3082
- }
3083
- message.censusProof = ProofArbo.decode(reader, reader.uint32());
3084
- continue;
3085
- case 3:
3086
- if (tag !== 26) {
3087
- break;
3088
- }
3089
- message.publicKey = reader.bytes();
3090
- continue;
3091
- }
3092
- if ((tag & 7) === 4 || tag === 0) {
3093
- break;
3094
- }
3095
- reader.skipType(tag & 7);
3096
- }
3097
- return message;
3098
- },
3099
- fromJSON(object) {
3100
- return {
3101
- signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
3102
- censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
3103
- publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
3104
- };
3105
- },
3106
- toJSON(message) {
3107
- const obj = {};
3108
- if (message.signedFrameMessageBody.length !== 0) {
3109
- obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
3110
- }
3111
- if (message.censusProof !== void 0) {
3112
- obj.censusProof = ProofArbo.toJSON(message.censusProof);
3113
- }
3114
- if (message.publicKey.length !== 0) {
3115
- obj.publicKey = base64FromBytes(message.publicKey);
3116
- }
3117
- return obj;
3118
- },
3119
- create(base) {
3120
- return ProofFarcasterFrame.fromPartial(base ?? {});
3121
- },
3122
- fromPartial(object) {
3123
- const message = createBaseProofFarcasterFrame();
3124
- message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
3125
- message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
3126
- message.publicKey = object.publicKey ?? new Uint8Array(0);
3127
- return message;
3128
- }
3129
- };
3130
2679
  function createBaseAccount() {
3131
2680
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
3132
2681
  }
@@ -6659,10 +6208,6 @@ export {
6659
6208
  ProofArbo_Type,
6660
6209
  ProofCA,
6661
6210
  ProofCA_Type,
6662
- ProofEthereumAccount,
6663
- ProofEthereumStorage,
6664
- ProofFarcasterFrame,
6665
- ProofMinime,
6666
6211
  ProofZkSNARK,
6667
6212
  QuestionResult,
6668
6213
  RegisterKeyTx,
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@vocdoni/proto",
3
- "version": "1.15.13",
3
+ "version": "1.16.0",
4
4
  "license": "GPL-3.0-or-later",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vocdoni/dvote-protobuf.git"
8
+ },
5
9
  "devDependencies": {
6
10
  "ts-node": "^9.1.1",
7
11
  "ts-proto": "^1.181.2",