@vocdoni/proto 1.15.4 → 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.
@@ -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,
@@ -5774,6 +5775,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
5774
5775
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
5775
5776
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
5776
5777
  TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
5778
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
5777
5779
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5778
5780
  return TxType2;
5779
5781
  })(TxType || {});
@@ -5857,6 +5859,9 @@ function txTypeFromJSON(object) {
5857
5859
  case 27:
5858
5860
  case "SET_ACCOUNT_VALIDATOR":
5859
5861
  return 27 /* SET_ACCOUNT_VALIDATOR */;
5862
+ case 28:
5863
+ case "SET_PROCESS_DURATION":
5864
+ return 28 /* SET_PROCESS_DURATION */;
5860
5865
  case -1:
5861
5866
  case "UNRECOGNIZED":
5862
5867
  default:
@@ -5917,6 +5922,8 @@ function txTypeToJSON(object) {
5917
5922
  return "REGISTER_SIK";
5918
5923
  case 27 /* SET_ACCOUNT_VALIDATOR */:
5919
5924
  return "SET_ACCOUNT_VALIDATOR";
5925
+ case 28 /* SET_PROCESS_DURATION */:
5926
+ return "SET_PROCESS_DURATION";
5920
5927
  case -1 /* UNRECOGNIZED */:
5921
5928
  default:
5922
5929
  return "UNRECOGNIZED";
@@ -6096,6 +6103,7 @@ var CensusOrigin = /* @__PURE__ */ ((CensusOrigin2) => {
6096
6103
  CensusOrigin2[CensusOrigin2["ERC1155"] = 13] = "ERC1155";
6097
6104
  CensusOrigin2[CensusOrigin2["ERC777"] = 14] = "ERC777";
6098
6105
  CensusOrigin2[CensusOrigin2["MINI_ME"] = 15] = "MINI_ME";
6106
+ CensusOrigin2[CensusOrigin2["FARCASTER_FRAME"] = 16] = "FARCASTER_FRAME";
6099
6107
  CensusOrigin2[CensusOrigin2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6100
6108
  return CensusOrigin2;
6101
6109
  })(CensusOrigin || {});
@@ -6128,6 +6136,9 @@ function censusOriginFromJSON(object) {
6128
6136
  case 15:
6129
6137
  case "MINI_ME":
6130
6138
  return 15 /* MINI_ME */;
6139
+ case 16:
6140
+ case "FARCASTER_FRAME":
6141
+ return 16 /* FARCASTER_FRAME */;
6131
6142
  case -1:
6132
6143
  case "UNRECOGNIZED":
6133
6144
  default:
@@ -6154,6 +6165,8 @@ function censusOriginToJSON(object) {
6154
6165
  return "ERC777";
6155
6166
  case 15 /* MINI_ME */:
6156
6167
  return "MINI_ME";
6168
+ case 16 /* FARCASTER_FRAME */:
6169
+ return "FARCASTER_FRAME";
6157
6170
  case -1 /* UNRECOGNIZED */:
6158
6171
  default:
6159
6172
  return "UNRECOGNIZED";
@@ -6166,6 +6179,7 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6166
6179
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6167
6180
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6168
6181
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6182
+ Census_Type2[Census_Type2["FARCASTER_FRAME"] = 6] = "FARCASTER_FRAME";
6169
6183
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6170
6184
  return Census_Type2;
6171
6185
  })(Census_Type || {});
@@ -6189,6 +6203,9 @@ function census_TypeFromJSON(object) {
6189
6203
  case 5:
6190
6204
  case "CA":
6191
6205
  return 5 /* CA */;
6206
+ case 6:
6207
+ case "FARCASTER_FRAME":
6208
+ return 6 /* FARCASTER_FRAME */;
6192
6209
  case -1:
6193
6210
  case "UNRECOGNIZED":
6194
6211
  default:
@@ -6209,6 +6226,8 @@ function census_TypeToJSON(object) {
6209
6226
  return "ETHEREUMACCOUNT";
6210
6227
  case 5 /* CA */:
6211
6228
  return "CA";
6229
+ case 6 /* FARCASTER_FRAME */:
6230
+ return "FARCASTER_FRAME";
6212
6231
  case -1 /* UNRECOGNIZED */:
6213
6232
  default:
6214
6233
  return "UNRECOGNIZED";
@@ -6524,6 +6543,9 @@ var Proof = {
6524
6543
  case "minimeStorage":
6525
6544
  ProofMinime.encode(message.payload.minimeStorage, writer.uint32(66).fork()).ldelim();
6526
6545
  break;
6546
+ case "farcasterFrame":
6547
+ ProofFarcasterFrame.encode(message.payload.farcasterFrame, writer.uint32(74).fork()).ldelim();
6548
+ break;
6527
6549
  }
6528
6550
  return writer;
6529
6551
  },
@@ -6576,6 +6598,15 @@ var Proof = {
6576
6598
  }
6577
6599
  message.payload = { $case: "minimeStorage", minimeStorage: ProofMinime.decode(reader, reader.uint32()) };
6578
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;
6579
6610
  }
6580
6611
  if ((tag & 7) === 4 || tag === 0) {
6581
6612
  break;
@@ -6586,7 +6617,7 @@ var Proof = {
6586
6617
  },
6587
6618
  fromJSON(object) {
6588
6619
  return {
6589
- 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
6590
6621
  };
6591
6622
  },
6592
6623
  toJSON(message) {
@@ -6609,6 +6640,9 @@ var Proof = {
6609
6640
  if (message.payload?.$case === "minimeStorage") {
6610
6641
  obj.minimeStorage = ProofMinime.toJSON(message.payload.minimeStorage);
6611
6642
  }
6643
+ if (message.payload?.$case === "farcasterFrame") {
6644
+ obj.farcasterFrame = ProofFarcasterFrame.toJSON(message.payload.farcasterFrame);
6645
+ }
6612
6646
  return obj;
6613
6647
  },
6614
6648
  create(base) {
@@ -6643,6 +6677,12 @@ var Proof = {
6643
6677
  minimeStorage: ProofMinime.fromPartial(object.payload.minimeStorage)
6644
6678
  };
6645
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
+ }
6646
6686
  return message;
6647
6687
  }
6648
6688
  };
@@ -7274,6 +7314,86 @@ var ProofZkSNARK = {
7274
7314
  return message;
7275
7315
  }
7276
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
+ };
7277
7397
  function createBaseAccount2() {
7278
7398
  return { balance: 0, nonce: 0, infoURI: "", delegateAddrs: [], processIndex: 0 };
7279
7399
  }
@@ -7790,7 +7910,8 @@ function createBaseSetProcessTx() {
7790
7910
  censusURI: void 0,
7791
7911
  proof: void 0,
7792
7912
  results: void 0,
7793
- tempSIKs: void 0
7913
+ tempSIKs: void 0,
7914
+ duration: void 0
7794
7915
  };
7795
7916
  }
7796
7917
  var SetProcessTx = {
@@ -7825,6 +7946,9 @@ var SetProcessTx = {
7825
7946
  if (message.tempSIKs !== void 0) {
7826
7947
  writer.uint32(80).bool(message.tempSIKs);
7827
7948
  }
7949
+ if (message.duration !== void 0) {
7950
+ writer.uint32(88).uint32(message.duration);
7951
+ }
7828
7952
  return writer;
7829
7953
  },
7830
7954
  decode(input, length) {
@@ -7894,6 +8018,12 @@ var SetProcessTx = {
7894
8018
  }
7895
8019
  message.tempSIKs = reader.bool();
7896
8020
  continue;
8021
+ case 11:
8022
+ if (tag !== 88) {
8023
+ break;
8024
+ }
8025
+ message.duration = reader.uint32();
8026
+ continue;
7897
8027
  }
7898
8028
  if ((tag & 7) === 4 || tag === 0) {
7899
8029
  break;
@@ -7913,7 +8043,8 @@ var SetProcessTx = {
7913
8043
  censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
7914
8044
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
7915
8045
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
7916
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
8046
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
8047
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
7917
8048
  };
7918
8049
  },
7919
8050
  toJSON(message) {
@@ -7948,6 +8079,9 @@ var SetProcessTx = {
7948
8079
  if (message.tempSIKs !== void 0) {
7949
8080
  obj.tempSIKs = message.tempSIKs;
7950
8081
  }
8082
+ if (message.duration !== void 0) {
8083
+ obj.duration = Math.round(message.duration);
8084
+ }
7951
8085
  return obj;
7952
8086
  },
7953
8087
  create(base) {
@@ -7965,6 +8099,7 @@ var SetProcessTx = {
7965
8099
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
7966
8100
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
7967
8101
  message.tempSIKs = object.tempSIKs ?? void 0;
8102
+ message.duration = object.duration ?? void 0;
7968
8103
  return message;
7969
8104
  }
7970
8105
  };
@@ -9110,7 +9245,9 @@ function createBaseProcess() {
9110
9245
  nullifiersRoot: void 0,
9111
9246
  sourceNetworkContractAddr: void 0,
9112
9247
  tokenDecimals: void 0,
9113
- tempSIKs: void 0
9248
+ tempSIKs: void 0,
9249
+ startTime: 0,
9250
+ duration: 0
9114
9251
  };
9115
9252
  }
9116
9253
  var Process = {
@@ -9208,6 +9345,12 @@ var Process = {
9208
9345
  if (message.tempSIKs !== void 0) {
9209
9346
  writer.uint32(272).bool(message.tempSIKs);
9210
9347
  }
9348
+ if (message.startTime !== 0) {
9349
+ writer.uint32(280).uint32(message.startTime);
9350
+ }
9351
+ if (message.duration !== 0) {
9352
+ writer.uint32(288).uint32(message.duration);
9353
+ }
9211
9354
  return writer;
9212
9355
  },
9213
9356
  decode(input, length) {
@@ -9403,6 +9546,18 @@ var Process = {
9403
9546
  }
9404
9547
  message.tempSIKs = reader.bool();
9405
9548
  continue;
9549
+ case 35:
9550
+ if (tag !== 280) {
9551
+ break;
9552
+ }
9553
+ message.startTime = reader.uint32();
9554
+ continue;
9555
+ case 36:
9556
+ if (tag !== 288) {
9557
+ break;
9558
+ }
9559
+ message.duration = reader.uint32();
9560
+ continue;
9406
9561
  }
9407
9562
  if ((tag & 7) === 4 || tag === 0) {
9408
9563
  break;
@@ -9443,7 +9598,9 @@ var Process = {
9443
9598
  nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
9444
9599
  sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
9445
9600
  tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
9446
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
9601
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
9602
+ startTime: isSet8(object.startTime) ? globalThis.Number(object.startTime) : 0,
9603
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : 0
9447
9604
  };
9448
9605
  },
9449
9606
  toJSON(message) {
@@ -9541,6 +9698,12 @@ var Process = {
9541
9698
  if (message.tempSIKs !== void 0) {
9542
9699
  obj.tempSIKs = message.tempSIKs;
9543
9700
  }
9701
+ if (message.startTime !== 0) {
9702
+ obj.startTime = Math.round(message.startTime);
9703
+ }
9704
+ if (message.duration !== 0) {
9705
+ obj.duration = Math.round(message.duration);
9706
+ }
9544
9707
  return obj;
9545
9708
  },
9546
9709
  create(base) {
@@ -9579,6 +9742,8 @@ var Process = {
9579
9742
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
9580
9743
  message.tokenDecimals = object.tokenDecimals ?? void 0;
9581
9744
  message.tempSIKs = object.tempSIKs ?? void 0;
9745
+ message.startTime = object.startTime ?? 0;
9746
+ message.duration = object.duration ?? 0;
9582
9747
  return message;
9583
9748
  }
9584
9749
  };
@@ -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-5d7943a4.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';