@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.mjs
CHANGED
|
@@ -5757,10 +5757,6 @@ __export(vochain_exports, {
|
|
|
5757
5757
|
ProofArbo_Type: () => ProofArbo_Type,
|
|
5758
5758
|
ProofCA: () => ProofCA,
|
|
5759
5759
|
ProofCA_Type: () => ProofCA_Type,
|
|
5760
|
-
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5761
|
-
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5762
|
-
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5763
|
-
ProofMinime: () => ProofMinime,
|
|
5764
5760
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5765
5761
|
QuestionResult: () => QuestionResult,
|
|
5766
5762
|
RegisterKeyTx: () => RegisterKeyTx,
|
|
@@ -6152,12 +6148,6 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6152
6148
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
6153
6149
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
6154
6150
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
6155
|
-
CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
|
|
6156
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
6157
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6158
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6159
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6160
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6161
6151
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6162
6152
|
return CensusOrigin2;
|
|
6163
6153
|
})(CensusOrigin || {});
|
|
@@ -6178,24 +6168,6 @@ function censusOriginFromJSON(object) {
|
|
|
6178
6168
|
case 4:
|
|
6179
6169
|
case "OFF_CHAIN_CA_V2":
|
|
6180
6170
|
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
6181
|
-
case 11:
|
|
6182
|
-
case "ERC20":
|
|
6183
|
-
return 11 /* ERC20 */;
|
|
6184
|
-
case 12:
|
|
6185
|
-
case "ERC721":
|
|
6186
|
-
return 12 /* ERC721 */;
|
|
6187
|
-
case 13:
|
|
6188
|
-
case "ERC1155":
|
|
6189
|
-
return 13 /* ERC1155 */;
|
|
6190
|
-
case 14:
|
|
6191
|
-
case "ERC777":
|
|
6192
|
-
return 14 /* ERC777 */;
|
|
6193
|
-
case 15:
|
|
6194
|
-
case "MINI_ME":
|
|
6195
|
-
return 15 /* MINI_ME */;
|
|
6196
|
-
case 16:
|
|
6197
|
-
case "FARCASTER_FRAME":
|
|
6198
|
-
return 16 /* FARCASTER_FRAME */;
|
|
6199
6171
|
case -1:
|
|
6200
6172
|
case "UNRECOGNIZED":
|
|
6201
6173
|
default:
|
|
@@ -6214,18 +6186,6 @@ function censusOriginToJSON(object) {
|
|
|
6214
6186
|
return "OFF_CHAIN_CA";
|
|
6215
6187
|
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
6216
6188
|
return "OFF_CHAIN_CA_V2";
|
|
6217
|
-
case 11 /* ERC20 */:
|
|
6218
|
-
return "ERC20";
|
|
6219
|
-
case 12 /* ERC721 */:
|
|
6220
|
-
return "ERC721";
|
|
6221
|
-
case 13 /* ERC1155 */:
|
|
6222
|
-
return "ERC1155";
|
|
6223
|
-
case 14 /* ERC777 */:
|
|
6224
|
-
return "ERC777";
|
|
6225
|
-
case 15 /* MINI_ME */:
|
|
6226
|
-
return "MINI_ME";
|
|
6227
|
-
case 16 /* FARCASTER_FRAME */:
|
|
6228
|
-
return "FARCASTER_FRAME";
|
|
6229
6189
|
case -1 /* UNRECOGNIZED */:
|
|
6230
6190
|
default:
|
|
6231
6191
|
return "UNRECOGNIZED";
|
|
@@ -6235,10 +6195,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6235
6195
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
6236
6196
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
6237
6197
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
6238
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6239
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6240
6198
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6241
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6242
6199
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6243
6200
|
return Census_Type2;
|
|
6244
6201
|
})(Census_Type || {});
|
|
@@ -6253,18 +6210,9 @@ function census_TypeFromJSON(object) {
|
|
|
6253
6210
|
case 2:
|
|
6254
6211
|
case "ARBO_POSEIDON":
|
|
6255
6212
|
return 2 /* ARBO_POSEIDON */;
|
|
6256
|
-
case 3:
|
|
6257
|
-
case "ETHEREUMSTORAGE":
|
|
6258
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
6259
|
-
case 4:
|
|
6260
|
-
case "ETHEREUMACCOUNT":
|
|
6261
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
6262
6213
|
case 5:
|
|
6263
6214
|
case "CA":
|
|
6264
6215
|
return 5 /* CA */;
|
|
6265
|
-
case 6:
|
|
6266
|
-
case "FARCASTER_FRAME":
|
|
6267
|
-
return 6 /* FARCASTER_FRAME */;
|
|
6268
6216
|
case -1:
|
|
6269
6217
|
case "UNRECOGNIZED":
|
|
6270
6218
|
default:
|
|
@@ -6279,14 +6227,8 @@ function census_TypeToJSON(object) {
|
|
|
6279
6227
|
return "ARBO_BLAKE2B";
|
|
6280
6228
|
case 2 /* ARBO_POSEIDON */:
|
|
6281
6229
|
return "ARBO_POSEIDON";
|
|
6282
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
6283
|
-
return "ETHEREUMSTORAGE";
|
|
6284
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
6285
|
-
return "ETHEREUMACCOUNT";
|
|
6286
6230
|
case 5 /* CA */:
|
|
6287
6231
|
return "CA";
|
|
6288
|
-
case 6 /* FARCASTER_FRAME */:
|
|
6289
|
-
return "FARCASTER_FRAME";
|
|
6290
6232
|
case -1 /* UNRECOGNIZED */:
|
|
6291
6233
|
default:
|
|
6292
6234
|
return "UNRECOGNIZED";
|
|
@@ -6599,12 +6541,6 @@ function createBaseProof() {
|
|
|
6599
6541
|
var Proof = {
|
|
6600
6542
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6601
6543
|
switch (message.payload?.$case) {
|
|
6602
|
-
case "ethereumStorage":
|
|
6603
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
6604
|
-
break;
|
|
6605
|
-
case "ethereumAccount":
|
|
6606
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
6607
|
-
break;
|
|
6608
6544
|
case "ca":
|
|
6609
6545
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
6610
6546
|
break;
|
|
@@ -6614,12 +6550,6 @@ var Proof = {
|
|
|
6614
6550
|
case "zkSnark":
|
|
6615
6551
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
6616
6552
|
break;
|
|
6617
|
-
case "minimeStorage":
|
|
6618
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6619
|
-
break;
|
|
6620
|
-
case "farcasterFrame":
|
|
6621
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6622
|
-
break;
|
|
6623
6553
|
}
|
|
6624
6554
|
return writer;
|
|
6625
6555
|
},
|
|
@@ -6630,24 +6560,6 @@ var Proof = {
|
|
|
6630
6560
|
while (reader.pos < end) {
|
|
6631
6561
|
const tag = reader.uint32();
|
|
6632
6562
|
switch (tag >>> 3) {
|
|
6633
|
-
case 3:
|
|
6634
|
-
if (tag !== 26) {
|
|
6635
|
-
break;
|
|
6636
|
-
}
|
|
6637
|
-
message.payload = {
|
|
6638
|
-
$case: "ethereumStorage",
|
|
6639
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
6640
|
-
};
|
|
6641
|
-
continue;
|
|
6642
|
-
case 4:
|
|
6643
|
-
if (tag !== 34) {
|
|
6644
|
-
break;
|
|
6645
|
-
}
|
|
6646
|
-
message.payload = {
|
|
6647
|
-
$case: "ethereumAccount",
|
|
6648
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
6649
|
-
};
|
|
6650
|
-
continue;
|
|
6651
6563
|
case 5:
|
|
6652
6564
|
if (tag !== 42) {
|
|
6653
6565
|
break;
|
|
@@ -6666,21 +6578,6 @@ var Proof = {
|
|
|
6666
6578
|
}
|
|
6667
6579
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
6668
6580
|
continue;
|
|
6669
|
-
case 8:
|
|
6670
|
-
if (tag !== 66) {
|
|
6671
|
-
break;
|
|
6672
|
-
}
|
|
6673
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6674
|
-
continue;
|
|
6675
|
-
case 9:
|
|
6676
|
-
if (tag !== 74) {
|
|
6677
|
-
break;
|
|
6678
|
-
}
|
|
6679
|
-
message.payload = {
|
|
6680
|
-
$case: "farcasterFrame",
|
|
6681
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6682
|
-
};
|
|
6683
|
-
continue;
|
|
6684
6581
|
}
|
|
6685
6582
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6686
6583
|
break;
|
|
@@ -6691,17 +6588,11 @@ var Proof = {
|
|
|
6691
6588
|
},
|
|
6692
6589
|
fromJSON(object) {
|
|
6693
6590
|
return {
|
|
6694
|
-
payload: isSet8(object.
|
|
6591
|
+
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
|
|
6695
6592
|
};
|
|
6696
6593
|
},
|
|
6697
6594
|
toJSON(message) {
|
|
6698
6595
|
const obj = {};
|
|
6699
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
6700
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
6701
|
-
}
|
|
6702
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
6703
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
6704
|
-
}
|
|
6705
6596
|
if (message.payload?.$case === "ca") {
|
|
6706
6597
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
6707
6598
|
}
|
|
@@ -6711,12 +6602,6 @@ var Proof = {
|
|
|
6711
6602
|
if (message.payload?.$case === "zkSnark") {
|
|
6712
6603
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
6713
6604
|
}
|
|
6714
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
6715
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6716
|
-
}
|
|
6717
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
6718
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6719
|
-
}
|
|
6720
6605
|
return obj;
|
|
6721
6606
|
},
|
|
6722
6607
|
create(base) {
|
|
@@ -6724,18 +6609,6 @@ var Proof = {
|
|
|
6724
6609
|
},
|
|
6725
6610
|
fromPartial(object) {
|
|
6726
6611
|
const message = createBaseProof();
|
|
6727
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
6728
|
-
message.payload = {
|
|
6729
|
-
$case: "ethereumStorage",
|
|
6730
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
6731
|
-
};
|
|
6732
|
-
}
|
|
6733
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
6734
|
-
message.payload = {
|
|
6735
|
-
$case: "ethereumAccount",
|
|
6736
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
6737
|
-
};
|
|
6738
|
-
}
|
|
6739
6612
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
6740
6613
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
6741
6614
|
}
|
|
@@ -6745,278 +6618,6 @@ var Proof = {
|
|
|
6745
6618
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
6746
6619
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
6747
6620
|
}
|
|
6748
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
6749
|
-
message.payload = {
|
|
6750
|
-
$case: "minimeStorage",
|
|
6751
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6752
|
-
};
|
|
6753
|
-
}
|
|
6754
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6755
|
-
message.payload = {
|
|
6756
|
-
$case: "farcasterFrame",
|
|
6757
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6758
|
-
};
|
|
6759
|
-
}
|
|
6760
|
-
return message;
|
|
6761
|
-
}
|
|
6762
|
-
};
|
|
6763
|
-
function createBaseProofEthereumStorage() {
|
|
6764
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
6765
|
-
}
|
|
6766
|
-
var ProofEthereumStorage = {
|
|
6767
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6768
|
-
if (message.key.length !== 0) {
|
|
6769
|
-
writer.uint32(10).bytes(message.key);
|
|
6770
|
-
}
|
|
6771
|
-
if (message.value.length !== 0) {
|
|
6772
|
-
writer.uint32(18).bytes(message.value);
|
|
6773
|
-
}
|
|
6774
|
-
for (const v of message.siblings) {
|
|
6775
|
-
writer.uint32(26).bytes(v);
|
|
6776
|
-
}
|
|
6777
|
-
return writer;
|
|
6778
|
-
},
|
|
6779
|
-
decode(input, length) {
|
|
6780
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6781
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6782
|
-
const message = createBaseProofEthereumStorage();
|
|
6783
|
-
while (reader.pos < end) {
|
|
6784
|
-
const tag = reader.uint32();
|
|
6785
|
-
switch (tag >>> 3) {
|
|
6786
|
-
case 1:
|
|
6787
|
-
if (tag !== 10) {
|
|
6788
|
-
break;
|
|
6789
|
-
}
|
|
6790
|
-
message.key = reader.bytes();
|
|
6791
|
-
continue;
|
|
6792
|
-
case 2:
|
|
6793
|
-
if (tag !== 18) {
|
|
6794
|
-
break;
|
|
6795
|
-
}
|
|
6796
|
-
message.value = reader.bytes();
|
|
6797
|
-
continue;
|
|
6798
|
-
case 3:
|
|
6799
|
-
if (tag !== 26) {
|
|
6800
|
-
break;
|
|
6801
|
-
}
|
|
6802
|
-
message.siblings.push(reader.bytes());
|
|
6803
|
-
continue;
|
|
6804
|
-
}
|
|
6805
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6806
|
-
break;
|
|
6807
|
-
}
|
|
6808
|
-
reader.skipType(tag & 7);
|
|
6809
|
-
}
|
|
6810
|
-
return message;
|
|
6811
|
-
},
|
|
6812
|
-
fromJSON(object) {
|
|
6813
|
-
return {
|
|
6814
|
-
key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
|
|
6815
|
-
value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
|
|
6816
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6817
|
-
};
|
|
6818
|
-
},
|
|
6819
|
-
toJSON(message) {
|
|
6820
|
-
const obj = {};
|
|
6821
|
-
if (message.key.length !== 0) {
|
|
6822
|
-
obj.key = base64FromBytes3(message.key);
|
|
6823
|
-
}
|
|
6824
|
-
if (message.value.length !== 0) {
|
|
6825
|
-
obj.value = base64FromBytes3(message.value);
|
|
6826
|
-
}
|
|
6827
|
-
if (message.siblings?.length) {
|
|
6828
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6829
|
-
}
|
|
6830
|
-
return obj;
|
|
6831
|
-
},
|
|
6832
|
-
create(base) {
|
|
6833
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
6834
|
-
},
|
|
6835
|
-
fromPartial(object) {
|
|
6836
|
-
const message = createBaseProofEthereumStorage();
|
|
6837
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
6838
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
6839
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6840
|
-
return message;
|
|
6841
|
-
}
|
|
6842
|
-
};
|
|
6843
|
-
function createBaseProofEthereumAccount() {
|
|
6844
|
-
return {
|
|
6845
|
-
nonce: new Uint8Array(0),
|
|
6846
|
-
balance: new Uint8Array(0),
|
|
6847
|
-
storageHash: new Uint8Array(0),
|
|
6848
|
-
codeHash: new Uint8Array(0),
|
|
6849
|
-
siblings: []
|
|
6850
|
-
};
|
|
6851
|
-
}
|
|
6852
|
-
var ProofEthereumAccount = {
|
|
6853
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6854
|
-
if (message.nonce.length !== 0) {
|
|
6855
|
-
writer.uint32(10).bytes(message.nonce);
|
|
6856
|
-
}
|
|
6857
|
-
if (message.balance.length !== 0) {
|
|
6858
|
-
writer.uint32(18).bytes(message.balance);
|
|
6859
|
-
}
|
|
6860
|
-
if (message.storageHash.length !== 0) {
|
|
6861
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
6862
|
-
}
|
|
6863
|
-
if (message.codeHash.length !== 0) {
|
|
6864
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
6865
|
-
}
|
|
6866
|
-
for (const v of message.siblings) {
|
|
6867
|
-
writer.uint32(42).bytes(v);
|
|
6868
|
-
}
|
|
6869
|
-
return writer;
|
|
6870
|
-
},
|
|
6871
|
-
decode(input, length) {
|
|
6872
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6873
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6874
|
-
const message = createBaseProofEthereumAccount();
|
|
6875
|
-
while (reader.pos < end) {
|
|
6876
|
-
const tag = reader.uint32();
|
|
6877
|
-
switch (tag >>> 3) {
|
|
6878
|
-
case 1:
|
|
6879
|
-
if (tag !== 10) {
|
|
6880
|
-
break;
|
|
6881
|
-
}
|
|
6882
|
-
message.nonce = reader.bytes();
|
|
6883
|
-
continue;
|
|
6884
|
-
case 2:
|
|
6885
|
-
if (tag !== 18) {
|
|
6886
|
-
break;
|
|
6887
|
-
}
|
|
6888
|
-
message.balance = reader.bytes();
|
|
6889
|
-
continue;
|
|
6890
|
-
case 3:
|
|
6891
|
-
if (tag !== 26) {
|
|
6892
|
-
break;
|
|
6893
|
-
}
|
|
6894
|
-
message.storageHash = reader.bytes();
|
|
6895
|
-
continue;
|
|
6896
|
-
case 4:
|
|
6897
|
-
if (tag !== 34) {
|
|
6898
|
-
break;
|
|
6899
|
-
}
|
|
6900
|
-
message.codeHash = reader.bytes();
|
|
6901
|
-
continue;
|
|
6902
|
-
case 5:
|
|
6903
|
-
if (tag !== 42) {
|
|
6904
|
-
break;
|
|
6905
|
-
}
|
|
6906
|
-
message.siblings.push(reader.bytes());
|
|
6907
|
-
continue;
|
|
6908
|
-
}
|
|
6909
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6910
|
-
break;
|
|
6911
|
-
}
|
|
6912
|
-
reader.skipType(tag & 7);
|
|
6913
|
-
}
|
|
6914
|
-
return message;
|
|
6915
|
-
},
|
|
6916
|
-
fromJSON(object) {
|
|
6917
|
-
return {
|
|
6918
|
-
nonce: isSet8(object.nonce) ? bytesFromBase643(object.nonce) : new Uint8Array(0),
|
|
6919
|
-
balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
|
|
6920
|
-
storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
|
|
6921
|
-
codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
|
|
6922
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6923
|
-
};
|
|
6924
|
-
},
|
|
6925
|
-
toJSON(message) {
|
|
6926
|
-
const obj = {};
|
|
6927
|
-
if (message.nonce.length !== 0) {
|
|
6928
|
-
obj.nonce = base64FromBytes3(message.nonce);
|
|
6929
|
-
}
|
|
6930
|
-
if (message.balance.length !== 0) {
|
|
6931
|
-
obj.balance = base64FromBytes3(message.balance);
|
|
6932
|
-
}
|
|
6933
|
-
if (message.storageHash.length !== 0) {
|
|
6934
|
-
obj.storageHash = base64FromBytes3(message.storageHash);
|
|
6935
|
-
}
|
|
6936
|
-
if (message.codeHash.length !== 0) {
|
|
6937
|
-
obj.codeHash = base64FromBytes3(message.codeHash);
|
|
6938
|
-
}
|
|
6939
|
-
if (message.siblings?.length) {
|
|
6940
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6941
|
-
}
|
|
6942
|
-
return obj;
|
|
6943
|
-
},
|
|
6944
|
-
create(base) {
|
|
6945
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
6946
|
-
},
|
|
6947
|
-
fromPartial(object) {
|
|
6948
|
-
const message = createBaseProofEthereumAccount();
|
|
6949
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
6950
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
6951
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
6952
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
6953
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6954
|
-
return message;
|
|
6955
|
-
}
|
|
6956
|
-
};
|
|
6957
|
-
function createBaseProofMinime() {
|
|
6958
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
6959
|
-
}
|
|
6960
|
-
var ProofMinime = {
|
|
6961
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6962
|
-
if (message.proofPrevBlock !== void 0) {
|
|
6963
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
6964
|
-
}
|
|
6965
|
-
if (message.proofNextBlock !== void 0) {
|
|
6966
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
6967
|
-
}
|
|
6968
|
-
return writer;
|
|
6969
|
-
},
|
|
6970
|
-
decode(input, length) {
|
|
6971
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6972
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6973
|
-
const message = createBaseProofMinime();
|
|
6974
|
-
while (reader.pos < end) {
|
|
6975
|
-
const tag = reader.uint32();
|
|
6976
|
-
switch (tag >>> 3) {
|
|
6977
|
-
case 1:
|
|
6978
|
-
if (tag !== 10) {
|
|
6979
|
-
break;
|
|
6980
|
-
}
|
|
6981
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6982
|
-
continue;
|
|
6983
|
-
case 2:
|
|
6984
|
-
if (tag !== 18) {
|
|
6985
|
-
break;
|
|
6986
|
-
}
|
|
6987
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6988
|
-
continue;
|
|
6989
|
-
}
|
|
6990
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6991
|
-
break;
|
|
6992
|
-
}
|
|
6993
|
-
reader.skipType(tag & 7);
|
|
6994
|
-
}
|
|
6995
|
-
return message;
|
|
6996
|
-
},
|
|
6997
|
-
fromJSON(object) {
|
|
6998
|
-
return {
|
|
6999
|
-
proofPrevBlock: isSet8(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
7000
|
-
proofNextBlock: isSet8(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
7001
|
-
};
|
|
7002
|
-
},
|
|
7003
|
-
toJSON(message) {
|
|
7004
|
-
const obj = {};
|
|
7005
|
-
if (message.proofPrevBlock !== void 0) {
|
|
7006
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
7007
|
-
}
|
|
7008
|
-
if (message.proofNextBlock !== void 0) {
|
|
7009
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
7010
|
-
}
|
|
7011
|
-
return obj;
|
|
7012
|
-
},
|
|
7013
|
-
create(base) {
|
|
7014
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
7015
|
-
},
|
|
7016
|
-
fromPartial(object) {
|
|
7017
|
-
const message = createBaseProofMinime();
|
|
7018
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
7019
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
7020
6621
|
return message;
|
|
7021
6622
|
}
|
|
7022
6623
|
};
|
|
@@ -7402,86 +7003,6 @@ var ProofZkSNARK = {
|
|
|
7402
7003
|
return message;
|
|
7403
7004
|
}
|
|
7404
7005
|
};
|
|
7405
|
-
function createBaseProofFarcasterFrame() {
|
|
7406
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7407
|
-
}
|
|
7408
|
-
var ProofFarcasterFrame = {
|
|
7409
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7410
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7411
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7412
|
-
}
|
|
7413
|
-
if (message.censusProof !== void 0) {
|
|
7414
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7415
|
-
}
|
|
7416
|
-
if (message.publicKey.length !== 0) {
|
|
7417
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
7418
|
-
}
|
|
7419
|
-
return writer;
|
|
7420
|
-
},
|
|
7421
|
-
decode(input, length) {
|
|
7422
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7423
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7424
|
-
const message = createBaseProofFarcasterFrame();
|
|
7425
|
-
while (reader.pos < end) {
|
|
7426
|
-
const tag = reader.uint32();
|
|
7427
|
-
switch (tag >>> 3) {
|
|
7428
|
-
case 1:
|
|
7429
|
-
if (tag !== 10) {
|
|
7430
|
-
break;
|
|
7431
|
-
}
|
|
7432
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
7433
|
-
continue;
|
|
7434
|
-
case 2:
|
|
7435
|
-
if (tag !== 18) {
|
|
7436
|
-
break;
|
|
7437
|
-
}
|
|
7438
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7439
|
-
continue;
|
|
7440
|
-
case 3:
|
|
7441
|
-
if (tag !== 26) {
|
|
7442
|
-
break;
|
|
7443
|
-
}
|
|
7444
|
-
message.publicKey = reader.bytes();
|
|
7445
|
-
continue;
|
|
7446
|
-
}
|
|
7447
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7448
|
-
break;
|
|
7449
|
-
}
|
|
7450
|
-
reader.skipType(tag & 7);
|
|
7451
|
-
}
|
|
7452
|
-
return message;
|
|
7453
|
-
},
|
|
7454
|
-
fromJSON(object) {
|
|
7455
|
-
return {
|
|
7456
|
-
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7457
|
-
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7458
|
-
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7459
|
-
};
|
|
7460
|
-
},
|
|
7461
|
-
toJSON(message) {
|
|
7462
|
-
const obj = {};
|
|
7463
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7464
|
-
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7465
|
-
}
|
|
7466
|
-
if (message.censusProof !== void 0) {
|
|
7467
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7468
|
-
}
|
|
7469
|
-
if (message.publicKey.length !== 0) {
|
|
7470
|
-
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7471
|
-
}
|
|
7472
|
-
return obj;
|
|
7473
|
-
},
|
|
7474
|
-
create(base) {
|
|
7475
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7476
|
-
},
|
|
7477
|
-
fromPartial(object) {
|
|
7478
|
-
const message = createBaseProofFarcasterFrame();
|
|
7479
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7480
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7481
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7482
|
-
return message;
|
|
7483
|
-
}
|
|
7484
|
-
};
|
|
7485
7006
|
function createBaseAccount2() {
|
|
7486
7007
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7487
7008
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { B as Account, G as AdminTx, q as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, M as CollectFaucetTx, X as EnvelopeType, Q as FaucetPackage, O as FaucetPayload, N as NewProcessTx, _ as OracleList, W as Process, a4 as ProcessEndingList, Y as ProcessMode, a2 as ProcessResult, P as ProcessStatus, Z as ProcessVoteOptions, k as Proof, r as ProofArbo, x as ProofArbo_KeyType, u as ProofArbo_Type, l as ProofCA, m as ProofCA_Type, A as ProofZkSNARK, a3 as QuestionResult, R as RegisterKeyTx, L as RegisterSIKTx, K as SIKTx, H as SendTokensTx, J as SetAccountTx, U as SetKeykeeperTx, F as SetProcessTx, I as SetTransactionCostsTx, E as SignedTx, S as SourceNetworkId, a5 as StoredKeys, a1 as TendermintHeader, D as Tx, T as TxType, a0 as Validator, $ as ValidatorList, V as VoteEnvelope, d as censusOriginFromJSON, e as censusOriginToJSON, h as census_TypeFromJSON, j as census_TypeToJSON, p as processStatusFromJSON, b as processStatusToJSON, y as proofArbo_KeyTypeFromJSON, z as proofArbo_KeyTypeToJSON, v as proofArbo_TypeFromJSON, w as proofArbo_TypeToJSON, n as proofCA_TypeFromJSON, o as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-b19a326e.js';
|
|
2
2
|
import 'protobufjs/minimal';
|