@vocdoni/proto 1.15.3 → 1.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1201,7 +1201,11 @@ var require_reader = __commonJS({
1201
1201
  this.pos += length;
1202
1202
  if (Array.isArray(this.buf))
1203
1203
  return this.buf.slice(start, end);
1204
- return start === end ? new this.buf.constructor(0) : this._slice.call(this.buf, start, end);
1204
+ if (start === end) {
1205
+ var nativeBuffer = util.Buffer;
1206
+ return nativeBuffer ? nativeBuffer.alloc(0) : new this.buf.constructor(0);
1207
+ }
1208
+ return this._slice.call(this.buf, start, end);
1205
1209
  };
1206
1210
  Reader.prototype.string = function read_string() {
1207
1211
  var bytes = this.bytes();
@@ -1432,7 +1436,6 @@ __export(vochain_exports, {
1432
1436
  EnvelopeType: () => EnvelopeType,
1433
1437
  FaucetPackage: () => FaucetPackage,
1434
1438
  FaucetPayload: () => FaucetPayload,
1435
- MintTokensTx: () => MintTokensTx,
1436
1439
  NewProcessTx: () => NewProcessTx,
1437
1440
  OracleList: () => OracleList,
1438
1441
  Process: () => Process,
@@ -1449,8 +1452,6 @@ __export(vochain_exports, {
1449
1452
  ProofCA_Type: () => ProofCA_Type,
1450
1453
  ProofEthereumAccount: () => ProofEthereumAccount,
1451
1454
  ProofEthereumStorage: () => ProofEthereumStorage,
1452
- ProofGraviton: () => ProofGraviton,
1453
- ProofIden3: () => ProofIden3,
1454
1455
  ProofMinime: () => ProofMinime,
1455
1456
  ProofZkSNARK: () => ProofZkSNARK,
1456
1457
  QuestionResult: () => QuestionResult,
@@ -1466,7 +1467,6 @@ __export(vochain_exports, {
1466
1467
  SourceNetworkId: () => SourceNetworkId,
1467
1468
  StoredKeys: () => StoredKeys,
1468
1469
  TendermintHeader: () => TendermintHeader,
1469
- Treasurer: () => Treasurer,
1470
1470
  Tx: () => Tx,
1471
1471
  TxType: () => TxType,
1472
1472
  Validator: () => Validator,
@@ -1509,9 +1509,7 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
1509
1509
  TxType2[TxType2["VOTE"] = 11] = "VOTE";
1510
1510
  TxType2[TxType2["SET_PROCESS_RESULTS"] = 12] = "SET_PROCESS_RESULTS";
1511
1511
  TxType2[TxType2["REGISTER_VOTER_KEY"] = 13] = "REGISTER_VOTER_KEY";
1512
- TxType2[TxType2["MINT_TOKENS"] = 14] = "MINT_TOKENS";
1513
1512
  TxType2[TxType2["SEND_TOKENS"] = 15] = "SEND_TOKENS";
1514
- TxType2[TxType2["SET_TRANSACTION_COSTS"] = 16] = "SET_TRANSACTION_COSTS";
1515
1513
  TxType2[TxType2["SET_ACCOUNT_INFO_URI"] = 17] = "SET_ACCOUNT_INFO_URI";
1516
1514
  TxType2[TxType2["ADD_DELEGATE_FOR_ACCOUNT"] = 18] = "ADD_DELEGATE_FOR_ACCOUNT";
1517
1515
  TxType2[TxType2["DEL_DELEGATE_FOR_ACCOUNT"] = 19] = "DEL_DELEGATE_FOR_ACCOUNT";
@@ -1522,6 +1520,8 @@ var TxType = /* @__PURE__ */ ((TxType2) => {
1522
1520
  TxType2[TxType2["SET_ACCOUNT_SIK"] = 24] = "SET_ACCOUNT_SIK";
1523
1521
  TxType2[TxType2["DEL_ACCOUNT_SIK"] = 25] = "DEL_ACCOUNT_SIK";
1524
1522
  TxType2[TxType2["REGISTER_SIK"] = 26] = "REGISTER_SIK";
1523
+ TxType2[TxType2["SET_ACCOUNT_VALIDATOR"] = 27] = "SET_ACCOUNT_VALIDATOR";
1524
+ TxType2[TxType2["SET_PROCESS_DURATION"] = 28] = "SET_PROCESS_DURATION";
1525
1525
  TxType2[TxType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1526
1526
  return TxType2;
1527
1527
  })(TxType || {});
@@ -1569,15 +1569,9 @@ function txTypeFromJSON(object) {
1569
1569
  case 13:
1570
1570
  case "REGISTER_VOTER_KEY":
1571
1571
  return 13 /* REGISTER_VOTER_KEY */;
1572
- case 14:
1573
- case "MINT_TOKENS":
1574
- return 14 /* MINT_TOKENS */;
1575
1572
  case 15:
1576
1573
  case "SEND_TOKENS":
1577
1574
  return 15 /* SEND_TOKENS */;
1578
- case 16:
1579
- case "SET_TRANSACTION_COSTS":
1580
- return 16 /* SET_TRANSACTION_COSTS */;
1581
1575
  case 17:
1582
1576
  case "SET_ACCOUNT_INFO_URI":
1583
1577
  return 17 /* SET_ACCOUNT_INFO_URI */;
@@ -1608,6 +1602,12 @@ function txTypeFromJSON(object) {
1608
1602
  case 26:
1609
1603
  case "REGISTER_SIK":
1610
1604
  return 26 /* REGISTER_SIK */;
1605
+ case 27:
1606
+ case "SET_ACCOUNT_VALIDATOR":
1607
+ return 27 /* SET_ACCOUNT_VALIDATOR */;
1608
+ case 28:
1609
+ case "SET_PROCESS_DURATION":
1610
+ return 28 /* SET_PROCESS_DURATION */;
1611
1611
  case -1:
1612
1612
  case "UNRECOGNIZED":
1613
1613
  default:
@@ -1644,12 +1644,8 @@ function txTypeToJSON(object) {
1644
1644
  return "SET_PROCESS_RESULTS";
1645
1645
  case 13 /* REGISTER_VOTER_KEY */:
1646
1646
  return "REGISTER_VOTER_KEY";
1647
- case 14 /* MINT_TOKENS */:
1648
- return "MINT_TOKENS";
1649
1647
  case 15 /* SEND_TOKENS */:
1650
1648
  return "SEND_TOKENS";
1651
- case 16 /* SET_TRANSACTION_COSTS */:
1652
- return "SET_TRANSACTION_COSTS";
1653
1649
  case 17 /* SET_ACCOUNT_INFO_URI */:
1654
1650
  return "SET_ACCOUNT_INFO_URI";
1655
1651
  case 18 /* ADD_DELEGATE_FOR_ACCOUNT */:
@@ -1670,6 +1666,10 @@ function txTypeToJSON(object) {
1670
1666
  return "DEL_ACCOUNT_SIK";
1671
1667
  case 26 /* REGISTER_SIK */:
1672
1668
  return "REGISTER_SIK";
1669
+ case 27 /* SET_ACCOUNT_VALIDATOR */:
1670
+ return "SET_ACCOUNT_VALIDATOR";
1671
+ case 28 /* SET_PROCESS_DURATION */:
1672
+ return "SET_PROCESS_DURATION";
1673
1673
  case -1 /* UNRECOGNIZED */:
1674
1674
  default:
1675
1675
  return "UNRECOGNIZED";
@@ -1919,8 +1919,6 @@ var Census_Type = /* @__PURE__ */ ((Census_Type2) => {
1919
1919
  Census_Type2[Census_Type2["ETHEREUMSTORAGE"] = 3] = "ETHEREUMSTORAGE";
1920
1920
  Census_Type2[Census_Type2["ETHEREUMACCOUNT"] = 4] = "ETHEREUMACCOUNT";
1921
1921
  Census_Type2[Census_Type2["CA"] = 5] = "CA";
1922
- Census_Type2[Census_Type2["GRAVITON"] = 1001] = "GRAVITON";
1923
- Census_Type2[Census_Type2["IDEN3"] = 1002] = "IDEN3";
1924
1922
  Census_Type2[Census_Type2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1925
1923
  return Census_Type2;
1926
1924
  })(Census_Type || {});
@@ -1944,12 +1942,6 @@ function census_TypeFromJSON(object) {
1944
1942
  case 5:
1945
1943
  case "CA":
1946
1944
  return 5 /* CA */;
1947
- case 1001:
1948
- case "GRAVITON":
1949
- return 1001 /* GRAVITON */;
1950
- case 1002:
1951
- case "IDEN3":
1952
- return 1002 /* IDEN3 */;
1953
1945
  case -1:
1954
1946
  case "UNRECOGNIZED":
1955
1947
  default:
@@ -1970,10 +1962,6 @@ function census_TypeToJSON(object) {
1970
1962
  return "ETHEREUMACCOUNT";
1971
1963
  case 5 /* CA */:
1972
1964
  return "CA";
1973
- case 1001 /* GRAVITON */:
1974
- return "GRAVITON";
1975
- case 1002 /* IDEN3 */:
1976
- return "IDEN3";
1977
1965
  case -1 /* UNRECOGNIZED */:
1978
1966
  default:
1979
1967
  return "UNRECOGNIZED";
@@ -2189,7 +2177,7 @@ var VoteEnvelope = {
2189
2177
  proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
2190
2178
  votePackage: isSet(object.votePackage) ? bytesFromBase64(object.votePackage) : new Uint8Array(0),
2191
2179
  nullifier: isSet(object.nullifier) ? bytesFromBase64(object.nullifier) : new Uint8Array(0),
2192
- encryptionKeyIndexes: Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => Number(e)) : []
2180
+ encryptionKeyIndexes: globalThis.Array.isArray(object?.encryptionKeyIndexes) ? object.encryptionKeyIndexes.map((e) => globalThis.Number(e)) : []
2193
2181
  };
2194
2182
  },
2195
2183
  toJSON(message) {
@@ -2271,12 +2259,6 @@ function createBaseProof() {
2271
2259
  var Proof = {
2272
2260
  encode(message, writer = import_minimal.default.Writer.create()) {
2273
2261
  switch (message.payload?.$case) {
2274
- case "graviton":
2275
- ProofGraviton.encode(message.payload.graviton, writer.uint32(10).fork()).ldelim();
2276
- break;
2277
- case "iden3":
2278
- ProofIden3.encode(message.payload.iden3, writer.uint32(18).fork()).ldelim();
2279
- break;
2280
2262
  case "ethereumStorage":
2281
2263
  ProofEthereumStorage.encode(message.payload.ethereumStorage, writer.uint32(26).fork()).ldelim();
2282
2264
  break;
@@ -2305,18 +2287,6 @@ var Proof = {
2305
2287
  while (reader.pos < end) {
2306
2288
  const tag = reader.uint32();
2307
2289
  switch (tag >>> 3) {
2308
- case 1:
2309
- if (tag !== 10) {
2310
- break;
2311
- }
2312
- message.payload = { $case: "graviton", graviton: ProofGraviton.decode(reader, reader.uint32()) };
2313
- continue;
2314
- case 2:
2315
- if (tag !== 18) {
2316
- break;
2317
- }
2318
- message.payload = { $case: "iden3", iden3: ProofIden3.decode(reader, reader.uint32()) };
2319
- continue;
2320
2290
  case 3:
2321
2291
  if (tag !== 26) {
2322
2292
  break;
@@ -2369,17 +2339,11 @@ var Proof = {
2369
2339
  },
2370
2340
  fromJSON(object) {
2371
2341
  return {
2372
- payload: isSet(object.graviton) ? { $case: "graviton", graviton: ProofGraviton.fromJSON(object.graviton) } : isSet(object.iden3) ? { $case: "iden3", iden3: ProofIden3.fromJSON(object.iden3) } : isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
2342
+ payload: isSet(object.ethereumStorage) ? { $case: "ethereumStorage", ethereumStorage: ProofEthereumStorage.fromJSON(object.ethereumStorage) } : isSet(object.ethereumAccount) ? { $case: "ethereumAccount", ethereumAccount: ProofEthereumAccount.fromJSON(object.ethereumAccount) } : isSet(object.ca) ? { $case: "ca", ca: ProofCA.fromJSON(object.ca) } : isSet(object.arbo) ? { $case: "arbo", arbo: ProofArbo.fromJSON(object.arbo) } : isSet(object.zkSnark) ? { $case: "zkSnark", zkSnark: ProofZkSNARK.fromJSON(object.zkSnark) } : isSet(object.minimeStorage) ? { $case: "minimeStorage", minimeStorage: ProofMinime.fromJSON(object.minimeStorage) } : void 0
2373
2343
  };
2374
2344
  },
2375
2345
  toJSON(message) {
2376
2346
  const obj = {};
2377
- if (message.payload?.$case === "graviton") {
2378
- obj.graviton = ProofGraviton.toJSON(message.payload.graviton);
2379
- }
2380
- if (message.payload?.$case === "iden3") {
2381
- obj.iden3 = ProofIden3.toJSON(message.payload.iden3);
2382
- }
2383
2347
  if (message.payload?.$case === "ethereumStorage") {
2384
2348
  obj.ethereumStorage = ProofEthereumStorage.toJSON(message.payload.ethereumStorage);
2385
2349
  }
@@ -2405,12 +2369,6 @@ var Proof = {
2405
2369
  },
2406
2370
  fromPartial(object) {
2407
2371
  const message = createBaseProof();
2408
- if (object.payload?.$case === "graviton" && object.payload?.graviton !== void 0 && object.payload?.graviton !== null) {
2409
- message.payload = { $case: "graviton", graviton: ProofGraviton.fromPartial(object.payload.graviton) };
2410
- }
2411
- if (object.payload?.$case === "iden3" && object.payload?.iden3 !== void 0 && object.payload?.iden3 !== null) {
2412
- message.payload = { $case: "iden3", iden3: ProofIden3.fromPartial(object.payload.iden3) };
2413
- }
2414
2372
  if (object.payload?.$case === "ethereumStorage" && object.payload?.ethereumStorage !== void 0 && object.payload?.ethereumStorage !== null) {
2415
2373
  message.payload = {
2416
2374
  $case: "ethereumStorage",
@@ -2441,106 +2399,6 @@ var Proof = {
2441
2399
  return message;
2442
2400
  }
2443
2401
  };
2444
- function createBaseProofGraviton() {
2445
- return { siblings: new Uint8Array(0) };
2446
- }
2447
- var ProofGraviton = {
2448
- encode(message, writer = import_minimal.default.Writer.create()) {
2449
- if (message.siblings.length !== 0) {
2450
- writer.uint32(10).bytes(message.siblings);
2451
- }
2452
- return writer;
2453
- },
2454
- decode(input, length) {
2455
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
2456
- let end = length === void 0 ? reader.len : reader.pos + length;
2457
- const message = createBaseProofGraviton();
2458
- while (reader.pos < end) {
2459
- const tag = reader.uint32();
2460
- switch (tag >>> 3) {
2461
- case 1:
2462
- if (tag !== 10) {
2463
- break;
2464
- }
2465
- message.siblings = reader.bytes();
2466
- continue;
2467
- }
2468
- if ((tag & 7) === 4 || tag === 0) {
2469
- break;
2470
- }
2471
- reader.skipType(tag & 7);
2472
- }
2473
- return message;
2474
- },
2475
- fromJSON(object) {
2476
- return { siblings: isSet(object.siblings) ? bytesFromBase64(object.siblings) : new Uint8Array(0) };
2477
- },
2478
- toJSON(message) {
2479
- const obj = {};
2480
- if (message.siblings.length !== 0) {
2481
- obj.siblings = base64FromBytes(message.siblings);
2482
- }
2483
- return obj;
2484
- },
2485
- create(base) {
2486
- return ProofGraviton.fromPartial(base ?? {});
2487
- },
2488
- fromPartial(object) {
2489
- const message = createBaseProofGraviton();
2490
- message.siblings = object.siblings ?? new Uint8Array(0);
2491
- return message;
2492
- }
2493
- };
2494
- function createBaseProofIden3() {
2495
- return { siblings: new Uint8Array(0) };
2496
- }
2497
- var ProofIden3 = {
2498
- encode(message, writer = import_minimal.default.Writer.create()) {
2499
- if (message.siblings.length !== 0) {
2500
- writer.uint32(10).bytes(message.siblings);
2501
- }
2502
- return writer;
2503
- },
2504
- decode(input, length) {
2505
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
2506
- let end = length === void 0 ? reader.len : reader.pos + length;
2507
- const message = createBaseProofIden3();
2508
- while (reader.pos < end) {
2509
- const tag = reader.uint32();
2510
- switch (tag >>> 3) {
2511
- case 1:
2512
- if (tag !== 10) {
2513
- break;
2514
- }
2515
- message.siblings = reader.bytes();
2516
- continue;
2517
- }
2518
- if ((tag & 7) === 4 || tag === 0) {
2519
- break;
2520
- }
2521
- reader.skipType(tag & 7);
2522
- }
2523
- return message;
2524
- },
2525
- fromJSON(object) {
2526
- return { siblings: isSet(object.siblings) ? bytesFromBase64(object.siblings) : new Uint8Array(0) };
2527
- },
2528
- toJSON(message) {
2529
- const obj = {};
2530
- if (message.siblings.length !== 0) {
2531
- obj.siblings = base64FromBytes(message.siblings);
2532
- }
2533
- return obj;
2534
- },
2535
- create(base) {
2536
- return ProofIden3.fromPartial(base ?? {});
2537
- },
2538
- fromPartial(object) {
2539
- const message = createBaseProofIden3();
2540
- message.siblings = object.siblings ?? new Uint8Array(0);
2541
- return message;
2542
- }
2543
- };
2544
2402
  function createBaseProofEthereumStorage() {
2545
2403
  return { key: new Uint8Array(0), value: new Uint8Array(0), siblings: [] };
2546
2404
  }
@@ -2594,7 +2452,7 @@ var ProofEthereumStorage = {
2594
2452
  return {
2595
2453
  key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
2596
2454
  value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
2597
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2455
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2598
2456
  };
2599
2457
  },
2600
2458
  toJSON(message) {
@@ -2700,7 +2558,7 @@ var ProofEthereumAccount = {
2700
2558
  balance: isSet(object.balance) ? bytesFromBase64(object.balance) : new Uint8Array(0),
2701
2559
  storageHash: isSet(object.storageHash) ? bytesFromBase64(object.storageHash) : new Uint8Array(0),
2702
2560
  codeHash: isSet(object.codeHash) ? bytesFromBase64(object.codeHash) : new Uint8Array(0),
2703
- siblings: Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2561
+ siblings: globalThis.Array.isArray(object?.siblings) ? object.siblings.map((e) => bytesFromBase64(e)) : []
2704
2562
  };
2705
2563
  },
2706
2564
  toJSON(message) {
@@ -3130,11 +2988,11 @@ var ProofZkSNARK = {
3130
2988
  },
3131
2989
  fromJSON(object) {
3132
2990
  return {
3133
- circuitParametersIndex: isSet(object.circuitParametersIndex) ? Number(object.circuitParametersIndex) : 0,
3134
- a: Array.isArray(object?.a) ? object.a.map((e) => String(e)) : [],
3135
- b: Array.isArray(object?.b) ? object.b.map((e) => String(e)) : [],
3136
- c: Array.isArray(object?.c) ? object.c.map((e) => String(e)) : [],
3137
- publicInputs: Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => String(e)) : []
2991
+ circuitParametersIndex: isSet(object.circuitParametersIndex) ? globalThis.Number(object.circuitParametersIndex) : 0,
2992
+ a: globalThis.Array.isArray(object?.a) ? object.a.map((e) => globalThis.String(e)) : [],
2993
+ b: globalThis.Array.isArray(object?.b) ? object.b.map((e) => globalThis.String(e)) : [],
2994
+ c: globalThis.Array.isArray(object?.c) ? object.c.map((e) => globalThis.String(e)) : [],
2995
+ publicInputs: globalThis.Array.isArray(object?.publicInputs) ? object.publicInputs.map((e) => globalThis.String(e)) : []
3138
2996
  };
3139
2997
  },
3140
2998
  toJSON(message) {
@@ -3238,11 +3096,11 @@ var Account = {
3238
3096
  },
3239
3097
  fromJSON(object) {
3240
3098
  return {
3241
- balance: isSet(object.balance) ? Number(object.balance) : 0,
3242
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
3243
- infoURI: isSet(object.infoURI) ? String(object.infoURI) : "",
3244
- delegateAddrs: Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase64(e)) : [],
3245
- processIndex: isSet(object.processIndex) ? Number(object.processIndex) : 0
3099
+ balance: isSet(object.balance) ? globalThis.Number(object.balance) : 0,
3100
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
3101
+ infoURI: isSet(object.infoURI) ? globalThis.String(object.infoURI) : "",
3102
+ delegateAddrs: globalThis.Array.isArray(object?.delegateAddrs) ? object.delegateAddrs.map((e) => bytesFromBase64(e)) : [],
3103
+ processIndex: isSet(object.processIndex) ? globalThis.Number(object.processIndex) : 0
3246
3104
  };
3247
3105
  },
3248
3106
  toJSON(message) {
@@ -3277,72 +3135,6 @@ var Account = {
3277
3135
  return message;
3278
3136
  }
3279
3137
  };
3280
- function createBaseTreasurer() {
3281
- return { address: new Uint8Array(0), nonce: 0 };
3282
- }
3283
- var Treasurer = {
3284
- encode(message, writer = import_minimal.default.Writer.create()) {
3285
- if (message.address.length !== 0) {
3286
- writer.uint32(10).bytes(message.address);
3287
- }
3288
- if (message.nonce !== 0) {
3289
- writer.uint32(16).uint32(message.nonce);
3290
- }
3291
- return writer;
3292
- },
3293
- decode(input, length) {
3294
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
3295
- let end = length === void 0 ? reader.len : reader.pos + length;
3296
- const message = createBaseTreasurer();
3297
- while (reader.pos < end) {
3298
- const tag = reader.uint32();
3299
- switch (tag >>> 3) {
3300
- case 1:
3301
- if (tag !== 10) {
3302
- break;
3303
- }
3304
- message.address = reader.bytes();
3305
- continue;
3306
- case 2:
3307
- if (tag !== 16) {
3308
- break;
3309
- }
3310
- message.nonce = reader.uint32();
3311
- continue;
3312
- }
3313
- if ((tag & 7) === 4 || tag === 0) {
3314
- break;
3315
- }
3316
- reader.skipType(tag & 7);
3317
- }
3318
- return message;
3319
- },
3320
- fromJSON(object) {
3321
- return {
3322
- address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
3323
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0
3324
- };
3325
- },
3326
- toJSON(message) {
3327
- const obj = {};
3328
- if (message.address.length !== 0) {
3329
- obj.address = base64FromBytes(message.address);
3330
- }
3331
- if (message.nonce !== 0) {
3332
- obj.nonce = Math.round(message.nonce);
3333
- }
3334
- return obj;
3335
- },
3336
- create(base) {
3337
- return Treasurer.fromPartial(base ?? {});
3338
- },
3339
- fromPartial(object) {
3340
- const message = createBaseTreasurer();
3341
- message.address = object.address ?? new Uint8Array(0);
3342
- message.nonce = object.nonce ?? 0;
3343
- return message;
3344
- }
3345
- };
3346
3138
  function createBaseTx() {
3347
3139
  return { payload: void 0 };
3348
3140
  }
@@ -3364,9 +3156,6 @@ var Tx = {
3364
3156
  case "registerKey":
3365
3157
  RegisterKeyTx.encode(message.payload.registerKey, writer.uint32(42).fork()).ldelim();
3366
3158
  break;
3367
- case "mintTokens":
3368
- MintTokensTx.encode(message.payload.mintTokens, writer.uint32(50).fork()).ldelim();
3369
- break;
3370
3159
  case "sendTokens":
3371
3160
  SendTokensTx.encode(message.payload.sendTokens, writer.uint32(58).fork()).ldelim();
3372
3161
  break;
@@ -3431,12 +3220,6 @@ var Tx = {
3431
3220
  }
3432
3221
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.decode(reader, reader.uint32()) };
3433
3222
  continue;
3434
- case 6:
3435
- if (tag !== 50) {
3436
- break;
3437
- }
3438
- message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.decode(reader, reader.uint32()) };
3439
- continue;
3440
3223
  case 7:
3441
3224
  if (tag !== 58) {
3442
3225
  break;
@@ -3498,7 +3281,7 @@ var Tx = {
3498
3281
  },
3499
3282
  fromJSON(object) {
3500
3283
  return {
3501
- payload: isSet(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet(object.mintTokens) ? { $case: "mintTokens", mintTokens: MintTokensTx.fromJSON(object.mintTokens) } : isSet(object.sendTokens) ? { $case: "sendTokens", sendTokens: SendTokensTx.fromJSON(object.sendTokens) } : isSet(object.setTransactionCosts) ? {
3284
+ payload: isSet(object.vote) ? { $case: "vote", vote: VoteEnvelope.fromJSON(object.vote) } : isSet(object.newProcess) ? { $case: "newProcess", newProcess: NewProcessTx.fromJSON(object.newProcess) } : isSet(object.admin) ? { $case: "admin", admin: AdminTx.fromJSON(object.admin) } : isSet(object.setProcess) ? { $case: "setProcess", setProcess: SetProcessTx.fromJSON(object.setProcess) } : isSet(object.registerKey) ? { $case: "registerKey", registerKey: RegisterKeyTx.fromJSON(object.registerKey) } : isSet(object.sendTokens) ? { $case: "sendTokens", sendTokens: SendTokensTx.fromJSON(object.sendTokens) } : isSet(object.setTransactionCosts) ? {
3502
3285
  $case: "setTransactionCosts",
3503
3286
  setTransactionCosts: SetTransactionCostsTx.fromJSON(object.setTransactionCosts)
3504
3287
  } : isSet(object.setAccount) ? { $case: "setAccount", setAccount: SetAccountTx.fromJSON(object.setAccount) } : isSet(object.collectFaucet) ? { $case: "collectFaucet", collectFaucet: CollectFaucetTx.fromJSON(object.collectFaucet) } : isSet(object.setKeykeeper) ? { $case: "setKeykeeper", setKeykeeper: SetKeykeeperTx.fromJSON(object.setKeykeeper) } : isSet(object.setSIK) ? { $case: "setSIK", setSIK: SIKTx.fromJSON(object.setSIK) } : isSet(object.delSIK) ? { $case: "delSIK", delSIK: SIKTx.fromJSON(object.delSIK) } : isSet(object.registerSIK) ? { $case: "registerSIK", registerSIK: RegisterSIKTx.fromJSON(object.registerSIK) } : void 0
@@ -3521,9 +3304,6 @@ var Tx = {
3521
3304
  if (message.payload?.$case === "registerKey") {
3522
3305
  obj.registerKey = RegisterKeyTx.toJSON(message.payload.registerKey);
3523
3306
  }
3524
- if (message.payload?.$case === "mintTokens") {
3525
- obj.mintTokens = MintTokensTx.toJSON(message.payload.mintTokens);
3526
- }
3527
3307
  if (message.payload?.$case === "sendTokens") {
3528
3308
  obj.sendTokens = SendTokensTx.toJSON(message.payload.sendTokens);
3529
3309
  }
@@ -3570,9 +3350,6 @@ var Tx = {
3570
3350
  if (object.payload?.$case === "registerKey" && object.payload?.registerKey !== void 0 && object.payload?.registerKey !== null) {
3571
3351
  message.payload = { $case: "registerKey", registerKey: RegisterKeyTx.fromPartial(object.payload.registerKey) };
3572
3352
  }
3573
- if (object.payload?.$case === "mintTokens" && object.payload?.mintTokens !== void 0 && object.payload?.mintTokens !== null) {
3574
- message.payload = { $case: "mintTokens", mintTokens: MintTokensTx.fromPartial(object.payload.mintTokens) };
3575
- }
3576
3353
  if (object.payload?.$case === "sendTokens" && object.payload?.sendTokens !== void 0 && object.payload?.sendTokens !== null) {
3577
3354
  message.payload = { $case: "sendTokens", sendTokens: SendTokensTx.fromPartial(object.payload.sendTokens) };
3578
3355
  }
@@ -3727,7 +3504,7 @@ var NewProcessTx = {
3727
3504
  fromJSON(object) {
3728
3505
  return {
3729
3506
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
3730
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
3507
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
3731
3508
  process: isSet(object.process) ? Process.fromJSON(object.process) : void 0
3732
3509
  };
3733
3510
  },
@@ -3766,7 +3543,8 @@ function createBaseSetProcessTx() {
3766
3543
  censusURI: void 0,
3767
3544
  proof: void 0,
3768
3545
  results: void 0,
3769
- tempSIKs: void 0
3546
+ tempSIKs: void 0,
3547
+ duration: void 0
3770
3548
  };
3771
3549
  }
3772
3550
  var SetProcessTx = {
@@ -3801,6 +3579,9 @@ var SetProcessTx = {
3801
3579
  if (message.tempSIKs !== void 0) {
3802
3580
  writer.uint32(80).bool(message.tempSIKs);
3803
3581
  }
3582
+ if (message.duration !== void 0) {
3583
+ writer.uint32(88).uint32(message.duration);
3584
+ }
3804
3585
  return writer;
3805
3586
  },
3806
3587
  decode(input, length) {
@@ -3870,6 +3651,12 @@ var SetProcessTx = {
3870
3651
  }
3871
3652
  message.tempSIKs = reader.bool();
3872
3653
  continue;
3654
+ case 11:
3655
+ if (tag !== 88) {
3656
+ break;
3657
+ }
3658
+ message.duration = reader.uint32();
3659
+ continue;
3873
3660
  }
3874
3661
  if ((tag & 7) === 4 || tag === 0) {
3875
3662
  break;
@@ -3881,15 +3668,16 @@ var SetProcessTx = {
3881
3668
  fromJSON(object) {
3882
3669
  return {
3883
3670
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
3884
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
3671
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
3885
3672
  processId: isSet(object.processId) ? bytesFromBase64(object.processId) : new Uint8Array(0),
3886
3673
  status: isSet(object.status) ? processStatusFromJSON(object.status) : void 0,
3887
- questionIndex: isSet(object.questionIndex) ? Number(object.questionIndex) : void 0,
3674
+ questionIndex: isSet(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
3888
3675
  censusRoot: isSet(object.censusRoot) ? bytesFromBase64(object.censusRoot) : void 0,
3889
- censusURI: isSet(object.censusURI) ? String(object.censusURI) : void 0,
3676
+ censusURI: isSet(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
3890
3677
  proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
3891
3678
  results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
3892
- tempSIKs: isSet(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
3679
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
3680
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : void 0
3893
3681
  };
3894
3682
  },
3895
3683
  toJSON(message) {
@@ -3924,6 +3712,9 @@ var SetProcessTx = {
3924
3712
  if (message.tempSIKs !== void 0) {
3925
3713
  obj.tempSIKs = message.tempSIKs;
3926
3714
  }
3715
+ if (message.duration !== void 0) {
3716
+ obj.duration = Math.round(message.duration);
3717
+ }
3927
3718
  return obj;
3928
3719
  },
3929
3720
  create(base) {
@@ -3941,6 +3732,7 @@ var SetProcessTx = {
3941
3732
  message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
3942
3733
  message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
3943
3734
  message.tempSIKs = object.tempSIKs ?? void 0;
3735
+ message.duration = object.duration ?? void 0;
3944
3736
  return message;
3945
3737
  }
3946
3738
  };
@@ -4064,10 +3856,10 @@ var AdminTx = {
4064
3856
  address: isSet(object.address) ? bytesFromBase64(object.address) : void 0,
4065
3857
  encryptionPrivateKey: isSet(object.encryptionPrivateKey) ? bytesFromBase64(object.encryptionPrivateKey) : void 0,
4066
3858
  encryptionPublicKey: isSet(object.encryptionPublicKey) ? bytesFromBase64(object.encryptionPublicKey) : void 0,
4067
- keyIndex: isSet(object.keyIndex) ? Number(object.keyIndex) : void 0,
4068
- power: isSet(object.power) ? Number(object.power) : void 0,
3859
+ keyIndex: isSet(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
3860
+ power: isSet(object.power) ? globalThis.Number(object.power) : void 0,
4069
3861
  publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : void 0,
4070
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0
3862
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0
4071
3863
  };
4072
3864
  },
4073
3865
  toJSON(message) {
@@ -4187,11 +3979,11 @@ var RegisterKeyTx = {
4187
3979
  },
4188
3980
  fromJSON(object) {
4189
3981
  return {
4190
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
3982
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
4191
3983
  processId: isSet(object.processId) ? bytesFromBase64(object.processId) : new Uint8Array(0),
4192
3984
  proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
4193
3985
  newKey: isSet(object.newKey) ? bytesFromBase64(object.newKey) : new Uint8Array(0),
4194
- weight: isSet(object.weight) ? String(object.weight) : ""
3986
+ weight: isSet(object.weight) ? globalThis.String(object.weight) : ""
4195
3987
  };
4196
3988
  },
4197
3989
  toJSON(message) {
@@ -4226,100 +4018,6 @@ var RegisterKeyTx = {
4226
4018
  return message;
4227
4019
  }
4228
4020
  };
4229
- function createBaseMintTokensTx() {
4230
- return { txtype: 0, nonce: 0, to: new Uint8Array(0), value: 0 };
4231
- }
4232
- var MintTokensTx = {
4233
- encode(message, writer = import_minimal.default.Writer.create()) {
4234
- if (message.txtype !== 0) {
4235
- writer.uint32(8).int32(message.txtype);
4236
- }
4237
- if (message.nonce !== 0) {
4238
- writer.uint32(16).uint32(message.nonce);
4239
- }
4240
- if (message.to.length !== 0) {
4241
- writer.uint32(26).bytes(message.to);
4242
- }
4243
- if (message.value !== 0) {
4244
- writer.uint32(32).uint64(message.value);
4245
- }
4246
- return writer;
4247
- },
4248
- decode(input, length) {
4249
- const reader = input instanceof import_minimal.default.Reader ? input : import_minimal.default.Reader.create(input);
4250
- let end = length === void 0 ? reader.len : reader.pos + length;
4251
- const message = createBaseMintTokensTx();
4252
- while (reader.pos < end) {
4253
- const tag = reader.uint32();
4254
- switch (tag >>> 3) {
4255
- case 1:
4256
- if (tag !== 8) {
4257
- break;
4258
- }
4259
- message.txtype = reader.int32();
4260
- continue;
4261
- case 2:
4262
- if (tag !== 16) {
4263
- break;
4264
- }
4265
- message.nonce = reader.uint32();
4266
- continue;
4267
- case 3:
4268
- if (tag !== 26) {
4269
- break;
4270
- }
4271
- message.to = reader.bytes();
4272
- continue;
4273
- case 4:
4274
- if (tag !== 32) {
4275
- break;
4276
- }
4277
- message.value = longToNumber(reader.uint64());
4278
- continue;
4279
- }
4280
- if ((tag & 7) === 4 || tag === 0) {
4281
- break;
4282
- }
4283
- reader.skipType(tag & 7);
4284
- }
4285
- return message;
4286
- },
4287
- fromJSON(object) {
4288
- return {
4289
- txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
4290
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
4291
- to: isSet(object.to) ? bytesFromBase64(object.to) : new Uint8Array(0),
4292
- value: isSet(object.value) ? Number(object.value) : 0
4293
- };
4294
- },
4295
- toJSON(message) {
4296
- const obj = {};
4297
- if (message.txtype !== 0) {
4298
- obj.txtype = txTypeToJSON(message.txtype);
4299
- }
4300
- if (message.nonce !== 0) {
4301
- obj.nonce = Math.round(message.nonce);
4302
- }
4303
- if (message.to.length !== 0) {
4304
- obj.to = base64FromBytes(message.to);
4305
- }
4306
- if (message.value !== 0) {
4307
- obj.value = Math.round(message.value);
4308
- }
4309
- return obj;
4310
- },
4311
- create(base) {
4312
- return MintTokensTx.fromPartial(base ?? {});
4313
- },
4314
- fromPartial(object) {
4315
- const message = createBaseMintTokensTx();
4316
- message.txtype = object.txtype ?? 0;
4317
- message.nonce = object.nonce ?? 0;
4318
- message.to = object.to ?? new Uint8Array(0);
4319
- message.value = object.value ?? 0;
4320
- return message;
4321
- }
4322
- };
4323
4021
  function createBaseSendTokensTx() {
4324
4022
  return { txtype: 0, nonce: 0, from: new Uint8Array(0), to: new Uint8Array(0), value: 0 };
4325
4023
  }
@@ -4390,10 +4088,10 @@ var SendTokensTx = {
4390
4088
  fromJSON(object) {
4391
4089
  return {
4392
4090
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
4393
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
4091
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
4394
4092
  from: isSet(object.from) ? bytesFromBase64(object.from) : new Uint8Array(0),
4395
4093
  to: isSet(object.to) ? bytesFromBase64(object.to) : new Uint8Array(0),
4396
- value: isSet(object.value) ? Number(object.value) : 0
4094
+ value: isSet(object.value) ? globalThis.Number(object.value) : 0
4397
4095
  };
4398
4096
  },
4399
4097
  toJSON(message) {
@@ -4480,8 +4178,8 @@ var SetTransactionCostsTx = {
4480
4178
  fromJSON(object) {
4481
4179
  return {
4482
4180
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
4483
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
4484
- value: isSet(object.value) ? Number(object.value) : 0
4181
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
4182
+ value: isSet(object.value) ? globalThis.Number(object.value) : 0
4485
4183
  };
4486
4184
  },
4487
4185
  toJSON(message) {
@@ -4516,7 +4214,9 @@ function createBaseSetAccountTx() {
4516
4214
  account: void 0,
4517
4215
  faucetPackage: void 0,
4518
4216
  delegates: [],
4519
- SIK: void 0
4217
+ SIK: void 0,
4218
+ publicKey: void 0,
4219
+ name: void 0
4520
4220
  };
4521
4221
  }
4522
4222
  var SetAccountTx = {
@@ -4542,6 +4242,12 @@ var SetAccountTx = {
4542
4242
  if (message.SIK !== void 0) {
4543
4243
  writer.uint32(58).bytes(message.SIK);
4544
4244
  }
4245
+ if (message.publicKey !== void 0) {
4246
+ writer.uint32(66).bytes(message.publicKey);
4247
+ }
4248
+ if (message.name !== void 0) {
4249
+ writer.uint32(74).string(message.name);
4250
+ }
4545
4251
  return writer;
4546
4252
  },
4547
4253
  decode(input, length) {
@@ -4593,6 +4299,18 @@ var SetAccountTx = {
4593
4299
  }
4594
4300
  message.SIK = reader.bytes();
4595
4301
  continue;
4302
+ case 8:
4303
+ if (tag !== 66) {
4304
+ break;
4305
+ }
4306
+ message.publicKey = reader.bytes();
4307
+ continue;
4308
+ case 9:
4309
+ if (tag !== 74) {
4310
+ break;
4311
+ }
4312
+ message.name = reader.string();
4313
+ continue;
4596
4314
  }
4597
4315
  if ((tag & 7) === 4 || tag === 0) {
4598
4316
  break;
@@ -4604,12 +4322,14 @@ var SetAccountTx = {
4604
4322
  fromJSON(object) {
4605
4323
  return {
4606
4324
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
4607
- nonce: isSet(object.nonce) ? Number(object.nonce) : void 0,
4608
- infoURI: isSet(object.infoURI) ? String(object.infoURI) : void 0,
4325
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : void 0,
4326
+ infoURI: isSet(object.infoURI) ? globalThis.String(object.infoURI) : void 0,
4609
4327
  account: isSet(object.account) ? bytesFromBase64(object.account) : void 0,
4610
4328
  faucetPackage: isSet(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
4611
- delegates: Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase64(e)) : [],
4612
- SIK: isSet(object.SIK) ? bytesFromBase64(object.SIK) : void 0
4329
+ delegates: globalThis.Array.isArray(object?.delegates) ? object.delegates.map((e) => bytesFromBase64(e)) : [],
4330
+ SIK: isSet(object.SIK) ? bytesFromBase64(object.SIK) : void 0,
4331
+ publicKey: isSet(object.publicKey) ? bytesFromBase64(object.publicKey) : void 0,
4332
+ name: isSet(object.name) ? globalThis.String(object.name) : void 0
4613
4333
  };
4614
4334
  },
4615
4335
  toJSON(message) {
@@ -4635,6 +4355,12 @@ var SetAccountTx = {
4635
4355
  if (message.SIK !== void 0) {
4636
4356
  obj.SIK = base64FromBytes(message.SIK);
4637
4357
  }
4358
+ if (message.publicKey !== void 0) {
4359
+ obj.publicKey = base64FromBytes(message.publicKey);
4360
+ }
4361
+ if (message.name !== void 0) {
4362
+ obj.name = message.name;
4363
+ }
4638
4364
  return obj;
4639
4365
  },
4640
4366
  create(base) {
@@ -4649,17 +4375,22 @@ var SetAccountTx = {
4649
4375
  message.faucetPackage = object.faucetPackage !== void 0 && object.faucetPackage !== null ? FaucetPackage.fromPartial(object.faucetPackage) : void 0;
4650
4376
  message.delegates = object.delegates?.map((e) => e) || [];
4651
4377
  message.SIK = object.SIK ?? void 0;
4378
+ message.publicKey = object.publicKey ?? void 0;
4379
+ message.name = object.name ?? void 0;
4652
4380
  return message;
4653
4381
  }
4654
4382
  };
4655
4383
  function createBaseSIKTx() {
4656
- return { txtype: 0, SIK: void 0 };
4384
+ return { txtype: 0, nonce: void 0, SIK: void 0 };
4657
4385
  }
4658
4386
  var SIKTx = {
4659
4387
  encode(message, writer = import_minimal.default.Writer.create()) {
4660
4388
  if (message.txtype !== 0) {
4661
4389
  writer.uint32(8).int32(message.txtype);
4662
4390
  }
4391
+ if (message.nonce !== void 0) {
4392
+ writer.uint32(16).uint32(message.nonce);
4393
+ }
4663
4394
  if (message.SIK !== void 0) {
4664
4395
  writer.uint32(26).bytes(message.SIK);
4665
4396
  }
@@ -4678,6 +4409,12 @@ var SIKTx = {
4678
4409
  }
4679
4410
  message.txtype = reader.int32();
4680
4411
  continue;
4412
+ case 2:
4413
+ if (tag !== 16) {
4414
+ break;
4415
+ }
4416
+ message.nonce = reader.uint32();
4417
+ continue;
4681
4418
  case 3:
4682
4419
  if (tag !== 26) {
4683
4420
  break;
@@ -4695,6 +4432,7 @@ var SIKTx = {
4695
4432
  fromJSON(object) {
4696
4433
  return {
4697
4434
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
4435
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : void 0,
4698
4436
  SIK: isSet(object.SIK) ? bytesFromBase64(object.SIK) : void 0
4699
4437
  };
4700
4438
  },
@@ -4703,6 +4441,9 @@ var SIKTx = {
4703
4441
  if (message.txtype !== 0) {
4704
4442
  obj.txtype = txTypeToJSON(message.txtype);
4705
4443
  }
4444
+ if (message.nonce !== void 0) {
4445
+ obj.nonce = Math.round(message.nonce);
4446
+ }
4706
4447
  if (message.SIK !== void 0) {
4707
4448
  obj.SIK = base64FromBytes(message.SIK);
4708
4449
  }
@@ -4714,6 +4455,7 @@ var SIKTx = {
4714
4455
  fromPartial(object) {
4715
4456
  const message = createBaseSIKTx();
4716
4457
  message.txtype = object.txtype ?? 0;
4458
+ message.nonce = object.nonce ?? void 0;
4717
4459
  message.SIK = object.SIK ?? void 0;
4718
4460
  return message;
4719
4461
  }
@@ -4851,7 +4593,7 @@ var CollectFaucetTx = {
4851
4593
  return {
4852
4594
  txType: isSet(object.txType) ? txTypeFromJSON(object.txType) : 0,
4853
4595
  faucetPackage: isSet(object.faucetPackage) ? FaucetPackage.fromJSON(object.faucetPackage) : void 0,
4854
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0
4596
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0
4855
4597
  };
4856
4598
  },
4857
4599
  toJSON(message) {
@@ -4929,9 +4671,9 @@ var FaucetPayload = {
4929
4671
  },
4930
4672
  fromJSON(object) {
4931
4673
  return {
4932
- identifier: isSet(object.identifier) ? Number(object.identifier) : 0,
4674
+ identifier: isSet(object.identifier) ? globalThis.Number(object.identifier) : 0,
4933
4675
  to: isSet(object.to) ? bytesFromBase64(object.to) : new Uint8Array(0),
4934
- amount: isSet(object.amount) ? Number(object.amount) : 0
4676
+ amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0
4935
4677
  };
4936
4678
  },
4937
4679
  toJSON(message) {
@@ -5076,7 +4818,7 @@ var SetKeykeeperTx = {
5076
4818
  fromJSON(object) {
5077
4819
  return {
5078
4820
  txtype: isSet(object.txtype) ? txTypeFromJSON(object.txtype) : 0,
5079
- nonce: isSet(object.nonce) ? Number(object.nonce) : 0,
4821
+ nonce: isSet(object.nonce) ? globalThis.Number(object.nonce) : 0,
5080
4822
  keykeeper: isSet(object.keykeeper) ? bytesFromBase64(object.keykeeper) : new Uint8Array(0)
5081
4823
  };
5082
4824
  },
@@ -5136,7 +4878,9 @@ function createBaseProcess() {
5136
4878
  nullifiersRoot: void 0,
5137
4879
  sourceNetworkContractAddr: void 0,
5138
4880
  tokenDecimals: void 0,
5139
- tempSIKs: void 0
4881
+ tempSIKs: void 0,
4882
+ startTime: 0,
4883
+ duration: 0
5140
4884
  };
5141
4885
  }
5142
4886
  var Process = {
@@ -5234,6 +4978,12 @@ var Process = {
5234
4978
  if (message.tempSIKs !== void 0) {
5235
4979
  writer.uint32(272).bool(message.tempSIKs);
5236
4980
  }
4981
+ if (message.startTime !== 0) {
4982
+ writer.uint32(280).uint32(message.startTime);
4983
+ }
4984
+ if (message.duration !== 0) {
4985
+ writer.uint32(288).uint32(message.duration);
4986
+ }
5237
4987
  return writer;
5238
4988
  },
5239
4989
  decode(input, length) {
@@ -5429,6 +5179,18 @@ var Process = {
5429
5179
  }
5430
5180
  message.tempSIKs = reader.bool();
5431
5181
  continue;
5182
+ case 35:
5183
+ if (tag !== 280) {
5184
+ break;
5185
+ }
5186
+ message.startTime = reader.uint32();
5187
+ continue;
5188
+ case 36:
5189
+ if (tag !== 288) {
5190
+ break;
5191
+ }
5192
+ message.duration = reader.uint32();
5193
+ continue;
5432
5194
  }
5433
5195
  if ((tag & 7) === 4 || tag === 0) {
5434
5196
  break;
@@ -5441,35 +5203,37 @@ var Process = {
5441
5203
  return {
5442
5204
  processId: isSet(object.processId) ? bytesFromBase64(object.processId) : new Uint8Array(0),
5443
5205
  entityId: isSet(object.entityId) ? bytesFromBase64(object.entityId) : new Uint8Array(0),
5444
- startBlock: isSet(object.startBlock) ? Number(object.startBlock) : 0,
5445
- blockCount: isSet(object.blockCount) ? Number(object.blockCount) : 0,
5206
+ startBlock: isSet(object.startBlock) ? globalThis.Number(object.startBlock) : 0,
5207
+ blockCount: isSet(object.blockCount) ? globalThis.Number(object.blockCount) : 0,
5446
5208
  censusRoot: isSet(object.censusRoot) ? bytesFromBase64(object.censusRoot) : new Uint8Array(0),
5447
- censusURI: isSet(object.censusURI) ? String(object.censusURI) : void 0,
5448
- encryptionPrivateKeys: Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => String(e)) : [],
5449
- encryptionPublicKeys: Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => String(e)) : [],
5450
- keyIndex: isSet(object.keyIndex) ? Number(object.keyIndex) : void 0,
5209
+ censusURI: isSet(object.censusURI) ? globalThis.String(object.censusURI) : void 0,
5210
+ encryptionPrivateKeys: globalThis.Array.isArray(object?.encryptionPrivateKeys) ? object.encryptionPrivateKeys.map((e) => globalThis.String(e)) : [],
5211
+ encryptionPublicKeys: globalThis.Array.isArray(object?.encryptionPublicKeys) ? object.encryptionPublicKeys.map((e) => globalThis.String(e)) : [],
5212
+ keyIndex: isSet(object.keyIndex) ? globalThis.Number(object.keyIndex) : void 0,
5451
5213
  status: isSet(object.status) ? processStatusFromJSON(object.status) : 0,
5452
5214
  paramsSignature: isSet(object.paramsSignature) ? bytesFromBase64(object.paramsSignature) : void 0,
5453
- namespace: isSet(object.namespace) ? Number(object.namespace) : 0,
5215
+ namespace: isSet(object.namespace) ? globalThis.Number(object.namespace) : 0,
5454
5216
  envelopeType: isSet(object.envelopeType) ? EnvelopeType.fromJSON(object.envelopeType) : void 0,
5455
5217
  mode: isSet(object.mode) ? ProcessMode.fromJSON(object.mode) : void 0,
5456
- questionIndex: isSet(object.questionIndex) ? Number(object.questionIndex) : void 0,
5457
- questionCount: isSet(object.questionCount) ? Number(object.questionCount) : void 0,
5218
+ questionIndex: isSet(object.questionIndex) ? globalThis.Number(object.questionIndex) : void 0,
5219
+ questionCount: isSet(object.questionCount) ? globalThis.Number(object.questionCount) : void 0,
5458
5220
  voteOptions: isSet(object.voteOptions) ? ProcessVoteOptions.fromJSON(object.voteOptions) : void 0,
5459
5221
  censusOrigin: isSet(object.censusOrigin) ? censusOriginFromJSON(object.censusOrigin) : 0,
5460
5222
  results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
5461
- ethIndexSlot: isSet(object.ethIndexSlot) ? Number(object.ethIndexSlot) : void 0,
5462
- sourceBlockHeight: isSet(object.sourceBlockHeight) ? Number(object.sourceBlockHeight) : void 0,
5223
+ ethIndexSlot: isSet(object.ethIndexSlot) ? globalThis.Number(object.ethIndexSlot) : void 0,
5224
+ sourceBlockHeight: isSet(object.sourceBlockHeight) ? globalThis.Number(object.sourceBlockHeight) : void 0,
5463
5225
  owner: isSet(object.owner) ? bytesFromBase64(object.owner) : void 0,
5464
- metadata: isSet(object.metadata) ? String(object.metadata) : void 0,
5226
+ metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : void 0,
5465
5227
  sourceNetworkId: isSet(object.sourceNetworkId) ? sourceNetworkIdFromJSON(object.sourceNetworkId) : 0,
5466
- maxCensusSize: isSet(object.maxCensusSize) ? Number(object.maxCensusSize) : 0,
5228
+ maxCensusSize: isSet(object.maxCensusSize) ? globalThis.Number(object.maxCensusSize) : 0,
5467
5229
  rollingCensusRoot: isSet(object.rollingCensusRoot) ? bytesFromBase64(object.rollingCensusRoot) : void 0,
5468
- rollingCensusSize: isSet(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
5230
+ rollingCensusSize: isSet(object.rollingCensusSize) ? globalThis.Number(object.rollingCensusSize) : void 0,
5469
5231
  nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
5470
5232
  sourceNetworkContractAddr: isSet(object.sourceNetworkContractAddr) ? bytesFromBase64(object.sourceNetworkContractAddr) : void 0,
5471
- tokenDecimals: isSet(object.tokenDecimals) ? Number(object.tokenDecimals) : void 0,
5472
- tempSIKs: isSet(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
5233
+ tokenDecimals: isSet(object.tokenDecimals) ? globalThis.Number(object.tokenDecimals) : void 0,
5234
+ tempSIKs: isSet(object.tempSIKs) ? globalThis.Boolean(object.tempSIKs) : void 0,
5235
+ startTime: isSet(object.startTime) ? globalThis.Number(object.startTime) : 0,
5236
+ duration: isSet(object.duration) ? globalThis.Number(object.duration) : 0
5473
5237
  };
5474
5238
  },
5475
5239
  toJSON(message) {
@@ -5567,6 +5331,12 @@ var Process = {
5567
5331
  if (message.tempSIKs !== void 0) {
5568
5332
  obj.tempSIKs = message.tempSIKs;
5569
5333
  }
5334
+ if (message.startTime !== 0) {
5335
+ obj.startTime = Math.round(message.startTime);
5336
+ }
5337
+ if (message.duration !== 0) {
5338
+ obj.duration = Math.round(message.duration);
5339
+ }
5570
5340
  return obj;
5571
5341
  },
5572
5342
  create(base) {
@@ -5605,6 +5375,8 @@ var Process = {
5605
5375
  message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
5606
5376
  message.tokenDecimals = object.tokenDecimals ?? void 0;
5607
5377
  message.tempSIKs = object.tempSIKs ?? void 0;
5378
+ message.startTime = object.startTime ?? 0;
5379
+ message.duration = object.duration ?? 0;
5608
5380
  return message;
5609
5381
  }
5610
5382
  };
@@ -5677,11 +5449,11 @@ var EnvelopeType = {
5677
5449
  },
5678
5450
  fromJSON(object) {
5679
5451
  return {
5680
- serial: isSet(object.serial) ? Boolean(object.serial) : false,
5681
- anonymous: isSet(object.anonymous) ? Boolean(object.anonymous) : false,
5682
- encryptedVotes: isSet(object.encryptedVotes) ? Boolean(object.encryptedVotes) : false,
5683
- uniqueValues: isSet(object.uniqueValues) ? Boolean(object.uniqueValues) : false,
5684
- costFromWeight: isSet(object.costFromWeight) ? Boolean(object.costFromWeight) : false
5452
+ serial: isSet(object.serial) ? globalThis.Boolean(object.serial) : false,
5453
+ anonymous: isSet(object.anonymous) ? globalThis.Boolean(object.anonymous) : false,
5454
+ encryptedVotes: isSet(object.encryptedVotes) ? globalThis.Boolean(object.encryptedVotes) : false,
5455
+ uniqueValues: isSet(object.uniqueValues) ? globalThis.Boolean(object.uniqueValues) : false,
5456
+ costFromWeight: isSet(object.costFromWeight) ? globalThis.Boolean(object.costFromWeight) : false
5685
5457
  };
5686
5458
  },
5687
5459
  toJSON(message) {
@@ -5785,11 +5557,11 @@ var ProcessMode = {
5785
5557
  },
5786
5558
  fromJSON(object) {
5787
5559
  return {
5788
- autoStart: isSet(object.autoStart) ? Boolean(object.autoStart) : false,
5789
- interruptible: isSet(object.interruptible) ? Boolean(object.interruptible) : false,
5790
- dynamicCensus: isSet(object.dynamicCensus) ? Boolean(object.dynamicCensus) : false,
5791
- encryptedMetaData: isSet(object.encryptedMetaData) ? Boolean(object.encryptedMetaData) : false,
5792
- preRegister: isSet(object.preRegister) ? Boolean(object.preRegister) : false
5560
+ autoStart: isSet(object.autoStart) ? globalThis.Boolean(object.autoStart) : false,
5561
+ interruptible: isSet(object.interruptible) ? globalThis.Boolean(object.interruptible) : false,
5562
+ dynamicCensus: isSet(object.dynamicCensus) ? globalThis.Boolean(object.dynamicCensus) : false,
5563
+ encryptedMetaData: isSet(object.encryptedMetaData) ? globalThis.Boolean(object.encryptedMetaData) : false,
5564
+ preRegister: isSet(object.preRegister) ? globalThis.Boolean(object.preRegister) : false
5793
5565
  };
5794
5566
  },
5795
5567
  toJSON(message) {
@@ -5893,11 +5665,11 @@ var ProcessVoteOptions = {
5893
5665
  },
5894
5666
  fromJSON(object) {
5895
5667
  return {
5896
- maxCount: isSet(object.maxCount) ? Number(object.maxCount) : 0,
5897
- maxValue: isSet(object.maxValue) ? Number(object.maxValue) : 0,
5898
- maxVoteOverwrites: isSet(object.maxVoteOverwrites) ? Number(object.maxVoteOverwrites) : 0,
5899
- maxTotalCost: isSet(object.maxTotalCost) ? Number(object.maxTotalCost) : 0,
5900
- costExponent: isSet(object.costExponent) ? Number(object.costExponent) : 0
5668
+ maxCount: isSet(object.maxCount) ? globalThis.Number(object.maxCount) : 0,
5669
+ maxValue: isSet(object.maxValue) ? globalThis.Number(object.maxValue) : 0,
5670
+ maxVoteOverwrites: isSet(object.maxVoteOverwrites) ? globalThis.Number(object.maxVoteOverwrites) : 0,
5671
+ maxTotalCost: isSet(object.maxTotalCost) ? globalThis.Number(object.maxTotalCost) : 0,
5672
+ costExponent: isSet(object.costExponent) ? globalThis.Number(object.costExponent) : 0
5901
5673
  };
5902
5674
  },
5903
5675
  toJSON(message) {
@@ -5964,7 +5736,9 @@ var OracleList = {
5964
5736
  return message;
5965
5737
  },
5966
5738
  fromJSON(object) {
5967
- return { oracles: Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase64(e)) : [] };
5739
+ return {
5740
+ oracles: globalThis.Array.isArray(object?.oracles) ? object.oracles.map((e) => bytesFromBase64(e)) : []
5741
+ };
5968
5742
  },
5969
5743
  toJSON(message) {
5970
5744
  const obj = {};
@@ -6015,7 +5789,7 @@ var ValidatorList = {
6015
5789
  },
6016
5790
  fromJSON(object) {
6017
5791
  return {
6018
- validators: Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
5792
+ validators: globalThis.Array.isArray(object?.validators) ? object.validators.map((e) => Validator.fromJSON(e)) : []
6019
5793
  };
6020
5794
  },
6021
5795
  toJSON(message) {
@@ -6035,7 +5809,18 @@ var ValidatorList = {
6035
5809
  }
6036
5810
  };
6037
5811
  function createBaseValidator() {
6038
- return { address: new Uint8Array(0), pubKey: new Uint8Array(0), power: 0, name: "", keyIndex: 0 };
5812
+ return {
5813
+ address: new Uint8Array(0),
5814
+ pubKey: new Uint8Array(0),
5815
+ power: 0,
5816
+ name: "",
5817
+ keyIndex: 0,
5818
+ height: 0,
5819
+ proposals: 0,
5820
+ votes: 0,
5821
+ validatorAddress: new Uint8Array(0),
5822
+ score: 0
5823
+ };
6039
5824
  }
6040
5825
  var Validator = {
6041
5826
  encode(message, writer = import_minimal.default.Writer.create()) {
@@ -6054,6 +5839,21 @@ var Validator = {
6054
5839
  if (message.keyIndex !== 0) {
6055
5840
  writer.uint32(40).uint32(message.keyIndex);
6056
5841
  }
5842
+ if (message.height !== 0) {
5843
+ writer.uint32(48).uint64(message.height);
5844
+ }
5845
+ if (message.proposals !== 0) {
5846
+ writer.uint32(56).uint64(message.proposals);
5847
+ }
5848
+ if (message.votes !== 0) {
5849
+ writer.uint32(64).uint64(message.votes);
5850
+ }
5851
+ if (message.validatorAddress.length !== 0) {
5852
+ writer.uint32(74).bytes(message.validatorAddress);
5853
+ }
5854
+ if (message.score !== 0) {
5855
+ writer.uint32(80).uint32(message.score);
5856
+ }
6057
5857
  return writer;
6058
5858
  },
6059
5859
  decode(input, length) {
@@ -6093,6 +5893,36 @@ var Validator = {
6093
5893
  }
6094
5894
  message.keyIndex = reader.uint32();
6095
5895
  continue;
5896
+ case 6:
5897
+ if (tag !== 48) {
5898
+ break;
5899
+ }
5900
+ message.height = longToNumber(reader.uint64());
5901
+ continue;
5902
+ case 7:
5903
+ if (tag !== 56) {
5904
+ break;
5905
+ }
5906
+ message.proposals = longToNumber(reader.uint64());
5907
+ continue;
5908
+ case 8:
5909
+ if (tag !== 64) {
5910
+ break;
5911
+ }
5912
+ message.votes = longToNumber(reader.uint64());
5913
+ continue;
5914
+ case 9:
5915
+ if (tag !== 74) {
5916
+ break;
5917
+ }
5918
+ message.validatorAddress = reader.bytes();
5919
+ continue;
5920
+ case 10:
5921
+ if (tag !== 80) {
5922
+ break;
5923
+ }
5924
+ message.score = reader.uint32();
5925
+ continue;
6096
5926
  }
6097
5927
  if ((tag & 7) === 4 || tag === 0) {
6098
5928
  break;
@@ -6105,9 +5935,14 @@ var Validator = {
6105
5935
  return {
6106
5936
  address: isSet(object.address) ? bytesFromBase64(object.address) : new Uint8Array(0),
6107
5937
  pubKey: isSet(object.pubKey) ? bytesFromBase64(object.pubKey) : new Uint8Array(0),
6108
- power: isSet(object.power) ? Number(object.power) : 0,
6109
- name: isSet(object.name) ? String(object.name) : "",
6110
- keyIndex: isSet(object.keyIndex) ? Number(object.keyIndex) : 0
5938
+ power: isSet(object.power) ? globalThis.Number(object.power) : 0,
5939
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
5940
+ keyIndex: isSet(object.keyIndex) ? globalThis.Number(object.keyIndex) : 0,
5941
+ height: isSet(object.height) ? globalThis.Number(object.height) : 0,
5942
+ proposals: isSet(object.proposals) ? globalThis.Number(object.proposals) : 0,
5943
+ votes: isSet(object.votes) ? globalThis.Number(object.votes) : 0,
5944
+ validatorAddress: isSet(object.validatorAddress) ? bytesFromBase64(object.validatorAddress) : new Uint8Array(0),
5945
+ score: isSet(object.score) ? globalThis.Number(object.score) : 0
6111
5946
  };
6112
5947
  },
6113
5948
  toJSON(message) {
@@ -6127,6 +5962,21 @@ var Validator = {
6127
5962
  if (message.keyIndex !== 0) {
6128
5963
  obj.keyIndex = Math.round(message.keyIndex);
6129
5964
  }
5965
+ if (message.height !== 0) {
5966
+ obj.height = Math.round(message.height);
5967
+ }
5968
+ if (message.proposals !== 0) {
5969
+ obj.proposals = Math.round(message.proposals);
5970
+ }
5971
+ if (message.votes !== 0) {
5972
+ obj.votes = Math.round(message.votes);
5973
+ }
5974
+ if (message.validatorAddress.length !== 0) {
5975
+ obj.validatorAddress = base64FromBytes(message.validatorAddress);
5976
+ }
5977
+ if (message.score !== 0) {
5978
+ obj.score = Math.round(message.score);
5979
+ }
6130
5980
  return obj;
6131
5981
  },
6132
5982
  create(base) {
@@ -6139,6 +5989,11 @@ var Validator = {
6139
5989
  message.power = object.power ?? 0;
6140
5990
  message.name = object.name ?? "";
6141
5991
  message.keyIndex = object.keyIndex ?? 0;
5992
+ message.height = object.height ?? 0;
5993
+ message.proposals = object.proposals ?? 0;
5994
+ message.votes = object.votes ?? 0;
5995
+ message.validatorAddress = object.validatorAddress ?? new Uint8Array(0);
5996
+ message.score = object.score ?? 0;
6142
5997
  return message;
6143
5998
  }
6144
5999
  };
@@ -6297,9 +6152,9 @@ var TendermintHeader = {
6297
6152
  },
6298
6153
  fromJSON(object) {
6299
6154
  return {
6300
- chainId: isSet(object.chainId) ? String(object.chainId) : "",
6301
- height: isSet(object.height) ? Number(object.height) : 0,
6302
- timestamp: isSet(object.timestamp) ? Number(object.timestamp) : 0,
6155
+ chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
6156
+ height: isSet(object.height) ? globalThis.Number(object.height) : 0,
6157
+ timestamp: isSet(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
6303
6158
  blockID: isSet(object.blockID) ? bytesFromBase64(object.blockID) : new Uint8Array(0),
6304
6159
  lastCommitHash: isSet(object.lastCommitHash) ? bytesFromBase64(object.lastCommitHash) : new Uint8Array(0),
6305
6160
  dataHash: isSet(object.dataHash) ? bytesFromBase64(object.dataHash) : new Uint8Array(0),
@@ -6408,7 +6263,9 @@ var ProcessResult = {
6408
6263
  return message;
6409
6264
  },
6410
6265
  fromJSON(object) {
6411
- return { votes: Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : [] };
6266
+ return {
6267
+ votes: globalThis.Array.isArray(object?.votes) ? object.votes.map((e) => QuestionResult.fromJSON(e)) : []
6268
+ };
6412
6269
  },
6413
6270
  toJSON(message) {
6414
6271
  const obj = {};
@@ -6458,7 +6315,9 @@ var QuestionResult = {
6458
6315
  return message;
6459
6316
  },
6460
6317
  fromJSON(object) {
6461
- return { question: Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase64(e)) : [] };
6318
+ return {
6319
+ question: globalThis.Array.isArray(object?.question) ? object.question.map((e) => bytesFromBase64(e)) : []
6320
+ };
6462
6321
  },
6463
6322
  toJSON(message) {
6464
6323
  const obj = {};
@@ -6509,7 +6368,7 @@ var ProcessEndingList = {
6509
6368
  },
6510
6369
  fromJSON(object) {
6511
6370
  return {
6512
- processList: Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase64(e)) : []
6371
+ processList: globalThis.Array.isArray(object?.processList) ? object.processList.map((e) => bytesFromBase64(e)) : []
6513
6372
  };
6514
6373
  },
6515
6374
  toJSON(message) {
@@ -6560,7 +6419,7 @@ var StoredKeys = {
6560
6419
  return message;
6561
6420
  },
6562
6421
  fromJSON(object) {
6563
- return { pids: Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase64(e)) : [] };
6422
+ return { pids: globalThis.Array.isArray(object?.pids) ? object.pids.map((e) => bytesFromBase64(e)) : [] };
6564
6423
  },
6565
6424
  toJSON(message) {
6566
6425
  const obj = {};
@@ -6578,26 +6437,11 @@ var StoredKeys = {
6578
6437
  return message;
6579
6438
  }
6580
6439
  };
6581
- var tsProtoGlobalThis = (() => {
6582
- if (typeof globalThis !== "undefined") {
6583
- return globalThis;
6584
- }
6585
- if (typeof self !== "undefined") {
6586
- return self;
6587
- }
6588
- if (typeof window !== "undefined") {
6589
- return window;
6590
- }
6591
- if (typeof global !== "undefined") {
6592
- return global;
6593
- }
6594
- throw "Unable to locate global object";
6595
- })();
6596
6440
  function bytesFromBase64(b64) {
6597
- if (tsProtoGlobalThis.Buffer) {
6598
- return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
6441
+ if (globalThis.Buffer) {
6442
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
6599
6443
  } else {
6600
- const bin = tsProtoGlobalThis.atob(b64);
6444
+ const bin = globalThis.atob(b64);
6601
6445
  const arr = new Uint8Array(bin.length);
6602
6446
  for (let i = 0; i < bin.length; ++i) {
6603
6447
  arr[i] = bin.charCodeAt(i);
@@ -6606,19 +6450,19 @@ function bytesFromBase64(b64) {
6606
6450
  }
6607
6451
  }
6608
6452
  function base64FromBytes(arr) {
6609
- if (tsProtoGlobalThis.Buffer) {
6610
- return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
6453
+ if (globalThis.Buffer) {
6454
+ return globalThis.Buffer.from(arr).toString("base64");
6611
6455
  } else {
6612
6456
  const bin = [];
6613
6457
  arr.forEach((byte) => {
6614
- bin.push(String.fromCharCode(byte));
6458
+ bin.push(globalThis.String.fromCharCode(byte));
6615
6459
  });
6616
- return tsProtoGlobalThis.btoa(bin.join(""));
6460
+ return globalThis.btoa(bin.join(""));
6617
6461
  }
6618
6462
  }
6619
6463
  function longToNumber(long) {
6620
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
6621
- throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
6464
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
6465
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
6622
6466
  }
6623
6467
  return long.toNumber();
6624
6468
  }
@@ -6641,7 +6485,6 @@ function isSet(value) {
6641
6485
  EnvelopeType,
6642
6486
  FaucetPackage,
6643
6487
  FaucetPayload,
6644
- MintTokensTx,
6645
6488
  NewProcessTx,
6646
6489
  OracleList,
6647
6490
  Process,
@@ -6658,8 +6501,6 @@ function isSet(value) {
6658
6501
  ProofCA_Type,
6659
6502
  ProofEthereumAccount,
6660
6503
  ProofEthereumStorage,
6661
- ProofGraviton,
6662
- ProofIden3,
6663
6504
  ProofMinime,
6664
6505
  ProofZkSNARK,
6665
6506
  QuestionResult,
@@ -6675,7 +6516,6 @@ function isSet(value) {
6675
6516
  SourceNetworkId,
6676
6517
  StoredKeys,
6677
6518
  TendermintHeader,
6678
- Treasurer,
6679
6519
  Tx,
6680
6520
  TxType,
6681
6521
  Validator,