@vocdoni/proto 1.15.14 → 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.
- package/build/js/{index-0de2b07d.d.ts → index-b19a326e.d.ts} +351 -5367
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +1 -480
- package/build/js/index.mjs +1 -480
- package/build/js/vochain/index.d.ts +1 -1
- package/build/js/vochain/index.js +1 -484
- package/build/js/vochain/index.mjs +1 -480
- package/package.json +1 -1
|
@@ -1493,10 +1493,6 @@ __export(vochain_exports, {
|
|
|
1493
1493
|
ProofArbo_Type: () => ProofArbo_Type,
|
|
1494
1494
|
ProofCA: () => ProofCA,
|
|
1495
1495
|
ProofCA_Type: () => ProofCA_Type,
|
|
1496
|
-
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
1497
|
-
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
1498
|
-
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
1499
|
-
ProofMinime: () => ProofMinime,
|
|
1500
1496
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
1501
1497
|
QuestionResult: () => QuestionResult,
|
|
1502
1498
|
RegisterKeyTx: () => RegisterKeyTx,
|
|
@@ -1889,12 +1885,6 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
1889
1885
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
1890
1886
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
1891
1887
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
1892
|
-
CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
|
|
1893
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
1894
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
1895
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
1896
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
1897
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
1898
1888
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1899
1889
|
return CensusOrigin2;
|
|
1900
1890
|
})(CensusOrigin || {});
|
|
@@ -1915,24 +1905,6 @@ function censusOriginFromJSON(object) {
|
|
|
1915
1905
|
case 4:
|
|
1916
1906
|
case "OFF_CHAIN_CA_V2":
|
|
1917
1907
|
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
1918
|
-
case 11:
|
|
1919
|
-
case "ERC20":
|
|
1920
|
-
return 11 /* ERC20 */;
|
|
1921
|
-
case 12:
|
|
1922
|
-
case "ERC721":
|
|
1923
|
-
return 12 /* ERC721 */;
|
|
1924
|
-
case 13:
|
|
1925
|
-
case "ERC1155":
|
|
1926
|
-
return 13 /* ERC1155 */;
|
|
1927
|
-
case 14:
|
|
1928
|
-
case "ERC777":
|
|
1929
|
-
return 14 /* ERC777 */;
|
|
1930
|
-
case 15:
|
|
1931
|
-
case "MINI_ME":
|
|
1932
|
-
return 15 /* MINI_ME */;
|
|
1933
|
-
case 16:
|
|
1934
|
-
case "FARCASTER_FRAME":
|
|
1935
|
-
return 16 /* FARCASTER_FRAME */;
|
|
1936
1908
|
case -1:
|
|
1937
1909
|
case "UNRECOGNIZED":
|
|
1938
1910
|
default:
|
|
@@ -1951,18 +1923,6 @@ function censusOriginToJSON(object) {
|
|
|
1951
1923
|
return "OFF_CHAIN_CA";
|
|
1952
1924
|
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
1953
1925
|
return "OFF_CHAIN_CA_V2";
|
|
1954
|
-
case 11 /* ERC20 */:
|
|
1955
|
-
return "ERC20";
|
|
1956
|
-
case 12 /* ERC721 */:
|
|
1957
|
-
return "ERC721";
|
|
1958
|
-
case 13 /* ERC1155 */:
|
|
1959
|
-
return "ERC1155";
|
|
1960
|
-
case 14 /* ERC777 */:
|
|
1961
|
-
return "ERC777";
|
|
1962
|
-
case 15 /* MINI_ME */:
|
|
1963
|
-
return "MINI_ME";
|
|
1964
|
-
case 16 /* FARCASTER_FRAME */:
|
|
1965
|
-
return "FARCASTER_FRAME";
|
|
1966
1926
|
case -1 /* UNRECOGNIZED */:
|
|
1967
1927
|
default:
|
|
1968
1928
|
return "UNRECOGNIZED";
|
|
@@ -1972,10 +1932,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
1972
1932
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
1973
1933
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
1974
1934
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
1975
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
1976
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
1977
1935
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
1978
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
1979
1936
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1980
1937
|
return Census_Type2;
|
|
1981
1938
|
})(Census_Type || {});
|
|
@@ -1990,18 +1947,9 @@ function census_TypeFromJSON(object) {
|
|
|
1990
1947
|
case 2:
|
|
1991
1948
|
case "ARBO_POSEIDON":
|
|
1992
1949
|
return 2 /* ARBO_POSEIDON */;
|
|
1993
|
-
case 3:
|
|
1994
|
-
case "ETHEREUMSTORAGE":
|
|
1995
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
1996
|
-
case 4:
|
|
1997
|
-
case "ETHEREUMACCOUNT":
|
|
1998
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
1999
1950
|
case 5:
|
|
2000
1951
|
case "CA":
|
|
2001
1952
|
return 5 /* CA */;
|
|
2002
|
-
case 6:
|
|
2003
|
-
case "FARCASTER_FRAME":
|
|
2004
|
-
return 6 /* FARCASTER_FRAME */;
|
|
2005
1953
|
case -1:
|
|
2006
1954
|
case "UNRECOGNIZED":
|
|
2007
1955
|
default:
|
|
@@ -2016,14 +1964,8 @@ function census_TypeToJSON(object) {
|
|
|
2016
1964
|
return "ARBO_BLAKE2B";
|
|
2017
1965
|
case 2 /* ARBO_POSEIDON */:
|
|
2018
1966
|
return "ARBO_POSEIDON";
|
|
2019
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
2020
|
-
return "ETHEREUMSTORAGE";
|
|
2021
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
2022
|
-
return "ETHEREUMACCOUNT";
|
|
2023
1967
|
case 5 /* CA */:
|
|
2024
1968
|
return "CA";
|
|
2025
|
-
case 6 /* FARCASTER_FRAME */:
|
|
2026
|
-
return "FARCASTER_FRAME";
|
|
2027
1969
|
case -1 /* UNRECOGNIZED */:
|
|
2028
1970
|
default:
|
|
2029
1971
|
return "UNRECOGNIZED";
|
|
@@ -2336,12 +2278,6 @@ function createBaseProof() {
|
|
|
2336
2278
|
var Proof = {
|
|
2337
2279
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2338
2280
|
switch (message.payload?.$case) {
|
|
2339
|
-
case "ethereumStorage":
|
|
2340
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
2341
|
-
break;
|
|
2342
|
-
case "ethereumAccount":
|
|
2343
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
2344
|
-
break;
|
|
2345
2281
|
case "ca":
|
|
2346
2282
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
2347
2283
|
break;
|
|
@@ -2351,12 +2287,6 @@ var Proof = {
|
|
|
2351
2287
|
case "zkSnark":
|
|
2352
2288
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
2353
2289
|
break;
|
|
2354
|
-
case "minimeStorage":
|
|
2355
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2356
|
-
break;
|
|
2357
|
-
case "farcasterFrame":
|
|
2358
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
2359
|
-
break;
|
|
2360
2290
|
}
|
|
2361
2291
|
return writer;
|
|
2362
2292
|
},
|
|
@@ -2367,24 +2297,6 @@ var Proof = {
|
|
|
2367
2297
|
while (reader.pos < end) {
|
|
2368
2298
|
const tag = reader.uint32();
|
|
2369
2299
|
switch (tag >>> 3) {
|
|
2370
|
-
case 3:
|
|
2371
|
-
if (tag !== 26) {
|
|
2372
|
-
break;
|
|
2373
|
-
}
|
|
2374
|
-
message.payload = {
|
|
2375
|
-
$case: "ethereumStorage",
|
|
2376
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
2377
|
-
};
|
|
2378
|
-
continue;
|
|
2379
|
-
case 4:
|
|
2380
|
-
if (tag !== 34) {
|
|
2381
|
-
break;
|
|
2382
|
-
}
|
|
2383
|
-
message.payload = {
|
|
2384
|
-
$case: "ethereumAccount",
|
|
2385
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
2386
|
-
};
|
|
2387
|
-
continue;
|
|
2388
2300
|
case 5:
|
|
2389
2301
|
if (tag !== 42) {
|
|
2390
2302
|
break;
|
|
@@ -2403,21 +2315,6 @@ var Proof = {
|
|
|
2403
2315
|
}
|
|
2404
2316
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
2405
2317
|
continue;
|
|
2406
|
-
case 8:
|
|
2407
|
-
if (tag !== 66) {
|
|
2408
|
-
break;
|
|
2409
|
-
}
|
|
2410
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2411
|
-
continue;
|
|
2412
|
-
case 9:
|
|
2413
|
-
if (tag !== 74) {
|
|
2414
|
-
break;
|
|
2415
|
-
}
|
|
2416
|
-
message.payload = {
|
|
2417
|
-
$case: "farcasterFrame",
|
|
2418
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
2419
|
-
};
|
|
2420
|
-
continue;
|
|
2421
2318
|
}
|
|
2422
2319
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2423
2320
|
break;
|
|
@@ -2428,17 +2325,11 @@ var Proof = {
|
|
|
2428
2325
|
},
|
|
2429
2326
|
fromJSON(object) {
|
|
2430
2327
|
return {
|
|
2431
|
-
payload: isSet(object.
|
|
2328
|
+
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
|
|
2432
2329
|
};
|
|
2433
2330
|
},
|
|
2434
2331
|
toJSON(message) {
|
|
2435
2332
|
const obj = {};
|
|
2436
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
2437
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
2438
|
-
}
|
|
2439
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
2440
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
2441
|
-
}
|
|
2442
2333
|
if (message.payload?.$case === "ca") {
|
|
2443
2334
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
2444
2335
|
}
|
|
@@ -2448,12 +2339,6 @@ var Proof = {
|
|
|
2448
2339
|
if (message.payload?.$case === "zkSnark") {
|
|
2449
2340
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
2450
2341
|
}
|
|
2451
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
2452
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
2453
|
-
}
|
|
2454
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
2455
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
2456
|
-
}
|
|
2457
2342
|
return obj;
|
|
2458
2343
|
},
|
|
2459
2344
|
create(base) {
|
|
@@ -2461,18 +2346,6 @@ var Proof = {
|
|
|
2461
2346
|
},
|
|
2462
2347
|
fromPartial(object) {
|
|
2463
2348
|
const message = createBaseProof();
|
|
2464
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
2465
|
-
message.payload = {
|
|
2466
|
-
$case: "ethereumStorage",
|
|
2467
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
2468
|
-
};
|
|
2469
|
-
}
|
|
2470
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
2471
|
-
message.payload = {
|
|
2472
|
-
$case: "ethereumAccount",
|
|
2473
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
2474
|
-
};
|
|
2475
|
-
}
|
|
2476
2349
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
2477
2350
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
2478
2351
|
}
|
|
@@ -2482,278 +2355,6 @@ var Proof = {
|
|
|
2482
2355
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
2483
2356
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
2484
2357
|
}
|
|
2485
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
2486
|
-
message.payload = {
|
|
2487
|
-
$case: "minimeStorage",
|
|
2488
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
2489
|
-
};
|
|
2490
|
-
}
|
|
2491
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
2492
|
-
message.payload = {
|
|
2493
|
-
$case: "farcasterFrame",
|
|
2494
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
2495
|
-
};
|
|
2496
|
-
}
|
|
2497
|
-
return message;
|
|
2498
|
-
}
|
|
2499
|
-
};
|
|
2500
|
-
function createBaseProofEthereumStorage() {
|
|
2501
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
2502
|
-
}
|
|
2503
|
-
var ProofEthereumStorage = {
|
|
2504
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2505
|
-
if (message.key.length !== 0) {
|
|
2506
|
-
writer.uint32(10).bytes(message.key);
|
|
2507
|
-
}
|
|
2508
|
-
if (message.value.length !== 0) {
|
|
2509
|
-
writer.uint32(18).bytes(message.value);
|
|
2510
|
-
}
|
|
2511
|
-
for (const v of message.siblings) {
|
|
2512
|
-
writer.uint32(26).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 = createBaseProofEthereumStorage();
|
|
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.key = reader.bytes();
|
|
2528
|
-
continue;
|
|
2529
|
-
case 2:
|
|
2530
|
-
if (tag !== 18) {
|
|
2531
|
-
break;
|
|
2532
|
-
}
|
|
2533
|
-
message.value = reader.bytes();
|
|
2534
|
-
continue;
|
|
2535
|
-
case 3:
|
|
2536
|
-
if (tag !== 26) {
|
|
2537
|
-
break;
|
|
2538
|
-
}
|
|
2539
|
-
message.siblings.push(reader.bytes());
|
|
2540
|
-
continue;
|
|
2541
|
-
}
|
|
2542
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2543
|
-
break;
|
|
2544
|
-
}
|
|
2545
|
-
reader.skipType(tag & 7);
|
|
2546
|
-
}
|
|
2547
|
-
return message;
|
|
2548
|
-
},
|
|
2549
|
-
fromJSON(object) {
|
|
2550
|
-
return {
|
|
2551
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
2552
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
2553
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2554
|
-
};
|
|
2555
|
-
},
|
|
2556
|
-
toJSON(message) {
|
|
2557
|
-
const obj = {};
|
|
2558
|
-
if (message.key.length !== 0) {
|
|
2559
|
-
obj.key = base64FromBytes(message.key);
|
|
2560
|
-
}
|
|
2561
|
-
if (message.value.length !== 0) {
|
|
2562
|
-
obj.value = base64FromBytes(message.value);
|
|
2563
|
-
}
|
|
2564
|
-
if (message.siblings?.length) {
|
|
2565
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2566
|
-
}
|
|
2567
|
-
return obj;
|
|
2568
|
-
},
|
|
2569
|
-
create(base) {
|
|
2570
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
2571
|
-
},
|
|
2572
|
-
fromPartial(object) {
|
|
2573
|
-
const message = createBaseProofEthereumStorage();
|
|
2574
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
2575
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
2576
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2577
|
-
return message;
|
|
2578
|
-
}
|
|
2579
|
-
};
|
|
2580
|
-
function createBaseProofEthereumAccount() {
|
|
2581
|
-
return {
|
|
2582
|
-
nonce: new Uint8Array(0),
|
|
2583
|
-
balance: new Uint8Array(0),
|
|
2584
|
-
storageHash: new Uint8Array(0),
|
|
2585
|
-
codeHash: new Uint8Array(0),
|
|
2586
|
-
siblings: []
|
|
2587
|
-
};
|
|
2588
|
-
}
|
|
2589
|
-
var ProofEthereumAccount = {
|
|
2590
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2591
|
-
if (message.nonce.length !== 0) {
|
|
2592
|
-
writer.uint32(10).bytes(message.nonce);
|
|
2593
|
-
}
|
|
2594
|
-
if (message.balance.length !== 0) {
|
|
2595
|
-
writer.uint32(18).bytes(message.balance);
|
|
2596
|
-
}
|
|
2597
|
-
if (message.storageHash.length !== 0) {
|
|
2598
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
2599
|
-
}
|
|
2600
|
-
if (message.codeHash.length !== 0) {
|
|
2601
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
2602
|
-
}
|
|
2603
|
-
for (const v of message.siblings) {
|
|
2604
|
-
writer.uint32(42).bytes(v);
|
|
2605
|
-
}
|
|
2606
|
-
return writer;
|
|
2607
|
-
},
|
|
2608
|
-
decode(input, length) {
|
|
2609
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2610
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2611
|
-
const message = createBaseProofEthereumAccount();
|
|
2612
|
-
while (reader.pos < end) {
|
|
2613
|
-
const tag = reader.uint32();
|
|
2614
|
-
switch (tag >>> 3) {
|
|
2615
|
-
case 1:
|
|
2616
|
-
if (tag !== 10) {
|
|
2617
|
-
break;
|
|
2618
|
-
}
|
|
2619
|
-
message.nonce = reader.bytes();
|
|
2620
|
-
continue;
|
|
2621
|
-
case 2:
|
|
2622
|
-
if (tag !== 18) {
|
|
2623
|
-
break;
|
|
2624
|
-
}
|
|
2625
|
-
message.balance = reader.bytes();
|
|
2626
|
-
continue;
|
|
2627
|
-
case 3:
|
|
2628
|
-
if (tag !== 26) {
|
|
2629
|
-
break;
|
|
2630
|
-
}
|
|
2631
|
-
message.storageHash = reader.bytes();
|
|
2632
|
-
continue;
|
|
2633
|
-
case 4:
|
|
2634
|
-
if (tag !== 34) {
|
|
2635
|
-
break;
|
|
2636
|
-
}
|
|
2637
|
-
message.codeHash = reader.bytes();
|
|
2638
|
-
continue;
|
|
2639
|
-
case 5:
|
|
2640
|
-
if (tag !== 42) {
|
|
2641
|
-
break;
|
|
2642
|
-
}
|
|
2643
|
-
message.siblings.push(reader.bytes());
|
|
2644
|
-
continue;
|
|
2645
|
-
}
|
|
2646
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2647
|
-
break;
|
|
2648
|
-
}
|
|
2649
|
-
reader.skipType(tag & 7);
|
|
2650
|
-
}
|
|
2651
|
-
return message;
|
|
2652
|
-
},
|
|
2653
|
-
fromJSON(object) {
|
|
2654
|
-
return {
|
|
2655
|
-
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
2656
|
-
balance: isSet(object.balance) ? bytesFromBase64(object.balance) : new Uint8Array(0),
|
|
2657
|
-
storageHash: isSet(object.storageHash) ? bytesFromBase64(object.storageHash) : new Uint8Array(0),
|
|
2658
|
-
codeHash: isSet(object.codeHash) ? bytesFromBase64(object.codeHash) : new Uint8Array(0),
|
|
2659
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2660
|
-
};
|
|
2661
|
-
},
|
|
2662
|
-
toJSON(message) {
|
|
2663
|
-
const obj = {};
|
|
2664
|
-
if (message.nonce.length !== 0) {
|
|
2665
|
-
obj.nonce = base64FromBytes(message.nonce);
|
|
2666
|
-
}
|
|
2667
|
-
if (message.balance.length !== 0) {
|
|
2668
|
-
obj.balance = base64FromBytes(message.balance);
|
|
2669
|
-
}
|
|
2670
|
-
if (message.storageHash.length !== 0) {
|
|
2671
|
-
obj.storageHash = base64FromBytes(message.storageHash);
|
|
2672
|
-
}
|
|
2673
|
-
if (message.codeHash.length !== 0) {
|
|
2674
|
-
obj.codeHash = base64FromBytes(message.codeHash);
|
|
2675
|
-
}
|
|
2676
|
-
if (message.siblings?.length) {
|
|
2677
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2678
|
-
}
|
|
2679
|
-
return obj;
|
|
2680
|
-
},
|
|
2681
|
-
create(base) {
|
|
2682
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
2683
|
-
},
|
|
2684
|
-
fromPartial(object) {
|
|
2685
|
-
const message = createBaseProofEthereumAccount();
|
|
2686
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
2687
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
2688
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
2689
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
2690
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2691
|
-
return message;
|
|
2692
|
-
}
|
|
2693
|
-
};
|
|
2694
|
-
function createBaseProofMinime() {
|
|
2695
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
2696
|
-
}
|
|
2697
|
-
var ProofMinime = {
|
|
2698
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2699
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2700
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
2701
|
-
}
|
|
2702
|
-
if (message.proofNextBlock !== void 0) {
|
|
2703
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
2704
|
-
}
|
|
2705
|
-
return writer;
|
|
2706
|
-
},
|
|
2707
|
-
decode(input, length) {
|
|
2708
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2709
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2710
|
-
const message = createBaseProofMinime();
|
|
2711
|
-
while (reader.pos < end) {
|
|
2712
|
-
const tag = reader.uint32();
|
|
2713
|
-
switch (tag >>> 3) {
|
|
2714
|
-
case 1:
|
|
2715
|
-
if (tag !== 10) {
|
|
2716
|
-
break;
|
|
2717
|
-
}
|
|
2718
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2719
|
-
continue;
|
|
2720
|
-
case 2:
|
|
2721
|
-
if (tag !== 18) {
|
|
2722
|
-
break;
|
|
2723
|
-
}
|
|
2724
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2725
|
-
continue;
|
|
2726
|
-
}
|
|
2727
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2728
|
-
break;
|
|
2729
|
-
}
|
|
2730
|
-
reader.skipType(tag & 7);
|
|
2731
|
-
}
|
|
2732
|
-
return message;
|
|
2733
|
-
},
|
|
2734
|
-
fromJSON(object) {
|
|
2735
|
-
return {
|
|
2736
|
-
proofPrevBlock: isSet(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
2737
|
-
proofNextBlock: isSet(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
2738
|
-
};
|
|
2739
|
-
},
|
|
2740
|
-
toJSON(message) {
|
|
2741
|
-
const obj = {};
|
|
2742
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2743
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
2744
|
-
}
|
|
2745
|
-
if (message.proofNextBlock !== void 0) {
|
|
2746
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
2747
|
-
}
|
|
2748
|
-
return obj;
|
|
2749
|
-
},
|
|
2750
|
-
create(base) {
|
|
2751
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
2752
|
-
},
|
|
2753
|
-
fromPartial(object) {
|
|
2754
|
-
const message = createBaseProofMinime();
|
|
2755
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
2756
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
2757
2358
|
return message;
|
|
2758
2359
|
}
|
|
2759
2360
|
};
|
|
@@ -3139,86 +2740,6 @@ var ProofZkSNARK = {
|
|
|
3139
2740
|
return message;
|
|
3140
2741
|
}
|
|
3141
2742
|
};
|
|
3142
|
-
function createBaseProofFarcasterFrame() {
|
|
3143
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
3144
|
-
}
|
|
3145
|
-
var ProofFarcasterFrame = {
|
|
3146
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
3147
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3148
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
3149
|
-
}
|
|
3150
|
-
if (message.censusProof !== void 0) {
|
|
3151
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
3152
|
-
}
|
|
3153
|
-
if (message.publicKey.length !== 0) {
|
|
3154
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
3155
|
-
}
|
|
3156
|
-
return writer;
|
|
3157
|
-
},
|
|
3158
|
-
decode(input, length) {
|
|
3159
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3160
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3161
|
-
const message = createBaseProofFarcasterFrame();
|
|
3162
|
-
while (reader.pos < end) {
|
|
3163
|
-
const tag = reader.uint32();
|
|
3164
|
-
switch (tag >>> 3) {
|
|
3165
|
-
case 1:
|
|
3166
|
-
if (tag !== 10) {
|
|
3167
|
-
break;
|
|
3168
|
-
}
|
|
3169
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
3170
|
-
continue;
|
|
3171
|
-
case 2:
|
|
3172
|
-
if (tag !== 18) {
|
|
3173
|
-
break;
|
|
3174
|
-
}
|
|
3175
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
3176
|
-
continue;
|
|
3177
|
-
case 3:
|
|
3178
|
-
if (tag !== 26) {
|
|
3179
|
-
break;
|
|
3180
|
-
}
|
|
3181
|
-
message.publicKey = reader.bytes();
|
|
3182
|
-
continue;
|
|
3183
|
-
}
|
|
3184
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3185
|
-
break;
|
|
3186
|
-
}
|
|
3187
|
-
reader.skipType(tag & 7);
|
|
3188
|
-
}
|
|
3189
|
-
return message;
|
|
3190
|
-
},
|
|
3191
|
-
fromJSON(object) {
|
|
3192
|
-
return {
|
|
3193
|
-
signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
3194
|
-
censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
3195
|
-
publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
|
|
3196
|
-
};
|
|
3197
|
-
},
|
|
3198
|
-
toJSON(message) {
|
|
3199
|
-
const obj = {};
|
|
3200
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3201
|
-
obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
|
|
3202
|
-
}
|
|
3203
|
-
if (message.censusProof !== void 0) {
|
|
3204
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
3205
|
-
}
|
|
3206
|
-
if (message.publicKey.length !== 0) {
|
|
3207
|
-
obj.publicKey = base64FromBytes(message.publicKey);
|
|
3208
|
-
}
|
|
3209
|
-
return obj;
|
|
3210
|
-
},
|
|
3211
|
-
create(base) {
|
|
3212
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
3213
|
-
},
|
|
3214
|
-
fromPartial(object) {
|
|
3215
|
-
const message = createBaseProofFarcasterFrame();
|
|
3216
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
3217
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
3218
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
3219
|
-
return message;
|
|
3220
|
-
}
|
|
3221
|
-
};
|
|
3222
2743
|
function createBaseAccount() {
|
|
3223
2744
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
3224
2745
|
}
|
|
@@ -6752,10 +6273,6 @@ function isSet(value) {
|
|
|
6752
6273
|
ProofArbo_Type,
|
|
6753
6274
|
ProofCA,
|
|
6754
6275
|
ProofCA_Type,
|
|
6755
|
-
ProofEthereumAccount,
|
|
6756
|
-
ProofEthereumStorage,
|
|
6757
|
-
ProofFarcasterFrame,
|
|
6758
|
-
ProofMinime,
|
|
6759
6276
|
ProofZkSNARK,
|
|
6760
6277
|
QuestionResult,
|
|
6761
6278
|
RegisterKeyTx,
|