@vocdoni/proto 1.15.4 → 1.15.5

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.
@@ -27,6 +27,7 @@ declare enum TxType {
27
27
  DEL_ACCOUNT_SIK = 25,
28
28
  REGISTER_SIK = 26,
29
29
  SET_ACCOUNT_VALIDATOR = 27,
30
+ SET_PROCESS_DURATION = 28,
30
31
  UNRECOGNIZED = -1
31
32
  }
32
33
  declare function txTypeFromJSON(object: any): TxType;
@@ -1824,6 +1825,8 @@ declare const Tx: {
1824
1825
  sourceNetworkContractAddr?: Uint8Array | undefined;
1825
1826
  tokenDecimals?: number | undefined;
1826
1827
  tempSIKs?: boolean | undefined;
1828
+ startTime?: number | undefined;
1829
+ duration?: number | undefined;
1827
1830
  } | undefined;
1828
1831
  } | undefined;
1829
1832
  } & {
@@ -1924,6 +1927,7 @@ declare const Tx: {
1924
1927
  }[] | undefined;
1925
1928
  } | undefined;
1926
1929
  tempSIKs?: boolean | undefined;
1930
+ duration?: number | undefined;
1927
1931
  } | undefined;
1928
1932
  } & {
1929
1933
  $case: "setProcess";
@@ -2608,6 +2612,8 @@ declare const Tx: {
2608
2612
  sourceNetworkContractAddr?: Uint8Array | undefined;
2609
2613
  tokenDecimals?: number | undefined;
2610
2614
  tempSIKs?: boolean | undefined;
2615
+ startTime?: number | undefined;
2616
+ duration?: number | undefined;
2611
2617
  } | undefined;
2612
2618
  } | undefined;
2613
2619
  } & {
@@ -2670,6 +2676,8 @@ declare const Tx: {
2670
2676
  sourceNetworkContractAddr?: Uint8Array | undefined;
2671
2677
  tokenDecimals?: number | undefined;
2672
2678
  tempSIKs?: boolean | undefined;
2679
+ startTime?: number | undefined;
2680
+ duration?: number | undefined;
2673
2681
  } | undefined;
2674
2682
  } & {
2675
2683
  txtype?: TxType | undefined;
@@ -2728,6 +2736,8 @@ declare const Tx: {
2728
2736
  sourceNetworkContractAddr?: Uint8Array | undefined;
2729
2737
  tokenDecimals?: number | undefined;
2730
2738
  tempSIKs?: boolean | undefined;
2739
+ startTime?: number | undefined;
2740
+ duration?: number | undefined;
2731
2741
  } & {
2732
2742
  processId?: Uint8Array | undefined;
2733
2743
  entityId?: Uint8Array | undefined;
@@ -2810,6 +2820,8 @@ declare const Tx: {
2810
2820
  sourceNetworkContractAddr?: Uint8Array | undefined;
2811
2821
  tokenDecimals?: number | undefined;
2812
2822
  tempSIKs?: boolean | undefined;
2823
+ startTime?: number | undefined;
2824
+ duration?: number | undefined;
2813
2825
  } & { [K_36 in Exclude<keyof I["payload"]["newProcess"]["process"], keyof Process>]: never; }) | undefined;
2814
2826
  } & { [K_37 in Exclude<keyof I["payload"]["newProcess"], keyof NewProcessTx>]: never; }) | undefined;
2815
2827
  $case: "newProcess";
@@ -2932,6 +2944,7 @@ declare const Tx: {
2932
2944
  }[] | undefined;
2933
2945
  } | undefined;
2934
2946
  tempSIKs?: boolean | undefined;
2947
+ duration?: number | undefined;
2935
2948
  } | undefined;
2936
2949
  } & {
2937
2950
  $case: "setProcess";
@@ -3017,6 +3030,7 @@ declare const Tx: {
3017
3030
  }[] | undefined;
3018
3031
  } | undefined;
3019
3032
  tempSIKs?: boolean | undefined;
3033
+ duration?: number | undefined;
3020
3034
  } & {
3021
3035
  txtype?: TxType | undefined;
3022
3036
  nonce?: number | undefined;
@@ -3283,6 +3297,7 @@ declare const Tx: {
3283
3297
  }[]>]: never; }) | undefined;
3284
3298
  } & { [K_68 in Exclude<keyof I["payload"]["setProcess"]["results"], "votes">]: never; }) | undefined;
3285
3299
  tempSIKs?: boolean | undefined;
3300
+ duration?: number | undefined;
3286
3301
  } & { [K_69 in Exclude<keyof I["payload"]["setProcess"], keyof SetProcessTx>]: never; }) | undefined;
3287
3302
  $case: "setProcess";
3288
3303
  } & { [K_70 in Exclude<keyof I["payload"], "$case" | "setProcess">]: never; }) | ({
@@ -4394,6 +4409,8 @@ declare const Tx: {
4394
4409
  sourceNetworkContractAddr?: Uint8Array | undefined;
4395
4410
  tokenDecimals?: number | undefined;
4396
4411
  tempSIKs?: boolean | undefined;
4412
+ startTime?: number | undefined;
4413
+ duration?: number | undefined;
4397
4414
  } | undefined;
4398
4415
  } | undefined;
4399
4416
  } & {
@@ -4494,6 +4511,7 @@ declare const Tx: {
4494
4511
  }[] | undefined;
4495
4512
  } | undefined;
4496
4513
  tempSIKs?: boolean | undefined;
4514
+ duration?: number | undefined;
4497
4515
  } | undefined;
4498
4516
  } & {
4499
4517
  $case: "setProcess";
@@ -5178,6 +5196,8 @@ declare const Tx: {
5178
5196
  sourceNetworkContractAddr?: Uint8Array | undefined;
5179
5197
  tokenDecimals?: number | undefined;
5180
5198
  tempSIKs?: boolean | undefined;
5199
+ startTime?: number | undefined;
5200
+ duration?: number | undefined;
5181
5201
  } | undefined;
5182
5202
  } | undefined;
5183
5203
  } & {
@@ -5240,6 +5260,8 @@ declare const Tx: {
5240
5260
  sourceNetworkContractAddr?: Uint8Array | undefined;
5241
5261
  tokenDecimals?: number | undefined;
5242
5262
  tempSIKs?: boolean | undefined;
5263
+ startTime?: number | undefined;
5264
+ duration?: number | undefined;
5243
5265
  } | undefined;
5244
5266
  } & {
5245
5267
  txtype?: TxType | undefined;
@@ -5298,6 +5320,8 @@ declare const Tx: {
5298
5320
  sourceNetworkContractAddr?: Uint8Array | undefined;
5299
5321
  tokenDecimals?: number | undefined;
5300
5322
  tempSIKs?: boolean | undefined;
5323
+ startTime?: number | undefined;
5324
+ duration?: number | undefined;
5301
5325
  } & {
5302
5326
  processId?: Uint8Array | undefined;
5303
5327
  entityId?: Uint8Array | undefined;
@@ -5380,6 +5404,8 @@ declare const Tx: {
5380
5404
  sourceNetworkContractAddr?: Uint8Array | undefined;
5381
5405
  tokenDecimals?: number | undefined;
5382
5406
  tempSIKs?: boolean | undefined;
5407
+ startTime?: number | undefined;
5408
+ duration?: number | undefined;
5383
5409
  } & { [K_177 in Exclude<keyof I_1["payload"]["newProcess"]["process"], keyof Process>]: never; }) | undefined;
5384
5410
  } & { [K_178 in Exclude<keyof I_1["payload"]["newProcess"], keyof NewProcessTx>]: never; }) | undefined;
5385
5411
  $case: "newProcess";
@@ -5502,6 +5528,7 @@ declare const Tx: {
5502
5528
  }[] | undefined;
5503
5529
  } | undefined;
5504
5530
  tempSIKs?: boolean | undefined;
5531
+ duration?: number | undefined;
5505
5532
  } | undefined;
5506
5533
  } & {
5507
5534
  $case: "setProcess";
@@ -5587,6 +5614,7 @@ declare const Tx: {
5587
5614
  }[] | undefined;
5588
5615
  } | undefined;
5589
5616
  tempSIKs?: boolean | undefined;
5617
+ duration?: number | undefined;
5590
5618
  } & {
5591
5619
  txtype?: TxType | undefined;
5592
5620
  nonce?: number | undefined;
@@ -5853,6 +5881,7 @@ declare const Tx: {
5853
5881
  }[]>]: never; }) | undefined;
5854
5882
  } & { [K_209 in Exclude<keyof I_1["payload"]["setProcess"]["results"], "votes">]: never; }) | undefined;
5855
5883
  tempSIKs?: boolean | undefined;
5884
+ duration?: number | undefined;
5856
5885
  } & { [K_210 in Exclude<keyof I_1["payload"]["setProcess"], keyof SetProcessTx>]: never; }) | undefined;
5857
5886
  $case: "setProcess";
5858
5887
  } & { [K_211 in Exclude<keyof I_1["payload"], "$case" | "setProcess">]: never; }) | ({
@@ -6927,6 +6956,8 @@ declare const NewProcessTx: {
6927
6956
  sourceNetworkContractAddr?: Uint8Array | undefined;
6928
6957
  tokenDecimals?: number | undefined;
6929
6958
  tempSIKs?: boolean | undefined;
6959
+ startTime?: number | undefined;
6960
+ duration?: number | undefined;
6930
6961
  } | undefined;
6931
6962
  } & {
6932
6963
  txtype?: TxType | undefined;
@@ -6985,6 +7016,8 @@ declare const NewProcessTx: {
6985
7016
  sourceNetworkContractAddr?: Uint8Array | undefined;
6986
7017
  tokenDecimals?: number | undefined;
6987
7018
  tempSIKs?: boolean | undefined;
7019
+ startTime?: number | undefined;
7020
+ duration?: number | undefined;
6988
7021
  } & {
6989
7022
  processId?: Uint8Array | undefined;
6990
7023
  entityId?: Uint8Array | undefined;
@@ -7067,6 +7100,8 @@ declare const NewProcessTx: {
7067
7100
  sourceNetworkContractAddr?: Uint8Array | undefined;
7068
7101
  tokenDecimals?: number | undefined;
7069
7102
  tempSIKs?: boolean | undefined;
7103
+ startTime?: number | undefined;
7104
+ duration?: number | undefined;
7070
7105
  } & { [K_9 in Exclude<keyof I["process"], keyof Process>]: never; }) | undefined;
7071
7106
  } & { [K_10 in Exclude<keyof I, keyof NewProcessTx>]: never; }>(base?: I | undefined): NewProcessTx;
7072
7107
  fromPartial<I_1 extends {
@@ -7126,6 +7161,8 @@ declare const NewProcessTx: {
7126
7161
  sourceNetworkContractAddr?: Uint8Array | undefined;
7127
7162
  tokenDecimals?: number | undefined;
7128
7163
  tempSIKs?: boolean | undefined;
7164
+ startTime?: number | undefined;
7165
+ duration?: number | undefined;
7129
7166
  } | undefined;
7130
7167
  } & {
7131
7168
  txtype?: TxType | undefined;
@@ -7184,6 +7221,8 @@ declare const NewProcessTx: {
7184
7221
  sourceNetworkContractAddr?: Uint8Array | undefined;
7185
7222
  tokenDecimals?: number | undefined;
7186
7223
  tempSIKs?: boolean | undefined;
7224
+ startTime?: number | undefined;
7225
+ duration?: number | undefined;
7187
7226
  } & {
7188
7227
  processId?: Uint8Array | undefined;
7189
7228
  entityId?: Uint8Array | undefined;
@@ -7266,6 +7305,8 @@ declare const NewProcessTx: {
7266
7305
  sourceNetworkContractAddr?: Uint8Array | undefined;
7267
7306
  tokenDecimals?: number | undefined;
7268
7307
  tempSIKs?: boolean | undefined;
7308
+ startTime?: number | undefined;
7309
+ duration?: number | undefined;
7269
7310
  } & { [K_20 in Exclude<keyof I_1["process"], keyof Process>]: never; }) | undefined;
7270
7311
  } & { [K_21 in Exclude<keyof I_1, keyof NewProcessTx>]: never; }>(object: I_1): NewProcessTx;
7271
7312
  };
@@ -7284,6 +7325,7 @@ interface SetProcessTx {
7284
7325
  * to it will be removed or not
7285
7326
  */
7286
7327
  tempSIKs?: boolean | undefined;
7328
+ duration?: number | undefined;
7287
7329
  }
7288
7330
  declare const SetProcessTx: {
7289
7331
  encode(message: SetProcessTx, writer?: _m0.Writer): _m0.Writer;
@@ -7371,6 +7413,7 @@ declare const SetProcessTx: {
7371
7413
  }[] | undefined;
7372
7414
  } | undefined;
7373
7415
  tempSIKs?: boolean | undefined;
7416
+ duration?: number | undefined;
7374
7417
  } & {
7375
7418
  txtype?: TxType | undefined;
7376
7419
  nonce?: number | undefined;
@@ -7637,6 +7680,7 @@ declare const SetProcessTx: {
7637
7680
  }[]>]: never; }) | undefined;
7638
7681
  } & { [K_27 in Exclude<keyof I["results"], "votes">]: never; }) | undefined;
7639
7682
  tempSIKs?: boolean | undefined;
7683
+ duration?: number | undefined;
7640
7684
  } & { [K_28 in Exclude<keyof I, keyof SetProcessTx>]: never; }>(base?: I | undefined): SetProcessTx;
7641
7685
  fromPartial<I_1 extends {
7642
7686
  txtype?: TxType | undefined;
@@ -7719,6 +7763,7 @@ declare const SetProcessTx: {
7719
7763
  }[] | undefined;
7720
7764
  } | undefined;
7721
7765
  tempSIKs?: boolean | undefined;
7766
+ duration?: number | undefined;
7722
7767
  } & {
7723
7768
  txtype?: TxType | undefined;
7724
7769
  nonce?: number | undefined;
@@ -7985,6 +8030,7 @@ declare const SetProcessTx: {
7985
8030
  }[]>]: never; }) | undefined;
7986
8031
  } & { [K_56 in Exclude<keyof I_1["results"], "votes">]: never; }) | undefined;
7987
8032
  tempSIKs?: boolean | undefined;
8033
+ duration?: number | undefined;
7988
8034
  } & { [K_57 in Exclude<keyof I_1, keyof SetProcessTx>]: never; }>(object: I_1): SetProcessTx;
7989
8035
  };
7990
8036
  interface AdminTx {
@@ -9718,6 +9764,10 @@ interface Process {
9718
9764
  * to it will be removed or not
9719
9765
  */
9720
9766
  tempSIKs?: boolean | undefined;
9767
+ /** The unix timestamp of the start of the process */
9768
+ startTime: number;
9769
+ /** The duration of the process in seconds */
9770
+ duration: number;
9721
9771
  }
9722
9772
  declare const Process: {
9723
9773
  encode(message: Process, writer?: _m0.Writer): _m0.Writer;
@@ -9778,6 +9828,8 @@ declare const Process: {
9778
9828
  sourceNetworkContractAddr?: Uint8Array | undefined;
9779
9829
  tokenDecimals?: number | undefined;
9780
9830
  tempSIKs?: boolean | undefined;
9831
+ startTime?: number | undefined;
9832
+ duration?: number | undefined;
9781
9833
  } & {
9782
9834
  processId?: Uint8Array | undefined;
9783
9835
  entityId?: Uint8Array | undefined;
@@ -9860,6 +9912,8 @@ declare const Process: {
9860
9912
  sourceNetworkContractAddr?: Uint8Array | undefined;
9861
9913
  tokenDecimals?: number | undefined;
9862
9914
  tempSIKs?: boolean | undefined;
9915
+ startTime?: number | undefined;
9916
+ duration?: number | undefined;
9863
9917
  } & { [K_9 in Exclude<keyof I, keyof Process>]: never; }>(base?: I | undefined): Process;
9864
9918
  fromPartial<I_1 extends {
9865
9919
  processId?: Uint8Array | undefined;
@@ -9915,6 +9969,8 @@ declare const Process: {
9915
9969
  sourceNetworkContractAddr?: Uint8Array | undefined;
9916
9970
  tokenDecimals?: number | undefined;
9917
9971
  tempSIKs?: boolean | undefined;
9972
+ startTime?: number | undefined;
9973
+ duration?: number | undefined;
9918
9974
  } & {
9919
9975
  processId?: Uint8Array | undefined;
9920
9976
  entityId?: Uint8Array | undefined;
@@ -9997,6 +10053,8 @@ declare const Process: {
9997
10053
  sourceNetworkContractAddr?: Uint8Array | undefined;
9998
10054
  tokenDecimals?: number | undefined;
9999
10055
  tempSIKs?: boolean | undefined;
10056
+ startTime?: number | undefined;
10057
+ duration?: number | undefined;
10000
10058
  } & { [K_19 in Exclude<keyof I_1, keyof Process>]: never; }>(object: I_1): Process;
10001
10059
  };
10002
10060
  interface EnvelopeType {
@@ -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-5d7943a4.js';
3
+ export { i as Vochain } from './index-cbd70a7b.js';
4
4
  import 'protobufjs/minimal';
5
5
  import './entity-e8dfcd83.js';
package/build/js/index.js CHANGED
@@ -5785,6 +5785,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
5785
5785
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
5786
5786
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
5787
5787
  TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
5788
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
5788
5789
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5789
5790
  return TxType2;
5790
5791
  })(TxType || {});
@@ -5868,6 +5869,9 @@ function txTypeFromJSON(object) {
5868
5869
  case 27:
5869
5870
  case "SET_ACCOUNT_VALIDATOR":
5870
5871
  return 27 /* SET_ACCOUNT_VALIDATOR */;
5872
+ case 28:
5873
+ case "SET_PROCESS_DURATION":
5874
+ return 28 /* SET_PROCESS_DURATION */;
5871
5875
  case -1:
5872
5876
  case "UNRECOGNIZED":
5873
5877
  default:
@@ -5928,6 +5932,8 @@ function txTypeToJSON(object) {
5928
5932
  return "REGISTER_SIK";
5929
5933
  case 27 /* SET_ACCOUNT_VALIDATOR */:
5930
5934
  return "SET_ACCOUNT_VALIDATOR";
5935
+ case 28 /* SET_PROCESS_DURATION */:
5936
+ return "SET_PROCESS_DURATION";
5931
5937
  case -1 /* UNRECOGNIZED */:
5932
5938
  default:
5933
5939
  return "UNRECOGNIZED";
@@ -7801,7 +7807,8 @@ function createBaseSetProcessTx() {
7801
7807
  censusURI: void 0,
7802
7808
  proof: void 0,
7803
7809
  results: void 0,
7804
- tempSIKs: void 0
7810
+ tempSIKs: void 0,
7811
+ duration: void 0
7805
7812
  };
7806
7813
  }
7807
7814
  var SetProcessTx = {
@@ -7836,6 +7843,9 @@ var SetProcessTx = {
7836
7843
  if (message.tempSIKs !== void 0) {
7837
7844
  writer.uint32(80).bool(message.tempSIKs);
7838
7845
  }
7846
+ if (message.duration !== void 0) {
7847
+ writer.uint32(88).uint32(message.duration);
7848
+ }
7839
7849
  return writer;
7840
7850
  },
7841
7851
  decode(input, length) {
@@ -7905,6 +7915,12 @@ var SetProcessTx = {
7905
7915
  }
7906
7916
  message.tempSIKs = reader.bool();
7907
7917
  continue;
7918
+ case 11:
7919
+ if (tag !== 88) {
7920
+ break;
7921
+ }
7922
+ message.duration = reader.uint32();
7923
+ continue;
7908
7924
  }
7909
7925
  if ((tag & 7) === 4 || tag === 0) {
7910
7926
  break;
@@ -7924,7 +7940,8 @@ var SetProcessTx = {
7924
7940
  censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
7925
7941
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
7926
7942
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
7927
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
7943
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
7944
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
7928
7945
  };
7929
7946
  },
7930
7947
  toJSON(message) {
@@ -7959,6 +7976,9 @@ var SetProcessTx = {
7959
7976
  if (message.tempSIKs !== void 0) {
7960
7977
  obj.tempSIKs = message.tempSIKs;
7961
7978
  }
7979
+ if (message.duration !== void 0) {
7980
+ obj.duration = Math.round(message.duration);
7981
+ }
7962
7982
  return obj;
7963
7983
  },
7964
7984
  create(base) {
@@ -7976,6 +7996,7 @@ var SetProcessTx = {
7976
7996
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
7977
7997
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
7978
7998
  message.tempSIKs = object.tempSIKs ?? void 0;
7999
+ message.duration = object.duration ?? void 0;
7979
8000
  return message;
7980
8001
  }
7981
8002
  };
@@ -9121,7 +9142,9 @@ function createBaseProcess() {
9121
9142
  nullifiersRoot: void 0,
9122
9143
  sourceNetworkContractAddr: void 0,
9123
9144
  tokenDecimals: void 0,
9124
- tempSIKs: void 0
9145
+ tempSIKs: void 0,
9146
+ startTime: 0,
9147
+ duration: 0
9125
9148
  };
9126
9149
  }
9127
9150
  var Process = {
@@ -9219,6 +9242,12 @@ var Process = {
9219
9242
  if (message.tempSIKs !== void 0) {
9220
9243
  writer.uint32(272).bool(message.tempSIKs);
9221
9244
  }
9245
+ if (message.startTime !== 0) {
9246
+ writer.uint32(280).uint32(message.startTime);
9247
+ }
9248
+ if (message.duration !== 0) {
9249
+ writer.uint32(288).uint32(message.duration);
9250
+ }
9222
9251
  return writer;
9223
9252
  },
9224
9253
  decode(input, length) {
@@ -9414,6 +9443,18 @@ var Process = {
9414
9443
  }
9415
9444
  message.tempSIKs = reader.bool();
9416
9445
  continue;
9446
+ case 35:
9447
+ if (tag !== 280) {
9448
+ break;
9449
+ }
9450
+ message.startTime = reader.uint32();
9451
+ continue;
9452
+ case 36:
9453
+ if (tag !== 288) {
9454
+ break;
9455
+ }
9456
+ message.duration = reader.uint32();
9457
+ continue;
9417
9458
  }
9418
9459
  if ((tag & 7) === 4 || tag === 0) {
9419
9460
  break;
@@ -9454,7 +9495,9 @@ var Process = {
9454
9495
  nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
9455
9496
  sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
9456
9497
  tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
9457
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
9498
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
9499
+ startTime: isSet8(object.startTime) ? globalThis.Number(object.startTime) : 0,
9500
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : 0
9458
9501
  };
9459
9502
  },
9460
9503
  toJSON(message) {
@@ -9552,6 +9595,12 @@ var Process = {
9552
9595
  if (message.tempSIKs !== void 0) {
9553
9596
  obj.tempSIKs = message.tempSIKs;
9554
9597
  }
9598
+ if (message.startTime !== 0) {
9599
+ obj.startTime = Math.round(message.startTime);
9600
+ }
9601
+ if (message.duration !== 0) {
9602
+ obj.duration = Math.round(message.duration);
9603
+ }
9555
9604
  return obj;
9556
9605
  },
9557
9606
  create(base) {
@@ -9590,6 +9639,8 @@ var Process = {
9590
9639
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
9591
9640
  message.tokenDecimals = object.tokenDecimals ?? void 0;
9592
9641
  message.tempSIKs = object.tempSIKs ?? void 0;
9642
+ message.startTime = object.startTime ?? 0;
9643
+ message.duration = object.duration ?? 0;
9593
9644
  return message;
9594
9645
  }
9595
9646
  };
@@ -5774,6 +5774,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
5774
5774
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
5775
5775
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
5776
5776
  TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
5777
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
5777
5778
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5778
5779
  return TxType2;
5779
5780
  })(TxType || {});
@@ -5857,6 +5858,9 @@ function txTypeFromJSON(object) {
5857
5858
  case 27:
5858
5859
  case "SET_ACCOUNT_VALIDATOR":
5859
5860
  return 27 /* SET_ACCOUNT_VALIDATOR */;
5861
+ case 28:
5862
+ case "SET_PROCESS_DURATION":
5863
+ return 28 /* SET_PROCESS_DURATION */;
5860
5864
  case -1:
5861
5865
  case "UNRECOGNIZED":
5862
5866
  default:
@@ -5917,6 +5921,8 @@ function txTypeToJSON(object) {
5917
5921
  return "REGISTER_SIK";
5918
5922
  case 27 /* SET_ACCOUNT_VALIDATOR */:
5919
5923
  return "SET_ACCOUNT_VALIDATOR";
5924
+ case 28 /* SET_PROCESS_DURATION */:
5925
+ return "SET_PROCESS_DURATION";
5920
5926
  case -1 /* UNRECOGNIZED */:
5921
5927
  default:
5922
5928
  return "UNRECOGNIZED";
@@ -7790,7 +7796,8 @@ function createBaseSetProcessTx() {
7790
7796
  censusURI: void 0,
7791
7797
  proof: void 0,
7792
7798
  results: void 0,
7793
- tempSIKs: void 0
7799
+ tempSIKs: void 0,
7800
+ duration: void 0
7794
7801
  };
7795
7802
  }
7796
7803
  var SetProcessTx = {
@@ -7825,6 +7832,9 @@ var SetProcessTx = {
7825
7832
  if (message.tempSIKs !== void 0) {
7826
7833
  writer.uint32(80).bool(message.tempSIKs);
7827
7834
  }
7835
+ if (message.duration !== void 0) {
7836
+ writer.uint32(88).uint32(message.duration);
7837
+ }
7828
7838
  return writer;
7829
7839
  },
7830
7840
  decode(input, length) {
@@ -7894,6 +7904,12 @@ var SetProcessTx = {
7894
7904
  }
7895
7905
  message.tempSIKs = reader.bool();
7896
7906
  continue;
7907
+ case 11:
7908
+ if (tag !== 88) {
7909
+ break;
7910
+ }
7911
+ message.duration = reader.uint32();
7912
+ continue;
7897
7913
  }
7898
7914
  if ((tag & 7) === 4 || tag === 0) {
7899
7915
  break;
@@ -7913,7 +7929,8 @@ var SetProcessTx = {
7913
7929
  censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
7914
7930
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
7915
7931
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
7916
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
7932
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
7933
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : void 0
7917
7934
  };
7918
7935
  },
7919
7936
  toJSON(message) {
@@ -7948,6 +7965,9 @@ var SetProcessTx = {
7948
7965
  if (message.tempSIKs !== void 0) {
7949
7966
  obj.tempSIKs = message.tempSIKs;
7950
7967
  }
7968
+ if (message.duration !== void 0) {
7969
+ obj.duration = Math.round(message.duration);
7970
+ }
7951
7971
  return obj;
7952
7972
  },
7953
7973
  create(base) {
@@ -7965,6 +7985,7 @@ var SetProcessTx = {
7965
7985
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
7966
7986
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
7967
7987
  message.tempSIKs = object.tempSIKs ?? void 0;
7988
+ message.duration = object.duration ?? void 0;
7968
7989
  return message;
7969
7990
  }
7970
7991
  };
@@ -9110,7 +9131,9 @@ function createBaseProcess() {
9110
9131
  nullifiersRoot: void 0,
9111
9132
  sourceNetworkContractAddr: void 0,
9112
9133
  tokenDecimals: void 0,
9113
- tempSIKs: void 0
9134
+ tempSIKs: void 0,
9135
+ startTime: 0,
9136
+ duration: 0
9114
9137
  };
9115
9138
  }
9116
9139
  var Process = {
@@ -9208,6 +9231,12 @@ var Process = {
9208
9231
  if (message.tempSIKs !== void 0) {
9209
9232
  writer.uint32(272).bool(message.tempSIKs);
9210
9233
  }
9234
+ if (message.startTime !== 0) {
9235
+ writer.uint32(280).uint32(message.startTime);
9236
+ }
9237
+ if (message.duration !== 0) {
9238
+ writer.uint32(288).uint32(message.duration);
9239
+ }
9211
9240
  return writer;
9212
9241
  },
9213
9242
  decode(input, length) {
@@ -9403,6 +9432,18 @@ var Process = {
9403
9432
  }
9404
9433
  message.tempSIKs = reader.bool();
9405
9434
  continue;
9435
+ case 35:
9436
+ if (tag !== 280) {
9437
+ break;
9438
+ }
9439
+ message.startTime = reader.uint32();
9440
+ continue;
9441
+ case 36:
9442
+ if (tag !== 288) {
9443
+ break;
9444
+ }
9445
+ message.duration = reader.uint32();
9446
+ continue;
9406
9447
  }
9407
9448
  if ((tag & 7) === 4 || tag === 0) {
9408
9449
  break;
@@ -9443,7 +9484,9 @@ var Process = {
9443
9484
  nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
9444
9485
  sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
9445
9486
  tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
9446
- tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
9487
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
9488
+ startTime: isSet8(object.startTime) ? globalThis.Number(object.startTime) : 0,
9489
+ duration: isSet8(object.duration) ? globalThis.Number(object.duration) : 0
9447
9490
  };
9448
9491
  },
9449
9492
  toJSON(message) {
@@ -9541,6 +9584,12 @@ var Process = {
9541
9584
  if (message.tempSIKs !== void 0) {
9542
9585
  obj.tempSIKs = message.tempSIKs;
9543
9586
  }
9587
+ if (message.startTime !== 0) {
9588
+ obj.startTime = Math.round(message.startTime);
9589
+ }
9590
+ if (message.duration !== 0) {
9591
+ obj.duration = Math.round(message.duration);
9592
+ }
9544
9593
  return obj;
9545
9594
  },
9546
9595
  create(base) {
@@ -9579,6 +9628,8 @@ var Process = {
9579
9628
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
9580
9629
  message.tokenDecimals = object.tokenDecimals ?? void 0;
9581
9630
  message.tempSIKs = object.tempSIKs ?? void 0;
9631
+ message.startTime = object.startTime ?? 0;
9632
+ message.duration = object.duration ?? 0;
9582
9633
  return message;
9583
9634
  }
9584
9635
  };
@@ -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 { 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';
2
2
  import 'protobufjs/minimal';
@@ -1521,6 +1521,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
1521
1521
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
1522
1522
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
1523
1523
  TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
1524
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
1524
1525
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1525
1526
  return TxType2;
1526
1527
  })(TxType || {});
@@ -1604,6 +1605,9 @@ function txTypeFromJSON(object) {
1604
1605
  case 27:
1605
1606
  case "SET_ACCOUNT_VALIDATOR":
1606
1607
  return 27 /* SET_ACCOUNT_VALIDATOR */;
1608
+ case 28:
1609
+ case "SET_PROCESS_DURATION":
1610
+ return 28 /* SET_PROCESS_DURATION */;
1607
1611
  case -1:
1608
1612
  case "UNRECOGNIZED":
1609
1613
  default:
@@ -1664,6 +1668,8 @@ function txTypeToJSON(object) {
1664
1668
  return "REGISTER_SIK";
1665
1669
  case 27 /* SET_ACCOUNT_VALIDATOR */:
1666
1670
  return "SET_ACCOUNT_VALIDATOR";
1671
+ case 28 /* SET_PROCESS_DURATION */:
1672
+ return "SET_PROCESS_DURATION";
1667
1673
  case -1 /* UNRECOGNIZED */:
1668
1674
  default:
1669
1675
  return "UNRECOGNIZED";
@@ -3537,7 +3543,8 @@ function createBaseSetProcessTx() {
3537
3543
  censusURI: void 0,
3538
3544
  proof: void 0,
3539
3545
  results: void 0,
3540
- tempSIKs: void 0
3546
+ tempSIKs: void 0,
3547
+ duration: void 0
3541
3548
  };
3542
3549
  }
3543
3550
  var SetProcessTx = {
@@ -3572,6 +3579,9 @@ var SetProcessTx = {
3572
3579
  if (message.tempSIKs !== void 0) {
3573
3580
  writer.uint32(80).bool(message.tempSIKs);
3574
3581
  }
3582
+ if (message.duration !== void 0) {
3583
+ writer.uint32(88).uint32(message.duration);
3584
+ }
3575
3585
  return writer;
3576
3586
  },
3577
3587
  decode(input, length) {
@@ -3641,6 +3651,12 @@ var SetProcessTx = {
3641
3651
  }
3642
3652
  message.tempSIKs = reader.bool();
3643
3653
  continue;
3654
+ case 11:
3655
+ if (tag !== 88) {
3656
+ break;
3657
+ }
3658
+ message.duration = reader.uint32();
3659
+ continue;
3644
3660
  }
3645
3661
  if ((tag & 7) === 4 || tag === 0) {
3646
3662
  break;
@@ -3660,7 +3676,8 @@ var SetProcessTx = {
3660
3676
  censusURI: isSet(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
3661
3677
  proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
3662
3678
  results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
3663
- tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
3679
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
3680
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : void 0
3664
3681
  };
3665
3682
  },
3666
3683
  toJSON(message) {
@@ -3695,6 +3712,9 @@ var SetProcessTx = {
3695
3712
  if (message.tempSIKs !== void 0) {
3696
3713
  obj.tempSIKs = message.tempSIKs;
3697
3714
  }
3715
+ if (message.duration !== void 0) {
3716
+ obj.duration = Math.round(message.duration);
3717
+ }
3698
3718
  return obj;
3699
3719
  },
3700
3720
  create(base) {
@@ -3712,6 +3732,7 @@ var SetProcessTx = {
3712
3732
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
3713
3733
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
3714
3734
  message.tempSIKs = object.tempSIKs ?? void 0;
3735
+ message.duration = object.duration ?? void 0;
3715
3736
  return message;
3716
3737
  }
3717
3738
  };
@@ -4857,7 +4878,9 @@ function createBaseProcess() {
4857
4878
  nullifiersRoot: void 0,
4858
4879
  sourceNetworkContractAddr: void 0,
4859
4880
  tokenDecimals: void 0,
4860
- tempSIKs: void 0
4881
+ tempSIKs: void 0,
4882
+ startTime: 0,
4883
+ duration: 0
4861
4884
  };
4862
4885
  }
4863
4886
  var Process = {
@@ -4955,6 +4978,12 @@ var Process = {
4955
4978
  if (message.tempSIKs !== void 0) {
4956
4979
  writer.uint32(272).bool(message.tempSIKs);
4957
4980
  }
4981
+ if (message.startTime !== 0) {
4982
+ writer.uint32(280).uint32(message.startTime);
4983
+ }
4984
+ if (message.duration !== 0) {
4985
+ writer.uint32(288).uint32(message.duration);
4986
+ }
4958
4987
  return writer;
4959
4988
  },
4960
4989
  decode(input, length) {
@@ -5150,6 +5179,18 @@ var Process = {
5150
5179
  }
5151
5180
  message.tempSIKs = reader.bool();
5152
5181
  continue;
5182
+ case 35:
5183
+ if (tag !== 280) {
5184
+ break;
5185
+ }
5186
+ message.startTime = reader.uint32();
5187
+ continue;
5188
+ case 36:
5189
+ if (tag !== 288) {
5190
+ break;
5191
+ }
5192
+ message.duration = reader.uint32();
5193
+ continue;
5153
5194
  }
5154
5195
  if ((tag & 7) === 4 || tag === 0) {
5155
5196
  break;
@@ -5190,7 +5231,9 @@ var Process = {
5190
5231
  nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
5191
5232
  sourceNetworkContractAddr: isSet(object.sourceNetworkContractAddr) ? bytesFromBase64(object.sourceNetworkContractAddr) : void 0,
5192
5233
  tokenDecimals: isSet(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
5193
- tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
5234
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
5235
+ startTime: isSet(object.startTime) ? globalThis.Number(object.startTime) : 0,
5236
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0
5194
5237
  };
5195
5238
  },
5196
5239
  toJSON(message) {
@@ -5288,6 +5331,12 @@ var Process = {
5288
5331
  if (message.tempSIKs !== void 0) {
5289
5332
  obj.tempSIKs = message.tempSIKs;
5290
5333
  }
5334
+ if (message.startTime !== 0) {
5335
+ obj.startTime = Math.round(message.startTime);
5336
+ }
5337
+ if (message.duration !== 0) {
5338
+ obj.duration = Math.round(message.duration);
5339
+ }
5291
5340
  return obj;
5292
5341
  },
5293
5342
  create(base) {
@@ -5326,6 +5375,8 @@ var Process = {
5326
5375
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
5327
5376
  message.tokenDecimals = object.tokenDecimals ?? void 0;
5328
5377
  message.tempSIKs = object.tempSIKs ?? void 0;
5378
+ message.startTime = object.startTime ?? 0;
5379
+ message.duration = object.duration ?? 0;
5329
5380
  return message;
5330
5381
  }
5331
5382
  };
@@ -1447,6 +1447,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
1447
1447
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
1448
1448
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
1449
1449
  TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
1450
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
1450
1451
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1451
1452
  return TxType2;
1452
1453
  })(TxType || {});
@@ -1530,6 +1531,9 @@ function txTypeFromJSON(object) {
1530
1531
  case 27:
1531
1532
  case "SET_ACCOUNT_VALIDATOR":
1532
1533
  return 27 /* SET_ACCOUNT_VALIDATOR */;
1534
+ case 28:
1535
+ case "SET_PROCESS_DURATION":
1536
+ return 28 /* SET_PROCESS_DURATION */;
1533
1537
  case -1:
1534
1538
  case "UNRECOGNIZED":
1535
1539
  default:
@@ -1590,6 +1594,8 @@ function txTypeToJSON(object) {
1590
1594
  return "REGISTER_SIK";
1591
1595
  case 27 /* SET_ACCOUNT_VALIDATOR */:
1592
1596
  return "SET_ACCOUNT_VALIDATOR";
1597
+ case 28 /* SET_PROCESS_DURATION */:
1598
+ return "SET_PROCESS_DURATION";
1593
1599
  case -1 /* UNRECOGNIZED */:
1594
1600
  default:
1595
1601
  return "UNRECOGNIZED";
@@ -3463,7 +3469,8 @@ function createBaseSetProcessTx() {
3463
3469
  censusURI: void 0,
3464
3470
  proof: void 0,
3465
3471
  results: void 0,
3466
- tempSIKs: void 0
3472
+ tempSIKs: void 0,
3473
+ duration: void 0
3467
3474
  };
3468
3475
  }
3469
3476
  var SetProcessTx = {
@@ -3498,6 +3505,9 @@ var SetProcessTx = {
3498
3505
  if (message.tempSIKs !== void 0) {
3499
3506
  writer.uint32(80).bool(message.tempSIKs);
3500
3507
  }
3508
+ if (message.duration !== void 0) {
3509
+ writer.uint32(88).uint32(message.duration);
3510
+ }
3501
3511
  return writer;
3502
3512
  },
3503
3513
  decode(input, length) {
@@ -3567,6 +3577,12 @@ var SetProcessTx = {
3567
3577
  }
3568
3578
  message.tempSIKs = reader.bool();
3569
3579
  continue;
3580
+ case 11:
3581
+ if (tag !== 88) {
3582
+ break;
3583
+ }
3584
+ message.duration = reader.uint32();
3585
+ continue;
3570
3586
  }
3571
3587
  if ((tag & 7) === 4 || tag === 0) {
3572
3588
  break;
@@ -3586,7 +3602,8 @@ var SetProcessTx = {
3586
3602
  censusURI: isSet(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
3587
3603
  proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
3588
3604
  results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
3589
- tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
3605
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
3606
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : void 0
3590
3607
  };
3591
3608
  },
3592
3609
  toJSON(message) {
@@ -3621,6 +3638,9 @@ var SetProcessTx = {
3621
3638
  if (message.tempSIKs !== void 0) {
3622
3639
  obj.tempSIKs = message.tempSIKs;
3623
3640
  }
3641
+ if (message.duration !== void 0) {
3642
+ obj.duration = Math.round(message.duration);
3643
+ }
3624
3644
  return obj;
3625
3645
  },
3626
3646
  create(base) {
@@ -3638,6 +3658,7 @@ var SetProcessTx = {
3638
3658
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
3639
3659
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
3640
3660
  message.tempSIKs = object.tempSIKs ?? void 0;
3661
+ message.duration = object.duration ?? void 0;
3641
3662
  return message;
3642
3663
  }
3643
3664
  };
@@ -4783,7 +4804,9 @@ function createBaseProcess() {
4783
4804
  nullifiersRoot: void 0,
4784
4805
  sourceNetworkContractAddr: void 0,
4785
4806
  tokenDecimals: void 0,
4786
- tempSIKs: void 0
4807
+ tempSIKs: void 0,
4808
+ startTime: 0,
4809
+ duration: 0
4787
4810
  };
4788
4811
  }
4789
4812
  var Process = {
@@ -4881,6 +4904,12 @@ var Process = {
4881
4904
  if (message.tempSIKs !== void 0) {
4882
4905
  writer.uint32(272).bool(message.tempSIKs);
4883
4906
  }
4907
+ if (message.startTime !== 0) {
4908
+ writer.uint32(280).uint32(message.startTime);
4909
+ }
4910
+ if (message.duration !== 0) {
4911
+ writer.uint32(288).uint32(message.duration);
4912
+ }
4884
4913
  return writer;
4885
4914
  },
4886
4915
  decode(input, length) {
@@ -5076,6 +5105,18 @@ var Process = {
5076
5105
  }
5077
5106
  message.tempSIKs = reader.bool();
5078
5107
  continue;
5108
+ case 35:
5109
+ if (tag !== 280) {
5110
+ break;
5111
+ }
5112
+ message.startTime = reader.uint32();
5113
+ continue;
5114
+ case 36:
5115
+ if (tag !== 288) {
5116
+ break;
5117
+ }
5118
+ message.duration = reader.uint32();
5119
+ continue;
5079
5120
  }
5080
5121
  if ((tag & 7) === 4 || tag === 0) {
5081
5122
  break;
@@ -5116,7 +5157,9 @@ var Process = {
5116
5157
  nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
5117
5158
  sourceNetworkContractAddr: isSet(object.sourceNetworkContractAddr) ? bytesFromBase64(object.sourceNetworkContractAddr) : void 0,
5118
5159
  tokenDecimals: isSet(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
5119
- tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
5160
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
5161
+ startTime: isSet(object.startTime) ? globalThis.Number(object.startTime) : 0,
5162
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0
5120
5163
  };
5121
5164
  },
5122
5165
  toJSON(message) {
@@ -5214,6 +5257,12 @@ var Process = {
5214
5257
  if (message.tempSIKs !== void 0) {
5215
5258
  obj.tempSIKs = message.tempSIKs;
5216
5259
  }
5260
+ if (message.startTime !== 0) {
5261
+ obj.startTime = Math.round(message.startTime);
5262
+ }
5263
+ if (message.duration !== 0) {
5264
+ obj.duration = Math.round(message.duration);
5265
+ }
5217
5266
  return obj;
5218
5267
  },
5219
5268
  create(base) {
@@ -5252,6 +5301,8 @@ var Process = {
5252
5301
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
5253
5302
  message.tokenDecimals = object.tokenDecimals ?? void 0;
5254
5303
  message.tempSIKs = object.tempSIKs ?? void 0;
5304
+ message.startTime = object.startTime ?? 0;
5305
+ message.duration = object.duration ?? 0;
5255
5306
  return message;
5256
5307
  }
5257
5308
  };
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@vocdoni/proto",
3
- "version": "1.15.4",
3
+ "version": "1.15.5",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "devDependencies": {
6
6
  "ts-node": "^9.1.1",
7
- "ts-proto": "^1.162.1",
7
+ "ts-proto": "^1.166.2",
8
8
  "tsup": "^6.5.0",
9
9
  "typescript": "^4.2.4"
10
10
  },