@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
package/build/js/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { i as ClientStore } from './index-d457aeb5.js';
|
|
2
2
|
export { i as Metadata } from './index-05df597a.js';
|
|
3
|
-
export { i as Vochain } from './index-
|
|
3
|
+
export { i as Vochain } from './index-b19a326e.js';
|
|
4
4
|
import 'protobufjs/minimal';
|
|
5
5
|
import './entity-e8dfcd83.js';
|
package/build/js/index.js
CHANGED
|
@@ -5761,10 +5761,6 @@ __export(vochain_exports, {
|
|
|
5761
5761
|
ProofArbo_Type: () => ProofArbo_Type,
|
|
5762
5762
|
ProofCA: () => ProofCA,
|
|
5763
5763
|
ProofCA_Type: () => ProofCA_Type,
|
|
5764
|
-
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5765
|
-
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5766
|
-
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5767
|
-
ProofMinime: () => ProofMinime,
|
|
5768
5764
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5769
5765
|
QuestionResult: () => QuestionResult,
|
|
5770
5766
|
RegisterKeyTx: () => RegisterKeyTx,
|
|
@@ -6156,12 +6152,6 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6156
6152
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
6157
6153
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
6158
6154
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
6159
|
-
CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
|
|
6160
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
6161
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6162
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6163
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6164
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6165
6155
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6166
6156
|
return CensusOrigin2;
|
|
6167
6157
|
})(CensusOrigin || {});
|
|
@@ -6182,24 +6172,6 @@ function censusOriginFromJSON(object) {
|
|
|
6182
6172
|
case 4:
|
|
6183
6173
|
case "OFF_CHAIN_CA_V2":
|
|
6184
6174
|
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
6185
|
-
case 11:
|
|
6186
|
-
case "ERC20":
|
|
6187
|
-
return 11 /* ERC20 */;
|
|
6188
|
-
case 12:
|
|
6189
|
-
case "ERC721":
|
|
6190
|
-
return 12 /* ERC721 */;
|
|
6191
|
-
case 13:
|
|
6192
|
-
case "ERC1155":
|
|
6193
|
-
return 13 /* ERC1155 */;
|
|
6194
|
-
case 14:
|
|
6195
|
-
case "ERC777":
|
|
6196
|
-
return 14 /* ERC777 */;
|
|
6197
|
-
case 15:
|
|
6198
|
-
case "MINI_ME":
|
|
6199
|
-
return 15 /* MINI_ME */;
|
|
6200
|
-
case 16:
|
|
6201
|
-
case "FARCASTER_FRAME":
|
|
6202
|
-
return 16 /* FARCASTER_FRAME */;
|
|
6203
6175
|
case -1:
|
|
6204
6176
|
case "UNRECOGNIZED":
|
|
6205
6177
|
default:
|
|
@@ -6218,18 +6190,6 @@ function censusOriginToJSON(object) {
|
|
|
6218
6190
|
return "OFF_CHAIN_CA";
|
|
6219
6191
|
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
6220
6192
|
return "OFF_CHAIN_CA_V2";
|
|
6221
|
-
case 11 /* ERC20 */:
|
|
6222
|
-
return "ERC20";
|
|
6223
|
-
case 12 /* ERC721 */:
|
|
6224
|
-
return "ERC721";
|
|
6225
|
-
case 13 /* ERC1155 */:
|
|
6226
|
-
return "ERC1155";
|
|
6227
|
-
case 14 /* ERC777 */:
|
|
6228
|
-
return "ERC777";
|
|
6229
|
-
case 15 /* MINI_ME */:
|
|
6230
|
-
return "MINI_ME";
|
|
6231
|
-
case 16 /* FARCASTER_FRAME */:
|
|
6232
|
-
return "FARCASTER_FRAME";
|
|
6233
6193
|
case -1 /* UNRECOGNIZED */:
|
|
6234
6194
|
default:
|
|
6235
6195
|
return "UNRECOGNIZED";
|
|
@@ -6239,10 +6199,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6239
6199
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
6240
6200
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
6241
6201
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
6242
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6243
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6244
6202
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6245
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6246
6203
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6247
6204
|
return Census_Type2;
|
|
6248
6205
|
})(Census_Type || {});
|
|
@@ -6257,18 +6214,9 @@ function census_TypeFromJSON(object) {
|
|
|
6257
6214
|
case 2:
|
|
6258
6215
|
case "ARBO_POSEIDON":
|
|
6259
6216
|
return 2 /* ARBO_POSEIDON */;
|
|
6260
|
-
case 3:
|
|
6261
|
-
case "ETHEREUMSTORAGE":
|
|
6262
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
6263
|
-
case 4:
|
|
6264
|
-
case "ETHEREUMACCOUNT":
|
|
6265
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
6266
6217
|
case 5:
|
|
6267
6218
|
case "CA":
|
|
6268
6219
|
return 5 /* CA */;
|
|
6269
|
-
case 6:
|
|
6270
|
-
case "FARCASTER_FRAME":
|
|
6271
|
-
return 6 /* FARCASTER_FRAME */;
|
|
6272
6220
|
case -1:
|
|
6273
6221
|
case "UNRECOGNIZED":
|
|
6274
6222
|
default:
|
|
@@ -6283,14 +6231,8 @@ function census_TypeToJSON(object) {
|
|
|
6283
6231
|
return "ARBO_BLAKE2B";
|
|
6284
6232
|
case 2 /* ARBO_POSEIDON */:
|
|
6285
6233
|
return "ARBO_POSEIDON";
|
|
6286
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
6287
|
-
return "ETHEREUMSTORAGE";
|
|
6288
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
6289
|
-
return "ETHEREUMACCOUNT";
|
|
6290
6234
|
case 5 /* CA */:
|
|
6291
6235
|
return "CA";
|
|
6292
|
-
case 6 /* FARCASTER_FRAME */:
|
|
6293
|
-
return "FARCASTER_FRAME";
|
|
6294
6236
|
case -1 /* UNRECOGNIZED */:
|
|
6295
6237
|
default:
|
|
6296
6238
|
return "UNRECOGNIZED";
|
|
@@ -6603,12 +6545,6 @@ function createBaseProof() {
|
|
|
6603
6545
|
var Proof = {
|
|
6604
6546
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6605
6547
|
switch (message.payload?.$case) {
|
|
6606
|
-
case "ethereumStorage":
|
|
6607
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
6608
|
-
break;
|
|
6609
|
-
case "ethereumAccount":
|
|
6610
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
6611
|
-
break;
|
|
6612
6548
|
case "ca":
|
|
6613
6549
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
6614
6550
|
break;
|
|
@@ -6618,12 +6554,6 @@ var Proof = {
|
|
|
6618
6554
|
case "zkSnark":
|
|
6619
6555
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
6620
6556
|
break;
|
|
6621
|
-
case "minimeStorage":
|
|
6622
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6623
|
-
break;
|
|
6624
|
-
case "farcasterFrame":
|
|
6625
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6626
|
-
break;
|
|
6627
6557
|
}
|
|
6628
6558
|
return writer;
|
|
6629
6559
|
},
|
|
@@ -6634,24 +6564,6 @@ var Proof = {
|
|
|
6634
6564
|
while (reader.pos < end) {
|
|
6635
6565
|
const tag = reader.uint32();
|
|
6636
6566
|
switch (tag >>> 3) {
|
|
6637
|
-
case 3:
|
|
6638
|
-
if (tag !== 26) {
|
|
6639
|
-
break;
|
|
6640
|
-
}
|
|
6641
|
-
message.payload = {
|
|
6642
|
-
$case: "ethereumStorage",
|
|
6643
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
6644
|
-
};
|
|
6645
|
-
continue;
|
|
6646
|
-
case 4:
|
|
6647
|
-
if (tag !== 34) {
|
|
6648
|
-
break;
|
|
6649
|
-
}
|
|
6650
|
-
message.payload = {
|
|
6651
|
-
$case: "ethereumAccount",
|
|
6652
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
6653
|
-
};
|
|
6654
|
-
continue;
|
|
6655
6567
|
case 5:
|
|
6656
6568
|
if (tag !== 42) {
|
|
6657
6569
|
break;
|
|
@@ -6670,21 +6582,6 @@ var Proof = {
|
|
|
6670
6582
|
}
|
|
6671
6583
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
6672
6584
|
continue;
|
|
6673
|
-
case 8:
|
|
6674
|
-
if (tag !== 66) {
|
|
6675
|
-
break;
|
|
6676
|
-
}
|
|
6677
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6678
|
-
continue;
|
|
6679
|
-
case 9:
|
|
6680
|
-
if (tag !== 74) {
|
|
6681
|
-
break;
|
|
6682
|
-
}
|
|
6683
|
-
message.payload = {
|
|
6684
|
-
$case: "farcasterFrame",
|
|
6685
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6686
|
-
};
|
|
6687
|
-
continue;
|
|
6688
6585
|
}
|
|
6689
6586
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6690
6587
|
break;
|
|
@@ -6695,17 +6592,11 @@ var Proof = {
|
|
|
6695
6592
|
},
|
|
6696
6593
|
fromJSON(object) {
|
|
6697
6594
|
return {
|
|
6698
|
-
payload: isSet8(object.
|
|
6595
|
+
payload: isSet8(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet8(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet8(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : void 0
|
|
6699
6596
|
};
|
|
6700
6597
|
},
|
|
6701
6598
|
toJSON(message) {
|
|
6702
6599
|
const obj = {};
|
|
6703
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
6704
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
6705
|
-
}
|
|
6706
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
6707
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
6708
|
-
}
|
|
6709
6600
|
if (message.payload?.$case === "ca") {
|
|
6710
6601
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
6711
6602
|
}
|
|
@@ -6715,12 +6606,6 @@ var Proof = {
|
|
|
6715
6606
|
if (message.payload?.$case === "zkSnark") {
|
|
6716
6607
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
6717
6608
|
}
|
|
6718
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
6719
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6720
|
-
}
|
|
6721
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
6722
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6723
|
-
}
|
|
6724
6609
|
return obj;
|
|
6725
6610
|
},
|
|
6726
6611
|
create(base) {
|
|
@@ -6728,18 +6613,6 @@ var Proof = {
|
|
|
6728
6613
|
},
|
|
6729
6614
|
fromPartial(object) {
|
|
6730
6615
|
const message = createBaseProof();
|
|
6731
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
6732
|
-
message.payload = {
|
|
6733
|
-
$case: "ethereumStorage",
|
|
6734
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
6735
|
-
};
|
|
6736
|
-
}
|
|
6737
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
6738
|
-
message.payload = {
|
|
6739
|
-
$case: "ethereumAccount",
|
|
6740
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
6741
|
-
};
|
|
6742
|
-
}
|
|
6743
6616
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
6744
6617
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
6745
6618
|
}
|
|
@@ -6749,278 +6622,6 @@ var Proof = {
|
|
|
6749
6622
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
6750
6623
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
6751
6624
|
}
|
|
6752
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
6753
|
-
message.payload = {
|
|
6754
|
-
$case: "minimeStorage",
|
|
6755
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6756
|
-
};
|
|
6757
|
-
}
|
|
6758
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6759
|
-
message.payload = {
|
|
6760
|
-
$case: "farcasterFrame",
|
|
6761
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6762
|
-
};
|
|
6763
|
-
}
|
|
6764
|
-
return message;
|
|
6765
|
-
}
|
|
6766
|
-
};
|
|
6767
|
-
function createBaseProofEthereumStorage() {
|
|
6768
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
6769
|
-
}
|
|
6770
|
-
var ProofEthereumStorage = {
|
|
6771
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6772
|
-
if (message.key.length !== 0) {
|
|
6773
|
-
writer.uint32(10).bytes(message.key);
|
|
6774
|
-
}
|
|
6775
|
-
if (message.value.length !== 0) {
|
|
6776
|
-
writer.uint32(18).bytes(message.value);
|
|
6777
|
-
}
|
|
6778
|
-
for (const v of message.siblings) {
|
|
6779
|
-
writer.uint32(26).bytes(v);
|
|
6780
|
-
}
|
|
6781
|
-
return writer;
|
|
6782
|
-
},
|
|
6783
|
-
decode(input, length) {
|
|
6784
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6785
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6786
|
-
const message = createBaseProofEthereumStorage();
|
|
6787
|
-
while (reader.pos < end) {
|
|
6788
|
-
const tag = reader.uint32();
|
|
6789
|
-
switch (tag >>> 3) {
|
|
6790
|
-
case 1:
|
|
6791
|
-
if (tag !== 10) {
|
|
6792
|
-
break;
|
|
6793
|
-
}
|
|
6794
|
-
message.key = reader.bytes();
|
|
6795
|
-
continue;
|
|
6796
|
-
case 2:
|
|
6797
|
-
if (tag !== 18) {
|
|
6798
|
-
break;
|
|
6799
|
-
}
|
|
6800
|
-
message.value = reader.bytes();
|
|
6801
|
-
continue;
|
|
6802
|
-
case 3:
|
|
6803
|
-
if (tag !== 26) {
|
|
6804
|
-
break;
|
|
6805
|
-
}
|
|
6806
|
-
message.siblings.push(reader.bytes());
|
|
6807
|
-
continue;
|
|
6808
|
-
}
|
|
6809
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6810
|
-
break;
|
|
6811
|
-
}
|
|
6812
|
-
reader.skipType(tag & 7);
|
|
6813
|
-
}
|
|
6814
|
-
return message;
|
|
6815
|
-
},
|
|
6816
|
-
fromJSON(object) {
|
|
6817
|
-
return {
|
|
6818
|
-
key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
|
|
6819
|
-
value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
|
|
6820
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6821
|
-
};
|
|
6822
|
-
},
|
|
6823
|
-
toJSON(message) {
|
|
6824
|
-
const obj = {};
|
|
6825
|
-
if (message.key.length !== 0) {
|
|
6826
|
-
obj.key = base64FromBytes3(message.key);
|
|
6827
|
-
}
|
|
6828
|
-
if (message.value.length !== 0) {
|
|
6829
|
-
obj.value = base64FromBytes3(message.value);
|
|
6830
|
-
}
|
|
6831
|
-
if (message.siblings?.length) {
|
|
6832
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6833
|
-
}
|
|
6834
|
-
return obj;
|
|
6835
|
-
},
|
|
6836
|
-
create(base) {
|
|
6837
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
6838
|
-
},
|
|
6839
|
-
fromPartial(object) {
|
|
6840
|
-
const message = createBaseProofEthereumStorage();
|
|
6841
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
6842
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
6843
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6844
|
-
return message;
|
|
6845
|
-
}
|
|
6846
|
-
};
|
|
6847
|
-
function createBaseProofEthereumAccount() {
|
|
6848
|
-
return {
|
|
6849
|
-
nonce: new Uint8Array(0),
|
|
6850
|
-
balance: new Uint8Array(0),
|
|
6851
|
-
storageHash: new Uint8Array(0),
|
|
6852
|
-
codeHash: new Uint8Array(0),
|
|
6853
|
-
siblings: []
|
|
6854
|
-
};
|
|
6855
|
-
}
|
|
6856
|
-
var ProofEthereumAccount = {
|
|
6857
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6858
|
-
if (message.nonce.length !== 0) {
|
|
6859
|
-
writer.uint32(10).bytes(message.nonce);
|
|
6860
|
-
}
|
|
6861
|
-
if (message.balance.length !== 0) {
|
|
6862
|
-
writer.uint32(18).bytes(message.balance);
|
|
6863
|
-
}
|
|
6864
|
-
if (message.storageHash.length !== 0) {
|
|
6865
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
6866
|
-
}
|
|
6867
|
-
if (message.codeHash.length !== 0) {
|
|
6868
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
6869
|
-
}
|
|
6870
|
-
for (const v of message.siblings) {
|
|
6871
|
-
writer.uint32(42).bytes(v);
|
|
6872
|
-
}
|
|
6873
|
-
return writer;
|
|
6874
|
-
},
|
|
6875
|
-
decode(input, length) {
|
|
6876
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6877
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6878
|
-
const message = createBaseProofEthereumAccount();
|
|
6879
|
-
while (reader.pos < end) {
|
|
6880
|
-
const tag = reader.uint32();
|
|
6881
|
-
switch (tag >>> 3) {
|
|
6882
|
-
case 1:
|
|
6883
|
-
if (tag !== 10) {
|
|
6884
|
-
break;
|
|
6885
|
-
}
|
|
6886
|
-
message.nonce = reader.bytes();
|
|
6887
|
-
continue;
|
|
6888
|
-
case 2:
|
|
6889
|
-
if (tag !== 18) {
|
|
6890
|
-
break;
|
|
6891
|
-
}
|
|
6892
|
-
message.balance = reader.bytes();
|
|
6893
|
-
continue;
|
|
6894
|
-
case 3:
|
|
6895
|
-
if (tag !== 26) {
|
|
6896
|
-
break;
|
|
6897
|
-
}
|
|
6898
|
-
message.storageHash = reader.bytes();
|
|
6899
|
-
continue;
|
|
6900
|
-
case 4:
|
|
6901
|
-
if (tag !== 34) {
|
|
6902
|
-
break;
|
|
6903
|
-
}
|
|
6904
|
-
message.codeHash = reader.bytes();
|
|
6905
|
-
continue;
|
|
6906
|
-
case 5:
|
|
6907
|
-
if (tag !== 42) {
|
|
6908
|
-
break;
|
|
6909
|
-
}
|
|
6910
|
-
message.siblings.push(reader.bytes());
|
|
6911
|
-
continue;
|
|
6912
|
-
}
|
|
6913
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6914
|
-
break;
|
|
6915
|
-
}
|
|
6916
|
-
reader.skipType(tag & 7);
|
|
6917
|
-
}
|
|
6918
|
-
return message;
|
|
6919
|
-
},
|
|
6920
|
-
fromJSON(object) {
|
|
6921
|
-
return {
|
|
6922
|
-
nonce: isSet8(object.nonce) ? bytesFromBase643(object.nonce) : new Uint8Array(0),
|
|
6923
|
-
balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
|
|
6924
|
-
storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
|
|
6925
|
-
codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
|
|
6926
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6927
|
-
};
|
|
6928
|
-
},
|
|
6929
|
-
toJSON(message) {
|
|
6930
|
-
const obj = {};
|
|
6931
|
-
if (message.nonce.length !== 0) {
|
|
6932
|
-
obj.nonce = base64FromBytes3(message.nonce);
|
|
6933
|
-
}
|
|
6934
|
-
if (message.balance.length !== 0) {
|
|
6935
|
-
obj.balance = base64FromBytes3(message.balance);
|
|
6936
|
-
}
|
|
6937
|
-
if (message.storageHash.length !== 0) {
|
|
6938
|
-
obj.storageHash = base64FromBytes3(message.storageHash);
|
|
6939
|
-
}
|
|
6940
|
-
if (message.codeHash.length !== 0) {
|
|
6941
|
-
obj.codeHash = base64FromBytes3(message.codeHash);
|
|
6942
|
-
}
|
|
6943
|
-
if (message.siblings?.length) {
|
|
6944
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6945
|
-
}
|
|
6946
|
-
return obj;
|
|
6947
|
-
},
|
|
6948
|
-
create(base) {
|
|
6949
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
6950
|
-
},
|
|
6951
|
-
fromPartial(object) {
|
|
6952
|
-
const message = createBaseProofEthereumAccount();
|
|
6953
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
6954
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
6955
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
6956
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
6957
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6958
|
-
return message;
|
|
6959
|
-
}
|
|
6960
|
-
};
|
|
6961
|
-
function createBaseProofMinime() {
|
|
6962
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
6963
|
-
}
|
|
6964
|
-
var ProofMinime = {
|
|
6965
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6966
|
-
if (message.proofPrevBlock !== void 0) {
|
|
6967
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
6968
|
-
}
|
|
6969
|
-
if (message.proofNextBlock !== void 0) {
|
|
6970
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
6971
|
-
}
|
|
6972
|
-
return writer;
|
|
6973
|
-
},
|
|
6974
|
-
decode(input, length) {
|
|
6975
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6976
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6977
|
-
const message = createBaseProofMinime();
|
|
6978
|
-
while (reader.pos < end) {
|
|
6979
|
-
const tag = reader.uint32();
|
|
6980
|
-
switch (tag >>> 3) {
|
|
6981
|
-
case 1:
|
|
6982
|
-
if (tag !== 10) {
|
|
6983
|
-
break;
|
|
6984
|
-
}
|
|
6985
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6986
|
-
continue;
|
|
6987
|
-
case 2:
|
|
6988
|
-
if (tag !== 18) {
|
|
6989
|
-
break;
|
|
6990
|
-
}
|
|
6991
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6992
|
-
continue;
|
|
6993
|
-
}
|
|
6994
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6995
|
-
break;
|
|
6996
|
-
}
|
|
6997
|
-
reader.skipType(tag & 7);
|
|
6998
|
-
}
|
|
6999
|
-
return message;
|
|
7000
|
-
},
|
|
7001
|
-
fromJSON(object) {
|
|
7002
|
-
return {
|
|
7003
|
-
proofPrevBlock: isSet8(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
7004
|
-
proofNextBlock: isSet8(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
7005
|
-
};
|
|
7006
|
-
},
|
|
7007
|
-
toJSON(message) {
|
|
7008
|
-
const obj = {};
|
|
7009
|
-
if (message.proofPrevBlock !== void 0) {
|
|
7010
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
7011
|
-
}
|
|
7012
|
-
if (message.proofNextBlock !== void 0) {
|
|
7013
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
7014
|
-
}
|
|
7015
|
-
return obj;
|
|
7016
|
-
},
|
|
7017
|
-
create(base) {
|
|
7018
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
7019
|
-
},
|
|
7020
|
-
fromPartial(object) {
|
|
7021
|
-
const message = createBaseProofMinime();
|
|
7022
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
7023
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
7024
6625
|
return message;
|
|
7025
6626
|
}
|
|
7026
6627
|
};
|
|
@@ -7406,86 +7007,6 @@ var ProofZkSNARK = {
|
|
|
7406
7007
|
return message;
|
|
7407
7008
|
}
|
|
7408
7009
|
};
|
|
7409
|
-
function createBaseProofFarcasterFrame() {
|
|
7410
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7411
|
-
}
|
|
7412
|
-
var ProofFarcasterFrame = {
|
|
7413
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7414
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7415
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7416
|
-
}
|
|
7417
|
-
if (message.censusProof !== void 0) {
|
|
7418
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7419
|
-
}
|
|
7420
|
-
if (message.publicKey.length !== 0) {
|
|
7421
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
7422
|
-
}
|
|
7423
|
-
return writer;
|
|
7424
|
-
},
|
|
7425
|
-
decode(input, length) {
|
|
7426
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7427
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7428
|
-
const message = createBaseProofFarcasterFrame();
|
|
7429
|
-
while (reader.pos < end) {
|
|
7430
|
-
const tag = reader.uint32();
|
|
7431
|
-
switch (tag >>> 3) {
|
|
7432
|
-
case 1:
|
|
7433
|
-
if (tag !== 10) {
|
|
7434
|
-
break;
|
|
7435
|
-
}
|
|
7436
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
7437
|
-
continue;
|
|
7438
|
-
case 2:
|
|
7439
|
-
if (tag !== 18) {
|
|
7440
|
-
break;
|
|
7441
|
-
}
|
|
7442
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7443
|
-
continue;
|
|
7444
|
-
case 3:
|
|
7445
|
-
if (tag !== 26) {
|
|
7446
|
-
break;
|
|
7447
|
-
}
|
|
7448
|
-
message.publicKey = reader.bytes();
|
|
7449
|
-
continue;
|
|
7450
|
-
}
|
|
7451
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7452
|
-
break;
|
|
7453
|
-
}
|
|
7454
|
-
reader.skipType(tag & 7);
|
|
7455
|
-
}
|
|
7456
|
-
return message;
|
|
7457
|
-
},
|
|
7458
|
-
fromJSON(object) {
|
|
7459
|
-
return {
|
|
7460
|
-
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7461
|
-
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7462
|
-
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7463
|
-
};
|
|
7464
|
-
},
|
|
7465
|
-
toJSON(message) {
|
|
7466
|
-
const obj = {};
|
|
7467
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7468
|
-
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7469
|
-
}
|
|
7470
|
-
if (message.censusProof !== void 0) {
|
|
7471
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7472
|
-
}
|
|
7473
|
-
if (message.publicKey.length !== 0) {
|
|
7474
|
-
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7475
|
-
}
|
|
7476
|
-
return obj;
|
|
7477
|
-
},
|
|
7478
|
-
create(base) {
|
|
7479
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7480
|
-
},
|
|
7481
|
-
fromPartial(object) {
|
|
7482
|
-
const message = createBaseProofFarcasterFrame();
|
|
7483
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7484
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7485
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7486
|
-
return message;
|
|
7487
|
-
}
|
|
7488
|
-
};
|
|
7489
7010
|
function createBaseAccount2() {
|
|
7490
7011
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7491
7012
|
}
|