@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.
@@ -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-1aac8cbb.js';
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
@@ -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;
@@ -5743,10 +5761,6 @@ __export(vochain_exports, {
5743
5761
  ProofArbo_Type: () => ProofArbo_Type,
5744
5762
  ProofCA: () => ProofCA,
5745
5763
  ProofCA_Type: () => ProofCA_Type,
5746
- ProofEthereumAccount: () => ProofEthereumAccount,
5747
- ProofEthereumStorage: () => ProofEthereumStorage,
5748
- ProofFarcasterFrame: () => ProofFarcasterFrame,
5749
- ProofMinime: () => ProofMinime,
5750
5764
  ProofZkSNARK: () => ProofZkSNARK,
5751
5765
  QuestionResult: () => QuestionResult,
5752
5766
  RegisterKeyTx: () => RegisterKeyTx,
@@ -6137,12 +6151,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
6137
6151
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE"] = 1] = "OFF_CHAIN_TREE";
6138
6152
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_TREE_WEIGHTED"] = 2] = "OFF_CHAIN_TREE_WEIGHTED";
6139
6153
  CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA"] = 3] = "OFF_CHAIN_CA";
6140
- CensusOrigin2[CensusOrigin2["ERC20"] = 11] = "ERC20";
6141
- CensusOrigin2[CensusOrigin2["ERC721"] = 12] = "ERC721";
6142
- CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
6143
- CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
6144
- CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
6145
- CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
6154
+ CensusOrigin2[CensusOrigin2["OFF_CHAIN_CA_V2"] = 4] = "OFF_CHAIN_CA_V2";
6146
6155
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6147
6156
  return CensusOrigin2;
6148
6157
  })(CensusOrigin || {});
@@ -6160,24 +6169,9 @@ function censusOriginFromJSON(object) {
6160
6169
  case 3:
6161
6170
  case "OFF_CHAIN_CA":
6162
6171
  return 3 /* OFF_CHAIN_CA */;
6163
- case 11:
6164
- case "ERC20":
6165
- return 11 /* ERC20 */;
6166
- case 12:
6167
- case "ERC721":
6168
- return 12 /* ERC721 */;
6169
- case 13:
6170
- case "ERC1155":
6171
- return 13 /* ERC1155 */;
6172
- case 14:
6173
- case "ERC777":
6174
- return 14 /* ERC777 */;
6175
- case 15:
6176
- case "MINI_ME":
6177
- return 15 /* MINI_ME */;
6178
- case 16:
6179
- case "FARCASTER_FRAME":
6180
- return 16 /* FARCASTER_FRAME */;
6172
+ case 4:
6173
+ case "OFF_CHAIN_CA_V2":
6174
+ return 4 /* OFF_CHAIN_CA_V2 */;
6181
6175
  case -1:
6182
6176
  case "UNRECOGNIZED":
6183
6177
  default:
@@ -6194,18 +6188,8 @@ function censusOriginToJSON(object) {
6194
6188
  return "OFF_CHAIN_TREE_WEIGHTED";
6195
6189
  case 3 /* OFF_CHAIN_CA */:
6196
6190
  return "OFF_CHAIN_CA";
6197
- case 11 /* ERC20 */:
6198
- return "ERC20";
6199
- case 12 /* ERC721 */:
6200
- return "ERC721";
6201
- case 13 /* ERC1155 */:
6202
- return "ERC1155";
6203
- case 14 /* ERC777 */:
6204
- return "ERC777";
6205
- case 15 /* MINI_ME */:
6206
- return "MINI_ME";
6207
- case 16 /* FARCASTER_FRAME */:
6208
- return "FARCASTER_FRAME";
6191
+ case 4 /* OFF_CHAIN_CA_V2 */:
6192
+ return "OFF_CHAIN_CA_V2";
6209
6193
  case -1 /* UNRECOGNIZED */:
6210
6194
  default:
6211
6195
  return "UNRECOGNIZED";
@@ -6215,10 +6199,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6215
6199
  Census_Type2[Census_Type2["UNKNOWN"] = 0] = "UNKNOWN";
6216
6200
  Census_Type2[Census_Type2["ARBO_BLAKE2B"] = 1] = "ARBO_BLAKE2B";
6217
6201
  Census_Type2[Census_Type2["ARBO_POSEIDON"] = 2] = "ARBO_POSEIDON";
6218
- Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6219
- Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6220
6202
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6221
- Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
6222
6203
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6223
6204
  return Census_Type2;
6224
6205
  })(Census_Type || {});
@@ -6233,18 +6214,9 @@ function census_TypeFromJSON(object) {
6233
6214
  case 2:
6234
6215
  case "ARBO_POSEIDON":
6235
6216
  return 2 /* ARBO_POSEIDON */;
6236
- case 3:
6237
- case "ETHEREUMSTORAGE":
6238
- return 3 /* ETHEREUMSTORAGE */;
6239
- case 4:
6240
- case "ETHEREUMACCOUNT":
6241
- return 4 /* ETHEREUMACCOUNT */;
6242
6217
  case 5:
6243
6218
  case "CA":
6244
6219
  return 5 /* CA */;
6245
- case 6:
6246
- case "FARCASTER_FRAME":
6247
- return 6 /* FARCASTER_FRAME */;
6248
6220
  case -1:
6249
6221
  case "UNRECOGNIZED":
6250
6222
  default:
@@ -6259,14 +6231,8 @@ function census_TypeToJSON(object) {
6259
6231
  return "ARBO_BLAKE2B";
6260
6232
  case 2 /* ARBO_POSEIDON */:
6261
6233
  return "ARBO_POSEIDON";
6262
- case 3 /* ETHEREUMSTORAGE */:
6263
- return "ETHEREUMSTORAGE";
6264
- case 4 /* ETHEREUMACCOUNT */:
6265
- return "ETHEREUMACCOUNT";
6266
6234
  case 5 /* CA */:
6267
6235
  return "CA";
6268
- case 6 /* FARCASTER_FRAME */:
6269
- return "FARCASTER_FRAME";
6270
6236
  case -1 /* UNRECOGNIZED */:
6271
6237
  default:
6272
6238
  return "UNRECOGNIZED";
@@ -6579,12 +6545,6 @@ function createBaseProof() {
6579
6545
  var Proof = {
6580
6546
  encode(message, writer = import_minimal8.default.Writer.create()) {
6581
6547
  switch (message.payload?.$case) {
6582
- case "ethereumStorage":
6583
- ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
6584
- break;
6585
- case "ethereumAccount":
6586
- ProofEthereumAccount.encode(message.payload.ethereumAccount, writer.uint32(34).fork()).ldelim();
6587
- break;
6588
6548
  case "ca":
6589
6549
  ProofCA.encode(message.payload.ca, writer.uint32(42).fork()).ldelim();
6590
6550
  break;
@@ -6594,12 +6554,6 @@ var Proof = {
6594
6554
  case "zkSnark":
6595
6555
  ProofZkSNARK.encode(message.payload.zkSnark, writer.uint32(58).fork()).ldelim();
6596
6556
  break;
6597
- case "minimeStorage":
6598
- ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
6599
- break;
6600
- case "farcasterFrame":
6601
- ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
6602
- break;
6603
6557
  }
6604
6558
  return writer;
6605
6559
  },
@@ -6610,24 +6564,6 @@ var Proof = {
6610
6564
  while (reader.pos < end) {
6611
6565
  const tag = reader.uint32();
6612
6566
  switch (tag >>> 3) {
6613
- case 3:
6614
- if (tag !== 26) {
6615
- break;
6616
- }
6617
- message.payload = {
6618
- $case: "ethereumStorage",
6619
- ethereumStorage: ProofEthereumStorage.decode(reader, reader.uint32())
6620
- };
6621
- continue;
6622
- case 4:
6623
- if (tag !== 34) {
6624
- break;
6625
- }
6626
- message.payload = {
6627
- $case: "ethereumAccount",
6628
- ethereumAccount: ProofEthereumAccount.decode(reader, reader.uint32())
6629
- };
6630
- continue;
6631
6567
  case 5:
6632
6568
  if (tag !== 42) {
6633
6569
  break;
@@ -6646,21 +6582,6 @@ var Proof = {
6646
6582
  }
6647
6583
  message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.decode(reader, reader.uint32()) };
6648
6584
  continue;
6649
- case 8:
6650
- if (tag !== 66) {
6651
- break;
6652
- }
6653
- message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
6654
- continue;
6655
- case 9:
6656
- if (tag !== 74) {
6657
- break;
6658
- }
6659
- message.payload = {
6660
- $case: "farcasterFrame",
6661
- farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
6662
- };
6663
- continue;
6664
6585
  }
6665
6586
  if ((tag & 7) === 4 || tag === 0) {
6666
6587
  break;
@@ -6671,17 +6592,11 @@ var Proof = {
6671
6592
  },
6672
6593
  fromJSON(object) {
6673
6594
  return {
6674
- payload: isSet8(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet8(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : 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) } : isSet8(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : isSet8(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
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
6675
6596
  };
6676
6597
  },
6677
6598
  toJSON(message) {
6678
6599
  const obj = {};
6679
- if (message.payload?.$case === "ethereumStorage") {
6680
- obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
6681
- }
6682
- if (message.payload?.$case === "ethereumAccount") {
6683
- obj.ethereumAccount = ProofEthereumAccount.toJSON(message.payload.ethereumAccount);
6684
- }
6685
6600
  if (message.payload?.$case === "ca") {
6686
6601
  obj.ca = ProofCA.toJSON(message.payload.ca);
6687
6602
  }
@@ -6691,12 +6606,6 @@ var Proof = {
6691
6606
  if (message.payload?.$case === "zkSnark") {
6692
6607
  obj.zkSnark = ProofZkSNARK.toJSON(message.payload.zkSnark);
6693
6608
  }
6694
- if (message.payload?.$case === "minimeStorage") {
6695
- obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
6696
- }
6697
- if (message.payload?.$case === "farcasterFrame") {
6698
- obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
6699
- }
6700
6609
  return obj;
6701
6610
  },
6702
6611
  create(base) {
@@ -6704,18 +6613,6 @@ var Proof = {
6704
6613
  },
6705
6614
  fromPartial(object) {
6706
6615
  const message = createBaseProof();
6707
- if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
6708
- message.payload = {
6709
- $case: "ethereumStorage",
6710
- ethereumStorage: ProofEthereumStorage.fromPartial(object.payload.ethereumStorage)
6711
- };
6712
- }
6713
- if (object.payload?.$case === "ethereumAccount" && object.payload?.ethereumAccount !== void 0 && object.payload?.ethereumAccount !== null) {
6714
- message.payload = {
6715
- $case: "ethereumAccount",
6716
- ethereumAccount: ProofEthereumAccount.fromPartial(object.payload.ethereumAccount)
6717
- };
6718
- }
6719
6616
  if (object.payload?.$case === "ca" && object.payload?.ca !== void 0 && object.payload?.ca !== null) {
6720
6617
  message.payload = { $case: "ca", ca: ProofCA.fromPartial(object.payload.ca) };
6721
6618
  }
@@ -6725,278 +6622,6 @@ var Proof = {
6725
6622
  if (object.payload?.$case === "zkSnark" && object.payload?.zkSnark !== void 0 && object.payload?.zkSnark !== null) {
6726
6623
  message.payload = { $case: "zkSnark", zkSnark: ProofZkSNARK.fromPartial(object.payload.zkSnark) };
6727
6624
  }
6728
- if (object.payload?.$case === "minimeStorage" && object.payload?.minimeStorage !== void 0 && object.payload?.minimeStorage !== null) {
6729
- message.payload = {
6730
- $case: "minimeStorage",
6731
- minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
6732
- };
6733
- }
6734
- if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
6735
- message.payload = {
6736
- $case: "farcasterFrame",
6737
- farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
6738
- };
6739
- }
6740
- return message;
6741
- }
6742
- };
6743
- function createBaseProofEthereumStorage() {
6744
- return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
6745
- }
6746
- var ProofEthereumStorage = {
6747
- encode(message, writer = import_minimal8.default.Writer.create()) {
6748
- if (message.key.length !== 0) {
6749
- writer.uint32(10).bytes(message.key);
6750
- }
6751
- if (message.value.length !== 0) {
6752
- writer.uint32(18).bytes(message.value);
6753
- }
6754
- for (const v of message.siblings) {
6755
- writer.uint32(26).bytes(v);
6756
- }
6757
- return writer;
6758
- },
6759
- decode(input, length) {
6760
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
6761
- let end = length === void 0 ? reader.len : reader.pos + length;
6762
- const message = createBaseProofEthereumStorage();
6763
- while (reader.pos < end) {
6764
- const tag = reader.uint32();
6765
- switch (tag >>> 3) {
6766
- case 1:
6767
- if (tag !== 10) {
6768
- break;
6769
- }
6770
- message.key = reader.bytes();
6771
- continue;
6772
- case 2:
6773
- if (tag !== 18) {
6774
- break;
6775
- }
6776
- message.value = reader.bytes();
6777
- continue;
6778
- case 3:
6779
- if (tag !== 26) {
6780
- break;
6781
- }
6782
- message.siblings.push(reader.bytes());
6783
- continue;
6784
- }
6785
- if ((tag & 7) === 4 || tag === 0) {
6786
- break;
6787
- }
6788
- reader.skipType(tag & 7);
6789
- }
6790
- return message;
6791
- },
6792
- fromJSON(object) {
6793
- return {
6794
- key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
6795
- value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
6796
- siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6797
- };
6798
- },
6799
- toJSON(message) {
6800
- const obj = {};
6801
- if (message.key.length !== 0) {
6802
- obj.key = base64FromBytes3(message.key);
6803
- }
6804
- if (message.value.length !== 0) {
6805
- obj.value = base64FromBytes3(message.value);
6806
- }
6807
- if (message.siblings?.length) {
6808
- obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
6809
- }
6810
- return obj;
6811
- },
6812
- create(base) {
6813
- return ProofEthereumStorage.fromPartial(base ?? {});
6814
- },
6815
- fromPartial(object) {
6816
- const message = createBaseProofEthereumStorage();
6817
- message.key = object.key ?? new Uint8Array(0);
6818
- message.value = object.value ?? new Uint8Array(0);
6819
- message.siblings = object.siblings?.map((e) => e) || [];
6820
- return message;
6821
- }
6822
- };
6823
- function createBaseProofEthereumAccount() {
6824
- return {
6825
- nonce: new Uint8Array(0),
6826
- balance: new Uint8Array(0),
6827
- storageHash: new Uint8Array(0),
6828
- codeHash: new Uint8Array(0),
6829
- siblings: []
6830
- };
6831
- }
6832
- var ProofEthereumAccount = {
6833
- encode(message, writer = import_minimal8.default.Writer.create()) {
6834
- if (message.nonce.length !== 0) {
6835
- writer.uint32(10).bytes(message.nonce);
6836
- }
6837
- if (message.balance.length !== 0) {
6838
- writer.uint32(18).bytes(message.balance);
6839
- }
6840
- if (message.storageHash.length !== 0) {
6841
- writer.uint32(26).bytes(message.storageHash);
6842
- }
6843
- if (message.codeHash.length !== 0) {
6844
- writer.uint32(34).bytes(message.codeHash);
6845
- }
6846
- for (const v of message.siblings) {
6847
- writer.uint32(42).bytes(v);
6848
- }
6849
- return writer;
6850
- },
6851
- decode(input, length) {
6852
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
6853
- let end = length === void 0 ? reader.len : reader.pos + length;
6854
- const message = createBaseProofEthereumAccount();
6855
- while (reader.pos < end) {
6856
- const tag = reader.uint32();
6857
- switch (tag >>> 3) {
6858
- case 1:
6859
- if (tag !== 10) {
6860
- break;
6861
- }
6862
- message.nonce = reader.bytes();
6863
- continue;
6864
- case 2:
6865
- if (tag !== 18) {
6866
- break;
6867
- }
6868
- message.balance = reader.bytes();
6869
- continue;
6870
- case 3:
6871
- if (tag !== 26) {
6872
- break;
6873
- }
6874
- message.storageHash = reader.bytes();
6875
- continue;
6876
- case 4:
6877
- if (tag !== 34) {
6878
- break;
6879
- }
6880
- message.codeHash = reader.bytes();
6881
- continue;
6882
- case 5:
6883
- if (tag !== 42) {
6884
- break;
6885
- }
6886
- message.siblings.push(reader.bytes());
6887
- continue;
6888
- }
6889
- if ((tag & 7) === 4 || tag === 0) {
6890
- break;
6891
- }
6892
- reader.skipType(tag & 7);
6893
- }
6894
- return message;
6895
- },
6896
- fromJSON(object) {
6897
- return {
6898
- nonce: isSet8(object.nonce) ? bytesFromBase643(object.nonce) : new Uint8Array(0),
6899
- balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
6900
- storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
6901
- codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
6902
- siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6903
- };
6904
- },
6905
- toJSON(message) {
6906
- const obj = {};
6907
- if (message.nonce.length !== 0) {
6908
- obj.nonce = base64FromBytes3(message.nonce);
6909
- }
6910
- if (message.balance.length !== 0) {
6911
- obj.balance = base64FromBytes3(message.balance);
6912
- }
6913
- if (message.storageHash.length !== 0) {
6914
- obj.storageHash = base64FromBytes3(message.storageHash);
6915
- }
6916
- if (message.codeHash.length !== 0) {
6917
- obj.codeHash = base64FromBytes3(message.codeHash);
6918
- }
6919
- if (message.siblings?.length) {
6920
- obj.siblings = message.siblings.map((e) => base64FromBytes3(e));
6921
- }
6922
- return obj;
6923
- },
6924
- create(base) {
6925
- return ProofEthereumAccount.fromPartial(base ?? {});
6926
- },
6927
- fromPartial(object) {
6928
- const message = createBaseProofEthereumAccount();
6929
- message.nonce = object.nonce ?? new Uint8Array(0);
6930
- message.balance = object.balance ?? new Uint8Array(0);
6931
- message.storageHash = object.storageHash ?? new Uint8Array(0);
6932
- message.codeHash = object.codeHash ?? new Uint8Array(0);
6933
- message.siblings = object.siblings?.map((e) => e) || [];
6934
- return message;
6935
- }
6936
- };
6937
- function createBaseProofMinime() {
6938
- return { proofPrevBlock: void 0, proofNextBlock: void 0 };
6939
- }
6940
- var ProofMinime = {
6941
- encode(message, writer = import_minimal8.default.Writer.create()) {
6942
- if (message.proofPrevBlock !== void 0) {
6943
- ProofEthereumStorage.encode(message.proofPrevBlock, writer.uint32(10).fork()).ldelim();
6944
- }
6945
- if (message.proofNextBlock !== void 0) {
6946
- ProofEthereumStorage.encode(message.proofNextBlock, writer.uint32(18).fork()).ldelim();
6947
- }
6948
- return writer;
6949
- },
6950
- decode(input, length) {
6951
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
6952
- let end = length === void 0 ? reader.len : reader.pos + length;
6953
- const message = createBaseProofMinime();
6954
- while (reader.pos < end) {
6955
- const tag = reader.uint32();
6956
- switch (tag >>> 3) {
6957
- case 1:
6958
- if (tag !== 10) {
6959
- break;
6960
- }
6961
- message.proofPrevBlock = ProofEthereumStorage.decode(reader, reader.uint32());
6962
- continue;
6963
- case 2:
6964
- if (tag !== 18) {
6965
- break;
6966
- }
6967
- message.proofNextBlock = ProofEthereumStorage.decode(reader, reader.uint32());
6968
- continue;
6969
- }
6970
- if ((tag & 7) === 4 || tag === 0) {
6971
- break;
6972
- }
6973
- reader.skipType(tag & 7);
6974
- }
6975
- return message;
6976
- },
6977
- fromJSON(object) {
6978
- return {
6979
- proofPrevBlock: isSet8(object.proofPrevBlock) ? ProofEthereumStorage.fromJSON(object.proofPrevBlock) : void 0,
6980
- proofNextBlock: isSet8(object.proofNextBlock) ? ProofEthereumStorage.fromJSON(object.proofNextBlock) : void 0
6981
- };
6982
- },
6983
- toJSON(message) {
6984
- const obj = {};
6985
- if (message.proofPrevBlock !== void 0) {
6986
- obj.proofPrevBlock = ProofEthereumStorage.toJSON(message.proofPrevBlock);
6987
- }
6988
- if (message.proofNextBlock !== void 0) {
6989
- obj.proofNextBlock = ProofEthereumStorage.toJSON(message.proofNextBlock);
6990
- }
6991
- return obj;
6992
- },
6993
- create(base) {
6994
- return ProofMinime.fromPartial(base ?? {});
6995
- },
6996
- fromPartial(object) {
6997
- const message = createBaseProofMinime();
6998
- message.proofPrevBlock = object.proofPrevBlock !== void 0 && object.proofPrevBlock !== null ? ProofEthereumStorage.fromPartial(object.proofPrevBlock) : void 0;
6999
- message.proofNextBlock = object.proofNextBlock !== void 0 && object.proofNextBlock !== null ? ProofEthereumStorage.fromPartial(object.proofNextBlock) : void 0;
7000
6625
  return message;
7001
6626
  }
7002
6627
  };
@@ -7382,86 +7007,6 @@ var ProofZkSNARK = {
7382
7007
  return message;
7383
7008
  }
7384
7009
  };
7385
- function createBaseProofFarcasterFrame() {
7386
- return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
7387
- }
7388
- var ProofFarcasterFrame = {
7389
- encode(message, writer = import_minimal8.default.Writer.create()) {
7390
- if (message.signedFrameMessageBody.length !== 0) {
7391
- writer.uint32(10).bytes(message.signedFrameMessageBody);
7392
- }
7393
- if (message.censusProof !== void 0) {
7394
- ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
7395
- }
7396
- if (message.publicKey.length !== 0) {
7397
- writer.uint32(26).bytes(message.publicKey);
7398
- }
7399
- return writer;
7400
- },
7401
- decode(input, length) {
7402
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
7403
- let end = length === void 0 ? reader.len : reader.pos + length;
7404
- const message = createBaseProofFarcasterFrame();
7405
- while (reader.pos < end) {
7406
- const tag = reader.uint32();
7407
- switch (tag >>> 3) {
7408
- case 1:
7409
- if (tag !== 10) {
7410
- break;
7411
- }
7412
- message.signedFrameMessageBody = reader.bytes();
7413
- continue;
7414
- case 2:
7415
- if (tag !== 18) {
7416
- break;
7417
- }
7418
- message.censusProof = ProofArbo.decode(reader, reader.uint32());
7419
- continue;
7420
- case 3:
7421
- if (tag !== 26) {
7422
- break;
7423
- }
7424
- message.publicKey = reader.bytes();
7425
- continue;
7426
- }
7427
- if ((tag & 7) === 4 || tag === 0) {
7428
- break;
7429
- }
7430
- reader.skipType(tag & 7);
7431
- }
7432
- return message;
7433
- },
7434
- fromJSON(object) {
7435
- return {
7436
- signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
7437
- censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
7438
- publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
7439
- };
7440
- },
7441
- toJSON(message) {
7442
- const obj = {};
7443
- if (message.signedFrameMessageBody.length !== 0) {
7444
- obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
7445
- }
7446
- if (message.censusProof !== void 0) {
7447
- obj.censusProof = ProofArbo.toJSON(message.censusProof);
7448
- }
7449
- if (message.publicKey.length !== 0) {
7450
- obj.publicKey = base64FromBytes3(message.publicKey);
7451
- }
7452
- return obj;
7453
- },
7454
- create(base) {
7455
- return ProofFarcasterFrame.fromPartial(base ?? {});
7456
- },
7457
- fromPartial(object) {
7458
- const message = createBaseProofFarcasterFrame();
7459
- message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
7460
- message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
7461
- message.publicKey = object.publicKey ?? new Uint8Array(0);
7462
- return message;
7463
- }
7464
- };
7465
7010
  function createBaseAccount2() {
7466
7011
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
7467
7012
  }