@vocdoni/proto 1.17.0 → 1.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1116,6 +1116,8 @@ declare const Tx: {
1116
1116
  maxVoteOverwrites?: number | undefined;
1117
1117
  maxTotalCost?: number | undefined;
1118
1118
  costExponent?: number | undefined;
1119
+ minValue?: number | undefined;
1120
+ minTotalCost?: number | undefined;
1119
1121
  } | undefined;
1120
1122
  censusOrigin?: CensusOrigin | undefined;
1121
1123
  results?: {
@@ -1649,6 +1651,8 @@ declare const Tx: {
1649
1651
  maxVoteOverwrites?: number | undefined;
1650
1652
  maxTotalCost?: number | undefined;
1651
1653
  costExponent?: number | undefined;
1654
+ minValue?: number | undefined;
1655
+ minTotalCost?: number | undefined;
1652
1656
  } | undefined;
1653
1657
  censusOrigin?: CensusOrigin | undefined;
1654
1658
  results?: {
@@ -1718,6 +1722,8 @@ declare const Tx: {
1718
1722
  maxVoteOverwrites?: number | undefined;
1719
1723
  maxTotalCost?: number | undefined;
1720
1724
  costExponent?: number | undefined;
1725
+ minValue?: number | undefined;
1726
+ minTotalCost?: number | undefined;
1721
1727
  } | undefined;
1722
1728
  censusOrigin?: CensusOrigin | undefined;
1723
1729
  results?: {
@@ -1783,6 +1789,8 @@ declare const Tx: {
1783
1789
  maxVoteOverwrites?: number | undefined;
1784
1790
  maxTotalCost?: number | undefined;
1785
1791
  costExponent?: number | undefined;
1792
+ minValue?: number | undefined;
1793
+ minTotalCost?: number | undefined;
1786
1794
  } | undefined;
1787
1795
  censusOrigin?: CensusOrigin | undefined;
1788
1796
  results?: {
@@ -1852,12 +1860,16 @@ declare const Tx: {
1852
1860
  maxVoteOverwrites?: number | undefined;
1853
1861
  maxTotalCost?: number | undefined;
1854
1862
  costExponent?: number | undefined;
1863
+ minValue?: number | undefined;
1864
+ minTotalCost?: number | undefined;
1855
1865
  } & {
1856
1866
  maxCount?: number | undefined;
1857
1867
  maxValue?: number | undefined;
1858
1868
  maxVoteOverwrites?: number | undefined;
1859
1869
  maxTotalCost?: number | undefined;
1860
1870
  costExponent?: number | undefined;
1871
+ minValue?: number | undefined;
1872
+ minTotalCost?: number | undefined;
1861
1873
  } & { [K_19 in Exclude<keyof I["payload"]["newProcess"]["process"]["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
1862
1874
  censusOrigin?: CensusOrigin | undefined;
1863
1875
  results?: ({
@@ -2937,6 +2949,8 @@ declare const Tx: {
2937
2949
  maxVoteOverwrites?: number | undefined;
2938
2950
  maxTotalCost?: number | undefined;
2939
2951
  costExponent?: number | undefined;
2952
+ minValue?: number | undefined;
2953
+ minTotalCost?: number | undefined;
2940
2954
  } | undefined;
2941
2955
  censusOrigin?: CensusOrigin | undefined;
2942
2956
  results?: {
@@ -3470,6 +3484,8 @@ declare const Tx: {
3470
3484
  maxVoteOverwrites?: number | undefined;
3471
3485
  maxTotalCost?: number | undefined;
3472
3486
  costExponent?: number | undefined;
3487
+ minValue?: number | undefined;
3488
+ minTotalCost?: number | undefined;
3473
3489
  } | undefined;
3474
3490
  censusOrigin?: CensusOrigin | undefined;
3475
3491
  results?: {
@@ -3539,6 +3555,8 @@ declare const Tx: {
3539
3555
  maxVoteOverwrites?: number | undefined;
3540
3556
  maxTotalCost?: number | undefined;
3541
3557
  costExponent?: number | undefined;
3558
+ minValue?: number | undefined;
3559
+ minTotalCost?: number | undefined;
3542
3560
  } | undefined;
3543
3561
  censusOrigin?: CensusOrigin | undefined;
3544
3562
  results?: {
@@ -3604,6 +3622,8 @@ declare const Tx: {
3604
3622
  maxVoteOverwrites?: number | undefined;
3605
3623
  maxTotalCost?: number | undefined;
3606
3624
  costExponent?: number | undefined;
3625
+ minValue?: number | undefined;
3626
+ minTotalCost?: number | undefined;
3607
3627
  } | undefined;
3608
3628
  censusOrigin?: CensusOrigin | undefined;
3609
3629
  results?: {
@@ -3673,12 +3693,16 @@ declare const Tx: {
3673
3693
  maxVoteOverwrites?: number | undefined;
3674
3694
  maxTotalCost?: number | undefined;
3675
3695
  costExponent?: number | undefined;
3696
+ minValue?: number | undefined;
3697
+ minTotalCost?: number | undefined;
3676
3698
  } & {
3677
3699
  maxCount?: number | undefined;
3678
3700
  maxValue?: number | undefined;
3679
3701
  maxVoteOverwrites?: number | undefined;
3680
3702
  maxTotalCost?: number | undefined;
3681
3703
  costExponent?: number | undefined;
3704
+ minValue?: number | undefined;
3705
+ minTotalCost?: number | undefined;
3682
3706
  } & { [K_116 in Exclude<keyof I_1["payload"]["newProcess"]["process"]["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
3683
3707
  censusOrigin?: CensusOrigin | undefined;
3684
3708
  results?: ({
@@ -4752,6 +4776,8 @@ declare const NewProcessTx: {
4752
4776
  maxVoteOverwrites?: number | undefined;
4753
4777
  maxTotalCost?: number | undefined;
4754
4778
  costExponent?: number | undefined;
4779
+ minValue?: number | undefined;
4780
+ minTotalCost?: number | undefined;
4755
4781
  } | undefined;
4756
4782
  censusOrigin?: CensusOrigin | undefined;
4757
4783
  results?: {
@@ -4817,6 +4843,8 @@ declare const NewProcessTx: {
4817
4843
  maxVoteOverwrites?: number | undefined;
4818
4844
  maxTotalCost?: number | undefined;
4819
4845
  costExponent?: number | undefined;
4846
+ minValue?: number | undefined;
4847
+ minTotalCost?: number | undefined;
4820
4848
  } | undefined;
4821
4849
  censusOrigin?: CensusOrigin | undefined;
4822
4850
  results?: {
@@ -4886,12 +4914,16 @@ declare const NewProcessTx: {
4886
4914
  maxVoteOverwrites?: number | undefined;
4887
4915
  maxTotalCost?: number | undefined;
4888
4916
  costExponent?: number | undefined;
4917
+ minValue?: number | undefined;
4918
+ minTotalCost?: number | undefined;
4889
4919
  } & {
4890
4920
  maxCount?: number | undefined;
4891
4921
  maxValue?: number | undefined;
4892
4922
  maxVoteOverwrites?: number | undefined;
4893
4923
  maxTotalCost?: number | undefined;
4894
4924
  costExponent?: number | undefined;
4925
+ minValue?: number | undefined;
4926
+ minTotalCost?: number | undefined;
4895
4927
  } & { [K_4 in Exclude<keyof I["process"]["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
4896
4928
  censusOrigin?: CensusOrigin | undefined;
4897
4929
  results?: ({
@@ -4971,6 +5003,8 @@ declare const NewProcessTx: {
4971
5003
  maxVoteOverwrites?: number | undefined;
4972
5004
  maxTotalCost?: number | undefined;
4973
5005
  costExponent?: number | undefined;
5006
+ minValue?: number | undefined;
5007
+ minTotalCost?: number | undefined;
4974
5008
  } | undefined;
4975
5009
  censusOrigin?: CensusOrigin | undefined;
4976
5010
  results?: {
@@ -5036,6 +5070,8 @@ declare const NewProcessTx: {
5036
5070
  maxVoteOverwrites?: number | undefined;
5037
5071
  maxTotalCost?: number | undefined;
5038
5072
  costExponent?: number | undefined;
5073
+ minValue?: number | undefined;
5074
+ minTotalCost?: number | undefined;
5039
5075
  } | undefined;
5040
5076
  censusOrigin?: CensusOrigin | undefined;
5041
5077
  results?: {
@@ -5105,12 +5141,16 @@ declare const NewProcessTx: {
5105
5141
  maxVoteOverwrites?: number | undefined;
5106
5142
  maxTotalCost?: number | undefined;
5107
5143
  costExponent?: number | undefined;
5144
+ minValue?: number | undefined;
5145
+ minTotalCost?: number | undefined;
5108
5146
  } & {
5109
5147
  maxCount?: number | undefined;
5110
5148
  maxValue?: number | undefined;
5111
5149
  maxVoteOverwrites?: number | undefined;
5112
5150
  maxTotalCost?: number | undefined;
5113
5151
  costExponent?: number | undefined;
5152
+ minValue?: number | undefined;
5153
+ minTotalCost?: number | undefined;
5114
5154
  } & { [K_16 in Exclude<keyof I_1["process"]["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
5115
5155
  censusOrigin?: CensusOrigin | undefined;
5116
5156
  results?: ({
@@ -6811,6 +6851,8 @@ declare const Process: {
6811
6851
  maxVoteOverwrites?: number | undefined;
6812
6852
  maxTotalCost?: number | undefined;
6813
6853
  costExponent?: number | undefined;
6854
+ minValue?: number | undefined;
6855
+ minTotalCost?: number | undefined;
6814
6856
  } | undefined;
6815
6857
  censusOrigin?: CensusOrigin | undefined;
6816
6858
  results?: {
@@ -6880,12 +6922,16 @@ declare const Process: {
6880
6922
  maxVoteOverwrites?: number | undefined;
6881
6923
  maxTotalCost?: number | undefined;
6882
6924
  costExponent?: number | undefined;
6925
+ minValue?: number | undefined;
6926
+ minTotalCost?: number | undefined;
6883
6927
  } & {
6884
6928
  maxCount?: number | undefined;
6885
6929
  maxValue?: number | undefined;
6886
6930
  maxVoteOverwrites?: number | undefined;
6887
6931
  maxTotalCost?: number | undefined;
6888
6932
  costExponent?: number | undefined;
6933
+ minValue?: number | undefined;
6934
+ minTotalCost?: number | undefined;
6889
6935
  } & { [K_4 in Exclude<keyof I["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
6890
6936
  censusOrigin?: CensusOrigin | undefined;
6891
6937
  results?: ({
@@ -6954,6 +7000,8 @@ declare const Process: {
6954
7000
  maxVoteOverwrites?: number | undefined;
6955
7001
  maxTotalCost?: number | undefined;
6956
7002
  costExponent?: number | undefined;
7003
+ minValue?: number | undefined;
7004
+ minTotalCost?: number | undefined;
6957
7005
  } | undefined;
6958
7006
  censusOrigin?: CensusOrigin | undefined;
6959
7007
  results?: {
@@ -7023,12 +7071,16 @@ declare const Process: {
7023
7071
  maxVoteOverwrites?: number | undefined;
7024
7072
  maxTotalCost?: number | undefined;
7025
7073
  costExponent?: number | undefined;
7074
+ minValue?: number | undefined;
7075
+ minTotalCost?: number | undefined;
7026
7076
  } & {
7027
7077
  maxCount?: number | undefined;
7028
7078
  maxValue?: number | undefined;
7029
7079
  maxVoteOverwrites?: number | undefined;
7030
7080
  maxTotalCost?: number | undefined;
7031
7081
  costExponent?: number | undefined;
7082
+ minValue?: number | undefined;
7083
+ minTotalCost?: number | undefined;
7032
7084
  } & { [K_14 in Exclude<keyof I_1["voteOptions"], keyof ProcessVoteOptions>]: never; }) | undefined;
7033
7085
  censusOrigin?: CensusOrigin | undefined;
7034
7086
  results?: ({
@@ -7147,6 +7199,14 @@ interface ProcessVoteOptions {
7147
7199
  maxVoteOverwrites: number;
7148
7200
  maxTotalCost: number;
7149
7201
  costExponent: number;
7202
+ /** minValue is the smallest value a ballot field may take; 0 means no minimum. */
7203
+ minValue: number;
7204
+ /**
7205
+ * minTotalCost is the smallest total cost (sum of value^costExponent) a ballot
7206
+ * may have; 0 means no minimum. With costFromWeight it stays a constant lower
7207
+ * bound while the voter's weight is the upper one.
7208
+ */
7209
+ minTotalCost: number;
7150
7210
  }
7151
7211
  declare const ProcessVoteOptions: {
7152
7212
  encode(message: ProcessVoteOptions, writer?: _m0.Writer): _m0.Writer;
@@ -7159,12 +7219,16 @@ declare const ProcessVoteOptions: {
7159
7219
  maxVoteOverwrites?: number | undefined;
7160
7220
  maxTotalCost?: number | undefined;
7161
7221
  costExponent?: number | undefined;
7222
+ minValue?: number | undefined;
7223
+ minTotalCost?: number | undefined;
7162
7224
  } & {
7163
7225
  maxCount?: number | undefined;
7164
7226
  maxValue?: number | undefined;
7165
7227
  maxVoteOverwrites?: number | undefined;
7166
7228
  maxTotalCost?: number | undefined;
7167
7229
  costExponent?: number | undefined;
7230
+ minValue?: number | undefined;
7231
+ minTotalCost?: number | undefined;
7168
7232
  } & { [K in Exclude<keyof I, keyof ProcessVoteOptions>]: never; }>(base?: I | undefined): ProcessVoteOptions;
7169
7233
  fromPartial<I_1 extends {
7170
7234
  maxCount?: number | undefined;
@@ -7172,12 +7236,16 @@ declare const ProcessVoteOptions: {
7172
7236
  maxVoteOverwrites?: number | undefined;
7173
7237
  maxTotalCost?: number | undefined;
7174
7238
  costExponent?: number | undefined;
7239
+ minValue?: number | undefined;
7240
+ minTotalCost?: number | undefined;
7175
7241
  } & {
7176
7242
  maxCount?: number | undefined;
7177
7243
  maxValue?: number | undefined;
7178
7244
  maxVoteOverwrites?: number | undefined;
7179
7245
  maxTotalCost?: number | undefined;
7180
7246
  costExponent?: number | undefined;
7247
+ minValue?: number | undefined;
7248
+ minTotalCost?: number | undefined;
7181
7249
  } & { [K_1 in Exclude<keyof I_1, keyof ProcessVoteOptions>]: never; }>(object: I_1): ProcessVoteOptions;
7182
7250
  };
7183
7251
  interface OracleList {
@@ -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-978b96ea.js';
3
+ export { i as Vochain } from './index-f9ff5e35.js';
4
4
  import 'protobufjs/minimal';
5
5
  import './entity-e8dfcd83.js';
package/build/js/index.js CHANGED
@@ -9701,7 +9701,15 @@ var ProcessMode = {
9701
9701
  }
9702
9702
  };
9703
9703
  function createBaseProcessVoteOptions() {
9704
- return { maxCount: 0, maxValue: 0, maxVoteOverwrites: 0, maxTotalCost: 0, costExponent: 0 };
9704
+ return {
9705
+ maxCount: 0,
9706
+ maxValue: 0,
9707
+ maxVoteOverwrites: 0,
9708
+ maxTotalCost: 0,
9709
+ costExponent: 0,
9710
+ minValue: 0,
9711
+ minTotalCost: 0
9712
+ };
9705
9713
  }
9706
9714
  var ProcessVoteOptions = {
9707
9715
  encode(message, writer = import_minimal8.default.Writer.create()) {
@@ -9720,6 +9728,12 @@ var ProcessVoteOptions = {
9720
9728
  if (message.costExponent !== 0) {
9721
9729
  writer.uint32(40).uint32(message.costExponent);
9722
9730
  }
9731
+ if (message.minValue !== 0) {
9732
+ writer.uint32(48).uint32(message.minValue);
9733
+ }
9734
+ if (message.minTotalCost !== 0) {
9735
+ writer.uint32(56).uint32(message.minTotalCost);
9736
+ }
9723
9737
  return writer;
9724
9738
  },
9725
9739
  decode(input, length) {
@@ -9759,6 +9773,18 @@ var ProcessVoteOptions = {
9759
9773
  }
9760
9774
  message.costExponent = reader.uint32();
9761
9775
  continue;
9776
+ case 6:
9777
+ if (tag !== 48) {
9778
+ break;
9779
+ }
9780
+ message.minValue = reader.uint32();
9781
+ continue;
9782
+ case 7:
9783
+ if (tag !== 56) {
9784
+ break;
9785
+ }
9786
+ message.minTotalCost = reader.uint32();
9787
+ continue;
9762
9788
  }
9763
9789
  if ((tag & 7) === 4 || tag === 0) {
9764
9790
  break;
@@ -9773,7 +9799,9 @@ var ProcessVoteOptions = {
9773
9799
  maxValue: isSet8(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
9774
9800
  maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
9775
9801
  maxTotalCost: isSet8(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
9776
- costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0
9802
+ costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0,
9803
+ minValue: isSet8(object.minValue) ? globalThis.Number(object.minValue) : 0,
9804
+ minTotalCost: isSet8(object.minTotalCost) ? globalThis.Number(object.minTotalCost) : 0
9777
9805
  };
9778
9806
  },
9779
9807
  toJSON(message) {
@@ -9793,6 +9821,12 @@ var ProcessVoteOptions = {
9793
9821
  if (message.costExponent !== 0) {
9794
9822
  obj.costExponent = Math.round(message.costExponent);
9795
9823
  }
9824
+ if (message.minValue !== 0) {
9825
+ obj.minValue = Math.round(message.minValue);
9826
+ }
9827
+ if (message.minTotalCost !== 0) {
9828
+ obj.minTotalCost = Math.round(message.minTotalCost);
9829
+ }
9796
9830
  return obj;
9797
9831
  },
9798
9832
  create(base) {
@@ -9805,6 +9839,8 @@ var ProcessVoteOptions = {
9805
9839
  message.maxVoteOverwrites = object.maxVoteOverwrites ?? 0;
9806
9840
  message.maxTotalCost = object.maxTotalCost ?? 0;
9807
9841
  message.costExponent = object.costExponent ?? 0;
9842
+ message.minValue = object.minValue ?? 0;
9843
+ message.minTotalCost = object.minTotalCost ?? 0;
9808
9844
  return message;
9809
9845
  }
9810
9846
  };
@@ -9697,7 +9697,15 @@ var ProcessMode = {
9697
9697
  }
9698
9698
  };
9699
9699
  function createBaseProcessVoteOptions() {
9700
- return { maxCount: 0, maxValue: 0, maxVoteOverwrites: 0, maxTotalCost: 0, costExponent: 0 };
9700
+ return {
9701
+ maxCount: 0,
9702
+ maxValue: 0,
9703
+ maxVoteOverwrites: 0,
9704
+ maxTotalCost: 0,
9705
+ costExponent: 0,
9706
+ minValue: 0,
9707
+ minTotalCost: 0
9708
+ };
9701
9709
  }
9702
9710
  var ProcessVoteOptions = {
9703
9711
  encode(message, writer = import_minimal8.default.Writer.create()) {
@@ -9716,6 +9724,12 @@ var ProcessVoteOptions = {
9716
9724
  if (message.costExponent !== 0) {
9717
9725
  writer.uint32(40).uint32(message.costExponent);
9718
9726
  }
9727
+ if (message.minValue !== 0) {
9728
+ writer.uint32(48).uint32(message.minValue);
9729
+ }
9730
+ if (message.minTotalCost !== 0) {
9731
+ writer.uint32(56).uint32(message.minTotalCost);
9732
+ }
9719
9733
  return writer;
9720
9734
  },
9721
9735
  decode(input, length) {
@@ -9755,6 +9769,18 @@ var ProcessVoteOptions = {
9755
9769
  }
9756
9770
  message.costExponent = reader.uint32();
9757
9771
  continue;
9772
+ case 6:
9773
+ if (tag !== 48) {
9774
+ break;
9775
+ }
9776
+ message.minValue = reader.uint32();
9777
+ continue;
9778
+ case 7:
9779
+ if (tag !== 56) {
9780
+ break;
9781
+ }
9782
+ message.minTotalCost = reader.uint32();
9783
+ continue;
9758
9784
  }
9759
9785
  if ((tag & 7) === 4 || tag === 0) {
9760
9786
  break;
@@ -9769,7 +9795,9 @@ var ProcessVoteOptions = {
9769
9795
  maxValue: isSet8(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
9770
9796
  maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
9771
9797
  maxTotalCost: isSet8(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
9772
- costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0
9798
+ costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0,
9799
+ minValue: isSet8(object.minValue) ? globalThis.Number(object.minValue) : 0,
9800
+ minTotalCost: isSet8(object.minTotalCost) ? globalThis.Number(object.minTotalCost) : 0
9773
9801
  };
9774
9802
  },
9775
9803
  toJSON(message) {
@@ -9789,6 +9817,12 @@ var ProcessVoteOptions = {
9789
9817
  if (message.costExponent !== 0) {
9790
9818
  obj.costExponent = Math.round(message.costExponent);
9791
9819
  }
9820
+ if (message.minValue !== 0) {
9821
+ obj.minValue = Math.round(message.minValue);
9822
+ }
9823
+ if (message.minTotalCost !== 0) {
9824
+ obj.minTotalCost = Math.round(message.minTotalCost);
9825
+ }
9792
9826
  return obj;
9793
9827
  },
9794
9828
  create(base) {
@@ -9801,6 +9835,8 @@ var ProcessVoteOptions = {
9801
9835
  message.maxVoteOverwrites = object.maxVoteOverwrites ?? 0;
9802
9836
  message.maxTotalCost = object.maxTotalCost ?? 0;
9803
9837
  message.costExponent = object.costExponent ?? 0;
9838
+ message.minValue = object.minValue ?? 0;
9839
+ message.minTotalCost = object.minTotalCost ?? 0;
9804
9840
  return message;
9805
9841
  }
9806
9842
  };
@@ -1,2 +1,2 @@
1
- export { B as Account, G as AdminTx, q as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, M as CollectFaucetTx, X as EnvelopeType, Q as FaucetPackage, O as FaucetPayload, N as NewProcessTx, _ as OracleList, W as Process, a4 as ProcessEndingList, Y as ProcessMode, a2 as ProcessResult, P as ProcessStatus, Z as ProcessVoteOptions, k as Proof, r as ProofArbo, x as ProofArbo_KeyType, u as ProofArbo_Type, l as ProofCA, m as ProofCA_Type, A as ProofZkSNARK, a3 as QuestionResult, R as RegisterKeyTx, L as RegisterSIKTx, K as SIKTx, H as SendTokensTx, J as SetAccountTx, U as SetKeykeeperTx, F as SetProcessTx, I as SetTransactionCostsTx, E as SignedTx, S as SourceNetworkId, a5 as StoredKeys, a1 as TendermintHeader, D as Tx, T as TxType, a0 as Validator, $ as ValidatorList, V as VoteEnvelope, d as censusOriginFromJSON, e as censusOriginToJSON, h as census_TypeFromJSON, j as census_TypeToJSON, p as processStatusFromJSON, b as processStatusToJSON, y as proofArbo_KeyTypeFromJSON, z as proofArbo_KeyTypeToJSON, v as proofArbo_TypeFromJSON, w as proofArbo_TypeToJSON, n as proofCA_TypeFromJSON, o as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-978b96ea.js';
1
+ export { B as Account, G as AdminTx, q as CAbundle, f as Census, C as CensusOrigin, g as Census_Type, M as CollectFaucetTx, X as EnvelopeType, Q as FaucetPackage, O as FaucetPayload, N as NewProcessTx, _ as OracleList, W as Process, a4 as ProcessEndingList, Y as ProcessMode, a2 as ProcessResult, P as ProcessStatus, Z as ProcessVoteOptions, k as Proof, r as ProofArbo, x as ProofArbo_KeyType, u as ProofArbo_Type, l as ProofCA, m as ProofCA_Type, A as ProofZkSNARK, a3 as QuestionResult, R as RegisterKeyTx, L as RegisterSIKTx, K as SIKTx, H as SendTokensTx, J as SetAccountTx, U as SetKeykeeperTx, F as SetProcessTx, I as SetTransactionCostsTx, E as SignedTx, S as SourceNetworkId, a5 as StoredKeys, a1 as TendermintHeader, D as Tx, T as TxType, a0 as Validator, $ as ValidatorList, V as VoteEnvelope, d as censusOriginFromJSON, e as censusOriginToJSON, h as census_TypeFromJSON, j as census_TypeToJSON, p as processStatusFromJSON, b as processStatusToJSON, y as proofArbo_KeyTypeFromJSON, z as proofArbo_KeyTypeToJSON, v as proofArbo_TypeFromJSON, w as proofArbo_TypeToJSON, n as proofCA_TypeFromJSON, o as proofCA_TypeToJSON, s as sourceNetworkIdFromJSON, c as sourceNetworkIdToJSON, t as txTypeFromJSON, a as txTypeToJSON } from '../index-f9ff5e35.js';
2
2
  import 'protobufjs/minimal';
@@ -5434,7 +5434,15 @@ var ProcessMode = {
5434
5434
  }
5435
5435
  };
5436
5436
  function createBaseProcessVoteOptions() {
5437
- return { maxCount: 0, maxValue: 0, maxVoteOverwrites: 0, maxTotalCost: 0, costExponent: 0 };
5437
+ return {
5438
+ maxCount: 0,
5439
+ maxValue: 0,
5440
+ maxVoteOverwrites: 0,
5441
+ maxTotalCost: 0,
5442
+ costExponent: 0,
5443
+ minValue: 0,
5444
+ minTotalCost: 0
5445
+ };
5438
5446
  }
5439
5447
  var ProcessVoteOptions = {
5440
5448
  encode(message, writer = import_minimal.default.Writer.create()) {
@@ -5453,6 +5461,12 @@ var ProcessVoteOptions = {
5453
5461
  if (message.costExponent !== 0) {
5454
5462
  writer.uint32(40).uint32(message.costExponent);
5455
5463
  }
5464
+ if (message.minValue !== 0) {
5465
+ writer.uint32(48).uint32(message.minValue);
5466
+ }
5467
+ if (message.minTotalCost !== 0) {
5468
+ writer.uint32(56).uint32(message.minTotalCost);
5469
+ }
5456
5470
  return writer;
5457
5471
  },
5458
5472
  decode(input, length) {
@@ -5492,6 +5506,18 @@ var ProcessVoteOptions = {
5492
5506
  }
5493
5507
  message.costExponent = reader.uint32();
5494
5508
  continue;
5509
+ case 6:
5510
+ if (tag !== 48) {
5511
+ break;
5512
+ }
5513
+ message.minValue = reader.uint32();
5514
+ continue;
5515
+ case 7:
5516
+ if (tag !== 56) {
5517
+ break;
5518
+ }
5519
+ message.minTotalCost = reader.uint32();
5520
+ continue;
5495
5521
  }
5496
5522
  if ((tag & 7) === 4 || tag === 0) {
5497
5523
  break;
@@ -5506,7 +5532,9 @@ var ProcessVoteOptions = {
5506
5532
  maxValue: isSet(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
5507
5533
  maxVoteOverwrites: isSet(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
5508
5534
  maxTotalCost: isSet(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
5509
- costExponent: isSet(object.costExponent) ? globalThis.Number(object.costExponent) : 0
5535
+ costExponent: isSet(object.costExponent) ? globalThis.Number(object.costExponent) : 0,
5536
+ minValue: isSet(object.minValue) ? globalThis.Number(object.minValue) : 0,
5537
+ minTotalCost: isSet(object.minTotalCost) ? globalThis.Number(object.minTotalCost) : 0
5510
5538
  };
5511
5539
  },
5512
5540
  toJSON(message) {
@@ -5526,6 +5554,12 @@ var ProcessVoteOptions = {
5526
5554
  if (message.costExponent !== 0) {
5527
5555
  obj.costExponent = Math.round(message.costExponent);
5528
5556
  }
5557
+ if (message.minValue !== 0) {
5558
+ obj.minValue = Math.round(message.minValue);
5559
+ }
5560
+ if (message.minTotalCost !== 0) {
5561
+ obj.minTotalCost = Math.round(message.minTotalCost);
5562
+ }
5529
5563
  return obj;
5530
5564
  },
5531
5565
  create(base) {
@@ -5538,6 +5572,8 @@ var ProcessVoteOptions = {
5538
5572
  message.maxVoteOverwrites = object.maxVoteOverwrites ?? 0;
5539
5573
  message.maxTotalCost = object.maxTotalCost ?? 0;
5540
5574
  message.costExponent = object.costExponent ?? 0;
5575
+ message.minValue = object.minValue ?? 0;
5576
+ message.minTotalCost = object.minTotalCost ?? 0;
5541
5577
  return message;
5542
5578
  }
5543
5579
  };
@@ -5370,7 +5370,15 @@ var ProcessMode = {
5370
5370
  }
5371
5371
  };
5372
5372
  function createBaseProcessVoteOptions() {
5373
- return { maxCount: 0, maxValue: 0, maxVoteOverwrites: 0, maxTotalCost: 0, costExponent: 0 };
5373
+ return {
5374
+ maxCount: 0,
5375
+ maxValue: 0,
5376
+ maxVoteOverwrites: 0,
5377
+ maxTotalCost: 0,
5378
+ costExponent: 0,
5379
+ minValue: 0,
5380
+ minTotalCost: 0
5381
+ };
5374
5382
  }
5375
5383
  var ProcessVoteOptions = {
5376
5384
  encode(message, writer = import_minimal.default.Writer.create()) {
@@ -5389,6 +5397,12 @@ var ProcessVoteOptions = {
5389
5397
  if (message.costExponent !== 0) {
5390
5398
  writer.uint32(40).uint32(message.costExponent);
5391
5399
  }
5400
+ if (message.minValue !== 0) {
5401
+ writer.uint32(48).uint32(message.minValue);
5402
+ }
5403
+ if (message.minTotalCost !== 0) {
5404
+ writer.uint32(56).uint32(message.minTotalCost);
5405
+ }
5392
5406
  return writer;
5393
5407
  },
5394
5408
  decode(input, length) {
@@ -5428,6 +5442,18 @@ var ProcessVoteOptions = {
5428
5442
  }
5429
5443
  message.costExponent = reader.uint32();
5430
5444
  continue;
5445
+ case 6:
5446
+ if (tag !== 48) {
5447
+ break;
5448
+ }
5449
+ message.minValue = reader.uint32();
5450
+ continue;
5451
+ case 7:
5452
+ if (tag !== 56) {
5453
+ break;
5454
+ }
5455
+ message.minTotalCost = reader.uint32();
5456
+ continue;
5431
5457
  }
5432
5458
  if ((tag & 7) === 4 || tag === 0) {
5433
5459
  break;
@@ -5442,7 +5468,9 @@ var ProcessVoteOptions = {
5442
5468
  maxValue: isSet(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
5443
5469
  maxVoteOverwrites: isSet(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
5444
5470
  maxTotalCost: isSet(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
5445
- costExponent: isSet(object.costExponent) ? globalThis.Number(object.costExponent) : 0
5471
+ costExponent: isSet(object.costExponent) ? globalThis.Number(object.costExponent) : 0,
5472
+ minValue: isSet(object.minValue) ? globalThis.Number(object.minValue) : 0,
5473
+ minTotalCost: isSet(object.minTotalCost) ? globalThis.Number(object.minTotalCost) : 0
5446
5474
  };
5447
5475
  },
5448
5476
  toJSON(message) {
@@ -5462,6 +5490,12 @@ var ProcessVoteOptions = {
5462
5490
  if (message.costExponent !== 0) {
5463
5491
  obj.costExponent = Math.round(message.costExponent);
5464
5492
  }
5493
+ if (message.minValue !== 0) {
5494
+ obj.minValue = Math.round(message.minValue);
5495
+ }
5496
+ if (message.minTotalCost !== 0) {
5497
+ obj.minTotalCost = Math.round(message.minTotalCost);
5498
+ }
5465
5499
  return obj;
5466
5500
  },
5467
5501
  create(base) {
@@ -5474,6 +5508,8 @@ var ProcessVoteOptions = {
5474
5508
  message.maxVoteOverwrites = object.maxVoteOverwrites ?? 0;
5475
5509
  message.maxTotalCost = object.maxTotalCost ?? 0;
5476
5510
  message.costExponent = object.costExponent ?? 0;
5511
+ message.minValue = object.minValue ?? 0;
5512
+ message.minTotalCost = object.minTotalCost ?? 0;
5477
5513
  return message;
5478
5514
  }
5479
5515
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocdoni/proto",
3
- "version": "1.17.0",
3
+ "version": "1.18.0",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",