@vocdoni/proto 1.15.3 → 1.15.4

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,7 @@ 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";
5753
5777
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
5754
5778
  return TxType2;
5755
5779
  })(TxType || {});
@@ -5797,15 +5821,9 @@ function txTypeFromJSON(object) {
5797
5821
  case 13:
5798
5822
  case "REGISTER_VOTER_KEY":
5799
5823
  return 13 /* REGISTER_VOTER_KEY */;
5800
- case 14:
5801
- case "MINT_TOKENS":
5802
- return 14 /* MINT_TOKENS */;
5803
5824
  case 15:
5804
5825
  case "SEND_TOKENS":
5805
5826
  return 15 /* SEND_TOKENS */;
5806
- case 16:
5807
- case "SET_TRANSACTION_COSTS":
5808
- return 16 /* SET_TRANSACTION_COSTS */;
5809
5827
  case 17:
5810
5828
  case "SET_ACCOUNT_INFO_URI":
5811
5829
  return 17 /* SET_ACCOUNT_INFO_URI */;
@@ -5836,6 +5854,9 @@ function txTypeFromJSON(object) {
5836
5854
  case 26:
5837
5855
  case "REGISTER_SIK":
5838
5856
  return 26 /* REGISTER_SIK */;
5857
+ case 27:
5858
+ case "SET_ACCOUNT_VALIDATOR":
5859
+ return 27 /* SET_ACCOUNT_VALIDATOR */;
5839
5860
  case -1:
5840
5861
  case "UNRECOGNIZED":
5841
5862
  default:
@@ -5872,12 +5893,8 @@ function txTypeToJSON(object) {
5872
5893
  return "SET_PROCESS_RESULTS";
5873
5894
  case 13 /* REGISTER_VOTER_KEY */:
5874
5895
  return "REGISTER_VOTER_KEY";
5875
- case 14 /* MINT_TOKENS */:
5876
- return "MINT_TOKENS";
5877
5896
  case 15 /* SEND_TOKENS */:
5878
5897
  return "SEND_TOKENS";
5879
- case 16 /* SET_TRANSACTION_COSTS */:
5880
- return "SET_TRANSACTION_COSTS";
5881
5898
  case 17 /* SET_ACCOUNT_INFO_URI */:
5882
5899
  return "SET_ACCOUNT_INFO_URI";
5883
5900
  case 18 /* ADD_DELEGATE_FOR_ACCOUNT */:
@@ -5898,6 +5915,8 @@ function txTypeToJSON(object) {
5898
5915
  return "DEL_ACCOUNT_SIK";
5899
5916
  case 26 /* REGISTER_SIK */:
5900
5917
  return "REGISTER_SIK";
5918
+ case 27 /* SET_ACCOUNT_VALIDATOR */:
5919
+ return "SET_ACCOUNT_VALIDATOR";
5901
5920
  case -1 /* UNRECOGNIZED */:
5902
5921
  default:
5903
5922
  return "UNRECOGNIZED";
@@ -6147,8 +6166,6 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
6147
6166
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
6148
6167
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
6149
6168
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
6150
- Census_Type2[Census_Type2["GRAVITON"] = 1001] = "GRAVITON";
6151
- Census_Type2[Census_Type2["IDEN3"] = 1002] = "IDEN3";
6152
6169
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
6153
6170
  return Census_Type2;
6154
6171
  })(Census_Type || {});
@@ -6172,12 +6189,6 @@ function census_TypeFromJSON(object) {
6172
6189
  case 5:
6173
6190
  case "CA":
6174
6191
  return 5 /* CA */;
6175
- case 1001:
6176
- case "GRAVITON":
6177
- return 1001 /* GRAVITON */;
6178
- case 1002:
6179
- case "IDEN3":
6180
- return 1002 /* IDEN3 */;
6181
6192
  case -1:
6182
6193
  case "UNRECOGNIZED":
6183
6194
  default:
@@ -6198,10 +6209,6 @@ function census_TypeToJSON(object) {
6198
6209
  return "ETHEREUMACCOUNT";
6199
6210
  case 5 /* CA */:
6200
6211
  return "CA";
6201
- case 1001 /* GRAVITON */:
6202
- return "GRAVITON";
6203
- case 1002 /* IDEN3 */:
6204
- return "IDEN3";
6205
6212
  case -1 /* UNRECOGNIZED */:
6206
6213
  default:
6207
6214
  return "UNRECOGNIZED";
@@ -6417,7 +6424,7 @@ var VoteEnvelope = {
6417
6424
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
6418
6425
  votePackage: isSet8(object.votePackage) ? bytesFromBase643(object.votePackage) : new Uint8Array(0),
6419
6426
  nullifier: isSet8(object.nullifier) ? bytesFromBase643(object.nullifier) : new Uint8Array(0),
6420
- encryptionKeyIndexes: Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => Number(e)) : []
6427
+ encryptionKeyIndexes: globalThis.Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => globalThis.Number(e)) : []
6421
6428
  };
6422
6429
  },
6423
6430
  toJSON(message) {
@@ -6499,12 +6506,6 @@ function createBaseProof() {
6499
6506
  var Proof = {
6500
6507
  encode(message, writer = import_minimal8.default.Writer.create()) {
6501
6508
  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
6509
  case "ethereumStorage":
6509
6510
  ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
6510
6511
  break;
@@ -6533,18 +6534,6 @@ var Proof = {
6533
6534
  while (reader.pos < end) {
6534
6535
  const tag = reader.uint32();
6535
6536
  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
6537
  case 3:
6549
6538
  if (tag !== 26) {
6550
6539
  break;
@@ -6597,17 +6586,11 @@ var Proof = {
6597
6586
  },
6598
6587
  fromJSON(object) {
6599
6588
  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
6589
+ payload: isSet8(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet8(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet8(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet8(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet8(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet8(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
6601
6590
  };
6602
6591
  },
6603
6592
  toJSON(message) {
6604
6593
  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
6594
  if (message.payload?.$case === "ethereumStorage") {
6612
6595
  obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
6613
6596
  }
@@ -6633,12 +6616,6 @@ var Proof = {
6633
6616
  },
6634
6617
  fromPartial(object) {
6635
6618
  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
6619
  if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
6643
6620
  message.payload = {
6644
6621
  $case: "ethereumStorage",
@@ -6669,106 +6646,6 @@ var Proof = {
6669
6646
  return message;
6670
6647
  }
6671
6648
  };
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
6649
  function createBaseProofEthereumStorage() {
6773
6650
  return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
6774
6651
  }
@@ -6822,7 +6699,7 @@ var ProofEthereumStorage = {
6822
6699
  return {
6823
6700
  key: isSet8(object.key) ? bytesFromBase643(object.key) : new Uint8Array(0),
6824
6701
  value: isSet8(object.value) ? bytesFromBase643(object.value) : new Uint8Array(0),
6825
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6702
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6826
6703
  };
6827
6704
  },
6828
6705
  toJSON(message) {
@@ -6928,7 +6805,7 @@ var ProofEthereumAccount = {
6928
6805
  balance: isSet8(object.balance) ? bytesFromBase643(object.balance) : new Uint8Array(0),
6929
6806
  storageHash: isSet8(object.storageHash) ? bytesFromBase643(object.storageHash) : new Uint8Array(0),
6930
6807
  codeHash: isSet8(object.codeHash) ? bytesFromBase643(object.codeHash) : new Uint8Array(0),
6931
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6808
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase643(e)) : []
6932
6809
  };
6933
6810
  },
6934
6811
  toJSON(message) {
@@ -7358,11 +7235,11 @@ var ProofZkSNARK = {
7358
7235
  },
7359
7236
  fromJSON(object) {
7360
7237
  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)) : []
7238
+ circuitParametersIndex: isSet8(object.circuitParametersIndex) ? globalThis.Number(object.circuitParametersIndex) : 0,
7239
+ a: globalThis.Array.isArray(object?.a) ? object.a.map((e) => globalThis.String(e)) : [],
7240
+ b: globalThis.Array.isArray(object?.b) ? object.b.map((e) => globalThis.String(e)) : [],
7241
+ c: globalThis.Array.isArray(object?.c) ? object.c.map((e) => globalThis.String(e)) : [],
7242
+ publicInputs: globalThis.Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => globalThis.String(e)) : []
7366
7243
  };
7367
7244
  },
7368
7245
  toJSON(message) {
@@ -7466,11 +7343,11 @@ var Account2 = {
7466
7343
  },
7467
7344
  fromJSON(object) {
7468
7345
  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
7346
+ balance: isSet8(object.balance) ? globalThis.Number(object.balance) : 0,
7347
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
7348
+ infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : "",
7349
+ delegateAddrs: globalThis.Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase643(e)) : [],
7350
+ processIndex: isSet8(object.processIndex) ? globalThis.Number(object.processIndex) : 0
7474
7351
  };
7475
7352
  },
7476
7353
  toJSON(message) {
@@ -7505,72 +7382,6 @@ var Account2 = {
7505
7382
  return message;
7506
7383
  }
7507
7384
  };
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
7385
  function createBaseTx() {
7575
7386
  return { payload: void 0 };
7576
7387
  }
@@ -7592,9 +7403,6 @@ var Tx = {
7592
7403
  case "registerKey":
7593
7404
  RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
7594
7405
  break;
7595
- case "mintTokens":
7596
- MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
7597
- break;
7598
7406
  case "sendTokens":
7599
7407
  SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
7600
7408
  break;
@@ -7659,12 +7467,6 @@ var Tx = {
7659
7467
  }
7660
7468
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
7661
7469
  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
7470
  case 7:
7669
7471
  if (tag !== 58) {
7670
7472
  break;
@@ -7726,7 +7528,7 @@ var Tx = {
7726
7528
  },
7727
7529
  fromJSON(object) {
7728
7530
  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) ? {
7531
+ 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
7532
  $case: "setTransactionCosts",
7731
7533
  setTransactionCosts: SetTransactionCostsTx.fromJSON(object.setTransactionCosts)
7732
7534
  } : 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 +7551,6 @@ var Tx = {
7749
7551
  if (message.payload?.$case === "registerKey") {
7750
7552
  obj.registerKey = RegisterKeyTx.toJSON(message.payload.registerKey);
7751
7553
  }
7752
- if (message.payload?.$case === "mintTokens") {
7753
- obj.mintTokens = MintTokensTx.toJSON(message.payload.mintTokens);
7754
- }
7755
7554
  if (message.payload?.$case === "sendTokens") {
7756
7555
  obj.sendTokens = SendTokensTx.toJSON(message.payload.sendTokens);
7757
7556
  }
@@ -7798,9 +7597,6 @@ var Tx = {
7798
7597
  if (object.payload?.$case === "registerKey" && object.payload?.registerKey !== void 0 && object.payload?.registerKey !== null) {
7799
7598
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.fromPartial(object.payload.registerKey) };
7800
7599
  }
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
7600
  if (object.payload?.$case === "sendTokens" && object.payload?.sendTokens !== void 0 && object.payload?.sendTokens !== null) {
7805
7601
  message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.fromPartial(object.payload.sendTokens) };
7806
7602
  }
@@ -7955,7 +7751,7 @@ var NewProcessTx = {
7955
7751
  fromJSON(object) {
7956
7752
  return {
7957
7753
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
7958
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
7754
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
7959
7755
  process: isSet8(object.process) ? Process.fromJSON(object.process) : void 0
7960
7756
  };
7961
7757
  },
@@ -8109,15 +7905,15 @@ var SetProcessTx = {
8109
7905
  fromJSON(object) {
8110
7906
  return {
8111
7907
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8112
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
7908
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8113
7909
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
8114
7910
  status: isSet8(object.status) ? processStatusFromJSON(object.status) : void 0,
8115
- questionIndex: isSet8(object.questionIndex) ? Number(object.questionIndex) : void 0,
7911
+ questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
8116
7912
  censusRoot: isSet8(object.censusRoot) ? bytesFromBase643(object.censusRoot) : void 0,
8117
- censusURI: isSet8(object.censusURI) ? String(object.censusURI) : void 0,
7913
+ censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
8118
7914
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
8119
7915
  results: isSet8(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
8120
- tempSIKs: isSet8(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
7916
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
8121
7917
  };
8122
7918
  },
8123
7919
  toJSON(message) {
@@ -8292,10 +8088,10 @@ var AdminTx = {
8292
8088
  address: isSet8(object.address) ? bytesFromBase643(object.address) : void 0,
8293
8089
  encryptionPrivateKey: isSet8(object.encryptionPrivateKey) ? bytesFromBase643(object.encryptionPrivateKey) : void 0,
8294
8090
  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,
8091
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
8092
+ power: isSet8(object.power) ? globalThis.Number(object.power) : void 0,
8297
8093
  publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
8298
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
8094
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
8299
8095
  };
8300
8096
  },
8301
8097
  toJSON(message) {
@@ -8415,11 +8211,11 @@ var RegisterKeyTx = {
8415
8211
  },
8416
8212
  fromJSON(object) {
8417
8213
  return {
8418
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8214
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8419
8215
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
8420
8216
  proof: isSet8(object.proof) ? Proof.fromJSON(object.proof) : void 0,
8421
8217
  newKey: isSet8(object.newKey) ? bytesFromBase643(object.newKey) : new Uint8Array(0),
8422
- weight: isSet8(object.weight) ? String(object.weight) : ""
8218
+ weight: isSet8(object.weight) ? globalThis.String(object.weight) : ""
8423
8219
  };
8424
8220
  },
8425
8221
  toJSON(message) {
@@ -8454,100 +8250,6 @@ var RegisterKeyTx = {
8454
8250
  return message;
8455
8251
  }
8456
8252
  };
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
8253
  function createBaseSendTokensTx() {
8552
8254
  return { txtype: 0, nonce: 0, from: new Uint8Array(0), to: new Uint8Array(0), value: 0 };
8553
8255
  }
@@ -8618,10 +8320,10 @@ var SendTokensTx = {
8618
8320
  fromJSON(object) {
8619
8321
  return {
8620
8322
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8621
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
8323
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8622
8324
  from: isSet8(object.from) ? bytesFromBase643(object.from) : new Uint8Array(0),
8623
8325
  to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
8624
- value: isSet8(object.value) ? Number(object.value) : 0
8326
+ value: isSet8(object.value) ? globalThis.Number(object.value) : 0
8625
8327
  };
8626
8328
  },
8627
8329
  toJSON(message) {
@@ -8708,8 +8410,8 @@ var SetTransactionCostsTx = {
8708
8410
  fromJSON(object) {
8709
8411
  return {
8710
8412
  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
8413
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
8414
+ value: isSet8(object.value) ? globalThis.Number(object.value) : 0
8713
8415
  };
8714
8416
  },
8715
8417
  toJSON(message) {
@@ -8744,7 +8446,9 @@ function createBaseSetAccountTx() {
8744
8446
  account: void 0,
8745
8447
  faucetPackage: void 0,
8746
8448
  delegates: [],
8747
- SIK: void 0
8449
+ SIK: void 0,
8450
+ publicKey: void 0,
8451
+ name: void 0
8748
8452
  };
8749
8453
  }
8750
8454
  var SetAccountTx = {
@@ -8770,6 +8474,12 @@ var SetAccountTx = {
8770
8474
  if (message.SIK !== void 0) {
8771
8475
  writer.uint32(58).bytes(message.SIK);
8772
8476
  }
8477
+ if (message.publicKey !== void 0) {
8478
+ writer.uint32(66).bytes(message.publicKey);
8479
+ }
8480
+ if (message.name !== void 0) {
8481
+ writer.uint32(74).string(message.name);
8482
+ }
8773
8483
  return writer;
8774
8484
  },
8775
8485
  decode(input, length) {
@@ -8821,6 +8531,18 @@ var SetAccountTx = {
8821
8531
  }
8822
8532
  message.SIK = reader.bytes();
8823
8533
  continue;
8534
+ case 8:
8535
+ if (tag !== 66) {
8536
+ break;
8537
+ }
8538
+ message.publicKey = reader.bytes();
8539
+ continue;
8540
+ case 9:
8541
+ if (tag !== 74) {
8542
+ break;
8543
+ }
8544
+ message.name = reader.string();
8545
+ continue;
8824
8546
  }
8825
8547
  if ((tag & 7) === 4 || tag === 0) {
8826
8548
  break;
@@ -8832,12 +8554,14 @@ var SetAccountTx = {
8832
8554
  fromJSON(object) {
8833
8555
  return {
8834
8556
  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,
8557
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
8558
+ infoURI: isSet8(object.infoURI) ? globalThis.String(object.infoURI) : void 0,
8837
8559
  account: isSet8(object.account) ? bytesFromBase643(object.account) : void 0,
8838
8560
  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
8561
+ delegates: globalThis.Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase643(e)) : [],
8562
+ SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0,
8563
+ publicKey: isSet8(object.publicKey) ? bytesFromBase643(object.publicKey) : void 0,
8564
+ name: isSet8(object.name) ? globalThis.String(object.name) : void 0
8841
8565
  };
8842
8566
  },
8843
8567
  toJSON(message) {
@@ -8863,6 +8587,12 @@ var SetAccountTx = {
8863
8587
  if (message.SIK !== void 0) {
8864
8588
  obj.SIK = base64FromBytes3(message.SIK);
8865
8589
  }
8590
+ if (message.publicKey !== void 0) {
8591
+ obj.publicKey = base64FromBytes3(message.publicKey);
8592
+ }
8593
+ if (message.name !== void 0) {
8594
+ obj.name = message.name;
8595
+ }
8866
8596
  return obj;
8867
8597
  },
8868
8598
  create(base) {
@@ -8877,17 +8607,22 @@ var SetAccountTx = {
8877
8607
  message.faucetPackage = object.faucetPackage !== void 0 && object.faucetPackage !== null ? FaucetPackage.fromPartial(object.faucetPackage) : void 0;
8878
8608
  message.delegates = object.delegates?.map((e) => e) || [];
8879
8609
  message.SIK = object.SIK ?? void 0;
8610
+ message.publicKey = object.publicKey ?? void 0;
8611
+ message.name = object.name ?? void 0;
8880
8612
  return message;
8881
8613
  }
8882
8614
  };
8883
8615
  function createBaseSIKTx() {
8884
- return { txtype: 0, SIK: void 0 };
8616
+ return { txtype: 0, nonce: void 0, SIK: void 0 };
8885
8617
  }
8886
8618
  var SIKTx = {
8887
8619
  encode(message, writer = import_minimal8.default.Writer.create()) {
8888
8620
  if (message.txtype !== 0) {
8889
8621
  writer.uint32(8).int32(message.txtype);
8890
8622
  }
8623
+ if (message.nonce !== void 0) {
8624
+ writer.uint32(16).uint32(message.nonce);
8625
+ }
8891
8626
  if (message.SIK !== void 0) {
8892
8627
  writer.uint32(26).bytes(message.SIK);
8893
8628
  }
@@ -8906,6 +8641,12 @@ var SIKTx = {
8906
8641
  }
8907
8642
  message.txtype = reader.int32();
8908
8643
  continue;
8644
+ case 2:
8645
+ if (tag !== 16) {
8646
+ break;
8647
+ }
8648
+ message.nonce = reader.uint32();
8649
+ continue;
8909
8650
  case 3:
8910
8651
  if (tag !== 26) {
8911
8652
  break;
@@ -8923,6 +8664,7 @@ var SIKTx = {
8923
8664
  fromJSON(object) {
8924
8665
  return {
8925
8666
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
8667
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : void 0,
8926
8668
  SIK: isSet8(object.SIK) ? bytesFromBase643(object.SIK) : void 0
8927
8669
  };
8928
8670
  },
@@ -8931,6 +8673,9 @@ var SIKTx = {
8931
8673
  if (message.txtype !== 0) {
8932
8674
  obj.txtype = txTypeToJSON(message.txtype);
8933
8675
  }
8676
+ if (message.nonce !== void 0) {
8677
+ obj.nonce = Math.round(message.nonce);
8678
+ }
8934
8679
  if (message.SIK !== void 0) {
8935
8680
  obj.SIK = base64FromBytes3(message.SIK);
8936
8681
  }
@@ -8942,6 +8687,7 @@ var SIKTx = {
8942
8687
  fromPartial(object) {
8943
8688
  const message = createBaseSIKTx();
8944
8689
  message.txtype = object.txtype ?? 0;
8690
+ message.nonce = object.nonce ?? void 0;
8945
8691
  message.SIK = object.SIK ?? void 0;
8946
8692
  return message;
8947
8693
  }
@@ -9079,7 +8825,7 @@ var CollectFaucetTx = {
9079
8825
  return {
9080
8826
  txType: isSet8(object.txType) ? txTypeFromJSON(object.txType) : 0,
9081
8827
  faucetPackage: isSet8(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
9082
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0
8828
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0
9083
8829
  };
9084
8830
  },
9085
8831
  toJSON(message) {
@@ -9157,9 +8903,9 @@ var FaucetPayload = {
9157
8903
  },
9158
8904
  fromJSON(object) {
9159
8905
  return {
9160
- identifier: isSet8(object.identifier) ? Number(object.identifier) : 0,
8906
+ identifier: isSet8(object.identifier) ? globalThis.Number(object.identifier) : 0,
9161
8907
  to: isSet8(object.to) ? bytesFromBase643(object.to) : new Uint8Array(0),
9162
- amount: isSet8(object.amount) ? Number(object.amount) : 0
8908
+ amount: isSet8(object.amount) ? globalThis.Number(object.amount) : 0
9163
8909
  };
9164
8910
  },
9165
8911
  toJSON(message) {
@@ -9304,7 +9050,7 @@ var SetKeykeeperTx = {
9304
9050
  fromJSON(object) {
9305
9051
  return {
9306
9052
  txtype: isSet8(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
9307
- nonce: isSet8(object.nonce) ? Number(object.nonce) : 0,
9053
+ nonce: isSet8(object.nonce) ? globalThis.Number(object.nonce) : 0,
9308
9054
  keykeeper: isSet8(object.keykeeper) ? bytesFromBase643(object.keykeeper) : new Uint8Array(0)
9309
9055
  };
9310
9056
  },
@@ -9669,35 +9415,35 @@ var Process = {
9669
9415
  return {
9670
9416
  processId: isSet8(object.processId) ? bytesFromBase643(object.processId) : new Uint8Array(0),
9671
9417
  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,
9418
+ startBlock: isSet8(object.startBlock) ? globalThis.Number(object.startBlock) : 0,
9419
+ blockCount: isSet8(object.blockCount) ? globalThis.Number(object.blockCount) : 0,
9674
9420
  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,
9421
+ censusURI: isSet8(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
9422
+ encryptionPrivateKeys: globalThis.Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => globalThis.String(e)) : [],
9423
+ encryptionPublicKeys: globalThis.Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => globalThis.String(e)) : [],
9424
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
9679
9425
  status: isSet8(object.status) ? processStatusFromJSON(object.status) : 0,
9680
9426
  paramsSignature: isSet8(object.paramsSignature) ? bytesFromBase643(object.paramsSignature) : void 0,
9681
- namespace: isSet8(object.namespace) ? Number(object.namespace) : 0,
9427
+ namespace: isSet8(object.namespace) ? globalThis.Number(object.namespace) : 0,
9682
9428
  envelopeType: isSet8(object.envelopeType) ? EnvelopeType.fromJSON(object.envelopeType) : void 0,
9683
9429
  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,
9430
+ questionIndex: isSet8(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
9431
+ questionCount: isSet8(object.questionCount) ? globalThis.Number(object.questionCount) : void 0,
9686
9432
  voteOptions: isSet8(object.voteOptions) ? ProcessVoteOptions.fromJSON(object.voteOptions) : void 0,
9687
9433
  censusOrigin: isSet8(object.censusOrigin) ? censusOriginFromJSON(object.censusOrigin) : 0,
9688
9434
  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,
9435
+ ethIndexSlot: isSet8(object.ethIndexSlot) ? globalThis.Number(object.ethIndexSlot) : void 0,
9436
+ sourceBlockHeight: isSet8(object.sourceBlockHeight) ? globalThis.Number(object.sourceBlockHeight) : void 0,
9691
9437
  owner: isSet8(object.owner) ? bytesFromBase643(object.owner) : void 0,
9692
- metadata: isSet8(object.metadata) ? String(object.metadata) : void 0,
9438
+ metadata: isSet8(object.metadata) ? globalThis.String(object.metadata) : void 0,
9693
9439
  sourceNetworkId: isSet8(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
9694
- maxCensusSize: isSet8(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
9440
+ maxCensusSize: isSet8(object.maxCensusSize) ? globalThis.Number(object.maxCensusSize) : 0,
9695
9441
  rollingCensusRoot: isSet8(object.rollingCensusRoot) ? bytesFromBase643(object.rollingCensusRoot) : void 0,
9696
- rollingCensusSize: isSet8(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
9442
+ rollingCensusSize: isSet8(object.rollingCensusSize) ? globalThis.Number(object.rollingCensusSize) : void 0,
9697
9443
  nullifiersRoot: isSet8(object.nullifiersRoot) ? bytesFromBase643(object.nullifiersRoot) : void 0,
9698
9444
  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
9445
+ tokenDecimals: isSet8(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
9446
+ tempSIKs: isSet8(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0
9701
9447
  };
9702
9448
  },
9703
9449
  toJSON(message) {
@@ -9905,11 +9651,11 @@ var EnvelopeType = {
9905
9651
  },
9906
9652
  fromJSON(object) {
9907
9653
  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
9654
+ serial: isSet8(object.serial) ? globalThis.Boolean(object.serial) : false,
9655
+ anonymous: isSet8(object.anonymous) ? globalThis.Boolean(object.anonymous) : false,
9656
+ encryptedVotes: isSet8(object.encryptedVotes) ? globalThis.Boolean(object.encryptedVotes) : false,
9657
+ uniqueValues: isSet8(object.uniqueValues) ? globalThis.Boolean(object.uniqueValues) : false,
9658
+ costFromWeight: isSet8(object.costFromWeight) ? globalThis.Boolean(object.costFromWeight) : false
9913
9659
  };
9914
9660
  },
9915
9661
  toJSON(message) {
@@ -10013,11 +9759,11 @@ var ProcessMode = {
10013
9759
  },
10014
9760
  fromJSON(object) {
10015
9761
  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
9762
+ autoStart: isSet8(object.autoStart) ? globalThis.Boolean(object.autoStart) : false,
9763
+ interruptible: isSet8(object.interruptible) ? globalThis.Boolean(object.interruptible) : false,
9764
+ dynamicCensus: isSet8(object.dynamicCensus) ? globalThis.Boolean(object.dynamicCensus) : false,
9765
+ encryptedMetaData: isSet8(object.encryptedMetaData) ? globalThis.Boolean(object.encryptedMetaData) : false,
9766
+ preRegister: isSet8(object.preRegister) ? globalThis.Boolean(object.preRegister) : false
10021
9767
  };
10022
9768
  },
10023
9769
  toJSON(message) {
@@ -10121,11 +9867,11 @@ var ProcessVoteOptions = {
10121
9867
  },
10122
9868
  fromJSON(object) {
10123
9869
  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
9870
+ maxCount: isSet8(object.maxCount) ? globalThis.Number(object.maxCount) : 0,
9871
+ maxValue: isSet8(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
9872
+ maxVoteOverwrites: isSet8(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
9873
+ maxTotalCost: isSet8(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
9874
+ costExponent: isSet8(object.costExponent) ? globalThis.Number(object.costExponent) : 0
10129
9875
  };
10130
9876
  },
10131
9877
  toJSON(message) {
@@ -10192,7 +9938,9 @@ var OracleList = {
10192
9938
  return message;
10193
9939
  },
10194
9940
  fromJSON(object) {
10195
- return { oracles: Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase643(e)) : [] };
9941
+ return {
9942
+ oracles: globalThis.Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase643(e)) : []
9943
+ };
10196
9944
  },
10197
9945
  toJSON(message) {
10198
9946
  const obj = {};
@@ -10243,7 +9991,7 @@ var ValidatorList = {
10243
9991
  },
10244
9992
  fromJSON(object) {
10245
9993
  return {
10246
- validators: Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
9994
+ validators: globalThis.Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
10247
9995
  };
10248
9996
  },
10249
9997
  toJSON(message) {
@@ -10263,7 +10011,18 @@ var ValidatorList = {
10263
10011
  }
10264
10012
  };
10265
10013
  function createBaseValidator() {
10266
- return { address: new Uint8Array(0), pubKey: new Uint8Array(0), power: 0, name: "", keyIndex: 0 };
10014
+ return {
10015
+ address: new Uint8Array(0),
10016
+ pubKey: new Uint8Array(0),
10017
+ power: 0,
10018
+ name: "",
10019
+ keyIndex: 0,
10020
+ height: 0,
10021
+ proposals: 0,
10022
+ votes: 0,
10023
+ validatorAddress: new Uint8Array(0),
10024
+ score: 0
10025
+ };
10267
10026
  }
10268
10027
  var Validator = {
10269
10028
  encode(message, writer = import_minimal8.default.Writer.create()) {
@@ -10282,6 +10041,21 @@ var Validator = {
10282
10041
  if (message.keyIndex !== 0) {
10283
10042
  writer.uint32(40).uint32(message.keyIndex);
10284
10043
  }
10044
+ if (message.height !== 0) {
10045
+ writer.uint32(48).uint64(message.height);
10046
+ }
10047
+ if (message.proposals !== 0) {
10048
+ writer.uint32(56).uint64(message.proposals);
10049
+ }
10050
+ if (message.votes !== 0) {
10051
+ writer.uint32(64).uint64(message.votes);
10052
+ }
10053
+ if (message.validatorAddress.length !== 0) {
10054
+ writer.uint32(74).bytes(message.validatorAddress);
10055
+ }
10056
+ if (message.score !== 0) {
10057
+ writer.uint32(80).uint32(message.score);
10058
+ }
10285
10059
  return writer;
10286
10060
  },
10287
10061
  decode(input, length) {
@@ -10321,6 +10095,36 @@ var Validator = {
10321
10095
  }
10322
10096
  message.keyIndex = reader.uint32();
10323
10097
  continue;
10098
+ case 6:
10099
+ if (tag !== 48) {
10100
+ break;
10101
+ }
10102
+ message.height = longToNumber2(reader.uint64());
10103
+ continue;
10104
+ case 7:
10105
+ if (tag !== 56) {
10106
+ break;
10107
+ }
10108
+ message.proposals = longToNumber2(reader.uint64());
10109
+ continue;
10110
+ case 8:
10111
+ if (tag !== 64) {
10112
+ break;
10113
+ }
10114
+ message.votes = longToNumber2(reader.uint64());
10115
+ continue;
10116
+ case 9:
10117
+ if (tag !== 74) {
10118
+ break;
10119
+ }
10120
+ message.validatorAddress = reader.bytes();
10121
+ continue;
10122
+ case 10:
10123
+ if (tag !== 80) {
10124
+ break;
10125
+ }
10126
+ message.score = reader.uint32();
10127
+ continue;
10324
10128
  }
10325
10129
  if ((tag & 7) === 4 || tag === 0) {
10326
10130
  break;
@@ -10333,9 +10137,14 @@ var Validator = {
10333
10137
  return {
10334
10138
  address: isSet8(object.address) ? bytesFromBase643(object.address) : new Uint8Array(0),
10335
10139
  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
10140
+ power: isSet8(object.power) ? globalThis.Number(object.power) : 0,
10141
+ name: isSet8(object.name) ? globalThis.String(object.name) : "",
10142
+ keyIndex: isSet8(object.keyIndex) ? globalThis.Number(object.keyIndex) : 0,
10143
+ height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
10144
+ proposals: isSet8(object.proposals) ? globalThis.Number(object.proposals) : 0,
10145
+ votes: isSet8(object.votes) ? globalThis.Number(object.votes) : 0,
10146
+ validatorAddress: isSet8(object.validatorAddress) ? bytesFromBase643(object.validatorAddress) : new Uint8Array(0),
10147
+ score: isSet8(object.score) ? globalThis.Number(object.score) : 0
10339
10148
  };
10340
10149
  },
10341
10150
  toJSON(message) {
@@ -10355,6 +10164,21 @@ var Validator = {
10355
10164
  if (message.keyIndex !== 0) {
10356
10165
  obj.keyIndex = Math.round(message.keyIndex);
10357
10166
  }
10167
+ if (message.height !== 0) {
10168
+ obj.height = Math.round(message.height);
10169
+ }
10170
+ if (message.proposals !== 0) {
10171
+ obj.proposals = Math.round(message.proposals);
10172
+ }
10173
+ if (message.votes !== 0) {
10174
+ obj.votes = Math.round(message.votes);
10175
+ }
10176
+ if (message.validatorAddress.length !== 0) {
10177
+ obj.validatorAddress = base64FromBytes3(message.validatorAddress);
10178
+ }
10179
+ if (message.score !== 0) {
10180
+ obj.score = Math.round(message.score);
10181
+ }
10358
10182
  return obj;
10359
10183
  },
10360
10184
  create(base) {
@@ -10367,6 +10191,11 @@ var Validator = {
10367
10191
  message.power = object.power ?? 0;
10368
10192
  message.name = object.name ?? "";
10369
10193
  message.keyIndex = object.keyIndex ?? 0;
10194
+ message.height = object.height ?? 0;
10195
+ message.proposals = object.proposals ?? 0;
10196
+ message.votes = object.votes ?? 0;
10197
+ message.validatorAddress = object.validatorAddress ?? new Uint8Array(0);
10198
+ message.score = object.score ?? 0;
10370
10199
  return message;
10371
10200
  }
10372
10201
  };
@@ -10525,9 +10354,9 @@ var TendermintHeader = {
10525
10354
  },
10526
10355
  fromJSON(object) {
10527
10356
  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,
10357
+ chainId: isSet8(object.chainId) ? globalThis.String(object.chainId) : "",
10358
+ height: isSet8(object.height) ? globalThis.Number(object.height) : 0,
10359
+ timestamp: isSet8(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
10531
10360
  blockID: isSet8(object.blockID) ? bytesFromBase643(object.blockID) : new Uint8Array(0),
10532
10361
  lastCommitHash: isSet8(object.lastCommitHash) ? bytesFromBase643(object.lastCommitHash) : new Uint8Array(0),
10533
10362
  dataHash: isSet8(object.dataHash) ? bytesFromBase643(object.dataHash) : new Uint8Array(0),
@@ -10636,7 +10465,9 @@ var ProcessResult = {
10636
10465
  return message;
10637
10466
  },
10638
10467
  fromJSON(object) {
10639
- return { votes: Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : [] };
10468
+ return {
10469
+ votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : []
10470
+ };
10640
10471
  },
10641
10472
  toJSON(message) {
10642
10473
  const obj = {};
@@ -10686,7 +10517,9 @@ var QuestionResult = {
10686
10517
  return message;
10687
10518
  },
10688
10519
  fromJSON(object) {
10689
- return { question: Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase643(e)) : [] };
10520
+ return {
10521
+ question: globalThis.Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase643(e)) : []
10522
+ };
10690
10523
  },
10691
10524
  toJSON(message) {
10692
10525
  const obj = {};
@@ -10737,7 +10570,7 @@ var ProcessEndingList = {
10737
10570
  },
10738
10571
  fromJSON(object) {
10739
10572
  return {
10740
- processList: Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
10573
+ processList: globalThis.Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase643(e)) : []
10741
10574
  };
10742
10575
  },
10743
10576
  toJSON(message) {
@@ -10788,7 +10621,7 @@ var StoredKeys = {
10788
10621
  return message;
10789
10622
  },
10790
10623
  fromJSON(object) {
10791
- return { pids: Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
10624
+ return { pids: globalThis.Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase643(e)) : [] };
10792
10625
  },
10793
10626
  toJSON(message) {
10794
10627
  const obj = {};
@@ -10806,26 +10639,11 @@ var StoredKeys = {
10806
10639
  return message;
10807
10640
  }
10808
10641
  };
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
10642
  function bytesFromBase643(b64) {
10825
- if (tsProtoGlobalThis3.Buffer) {
10826
- return Uint8Array.from(tsProtoGlobalThis3.Buffer.from(b64, "base64"));
10643
+ if (globalThis.Buffer) {
10644
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
10827
10645
  } else {
10828
- const bin = tsProtoGlobalThis3.atob(b64);
10646
+ const bin = globalThis.atob(b64);
10829
10647
  const arr = new Uint8Array(bin.length);
10830
10648
  for (let i = 0; i < bin.length; ++i) {
10831
10649
  arr[i] = bin.charCodeAt(i);
@@ -10834,19 +10652,19 @@ function bytesFromBase643(b64) {
10834
10652
  }
10835
10653
  }
10836
10654
  function base64FromBytes3(arr) {
10837
- if (tsProtoGlobalThis3.Buffer) {
10838
- return tsProtoGlobalThis3.Buffer.from(arr).toString("base64");
10655
+ if (globalThis.Buffer) {
10656
+ return globalThis.Buffer.from(arr).toString("base64");
10839
10657
  } else {
10840
10658
  const bin = [];
10841
10659
  arr.forEach((byte) => {
10842
- bin.push(String.fromCharCode(byte));
10660
+ bin.push(globalThis.String.fromCharCode(byte));
10843
10661
  });
10844
- return tsProtoGlobalThis3.btoa(bin.join(""));
10662
+ return globalThis.btoa(bin.join(""));
10845
10663
  }
10846
10664
  }
10847
10665
  function longToNumber2(long) {
10848
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
10849
- throw new tsProtoGlobalThis3.Error("Value is larger than Number.MAX_SAFE_INTEGER");
10666
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
10667
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
10850
10668
  }
10851
10669
  return long.toNumber();
10852
10670
  }