@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
|
@@ -1821,12 +1821,6 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
1821
1821
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
1822
1822
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
1823
1823
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
1824
|
-
CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
|
|
1825
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
1826
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
1827
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
1828
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
1829
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
1830
1824
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1831
1825
|
return CensusOrigin2;
|
|
1832
1826
|
})(CensusOrigin || {});
|
|
@@ -1847,24 +1841,6 @@ function censusOriginFromJSON(object) {
|
|
|
1847
1841
|
case 4:
|
|
1848
1842
|
case "OFF_CHAIN_CA_V2":
|
|
1849
1843
|
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
1850
|
-
case 11:
|
|
1851
|
-
case "ERC20":
|
|
1852
|
-
return 11 /* ERC20 */;
|
|
1853
|
-
case 12:
|
|
1854
|
-
case "ERC721":
|
|
1855
|
-
return 12 /* ERC721 */;
|
|
1856
|
-
case 13:
|
|
1857
|
-
case "ERC1155":
|
|
1858
|
-
return 13 /* ERC1155 */;
|
|
1859
|
-
case 14:
|
|
1860
|
-
case "ERC777":
|
|
1861
|
-
return 14 /* ERC777 */;
|
|
1862
|
-
case 15:
|
|
1863
|
-
case "MINI_ME":
|
|
1864
|
-
return 15 /* MINI_ME */;
|
|
1865
|
-
case 16:
|
|
1866
|
-
case "FARCASTER_FRAME":
|
|
1867
|
-
return 16 /* FARCASTER_FRAME */;
|
|
1868
1844
|
case -1:
|
|
1869
1845
|
case "UNRECOGNIZED":
|
|
1870
1846
|
default:
|
|
@@ -1883,18 +1859,6 @@ function censusOriginToJSON(object) {
|
|
|
1883
1859
|
return "OFF_CHAIN_CA";
|
|
1884
1860
|
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
1885
1861
|
return "OFF_CHAIN_CA_V2";
|
|
1886
|
-
case 11 /* ERC20 */:
|
|
1887
|
-
return "ERC20";
|
|
1888
|
-
case 12 /* ERC721 */:
|
|
1889
|
-
return "ERC721";
|
|
1890
|
-
case 13 /* ERC1155 */:
|
|
1891
|
-
return "ERC1155";
|
|
1892
|
-
case 14 /* ERC777 */:
|
|
1893
|
-
return "ERC777";
|
|
1894
|
-
case 15 /* MINI_ME */:
|
|
1895
|
-
return "MINI_ME";
|
|
1896
|
-
case 16 /* FARCASTER_FRAME */:
|
|
1897
|
-
return "FARCASTER_FRAME";
|
|
1898
1862
|
case -1 /* UNRECOGNIZED */:
|
|
1899
1863
|
default:
|
|
1900
1864
|
return "UNRECOGNIZED";
|
|
@@ -1904,10 +1868,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
1904
1868
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
1905
1869
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
1906
1870
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
1907
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
1908
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
1909
1871
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
1910
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
1911
1872
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1912
1873
|
return Census_Type2;
|
|
1913
1874
|
})(Census_Type || {});
|
|
@@ -1922,18 +1883,9 @@ function census_TypeFromJSON(object) {
|
|
|
1922
1883
|
case 2:
|
|
1923
1884
|
case "ARBO_POSEIDON":
|
|
1924
1885
|
return 2 /* ARBO_POSEIDON */;
|
|
1925
|
-
case 3:
|
|
1926
|
-
case "ETHEREUMSTORAGE":
|
|
1927
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
1928
|
-
case 4:
|
|
1929
|
-
case "ETHEREUMACCOUNT":
|
|
1930
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
1931
1886
|
case 5:
|
|
1932
1887
|
case "CA":
|
|
1933
1888
|
return 5 /* CA */;
|
|
1934
|
-
case 6:
|
|
1935
|
-
case "FARCASTER_FRAME":
|
|
1936
|
-
return 6 /* FARCASTER_FRAME */;
|
|
1937
1889
|
case -1:
|
|
1938
1890
|
case "UNRECOGNIZED":
|
|
1939
1891
|
default:
|
|
@@ -1948,14 +1900,8 @@ function census_TypeToJSON(object) {
|
|
|
1948
1900
|
return "ARBO_BLAKE2B";
|
|
1949
1901
|
case 2 /* ARBO_POSEIDON */:
|
|
1950
1902
|
return "ARBO_POSEIDON";
|
|
1951
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
1952
|
-
return "ETHEREUMSTORAGE";
|
|
1953
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
1954
|
-
return "ETHEREUMACCOUNT";
|
|
1955
1903
|
case 5 /* CA */:
|
|
1956
1904
|
return "CA";
|
|
1957
|
-
case 6 /* FARCASTER_FRAME */:
|
|
1958
|
-
return "FARCASTER_FRAME";
|
|
1959
1905
|
case -1 /* UNRECOGNIZED */:
|
|
1960
1906
|
default:
|
|
1961
1907
|
return "UNRECOGNIZED";
|
|
@@ -2268,12 +2214,6 @@ function createBaseProof() {
|
|
|
2268
2214
|
var Proof = {
|
|
2269
2215
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2270
2216
|
switch (message.payload?.$case) {
|
|
2271
|
-
case "ethereumStorage":
|
|
2272
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
2273
|
-
break;
|
|
2274
|
-
case "ethereumAccount":
|
|
2275
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
2276
|
-
break;
|
|
2277
2217
|
case "ca":
|
|
2278
2218
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
2279
2219
|
break;
|
|
@@ -2283,12 +2223,6 @@ var Proof = {
|
|
|
2283
2223
|
case "zkSnark":
|
|
2284
2224
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
2285
2225
|
break;
|
|
2286
|
-
case "minimeStorage":
|
|
2287
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2288
|
-
break;
|
|
2289
|
-
case "farcasterFrame":
|
|
2290
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
2291
|
-
break;
|
|
2292
2226
|
}
|
|
2293
2227
|
return writer;
|
|
2294
2228
|
},
|
|
@@ -2299,24 +2233,6 @@ var Proof = {
|
|
|
2299
2233
|
while (reader.pos < end) {
|
|
2300
2234
|
const tag = reader.uint32();
|
|
2301
2235
|
switch (tag >>> 3) {
|
|
2302
|
-
case 3:
|
|
2303
|
-
if (tag !== 26) {
|
|
2304
|
-
break;
|
|
2305
|
-
}
|
|
2306
|
-
message.payload = {
|
|
2307
|
-
$case: "ethereumStorage",
|
|
2308
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
2309
|
-
};
|
|
2310
|
-
continue;
|
|
2311
|
-
case 4:
|
|
2312
|
-
if (tag !== 34) {
|
|
2313
|
-
break;
|
|
2314
|
-
}
|
|
2315
|
-
message.payload = {
|
|
2316
|
-
$case: "ethereumAccount",
|
|
2317
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
2318
|
-
};
|
|
2319
|
-
continue;
|
|
2320
2236
|
case 5:
|
|
2321
2237
|
if (tag !== 42) {
|
|
2322
2238
|
break;
|
|
@@ -2335,21 +2251,6 @@ var Proof = {
|
|
|
2335
2251
|
}
|
|
2336
2252
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
2337
2253
|
continue;
|
|
2338
|
-
case 8:
|
|
2339
|
-
if (tag !== 66) {
|
|
2340
|
-
break;
|
|
2341
|
-
}
|
|
2342
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2343
|
-
continue;
|
|
2344
|
-
case 9:
|
|
2345
|
-
if (tag !== 74) {
|
|
2346
|
-
break;
|
|
2347
|
-
}
|
|
2348
|
-
message.payload = {
|
|
2349
|
-
$case: "farcasterFrame",
|
|
2350
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
2351
|
-
};
|
|
2352
|
-
continue;
|
|
2353
2254
|
}
|
|
2354
2255
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2355
2256
|
break;
|
|
@@ -2360,17 +2261,11 @@ var Proof = {
|
|
|
2360
2261
|
},
|
|
2361
2262
|
fromJSON(object) {
|
|
2362
2263
|
return {
|
|
2363
|
-
payload: isSet(object.
|
|
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
|
|
2364
2265
|
};
|
|
2365
2266
|
},
|
|
2366
2267
|
toJSON(message) {
|
|
2367
2268
|
const obj = {};
|
|
2368
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
2369
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
2370
|
-
}
|
|
2371
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
2372
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
2373
|
-
}
|
|
2374
2269
|
if (message.payload?.$case === "ca") {
|
|
2375
2270
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
2376
2271
|
}
|
|
@@ -2380,12 +2275,6 @@ var Proof = {
|
|
|
2380
2275
|
if (message.payload?.$case === "zkSnark") {
|
|
2381
2276
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
2382
2277
|
}
|
|
2383
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
2384
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
2385
|
-
}
|
|
2386
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
2387
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
2388
|
-
}
|
|
2389
2278
|
return obj;
|
|
2390
2279
|
},
|
|
2391
2280
|
create(base) {
|
|
@@ -2393,18 +2282,6 @@ var Proof = {
|
|
|
2393
2282
|
},
|
|
2394
2283
|
fromPartial(object) {
|
|
2395
2284
|
const message = createBaseProof();
|
|
2396
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
2397
|
-
message.payload = {
|
|
2398
|
-
$case: "ethereumStorage",
|
|
2399
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
2400
|
-
};
|
|
2401
|
-
}
|
|
2402
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
2403
|
-
message.payload = {
|
|
2404
|
-
$case: "ethereumAccount",
|
|
2405
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
2406
|
-
};
|
|
2407
|
-
}
|
|
2408
2285
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
2409
2286
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
2410
2287
|
}
|
|
@@ -2414,278 +2291,6 @@ var Proof = {
|
|
|
2414
2291
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
2415
2292
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
2416
2293
|
}
|
|
2417
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
2418
|
-
message.payload = {
|
|
2419
|
-
$case: "minimeStorage",
|
|
2420
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
2421
|
-
};
|
|
2422
|
-
}
|
|
2423
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
2424
|
-
message.payload = {
|
|
2425
|
-
$case: "farcasterFrame",
|
|
2426
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
2427
|
-
};
|
|
2428
|
-
}
|
|
2429
|
-
return message;
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
function createBaseProofEthereumStorage() {
|
|
2433
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
2434
|
-
}
|
|
2435
|
-
var ProofEthereumStorage = {
|
|
2436
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2437
|
-
if (message.key.length !== 0) {
|
|
2438
|
-
writer.uint32(10).bytes(message.key);
|
|
2439
|
-
}
|
|
2440
|
-
if (message.value.length !== 0) {
|
|
2441
|
-
writer.uint32(18).bytes(message.value);
|
|
2442
|
-
}
|
|
2443
|
-
for (const v of message.siblings) {
|
|
2444
|
-
writer.uint32(26).bytes(v);
|
|
2445
|
-
}
|
|
2446
|
-
return writer;
|
|
2447
|
-
},
|
|
2448
|
-
decode(input, length) {
|
|
2449
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2450
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2451
|
-
const message = createBaseProofEthereumStorage();
|
|
2452
|
-
while (reader.pos < end) {
|
|
2453
|
-
const tag = reader.uint32();
|
|
2454
|
-
switch (tag >>> 3) {
|
|
2455
|
-
case 1:
|
|
2456
|
-
if (tag !== 10) {
|
|
2457
|
-
break;
|
|
2458
|
-
}
|
|
2459
|
-
message.key = reader.bytes();
|
|
2460
|
-
continue;
|
|
2461
|
-
case 2:
|
|
2462
|
-
if (tag !== 18) {
|
|
2463
|
-
break;
|
|
2464
|
-
}
|
|
2465
|
-
message.value = reader.bytes();
|
|
2466
|
-
continue;
|
|
2467
|
-
case 3:
|
|
2468
|
-
if (tag !== 26) {
|
|
2469
|
-
break;
|
|
2470
|
-
}
|
|
2471
|
-
message.siblings.push(reader.bytes());
|
|
2472
|
-
continue;
|
|
2473
|
-
}
|
|
2474
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2475
|
-
break;
|
|
2476
|
-
}
|
|
2477
|
-
reader.skipType(tag & 7);
|
|
2478
|
-
}
|
|
2479
|
-
return message;
|
|
2480
|
-
},
|
|
2481
|
-
fromJSON(object) {
|
|
2482
|
-
return {
|
|
2483
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
2484
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
2485
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2486
|
-
};
|
|
2487
|
-
},
|
|
2488
|
-
toJSON(message) {
|
|
2489
|
-
const obj = {};
|
|
2490
|
-
if (message.key.length !== 0) {
|
|
2491
|
-
obj.key = base64FromBytes(message.key);
|
|
2492
|
-
}
|
|
2493
|
-
if (message.value.length !== 0) {
|
|
2494
|
-
obj.value = base64FromBytes(message.value);
|
|
2495
|
-
}
|
|
2496
|
-
if (message.siblings?.length) {
|
|
2497
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2498
|
-
}
|
|
2499
|
-
return obj;
|
|
2500
|
-
},
|
|
2501
|
-
create(base) {
|
|
2502
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
2503
|
-
},
|
|
2504
|
-
fromPartial(object) {
|
|
2505
|
-
const message = createBaseProofEthereumStorage();
|
|
2506
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
2507
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
2508
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2509
|
-
return message;
|
|
2510
|
-
}
|
|
2511
|
-
};
|
|
2512
|
-
function createBaseProofEthereumAccount() {
|
|
2513
|
-
return {
|
|
2514
|
-
nonce: new Uint8Array(0),
|
|
2515
|
-
balance: new Uint8Array(0),
|
|
2516
|
-
storageHash: new Uint8Array(0),
|
|
2517
|
-
codeHash: new Uint8Array(0),
|
|
2518
|
-
siblings: []
|
|
2519
|
-
};
|
|
2520
|
-
}
|
|
2521
|
-
var ProofEthereumAccount = {
|
|
2522
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2523
|
-
if (message.nonce.length !== 0) {
|
|
2524
|
-
writer.uint32(10).bytes(message.nonce);
|
|
2525
|
-
}
|
|
2526
|
-
if (message.balance.length !== 0) {
|
|
2527
|
-
writer.uint32(18).bytes(message.balance);
|
|
2528
|
-
}
|
|
2529
|
-
if (message.storageHash.length !== 0) {
|
|
2530
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
2531
|
-
}
|
|
2532
|
-
if (message.codeHash.length !== 0) {
|
|
2533
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
2534
|
-
}
|
|
2535
|
-
for (const v of message.siblings) {
|
|
2536
|
-
writer.uint32(42).bytes(v);
|
|
2537
|
-
}
|
|
2538
|
-
return writer;
|
|
2539
|
-
},
|
|
2540
|
-
decode(input, length) {
|
|
2541
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2542
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2543
|
-
const message = createBaseProofEthereumAccount();
|
|
2544
|
-
while (reader.pos < end) {
|
|
2545
|
-
const tag = reader.uint32();
|
|
2546
|
-
switch (tag >>> 3) {
|
|
2547
|
-
case 1:
|
|
2548
|
-
if (tag !== 10) {
|
|
2549
|
-
break;
|
|
2550
|
-
}
|
|
2551
|
-
message.nonce = reader.bytes();
|
|
2552
|
-
continue;
|
|
2553
|
-
case 2:
|
|
2554
|
-
if (tag !== 18) {
|
|
2555
|
-
break;
|
|
2556
|
-
}
|
|
2557
|
-
message.balance = reader.bytes();
|
|
2558
|
-
continue;
|
|
2559
|
-
case 3:
|
|
2560
|
-
if (tag !== 26) {
|
|
2561
|
-
break;
|
|
2562
|
-
}
|
|
2563
|
-
message.storageHash = reader.bytes();
|
|
2564
|
-
continue;
|
|
2565
|
-
case 4:
|
|
2566
|
-
if (tag !== 34) {
|
|
2567
|
-
break;
|
|
2568
|
-
}
|
|
2569
|
-
message.codeHash = reader.bytes();
|
|
2570
|
-
continue;
|
|
2571
|
-
case 5:
|
|
2572
|
-
if (tag !== 42) {
|
|
2573
|
-
break;
|
|
2574
|
-
}
|
|
2575
|
-
message.siblings.push(reader.bytes());
|
|
2576
|
-
continue;
|
|
2577
|
-
}
|
|
2578
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2579
|
-
break;
|
|
2580
|
-
}
|
|
2581
|
-
reader.skipType(tag & 7);
|
|
2582
|
-
}
|
|
2583
|
-
return message;
|
|
2584
|
-
},
|
|
2585
|
-
fromJSON(object) {
|
|
2586
|
-
return {
|
|
2587
|
-
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
2588
|
-
balance: isSet(object.balance) ? bytesFromBase64(object.balance) : new Uint8Array(0),
|
|
2589
|
-
storageHash: isSet(object.storageHash) ? bytesFromBase64(object.storageHash) : new Uint8Array(0),
|
|
2590
|
-
codeHash: isSet(object.codeHash) ? bytesFromBase64(object.codeHash) : new Uint8Array(0),
|
|
2591
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2592
|
-
};
|
|
2593
|
-
},
|
|
2594
|
-
toJSON(message) {
|
|
2595
|
-
const obj = {};
|
|
2596
|
-
if (message.nonce.length !== 0) {
|
|
2597
|
-
obj.nonce = base64FromBytes(message.nonce);
|
|
2598
|
-
}
|
|
2599
|
-
if (message.balance.length !== 0) {
|
|
2600
|
-
obj.balance = base64FromBytes(message.balance);
|
|
2601
|
-
}
|
|
2602
|
-
if (message.storageHash.length !== 0) {
|
|
2603
|
-
obj.storageHash = base64FromBytes(message.storageHash);
|
|
2604
|
-
}
|
|
2605
|
-
if (message.codeHash.length !== 0) {
|
|
2606
|
-
obj.codeHash = base64FromBytes(message.codeHash);
|
|
2607
|
-
}
|
|
2608
|
-
if (message.siblings?.length) {
|
|
2609
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2610
|
-
}
|
|
2611
|
-
return obj;
|
|
2612
|
-
},
|
|
2613
|
-
create(base) {
|
|
2614
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
2615
|
-
},
|
|
2616
|
-
fromPartial(object) {
|
|
2617
|
-
const message = createBaseProofEthereumAccount();
|
|
2618
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
2619
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
2620
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
2621
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
2622
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2623
|
-
return message;
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
function createBaseProofMinime() {
|
|
2627
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
2628
|
-
}
|
|
2629
|
-
var ProofMinime = {
|
|
2630
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2631
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2632
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
2633
|
-
}
|
|
2634
|
-
if (message.proofNextBlock !== void 0) {
|
|
2635
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
2636
|
-
}
|
|
2637
|
-
return writer;
|
|
2638
|
-
},
|
|
2639
|
-
decode(input, length) {
|
|
2640
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2641
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2642
|
-
const message = createBaseProofMinime();
|
|
2643
|
-
while (reader.pos < end) {
|
|
2644
|
-
const tag = reader.uint32();
|
|
2645
|
-
switch (tag >>> 3) {
|
|
2646
|
-
case 1:
|
|
2647
|
-
if (tag !== 10) {
|
|
2648
|
-
break;
|
|
2649
|
-
}
|
|
2650
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2651
|
-
continue;
|
|
2652
|
-
case 2:
|
|
2653
|
-
if (tag !== 18) {
|
|
2654
|
-
break;
|
|
2655
|
-
}
|
|
2656
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2657
|
-
continue;
|
|
2658
|
-
}
|
|
2659
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2660
|
-
break;
|
|
2661
|
-
}
|
|
2662
|
-
reader.skipType(tag & 7);
|
|
2663
|
-
}
|
|
2664
|
-
return message;
|
|
2665
|
-
},
|
|
2666
|
-
fromJSON(object) {
|
|
2667
|
-
return {
|
|
2668
|
-
proofPrevBlock: isSet(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
2669
|
-
proofNextBlock: isSet(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
2670
|
-
};
|
|
2671
|
-
},
|
|
2672
|
-
toJSON(message) {
|
|
2673
|
-
const obj = {};
|
|
2674
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2675
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
2676
|
-
}
|
|
2677
|
-
if (message.proofNextBlock !== void 0) {
|
|
2678
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
2679
|
-
}
|
|
2680
|
-
return obj;
|
|
2681
|
-
},
|
|
2682
|
-
create(base) {
|
|
2683
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
2684
|
-
},
|
|
2685
|
-
fromPartial(object) {
|
|
2686
|
-
const message = createBaseProofMinime();
|
|
2687
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
2688
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
2689
2294
|
return message;
|
|
2690
2295
|
}
|
|
2691
2296
|
};
|
|
@@ -3071,86 +2676,6 @@ var ProofZkSNARK = {
|
|
|
3071
2676
|
return message;
|
|
3072
2677
|
}
|
|
3073
2678
|
};
|
|
3074
|
-
function createBaseProofFarcasterFrame() {
|
|
3075
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
3076
|
-
}
|
|
3077
|
-
var ProofFarcasterFrame = {
|
|
3078
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
3079
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3080
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
3081
|
-
}
|
|
3082
|
-
if (message.censusProof !== void 0) {
|
|
3083
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
3084
|
-
}
|
|
3085
|
-
if (message.publicKey.length !== 0) {
|
|
3086
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
3087
|
-
}
|
|
3088
|
-
return writer;
|
|
3089
|
-
},
|
|
3090
|
-
decode(input, length) {
|
|
3091
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3092
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3093
|
-
const message = createBaseProofFarcasterFrame();
|
|
3094
|
-
while (reader.pos < end) {
|
|
3095
|
-
const tag = reader.uint32();
|
|
3096
|
-
switch (tag >>> 3) {
|
|
3097
|
-
case 1:
|
|
3098
|
-
if (tag !== 10) {
|
|
3099
|
-
break;
|
|
3100
|
-
}
|
|
3101
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
3102
|
-
continue;
|
|
3103
|
-
case 2:
|
|
3104
|
-
if (tag !== 18) {
|
|
3105
|
-
break;
|
|
3106
|
-
}
|
|
3107
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
3108
|
-
continue;
|
|
3109
|
-
case 3:
|
|
3110
|
-
if (tag !== 26) {
|
|
3111
|
-
break;
|
|
3112
|
-
}
|
|
3113
|
-
message.publicKey = reader.bytes();
|
|
3114
|
-
continue;
|
|
3115
|
-
}
|
|
3116
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3117
|
-
break;
|
|
3118
|
-
}
|
|
3119
|
-
reader.skipType(tag & 7);
|
|
3120
|
-
}
|
|
3121
|
-
return message;
|
|
3122
|
-
},
|
|
3123
|
-
fromJSON(object) {
|
|
3124
|
-
return {
|
|
3125
|
-
signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
3126
|
-
censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
3127
|
-
publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
|
|
3128
|
-
};
|
|
3129
|
-
},
|
|
3130
|
-
toJSON(message) {
|
|
3131
|
-
const obj = {};
|
|
3132
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3133
|
-
obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
|
|
3134
|
-
}
|
|
3135
|
-
if (message.censusProof !== void 0) {
|
|
3136
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
3137
|
-
}
|
|
3138
|
-
if (message.publicKey.length !== 0) {
|
|
3139
|
-
obj.publicKey = base64FromBytes(message.publicKey);
|
|
3140
|
-
}
|
|
3141
|
-
return obj;
|
|
3142
|
-
},
|
|
3143
|
-
create(base) {
|
|
3144
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
3145
|
-
},
|
|
3146
|
-
fromPartial(object) {
|
|
3147
|
-
const message = createBaseProofFarcasterFrame();
|
|
3148
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
3149
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
3150
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
3151
|
-
return message;
|
|
3152
|
-
}
|
|
3153
|
-
};
|
|
3154
2679
|
function createBaseAccount() {
|
|
3155
2680
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
3156
2681
|
}
|
|
@@ -6683,10 +6208,6 @@ export {
|
|
|
6683
6208
|
ProofArbo_Type,
|
|
6684
6209
|
ProofCA,
|
|
6685
6210
|
ProofCA_Type,
|
|
6686
|
-
ProofEthereumAccount,
|
|
6687
|
-
ProofEthereumStorage,
|
|
6688
|
-
ProofFarcasterFrame,
|
|
6689
|
-
ProofMinime,
|
|
6690
6211
|
ProofZkSNARK,
|
|
6691
6212
|
QuestionResult,
|
|
6692
6213
|
RegisterKeyTx,
|