@vocdoni/proto 1.15.5 → 1.15.6

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-cbd70a7b.js';
3
+ export { i as Vochain } from './index-51ead84f.js';
4
4
  import 'protobufjs/minimal';
5
5
  import './entity-e8dfcd83.js';
package/build/js/index.js CHANGED
@@ -5717,6 +5717,7 @@ __export(vochain_exports, {
5717
5717
  ProofCA_Type: () => ProofCA_Type,
5718
5718
  ProofEthereumAccount: () => ProofEthereumAccount,
5719
5719
  ProofEthereumStorage: () => ProofEthereumStorage,
5720
+ ProofFarcasterFrame: () => ProofFarcasterFrame,
5720
5721
  ProofMinime: () => ProofMinime,
5721
5722
  ProofZkSNARK: () => ProofZkSNARK,
5722
5723
  QuestionResult: () => QuestionResult,
@@ -6113,6 +6114,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
6113
6114
  CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
6114
6115
  CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
6115
6116
  CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
6117
+ CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
6116
6118
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6117
6119
  return CensusOrigin2;
6118
6120
  })(CensusOrigin || {});
@@ -6145,6 +6147,9 @@ function censusOriginFromJSON(object) {
6145
6147
  case 15:
6146
6148
  case "MINI_ME":
6147
6149
  return 15 /* MINI_ME */;
6150
+ case 16:
6151
+ case "FARCASTER_FRAME":
6152
+ return 16 /* FARCASTER_FRAME */;
6148
6153
  case -1:
6149
6154
  case "UNRECOGNIZED":
6150
6155
  default:
@@ -6171,6 +6176,8 @@ function censusOriginToJSON(object) {
6171
6176
  return "ERC777";
6172
6177
  case 15 /* MINI_ME */:
6173
6178
  return "MINI_ME";
6179
+ case 16 /* FARCASTER_FRAME */:
6180
+ return "FARCASTER_FRAME";
6174
6181
  case -1 /* UNRECOGNIZED */:
6175
6182
  default:
6176
6183
  return "UNRECOGNIZED";
@@ -6183,6 +6190,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6183
6190
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6184
6191
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6185
6192
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6193
+ Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
6186
6194
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6187
6195
  return Census_Type2;
6188
6196
  })(Census_Type || {});
@@ -6206,6 +6214,9 @@ function census_TypeFromJSON(object) {
6206
6214
  case 5:
6207
6215
  case "CA":
6208
6216
  return 5 /* CA */;
6217
+ case 6:
6218
+ case "FARCASTER_FRAME":
6219
+ return 6 /* FARCASTER_FRAME */;
6209
6220
  case -1:
6210
6221
  case "UNRECOGNIZED":
6211
6222
  default:
@@ -6226,6 +6237,8 @@ function census_TypeToJSON(object) {
6226
6237
  return "ETHEREUMACCOUNT";
6227
6238
  case 5 /* CA */:
6228
6239
  return "CA";
6240
+ case 6 /* FARCASTER_FRAME */:
6241
+ return "FARCASTER_FRAME";
6229
6242
  case -1 /* UNRECOGNIZED */:
6230
6243
  default:
6231
6244
  return "UNRECOGNIZED";
@@ -6541,6 +6554,9 @@ var Proof = {
6541
6554
  case "minimeStorage":
6542
6555
  ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
6543
6556
  break;
6557
+ case "farcasterFrame":
6558
+ ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
6559
+ break;
6544
6560
  }
6545
6561
  return writer;
6546
6562
  },
@@ -6593,6 +6609,15 @@ var Proof = {
6593
6609
  }
6594
6610
  message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
6595
6611
  continue;
6612
+ case 9:
6613
+ if (tag !== 74) {
6614
+ break;
6615
+ }
6616
+ message.payload = {
6617
+ $case: "farcasterFrame",
6618
+ farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
6619
+ };
6620
+ continue;
6596
6621
  }
6597
6622
  if ((tag & 7) === 4 || tag === 0) {
6598
6623
  break;
@@ -6603,7 +6628,7 @@ var Proof = {
6603
6628
  },
6604
6629
  fromJSON(object) {
6605
6630
  return {
6606
- 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) } : void 0
6631
+ 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
6607
6632
  };
6608
6633
  },
6609
6634
  toJSON(message) {
@@ -6626,6 +6651,9 @@ var Proof = {
6626
6651
  if (message.payload?.$case === "minimeStorage") {
6627
6652
  obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
6628
6653
  }
6654
+ if (message.payload?.$case === "farcasterFrame") {
6655
+ obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
6656
+ }
6629
6657
  return obj;
6630
6658
  },
6631
6659
  create(base) {
@@ -6660,6 +6688,12 @@ var Proof = {
6660
6688
  minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
6661
6689
  };
6662
6690
  }
6691
+ if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
6692
+ message.payload = {
6693
+ $case: "farcasterFrame",
6694
+ farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
6695
+ };
6696
+ }
6663
6697
  return message;
6664
6698
  }
6665
6699
  };
@@ -7291,6 +7325,86 @@ var ProofZkSNARK = {
7291
7325
  return message;
7292
7326
  }
7293
7327
  };
7328
+ function createBaseProofFarcasterFrame() {
7329
+ return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
7330
+ }
7331
+ var ProofFarcasterFrame = {
7332
+ encode(message, writer = import_minimal8.default.Writer.create()) {
7333
+ if (message.signedFrameMessageBody.length !== 0) {
7334
+ writer.uint32(10).bytes(message.signedFrameMessageBody);
7335
+ }
7336
+ if (message.censusProof !== void 0) {
7337
+ ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
7338
+ }
7339
+ if (message.publicKey.length !== 0) {
7340
+ writer.uint32(26).bytes(message.publicKey);
7341
+ }
7342
+ return writer;
7343
+ },
7344
+ decode(input, length) {
7345
+ const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
7346
+ let end = length === void 0 ? reader.len : reader.pos + length;
7347
+ const message = createBaseProofFarcasterFrame();
7348
+ while (reader.pos < end) {
7349
+ const tag = reader.uint32();
7350
+ switch (tag >>> 3) {
7351
+ case 1:
7352
+ if (tag !== 10) {
7353
+ break;
7354
+ }
7355
+ message.signedFrameMessageBody = reader.bytes();
7356
+ continue;
7357
+ case 2:
7358
+ if (tag !== 18) {
7359
+ break;
7360
+ }
7361
+ message.censusProof = ProofArbo.decode(reader, reader.uint32());
7362
+ continue;
7363
+ case 3:
7364
+ if (tag !== 26) {
7365
+ break;
7366
+ }
7367
+ message.publicKey = reader.bytes();
7368
+ continue;
7369
+ }
7370
+ if ((tag & 7) === 4 || tag === 0) {
7371
+ break;
7372
+ }
7373
+ reader.skipType(tag & 7);
7374
+ }
7375
+ return message;
7376
+ },
7377
+ fromJSON(object) {
7378
+ return {
7379
+ signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
7380
+ censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
7381
+ publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
7382
+ };
7383
+ },
7384
+ toJSON(message) {
7385
+ const obj = {};
7386
+ if (message.signedFrameMessageBody.length !== 0) {
7387
+ obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
7388
+ }
7389
+ if (message.censusProof !== void 0) {
7390
+ obj.censusProof = ProofArbo.toJSON(message.censusProof);
7391
+ }
7392
+ if (message.publicKey.length !== 0) {
7393
+ obj.publicKey = base64FromBytes3(message.publicKey);
7394
+ }
7395
+ return obj;
7396
+ },
7397
+ create(base) {
7398
+ return ProofFarcasterFrame.fromPartial(base ?? {});
7399
+ },
7400
+ fromPartial(object) {
7401
+ const message = createBaseProofFarcasterFrame();
7402
+ message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
7403
+ message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
7404
+ message.publicKey = object.publicKey ?? new Uint8Array(0);
7405
+ return message;
7406
+ }
7407
+ };
7294
7408
  function createBaseAccount2() {
7295
7409
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
7296
7410
  }
@@ -5706,6 +5706,7 @@ __export(vochain_exports, {
5706
5706
  ProofCA_Type: () => ProofCA_Type,
5707
5707
  ProofEthereumAccount: () => ProofEthereumAccount,
5708
5708
  ProofEthereumStorage: () => ProofEthereumStorage,
5709
+ ProofFarcasterFrame: () => ProofFarcasterFrame,
5709
5710
  ProofMinime: () => ProofMinime,
5710
5711
  ProofZkSNARK: () => ProofZkSNARK,
5711
5712
  QuestionResult: () => QuestionResult,
@@ -6102,6 +6103,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
6102
6103
  CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
6103
6104
  CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
6104
6105
  CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
6106
+ CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
6105
6107
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6106
6108
  return CensusOrigin2;
6107
6109
  })(CensusOrigin || {});
@@ -6134,6 +6136,9 @@ function censusOriginFromJSON(object) {
6134
6136
  case 15:
6135
6137
  case "MINI_ME":
6136
6138
  return 15 /* MINI_ME */;
6139
+ case 16:
6140
+ case "FARCASTER_FRAME":
6141
+ return 16 /* FARCASTER_FRAME */;
6137
6142
  case -1:
6138
6143
  case "UNRECOGNIZED":
6139
6144
  default:
@@ -6160,6 +6165,8 @@ function censusOriginToJSON(object) {
6160
6165
  return "ERC777";
6161
6166
  case 15 /* MINI_ME */:
6162
6167
  return "MINI_ME";
6168
+ case 16 /* FARCASTER_FRAME */:
6169
+ return "FARCASTER_FRAME";
6163
6170
  case -1 /* UNRECOGNIZED */:
6164
6171
  default:
6165
6172
  return "UNRECOGNIZED";
@@ -6172,6 +6179,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6172
6179
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6173
6180
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6174
6181
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6182
+ Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
6175
6183
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6176
6184
  return Census_Type2;
6177
6185
  })(Census_Type || {});
@@ -6195,6 +6203,9 @@ function census_TypeFromJSON(object) {
6195
6203
  case 5:
6196
6204
  case "CA":
6197
6205
  return 5 /* CA */;
6206
+ case 6:
6207
+ case "FARCASTER_FRAME":
6208
+ return 6 /* FARCASTER_FRAME */;
6198
6209
  case -1:
6199
6210
  case "UNRECOGNIZED":
6200
6211
  default:
@@ -6215,6 +6226,8 @@ function census_TypeToJSON(object) {
6215
6226
  return "ETHEREUMACCOUNT";
6216
6227
  case 5 /* CA */:
6217
6228
  return "CA";
6229
+ case 6 /* FARCASTER_FRAME */:
6230
+ return "FARCASTER_FRAME";
6218
6231
  case -1 /* UNRECOGNIZED */:
6219
6232
  default:
6220
6233
  return "UNRECOGNIZED";
@@ -6530,6 +6543,9 @@ var Proof = {
6530
6543
  case "minimeStorage":
6531
6544
  ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
6532
6545
  break;
6546
+ case "farcasterFrame":
6547
+ ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
6548
+ break;
6533
6549
  }
6534
6550
  return writer;
6535
6551
  },
@@ -6582,6 +6598,15 @@ var Proof = {
6582
6598
  }
6583
6599
  message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
6584
6600
  continue;
6601
+ case 9:
6602
+ if (tag !== 74) {
6603
+ break;
6604
+ }
6605
+ message.payload = {
6606
+ $case: "farcasterFrame",
6607
+ farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
6608
+ };
6609
+ continue;
6585
6610
  }
6586
6611
  if ((tag & 7) === 4 || tag === 0) {
6587
6612
  break;
@@ -6592,7 +6617,7 @@ var Proof = {
6592
6617
  },
6593
6618
  fromJSON(object) {
6594
6619
  return {
6595
- 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) } : void 0
6620
+ 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
6596
6621
  };
6597
6622
  },
6598
6623
  toJSON(message) {
@@ -6615,6 +6640,9 @@ var Proof = {
6615
6640
  if (message.payload?.$case === "minimeStorage") {
6616
6641
  obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
6617
6642
  }
6643
+ if (message.payload?.$case === "farcasterFrame") {
6644
+ obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
6645
+ }
6618
6646
  return obj;
6619
6647
  },
6620
6648
  create(base) {
@@ -6649,6 +6677,12 @@ var Proof = {
6649
6677
  minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
6650
6678
  };
6651
6679
  }
6680
+ if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
6681
+ message.payload = {
6682
+ $case: "farcasterFrame",
6683
+ farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
6684
+ };
6685
+ }
6652
6686
  return message;
6653
6687
  }
6654
6688
  };
@@ -7280,6 +7314,86 @@ var ProofZkSNARK = {
7280
7314
  return message;
7281
7315
  }
7282
7316
  };
7317
+ function createBaseProofFarcasterFrame() {
7318
+ return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
7319
+ }
7320
+ var ProofFarcasterFrame = {
7321
+ encode(message, writer = import_minimal8.default.Writer.create()) {
7322
+ if (message.signedFrameMessageBody.length !== 0) {
7323
+ writer.uint32(10).bytes(message.signedFrameMessageBody);
7324
+ }
7325
+ if (message.censusProof !== void 0) {
7326
+ ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
7327
+ }
7328
+ if (message.publicKey.length !== 0) {
7329
+ writer.uint32(26).bytes(message.publicKey);
7330
+ }
7331
+ return writer;
7332
+ },
7333
+ decode(input, length) {
7334
+ const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
7335
+ let end = length === void 0 ? reader.len : reader.pos + length;
7336
+ const message = createBaseProofFarcasterFrame();
7337
+ while (reader.pos < end) {
7338
+ const tag = reader.uint32();
7339
+ switch (tag >>> 3) {
7340
+ case 1:
7341
+ if (tag !== 10) {
7342
+ break;
7343
+ }
7344
+ message.signedFrameMessageBody = reader.bytes();
7345
+ continue;
7346
+ case 2:
7347
+ if (tag !== 18) {
7348
+ break;
7349
+ }
7350
+ message.censusProof = ProofArbo.decode(reader, reader.uint32());
7351
+ continue;
7352
+ case 3:
7353
+ if (tag !== 26) {
7354
+ break;
7355
+ }
7356
+ message.publicKey = reader.bytes();
7357
+ continue;
7358
+ }
7359
+ if ((tag & 7) === 4 || tag === 0) {
7360
+ break;
7361
+ }
7362
+ reader.skipType(tag & 7);
7363
+ }
7364
+ return message;
7365
+ },
7366
+ fromJSON(object) {
7367
+ return {
7368
+ signedFrameMessageBody: isSet8(object.signedFrameMessageBody) ? bytesFromBase643(object.signedFrameMessageBody) : new Uint8Array(0),
7369
+ censusProof: isSet8(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
7370
+ publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : new Uint8Array(0)
7371
+ };
7372
+ },
7373
+ toJSON(message) {
7374
+ const obj = {};
7375
+ if (message.signedFrameMessageBody.length !== 0) {
7376
+ obj.signedFrameMessageBody = base64FromBytes3(message.signedFrameMessageBody);
7377
+ }
7378
+ if (message.censusProof !== void 0) {
7379
+ obj.censusProof = ProofArbo.toJSON(message.censusProof);
7380
+ }
7381
+ if (message.publicKey.length !== 0) {
7382
+ obj.publicKey = base64FromBytes3(message.publicKey);
7383
+ }
7384
+ return obj;
7385
+ },
7386
+ create(base) {
7387
+ return ProofFarcasterFrame.fromPartial(base ?? {});
7388
+ },
7389
+ fromPartial(object) {
7390
+ const message = createBaseProofFarcasterFrame();
7391
+ message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
7392
+ message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
7393
+ message.publicKey = object.publicKey ?? new Uint8Array(0);
7394
+ return message;
7395
+ }
7396
+ };
7283
7397
  function createBaseAccount2() {
7284
7398
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
7285
7399
  }
@@ -1,2 +1,2 @@
1
- export { F as Account, J as AdminTx, v as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, U as CollectFaucetTx, _ as EnvelopeType, X as FaucetPackage, W as FaucetPayload, N as NewProcessTx, a1 as OracleList, Z as Process, a7 as ProcessEndingList, $ as ProcessMode, a5 as ProcessResult, P as ProcessStatus, a0 as ProcessVoteOptions, k as Proof, w as ProofArbo, A as ProofArbo_KeyType, x as ProofArbo_Type, o as ProofCA, q as ProofCA_Type, m as ProofEthereumAccount, l as ProofEthereumStorage, n as ProofMinime, E as ProofZkSNARK, a6 as QuestionResult, R as RegisterKeyTx, Q as RegisterSIKTx, O as SIKTx, K as SendTokensTx, M as SetAccountTx, Y as SetKeykeeperTx, I as SetProcessTx, L as SetTransactionCostsTx, H as SignedTx, S as SourceNetworkId, a8 as StoredKeys, a4 as TendermintHeader, G as Tx, T as TxType, a3 as Validator, a2 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, B as proofArbo_KeyTypeFromJSON, D as proofArbo_KeyTypeToJSON, y as proofArbo_TypeFromJSON, z as proofArbo_TypeToJSON, r as proofCA_TypeFromJSON, u as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-cbd70a7b.js';
1
+ export { G as Account, K as AdminTx, v as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, W as CollectFaucetTx, $ as EnvelopeType, Y as FaucetPackage, X as FaucetPayload, N as NewProcessTx, a2 as OracleList, _ as Process, a8 as ProcessEndingList, a0 as ProcessMode, a6 as ProcessResult, P as ProcessStatus, a1 as ProcessVoteOptions, k as Proof, w as ProofArbo, A as ProofArbo_KeyType, x as ProofArbo_Type, o as ProofCA, q as ProofCA_Type, m as ProofEthereumAccount, l as ProofEthereumStorage, F as ProofFarcasterFrame, n as ProofMinime, E as ProofZkSNARK, a7 as QuestionResult, R as RegisterKeyTx, U as RegisterSIKTx, Q as SIKTx, L as SendTokensTx, O as SetAccountTx, Z as SetKeykeeperTx, J as SetProcessTx, M as SetTransactionCostsTx, I as SignedTx, S as SourceNetworkId, a9 as StoredKeys, a5 as TendermintHeader, H as Tx, T as TxType, a4 as Validator, a3 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, B as proofArbo_KeyTypeFromJSON, D as proofArbo_KeyTypeToJSON, y as proofArbo_TypeFromJSON, z as proofArbo_TypeToJSON, r as proofCA_TypeFromJSON, u as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-51ead84f.js';
2
2
  import 'protobufjs/minimal';
@@ -1452,6 +1452,7 @@ __export(vochain_exports, {
1452
1452
  ProofCA_Type: () => ProofCA_Type,
1453
1453
  ProofEthereumAccount: () => ProofEthereumAccount,
1454
1454
  ProofEthereumStorage: () => ProofEthereumStorage,
1455
+ ProofFarcasterFrame: () => ProofFarcasterFrame,
1455
1456
  ProofMinime: () => ProofMinime,
1456
1457
  ProofZkSNARK: () => ProofZkSNARK,
1457
1458
  QuestionResult: () => QuestionResult,
@@ -1849,6 +1850,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
1849
1850
  CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
1850
1851
  CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
1851
1852
  CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
1853
+ CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
1852
1854
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1853
1855
  return CensusOrigin2;
1854
1856
  })(CensusOrigin || {});
@@ -1881,6 +1883,9 @@ function censusOriginFromJSON(object) {
1881
1883
  case 15:
1882
1884
  case "MINI_ME":
1883
1885
  return 15 /* MINI_ME */;
1886
+ case 16:
1887
+ case "FARCASTER_FRAME":
1888
+ return 16 /* FARCASTER_FRAME */;
1884
1889
  case -1:
1885
1890
  case "UNRECOGNIZED":
1886
1891
  default:
@@ -1907,6 +1912,8 @@ function censusOriginToJSON(object) {
1907
1912
  return "ERC777";
1908
1913
  case 15 /* MINI_ME */:
1909
1914
  return "MINI_ME";
1915
+ case 16 /* FARCASTER_FRAME */:
1916
+ return "FARCASTER_FRAME";
1910
1917
  case -1 /* UNRECOGNIZED */:
1911
1918
  default:
1912
1919
  return "UNRECOGNIZED";
@@ -1919,6 +1926,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
1919
1926
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
1920
1927
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
1921
1928
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
1929
+ Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
1922
1930
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1923
1931
  return Census_Type2;
1924
1932
  })(Census_Type || {});
@@ -1942,6 +1950,9 @@ function census_TypeFromJSON(object) {
1942
1950
  case 5:
1943
1951
  case "CA":
1944
1952
  return 5 /* CA */;
1953
+ case 6:
1954
+ case "FARCASTER_FRAME":
1955
+ return 6 /* FARCASTER_FRAME */;
1945
1956
  case -1:
1946
1957
  case "UNRECOGNIZED":
1947
1958
  default:
@@ -1962,6 +1973,8 @@ function census_TypeToJSON(object) {
1962
1973
  return "ETHEREUMACCOUNT";
1963
1974
  case 5 /* CA */:
1964
1975
  return "CA";
1976
+ case 6 /* FARCASTER_FRAME */:
1977
+ return "FARCASTER_FRAME";
1965
1978
  case -1 /* UNRECOGNIZED */:
1966
1979
  default:
1967
1980
  return "UNRECOGNIZED";
@@ -2277,6 +2290,9 @@ var Proof = {
2277
2290
  case "minimeStorage":
2278
2291
  ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
2279
2292
  break;
2293
+ case "farcasterFrame":
2294
+ ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
2295
+ break;
2280
2296
  }
2281
2297
  return writer;
2282
2298
  },
@@ -2329,6 +2345,15 @@ var Proof = {
2329
2345
  }
2330
2346
  message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
2331
2347
  continue;
2348
+ case 9:
2349
+ if (tag !== 74) {
2350
+ break;
2351
+ }
2352
+ message.payload = {
2353
+ $case: "farcasterFrame",
2354
+ farcasterFrame: ProofFarcasterFrame.decode(reader, reader.uint32())
2355
+ };
2356
+ continue;
2332
2357
  }
2333
2358
  if ((tag & 7) === 4 || tag === 0) {
2334
2359
  break;
@@ -2339,7 +2364,7 @@ var Proof = {
2339
2364
  },
2340
2365
  fromJSON(object) {
2341
2366
  return {
2342
- payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
2367
+ payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : isSet(object.farcasterFrame) ? { $case: "farcasterFrame", farcasterFrame: ProofFarcasterFrame.fromJSON(object.farcasterFrame) } : void 0
2343
2368
  };
2344
2369
  },
2345
2370
  toJSON(message) {
@@ -2362,6 +2387,9 @@ var Proof = {
2362
2387
  if (message.payload?.$case === "minimeStorage") {
2363
2388
  obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
2364
2389
  }
2390
+ if (message.payload?.$case === "farcasterFrame") {
2391
+ obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
2392
+ }
2365
2393
  return obj;
2366
2394
  },
2367
2395
  create(base) {
@@ -2396,6 +2424,12 @@ var Proof = {
2396
2424
  minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
2397
2425
  };
2398
2426
  }
2427
+ if (object.payload?.$case === "farcasterFrame" && object.payload?.farcasterFrame !== void 0 && object.payload?.farcasterFrame !== null) {
2428
+ message.payload = {
2429
+ $case: "farcasterFrame",
2430
+ farcasterFrame: ProofFarcasterFrame.fromPartial(object.payload.farcasterFrame)
2431
+ };
2432
+ }
2399
2433
  return message;
2400
2434
  }
2401
2435
  };
@@ -3027,6 +3061,86 @@ var ProofZkSNARK = {
3027
3061
  return message;
3028
3062
  }
3029
3063
  };
3064
+ function createBaseProofFarcasterFrame() {
3065
+ return { signedFrameMessageBody: new Uint8Array(0), censusProof: void 0, publicKey: new Uint8Array(0) };
3066
+ }
3067
+ var ProofFarcasterFrame = {
3068
+ encode(message, writer = import_minimal.default.Writer.create()) {
3069
+ if (message.signedFrameMessageBody.length !== 0) {
3070
+ writer.uint32(10).bytes(message.signedFrameMessageBody);
3071
+ }
3072
+ if (message.censusProof !== void 0) {
3073
+ ProofArbo.encode(message.censusProof, writer.uint32(18).fork()).ldelim();
3074
+ }
3075
+ if (message.publicKey.length !== 0) {
3076
+ writer.uint32(26).bytes(message.publicKey);
3077
+ }
3078
+ return writer;
3079
+ },
3080
+ decode(input, length) {
3081
+ const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
3082
+ let end = length === void 0 ? reader.len : reader.pos + length;
3083
+ const message = createBaseProofFarcasterFrame();
3084
+ while (reader.pos < end) {
3085
+ const tag = reader.uint32();
3086
+ switch (tag >>> 3) {
3087
+ case 1:
3088
+ if (tag !== 10) {
3089
+ break;
3090
+ }
3091
+ message.signedFrameMessageBody = reader.bytes();
3092
+ continue;
3093
+ case 2:
3094
+ if (tag !== 18) {
3095
+ break;
3096
+ }
3097
+ message.censusProof = ProofArbo.decode(reader, reader.uint32());
3098
+ continue;
3099
+ case 3:
3100
+ if (tag !== 26) {
3101
+ break;
3102
+ }
3103
+ message.publicKey = reader.bytes();
3104
+ continue;
3105
+ }
3106
+ if ((tag & 7) === 4 || tag === 0) {
3107
+ break;
3108
+ }
3109
+ reader.skipType(tag & 7);
3110
+ }
3111
+ return message;
3112
+ },
3113
+ fromJSON(object) {
3114
+ return {
3115
+ signedFrameMessageBody: isSet(object.signedFrameMessageBody) ? bytesFromBase64(object.signedFrameMessageBody) : new Uint8Array(0),
3116
+ censusProof: isSet(object.censusProof) ? ProofArbo.fromJSON(object.censusProof) : void 0,
3117
+ publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : new Uint8Array(0)
3118
+ };
3119
+ },
3120
+ toJSON(message) {
3121
+ const obj = {};
3122
+ if (message.signedFrameMessageBody.length !== 0) {
3123
+ obj.signedFrameMessageBody = base64FromBytes(message.signedFrameMessageBody);
3124
+ }
3125
+ if (message.censusProof !== void 0) {
3126
+ obj.censusProof = ProofArbo.toJSON(message.censusProof);
3127
+ }
3128
+ if (message.publicKey.length !== 0) {
3129
+ obj.publicKey = base64FromBytes(message.publicKey);
3130
+ }
3131
+ return obj;
3132
+ },
3133
+ create(base) {
3134
+ return ProofFarcasterFrame.fromPartial(base ?? {});
3135
+ },
3136
+ fromPartial(object) {
3137
+ const message = createBaseProofFarcasterFrame();
3138
+ message.signedFrameMessageBody = object.signedFrameMessageBody ?? new Uint8Array(0);
3139
+ message.censusProof = object.censusProof !== void 0 && object.censusProof !== null ? ProofArbo.fromPartial(object.censusProof) : void 0;
3140
+ message.publicKey = object.publicKey ?? new Uint8Array(0);
3141
+ return message;
3142
+ }
3143
+ };
3030
3144
  function createBaseAccount() {
3031
3145
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
3032
3146
  }
@@ -6501,6 +6615,7 @@ function isSet(value) {
6501
6615
  ProofCA_Type,
6502
6616
  ProofEthereumAccount,
6503
6617
  ProofEthereumStorage,
6618
+ ProofFarcasterFrame,
6504
6619
  ProofMinime,
6505
6620
  ProofZkSNARK,
6506
6621
  QuestionResult,