@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.
- package/build/js/client-store/index.js +18 -0
- package/build/js/client-store/index.mjs +18 -0
- package/build/js/{index-1aac8cbb.d.ts → index-b19a326e.d.ts} +360 -5367
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +25 -480
- package/build/js/index.mjs +25 -480
- package/build/js/metadata/index.js +18 -0
- package/build/js/metadata/index.mjs +18 -0
- package/build/js/vochain/index.d.ts +1 -1
- package/build/js/vochain/index.js +25 -484
- package/build/js/vochain/index.mjs +25 -480
- package/package.json +5 -1
|
@@ -1105,9 +1105,27 @@ var require_reader = __commonJS({
|
|
|
1105
1105
|
Reader.create = create();
|
|
1106
1106
|
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1107
1107
|
util.Array.prototype.slice;
|
|
1108
|
+
function readVarint32NearEnd(reader) {
|
|
1109
|
+
var value = 0;
|
|
1110
|
+
for (var i = 0; i < 4; ++i) {
|
|
1111
|
+
if (reader.pos >= reader.len)
|
|
1112
|
+
throw indexOutOfRange(reader);
|
|
1113
|
+
var b = reader.buf[reader.pos++];
|
|
1114
|
+
value = (value | (b & 127) << i * 7) >>> 0;
|
|
1115
|
+
if (b < 128)
|
|
1116
|
+
return value;
|
|
1117
|
+
}
|
|
1118
|
+
throw indexOutOfRange(reader);
|
|
1119
|
+
}
|
|
1108
1120
|
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1109
1121
|
var value = 4294967295;
|
|
1110
1122
|
return function read_uint32() {
|
|
1123
|
+
if (this.len - this.pos < 5) {
|
|
1124
|
+
if (this.pos >= this.len)
|
|
1125
|
+
throw indexOutOfRange(this);
|
|
1126
|
+
if (this.buf[this.pos] >= 128)
|
|
1127
|
+
return readVarint32NearEnd(this);
|
|
1128
|
+
}
|
|
1111
1129
|
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1112
1130
|
if (this.buf[this.pos++] < 128)
|
|
1113
1131
|
return value;
|
|
@@ -1475,10 +1493,6 @@ __export(vochain_exports, {
|
|
|
1475
1493
|
ProofArbo_Type: () => ProofArbo_Type,
|
|
1476
1494
|
ProofCA: () => ProofCA,
|
|
1477
1495
|
ProofCA_Type: () => ProofCA_Type,
|
|
1478
|
-
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
1479
|
-
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
1480
|
-
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
1481
|
-
ProofMinime: () => ProofMinime,
|
|
1482
1496
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
1483
1497
|
QuestionResult: () => QuestionResult,
|
|
1484
1498
|
RegisterKeyTx: () => RegisterKeyTx,
|
|
@@ -1870,12 +1884,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
1870
1884
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE"] = 1] = "OFF_CHAIN_TREE";
|
|
1871
1885
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
1872
1886
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
1873
|
-
CensusOrigin2[CensusOrigin2["
|
|
1874
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
1875
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
1876
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
1877
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
1878
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
1887
|
+
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
1879
1888
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1880
1889
|
return CensusOrigin2;
|
|
1881
1890
|
})(CensusOrigin || {});
|
|
@@ -1893,24 +1902,9 @@ function censusOriginFromJSON(object) {
|
|
|
1893
1902
|
case 3:
|
|
1894
1903
|
case "OFF_CHAIN_CA":
|
|
1895
1904
|
return 3 /* OFF_CHAIN_CA */;
|
|
1896
|
-
case
|
|
1897
|
-
case "
|
|
1898
|
-
return
|
|
1899
|
-
case 12:
|
|
1900
|
-
case "ERC721":
|
|
1901
|
-
return 12 /* ERC721 */;
|
|
1902
|
-
case 13:
|
|
1903
|
-
case "ERC1155":
|
|
1904
|
-
return 13 /* ERC1155 */;
|
|
1905
|
-
case 14:
|
|
1906
|
-
case "ERC777":
|
|
1907
|
-
return 14 /* ERC777 */;
|
|
1908
|
-
case 15:
|
|
1909
|
-
case "MINI_ME":
|
|
1910
|
-
return 15 /* MINI_ME */;
|
|
1911
|
-
case 16:
|
|
1912
|
-
case "FARCASTER_FRAME":
|
|
1913
|
-
return 16 /* FARCASTER_FRAME */;
|
|
1905
|
+
case 4:
|
|
1906
|
+
case "OFF_CHAIN_CA_V2":
|
|
1907
|
+
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
1914
1908
|
case -1:
|
|
1915
1909
|
case "UNRECOGNIZED":
|
|
1916
1910
|
default:
|
|
@@ -1927,18 +1921,8 @@ function censusOriginToJSON(object) {
|
|
|
1927
1921
|
return "OFF_CHAIN_TREE_WEIGHTED";
|
|
1928
1922
|
case 3 /* OFF_CHAIN_CA */:
|
|
1929
1923
|
return "OFF_CHAIN_CA";
|
|
1930
|
-
case
|
|
1931
|
-
return "
|
|
1932
|
-
case 12 /* ERC721 */:
|
|
1933
|
-
return "ERC721";
|
|
1934
|
-
case 13 /* ERC1155 */:
|
|
1935
|
-
return "ERC1155";
|
|
1936
|
-
case 14 /* ERC777 */:
|
|
1937
|
-
return "ERC777";
|
|
1938
|
-
case 15 /* MINI_ME */:
|
|
1939
|
-
return "MINI_ME";
|
|
1940
|
-
case 16 /* FARCASTER_FRAME */:
|
|
1941
|
-
return "FARCASTER_FRAME";
|
|
1924
|
+
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
1925
|
+
return "OFF_CHAIN_CA_V2";
|
|
1942
1926
|
case -1 /* UNRECOGNIZED */:
|
|
1943
1927
|
default:
|
|
1944
1928
|
return "UNRECOGNIZED";
|
|
@@ -1948,10 +1932,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
1948
1932
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
1949
1933
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
1950
1934
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
1951
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
1952
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
1953
1935
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
1954
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
1955
1936
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1956
1937
|
return Census_Type2;
|
|
1957
1938
|
})(Census_Type || {});
|
|
@@ -1966,18 +1947,9 @@ function census_TypeFromJSON(object) {
|
|
|
1966
1947
|
case 2:
|
|
1967
1948
|
case "ARBO_POSEIDON":
|
|
1968
1949
|
return 2 /* ARBO_POSEIDON */;
|
|
1969
|
-
case 3:
|
|
1970
|
-
case "ETHEREUMSTORAGE":
|
|
1971
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
1972
|
-
case 4:
|
|
1973
|
-
case "ETHEREUMACCOUNT":
|
|
1974
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
1975
1950
|
case 5:
|
|
1976
1951
|
case "CA":
|
|
1977
1952
|
return 5 /* CA */;
|
|
1978
|
-
case 6:
|
|
1979
|
-
case "FARCASTER_FRAME":
|
|
1980
|
-
return 6 /* FARCASTER_FRAME */;
|
|
1981
1953
|
case -1:
|
|
1982
1954
|
case "UNRECOGNIZED":
|
|
1983
1955
|
default:
|
|
@@ -1992,14 +1964,8 @@ function census_TypeToJSON(object) {
|
|
|
1992
1964
|
return "ARBO_BLAKE2B";
|
|
1993
1965
|
case 2 /* ARBO_POSEIDON */:
|
|
1994
1966
|
return "ARBO_POSEIDON";
|
|
1995
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
1996
|
-
return "ETHEREUMSTORAGE";
|
|
1997
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
1998
|
-
return "ETHEREUMACCOUNT";
|
|
1999
1967
|
case 5 /* CA */:
|
|
2000
1968
|
return "CA";
|
|
2001
|
-
case 6 /* FARCASTER_FRAME */:
|
|
2002
|
-
return "FARCASTER_FRAME";
|
|
2003
1969
|
case -1 /* UNRECOGNIZED */:
|
|
2004
1970
|
default:
|
|
2005
1971
|
return "UNRECOGNIZED";
|
|
@@ -2312,12 +2278,6 @@ function createBaseProof() {
|
|
|
2312
2278
|
var Proof = {
|
|
2313
2279
|
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2314
2280
|
switch (message.payload?.$case) {
|
|
2315
|
-
case "ethereumStorage":
|
|
2316
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
2317
|
-
break;
|
|
2318
|
-
case "ethereumAccount":
|
|
2319
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
2320
|
-
break;
|
|
2321
2281
|
case "ca":
|
|
2322
2282
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
2323
2283
|
break;
|
|
@@ -2327,12 +2287,6 @@ var Proof = {
|
|
|
2327
2287
|
case "zkSnark":
|
|
2328
2288
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
2329
2289
|
break;
|
|
2330
|
-
case "minimeStorage":
|
|
2331
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
2332
|
-
break;
|
|
2333
|
-
case "farcasterFrame":
|
|
2334
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
2335
|
-
break;
|
|
2336
2290
|
}
|
|
2337
2291
|
return writer;
|
|
2338
2292
|
},
|
|
@@ -2343,24 +2297,6 @@ var Proof = {
|
|
|
2343
2297
|
while (reader.pos < end) {
|
|
2344
2298
|
const tag = reader.uint32();
|
|
2345
2299
|
switch (tag >>> 3) {
|
|
2346
|
-
case 3:
|
|
2347
|
-
if (tag !== 26) {
|
|
2348
|
-
break;
|
|
2349
|
-
}
|
|
2350
|
-
message.payload = {
|
|
2351
|
-
$case: "ethereumStorage",
|
|
2352
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
2353
|
-
};
|
|
2354
|
-
continue;
|
|
2355
|
-
case 4:
|
|
2356
|
-
if (tag !== 34) {
|
|
2357
|
-
break;
|
|
2358
|
-
}
|
|
2359
|
-
message.payload = {
|
|
2360
|
-
$case: "ethereumAccount",
|
|
2361
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
2362
|
-
};
|
|
2363
|
-
continue;
|
|
2364
2300
|
case 5:
|
|
2365
2301
|
if (tag !== 42) {
|
|
2366
2302
|
break;
|
|
@@ -2379,21 +2315,6 @@ var Proof = {
|
|
|
2379
2315
|
}
|
|
2380
2316
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
2381
2317
|
continue;
|
|
2382
|
-
case 8:
|
|
2383
|
-
if (tag !== 66) {
|
|
2384
|
-
break;
|
|
2385
|
-
}
|
|
2386
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
2387
|
-
continue;
|
|
2388
|
-
case 9:
|
|
2389
|
-
if (tag !== 74) {
|
|
2390
|
-
break;
|
|
2391
|
-
}
|
|
2392
|
-
message.payload = {
|
|
2393
|
-
$case: "farcasterFrame",
|
|
2394
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
2395
|
-
};
|
|
2396
|
-
continue;
|
|
2397
2318
|
}
|
|
2398
2319
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2399
2320
|
break;
|
|
@@ -2404,17 +2325,11 @@ var Proof = {
|
|
|
2404
2325
|
},
|
|
2405
2326
|
fromJSON(object) {
|
|
2406
2327
|
return {
|
|
2407
|
-
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
|
|
2408
2329
|
};
|
|
2409
2330
|
},
|
|
2410
2331
|
toJSON(message) {
|
|
2411
2332
|
const obj = {};
|
|
2412
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
2413
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
2414
|
-
}
|
|
2415
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
2416
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
2417
|
-
}
|
|
2418
2333
|
if (message.payload?.$case === "ca") {
|
|
2419
2334
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
2420
2335
|
}
|
|
@@ -2424,12 +2339,6 @@ var Proof = {
|
|
|
2424
2339
|
if (message.payload?.$case === "zkSnark") {
|
|
2425
2340
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
2426
2341
|
}
|
|
2427
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
2428
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
2429
|
-
}
|
|
2430
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
2431
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
2432
|
-
}
|
|
2433
2342
|
return obj;
|
|
2434
2343
|
},
|
|
2435
2344
|
create(base) {
|
|
@@ -2437,18 +2346,6 @@ var Proof = {
|
|
|
2437
2346
|
},
|
|
2438
2347
|
fromPartial(object) {
|
|
2439
2348
|
const message = createBaseProof();
|
|
2440
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
2441
|
-
message.payload = {
|
|
2442
|
-
$case: "ethereumStorage",
|
|
2443
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
2444
|
-
};
|
|
2445
|
-
}
|
|
2446
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
2447
|
-
message.payload = {
|
|
2448
|
-
$case: "ethereumAccount",
|
|
2449
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
2450
|
-
};
|
|
2451
|
-
}
|
|
2452
2349
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
2453
2350
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
2454
2351
|
}
|
|
@@ -2458,278 +2355,6 @@ var Proof = {
|
|
|
2458
2355
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
2459
2356
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
2460
2357
|
}
|
|
2461
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
2462
|
-
message.payload = {
|
|
2463
|
-
$case: "minimeStorage",
|
|
2464
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
2465
|
-
};
|
|
2466
|
-
}
|
|
2467
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
2468
|
-
message.payload = {
|
|
2469
|
-
$case: "farcasterFrame",
|
|
2470
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
2471
|
-
};
|
|
2472
|
-
}
|
|
2473
|
-
return message;
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
function createBaseProofEthereumStorage() {
|
|
2477
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
2478
|
-
}
|
|
2479
|
-
var ProofEthereumStorage = {
|
|
2480
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2481
|
-
if (message.key.length !== 0) {
|
|
2482
|
-
writer.uint32(10).bytes(message.key);
|
|
2483
|
-
}
|
|
2484
|
-
if (message.value.length !== 0) {
|
|
2485
|
-
writer.uint32(18).bytes(message.value);
|
|
2486
|
-
}
|
|
2487
|
-
for (const v of message.siblings) {
|
|
2488
|
-
writer.uint32(26).bytes(v);
|
|
2489
|
-
}
|
|
2490
|
-
return writer;
|
|
2491
|
-
},
|
|
2492
|
-
decode(input, length) {
|
|
2493
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2494
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2495
|
-
const message = createBaseProofEthereumStorage();
|
|
2496
|
-
while (reader.pos < end) {
|
|
2497
|
-
const tag = reader.uint32();
|
|
2498
|
-
switch (tag >>> 3) {
|
|
2499
|
-
case 1:
|
|
2500
|
-
if (tag !== 10) {
|
|
2501
|
-
break;
|
|
2502
|
-
}
|
|
2503
|
-
message.key = reader.bytes();
|
|
2504
|
-
continue;
|
|
2505
|
-
case 2:
|
|
2506
|
-
if (tag !== 18) {
|
|
2507
|
-
break;
|
|
2508
|
-
}
|
|
2509
|
-
message.value = reader.bytes();
|
|
2510
|
-
continue;
|
|
2511
|
-
case 3:
|
|
2512
|
-
if (tag !== 26) {
|
|
2513
|
-
break;
|
|
2514
|
-
}
|
|
2515
|
-
message.siblings.push(reader.bytes());
|
|
2516
|
-
continue;
|
|
2517
|
-
}
|
|
2518
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2519
|
-
break;
|
|
2520
|
-
}
|
|
2521
|
-
reader.skipType(tag & 7);
|
|
2522
|
-
}
|
|
2523
|
-
return message;
|
|
2524
|
-
},
|
|
2525
|
-
fromJSON(object) {
|
|
2526
|
-
return {
|
|
2527
|
-
key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
|
|
2528
|
-
value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
|
|
2529
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2530
|
-
};
|
|
2531
|
-
},
|
|
2532
|
-
toJSON(message) {
|
|
2533
|
-
const obj = {};
|
|
2534
|
-
if (message.key.length !== 0) {
|
|
2535
|
-
obj.key = base64FromBytes(message.key);
|
|
2536
|
-
}
|
|
2537
|
-
if (message.value.length !== 0) {
|
|
2538
|
-
obj.value = base64FromBytes(message.value);
|
|
2539
|
-
}
|
|
2540
|
-
if (message.siblings?.length) {
|
|
2541
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2542
|
-
}
|
|
2543
|
-
return obj;
|
|
2544
|
-
},
|
|
2545
|
-
create(base) {
|
|
2546
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
2547
|
-
},
|
|
2548
|
-
fromPartial(object) {
|
|
2549
|
-
const message = createBaseProofEthereumStorage();
|
|
2550
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
2551
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
2552
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2553
|
-
return message;
|
|
2554
|
-
}
|
|
2555
|
-
};
|
|
2556
|
-
function createBaseProofEthereumAccount() {
|
|
2557
|
-
return {
|
|
2558
|
-
nonce: new Uint8Array(0),
|
|
2559
|
-
balance: new Uint8Array(0),
|
|
2560
|
-
storageHash: new Uint8Array(0),
|
|
2561
|
-
codeHash: new Uint8Array(0),
|
|
2562
|
-
siblings: []
|
|
2563
|
-
};
|
|
2564
|
-
}
|
|
2565
|
-
var ProofEthereumAccount = {
|
|
2566
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2567
|
-
if (message.nonce.length !== 0) {
|
|
2568
|
-
writer.uint32(10).bytes(message.nonce);
|
|
2569
|
-
}
|
|
2570
|
-
if (message.balance.length !== 0) {
|
|
2571
|
-
writer.uint32(18).bytes(message.balance);
|
|
2572
|
-
}
|
|
2573
|
-
if (message.storageHash.length !== 0) {
|
|
2574
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
2575
|
-
}
|
|
2576
|
-
if (message.codeHash.length !== 0) {
|
|
2577
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
2578
|
-
}
|
|
2579
|
-
for (const v of message.siblings) {
|
|
2580
|
-
writer.uint32(42).bytes(v);
|
|
2581
|
-
}
|
|
2582
|
-
return writer;
|
|
2583
|
-
},
|
|
2584
|
-
decode(input, length) {
|
|
2585
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2586
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2587
|
-
const message = createBaseProofEthereumAccount();
|
|
2588
|
-
while (reader.pos < end) {
|
|
2589
|
-
const tag = reader.uint32();
|
|
2590
|
-
switch (tag >>> 3) {
|
|
2591
|
-
case 1:
|
|
2592
|
-
if (tag !== 10) {
|
|
2593
|
-
break;
|
|
2594
|
-
}
|
|
2595
|
-
message.nonce = reader.bytes();
|
|
2596
|
-
continue;
|
|
2597
|
-
case 2:
|
|
2598
|
-
if (tag !== 18) {
|
|
2599
|
-
break;
|
|
2600
|
-
}
|
|
2601
|
-
message.balance = reader.bytes();
|
|
2602
|
-
continue;
|
|
2603
|
-
case 3:
|
|
2604
|
-
if (tag !== 26) {
|
|
2605
|
-
break;
|
|
2606
|
-
}
|
|
2607
|
-
message.storageHash = reader.bytes();
|
|
2608
|
-
continue;
|
|
2609
|
-
case 4:
|
|
2610
|
-
if (tag !== 34) {
|
|
2611
|
-
break;
|
|
2612
|
-
}
|
|
2613
|
-
message.codeHash = reader.bytes();
|
|
2614
|
-
continue;
|
|
2615
|
-
case 5:
|
|
2616
|
-
if (tag !== 42) {
|
|
2617
|
-
break;
|
|
2618
|
-
}
|
|
2619
|
-
message.siblings.push(reader.bytes());
|
|
2620
|
-
continue;
|
|
2621
|
-
}
|
|
2622
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2623
|
-
break;
|
|
2624
|
-
}
|
|
2625
|
-
reader.skipType(tag & 7);
|
|
2626
|
-
}
|
|
2627
|
-
return message;
|
|
2628
|
-
},
|
|
2629
|
-
fromJSON(object) {
|
|
2630
|
-
return {
|
|
2631
|
-
nonce: isSet(object.nonce) ? bytesFromBase64(object.nonce) : new Uint8Array(0),
|
|
2632
|
-
balance: isSet(object.balance) ? bytesFromBase64(object.balance) : new Uint8Array(0),
|
|
2633
|
-
storageHash: isSet(object.storageHash) ? bytesFromBase64(object.storageHash) : new Uint8Array(0),
|
|
2634
|
-
codeHash: isSet(object.codeHash) ? bytesFromBase64(object.codeHash) : new Uint8Array(0),
|
|
2635
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
|
|
2636
|
-
};
|
|
2637
|
-
},
|
|
2638
|
-
toJSON(message) {
|
|
2639
|
-
const obj = {};
|
|
2640
|
-
if (message.nonce.length !== 0) {
|
|
2641
|
-
obj.nonce = base64FromBytes(message.nonce);
|
|
2642
|
-
}
|
|
2643
|
-
if (message.balance.length !== 0) {
|
|
2644
|
-
obj.balance = base64FromBytes(message.balance);
|
|
2645
|
-
}
|
|
2646
|
-
if (message.storageHash.length !== 0) {
|
|
2647
|
-
obj.storageHash = base64FromBytes(message.storageHash);
|
|
2648
|
-
}
|
|
2649
|
-
if (message.codeHash.length !== 0) {
|
|
2650
|
-
obj.codeHash = base64FromBytes(message.codeHash);
|
|
2651
|
-
}
|
|
2652
|
-
if (message.siblings?.length) {
|
|
2653
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes(e));
|
|
2654
|
-
}
|
|
2655
|
-
return obj;
|
|
2656
|
-
},
|
|
2657
|
-
create(base) {
|
|
2658
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
2659
|
-
},
|
|
2660
|
-
fromPartial(object) {
|
|
2661
|
-
const message = createBaseProofEthereumAccount();
|
|
2662
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
2663
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
2664
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
2665
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
2666
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
2667
|
-
return message;
|
|
2668
|
-
}
|
|
2669
|
-
};
|
|
2670
|
-
function createBaseProofMinime() {
|
|
2671
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
2672
|
-
}
|
|
2673
|
-
var ProofMinime = {
|
|
2674
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
2675
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2676
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
2677
|
-
}
|
|
2678
|
-
if (message.proofNextBlock !== void 0) {
|
|
2679
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
2680
|
-
}
|
|
2681
|
-
return writer;
|
|
2682
|
-
},
|
|
2683
|
-
decode(input, length) {
|
|
2684
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
2685
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
2686
|
-
const message = createBaseProofMinime();
|
|
2687
|
-
while (reader.pos < end) {
|
|
2688
|
-
const tag = reader.uint32();
|
|
2689
|
-
switch (tag >>> 3) {
|
|
2690
|
-
case 1:
|
|
2691
|
-
if (tag !== 10) {
|
|
2692
|
-
break;
|
|
2693
|
-
}
|
|
2694
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2695
|
-
continue;
|
|
2696
|
-
case 2:
|
|
2697
|
-
if (tag !== 18) {
|
|
2698
|
-
break;
|
|
2699
|
-
}
|
|
2700
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
2701
|
-
continue;
|
|
2702
|
-
}
|
|
2703
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2704
|
-
break;
|
|
2705
|
-
}
|
|
2706
|
-
reader.skipType(tag & 7);
|
|
2707
|
-
}
|
|
2708
|
-
return message;
|
|
2709
|
-
},
|
|
2710
|
-
fromJSON(object) {
|
|
2711
|
-
return {
|
|
2712
|
-
proofPrevBlock: isSet(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
2713
|
-
proofNextBlock: isSet(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
2714
|
-
};
|
|
2715
|
-
},
|
|
2716
|
-
toJSON(message) {
|
|
2717
|
-
const obj = {};
|
|
2718
|
-
if (message.proofPrevBlock !== void 0) {
|
|
2719
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
2720
|
-
}
|
|
2721
|
-
if (message.proofNextBlock !== void 0) {
|
|
2722
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
2723
|
-
}
|
|
2724
|
-
return obj;
|
|
2725
|
-
},
|
|
2726
|
-
create(base) {
|
|
2727
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
2728
|
-
},
|
|
2729
|
-
fromPartial(object) {
|
|
2730
|
-
const message = createBaseProofMinime();
|
|
2731
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
2732
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
2733
2358
|
return message;
|
|
2734
2359
|
}
|
|
2735
2360
|
};
|
|
@@ -3115,86 +2740,6 @@ var ProofZkSNARK = {
|
|
|
3115
2740
|
return message;
|
|
3116
2741
|
}
|
|
3117
2742
|
};
|
|
3118
|
-
function createBaseProofFarcasterFrame() {
|
|
3119
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
3120
|
-
}
|
|
3121
|
-
var ProofFarcasterFrame = {
|
|
3122
|
-
encode(message, writer = import_minimal.default.Writer.create()) {
|
|
3123
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3124
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
3125
|
-
}
|
|
3126
|
-
if (message.censusProof !== void 0) {
|
|
3127
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
3128
|
-
}
|
|
3129
|
-
if (message.publicKey.length !== 0) {
|
|
3130
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
3131
|
-
}
|
|
3132
|
-
return writer;
|
|
3133
|
-
},
|
|
3134
|
-
decode(input, length) {
|
|
3135
|
-
const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
|
|
3136
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
3137
|
-
const message = createBaseProofFarcasterFrame();
|
|
3138
|
-
while (reader.pos < end) {
|
|
3139
|
-
const tag = reader.uint32();
|
|
3140
|
-
switch (tag >>> 3) {
|
|
3141
|
-
case 1:
|
|
3142
|
-
if (tag !== 10) {
|
|
3143
|
-
break;
|
|
3144
|
-
}
|
|
3145
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
3146
|
-
continue;
|
|
3147
|
-
case 2:
|
|
3148
|
-
if (tag !== 18) {
|
|
3149
|
-
break;
|
|
3150
|
-
}
|
|
3151
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
3152
|
-
continue;
|
|
3153
|
-
case 3:
|
|
3154
|
-
if (tag !== 26) {
|
|
3155
|
-
break;
|
|
3156
|
-
}
|
|
3157
|
-
message.publicKey = reader.bytes();
|
|
3158
|
-
continue;
|
|
3159
|
-
}
|
|
3160
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
3161
|
-
break;
|
|
3162
|
-
}
|
|
3163
|
-
reader.skipType(tag & 7);
|
|
3164
|
-
}
|
|
3165
|
-
return message;
|
|
3166
|
-
},
|
|
3167
|
-
fromJSON(object) {
|
|
3168
|
-
return {
|
|
3169
|
-
signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
3170
|
-
censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
3171
|
-
publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
|
|
3172
|
-
};
|
|
3173
|
-
},
|
|
3174
|
-
toJSON(message) {
|
|
3175
|
-
const obj = {};
|
|
3176
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
3177
|
-
obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
|
|
3178
|
-
}
|
|
3179
|
-
if (message.censusProof !== void 0) {
|
|
3180
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
3181
|
-
}
|
|
3182
|
-
if (message.publicKey.length !== 0) {
|
|
3183
|
-
obj.publicKey = base64FromBytes(message.publicKey);
|
|
3184
|
-
}
|
|
3185
|
-
return obj;
|
|
3186
|
-
},
|
|
3187
|
-
create(base) {
|
|
3188
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
3189
|
-
},
|
|
3190
|
-
fromPartial(object) {
|
|
3191
|
-
const message = createBaseProofFarcasterFrame();
|
|
3192
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
3193
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
3194
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
3195
|
-
return message;
|
|
3196
|
-
}
|
|
3197
|
-
};
|
|
3198
2743
|
function createBaseAccount() {
|
|
3199
2744
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
3200
2745
|
}
|
|
@@ -6728,10 +6273,6 @@ function isSet(value) {
|
|
|
6728
6273
|
ProofArbo_Type,
|
|
6729
6274
|
ProofCA,
|
|
6730
6275
|
ProofCA_Type,
|
|
6731
|
-
ProofEthereumAccount,
|
|
6732
|
-
ProofEthereumStorage,
|
|
6733
|
-
ProofFarcasterFrame,
|
|
6734
|
-
ProofMinime,
|
|
6735
6276
|
ProofZkSNARK,
|
|
6736
6277
|
QuestionResult,
|
|
6737
6278
|
RegisterKeyTx,
|