@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
package/build/js/index.mjs
CHANGED
|
@@ -1110,9 +1110,27 @@ var require_reader = __commonJS({
|
|
|
1110
1110
|
Reader.create = create();
|
|
1111
1111
|
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1112
1112
|
util.Array.prototype.slice;
|
|
1113
|
+
function readVarint32NearEnd(reader) {
|
|
1114
|
+
var value = 0;
|
|
1115
|
+
for (var i = 0; i < 4; ++i) {
|
|
1116
|
+
if (reader.pos >= reader.len)
|
|
1117
|
+
throw indexOutOfRange(reader);
|
|
1118
|
+
var b = reader.buf[reader.pos++];
|
|
1119
|
+
value = (value | (b & 127) << i * 7) >>> 0;
|
|
1120
|
+
if (b < 128)
|
|
1121
|
+
return value;
|
|
1122
|
+
}
|
|
1123
|
+
throw indexOutOfRange(reader);
|
|
1124
|
+
}
|
|
1113
1125
|
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1114
1126
|
var value = 4294967295;
|
|
1115
1127
|
return function read_uint32() {
|
|
1128
|
+
if (this.len - this.pos < 5) {
|
|
1129
|
+
if (this.pos >= this.len)
|
|
1130
|
+
throw indexOutOfRange(this);
|
|
1131
|
+
if (this.buf[this.pos] >= 128)
|
|
1132
|
+
return readVarint32NearEnd(this);
|
|
1133
|
+
}
|
|
1116
1134
|
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1117
1135
|
if (this.buf[this.pos++] < 128)
|
|
1118
1136
|
return value;
|
|
@@ -5739,10 +5757,6 @@ __export(vochain_exports, {
|
|
|
5739
5757
|
ProofArbo_Type: () => ProofArbo_Type,
|
|
5740
5758
|
ProofCA: () => ProofCA,
|
|
5741
5759
|
ProofCA_Type: () => ProofCA_Type,
|
|
5742
|
-
ProofEthereumAccount: () => ProofEthereumAccount,
|
|
5743
|
-
ProofEthereumStorage: () => ProofEthereumStorage,
|
|
5744
|
-
ProofFarcasterFrame: () => ProofFarcasterFrame,
|
|
5745
|
-
ProofMinime: () => ProofMinime,
|
|
5746
5760
|
ProofZkSNARK: () => ProofZkSNARK,
|
|
5747
5761
|
QuestionResult: () => QuestionResult,
|
|
5748
5762
|
RegisterKeyTx: () => RegisterKeyTx,
|
|
@@ -6133,12 +6147,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
|
|
|
6133
6147
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE"] = 1] = "OFF_CHAIN_TREE";
|
|
6134
6148
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
|
|
6135
6149
|
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
|
|
6136
|
-
CensusOrigin2[CensusOrigin2["
|
|
6137
|
-
CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
|
|
6138
|
-
CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
|
|
6139
|
-
CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
|
|
6140
|
-
CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
|
|
6141
|
-
CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
|
|
6150
|
+
CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
|
|
6142
6151
|
CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6143
6152
|
return CensusOrigin2;
|
|
6144
6153
|
})(CensusOrigin || {});
|
|
@@ -6156,24 +6165,9 @@ function censusOriginFromJSON(object) {
|
|
|
6156
6165
|
case 3:
|
|
6157
6166
|
case "OFF_CHAIN_CA":
|
|
6158
6167
|
return 3 /* OFF_CHAIN_CA */;
|
|
6159
|
-
case
|
|
6160
|
-
case "
|
|
6161
|
-
return
|
|
6162
|
-
case 12:
|
|
6163
|
-
case "ERC721":
|
|
6164
|
-
return 12 /* ERC721 */;
|
|
6165
|
-
case 13:
|
|
6166
|
-
case "ERC1155":
|
|
6167
|
-
return 13 /* ERC1155 */;
|
|
6168
|
-
case 14:
|
|
6169
|
-
case "ERC777":
|
|
6170
|
-
return 14 /* ERC777 */;
|
|
6171
|
-
case 15:
|
|
6172
|
-
case "MINI_ME":
|
|
6173
|
-
return 15 /* MINI_ME */;
|
|
6174
|
-
case 16:
|
|
6175
|
-
case "FARCASTER_FRAME":
|
|
6176
|
-
return 16 /* FARCASTER_FRAME */;
|
|
6168
|
+
case 4:
|
|
6169
|
+
case "OFF_CHAIN_CA_V2":
|
|
6170
|
+
return 4 /* OFF_CHAIN_CA_V2 */;
|
|
6177
6171
|
case -1:
|
|
6178
6172
|
case "UNRECOGNIZED":
|
|
6179
6173
|
default:
|
|
@@ -6190,18 +6184,8 @@ function censusOriginToJSON(object) {
|
|
|
6190
6184
|
return "OFF_CHAIN_TREE_WEIGHTED";
|
|
6191
6185
|
case 3 /* OFF_CHAIN_CA */:
|
|
6192
6186
|
return "OFF_CHAIN_CA";
|
|
6193
|
-
case
|
|
6194
|
-
return "
|
|
6195
|
-
case 12 /* ERC721 */:
|
|
6196
|
-
return "ERC721";
|
|
6197
|
-
case 13 /* ERC1155 */:
|
|
6198
|
-
return "ERC1155";
|
|
6199
|
-
case 14 /* ERC777 */:
|
|
6200
|
-
return "ERC777";
|
|
6201
|
-
case 15 /* MINI_ME */:
|
|
6202
|
-
return "MINI_ME";
|
|
6203
|
-
case 16 /* FARCASTER_FRAME */:
|
|
6204
|
-
return "FARCASTER_FRAME";
|
|
6187
|
+
case 4 /* OFF_CHAIN_CA_V2 */:
|
|
6188
|
+
return "OFF_CHAIN_CA_V2";
|
|
6205
6189
|
case -1 /* UNRECOGNIZED */:
|
|
6206
6190
|
default:
|
|
6207
6191
|
return "UNRECOGNIZED";
|
|
@@ -6211,10 +6195,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
|
|
|
6211
6195
|
Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
6212
6196
|
Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
|
|
6213
6197
|
Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
|
|
6214
|
-
Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
|
|
6215
|
-
Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
|
|
6216
6198
|
Census_Type2[Census_Type2["CA"] = 5] = "CA";
|
|
6217
|
-
Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
|
|
6218
6199
|
Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
6219
6200
|
return Census_Type2;
|
|
6220
6201
|
})(Census_Type || {});
|
|
@@ -6229,18 +6210,9 @@ function census_TypeFromJSON(object) {
|
|
|
6229
6210
|
case 2:
|
|
6230
6211
|
case "ARBO_POSEIDON":
|
|
6231
6212
|
return 2 /* ARBO_POSEIDON */;
|
|
6232
|
-
case 3:
|
|
6233
|
-
case "ETHEREUMSTORAGE":
|
|
6234
|
-
return 3 /* ETHEREUMSTORAGE */;
|
|
6235
|
-
case 4:
|
|
6236
|
-
case "ETHEREUMACCOUNT":
|
|
6237
|
-
return 4 /* ETHEREUMACCOUNT */;
|
|
6238
6213
|
case 5:
|
|
6239
6214
|
case "CA":
|
|
6240
6215
|
return 5 /* CA */;
|
|
6241
|
-
case 6:
|
|
6242
|
-
case "FARCASTER_FRAME":
|
|
6243
|
-
return 6 /* FARCASTER_FRAME */;
|
|
6244
6216
|
case -1:
|
|
6245
6217
|
case "UNRECOGNIZED":
|
|
6246
6218
|
default:
|
|
@@ -6255,14 +6227,8 @@ function census_TypeToJSON(object) {
|
|
|
6255
6227
|
return "ARBO_BLAKE2B";
|
|
6256
6228
|
case 2 /* ARBO_POSEIDON */:
|
|
6257
6229
|
return "ARBO_POSEIDON";
|
|
6258
|
-
case 3 /* ETHEREUMSTORAGE */:
|
|
6259
|
-
return "ETHEREUMSTORAGE";
|
|
6260
|
-
case 4 /* ETHEREUMACCOUNT */:
|
|
6261
|
-
return "ETHEREUMACCOUNT";
|
|
6262
6230
|
case 5 /* CA */:
|
|
6263
6231
|
return "CA";
|
|
6264
|
-
case 6 /* FARCASTER_FRAME */:
|
|
6265
|
-
return "FARCASTER_FRAME";
|
|
6266
6232
|
case -1 /* UNRECOGNIZED */:
|
|
6267
6233
|
default:
|
|
6268
6234
|
return "UNRECOGNIZED";
|
|
@@ -6575,12 +6541,6 @@ function createBaseProof() {
|
|
|
6575
6541
|
var Proof = {
|
|
6576
6542
|
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6577
6543
|
switch (message.payload?.$case) {
|
|
6578
|
-
case "ethereumStorage":
|
|
6579
|
-
ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
|
|
6580
|
-
break;
|
|
6581
|
-
case "ethereumAccount":
|
|
6582
|
-
ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
|
|
6583
|
-
break;
|
|
6584
6544
|
case "ca":
|
|
6585
6545
|
ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
|
|
6586
6546
|
break;
|
|
@@ -6590,12 +6550,6 @@ var Proof = {
|
|
|
6590
6550
|
case "zkSnark":
|
|
6591
6551
|
ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
|
|
6592
6552
|
break;
|
|
6593
|
-
case "minimeStorage":
|
|
6594
|
-
ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
|
|
6595
|
-
break;
|
|
6596
|
-
case "farcasterFrame":
|
|
6597
|
-
ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
|
|
6598
|
-
break;
|
|
6599
6553
|
}
|
|
6600
6554
|
return writer;
|
|
6601
6555
|
},
|
|
@@ -6606,24 +6560,6 @@ var Proof = {
|
|
|
6606
6560
|
while (reader.pos < end) {
|
|
6607
6561
|
const tag = reader.uint32();
|
|
6608
6562
|
switch (tag >>> 3) {
|
|
6609
|
-
case 3:
|
|
6610
|
-
if (tag !== 26) {
|
|
6611
|
-
break;
|
|
6612
|
-
}
|
|
6613
|
-
message.payload = {
|
|
6614
|
-
$case: "ethereumStorage",
|
|
6615
|
-
ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
|
|
6616
|
-
};
|
|
6617
|
-
continue;
|
|
6618
|
-
case 4:
|
|
6619
|
-
if (tag !== 34) {
|
|
6620
|
-
break;
|
|
6621
|
-
}
|
|
6622
|
-
message.payload = {
|
|
6623
|
-
$case: "ethereumAccount",
|
|
6624
|
-
ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
|
|
6625
|
-
};
|
|
6626
|
-
continue;
|
|
6627
6563
|
case 5:
|
|
6628
6564
|
if (tag !== 42) {
|
|
6629
6565
|
break;
|
|
@@ -6642,21 +6578,6 @@ var Proof = {
|
|
|
6642
6578
|
}
|
|
6643
6579
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
|
|
6644
6580
|
continue;
|
|
6645
|
-
case 8:
|
|
6646
|
-
if (tag !== 66) {
|
|
6647
|
-
break;
|
|
6648
|
-
}
|
|
6649
|
-
message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
|
|
6650
|
-
continue;
|
|
6651
|
-
case 9:
|
|
6652
|
-
if (tag !== 74) {
|
|
6653
|
-
break;
|
|
6654
|
-
}
|
|
6655
|
-
message.payload = {
|
|
6656
|
-
$case: "farcasterFrame",
|
|
6657
|
-
farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
|
|
6658
|
-
};
|
|
6659
|
-
continue;
|
|
6660
6581
|
}
|
|
6661
6582
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6662
6583
|
break;
|
|
@@ -6667,17 +6588,11 @@ var Proof = {
|
|
|
6667
6588
|
},
|
|
6668
6589
|
fromJSON(object) {
|
|
6669
6590
|
return {
|
|
6670
|
-
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
|
|
6671
6592
|
};
|
|
6672
6593
|
},
|
|
6673
6594
|
toJSON(message) {
|
|
6674
6595
|
const obj = {};
|
|
6675
|
-
if (message.payload?.$case === "ethereumStorage") {
|
|
6676
|
-
obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
|
|
6677
|
-
}
|
|
6678
|
-
if (message.payload?.$case === "ethereumAccount") {
|
|
6679
|
-
obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
|
|
6680
|
-
}
|
|
6681
6596
|
if (message.payload?.$case === "ca") {
|
|
6682
6597
|
obj.ca = ProofCA.toJSON(message.payload.ca);
|
|
6683
6598
|
}
|
|
@@ -6687,12 +6602,6 @@ var Proof = {
|
|
|
6687
6602
|
if (message.payload?.$case === "zkSnark") {
|
|
6688
6603
|
obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
|
|
6689
6604
|
}
|
|
6690
|
-
if (message.payload?.$case === "minimeStorage") {
|
|
6691
|
-
obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
|
|
6692
|
-
}
|
|
6693
|
-
if (message.payload?.$case === "farcasterFrame") {
|
|
6694
|
-
obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
|
|
6695
|
-
}
|
|
6696
6605
|
return obj;
|
|
6697
6606
|
},
|
|
6698
6607
|
create(base) {
|
|
@@ -6700,18 +6609,6 @@ var Proof = {
|
|
|
6700
6609
|
},
|
|
6701
6610
|
fromPartial(object) {
|
|
6702
6611
|
const message = createBaseProof();
|
|
6703
|
-
if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
|
|
6704
|
-
message.payload = {
|
|
6705
|
-
$case: "ethereumStorage",
|
|
6706
|
-
ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
|
|
6707
|
-
};
|
|
6708
|
-
}
|
|
6709
|
-
if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
|
|
6710
|
-
message.payload = {
|
|
6711
|
-
$case: "ethereumAccount",
|
|
6712
|
-
ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
|
|
6713
|
-
};
|
|
6714
|
-
}
|
|
6715
6612
|
if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
|
|
6716
6613
|
message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
|
|
6717
6614
|
}
|
|
@@ -6721,278 +6618,6 @@ var Proof = {
|
|
|
6721
6618
|
if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
|
|
6722
6619
|
message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
|
|
6723
6620
|
}
|
|
6724
|
-
if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
|
|
6725
|
-
message.payload = {
|
|
6726
|
-
$case: "minimeStorage",
|
|
6727
|
-
minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
|
|
6728
|
-
};
|
|
6729
|
-
}
|
|
6730
|
-
if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
|
|
6731
|
-
message.payload = {
|
|
6732
|
-
$case: "farcasterFrame",
|
|
6733
|
-
farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
|
|
6734
|
-
};
|
|
6735
|
-
}
|
|
6736
|
-
return message;
|
|
6737
|
-
}
|
|
6738
|
-
};
|
|
6739
|
-
function createBaseProofEthereumStorage() {
|
|
6740
|
-
return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
|
|
6741
|
-
}
|
|
6742
|
-
var ProofEthereumStorage = {
|
|
6743
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6744
|
-
if (message.key.length !== 0) {
|
|
6745
|
-
writer.uint32(10).bytes(message.key);
|
|
6746
|
-
}
|
|
6747
|
-
if (message.value.length !== 0) {
|
|
6748
|
-
writer.uint32(18).bytes(message.value);
|
|
6749
|
-
}
|
|
6750
|
-
for (const v of message.siblings) {
|
|
6751
|
-
writer.uint32(26).bytes(v);
|
|
6752
|
-
}
|
|
6753
|
-
return writer;
|
|
6754
|
-
},
|
|
6755
|
-
decode(input, length) {
|
|
6756
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6757
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6758
|
-
const message = createBaseProofEthereumStorage();
|
|
6759
|
-
while (reader.pos < end) {
|
|
6760
|
-
const tag = reader.uint32();
|
|
6761
|
-
switch (tag >>> 3) {
|
|
6762
|
-
case 1:
|
|
6763
|
-
if (tag !== 10) {
|
|
6764
|
-
break;
|
|
6765
|
-
}
|
|
6766
|
-
message.key = reader.bytes();
|
|
6767
|
-
continue;
|
|
6768
|
-
case 2:
|
|
6769
|
-
if (tag !== 18) {
|
|
6770
|
-
break;
|
|
6771
|
-
}
|
|
6772
|
-
message.value = reader.bytes();
|
|
6773
|
-
continue;
|
|
6774
|
-
case 3:
|
|
6775
|
-
if (tag !== 26) {
|
|
6776
|
-
break;
|
|
6777
|
-
}
|
|
6778
|
-
message.siblings.push(reader.bytes());
|
|
6779
|
-
continue;
|
|
6780
|
-
}
|
|
6781
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6782
|
-
break;
|
|
6783
|
-
}
|
|
6784
|
-
reader.skipType(tag & 7);
|
|
6785
|
-
}
|
|
6786
|
-
return message;
|
|
6787
|
-
},
|
|
6788
|
-
fromJSON(object) {
|
|
6789
|
-
return {
|
|
6790
|
-
key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
|
|
6791
|
-
value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
|
|
6792
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6793
|
-
};
|
|
6794
|
-
},
|
|
6795
|
-
toJSON(message) {
|
|
6796
|
-
const obj = {};
|
|
6797
|
-
if (message.key.length !== 0) {
|
|
6798
|
-
obj.key = base64FromBytes3(message.key);
|
|
6799
|
-
}
|
|
6800
|
-
if (message.value.length !== 0) {
|
|
6801
|
-
obj.value = base64FromBytes3(message.value);
|
|
6802
|
-
}
|
|
6803
|
-
if (message.siblings?.length) {
|
|
6804
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6805
|
-
}
|
|
6806
|
-
return obj;
|
|
6807
|
-
},
|
|
6808
|
-
create(base) {
|
|
6809
|
-
return ProofEthereumStorage.fromPartial(base ?? {});
|
|
6810
|
-
},
|
|
6811
|
-
fromPartial(object) {
|
|
6812
|
-
const message = createBaseProofEthereumStorage();
|
|
6813
|
-
message.key = object.key ?? new Uint8Array(0);
|
|
6814
|
-
message.value = object.value ?? new Uint8Array(0);
|
|
6815
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6816
|
-
return message;
|
|
6817
|
-
}
|
|
6818
|
-
};
|
|
6819
|
-
function createBaseProofEthereumAccount() {
|
|
6820
|
-
return {
|
|
6821
|
-
nonce: new Uint8Array(0),
|
|
6822
|
-
balance: new Uint8Array(0),
|
|
6823
|
-
storageHash: new Uint8Array(0),
|
|
6824
|
-
codeHash: new Uint8Array(0),
|
|
6825
|
-
siblings: []
|
|
6826
|
-
};
|
|
6827
|
-
}
|
|
6828
|
-
var ProofEthereumAccount = {
|
|
6829
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6830
|
-
if (message.nonce.length !== 0) {
|
|
6831
|
-
writer.uint32(10).bytes(message.nonce);
|
|
6832
|
-
}
|
|
6833
|
-
if (message.balance.length !== 0) {
|
|
6834
|
-
writer.uint32(18).bytes(message.balance);
|
|
6835
|
-
}
|
|
6836
|
-
if (message.storageHash.length !== 0) {
|
|
6837
|
-
writer.uint32(26).bytes(message.storageHash);
|
|
6838
|
-
}
|
|
6839
|
-
if (message.codeHash.length !== 0) {
|
|
6840
|
-
writer.uint32(34).bytes(message.codeHash);
|
|
6841
|
-
}
|
|
6842
|
-
for (const v of message.siblings) {
|
|
6843
|
-
writer.uint32(42).bytes(v);
|
|
6844
|
-
}
|
|
6845
|
-
return writer;
|
|
6846
|
-
},
|
|
6847
|
-
decode(input, length) {
|
|
6848
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6849
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6850
|
-
const message = createBaseProofEthereumAccount();
|
|
6851
|
-
while (reader.pos < end) {
|
|
6852
|
-
const tag = reader.uint32();
|
|
6853
|
-
switch (tag >>> 3) {
|
|
6854
|
-
case 1:
|
|
6855
|
-
if (tag !== 10) {
|
|
6856
|
-
break;
|
|
6857
|
-
}
|
|
6858
|
-
message.nonce = reader.bytes();
|
|
6859
|
-
continue;
|
|
6860
|
-
case 2:
|
|
6861
|
-
if (tag !== 18) {
|
|
6862
|
-
break;
|
|
6863
|
-
}
|
|
6864
|
-
message.balance = reader.bytes();
|
|
6865
|
-
continue;
|
|
6866
|
-
case 3:
|
|
6867
|
-
if (tag !== 26) {
|
|
6868
|
-
break;
|
|
6869
|
-
}
|
|
6870
|
-
message.storageHash = reader.bytes();
|
|
6871
|
-
continue;
|
|
6872
|
-
case 4:
|
|
6873
|
-
if (tag !== 34) {
|
|
6874
|
-
break;
|
|
6875
|
-
}
|
|
6876
|
-
message.codeHash = reader.bytes();
|
|
6877
|
-
continue;
|
|
6878
|
-
case 5:
|
|
6879
|
-
if (tag !== 42) {
|
|
6880
|
-
break;
|
|
6881
|
-
}
|
|
6882
|
-
message.siblings.push(reader.bytes());
|
|
6883
|
-
continue;
|
|
6884
|
-
}
|
|
6885
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6886
|
-
break;
|
|
6887
|
-
}
|
|
6888
|
-
reader.skipType(tag & 7);
|
|
6889
|
-
}
|
|
6890
|
-
return message;
|
|
6891
|
-
},
|
|
6892
|
-
fromJSON(object) {
|
|
6893
|
-
return {
|
|
6894
|
-
nonce: isSet8(object.nonce) ? bytesFromBase643(object.nonce) : new Uint8Array(0),
|
|
6895
|
-
balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
|
|
6896
|
-
storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
|
|
6897
|
-
codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
|
|
6898
|
-
siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
|
|
6899
|
-
};
|
|
6900
|
-
},
|
|
6901
|
-
toJSON(message) {
|
|
6902
|
-
const obj = {};
|
|
6903
|
-
if (message.nonce.length !== 0) {
|
|
6904
|
-
obj.nonce = base64FromBytes3(message.nonce);
|
|
6905
|
-
}
|
|
6906
|
-
if (message.balance.length !== 0) {
|
|
6907
|
-
obj.balance = base64FromBytes3(message.balance);
|
|
6908
|
-
}
|
|
6909
|
-
if (message.storageHash.length !== 0) {
|
|
6910
|
-
obj.storageHash = base64FromBytes3(message.storageHash);
|
|
6911
|
-
}
|
|
6912
|
-
if (message.codeHash.length !== 0) {
|
|
6913
|
-
obj.codeHash = base64FromBytes3(message.codeHash);
|
|
6914
|
-
}
|
|
6915
|
-
if (message.siblings?.length) {
|
|
6916
|
-
obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
|
|
6917
|
-
}
|
|
6918
|
-
return obj;
|
|
6919
|
-
},
|
|
6920
|
-
create(base) {
|
|
6921
|
-
return ProofEthereumAccount.fromPartial(base ?? {});
|
|
6922
|
-
},
|
|
6923
|
-
fromPartial(object) {
|
|
6924
|
-
const message = createBaseProofEthereumAccount();
|
|
6925
|
-
message.nonce = object.nonce ?? new Uint8Array(0);
|
|
6926
|
-
message.balance = object.balance ?? new Uint8Array(0);
|
|
6927
|
-
message.storageHash = object.storageHash ?? new Uint8Array(0);
|
|
6928
|
-
message.codeHash = object.codeHash ?? new Uint8Array(0);
|
|
6929
|
-
message.siblings = object.siblings?.map((e) => e) || [];
|
|
6930
|
-
return message;
|
|
6931
|
-
}
|
|
6932
|
-
};
|
|
6933
|
-
function createBaseProofMinime() {
|
|
6934
|
-
return { proofPrevBlock: void 0, proofNextBlock: void 0 };
|
|
6935
|
-
}
|
|
6936
|
-
var ProofMinime = {
|
|
6937
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
6938
|
-
if (message.proofPrevBlock !== void 0) {
|
|
6939
|
-
ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
|
|
6940
|
-
}
|
|
6941
|
-
if (message.proofNextBlock !== void 0) {
|
|
6942
|
-
ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
|
|
6943
|
-
}
|
|
6944
|
-
return writer;
|
|
6945
|
-
},
|
|
6946
|
-
decode(input, length) {
|
|
6947
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
6948
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6949
|
-
const message = createBaseProofMinime();
|
|
6950
|
-
while (reader.pos < end) {
|
|
6951
|
-
const tag = reader.uint32();
|
|
6952
|
-
switch (tag >>> 3) {
|
|
6953
|
-
case 1:
|
|
6954
|
-
if (tag !== 10) {
|
|
6955
|
-
break;
|
|
6956
|
-
}
|
|
6957
|
-
message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6958
|
-
continue;
|
|
6959
|
-
case 2:
|
|
6960
|
-
if (tag !== 18) {
|
|
6961
|
-
break;
|
|
6962
|
-
}
|
|
6963
|
-
message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
|
|
6964
|
-
continue;
|
|
6965
|
-
}
|
|
6966
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6967
|
-
break;
|
|
6968
|
-
}
|
|
6969
|
-
reader.skipType(tag & 7);
|
|
6970
|
-
}
|
|
6971
|
-
return message;
|
|
6972
|
-
},
|
|
6973
|
-
fromJSON(object) {
|
|
6974
|
-
return {
|
|
6975
|
-
proofPrevBlock: isSet8(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
|
|
6976
|
-
proofNextBlock: isSet8(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
|
|
6977
|
-
};
|
|
6978
|
-
},
|
|
6979
|
-
toJSON(message) {
|
|
6980
|
-
const obj = {};
|
|
6981
|
-
if (message.proofPrevBlock !== void 0) {
|
|
6982
|
-
obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
|
|
6983
|
-
}
|
|
6984
|
-
if (message.proofNextBlock !== void 0) {
|
|
6985
|
-
obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
|
|
6986
|
-
}
|
|
6987
|
-
return obj;
|
|
6988
|
-
},
|
|
6989
|
-
create(base) {
|
|
6990
|
-
return ProofMinime.fromPartial(base ?? {});
|
|
6991
|
-
},
|
|
6992
|
-
fromPartial(object) {
|
|
6993
|
-
const message = createBaseProofMinime();
|
|
6994
|
-
message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
|
|
6995
|
-
message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
|
|
6996
6621
|
return message;
|
|
6997
6622
|
}
|
|
6998
6623
|
};
|
|
@@ -7378,86 +7003,6 @@ var ProofZkSNARK = {
|
|
|
7378
7003
|
return message;
|
|
7379
7004
|
}
|
|
7380
7005
|
};
|
|
7381
|
-
function createBaseProofFarcasterFrame() {
|
|
7382
|
-
return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
|
|
7383
|
-
}
|
|
7384
|
-
var ProofFarcasterFrame = {
|
|
7385
|
-
encode(message, writer = import_minimal8.default.Writer.create()) {
|
|
7386
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7387
|
-
writer.uint32(10).bytes(message.signedFrameMessageBody);
|
|
7388
|
-
}
|
|
7389
|
-
if (message.censusProof !== void 0) {
|
|
7390
|
-
ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
|
|
7391
|
-
}
|
|
7392
|
-
if (message.publicKey.length !== 0) {
|
|
7393
|
-
writer.uint32(26).bytes(message.publicKey);
|
|
7394
|
-
}
|
|
7395
|
-
return writer;
|
|
7396
|
-
},
|
|
7397
|
-
decode(input, length) {
|
|
7398
|
-
const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
|
|
7399
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
7400
|
-
const message = createBaseProofFarcasterFrame();
|
|
7401
|
-
while (reader.pos < end) {
|
|
7402
|
-
const tag = reader.uint32();
|
|
7403
|
-
switch (tag >>> 3) {
|
|
7404
|
-
case 1:
|
|
7405
|
-
if (tag !== 10) {
|
|
7406
|
-
break;
|
|
7407
|
-
}
|
|
7408
|
-
message.signedFrameMessageBody = reader.bytes();
|
|
7409
|
-
continue;
|
|
7410
|
-
case 2:
|
|
7411
|
-
if (tag !== 18) {
|
|
7412
|
-
break;
|
|
7413
|
-
}
|
|
7414
|
-
message.censusProof = ProofArbo.decode(reader, reader.uint32());
|
|
7415
|
-
continue;
|
|
7416
|
-
case 3:
|
|
7417
|
-
if (tag !== 26) {
|
|
7418
|
-
break;
|
|
7419
|
-
}
|
|
7420
|
-
message.publicKey = reader.bytes();
|
|
7421
|
-
continue;
|
|
7422
|
-
}
|
|
7423
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7424
|
-
break;
|
|
7425
|
-
}
|
|
7426
|
-
reader.skipType(tag & 7);
|
|
7427
|
-
}
|
|
7428
|
-
return message;
|
|
7429
|
-
},
|
|
7430
|
-
fromJSON(object) {
|
|
7431
|
-
return {
|
|
7432
|
-
signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
|
|
7433
|
-
censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
|
|
7434
|
-
publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
|
|
7435
|
-
};
|
|
7436
|
-
},
|
|
7437
|
-
toJSON(message) {
|
|
7438
|
-
const obj = {};
|
|
7439
|
-
if (message.signedFrameMessageBody.length !== 0) {
|
|
7440
|
-
obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
|
|
7441
|
-
}
|
|
7442
|
-
if (message.censusProof !== void 0) {
|
|
7443
|
-
obj.censusProof = ProofArbo.toJSON(message.censusProof);
|
|
7444
|
-
}
|
|
7445
|
-
if (message.publicKey.length !== 0) {
|
|
7446
|
-
obj.publicKey = base64FromBytes3(message.publicKey);
|
|
7447
|
-
}
|
|
7448
|
-
return obj;
|
|
7449
|
-
},
|
|
7450
|
-
create(base) {
|
|
7451
|
-
return ProofFarcasterFrame.fromPartial(base ?? {});
|
|
7452
|
-
},
|
|
7453
|
-
fromPartial(object) {
|
|
7454
|
-
const message = createBaseProofFarcasterFrame();
|
|
7455
|
-
message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
|
|
7456
|
-
message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
|
|
7457
|
-
message.publicKey = object.publicKey ?? new Uint8Array(0);
|
|
7458
|
-
return message;
|
|
7459
|
-
}
|
|
7460
|
-
};
|
|
7461
7006
|
function createBaseAccount2() {
|
|
7462
7007
|
return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
|
|
7463
7008
|
}
|
|
@@ -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;
|
|
@@ -1106,9 +1106,27 @@ var require_reader = __commonJS({
|
|
|
1106
1106
|
Reader.create = create();
|
|
1107
1107
|
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */
|
|
1108
1108
|
util.Array.prototype.slice;
|
|
1109
|
+
function readVarint32NearEnd(reader) {
|
|
1110
|
+
var value = 0;
|
|
1111
|
+
for (var i = 0; i < 4; ++i) {
|
|
1112
|
+
if (reader.pos >= reader.len)
|
|
1113
|
+
throw indexOutOfRange(reader);
|
|
1114
|
+
var b = reader.buf[reader.pos++];
|
|
1115
|
+
value = (value | (b & 127) << i * 7) >>> 0;
|
|
1116
|
+
if (b < 128)
|
|
1117
|
+
return value;
|
|
1118
|
+
}
|
|
1119
|
+
throw indexOutOfRange(reader);
|
|
1120
|
+
}
|
|
1109
1121
|
Reader.prototype.uint32 = function read_uint32_setup() {
|
|
1110
1122
|
var value = 4294967295;
|
|
1111
1123
|
return function read_uint32() {
|
|
1124
|
+
if (this.len - this.pos < 5) {
|
|
1125
|
+
if (this.pos >= this.len)
|
|
1126
|
+
throw indexOutOfRange(this);
|
|
1127
|
+
if (this.buf[this.pos] >= 128)
|
|
1128
|
+
return readVarint32NearEnd(this);
|
|
1129
|
+
}
|
|
1112
1130
|
value = (this.buf[this.pos] & 127) >>> 0;
|
|
1113
1131
|
if (this.buf[this.pos++] < 128)
|
|
1114
1132
|
return value;
|
|
@@ -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';
|