@vocdoni/proto 1.15.3 → 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.
@@ -1199,7 +1199,11 @@ var require_reader = __commonJS({
1199
1199
  this.pos += length;
1200
1200
  if (Array.isArray(this.buf))
1201
1201
  return this.buf.slice(start, end);
1202
- return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
1202
+ if (start === end) {
1203
+ var nativeBuffer = util.Buffer;
1204
+ return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
1205
+ }
1206
+ return this._slice.call(this.buf, start, end);
1203
1207
  };
1204
1208
  Reader.prototype.string = function read_string() {
1205
1209
  var bytes = this.bytes();
@@ -1472,7 +1476,9 @@ var EntityMetadataStore = {
1472
1476
  return message;
1473
1477
  },
1474
1478
  fromJSON(object) {
1475
- return { items: Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : [] };
1479
+ return {
1480
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => EntityMetadata.fromJSON(e)) : []
1481
+ };
1476
1482
  },
1477
1483
  toJSON(message) {
1478
1484
  const obj = {};
@@ -1657,8 +1663,8 @@ var EntityMetadata = {
1657
1663
  },
1658
1664
  fromJSON(object) {
1659
1665
  return {
1660
- version: isSet(object.version) ? String(object.version) : "",
1661
- languages: Array.isArray(object?.languages) ? object.languages.map((e) => String(e)) : [],
1666
+ version: isSet(object.version) ? globalThis.String(object.version) : "",
1667
+ languages: globalThis.Array.isArray(object?.languages) ? object.languages.map((e) => globalThis.String(e)) : [],
1662
1668
  name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
1663
1669
  acc[key] = String(value);
1664
1670
  return acc;
@@ -1673,11 +1679,11 @@ var EntityMetadata = {
1673
1679
  return acc;
1674
1680
  }, {}) : {},
1675
1681
  media: isSet(object.media) ? EntityMetadata_Media.fromJSON(object.media) : void 0,
1676
- actions: Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
1677
- bootEntities: Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
1678
- fallbackBootNodeEntities: Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
1679
- trustedEntities: Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1680
- censusServiceManagedEntities: Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1682
+ actions: globalThis.Array.isArray(object?.actions) ? object.actions.map((e) => EntityMetadata_Action.fromJSON(e)) : [],
1683
+ bootEntities: globalThis.Array.isArray(object?.bootEntities) ? object.bootEntities.map((e) => EntityReference.fromJSON(e)) : [],
1684
+ fallbackBootNodeEntities: globalThis.Array.isArray(object?.fallbackBootNodeEntities) ? object.fallbackBootNodeEntities.map((e) => EntityReference.fromJSON(e)) : [],
1685
+ trustedEntities: globalThis.Array.isArray(object?.trustedEntities) ? object.trustedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1686
+ censusServiceManagedEntities: globalThis.Array.isArray(object?.censusServiceManagedEntities) ? object.censusServiceManagedEntities.map((e) => EntityReference.fromJSON(e)) : [],
1681
1687
  meta: isObject(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
1682
1688
  acc[key] = String(value);
1683
1689
  return acc;
@@ -1760,14 +1766,14 @@ var EntityMetadata = {
1760
1766
  message.languages = object.languages?.map((e) => e) || [];
1761
1767
  message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
1762
1768
  if (value !== void 0) {
1763
- acc[key] = String(value);
1769
+ acc[key] = globalThis.String(value);
1764
1770
  }
1765
1771
  return acc;
1766
1772
  }, {});
1767
1773
  message.description = Object.entries(object.description ?? {}).reduce(
1768
1774
  (acc, [key, value]) => {
1769
1775
  if (value !== void 0) {
1770
- acc[key] = String(value);
1776
+ acc[key] = globalThis.String(value);
1771
1777
  }
1772
1778
  return acc;
1773
1779
  },
@@ -1776,7 +1782,7 @@ var EntityMetadata = {
1776
1782
  message.votingProcesses = object.votingProcesses !== void 0 && object.votingProcesses !== null ? EntityMetadata_VotingProcesses.fromPartial(object.votingProcesses) : void 0;
1777
1783
  message.newsFeed = Object.entries(object.newsFeed ?? {}).reduce((acc, [key, value]) => {
1778
1784
  if (value !== void 0) {
1779
- acc[key] = String(value);
1785
+ acc[key] = globalThis.String(value);
1780
1786
  }
1781
1787
  return acc;
1782
1788
  }, {});
@@ -1788,7 +1794,7 @@ var EntityMetadata = {
1788
1794
  message.censusServiceManagedEntities = object.censusServiceManagedEntities?.map((e) => EntityReference.fromPartial(e)) || [];
1789
1795
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
1790
1796
  if (value !== void 0) {
1791
- acc[key] = String(value);
1797
+ acc[key] = globalThis.String(value);
1792
1798
  }
1793
1799
  return acc;
1794
1800
  }, {});
@@ -1836,7 +1842,10 @@ var EntityMetadata_NameEntry = {
1836
1842
  return message;
1837
1843
  },
1838
1844
  fromJSON(object) {
1839
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1845
+ return {
1846
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1847
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
1848
+ };
1840
1849
  },
1841
1850
  toJSON(message) {
1842
1851
  const obj = {};
@@ -1899,7 +1908,10 @@ var EntityMetadata_DescriptionEntry = {
1899
1908
  return message;
1900
1909
  },
1901
1910
  fromJSON(object) {
1902
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
1911
+ return {
1912
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
1913
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
1914
+ };
1903
1915
  },
1904
1916
  toJSON(message) {
1905
1917
  const obj = {};
@@ -1963,8 +1975,8 @@ var EntityMetadata_VotingProcesses = {
1963
1975
  },
1964
1976
  fromJSON(object) {
1965
1977
  return {
1966
- active: Array.isArray(object?.active) ? object.active.map((e) => String(e)) : [],
1967
- ended: Array.isArray(object?.ended) ? object.ended.map((e) => String(e)) : []
1978
+ active: globalThis.Array.isArray(object?.active) ? object.active.map((e) => globalThis.String(e)) : [],
1979
+ ended: globalThis.Array.isArray(object?.ended) ? object.ended.map((e) => globalThis.String(e)) : []
1968
1980
  };
1969
1981
  },
1970
1982
  toJSON(message) {
@@ -2028,7 +2040,10 @@ var EntityMetadata_NewsFeedEntry = {
2028
2040
  return message;
2029
2041
  },
2030
2042
  fromJSON(object) {
2031
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2043
+ return {
2044
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2045
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2046
+ };
2032
2047
  },
2033
2048
  toJSON(message) {
2034
2049
  const obj = {};
@@ -2092,8 +2107,8 @@ var EntityMetadata_Media = {
2092
2107
  },
2093
2108
  fromJSON(object) {
2094
2109
  return {
2095
- avatar: isSet(object.avatar) ? String(object.avatar) : "",
2096
- header: isSet(object.header) ? String(object.header) : ""
2110
+ avatar: isSet(object.avatar) ? globalThis.String(object.avatar) : "",
2111
+ header: isSet(object.header) ? globalThis.String(object.header) : ""
2097
2112
  };
2098
2113
  },
2099
2114
  toJSON(message) {
@@ -2197,15 +2212,15 @@ var EntityMetadata_Action = {
2197
2212
  },
2198
2213
  fromJSON(object) {
2199
2214
  return {
2200
- type: isSet(object.type) ? String(object.type) : "",
2201
- actionKey: isSet(object.actionKey) ? String(object.actionKey) : "",
2215
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
2216
+ actionKey: isSet(object.actionKey) ? globalThis.String(object.actionKey) : "",
2202
2217
  name: isObject(object.name) ? Object.entries(object.name).reduce((acc, [key, value]) => {
2203
2218
  acc[key] = String(value);
2204
2219
  return acc;
2205
2220
  }, {}) : {},
2206
- visible: isSet(object.visible) ? String(object.visible) : "",
2207
- url: isSet(object.url) ? String(object.url) : "",
2208
- imageSources: Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
2221
+ visible: isSet(object.visible) ? globalThis.String(object.visible) : "",
2222
+ url: isSet(object.url) ? globalThis.String(object.url) : "",
2223
+ imageSources: globalThis.Array.isArray(object?.imageSources) ? object.imageSources.map((e) => EntityMetadata_Action_ImageSource.fromJSON(e)) : []
2209
2224
  };
2210
2225
  },
2211
2226
  toJSON(message) {
@@ -2245,7 +2260,7 @@ var EntityMetadata_Action = {
2245
2260
  message.actionKey = object.actionKey ?? "";
2246
2261
  message.name = Object.entries(object.name ?? {}).reduce((acc, [key, value]) => {
2247
2262
  if (value !== void 0) {
2248
- acc[key] = String(value);
2263
+ acc[key] = globalThis.String(value);
2249
2264
  }
2250
2265
  return acc;
2251
2266
  }, {});
@@ -2296,7 +2311,10 @@ var EntityMetadata_Action_NameEntry = {
2296
2311
  return message;
2297
2312
  },
2298
2313
  fromJSON(object) {
2299
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2314
+ return {
2315
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2316
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2317
+ };
2300
2318
  },
2301
2319
  toJSON(message) {
2302
2320
  const obj = {};
@@ -2390,10 +2408,10 @@ var EntityMetadata_Action_ImageSource = {
2390
2408
  },
2391
2409
  fromJSON(object) {
2392
2410
  return {
2393
- type: isSet(object.type) ? String(object.type) : "",
2394
- name: isSet(object.name) ? String(object.name) : "",
2395
- orientation: isSet(object.orientation) ? String(object.orientation) : "",
2396
- overlay: isSet(object.overlay) ? String(object.overlay) : "",
2411
+ type: isSet(object.type) ? globalThis.String(object.type) : "",
2412
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
2413
+ orientation: isSet(object.orientation) ? globalThis.String(object.orientation) : "",
2414
+ overlay: isSet(object.overlay) ? globalThis.String(object.overlay) : "",
2397
2415
  caption: isObject(object.caption) ? Object.entries(object.caption).reduce((acc, [key, value]) => {
2398
2416
  acc[key] = String(value);
2399
2417
  return acc;
@@ -2436,7 +2454,7 @@ var EntityMetadata_Action_ImageSource = {
2436
2454
  message.overlay = object.overlay ?? "";
2437
2455
  message.caption = Object.entries(object.caption ?? {}).reduce((acc, [key, value]) => {
2438
2456
  if (value !== void 0) {
2439
- acc[key] = String(value);
2457
+ acc[key] = globalThis.String(value);
2440
2458
  }
2441
2459
  return acc;
2442
2460
  }, {});
@@ -2484,7 +2502,10 @@ var EntityMetadata_Action_ImageSource_CaptionEntry = {
2484
2502
  return message;
2485
2503
  },
2486
2504
  fromJSON(object) {
2487
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2505
+ return {
2506
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2507
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2508
+ };
2488
2509
  },
2489
2510
  toJSON(message) {
2490
2511
  const obj = {};
@@ -2547,7 +2568,10 @@ var EntityMetadata_MetaEntry = {
2547
2568
  return message;
2548
2569
  },
2549
2570
  fromJSON(object) {
2550
- return { key: isSet(object.key) ? String(object.key) : "", value: isSet(object.value) ? String(object.value) : "" };
2571
+ return {
2572
+ key: isSet(object.key) ? globalThis.String(object.key) : "",
2573
+ value: isSet(object.value) ? globalThis.String(object.value) : ""
2574
+ };
2551
2575
  },
2552
2576
  toJSON(message) {
2553
2577
  const obj = {};
@@ -2611,8 +2635,8 @@ var EntityReference = {
2611
2635
  },
2612
2636
  fromJSON(object) {
2613
2637
  return {
2614
- entityId: isSet(object.entityId) ? String(object.entityId) : "",
2615
- entryPoints: Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => String(e)) : []
2638
+ entityId: isSet(object.entityId) ? globalThis.String(object.entityId) : "",
2639
+ entryPoints: globalThis.Array.isArray(object?.entryPoints) ? object.entryPoints.map((e) => globalThis.String(e)) : []
2616
2640
  };
2617
2641
  },
2618
2642
  toJSON(message) {
@@ -2743,8 +2767,8 @@ var Wallet = {
2743
2767
  fromJSON(object) {
2744
2768
  return {
2745
2769
  encryptedMnemonic: isSet2(object.encryptedMnemonic) ? bytesFromBase64(object.encryptedMnemonic) : new Uint8Array(0),
2746
- hdPath: isSet2(object.hdPath) ? String(object.hdPath) : "",
2747
- locale: isSet2(object.locale) ? String(object.locale) : "",
2770
+ hdPath: isSet2(object.hdPath) ? globalThis.String(object.hdPath) : "",
2771
+ locale: isSet2(object.locale) ? globalThis.String(object.locale) : "",
2748
2772
  authMethod: isSet2(object.authMethod) ? wallet_AuthMethodFromJSON(object.authMethod) : 0
2749
2773
  };
2750
2774
  },
@@ -2776,26 +2800,11 @@ var Wallet = {
2776
2800
  return message;
2777
2801
  }
2778
2802
  };
2779
- var tsProtoGlobalThis = (() => {
2780
- if (typeof globalThis !== "undefined") {
2781
- return globalThis;
2782
- }
2783
- if (typeof self !== "undefined") {
2784
- return self;
2785
- }
2786
- if (typeof window !== "undefined") {
2787
- return window;
2788
- }
2789
- if (typeof global !== "undefined") {
2790
- return global;
2791
- }
2792
- throw "Unable to locate global object";
2793
- })();
2794
2803
  function bytesFromBase64(b64) {
2795
- if (tsProtoGlobalThis.Buffer) {
2796
- return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
2804
+ if (globalThis.Buffer) {
2805
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2797
2806
  } else {
2798
- const bin = tsProtoGlobalThis.atob(b64);
2807
+ const bin = globalThis.atob(b64);
2799
2808
  const arr = new Uint8Array(bin.length);
2800
2809
  for (let i = 0; i < bin.length; ++i) {
2801
2810
  arr[i] = bin.charCodeAt(i);
@@ -2804,14 +2813,14 @@ function bytesFromBase64(b64) {
2804
2813
  }
2805
2814
  }
2806
2815
  function base64FromBytes(arr) {
2807
- if (tsProtoGlobalThis.Buffer) {
2808
- return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
2816
+ if (globalThis.Buffer) {
2817
+ return globalThis.Buffer.from(arr).toString("base64");
2809
2818
  } else {
2810
2819
  const bin = [];
2811
2820
  arr.forEach((byte) => {
2812
- bin.push(String.fromCharCode(byte));
2821
+ bin.push(globalThis.String.fromCharCode(byte));
2813
2822
  });
2814
- return tsProtoGlobalThis.btoa(bin.join(""));
2823
+ return globalThis.btoa(bin.join(""));
2815
2824
  }
2816
2825
  }
2817
2826
  function isSet2(value) {
@@ -2851,7 +2860,7 @@ var AccountsStore = {
2851
2860
  return message;
2852
2861
  },
2853
2862
  fromJSON(object) {
2854
- return { items: Array.isArray(object?.items) ? object.items.map((e) => Account.fromJSON(e)) : [] };
2863
+ return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Account.fromJSON(e)) : [] };
2855
2864
  },
2856
2865
  toJSON(message) {
2857
2866
  const obj = {};
@@ -2950,10 +2959,10 @@ var Account = {
2950
2959
  },
2951
2960
  fromJSON(object) {
2952
2961
  return {
2953
- name: isSet3(object.name) ? String(object.name) : "",
2962
+ name: isSet3(object.name) ? globalThis.String(object.name) : "",
2954
2963
  wallet: isSet3(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
2955
- address: isSet3(object.address) ? String(object.address) : "",
2956
- hasBackup: isSet3(object.hasBackup) ? Boolean(object.hasBackup) : false,
2964
+ address: isSet3(object.address) ? globalThis.String(object.address) : "",
2965
+ hasBackup: isSet3(object.hasBackup) ? globalThis.Boolean(object.hasBackup) : false,
2957
2966
  extra: isSet3(object.extra) ? Account_Extra.fromJSON(object.extra) : void 0,
2958
2967
  meta: isObject2(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
2959
2968
  acc[key] = String(value);
@@ -3001,7 +3010,7 @@ var Account = {
3001
3010
  message.extra = object.extra !== void 0 && object.extra !== null ? Account_Extra.fromPartial(object.extra) : void 0;
3002
3011
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
3003
3012
  if (value !== void 0) {
3004
- acc[key] = String(value);
3013
+ acc[key] = globalThis.String(value);
3005
3014
  }
3006
3015
  return acc;
3007
3016
  }, {});
@@ -3050,8 +3059,8 @@ var Account_AppVoter = {
3050
3059
  },
3051
3060
  fromJSON(object) {
3052
3061
  return {
3053
- appAnalyticsID: isSet3(object.appAnalyticsID) ? String(object.appAnalyticsID) : "",
3054
- entities: Array.isArray(object?.entities) ? object.entities.map((e) => EntityReference.fromJSON(e)) : []
3062
+ appAnalyticsID: isSet3(object.appAnalyticsID) ? globalThis.String(object.appAnalyticsID) : "",
3063
+ entities: globalThis.Array.isArray(object?.entities) ? object.entities.map((e) => EntityReference.fromJSON(e)) : []
3055
3064
  };
3056
3065
  },
3057
3066
  toJSON(message) {
@@ -3106,7 +3115,7 @@ var Account_WebEntity = {
3106
3115
  return message;
3107
3116
  },
3108
3117
  fromJSON(object) {
3109
- return { webAnalyticsID: isSet3(object.webAnalyticsID) ? String(object.webAnalyticsID) : "" };
3118
+ return { webAnalyticsID: isSet3(object.webAnalyticsID) ? globalThis.String(object.webAnalyticsID) : "" };
3110
3119
  },
3111
3120
  toJSON(message) {
3112
3121
  const obj = {};
@@ -3236,7 +3245,10 @@ var Account_MetaEntry = {
3236
3245
  return message;
3237
3246
  },
3238
3247
  fromJSON(object) {
3239
- return { key: isSet3(object.key) ? String(object.key) : "", value: isSet3(object.value) ? String(object.value) : "" };
3248
+ return {
3249
+ key: isSet3(object.key) ? globalThis.String(object.key) : "",
3250
+ value: isSet3(object.value) ? globalThis.String(object.value) : ""
3251
+ };
3240
3252
  },
3241
3253
  toJSON(message) {
3242
3254
  const obj = {};
@@ -3469,8 +3481,8 @@ var WalletBackup = {
3469
3481
  },
3470
3482
  fromJSON(object) {
3471
3483
  return {
3472
- name: isSet4(object.name) ? String(object.name) : "",
3473
- timestamp: isSet4(object.timestamp) ? Number(object.timestamp) : 0,
3484
+ name: isSet4(object.name) ? globalThis.String(object.name) : "",
3485
+ timestamp: isSet4(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
3474
3486
  wallet: isSet4(object.wallet) ? Wallet.fromJSON(object.wallet) : void 0,
3475
3487
  passphraseRecovery: isSet4(object.passphraseRecovery) ? WalletBackup_Recovery.fromJSON(object.passphraseRecovery) : void 0
3476
3488
  };
@@ -3554,7 +3566,7 @@ var WalletBackup_Recovery = {
3554
3566
  },
3555
3567
  fromJSON(object) {
3556
3568
  return {
3557
- questionIds: Array.isArray(object?.questionIds) ? object.questionIds.map((e) => walletBackup_Recovery_QuestionEnumFromJSON(e)) : [],
3569
+ questionIds: globalThis.Array.isArray(object?.questionIds) ? object.questionIds.map((e) => walletBackup_Recovery_QuestionEnumFromJSON(e)) : [],
3558
3570
  encryptedPassphrase: isSet4(object.encryptedPassphrase) ? bytesFromBase642(object.encryptedPassphrase) : new Uint8Array(0)
3559
3571
  };
3560
3572
  },
@@ -3578,26 +3590,11 @@ var WalletBackup_Recovery = {
3578
3590
  return message;
3579
3591
  }
3580
3592
  };
3581
- var tsProtoGlobalThis2 = (() => {
3582
- if (typeof globalThis !== "undefined") {
3583
- return globalThis;
3584
- }
3585
- if (typeof self !== "undefined") {
3586
- return self;
3587
- }
3588
- if (typeof window !== "undefined") {
3589
- return window;
3590
- }
3591
- if (typeof global !== "undefined") {
3592
- return global;
3593
- }
3594
- throw "Unable to locate global object";
3595
- })();
3596
3593
  function bytesFromBase642(b64) {
3597
- if (tsProtoGlobalThis2.Buffer) {
3598
- return Uint8Array.from(tsProtoGlobalThis2.Buffer.from(b64, "base64"));
3594
+ if (globalThis.Buffer) {
3595
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
3599
3596
  } else {
3600
- const bin = tsProtoGlobalThis2.atob(b64);
3597
+ const bin = globalThis.atob(b64);
3601
3598
  const arr = new Uint8Array(bin.length);
3602
3599
  for (let i = 0; i < bin.length; ++i) {
3603
3600
  arr[i] = bin.charCodeAt(i);
@@ -3606,19 +3603,19 @@ function bytesFromBase642(b64) {
3606
3603
  }
3607
3604
  }
3608
3605
  function base64FromBytes2(arr) {
3609
- if (tsProtoGlobalThis2.Buffer) {
3610
- return tsProtoGlobalThis2.Buffer.from(arr).toString("base64");
3606
+ if (globalThis.Buffer) {
3607
+ return globalThis.Buffer.from(arr).toString("base64");
3611
3608
  } else {
3612
3609
  const bin = [];
3613
3610
  arr.forEach((byte) => {
3614
- bin.push(String.fromCharCode(byte));
3611
+ bin.push(globalThis.String.fromCharCode(byte));
3615
3612
  });
3616
- return tsProtoGlobalThis2.btoa(bin.join(""));
3613
+ return globalThis.btoa(bin.join(""));
3617
3614
  }
3618
3615
  }
3619
3616
  function longToNumber(long) {
3620
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
3621
- throw new tsProtoGlobalThis2.Error("Value is larger than Number.MAX_SAFE_INTEGER");
3617
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
3618
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
3622
3619
  }
3623
3620
  return long.toNumber();
3624
3621
  }
@@ -3772,7 +3769,7 @@ var BootNodeGateways = {
3772
3769
  message.rinkeby = object.rinkeby !== void 0 && object.rinkeby !== null ? BootNodeGateways_NetworkNodes.fromPartial(object.rinkeby) : void 0;
3773
3770
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
3774
3771
  if (value !== void 0) {
3775
- acc[key] = String(value);
3772
+ acc[key] = globalThis.String(value);
3776
3773
  }
3777
3774
  return acc;
3778
3775
  }, {});
@@ -3821,8 +3818,8 @@ var BootNodeGateways_NetworkNodes = {
3821
3818
  },
3822
3819
  fromJSON(object) {
3823
3820
  return {
3824
- dvote: Array.isArray(object?.dvote) ? object.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.fromJSON(e)) : [],
3825
- web3: Array.isArray(object?.web3) ? object.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.fromJSON(e)) : []
3821
+ dvote: globalThis.Array.isArray(object?.dvote) ? object.dvote.map((e) => BootNodeGateways_NetworkNodes_DVote.fromJSON(e)) : [],
3822
+ web3: globalThis.Array.isArray(object?.web3) ? object.web3.map((e) => BootNodeGateways_NetworkNodes_Web3.fromJSON(e)) : []
3826
3823
  };
3827
3824
  },
3828
3825
  toJSON(message) {
@@ -3896,9 +3893,9 @@ var BootNodeGateways_NetworkNodes_DVote = {
3896
3893
  },
3897
3894
  fromJSON(object) {
3898
3895
  return {
3899
- uri: isSet5(object.uri) ? String(object.uri) : "",
3900
- apis: Array.isArray(object?.apis) ? object.apis.map((e) => String(e)) : [],
3901
- pubKey: isSet5(object.pubKey) ? String(object.pubKey) : ""
3896
+ uri: isSet5(object.uri) ? globalThis.String(object.uri) : "",
3897
+ apis: globalThis.Array.isArray(object?.apis) ? object.apis.map((e) => globalThis.String(e)) : [],
3898
+ pubKey: isSet5(object.pubKey) ? globalThis.String(object.pubKey) : ""
3902
3899
  };
3903
3900
  },
3904
3901
  toJSON(message) {
@@ -3957,7 +3954,7 @@ var BootNodeGateways_NetworkNodes_Web3 = {
3957
3954
  return message;
3958
3955
  },
3959
3956
  fromJSON(object) {
3960
- return { uri: isSet5(object.uri) ? String(object.uri) : "" };
3957
+ return { uri: isSet5(object.uri) ? globalThis.String(object.uri) : "" };
3961
3958
  },
3962
3959
  toJSON(message) {
3963
3960
  const obj = {};
@@ -4016,7 +4013,10 @@ var BootNodeGateways_MetaEntry = {
4016
4013
  return message;
4017
4014
  },
4018
4015
  fromJSON(object) {
4019
- return { key: isSet5(object.key) ? String(object.key) : "", value: isSet5(object.value) ? String(object.value) : "" };
4016
+ return {
4017
+ key: isSet5(object.key) ? globalThis.String(object.key) : "",
4018
+ value: isSet5(object.value) ? globalThis.String(object.value) : ""
4019
+ };
4020
4020
  },
4021
4021
  toJSON(message) {
4022
4022
  const obj = {};
@@ -4114,7 +4114,7 @@ var FeedStore = {
4114
4114
  return message;
4115
4115
  },
4116
4116
  fromJSON(object) {
4117
- return { items: Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
4117
+ return { items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => Feed.fromJSON(e)) : [] };
4118
4118
  },
4119
4119
  toJSON(message) {
4120
4120
  const obj = {};
@@ -4260,15 +4260,15 @@ var Feed = {
4260
4260
  },
4261
4261
  fromJSON(object) {
4262
4262
  return {
4263
- version: isSet6(object.version) ? String(object.version) : "",
4264
- title: isSet6(object.title) ? String(object.title) : "",
4265
- homePageUrl: isSet6(object.homePageUrl) ? String(object.homePageUrl) : "",
4266
- description: isSet6(object.description) ? String(object.description) : "",
4267
- feedUrl: isSet6(object.feedUrl) ? String(object.feedUrl) : "",
4268
- icon: isSet6(object.icon) ? String(object.icon) : "",
4269
- favicon: isSet6(object.favicon) ? String(object.favicon) : "",
4270
- expired: isSet6(object.expired) ? Boolean(object.expired) : false,
4271
- items: Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
4263
+ version: isSet6(object.version) ? globalThis.String(object.version) : "",
4264
+ title: isSet6(object.title) ? globalThis.String(object.title) : "",
4265
+ homePageUrl: isSet6(object.homePageUrl) ? globalThis.String(object.homePageUrl) : "",
4266
+ description: isSet6(object.description) ? globalThis.String(object.description) : "",
4267
+ feedUrl: isSet6(object.feedUrl) ? globalThis.String(object.feedUrl) : "",
4268
+ icon: isSet6(object.icon) ? globalThis.String(object.icon) : "",
4269
+ favicon: isSet6(object.favicon) ? globalThis.String(object.favicon) : "",
4270
+ expired: isSet6(object.expired) ? globalThis.Boolean(object.expired) : false,
4271
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => FeedPost.fromJSON(e)) : [],
4272
4272
  meta: isObject4(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
4273
4273
  acc[key] = String(value);
4274
4274
  return acc;
@@ -4331,7 +4331,7 @@ var Feed = {
4331
4331
  message.items = object.items?.map((e) => FeedPost.fromPartial(e)) || [];
4332
4332
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
4333
4333
  if (value !== void 0) {
4334
- acc[key] = String(value);
4334
+ acc[key] = globalThis.String(value);
4335
4335
  }
4336
4336
  return acc;
4337
4337
  }, {});
@@ -4379,7 +4379,10 @@ var Feed_MetaEntry = {
4379
4379
  return message;
4380
4380
  },
4381
4381
  fromJSON(object) {
4382
- return { key: isSet6(object.key) ? String(object.key) : "", value: isSet6(object.value) ? String(object.value) : "" };
4382
+ return {
4383
+ key: isSet6(object.key) ? globalThis.String(object.key) : "",
4384
+ value: isSet6(object.value) ? globalThis.String(object.value) : ""
4385
+ };
4383
4386
  },
4384
4387
  toJSON(message) {
4385
4388
  const obj = {};
@@ -4536,16 +4539,16 @@ var FeedPost = {
4536
4539
  },
4537
4540
  fromJSON(object) {
4538
4541
  return {
4539
- id: isSet6(object.id) ? String(object.id) : "",
4540
- title: isSet6(object.title) ? String(object.title) : "",
4541
- summary: isSet6(object.summary) ? String(object.summary) : "",
4542
- contentText: isSet6(object.contentText) ? String(object.contentText) : "",
4543
- contentHtml: isSet6(object.contentHtml) ? String(object.contentHtml) : "",
4544
- url: isSet6(object.url) ? String(object.url) : "",
4545
- image: isSet6(object.image) ? String(object.image) : "",
4546
- tags: Array.isArray(object?.tags) ? object.tags.map((e) => String(e)) : [],
4547
- datePublished: isSet6(object.datePublished) ? String(object.datePublished) : "",
4548
- dateModified: isSet6(object.dateModified) ? String(object.dateModified) : "",
4542
+ id: isSet6(object.id) ? globalThis.String(object.id) : "",
4543
+ title: isSet6(object.title) ? globalThis.String(object.title) : "",
4544
+ summary: isSet6(object.summary) ? globalThis.String(object.summary) : "",
4545
+ contentText: isSet6(object.contentText) ? globalThis.String(object.contentText) : "",
4546
+ contentHtml: isSet6(object.contentHtml) ? globalThis.String(object.contentHtml) : "",
4547
+ url: isSet6(object.url) ? globalThis.String(object.url) : "",
4548
+ image: isSet6(object.image) ? globalThis.String(object.image) : "",
4549
+ tags: globalThis.Array.isArray(object?.tags) ? object.tags.map((e) => globalThis.String(e)) : [],
4550
+ datePublished: isSet6(object.datePublished) ? globalThis.String(object.datePublished) : "",
4551
+ dateModified: isSet6(object.dateModified) ? globalThis.String(object.dateModified) : "",
4549
4552
  author: isSet6(object.author) ? FeedPost_Author.fromJSON(object.author) : void 0
4550
4553
  };
4551
4554
  },
@@ -4646,7 +4649,10 @@ var FeedPost_Author = {
4646
4649
  return message;
4647
4650
  },
4648
4651
  fromJSON(object) {
4649
- return { name: isSet6(object.name) ? String(object.name) : "", url: isSet6(object.url) ? String(object.url) : "" };
4652
+ return {
4653
+ name: isSet6(object.name) ? globalThis.String(object.name) : "",
4654
+ url: isSet6(object.url) ? globalThis.String(object.url) : ""
4655
+ };
4650
4656
  },
4651
4657
  toJSON(message) {
4652
4658
  const obj = {};
@@ -4709,7 +4715,9 @@ var ProcessMetadataStore = {
4709
4715
  return message;
4710
4716
  },
4711
4717
  fromJSON(object) {
4712
- return { items: Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : [] };
4718
+ return {
4719
+ items: globalThis.Array.isArray(object?.items) ? object.items.map((e) => ProcessMetadata.fromJSON(e)) : []
4720
+ };
4713
4721
  },
4714
4722
  toJSON(message) {
4715
4723
  const obj = {};
@@ -4826,7 +4834,7 @@ var ProcessMetadata = {
4826
4834
  },
4827
4835
  fromJSON(object) {
4828
4836
  return {
4829
- version: isSet7(object.version) ? String(object.version) : "",
4837
+ version: isSet7(object.version) ? globalThis.String(object.version) : "",
4830
4838
  title: isObject5(object.title) ? Object.entries(object.title).reduce((acc, [key, value]) => {
4831
4839
  acc[key] = String(value);
4832
4840
  return acc;
@@ -4839,7 +4847,7 @@ var ProcessMetadata = {
4839
4847
  acc[key] = String(value);
4840
4848
  return acc;
4841
4849
  }, {}) : {},
4842
- questions: Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
4850
+ questions: globalThis.Array.isArray(object?.questions) ? object.questions.map((e) => ProcessMetadata_Question.fromJSON(e)) : [],
4843
4851
  results: isSet7(object.results) ? ProcessMetadata_Results.fromJSON(object.results) : void 0,
4844
4852
  meta: isObject5(object.meta) ? Object.entries(object.meta).reduce((acc, [key, value]) => {
4845
4853
  acc[key] = String(value);
@@ -4904,14 +4912,14 @@ var ProcessMetadata = {
4904
4912
  message.version = object.version ?? "";
4905
4913
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
4906
4914
  if (value !== void 0) {
4907
- acc[key] = String(value);
4915
+ acc[key] = globalThis.String(value);
4908
4916
  }
4909
4917
  return acc;
4910
4918
  }, {});
4911
4919
  message.description = Object.entries(object.description ?? {}).reduce(
4912
4920
  (acc, [key, value]) => {
4913
4921
  if (value !== void 0) {
4914
- acc[key] = String(value);
4922
+ acc[key] = globalThis.String(value);
4915
4923
  }
4916
4924
  return acc;
4917
4925
  },
@@ -4919,7 +4927,7 @@ var ProcessMetadata = {
4919
4927
  );
4920
4928
  message.media = Object.entries(object.media ?? {}).reduce((acc, [key, value]) => {
4921
4929
  if (value !== void 0) {
4922
- acc[key] = String(value);
4930
+ acc[key] = globalThis.String(value);
4923
4931
  }
4924
4932
  return acc;
4925
4933
  }, {});
@@ -4927,7 +4935,7 @@ var ProcessMetadata = {
4927
4935
  message.results = object.results !== void 0 && object.results !== null ? ProcessMetadata_Results.fromPartial(object.results) : void 0;
4928
4936
  message.meta = Object.entries(object.meta ?? {}).reduce((acc, [key, value]) => {
4929
4937
  if (value !== void 0) {
4930
- acc[key] = String(value);
4938
+ acc[key] = globalThis.String(value);
4931
4939
  }
4932
4940
  return acc;
4933
4941
  }, {});
@@ -4975,7 +4983,10 @@ var ProcessMetadata_TitleEntry = {
4975
4983
  return message;
4976
4984
  },
4977
4985
  fromJSON(object) {
4978
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
4986
+ return {
4987
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
4988
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
4989
+ };
4979
4990
  },
4980
4991
  toJSON(message) {
4981
4992
  const obj = {};
@@ -5038,7 +5049,10 @@ var ProcessMetadata_DescriptionEntry = {
5038
5049
  return message;
5039
5050
  },
5040
5051
  fromJSON(object) {
5041
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5052
+ return {
5053
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5054
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5055
+ };
5042
5056
  },
5043
5057
  toJSON(message) {
5044
5058
  const obj = {};
@@ -5101,7 +5115,10 @@ var ProcessMetadata_MediaEntry = {
5101
5115
  return message;
5102
5116
  },
5103
5117
  fromJSON(object) {
5104
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5118
+ return {
5119
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5120
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5121
+ };
5105
5122
  },
5106
5123
  toJSON(message) {
5107
5124
  const obj = {};
@@ -5188,7 +5205,7 @@ var ProcessMetadata_Question = {
5188
5205
  acc[key] = String(value);
5189
5206
  return acc;
5190
5207
  }, {}) : {},
5191
- choices: Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
5208
+ choices: globalThis.Array.isArray(object?.choices) ? object.choices.map((e) => ProcessMetadata_Question_VoteOption.fromJSON(e)) : []
5192
5209
  };
5193
5210
  },
5194
5211
  toJSON(message) {
@@ -5223,14 +5240,14 @@ var ProcessMetadata_Question = {
5223
5240
  const message = createBaseProcessMetadata_Question();
5224
5241
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
5225
5242
  if (value !== void 0) {
5226
- acc[key] = String(value);
5243
+ acc[key] = globalThis.String(value);
5227
5244
  }
5228
5245
  return acc;
5229
5246
  }, {});
5230
5247
  message.description = Object.entries(object.description ?? {}).reduce(
5231
5248
  (acc, [key, value]) => {
5232
5249
  if (value !== void 0) {
5233
- acc[key] = String(value);
5250
+ acc[key] = globalThis.String(value);
5234
5251
  }
5235
5252
  return acc;
5236
5253
  },
@@ -5281,7 +5298,10 @@ var ProcessMetadata_Question_TitleEntry = {
5281
5298
  return message;
5282
5299
  },
5283
5300
  fromJSON(object) {
5284
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5301
+ return {
5302
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5303
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5304
+ };
5285
5305
  },
5286
5306
  toJSON(message) {
5287
5307
  const obj = {};
@@ -5344,7 +5364,10 @@ var ProcessMetadata_Question_DescriptionEntry = {
5344
5364
  return message;
5345
5365
  },
5346
5366
  fromJSON(object) {
5347
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5367
+ return {
5368
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5369
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5370
+ };
5348
5371
  },
5349
5372
  toJSON(message) {
5350
5373
  const obj = {};
@@ -5415,7 +5438,7 @@ var ProcessMetadata_Question_VoteOption = {
5415
5438
  acc[key] = String(value);
5416
5439
  return acc;
5417
5440
  }, {}) : {},
5418
- value: isSet7(object.value) ? Number(object.value) : 0
5441
+ value: isSet7(object.value) ? globalThis.Number(object.value) : 0
5419
5442
  };
5420
5443
  },
5421
5444
  toJSON(message) {
@@ -5441,7 +5464,7 @@ var ProcessMetadata_Question_VoteOption = {
5441
5464
  const message = createBaseProcessMetadata_Question_VoteOption();
5442
5465
  message.title = Object.entries(object.title ?? {}).reduce((acc, [key, value]) => {
5443
5466
  if (value !== void 0) {
5444
- acc[key] = String(value);
5467
+ acc[key] = globalThis.String(value);
5445
5468
  }
5446
5469
  return acc;
5447
5470
  }, {});
@@ -5490,7 +5513,10 @@ var ProcessMetadata_Question_VoteOption_TitleEntry = {
5490
5513
  return message;
5491
5514
  },
5492
5515
  fromJSON(object) {
5493
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5516
+ return {
5517
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5518
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5519
+ };
5494
5520
  },
5495
5521
  toJSON(message) {
5496
5522
  const obj = {};
@@ -5554,8 +5580,8 @@ var ProcessMetadata_Results = {
5554
5580
  },
5555
5581
  fromJSON(object) {
5556
5582
  return {
5557
- aggregation: isSet7(object.aggregation) ? String(object.aggregation) : "",
5558
- display: isSet7(object.display) ? String(object.display) : ""
5583
+ aggregation: isSet7(object.aggregation) ? globalThis.String(object.aggregation) : "",
5584
+ display: isSet7(object.display) ? globalThis.String(object.display) : ""
5559
5585
  };
5560
5586
  },
5561
5587
  toJSON(message) {
@@ -5619,7 +5645,10 @@ var ProcessMetadata_MetaEntry = {
5619
5645
  return message;
5620
5646
  },
5621
5647
  fromJSON(object) {
5622
- return { key: isSet7(object.key) ? String(object.key) : "", value: isSet7(object.value) ? String(object.value) : "" };
5648
+ return {
5649
+ key: isSet7(object.key) ? globalThis.String(object.key) : "",
5650
+ value: isSet7(object.value) ? globalThis.String(object.value) : ""
5651
+ };
5623
5652
  },
5624
5653
  toJSON(message) {
5625
5654
  const obj = {};
@@ -5661,7 +5690,6 @@ __export(vochain_exports, {
5661
5690
  EnvelopeType: () => EnvelopeType,
5662
5691
  FaucetPackage: () => FaucetPackage,
5663
5692
  FaucetPayload: () => FaucetPayload,
5664
- MintTokensTx: () => MintTokensTx,
5665
5693
  NewProcessTx: () => NewProcessTx,
5666
5694
  OracleList: () => OracleList,
5667
5695
  Process: () => Process,
@@ -5678,8 +5706,6 @@ __export(vochain_exports, {
5678
5706
  ProofCA_Type: () => ProofCA_Type,
5679
5707
  ProofEthereumAccount: () => ProofEthereumAccount,
5680
5708
  ProofEthereumStorage: () => ProofEthereumStorage,
5681
- ProofGraviton: () => ProofGraviton,
5682
- ProofIden3: () => ProofIden3,
5683
5709
  ProofMinime: () => ProofMinime,
5684
5710
  ProofZkSNARK: () => ProofZkSNARK,
5685
5711
  QuestionResult: () => QuestionResult,
@@ -5695,7 +5721,6 @@ __export(vochain_exports, {
5695
5721
  SourceNetworkId: () => SourceNetworkId,
5696
5722
  StoredKeys: () => StoredKeys,
5697
5723
  TendermintHeader: () => TendermintHeader,
5698
- Treasurer: () => Treasurer,
5699
5724
  Tx: () => Tx,
5700
5725
  TxType: () => TxType,
5701
5726
  Validator: () => Validator,
@@ -5737,9 +5762,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
5737
5762
  TxType2[TxType2["VOTE"] = 11] = "VOTE";
5738
5763
  TxType2[TxType2["SET_PROCESS_RESULTS"] = 12] = "SET_PROCESS_RESULTS";
5739
5764
  TxType2[TxType2["REGISTER_VOTER_KEY"] = 13] = "REGISTER_VOTER_KEY";
5740
- TxType2[TxType2["MINT_TOKENS"] = 14] = "MINT_TOKENS";
5741
5765
  TxType2[TxType2["SEND_TOKENS"] = 15] = "SEND_TOKENS";
5742
- TxType2[TxType2["SET_TRANSACTION_COSTS"] = 16] = "SET_TRANSACTION_COSTS";
5743
5766
  TxType2[TxType2["SET_ACCOUNT_INFO_URI"] = 17] = "SET_ACCOUNT_INFO_URI";
5744
5767
  TxType2[TxType2["ADD_DELEGATE_FOR_ACCOUNT"] = 18] = "ADD_DELEGATE_FOR_ACCOUNT";
5745
5768
  TxType2[TxType2["DEL_DELEGATE_FOR_ACCOUNT"] = 19] = "DEL_DELEGATE_FOR_ACCOUNT";
@@ -5750,6 +5773,8 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
5750
5773
  TxType2[TxType2["SET_ACCOUNT_SIK"] = 24] = "SET_ACCOUNT_SIK";
5751
5774
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
5752
5775
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
5776
+ TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
5777
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
5753
5778
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5754
5779
  return TxType2;
5755
5780
  })(TxType || {});
@@ -5797,15 +5822,9 @@ function txTypeFromJSON(object) {
5797
5822
  case 13:
5798
5823
  case "REGISTER_VOTER_KEY":
5799
5824
  return 13 /* REGISTER_VOTER_KEY */;
5800
- case 14:
5801
- case "MINT_TOKENS":
5802
- return 14 /* MINT_TOKENS */;
5803
5825
  case 15:
5804
5826
  case "SEND_TOKENS":
5805
5827
  return 15 /* SEND_TOKENS */;
5806
- case 16:
5807
- case "SET_TRANSACTION_COSTS":
5808
- return 16 /* SET_TRANSACTION_COSTS */;
5809
5828
  case 17:
5810
5829
  case "SET_ACCOUNT_INFO_URI":
5811
5830
  return 17 /* SET_ACCOUNT_INFO_URI */;
@@ -5836,6 +5855,12 @@ function txTypeFromJSON(object) {
5836
5855
  case 26:
5837
5856
  case "REGISTER_SIK":
5838
5857
  return 26 /* REGISTER_SIK */;
5858
+ case 27:
5859
+ case "SET_ACCOUNT_VALIDATOR":
5860
+ return 27 /* SET_ACCOUNT_VALIDATOR */;
5861
+ case 28:
5862
+ case "SET_PROCESS_DURATION":
5863
+ return 28 /* SET_PROCESS_DURATION */;
5839
5864
  case -1:
5840
5865
  case "UNRECOGNIZED":
5841
5866
  default:
@@ -5872,12 +5897,8 @@ function txTypeToJSON(object) {
5872
5897
  return "SET_PROCESS_RESULTS";
5873
5898
  case 13 /* REGISTER_VOTER_KEY */:
5874
5899
  return "REGISTER_VOTER_KEY";
5875
- case 14 /* MINT_TOKENS */:
5876
- return "MINT_TOKENS";
5877
5900
  case 15 /* SEND_TOKENS */:
5878
5901
  return "SEND_TOKENS";
5879
- case 16 /* SET_TRANSACTION_COSTS */:
5880
- return "SET_TRANSACTION_COSTS";
5881
5902
  case 17 /* SET_ACCOUNT_INFO_URI */:
5882
5903
  return "SET_ACCOUNT_INFO_URI";
5883
5904
  case 18 /* ADD_DELEGATE_FOR_ACCOUNT */:
@@ -5898,6 +5919,10 @@ function txTypeToJSON(object) {
5898
5919
  return "DEL_ACCOUNT_SIK";
5899
5920
  case 26 /* REGISTER_SIK */:
5900
5921
  return "REGISTER_SIK";
5922
+ case 27 /* SET_ACCOUNT_VALIDATOR */:
5923
+ return "SET_ACCOUNT_VALIDATOR";
5924
+ case 28 /* SET_PROCESS_DURATION */:
5925
+ return "SET_PROCESS_DURATION";
5901
5926
  case -1 /* UNRECOGNIZED */:
5902
5927
  default:
5903
5928
  return "UNRECOGNIZED";
@@ -6147,8 +6172,6 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6147
6172
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6148
6173
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6149
6174
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6150
- Census_Type2[Census_Type2["GRAVITON"] = 1001] = "GRAVITON";
6151
- Census_Type2[Census_Type2["IDEN3"] = 1002] = "IDEN3";
6152
6175
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6153
6176
  return Census_Type2;
6154
6177
  })(Census_Type || {});
@@ -6172,12 +6195,6 @@ function census_TypeFromJSON(object) {
6172
6195
  case 5:
6173
6196
  case "CA":
6174
6197
  return 5 /* CA */;
6175
- case 1001:
6176
- case "GRAVITON":
6177
- return 1001 /* GRAVITON */;
6178
- case 1002:
6179
- case "IDEN3":
6180
- return 1002 /* IDEN3 */;
6181
6198
  case -1:
6182
6199
  case "UNRECOGNIZED":
6183
6200
  default:
@@ -6198,10 +6215,6 @@ function census_TypeToJSON(object) {
6198
6215
  return "ETHEREUMACCOUNT";
6199
6216
  case 5 /* CA */:
6200
6217
  return "CA";
6201
- case 1001 /* GRAVITON */:
6202
- return "GRAVITON";
6203
- case 1002 /* IDEN3 */:
6204
- return "IDEN3";
6205
6218
  case -1 /* UNRECOGNIZED */:
6206
6219
  default:
6207
6220
  return "UNRECOGNIZED";
@@ -6417,7 +6430,7 @@ var VoteEnvelope = {
6417
6430
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
6418
6431
  votePackage: isSet8(object.votePackage) ? bytesFromBase643(object.votePackage) : new Uint8Array(0),
6419
6432
  nullifier: isSet8(object.nullifier) ? bytesFromBase643(object.nullifier) : new Uint8Array(0),
6420
- encryptionKeyIndexes: Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => Number(e)) : []
6433
+ encryptionKeyIndexes: globalThis.Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => globalThis.Number(e)) : []
6421
6434
  };
6422
6435
  },
6423
6436
  toJSON(message) {
@@ -6499,12 +6512,6 @@ function createBaseProof() {
6499
6512
  var Proof = {
6500
6513
  encode(message, writer = import_minimal8.default.Writer.create()) {
6501
6514
  switch (message.payload?.$case) {
6502
- case "graviton":
6503
- ProofGraviton.encode(message.payload.graviton, writer.uint32(10).fork()).ldelim();
6504
- break;
6505
- case "iden3":
6506
- ProofIden3.encode(message.payload.iden3, writer.uint32(18).fork()).ldelim();
6507
- break;
6508
6515
  case "ethereumStorage":
6509
6516
  ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
6510
6517
  break;
@@ -6533,18 +6540,6 @@ var Proof = {
6533
6540
  while (reader.pos < end) {
6534
6541
  const tag = reader.uint32();
6535
6542
  switch (tag >>> 3) {
6536
- case 1:
6537
- if (tag !== 10) {
6538
- break;
6539
- }
6540
- message.payload = { $case: "graviton", graviton: ProofGraviton.decode(reader, reader.uint32()) };
6541
- continue;
6542
- case 2:
6543
- if (tag !== 18) {
6544
- break;
6545
- }
6546
- message.payload = { $case: "iden3", iden3: ProofIden3.decode(reader, reader.uint32()) };
6547
- continue;
6548
6543
  case 3:
6549
6544
  if (tag !== 26) {
6550
6545
  break;
@@ -6597,17 +6592,11 @@ var Proof = {
6597
6592
  },
6598
6593
  fromJSON(object) {
6599
6594
  return {
6600
- payload: isSet8(object.graviton) ? { $case: "graviton", graviton: ProofGraviton.fromJSON(object.graviton) } : isSet8(object.iden3) ? { $case: "iden3", iden3: ProofIden3.fromJSON(object.iden3) } : 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
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
6601
6596
  };
6602
6597
  },
6603
6598
  toJSON(message) {
6604
6599
  const obj = {};
6605
- if (message.payload?.$case === "graviton") {
6606
- obj.graviton = ProofGraviton.toJSON(message.payload.graviton);
6607
- }
6608
- if (message.payload?.$case === "iden3") {
6609
- obj.iden3 = ProofIden3.toJSON(message.payload.iden3);
6610
- }
6611
6600
  if (message.payload?.$case === "ethereumStorage") {
6612
6601
  obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
6613
6602
  }
@@ -6633,12 +6622,6 @@ var Proof = {
6633
6622
  },
6634
6623
  fromPartial(object) {
6635
6624
  const message = createBaseProof();
6636
- if (object.payload?.$case === "graviton" && object.payload?.graviton !== void 0 && object.payload?.graviton !== null) {
6637
- message.payload = { $case: "graviton", graviton: ProofGraviton.fromPartial(object.payload.graviton) };
6638
- }
6639
- if (object.payload?.$case === "iden3" && object.payload?.iden3 !== void 0 && object.payload?.iden3 !== null) {
6640
- message.payload = { $case: "iden3", iden3: ProofIden3.fromPartial(object.payload.iden3) };
6641
- }
6642
6625
  if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
6643
6626
  message.payload = {
6644
6627
  $case: "ethereumStorage",
@@ -6669,106 +6652,6 @@ var Proof = {
6669
6652
  return message;
6670
6653
  }
6671
6654
  };
6672
- function createBaseProofGraviton() {
6673
- return { siblings: new Uint8Array(0) };
6674
- }
6675
- var ProofGraviton = {
6676
- encode(message, writer = import_minimal8.default.Writer.create()) {
6677
- if (message.siblings.length !== 0) {
6678
- writer.uint32(10).bytes(message.siblings);
6679
- }
6680
- return writer;
6681
- },
6682
- decode(input, length) {
6683
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
6684
- let end = length === void 0 ? reader.len : reader.pos + length;
6685
- const message = createBaseProofGraviton();
6686
- while (reader.pos < end) {
6687
- const tag = reader.uint32();
6688
- switch (tag >>> 3) {
6689
- case 1:
6690
- if (tag !== 10) {
6691
- break;
6692
- }
6693
- message.siblings = reader.bytes();
6694
- continue;
6695
- }
6696
- if ((tag & 7) === 4 || tag === 0) {
6697
- break;
6698
- }
6699
- reader.skipType(tag & 7);
6700
- }
6701
- return message;
6702
- },
6703
- fromJSON(object) {
6704
- return { siblings: isSet8(object.siblings) ? bytesFromBase643(object.siblings) : new Uint8Array(0) };
6705
- },
6706
- toJSON(message) {
6707
- const obj = {};
6708
- if (message.siblings.length !== 0) {
6709
- obj.siblings = base64FromBytes3(message.siblings);
6710
- }
6711
- return obj;
6712
- },
6713
- create(base) {
6714
- return ProofGraviton.fromPartial(base ?? {});
6715
- },
6716
- fromPartial(object) {
6717
- const message = createBaseProofGraviton();
6718
- message.siblings = object.siblings ?? new Uint8Array(0);
6719
- return message;
6720
- }
6721
- };
6722
- function createBaseProofIden3() {
6723
- return { siblings: new Uint8Array(0) };
6724
- }
6725
- var ProofIden3 = {
6726
- encode(message, writer = import_minimal8.default.Writer.create()) {
6727
- if (message.siblings.length !== 0) {
6728
- writer.uint32(10).bytes(message.siblings);
6729
- }
6730
- return writer;
6731
- },
6732
- decode(input, length) {
6733
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
6734
- let end = length === void 0 ? reader.len : reader.pos + length;
6735
- const message = createBaseProofIden3();
6736
- while (reader.pos < end) {
6737
- const tag = reader.uint32();
6738
- switch (tag >>> 3) {
6739
- case 1:
6740
- if (tag !== 10) {
6741
- break;
6742
- }
6743
- message.siblings = reader.bytes();
6744
- continue;
6745
- }
6746
- if ((tag & 7) === 4 || tag === 0) {
6747
- break;
6748
- }
6749
- reader.skipType(tag & 7);
6750
- }
6751
- return message;
6752
- },
6753
- fromJSON(object) {
6754
- return { siblings: isSet8(object.siblings) ? bytesFromBase643(object.siblings) : new Uint8Array(0) };
6755
- },
6756
- toJSON(message) {
6757
- const obj = {};
6758
- if (message.siblings.length !== 0) {
6759
- obj.siblings = base64FromBytes3(message.siblings);
6760
- }
6761
- return obj;
6762
- },
6763
- create(base) {
6764
- return ProofIden3.fromPartial(base ?? {});
6765
- },
6766
- fromPartial(object) {
6767
- const message = createBaseProofIden3();
6768
- message.siblings = object.siblings ?? new Uint8Array(0);
6769
- return message;
6770
- }
6771
- };
6772
6655
  function createBaseProofEthereumStorage() {
6773
6656
  return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
6774
6657
  }
@@ -6822,7 +6705,7 @@ var ProofEthereumStorage = {
6822
6705
  return {
6823
6706
  key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
6824
6707
  value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
6825
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6708
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6826
6709
  };
6827
6710
  },
6828
6711
  toJSON(message) {
@@ -6928,7 +6811,7 @@ var ProofEthereumAccount = {
6928
6811
  balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
6929
6812
  storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
6930
6813
  codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
6931
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6814
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6932
6815
  };
6933
6816
  },
6934
6817
  toJSON(message) {
@@ -7358,11 +7241,11 @@ var ProofZkSNARK = {
7358
7241
  },
7359
7242
  fromJSON(object) {
7360
7243
  return {
7361
- circuitParametersIndex: isSet8(object.circuitParametersIndex) ? Number(object.circuitParametersIndex) : 0,
7362
- a: Array.isArray(object?.a) ? object.a.map((e) => String(e)) : [],
7363
- b: Array.isArray(object?.b) ? object.b.map((e) => String(e)) : [],
7364
- c: Array.isArray(object?.c) ? object.c.map((e) => String(e)) : [],
7365
- publicInputs: Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => String(e)) : []
7244
+ circuitParametersIndex: isSet8(object.circuitParametersIndex) ? globalThis.Number(object.circuitParametersIndex) : 0,
7245
+ a: globalThis.Array.isArray(object?.a) ? object.a.map((e) => globalThis.String(e)) : [],
7246
+ b: globalThis.Array.isArray(object?.b) ? object.b.map((e) => globalThis.String(e)) : [],
7247
+ c: globalThis.Array.isArray(object?.c) ? object.c.map((e) => globalThis.String(e)) : [],
7248
+ publicInputs: globalThis.Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => globalThis.String(e)) : []
7366
7249
  };
7367
7250
  },
7368
7251
  toJSON(message) {
@@ -7466,11 +7349,11 @@ var Account2 = {
7466
7349
  },
7467
7350
  fromJSON(object) {
7468
7351
  return {
7469
- balance: isSet8(object.balance) ? Number(object.balance) : 0,
7470
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
7471
- infoURI: isSet8(object.infoURI) ? String(object.infoURI) : "",
7472
- delegateAddrs: Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase643(e)) : [],
7473
- processIndex: isSet8(object.processIndex) ? Number(object.processIndex) : 0
7352
+ balance: isSet8(object.balance) ? globalThis.Number(object.balance) : 0,
7353
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
7354
+ infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : "",
7355
+ delegateAddrs: globalThis.Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase643(e)) : [],
7356
+ processIndex: isSet8(object.processIndex) ? globalThis.Number(object.processIndex) : 0
7474
7357
  };
7475
7358
  },
7476
7359
  toJSON(message) {
@@ -7505,72 +7388,6 @@ var Account2 = {
7505
7388
  return message;
7506
7389
  }
7507
7390
  };
7508
- function createBaseTreasurer() {
7509
- return { address: new Uint8Array(0), nonce: 0 };
7510
- }
7511
- var Treasurer = {
7512
- encode(message, writer = import_minimal8.default.Writer.create()) {
7513
- if (message.address.length !== 0) {
7514
- writer.uint32(10).bytes(message.address);
7515
- }
7516
- if (message.nonce !== 0) {
7517
- writer.uint32(16).uint32(message.nonce);
7518
- }
7519
- return writer;
7520
- },
7521
- decode(input, length) {
7522
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
7523
- let end = length === void 0 ? reader.len : reader.pos + length;
7524
- const message = createBaseTreasurer();
7525
- while (reader.pos < end) {
7526
- const tag = reader.uint32();
7527
- switch (tag >>> 3) {
7528
- case 1:
7529
- if (tag !== 10) {
7530
- break;
7531
- }
7532
- message.address = reader.bytes();
7533
- continue;
7534
- case 2:
7535
- if (tag !== 16) {
7536
- break;
7537
- }
7538
- message.nonce = reader.uint32();
7539
- continue;
7540
- }
7541
- if ((tag & 7) === 4 || tag === 0) {
7542
- break;
7543
- }
7544
- reader.skipType(tag & 7);
7545
- }
7546
- return message;
7547
- },
7548
- fromJSON(object) {
7549
- return {
7550
- address: isSet8(object.address) ? bytesFromBase643(object.address) : new Uint8Array(0),
7551
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
7552
- };
7553
- },
7554
- toJSON(message) {
7555
- const obj = {};
7556
- if (message.address.length !== 0) {
7557
- obj.address = base64FromBytes3(message.address);
7558
- }
7559
- if (message.nonce !== 0) {
7560
- obj.nonce = Math.round(message.nonce);
7561
- }
7562
- return obj;
7563
- },
7564
- create(base) {
7565
- return Treasurer.fromPartial(base ?? {});
7566
- },
7567
- fromPartial(object) {
7568
- const message = createBaseTreasurer();
7569
- message.address = object.address ?? new Uint8Array(0);
7570
- message.nonce = object.nonce ?? 0;
7571
- return message;
7572
- }
7573
- };
7574
7391
  function createBaseTx() {
7575
7392
  return { payload: void 0 };
7576
7393
  }
@@ -7592,9 +7409,6 @@ var Tx = {
7592
7409
  case "registerKey":
7593
7410
  RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
7594
7411
  break;
7595
- case "mintTokens":
7596
- MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
7597
- break;
7598
7412
  case "sendTokens":
7599
7413
  SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
7600
7414
  break;
@@ -7659,12 +7473,6 @@ var Tx = {
7659
7473
  }
7660
7474
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
7661
7475
  continue;
7662
- case 6:
7663
- if (tag !== 50) {
7664
- break;
7665
- }
7666
- message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.decode(reader, reader.uint32()) };
7667
- continue;
7668
7476
  case 7:
7669
7477
  if (tag !== 58) {
7670
7478
  break;
@@ -7726,7 +7534,7 @@ var Tx = {
7726
7534
  },
7727
7535
  fromJSON(object) {
7728
7536
  return {
7729
- payload: isSet8(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet8(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet8(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet8(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet8(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet8(object.mintTokens) ? { $case: "mintTokens", mintTokens: MintTokensTx.fromJSON(object.mintTokens) } : isSet8(object.sendTokens) ? { $case: "sendTokens", sendTokens: SendTokensTx.fromJSON(object.sendTokens) } : isSet8(object.setTransactionCosts) ? {
7537
+ payload: isSet8(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet8(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet8(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet8(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet8(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet8(object.sendTokens) ? { $case: "sendTokens", sendTokens: SendTokensTx.fromJSON(object.sendTokens) } : isSet8(object.setTransactionCosts) ? {
7730
7538
  $case: "setTransactionCosts",
7731
7539
  setTransactionCosts: SetTransactionCostsTx.fromJSON(object.setTransactionCosts)
7732
7540
  } : isSet8(object.setAccount) ? { $case: "setAccount", setAccount: SetAccountTx.fromJSON(object.setAccount) } : isSet8(object.collectFaucet) ? { $case: "collectFaucet", collectFaucet: CollectFaucetTx.fromJSON(object.collectFaucet) } : isSet8(object.setKeykeeper) ? { $case: "setKeykeeper", setKeykeeper: SetKeykeeperTx.fromJSON(object.setKeykeeper) } : isSet8(object.setSIK) ? { $case: "setSIK", setSIK: SIKTx.fromJSON(object.setSIK) } : isSet8(object.delSIK) ? { $case: "delSIK", delSIK: SIKTx.fromJSON(object.delSIK) } : isSet8(object.registerSIK) ? { $case: "registerSIK", registerSIK: RegisterSIKTx.fromJSON(object.registerSIK) } : void 0
@@ -7749,9 +7557,6 @@ var Tx = {
7749
7557
  if (message.payload?.$case === "registerKey") {
7750
7558
  obj.registerKey = RegisterKeyTx.toJSON(message.payload.registerKey);
7751
7559
  }
7752
- if (message.payload?.$case === "mintTokens") {
7753
- obj.mintTokens = MintTokensTx.toJSON(message.payload.mintTokens);
7754
- }
7755
7560
  if (message.payload?.$case === "sendTokens") {
7756
7561
  obj.sendTokens = SendTokensTx.toJSON(message.payload.sendTokens);
7757
7562
  }
@@ -7798,9 +7603,6 @@ var Tx = {
7798
7603
  if (object.payload?.$case === "registerKey" && object.payload?.registerKey !== void 0 && object.payload?.registerKey !== null) {
7799
7604
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.fromPartial(object.payload.registerKey) };
7800
7605
  }
7801
- if (object.payload?.$case === "mintTokens" && object.payload?.mintTokens !== void 0 && object.payload?.mintTokens !== null) {
7802
- message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.fromPartial(object.payload.mintTokens) };
7803
- }
7804
7606
  if (object.payload?.$case === "sendTokens" && object.payload?.sendTokens !== void 0 && object.payload?.sendTokens !== null) {
7805
7607
  message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.fromPartial(object.payload.sendTokens) };
7806
7608
  }
@@ -7955,7 +7757,7 @@ var NewProcessTx = {
7955
7757
  fromJSON(object) {
7956
7758
  return {
7957
7759
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
7958
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
7760
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
7959
7761
  process: isSet8(object.process) ? Process.fromJSON(object.process) : void 0
7960
7762
  };
7961
7763
  },
@@ -7994,7 +7796,8 @@ function createBaseSetProcessTx() {
7994
7796
  censusURI: void 0,
7995
7797
  proof: void 0,
7996
7798
  results: void 0,
7997
- tempSIKs: void 0
7799
+ tempSIKs: void 0,
7800
+ duration: void 0
7998
7801
  };
7999
7802
  }
8000
7803
  var SetProcessTx = {
@@ -8029,6 +7832,9 @@ var SetProcessTx = {
8029
7832
  if (message.tempSIKs !== void 0) {
8030
7833
  writer.uint32(80).bool(message.tempSIKs);
8031
7834
  }
7835
+ if (message.duration !== void 0) {
7836
+ writer.uint32(88).uint32(message.duration);
7837
+ }
8032
7838
  return writer;
8033
7839
  },
8034
7840
  decode(input, length) {
@@ -8098,6 +7904,12 @@ var SetProcessTx = {
8098
7904
  }
8099
7905
  message.tempSIKs = reader.bool();
8100
7906
  continue;
7907
+ case 11:
7908
+ if (tag !== 88) {
7909
+ break;
7910
+ }
7911
+ message.duration = reader.uint32();
7912
+ continue;
8101
7913
  }
8102
7914
  if ((tag & 7) === 4 || tag === 0) {
8103
7915
  break;
@@ -8109,15 +7921,16 @@ var SetProcessTx = {
8109
7921
  fromJSON(object) {
8110
7922
  return {
8111
7923
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8112
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
7924
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8113
7925
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
8114
7926
  status: isSet8(object.status) ? processStatusFromJSON(object.status) : void 0,
8115
- questionIndex: isSet8(object.questionIndex) ? Number(object.questionIndex) : void 0,
7927
+ questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
8116
7928
  censusRoot: isSet8(object.censusRoot) ? bytesFromBase643(object.censusRoot) : void 0,
8117
- censusURI: isSet8(object.censusURI) ? String(object.censusURI) : void 0,
7929
+ censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
8118
7930
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
8119
7931
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
8120
- tempSIKs: isSet8(object.tempSIKs) ? 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
8121
7934
  };
8122
7935
  },
8123
7936
  toJSON(message) {
@@ -8152,6 +7965,9 @@ var SetProcessTx = {
8152
7965
  if (message.tempSIKs !== void 0) {
8153
7966
  obj.tempSIKs = message.tempSIKs;
8154
7967
  }
7968
+ if (message.duration !== void 0) {
7969
+ obj.duration = Math.round(message.duration);
7970
+ }
8155
7971
  return obj;
8156
7972
  },
8157
7973
  create(base) {
@@ -8169,6 +7985,7 @@ var SetProcessTx = {
8169
7985
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
8170
7986
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
8171
7987
  message.tempSIKs = object.tempSIKs ?? void 0;
7988
+ message.duration = object.duration ?? void 0;
8172
7989
  return message;
8173
7990
  }
8174
7991
  };
@@ -8292,10 +8109,10 @@ var AdminTx = {
8292
8109
  address: isSet8(object.address) ? bytesFromBase643(object.address) : void 0,
8293
8110
  encryptionPrivateKey: isSet8(object.encryptionPrivateKey) ? bytesFromBase643(object.encryptionPrivateKey) : void 0,
8294
8111
  encryptionPublicKey: isSet8(object.encryptionPublicKey) ? bytesFromBase643(object.encryptionPublicKey) : void 0,
8295
- keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : void 0,
8296
- power: isSet8(object.power) ? Number(object.power) : void 0,
8112
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
8113
+ power: isSet8(object.power) ? globalThis.Number(object.power) : void 0,
8297
8114
  publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
8298
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
8115
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
8299
8116
  };
8300
8117
  },
8301
8118
  toJSON(message) {
@@ -8415,11 +8232,11 @@ var RegisterKeyTx = {
8415
8232
  },
8416
8233
  fromJSON(object) {
8417
8234
  return {
8418
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8235
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8419
8236
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
8420
8237
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
8421
8238
  newKey: isSet8(object.newKey) ? bytesFromBase643(object.newKey) : new Uint8Array(0),
8422
- weight: isSet8(object.weight) ? String(object.weight) : ""
8239
+ weight: isSet8(object.weight) ? globalThis.String(object.weight) : ""
8423
8240
  };
8424
8241
  },
8425
8242
  toJSON(message) {
@@ -8454,100 +8271,6 @@ var RegisterKeyTx = {
8454
8271
  return message;
8455
8272
  }
8456
8273
  };
8457
- function createBaseMintTokensTx() {
8458
- return { txtype: 0, nonce: 0, to: new Uint8Array(0), value: 0 };
8459
- }
8460
- var MintTokensTx = {
8461
- encode(message, writer = import_minimal8.default.Writer.create()) {
8462
- if (message.txtype !== 0) {
8463
- writer.uint32(8).int32(message.txtype);
8464
- }
8465
- if (message.nonce !== 0) {
8466
- writer.uint32(16).uint32(message.nonce);
8467
- }
8468
- if (message.to.length !== 0) {
8469
- writer.uint32(26).bytes(message.to);
8470
- }
8471
- if (message.value !== 0) {
8472
- writer.uint32(32).uint64(message.value);
8473
- }
8474
- return writer;
8475
- },
8476
- decode(input, length) {
8477
- const reader = input instanceof import_minimal8.default.Reader ? input : import_minimal8.default.Reader.create(input);
8478
- let end = length === void 0 ? reader.len : reader.pos + length;
8479
- const message = createBaseMintTokensTx();
8480
- while (reader.pos < end) {
8481
- const tag = reader.uint32();
8482
- switch (tag >>> 3) {
8483
- case 1:
8484
- if (tag !== 8) {
8485
- break;
8486
- }
8487
- message.txtype = reader.int32();
8488
- continue;
8489
- case 2:
8490
- if (tag !== 16) {
8491
- break;
8492
- }
8493
- message.nonce = reader.uint32();
8494
- continue;
8495
- case 3:
8496
- if (tag !== 26) {
8497
- break;
8498
- }
8499
- message.to = reader.bytes();
8500
- continue;
8501
- case 4:
8502
- if (tag !== 32) {
8503
- break;
8504
- }
8505
- message.value = longToNumber2(reader.uint64());
8506
- continue;
8507
- }
8508
- if ((tag & 7) === 4 || tag === 0) {
8509
- break;
8510
- }
8511
- reader.skipType(tag & 7);
8512
- }
8513
- return message;
8514
- },
8515
- fromJSON(object) {
8516
- return {
8517
- txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8518
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8519
- to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
8520
- value: isSet8(object.value) ? Number(object.value) : 0
8521
- };
8522
- },
8523
- toJSON(message) {
8524
- const obj = {};
8525
- if (message.txtype !== 0) {
8526
- obj.txtype = txTypeToJSON(message.txtype);
8527
- }
8528
- if (message.nonce !== 0) {
8529
- obj.nonce = Math.round(message.nonce);
8530
- }
8531
- if (message.to.length !== 0) {
8532
- obj.to = base64FromBytes3(message.to);
8533
- }
8534
- if (message.value !== 0) {
8535
- obj.value = Math.round(message.value);
8536
- }
8537
- return obj;
8538
- },
8539
- create(base) {
8540
- return MintTokensTx.fromPartial(base ?? {});
8541
- },
8542
- fromPartial(object) {
8543
- const message = createBaseMintTokensTx();
8544
- message.txtype = object.txtype ?? 0;
8545
- message.nonce = object.nonce ?? 0;
8546
- message.to = object.to ?? new Uint8Array(0);
8547
- message.value = object.value ?? 0;
8548
- return message;
8549
- }
8550
- };
8551
8274
  function createBaseSendTokensTx() {
8552
8275
  return { txtype: 0, nonce: 0, from: new Uint8Array(0), to: new Uint8Array(0), value: 0 };
8553
8276
  }
@@ -8618,10 +8341,10 @@ var SendTokensTx = {
8618
8341
  fromJSON(object) {
8619
8342
  return {
8620
8343
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8621
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8344
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8622
8345
  from: isSet8(object.from) ? bytesFromBase643(object.from) : new Uint8Array(0),
8623
8346
  to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
8624
- value: isSet8(object.value) ? Number(object.value) : 0
8347
+ value: isSet8(object.value) ? globalThis.Number(object.value) : 0
8625
8348
  };
8626
8349
  },
8627
8350
  toJSON(message) {
@@ -8708,8 +8431,8 @@ var SetTransactionCostsTx = {
8708
8431
  fromJSON(object) {
8709
8432
  return {
8710
8433
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8711
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8712
- value: isSet8(object.value) ? Number(object.value) : 0
8434
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8435
+ value: isSet8(object.value) ? globalThis.Number(object.value) : 0
8713
8436
  };
8714
8437
  },
8715
8438
  toJSON(message) {
@@ -8744,7 +8467,9 @@ function createBaseSetAccountTx() {
8744
8467
  account: void 0,
8745
8468
  faucetPackage: void 0,
8746
8469
  delegates: [],
8747
- SIK: void 0
8470
+ SIK: void 0,
8471
+ publicKey: void 0,
8472
+ name: void 0
8748
8473
  };
8749
8474
  }
8750
8475
  var SetAccountTx = {
@@ -8770,6 +8495,12 @@ var SetAccountTx = {
8770
8495
  if (message.SIK !== void 0) {
8771
8496
  writer.uint32(58).bytes(message.SIK);
8772
8497
  }
8498
+ if (message.publicKey !== void 0) {
8499
+ writer.uint32(66).bytes(message.publicKey);
8500
+ }
8501
+ if (message.name !== void 0) {
8502
+ writer.uint32(74).string(message.name);
8503
+ }
8773
8504
  return writer;
8774
8505
  },
8775
8506
  decode(input, length) {
@@ -8821,6 +8552,18 @@ var SetAccountTx = {
8821
8552
  }
8822
8553
  message.SIK = reader.bytes();
8823
8554
  continue;
8555
+ case 8:
8556
+ if (tag !== 66) {
8557
+ break;
8558
+ }
8559
+ message.publicKey = reader.bytes();
8560
+ continue;
8561
+ case 9:
8562
+ if (tag !== 74) {
8563
+ break;
8564
+ }
8565
+ message.name = reader.string();
8566
+ continue;
8824
8567
  }
8825
8568
  if ((tag & 7) === 4 || tag === 0) {
8826
8569
  break;
@@ -8832,12 +8575,14 @@ var SetAccountTx = {
8832
8575
  fromJSON(object) {
8833
8576
  return {
8834
8577
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8835
- nonce: isSet8(object.nonce) ? Number(object.nonce) : void 0,
8836
- infoURI: isSet8(object.infoURI) ? String(object.infoURI) : void 0,
8578
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
8579
+ infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : void 0,
8837
8580
  account: isSet8(object.account) ? bytesFromBase643(object.account) : void 0,
8838
8581
  faucetPackage: isSet8(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
8839
- delegates: Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase643(e)) : [],
8840
- SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0
8582
+ delegates: globalThis.Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase643(e)) : [],
8583
+ SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0,
8584
+ publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
8585
+ name: isSet8(object.name) ? globalThis.String(object.name) : void 0
8841
8586
  };
8842
8587
  },
8843
8588
  toJSON(message) {
@@ -8863,6 +8608,12 @@ var SetAccountTx = {
8863
8608
  if (message.SIK !== void 0) {
8864
8609
  obj.SIK = base64FromBytes3(message.SIK);
8865
8610
  }
8611
+ if (message.publicKey !== void 0) {
8612
+ obj.publicKey = base64FromBytes3(message.publicKey);
8613
+ }
8614
+ if (message.name !== void 0) {
8615
+ obj.name = message.name;
8616
+ }
8866
8617
  return obj;
8867
8618
  },
8868
8619
  create(base) {
@@ -8877,17 +8628,22 @@ var SetAccountTx = {
8877
8628
  message.faucetPackage = object.faucetPackage !== void 0 && object.faucetPackage !== null ? FaucetPackage.fromPartial(object.faucetPackage) : void 0;
8878
8629
  message.delegates = object.delegates?.map((e) => e) || [];
8879
8630
  message.SIK = object.SIK ?? void 0;
8631
+ message.publicKey = object.publicKey ?? void 0;
8632
+ message.name = object.name ?? void 0;
8880
8633
  return message;
8881
8634
  }
8882
8635
  };
8883
8636
  function createBaseSIKTx() {
8884
- return { txtype: 0, SIK: void 0 };
8637
+ return { txtype: 0, nonce: void 0, SIK: void 0 };
8885
8638
  }
8886
8639
  var SIKTx = {
8887
8640
  encode(message, writer = import_minimal8.default.Writer.create()) {
8888
8641
  if (message.txtype !== 0) {
8889
8642
  writer.uint32(8).int32(message.txtype);
8890
8643
  }
8644
+ if (message.nonce !== void 0) {
8645
+ writer.uint32(16).uint32(message.nonce);
8646
+ }
8891
8647
  if (message.SIK !== void 0) {
8892
8648
  writer.uint32(26).bytes(message.SIK);
8893
8649
  }
@@ -8906,6 +8662,12 @@ var SIKTx = {
8906
8662
  }
8907
8663
  message.txtype = reader.int32();
8908
8664
  continue;
8665
+ case 2:
8666
+ if (tag !== 16) {
8667
+ break;
8668
+ }
8669
+ message.nonce = reader.uint32();
8670
+ continue;
8909
8671
  case 3:
8910
8672
  if (tag !== 26) {
8911
8673
  break;
@@ -8923,6 +8685,7 @@ var SIKTx = {
8923
8685
  fromJSON(object) {
8924
8686
  return {
8925
8687
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8688
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
8926
8689
  SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0
8927
8690
  };
8928
8691
  },
@@ -8931,6 +8694,9 @@ var SIKTx = {
8931
8694
  if (message.txtype !== 0) {
8932
8695
  obj.txtype = txTypeToJSON(message.txtype);
8933
8696
  }
8697
+ if (message.nonce !== void 0) {
8698
+ obj.nonce = Math.round(message.nonce);
8699
+ }
8934
8700
  if (message.SIK !== void 0) {
8935
8701
  obj.SIK = base64FromBytes3(message.SIK);
8936
8702
  }
@@ -8942,6 +8708,7 @@ var SIKTx = {
8942
8708
  fromPartial(object) {
8943
8709
  const message = createBaseSIKTx();
8944
8710
  message.txtype = object.txtype ?? 0;
8711
+ message.nonce = object.nonce ?? void 0;
8945
8712
  message.SIK = object.SIK ?? void 0;
8946
8713
  return message;
8947
8714
  }
@@ -9079,7 +8846,7 @@ var CollectFaucetTx = {
9079
8846
  return {
9080
8847
  txType: isSet8(object.txType) ? txTypeFromJSON(object.txType) : 0,
9081
8848
  faucetPackage: isSet8(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
9082
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
8849
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
9083
8850
  };
9084
8851
  },
9085
8852
  toJSON(message) {
@@ -9157,9 +8924,9 @@ var FaucetPayload = {
9157
8924
  },
9158
8925
  fromJSON(object) {
9159
8926
  return {
9160
- identifier: isSet8(object.identifier) ? Number(object.identifier) : 0,
8927
+ identifier: isSet8(object.identifier) ? globalThis.Number(object.identifier) : 0,
9161
8928
  to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
9162
- amount: isSet8(object.amount) ? Number(object.amount) : 0
8929
+ amount: isSet8(object.amount) ? globalThis.Number(object.amount) : 0
9163
8930
  };
9164
8931
  },
9165
8932
  toJSON(message) {
@@ -9304,7 +9071,7 @@ var SetKeykeeperTx = {
9304
9071
  fromJSON(object) {
9305
9072
  return {
9306
9073
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
9307
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
9074
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
9308
9075
  keykeeper: isSet8(object.keykeeper) ? bytesFromBase643(object.keykeeper) : new Uint8Array(0)
9309
9076
  };
9310
9077
  },
@@ -9364,7 +9131,9 @@ function createBaseProcess() {
9364
9131
  nullifiersRoot: void 0,
9365
9132
  sourceNetworkContractAddr: void 0,
9366
9133
  tokenDecimals: void 0,
9367
- tempSIKs: void 0
9134
+ tempSIKs: void 0,
9135
+ startTime: 0,
9136
+ duration: 0
9368
9137
  };
9369
9138
  }
9370
9139
  var Process = {
@@ -9462,6 +9231,12 @@ var Process = {
9462
9231
  if (message.tempSIKs !== void 0) {
9463
9232
  writer.uint32(272).bool(message.tempSIKs);
9464
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
+ }
9465
9240
  return writer;
9466
9241
  },
9467
9242
  decode(input, length) {
@@ -9657,6 +9432,18 @@ var Process = {
9657
9432
  }
9658
9433
  message.tempSIKs = reader.bool();
9659
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;
9660
9447
  }
9661
9448
  if ((tag & 7) === 4 || tag === 0) {
9662
9449
  break;
@@ -9669,35 +9456,37 @@ var Process = {
9669
9456
  return {
9670
9457
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
9671
9458
  entityId: isSet8(object.entityId) ? bytesFromBase643(object.entityId) : new Uint8Array(0),
9672
- startBlock: isSet8(object.startBlock) ? Number(object.startBlock) : 0,
9673
- blockCount: isSet8(object.blockCount) ? Number(object.blockCount) : 0,
9459
+ startBlock: isSet8(object.startBlock) ? globalThis.Number(object.startBlock) : 0,
9460
+ blockCount: isSet8(object.blockCount) ? globalThis.Number(object.blockCount) : 0,
9674
9461
  censusRoot: isSet8(object.censusRoot) ? bytesFromBase643(object.censusRoot) : new Uint8Array(0),
9675
- censusURI: isSet8(object.censusURI) ? String(object.censusURI) : void 0,
9676
- encryptionPrivateKeys: Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => String(e)) : [],
9677
- encryptionPublicKeys: Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => String(e)) : [],
9678
- keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : void 0,
9462
+ censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
9463
+ encryptionPrivateKeys: globalThis.Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => globalThis.String(e)) : [],
9464
+ encryptionPublicKeys: globalThis.Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => globalThis.String(e)) : [],
9465
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
9679
9466
  status: isSet8(object.status) ? processStatusFromJSON(object.status) : 0,
9680
9467
  paramsSignature: isSet8(object.paramsSignature) ? bytesFromBase643(object.paramsSignature) : void 0,
9681
- namespace: isSet8(object.namespace) ? Number(object.namespace) : 0,
9468
+ namespace: isSet8(object.namespace) ? globalThis.Number(object.namespace) : 0,
9682
9469
  envelopeType: isSet8(object.envelopeType) ? EnvelopeType.fromJSON(object.envelopeType) : void 0,
9683
9470
  mode: isSet8(object.mode) ? ProcessMode.fromJSON(object.mode) : void 0,
9684
- questionIndex: isSet8(object.questionIndex) ? Number(object.questionIndex) : void 0,
9685
- questionCount: isSet8(object.questionCount) ? Number(object.questionCount) : void 0,
9471
+ questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
9472
+ questionCount: isSet8(object.questionCount) ? globalThis.Number(object.questionCount) : void 0,
9686
9473
  voteOptions: isSet8(object.voteOptions) ? ProcessVoteOptions.fromJSON(object.voteOptions) : void 0,
9687
9474
  censusOrigin: isSet8(object.censusOrigin) ? censusOriginFromJSON(object.censusOrigin) : 0,
9688
9475
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
9689
- ethIndexSlot: isSet8(object.ethIndexSlot) ? Number(object.ethIndexSlot) : void 0,
9690
- sourceBlockHeight: isSet8(object.sourceBlockHeight) ? Number(object.sourceBlockHeight) : void 0,
9476
+ ethIndexSlot: isSet8(object.ethIndexSlot) ? globalThis.Number(object.ethIndexSlot) : void 0,
9477
+ sourceBlockHeight: isSet8(object.sourceBlockHeight) ? globalThis.Number(object.sourceBlockHeight) : void 0,
9691
9478
  owner: isSet8(object.owner) ? bytesFromBase643(object.owner) : void 0,
9692
- metadata: isSet8(object.metadata) ? String(object.metadata) : void 0,
9479
+ metadata: isSet8(object.metadata) ? globalThis.String(object.metadata) : void 0,
9693
9480
  sourceNetworkId: isSet8(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
9694
- maxCensusSize: isSet8(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
9481
+ maxCensusSize: isSet8(object.maxCensusSize) ? globalThis.Number(object.maxCensusSize) : 0,
9695
9482
  rollingCensusRoot: isSet8(object.rollingCensusRoot) ? bytesFromBase643(object.rollingCensusRoot) : void 0,
9696
- rollingCensusSize: isSet8(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
9483
+ rollingCensusSize: isSet8(object.rollingCensusSize) ? globalThis.Number(object.rollingCensusSize) : void 0,
9697
9484
  nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
9698
9485
  sourceNetworkContractAddr: isSet8(object.sourceNetworkContractAddr) ? bytesFromBase643(object.sourceNetworkContractAddr) : void 0,
9699
- tokenDecimals: isSet8(object.tokenDecimals) ? Number(object.tokenDecimals) : void 0,
9700
- tempSIKs: isSet8(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
9486
+ tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : 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
9701
9490
  };
9702
9491
  },
9703
9492
  toJSON(message) {
@@ -9795,6 +9584,12 @@ var Process = {
9795
9584
  if (message.tempSIKs !== void 0) {
9796
9585
  obj.tempSIKs = message.tempSIKs;
9797
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
+ }
9798
9593
  return obj;
9799
9594
  },
9800
9595
  create(base) {
@@ -9833,6 +9628,8 @@ var Process = {
9833
9628
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
9834
9629
  message.tokenDecimals = object.tokenDecimals ?? void 0;
9835
9630
  message.tempSIKs = object.tempSIKs ?? void 0;
9631
+ message.startTime = object.startTime ?? 0;
9632
+ message.duration = object.duration ?? 0;
9836
9633
  return message;
9837
9634
  }
9838
9635
  };
@@ -9905,11 +9702,11 @@ var EnvelopeType = {
9905
9702
  },
9906
9703
  fromJSON(object) {
9907
9704
  return {
9908
- serial: isSet8(object.serial) ? Boolean(object.serial) : false,
9909
- anonymous: isSet8(object.anonymous) ? Boolean(object.anonymous) : false,
9910
- encryptedVotes: isSet8(object.encryptedVotes) ? Boolean(object.encryptedVotes) : false,
9911
- uniqueValues: isSet8(object.uniqueValues) ? Boolean(object.uniqueValues) : false,
9912
- costFromWeight: isSet8(object.costFromWeight) ? Boolean(object.costFromWeight) : false
9705
+ serial: isSet8(object.serial) ? globalThis.Boolean(object.serial) : false,
9706
+ anonymous: isSet8(object.anonymous) ? globalThis.Boolean(object.anonymous) : false,
9707
+ encryptedVotes: isSet8(object.encryptedVotes) ? globalThis.Boolean(object.encryptedVotes) : false,
9708
+ uniqueValues: isSet8(object.uniqueValues) ? globalThis.Boolean(object.uniqueValues) : false,
9709
+ costFromWeight: isSet8(object.costFromWeight) ? globalThis.Boolean(object.costFromWeight) : false
9913
9710
  };
9914
9711
  },
9915
9712
  toJSON(message) {
@@ -10013,11 +9810,11 @@ var ProcessMode = {
10013
9810
  },
10014
9811
  fromJSON(object) {
10015
9812
  return {
10016
- autoStart: isSet8(object.autoStart) ? Boolean(object.autoStart) : false,
10017
- interruptible: isSet8(object.interruptible) ? Boolean(object.interruptible) : false,
10018
- dynamicCensus: isSet8(object.dynamicCensus) ? Boolean(object.dynamicCensus) : false,
10019
- encryptedMetaData: isSet8(object.encryptedMetaData) ? Boolean(object.encryptedMetaData) : false,
10020
- preRegister: isSet8(object.preRegister) ? Boolean(object.preRegister) : false
9813
+ autoStart: isSet8(object.autoStart) ? globalThis.Boolean(object.autoStart) : false,
9814
+ interruptible: isSet8(object.interruptible) ? globalThis.Boolean(object.interruptible) : false,
9815
+ dynamicCensus: isSet8(object.dynamicCensus) ? globalThis.Boolean(object.dynamicCensus) : false,
9816
+ encryptedMetaData: isSet8(object.encryptedMetaData) ? globalThis.Boolean(object.encryptedMetaData) : false,
9817
+ preRegister: isSet8(object.preRegister) ? globalThis.Boolean(object.preRegister) : false
10021
9818
  };
10022
9819
  },
10023
9820
  toJSON(message) {
@@ -10121,11 +9918,11 @@ var ProcessVoteOptions = {
10121
9918
  },
10122
9919
  fromJSON(object) {
10123
9920
  return {
10124
- maxCount: isSet8(object.maxCount) ? Number(object.maxCount) : 0,
10125
- maxValue: isSet8(object.maxValue) ? Number(object.maxValue) : 0,
10126
- maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? Number(object.maxVoteOverwrites) : 0,
10127
- maxTotalCost: isSet8(object.maxTotalCost) ? Number(object.maxTotalCost) : 0,
10128
- costExponent: isSet8(object.costExponent) ? Number(object.costExponent) : 0
9921
+ maxCount: isSet8(object.maxCount) ? globalThis.Number(object.maxCount) : 0,
9922
+ maxValue: isSet8(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
9923
+ maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
9924
+ maxTotalCost: isSet8(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
9925
+ costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0
10129
9926
  };
10130
9927
  },
10131
9928
  toJSON(message) {
@@ -10192,7 +9989,9 @@ var OracleList = {
10192
9989
  return message;
10193
9990
  },
10194
9991
  fromJSON(object) {
10195
- return { oracles: Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase643(e)) : [] };
9992
+ return {
9993
+ oracles: globalThis.Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase643(e)) : []
9994
+ };
10196
9995
  },
10197
9996
  toJSON(message) {
10198
9997
  const obj = {};
@@ -10243,7 +10042,7 @@ var ValidatorList = {
10243
10042
  },
10244
10043
  fromJSON(object) {
10245
10044
  return {
10246
- validators: Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
10045
+ validators: globalThis.Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
10247
10046
  };
10248
10047
  },
10249
10048
  toJSON(message) {
@@ -10263,7 +10062,18 @@ var ValidatorList = {
10263
10062
  }
10264
10063
  };
10265
10064
  function createBaseValidator() {
10266
- return { address: new Uint8Array(0), pubKey: new Uint8Array(0), power: 0, name: "", keyIndex: 0 };
10065
+ return {
10066
+ address: new Uint8Array(0),
10067
+ pubKey: new Uint8Array(0),
10068
+ power: 0,
10069
+ name: "",
10070
+ keyIndex: 0,
10071
+ height: 0,
10072
+ proposals: 0,
10073
+ votes: 0,
10074
+ validatorAddress: new Uint8Array(0),
10075
+ score: 0
10076
+ };
10267
10077
  }
10268
10078
  var Validator = {
10269
10079
  encode(message, writer = import_minimal8.default.Writer.create()) {
@@ -10282,6 +10092,21 @@ var Validator = {
10282
10092
  if (message.keyIndex !== 0) {
10283
10093
  writer.uint32(40).uint32(message.keyIndex);
10284
10094
  }
10095
+ if (message.height !== 0) {
10096
+ writer.uint32(48).uint64(message.height);
10097
+ }
10098
+ if (message.proposals !== 0) {
10099
+ writer.uint32(56).uint64(message.proposals);
10100
+ }
10101
+ if (message.votes !== 0) {
10102
+ writer.uint32(64).uint64(message.votes);
10103
+ }
10104
+ if (message.validatorAddress.length !== 0) {
10105
+ writer.uint32(74).bytes(message.validatorAddress);
10106
+ }
10107
+ if (message.score !== 0) {
10108
+ writer.uint32(80).uint32(message.score);
10109
+ }
10285
10110
  return writer;
10286
10111
  },
10287
10112
  decode(input, length) {
@@ -10321,6 +10146,36 @@ var Validator = {
10321
10146
  }
10322
10147
  message.keyIndex = reader.uint32();
10323
10148
  continue;
10149
+ case 6:
10150
+ if (tag !== 48) {
10151
+ break;
10152
+ }
10153
+ message.height = longToNumber2(reader.uint64());
10154
+ continue;
10155
+ case 7:
10156
+ if (tag !== 56) {
10157
+ break;
10158
+ }
10159
+ message.proposals = longToNumber2(reader.uint64());
10160
+ continue;
10161
+ case 8:
10162
+ if (tag !== 64) {
10163
+ break;
10164
+ }
10165
+ message.votes = longToNumber2(reader.uint64());
10166
+ continue;
10167
+ case 9:
10168
+ if (tag !== 74) {
10169
+ break;
10170
+ }
10171
+ message.validatorAddress = reader.bytes();
10172
+ continue;
10173
+ case 10:
10174
+ if (tag !== 80) {
10175
+ break;
10176
+ }
10177
+ message.score = reader.uint32();
10178
+ continue;
10324
10179
  }
10325
10180
  if ((tag & 7) === 4 || tag === 0) {
10326
10181
  break;
@@ -10333,9 +10188,14 @@ var Validator = {
10333
10188
  return {
10334
10189
  address: isSet8(object.address) ? bytesFromBase643(object.address) : new Uint8Array(0),
10335
10190
  pubKey: isSet8(object.pubKey) ? bytesFromBase643(object.pubKey) : new Uint8Array(0),
10336
- power: isSet8(object.power) ? Number(object.power) : 0,
10337
- name: isSet8(object.name) ? String(object.name) : "",
10338
- keyIndex: isSet8(object.keyIndex) ? Number(object.keyIndex) : 0
10191
+ power: isSet8(object.power) ? globalThis.Number(object.power) : 0,
10192
+ name: isSet8(object.name) ? globalThis.String(object.name) : "",
10193
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : 0,
10194
+ height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
10195
+ proposals: isSet8(object.proposals) ? globalThis.Number(object.proposals) : 0,
10196
+ votes: isSet8(object.votes) ? globalThis.Number(object.votes) : 0,
10197
+ validatorAddress: isSet8(object.validatorAddress) ? bytesFromBase643(object.validatorAddress) : new Uint8Array(0),
10198
+ score: isSet8(object.score) ? globalThis.Number(object.score) : 0
10339
10199
  };
10340
10200
  },
10341
10201
  toJSON(message) {
@@ -10355,6 +10215,21 @@ var Validator = {
10355
10215
  if (message.keyIndex !== 0) {
10356
10216
  obj.keyIndex = Math.round(message.keyIndex);
10357
10217
  }
10218
+ if (message.height !== 0) {
10219
+ obj.height = Math.round(message.height);
10220
+ }
10221
+ if (message.proposals !== 0) {
10222
+ obj.proposals = Math.round(message.proposals);
10223
+ }
10224
+ if (message.votes !== 0) {
10225
+ obj.votes = Math.round(message.votes);
10226
+ }
10227
+ if (message.validatorAddress.length !== 0) {
10228
+ obj.validatorAddress = base64FromBytes3(message.validatorAddress);
10229
+ }
10230
+ if (message.score !== 0) {
10231
+ obj.score = Math.round(message.score);
10232
+ }
10358
10233
  return obj;
10359
10234
  },
10360
10235
  create(base) {
@@ -10367,6 +10242,11 @@ var Validator = {
10367
10242
  message.power = object.power ?? 0;
10368
10243
  message.name = object.name ?? "";
10369
10244
  message.keyIndex = object.keyIndex ?? 0;
10245
+ message.height = object.height ?? 0;
10246
+ message.proposals = object.proposals ?? 0;
10247
+ message.votes = object.votes ?? 0;
10248
+ message.validatorAddress = object.validatorAddress ?? new Uint8Array(0);
10249
+ message.score = object.score ?? 0;
10370
10250
  return message;
10371
10251
  }
10372
10252
  };
@@ -10525,9 +10405,9 @@ var TendermintHeader = {
10525
10405
  },
10526
10406
  fromJSON(object) {
10527
10407
  return {
10528
- chainId: isSet8(object.chainId) ? String(object.chainId) : "",
10529
- height: isSet8(object.height) ? Number(object.height) : 0,
10530
- timestamp: isSet8(object.timestamp) ? Number(object.timestamp) : 0,
10408
+ chainId: isSet8(object.chainId) ? globalThis.String(object.chainId) : "",
10409
+ height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
10410
+ timestamp: isSet8(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
10531
10411
  blockID: isSet8(object.blockID) ? bytesFromBase643(object.blockID) : new Uint8Array(0),
10532
10412
  lastCommitHash: isSet8(object.lastCommitHash) ? bytesFromBase643(object.lastCommitHash) : new Uint8Array(0),
10533
10413
  dataHash: isSet8(object.dataHash) ? bytesFromBase643(object.dataHash) : new Uint8Array(0),
@@ -10636,7 +10516,9 @@ var ProcessResult = {
10636
10516
  return message;
10637
10517
  },
10638
10518
  fromJSON(object) {
10639
- return { votes: Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : [] };
10519
+ return {
10520
+ votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : []
10521
+ };
10640
10522
  },
10641
10523
  toJSON(message) {
10642
10524
  const obj = {};
@@ -10686,7 +10568,9 @@ var QuestionResult = {
10686
10568
  return message;
10687
10569
  },
10688
10570
  fromJSON(object) {
10689
- return { question: Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase643(e)) : [] };
10571
+ return {
10572
+ question: globalThis.Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase643(e)) : []
10573
+ };
10690
10574
  },
10691
10575
  toJSON(message) {
10692
10576
  const obj = {};
@@ -10737,7 +10621,7 @@ var ProcessEndingList = {
10737
10621
  },
10738
10622
  fromJSON(object) {
10739
10623
  return {
10740
- processList: Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
10624
+ processList: globalThis.Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
10741
10625
  };
10742
10626
  },
10743
10627
  toJSON(message) {
@@ -10788,7 +10672,7 @@ var StoredKeys = {
10788
10672
  return message;
10789
10673
  },
10790
10674
  fromJSON(object) {
10791
- return { pids: Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
10675
+ return { pids: globalThis.Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
10792
10676
  },
10793
10677
  toJSON(message) {
10794
10678
  const obj = {};
@@ -10806,26 +10690,11 @@ var StoredKeys = {
10806
10690
  return message;
10807
10691
  }
10808
10692
  };
10809
- var tsProtoGlobalThis3 = (() => {
10810
- if (typeof globalThis !== "undefined") {
10811
- return globalThis;
10812
- }
10813
- if (typeof self !== "undefined") {
10814
- return self;
10815
- }
10816
- if (typeof window !== "undefined") {
10817
- return window;
10818
- }
10819
- if (typeof global !== "undefined") {
10820
- return global;
10821
- }
10822
- throw "Unable to locate global object";
10823
- })();
10824
10693
  function bytesFromBase643(b64) {
10825
- if (tsProtoGlobalThis3.Buffer) {
10826
- return Uint8Array.from(tsProtoGlobalThis3.Buffer.from(b64, "base64"));
10694
+ if (globalThis.Buffer) {
10695
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
10827
10696
  } else {
10828
- const bin = tsProtoGlobalThis3.atob(b64);
10697
+ const bin = globalThis.atob(b64);
10829
10698
  const arr = new Uint8Array(bin.length);
10830
10699
  for (let i = 0; i < bin.length; ++i) {
10831
10700
  arr[i] = bin.charCodeAt(i);
@@ -10834,19 +10703,19 @@ function bytesFromBase643(b64) {
10834
10703
  }
10835
10704
  }
10836
10705
  function base64FromBytes3(arr) {
10837
- if (tsProtoGlobalThis3.Buffer) {
10838
- return tsProtoGlobalThis3.Buffer.from(arr).toString("base64");
10706
+ if (globalThis.Buffer) {
10707
+ return globalThis.Buffer.from(arr).toString("base64");
10839
10708
  } else {
10840
10709
  const bin = [];
10841
10710
  arr.forEach((byte) => {
10842
- bin.push(String.fromCharCode(byte));
10711
+ bin.push(globalThis.String.fromCharCode(byte));
10843
10712
  });
10844
- return tsProtoGlobalThis3.btoa(bin.join(""));
10713
+ return globalThis.btoa(bin.join(""));
10845
10714
  }
10846
10715
  }
10847
10716
  function longToNumber2(long) {
10848
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
10849
- throw new tsProtoGlobalThis3.Error("Value is larger than Number.MAX_SAFE_INTEGER");
10717
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
10718
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
10850
10719
  }
10851
10720
  return long.toNumber();
10852
10721
  }