@ssv-labs/ssv-sdk 0.0.5 → 0.0.7

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.
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const globals = require("./globals-fh7gkHKO.js");
3
+ const globals = require("./globals-DCoa7oI7.js");
4
4
  const viem = require("viem");
5
5
  const ssvKeys$2 = require("ssv-keys");
6
6
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
@@ -1567,9 +1567,9 @@ var dist = {};
1567
1567
  }
1568
1568
  E(
1569
1569
  "ERR_BUFFER_OUT_OF_BOUNDS",
1570
- function(name2) {
1571
- if (name2) {
1572
- return `${name2} is outside of buffer bounds`;
1570
+ function(name) {
1571
+ if (name) {
1572
+ return `${name} is outside of buffer bounds`;
1573
1573
  }
1574
1574
  return "Attempt to access memory outside buffer bounds";
1575
1575
  },
@@ -1577,8 +1577,8 @@ var dist = {};
1577
1577
  );
1578
1578
  E(
1579
1579
  "ERR_INVALID_ARG_TYPE",
1580
- function(name2, actual) {
1581
- return `The "${name2}" argument must be of type number. Received type ${typeof actual}`;
1580
+ function(name, actual) {
1581
+ return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
1582
1582
  },
1583
1583
  TypeError
1584
1584
  );
@@ -1631,9 +1631,9 @@ var dist = {};
1631
1631
  }
1632
1632
  checkBounds(buf, offset, byteLength3);
1633
1633
  }
1634
- function validateNumber(value, name2) {
1634
+ function validateNumber(value, name) {
1635
1635
  if (typeof value !== "number") {
1636
- throw new errors.ERR_INVALID_ARG_TYPE(name2, "number", value);
1636
+ throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
1637
1637
  }
1638
1638
  }
1639
1639
  function boundsError(value, length, type2) {
@@ -1796,7 +1796,7 @@ var dist = {};
1796
1796
  exports2.transcode = buffer2.transcode;
1797
1797
  })(dist);
1798
1798
  const Buffer$C = /* @__PURE__ */ getDefaultExportFromCjs(dist);
1799
- var main$2 = { exports: {} };
1799
+ var main = { exports: {} };
1800
1800
  var empty = null;
1801
1801
  var empty_1 = empty;
1802
1802
  function assertPath(path3) {
@@ -2199,57 +2199,57 @@ var posix = {
2199
2199
  };
2200
2200
  posix.posix = posix;
2201
2201
  var pathBrowserify = posix;
2202
- var browser$d = {};
2203
- browser$d.endianness = function() {
2202
+ var browser$c = {};
2203
+ browser$c.endianness = function() {
2204
2204
  return "LE";
2205
2205
  };
2206
- browser$d.hostname = function() {
2206
+ browser$c.hostname = function() {
2207
2207
  if (typeof location !== "undefined") {
2208
2208
  return location.hostname;
2209
2209
  } else return "";
2210
2210
  };
2211
- browser$d.loadavg = function() {
2211
+ browser$c.loadavg = function() {
2212
2212
  return [];
2213
2213
  };
2214
- browser$d.uptime = function() {
2214
+ browser$c.uptime = function() {
2215
2215
  return 0;
2216
2216
  };
2217
- browser$d.freemem = function() {
2217
+ browser$c.freemem = function() {
2218
2218
  return Number.MAX_VALUE;
2219
2219
  };
2220
- browser$d.totalmem = function() {
2220
+ browser$c.totalmem = function() {
2221
2221
  return Number.MAX_VALUE;
2222
2222
  };
2223
- browser$d.cpus = function() {
2223
+ browser$c.cpus = function() {
2224
2224
  return [];
2225
2225
  };
2226
- browser$d.type = function() {
2226
+ browser$c.type = function() {
2227
2227
  return "Browser";
2228
2228
  };
2229
- browser$d.release = function() {
2229
+ browser$c.release = function() {
2230
2230
  if (typeof navigator !== "undefined") {
2231
2231
  return navigator.appVersion;
2232
2232
  }
2233
2233
  return "";
2234
2234
  };
2235
- browser$d.networkInterfaces = browser$d.getNetworkInterfaces = function() {
2235
+ browser$c.networkInterfaces = browser$c.getNetworkInterfaces = function() {
2236
2236
  return {};
2237
2237
  };
2238
- browser$d.arch = function() {
2238
+ browser$c.arch = function() {
2239
2239
  return "javascript";
2240
2240
  };
2241
- browser$d.platform = function() {
2241
+ browser$c.platform = function() {
2242
2242
  return "browser";
2243
2243
  };
2244
- browser$d.tmpdir = browser$d.tmpDir = function() {
2244
+ browser$c.tmpdir = browser$c.tmpDir = function() {
2245
2245
  return "/tmp";
2246
2246
  };
2247
- browser$d.EOL = "\n";
2248
- browser$d.homedir = function() {
2247
+ browser$c.EOL = "\n";
2248
+ browser$c.homedir = function() {
2249
2249
  return "/";
2250
2250
  };
2251
2251
  var cryptoBrowserify = {};
2252
- var browser$c = { exports: {} };
2252
+ var browser$b = { exports: {} };
2253
2253
  var safeBuffer$2 = { exports: {} };
2254
2254
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
2255
2255
  (function(module2, exports2) {
@@ -2315,9 +2315,9 @@ function oldBrowser$1() {
2315
2315
  var Buffer$B = safeBufferExports$1.Buffer;
2316
2316
  var crypto$2 = commonjsGlobal.crypto || commonjsGlobal.msCrypto;
2317
2317
  if (crypto$2 && crypto$2.getRandomValues) {
2318
- browser$c.exports = randomBytes$2;
2318
+ browser$b.exports = randomBytes$2;
2319
2319
  } else {
2320
- browser$c.exports = oldBrowser$1;
2320
+ browser$b.exports = oldBrowser$1;
2321
2321
  }
2322
2322
  function randomBytes$2(size, cb) {
2323
2323
  if (size > MAX_UINT32) throw new RangeError("requested too many random bytes");
@@ -2338,7 +2338,7 @@ function randomBytes$2(size, cb) {
2338
2338
  }
2339
2339
  return bytes;
2340
2340
  }
2341
- var browserExports = browser$c.exports;
2341
+ var browserExports = browser$b.exports;
2342
2342
  var inherits_browser = { exports: {} };
2343
2343
  if (typeof Object.create === "function") {
2344
2344
  inherits_browser.exports = function inherits2(ctor, superCtor) {
@@ -2689,10 +2689,10 @@ function unwrapListeners(arr) {
2689
2689
  }
2690
2690
  return ret;
2691
2691
  }
2692
- function once$2(emitter, name2) {
2692
+ function once$2(emitter, name) {
2693
2693
  return new Promise(function(resolve2, reject) {
2694
2694
  function errorListener(err) {
2695
- emitter.removeListener(name2, resolver);
2695
+ emitter.removeListener(name, resolver);
2696
2696
  reject(err);
2697
2697
  }
2698
2698
  function resolver() {
@@ -2701,8 +2701,8 @@ function once$2(emitter, name2) {
2701
2701
  }
2702
2702
  resolve2([].slice.call(arguments));
2703
2703
  }
2704
- eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
2705
- if (name2 !== "error") {
2704
+ eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
2705
+ if (name !== "error") {
2706
2706
  addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
2707
2707
  }
2708
2708
  });
@@ -2712,17 +2712,17 @@ function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
2712
2712
  eventTargetAgnosticAddListener(emitter, "error", handler, flags);
2713
2713
  }
2714
2714
  }
2715
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags) {
2715
+ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
2716
2716
  if (typeof emitter.on === "function") {
2717
2717
  if (flags.once) {
2718
- emitter.once(name2, listener);
2718
+ emitter.once(name, listener);
2719
2719
  } else {
2720
- emitter.on(name2, listener);
2720
+ emitter.on(name, listener);
2721
2721
  }
2722
2722
  } else if (typeof emitter.addEventListener === "function") {
2723
- emitter.addEventListener(name2, function wrapListener(arg) {
2723
+ emitter.addEventListener(name, function wrapListener(arg) {
2724
2724
  if (flags.once) {
2725
- emitter.removeEventListener(name2, wrapListener);
2725
+ emitter.removeEventListener(name, wrapListener);
2726
2726
  }
2727
2727
  listener(arg);
2728
2728
  });
@@ -2733,7 +2733,7 @@ function eventTargetAgnosticAddListener(emitter, name2, listener, flags) {
2733
2733
  var eventsExports = events.exports;
2734
2734
  var streamBrowser$1 = eventsExports.EventEmitter;
2735
2735
  var util$3 = {};
2736
- var types$1 = {};
2736
+ var types = {};
2737
2737
  var shams$1 = function hasSymbols2() {
2738
2738
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
2739
2739
  return false;
@@ -3013,26 +3013,26 @@ if (getProto$1) {
3013
3013
  INTRINSICS["%Error.prototype%"] = errorProto;
3014
3014
  }
3015
3015
  }
3016
- var doEval = function doEval2(name2) {
3016
+ var doEval = function doEval2(name) {
3017
3017
  var value;
3018
- if (name2 === "%AsyncFunction%") {
3018
+ if (name === "%AsyncFunction%") {
3019
3019
  value = getEvalledConstructor("async function () {}");
3020
- } else if (name2 === "%GeneratorFunction%") {
3020
+ } else if (name === "%GeneratorFunction%") {
3021
3021
  value = getEvalledConstructor("function* () {}");
3022
- } else if (name2 === "%AsyncGeneratorFunction%") {
3022
+ } else if (name === "%AsyncGeneratorFunction%") {
3023
3023
  value = getEvalledConstructor("async function* () {}");
3024
- } else if (name2 === "%AsyncGenerator%") {
3024
+ } else if (name === "%AsyncGenerator%") {
3025
3025
  var fn = doEval2("%AsyncGeneratorFunction%");
3026
3026
  if (fn) {
3027
3027
  value = fn.prototype;
3028
3028
  }
3029
- } else if (name2 === "%AsyncIteratorPrototype%") {
3029
+ } else if (name === "%AsyncIteratorPrototype%") {
3030
3030
  var gen = doEval2("%AsyncGenerator%");
3031
3031
  if (gen && getProto$1) {
3032
3032
  value = getProto$1(gen.prototype);
3033
3033
  }
3034
3034
  }
3035
- INTRINSICS[name2] = value;
3035
+ INTRINSICS[name] = value;
3036
3036
  return value;
3037
3037
  };
3038
3038
  var LEGACY_ALIASES = {
@@ -3112,8 +3112,8 @@ var stringToPath = function stringToPath2(string) {
3112
3112
  });
3113
3113
  return result;
3114
3114
  };
3115
- var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
3116
- var intrinsicName = name2;
3115
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
3116
+ var intrinsicName = name;
3117
3117
  var alias;
3118
3118
  if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
3119
3119
  alias = LEGACY_ALIASES[intrinsicName];
@@ -3125,7 +3125,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
3125
3125
  value = doEval(intrinsicName);
3126
3126
  }
3127
3127
  if (typeof value === "undefined" && !allowMissing) {
3128
- throw new $TypeError$2("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
3128
+ throw new $TypeError$2("intrinsic " + name + " exists, but is not available. Please file an issue!");
3129
3129
  }
3130
3130
  return {
3131
3131
  alias,
@@ -3133,19 +3133,19 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
3133
3133
  value
3134
3134
  };
3135
3135
  }
3136
- throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
3136
+ throw new $SyntaxError$1("intrinsic " + name + " does not exist!");
3137
3137
  };
3138
- var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
3139
- if (typeof name2 !== "string" || name2.length === 0) {
3138
+ var getIntrinsic = function GetIntrinsic2(name, allowMissing) {
3139
+ if (typeof name !== "string" || name.length === 0) {
3140
3140
  throw new $TypeError$2("intrinsic name must be a non-empty string");
3141
3141
  }
3142
3142
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
3143
3143
  throw new $TypeError$2('"allowMissing" argument must be a boolean');
3144
3144
  }
3145
- if ($exec(/^%?[^%]*%?$/, name2) === null) {
3145
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
3146
3146
  throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3147
3147
  }
3148
- var parts = stringToPath(name2);
3148
+ var parts = stringToPath(name);
3149
3149
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
3150
3150
  var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
3151
3151
  var intrinsicRealName = intrinsic.name;
@@ -3173,7 +3173,7 @@ var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
3173
3173
  } else if (value != null) {
3174
3174
  if (!(part in value)) {
3175
3175
  if (!allowMissing) {
3176
- throw new $TypeError$2("base intrinsic for " + name2 + " exists, but the property is not available.");
3176
+ throw new $TypeError$2("base intrinsic for " + name + " exists, but the property is not available.");
3177
3177
  }
3178
3178
  return void 0;
3179
3179
  }
@@ -3360,9 +3360,9 @@ var callBindExports = callBind$2.exports;
3360
3360
  var GetIntrinsic = getIntrinsic;
3361
3361
  var callBind$1 = callBindExports;
3362
3362
  var $indexOf$1 = callBind$1(GetIntrinsic("String.prototype.indexOf"));
3363
- var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
3364
- var intrinsic = GetIntrinsic(name2, !!allowMissing);
3365
- if (typeof intrinsic === "function" && $indexOf$1(name2, ".prototype.") > -1) {
3363
+ var callBound$2 = function callBoundIntrinsic(name, allowMissing) {
3364
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
3365
+ if (typeof intrinsic === "function" && $indexOf$1(name, ".prototype.") > -1) {
3366
3366
  return callBind$1(intrinsic);
3367
3367
  }
3368
3368
  return intrinsic;
@@ -3678,11 +3678,11 @@ var trySlices = function tryAllSlices(value) {
3678
3678
  /** @type {any} */
3679
3679
  cache,
3680
3680
  /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
3681
- function(getter, name2) {
3681
+ function(getter, name) {
3682
3682
  if (!found) {
3683
3683
  try {
3684
3684
  getter(value);
3685
- found = $slice(name2, 1);
3685
+ found = $slice(name, 1);
3686
3686
  } catch (e) {
3687
3687
  }
3688
3688
  }
@@ -3935,7 +3935,7 @@ var isTypedArray = function isTypedArray2(value) {
3935
3935
  }
3936
3936
  });
3937
3937
  });
3938
- })(types$1);
3938
+ })(types);
3939
3939
  var isBufferBrowser = function isBuffer(arg) {
3940
3940
  return arg && typeof arg === "object" && typeof arg.copy === "function" && typeof arg.fill === "function" && typeof arg.readUInt8 === "function";
3941
3941
  };
@@ -4123,8 +4123,8 @@ var isBufferBrowser = function isBuffer(arg) {
4123
4123
  }
4124
4124
  if (keys.length === 0) {
4125
4125
  if (isFunction2(value)) {
4126
- var name2 = value.name ? ": " + value.name : "";
4127
- return ctx.stylize("[Function" + name2 + "]", "special");
4126
+ var name = value.name ? ": " + value.name : "";
4127
+ return ctx.stylize("[Function" + name + "]", "special");
4128
4128
  }
4129
4129
  if (isRegExp2(value)) {
4130
4130
  return ctx.stylize(RegExp.prototype.toString.call(value), "regexp");
@@ -4224,7 +4224,7 @@ var isBufferBrowser = function isBuffer(arg) {
4224
4224
  return output;
4225
4225
  }
4226
4226
  function formatProperty(ctx, value, recurseTimes, visibleKeys, key2, array) {
4227
- var name2, str, desc;
4227
+ var name, str, desc;
4228
4228
  desc = Object.getOwnPropertyDescriptor(value, key2) || { value: value[key2] };
4229
4229
  if (desc.get) {
4230
4230
  if (desc.set) {
@@ -4238,7 +4238,7 @@ var isBufferBrowser = function isBuffer(arg) {
4238
4238
  }
4239
4239
  }
4240
4240
  if (!hasOwnProperty2(visibleKeys, key2)) {
4241
- name2 = "[" + key2 + "]";
4241
+ name = "[" + key2 + "]";
4242
4242
  }
4243
4243
  if (!str) {
4244
4244
  if (ctx.seen.indexOf(desc.value) < 0) {
@@ -4262,20 +4262,20 @@ var isBufferBrowser = function isBuffer(arg) {
4262
4262
  str = ctx.stylize("[Circular]", "special");
4263
4263
  }
4264
4264
  }
4265
- if (isUndefined2(name2)) {
4265
+ if (isUndefined2(name)) {
4266
4266
  if (array && key2.match(/^\d+$/)) {
4267
4267
  return str;
4268
4268
  }
4269
- name2 = JSON.stringify("" + key2);
4270
- if (name2.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
4271
- name2 = name2.slice(1, -1);
4272
- name2 = ctx.stylize(name2, "name");
4269
+ name = JSON.stringify("" + key2);
4270
+ if (name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)) {
4271
+ name = name.slice(1, -1);
4272
+ name = ctx.stylize(name, "name");
4273
4273
  } else {
4274
- name2 = name2.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
4275
- name2 = ctx.stylize(name2, "string");
4274
+ name = name.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'");
4275
+ name = ctx.stylize(name, "string");
4276
4276
  }
4277
4277
  }
4278
- return name2 + ": " + str;
4278
+ return name + ": " + str;
4279
4279
  }
4280
4280
  function reduceToSingleString(output, base2, braces) {
4281
4281
  var length = output.reduce(function(prev, cur) {
@@ -4287,7 +4287,7 @@ var isBufferBrowser = function isBuffer(arg) {
4287
4287
  }
4288
4288
  return braces[0] + base2 + " " + output.join(", ") + " " + braces[1];
4289
4289
  }
4290
- exports2.types = types$1;
4290
+ exports2.types = types;
4291
4291
  function isArray2(ar) {
4292
4292
  return Array.isArray(ar);
4293
4293
  }
@@ -4553,11 +4553,11 @@ function requireBuffer_list() {
4553
4553
  if (typeof input !== "object" || input === null) return input;
4554
4554
  var prim = input[Symbol.toPrimitive];
4555
4555
  if (prim !== void 0) {
4556
- var res = prim.call(input, hint || "default");
4556
+ var res = prim.call(input, hint);
4557
4557
  if (typeof res !== "object") return res;
4558
4558
  throw new TypeError("@@toPrimitive must return a primitive value.");
4559
4559
  }
4560
- return (hint === "string" ? String : Number)(input);
4560
+ return String(input);
4561
4561
  }
4562
4562
  var _require = dist, Buffer2 = _require.Buffer;
4563
4563
  var _require2 = util$3, inspect7 = _require2.inspect;
@@ -4877,10 +4877,10 @@ function includes(str, search, start) {
4877
4877
  return str.indexOf(search, start) !== -1;
4878
4878
  }
4879
4879
  }
4880
- createErrorType("ERR_INVALID_OPT_VALUE", function(name2, value) {
4881
- return 'The value "' + value + '" is invalid for option "' + name2 + '"';
4880
+ createErrorType("ERR_INVALID_OPT_VALUE", function(name, value) {
4881
+ return 'The value "' + value + '" is invalid for option "' + name + '"';
4882
4882
  }, TypeError);
4883
- createErrorType("ERR_INVALID_ARG_TYPE", function(name2, expected, actual) {
4883
+ createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) {
4884
4884
  var determiner;
4885
4885
  if (typeof expected === "string" && startsWith(expected, "not ")) {
4886
4886
  determiner = "must not be";
@@ -4889,22 +4889,22 @@ createErrorType("ERR_INVALID_ARG_TYPE", function(name2, expected, actual) {
4889
4889
  determiner = "must be";
4890
4890
  }
4891
4891
  var msg;
4892
- if (endsWith(name2, " argument")) {
4893
- msg = "The ".concat(name2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
4892
+ if (endsWith(name, " argument")) {
4893
+ msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
4894
4894
  } else {
4895
- var type2 = includes(name2, ".") ? "property" : "argument";
4896
- msg = 'The "'.concat(name2, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
4895
+ var type2 = includes(name, ".") ? "property" : "argument";
4896
+ msg = 'The "'.concat(name, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
4897
4897
  }
4898
4898
  msg += ". Received type ".concat(typeof actual);
4899
4899
  return msg;
4900
4900
  }, TypeError);
4901
4901
  createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
4902
- createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
4903
- return "The " + name2 + " method is not implemented";
4902
+ createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name) {
4903
+ return "The " + name + " method is not implemented";
4904
4904
  });
4905
4905
  createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
4906
- createErrorType("ERR_STREAM_DESTROYED", function(name2) {
4907
- return "Cannot call " + name2 + " after a stream was destroyed";
4906
+ createErrorType("ERR_STREAM_DESTROYED", function(name) {
4907
+ return "Cannot call " + name + " after a stream was destroyed";
4908
4908
  });
4909
4909
  createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
4910
4910
  createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
@@ -4923,8 +4923,8 @@ function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
4923
4923
  var hwm = highWaterMarkFrom(options2, isDuplex, duplexKey);
4924
4924
  if (hwm != null) {
4925
4925
  if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
4926
- var name2 = isDuplex ? duplexKey : "highWaterMark";
4927
- throw new ERR_INVALID_OPT_VALUE(name2, hwm);
4926
+ var name = isDuplex ? duplexKey : "highWaterMark";
4927
+ throw new ERR_INVALID_OPT_VALUE(name, hwm);
4928
4928
  }
4929
4929
  return Math.floor(hwm);
4930
4930
  }
@@ -4933,7 +4933,7 @@ function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
4933
4933
  var state = {
4934
4934
  getHighWaterMark
4935
4935
  };
4936
- var browser$b = deprecate;
4936
+ var browser$a = deprecate;
4937
4937
  function deprecate(fn, msg) {
4938
4938
  if (config$1("noDeprecation")) {
4939
4939
  return fn;
@@ -4954,13 +4954,13 @@ function deprecate(fn, msg) {
4954
4954
  }
4955
4955
  return deprecated;
4956
4956
  }
4957
- function config$1(name2) {
4957
+ function config$1(name) {
4958
4958
  try {
4959
4959
  if (!commonjsGlobal.localStorage) return false;
4960
4960
  } catch (_) {
4961
4961
  return false;
4962
4962
  }
4963
- var val = commonjsGlobal.localStorage[name2];
4963
+ var val = commonjsGlobal.localStorage[name];
4964
4964
  if (null == val) return false;
4965
4965
  return String(val).toLowerCase() === "true";
4966
4966
  }
@@ -4981,7 +4981,7 @@ function require_stream_writable$1() {
4981
4981
  var Duplex2;
4982
4982
  Writable.WritableState = WritableState;
4983
4983
  var internalUtil = {
4984
- deprecate: browser$b
4984
+ deprecate: browser$a
4985
4985
  };
4986
4986
  var Stream2 = streamBrowser$1;
4987
4987
  var Buffer2 = dist.Buffer;
@@ -5853,7 +5853,7 @@ function requireAsync_iterator() {
5853
5853
  if (typeof input !== "object" || input === null) return input;
5854
5854
  var prim = input[Symbol.toPrimitive];
5855
5855
  if (prim !== void 0) {
5856
- var res = prim.call(input, hint || "default");
5856
+ var res = prim.call(input, hint);
5857
5857
  if (typeof res !== "object") return res;
5858
5858
  throw new TypeError("@@toPrimitive must return a primitive value.");
5859
5859
  }
@@ -8327,18 +8327,18 @@ Sha384.prototype._hash = function() {
8327
8327
  return H;
8328
8328
  };
8329
8329
  var sha384$1 = Sha384;
8330
- var exports$2 = sha_js.exports = function SHA(algorithm) {
8330
+ var exports$1 = sha_js.exports = function SHA(algorithm) {
8331
8331
  algorithm = algorithm.toLowerCase();
8332
- var Algorithm = exports$2[algorithm];
8332
+ var Algorithm = exports$1[algorithm];
8333
8333
  if (!Algorithm) throw new Error(algorithm + " is not supported (we accept pull requests)");
8334
8334
  return new Algorithm();
8335
8335
  };
8336
- exports$2.sha = sha$4;
8337
- exports$2.sha1 = sha1;
8338
- exports$2.sha224 = sha224$1;
8339
- exports$2.sha256 = sha256$1;
8340
- exports$2.sha384 = sha384$1;
8341
- exports$2.sha512 = sha512$1;
8336
+ exports$1.sha = sha$4;
8337
+ exports$1.sha1 = sha1;
8338
+ exports$1.sha224 = sha224$1;
8339
+ exports$1.sha256 = sha256$1;
8340
+ exports$1.sha384 = sha384$1;
8341
+ exports$1.sha512 = sha512$1;
8342
8342
  var sha_jsExports = sha_js.exports;
8343
8343
  var streamBrowserify = Stream;
8344
8344
  var EE = eventsExports.EventEmitter;
@@ -8512,7 +8512,7 @@ Hash.prototype._update = function(data) {
8512
8512
  Hash.prototype._final = function() {
8513
8513
  return this._hash.digest();
8514
8514
  };
8515
- var browser$a = function createHash2(alg) {
8515
+ var browser$9 = function createHash2(alg) {
8516
8516
  alg = alg.toLowerCase();
8517
8517
  if (alg === "md5") return new MD5$2();
8518
8518
  if (alg === "rmd160" || alg === "ripemd160") return new RIPEMD160$3();
@@ -8596,7 +8596,7 @@ Hmac$2.prototype._final = function() {
8596
8596
  var hash3 = this._alg === "rmd160" ? new RIPEMD160$2() : sha$2(this._alg);
8597
8597
  return hash3.update(this._opad).update(h).digest();
8598
8598
  };
8599
- var browser$9 = function createHmac(alg, key2) {
8599
+ var browser$8 = function createHmac(alg, key2) {
8600
8600
  alg = alg.toLowerCase();
8601
8601
  if (alg === "rmd160" || alg === "ripemd160") {
8602
8602
  return new Hmac$2("rmd160", key2);
@@ -8770,7 +8770,7 @@ const require$$6 = {
8770
8770
  }
8771
8771
  };
8772
8772
  var algos = require$$6;
8773
- var browser$8 = {};
8773
+ var browser$7 = {};
8774
8774
  var MAX_ALLOC = Math.pow(2, 30) - 1;
8775
8775
  var precondition = function(iterations, keylen) {
8776
8776
  if (typeof iterations !== "number") {
@@ -8797,7 +8797,7 @@ if (commonjsGlobal.process && commonjsGlobal.process.browser) {
8797
8797
  }
8798
8798
  var defaultEncoding_1 = defaultEncoding$2;
8799
8799
  var Buffer$m = safeBufferExports$1.Buffer;
8800
- var toBuffer$2 = function(thing, encoding, name2) {
8800
+ var toBuffer$2 = function(thing, encoding, name) {
8801
8801
  if (Buffer$m.isBuffer(thing)) {
8802
8802
  return thing;
8803
8803
  } else if (typeof thing === "string") {
@@ -8805,7 +8805,7 @@ var toBuffer$2 = function(thing, encoding, name2) {
8805
8805
  } else if (ArrayBuffer.isView(thing)) {
8806
8806
  return Buffer$m.from(thing.buffer);
8807
8807
  } else {
8808
- throw new TypeError(name2 + " must be a string, a Buffer, a typed array or a DataView");
8808
+ throw new TypeError(name + " must be a string, a Buffer, a typed array or a DataView");
8809
8809
  }
8810
8810
  };
8811
8811
  var md5 = md5$2;
@@ -9006,9 +9006,9 @@ var async = function(password, salt, iterations, keylen, digest9, callback) {
9006
9006
  return sync(password, salt, iterations, keylen, digest9);
9007
9007
  }), callback);
9008
9008
  };
9009
- browser$8.pbkdf2 = async;
9010
- browser$8.pbkdf2Sync = syncBrowser;
9011
- var browser$7 = {};
9009
+ browser$7.pbkdf2 = async;
9010
+ browser$7.pbkdf2Sync = syncBrowser;
9011
+ var browser$6 = {};
9012
9012
  var des$2 = {};
9013
9013
  var utils$n = {};
9014
9014
  utils$n.readUInt32BE = function readUInt32BE(bytes, off) {
@@ -10144,7 +10144,7 @@ DES$1.prototype._update = function(data) {
10144
10144
  DES$1.prototype._final = function() {
10145
10145
  return Buffer$j.from(this._des.final());
10146
10146
  };
10147
- var browser$6 = {};
10147
+ var browser$5 = {};
10148
10148
  var encrypter = {};
10149
10149
  var ecb = {};
10150
10150
  ecb.encrypt = function(self2, block2) {
@@ -11119,11 +11119,11 @@ var modes$1 = require$$2;
11119
11119
  function getCiphers$1() {
11120
11120
  return Object.keys(modes$1);
11121
11121
  }
11122
- browser$6.createCipher = browser$6.Cipher = ciphers$2.createCipher;
11123
- browser$6.createCipheriv = browser$6.Cipheriv = ciphers$2.createCipheriv;
11124
- browser$6.createDecipher = browser$6.Decipher = deciphers.createDecipher;
11125
- browser$6.createDecipheriv = browser$6.Decipheriv = deciphers.createDecipheriv;
11126
- browser$6.listCiphers = browser$6.getCiphers = getCiphers$1;
11122
+ browser$5.createCipher = browser$5.Cipher = ciphers$2.createCipher;
11123
+ browser$5.createCipheriv = browser$5.Cipheriv = ciphers$2.createCipheriv;
11124
+ browser$5.createDecipher = browser$5.Decipher = deciphers.createDecipher;
11125
+ browser$5.createDecipheriv = browser$5.Decipheriv = deciphers.createDecipheriv;
11126
+ browser$5.listCiphers = browser$5.getCiphers = getCiphers$1;
11127
11127
  var modes = {};
11128
11128
  (function(exports2) {
11129
11129
  exports2["des-ecb"] = {
@@ -11152,7 +11152,7 @@ var modes = {};
11152
11152
  };
11153
11153
  })(modes);
11154
11154
  var DES = browserifyDes;
11155
- var aes = browser$6;
11155
+ var aes = browser$5;
11156
11156
  var aesModes = modes_1;
11157
11157
  var desModes = modes;
11158
11158
  var ebtk = evp_bytestokey;
@@ -11201,12 +11201,12 @@ function createDecipheriv(suite, key2, iv) {
11201
11201
  function getCiphers() {
11202
11202
  return Object.keys(desModes).concat(aes.getCiphers());
11203
11203
  }
11204
- browser$7.createCipher = browser$7.Cipher = createCipher;
11205
- browser$7.createCipheriv = browser$7.Cipheriv = createCipheriv;
11206
- browser$7.createDecipher = browser$7.Decipher = createDecipher;
11207
- browser$7.createDecipheriv = browser$7.Decipheriv = createDecipheriv;
11208
- browser$7.listCiphers = browser$7.getCiphers = getCiphers;
11209
- var browser$5 = {};
11204
+ browser$6.createCipher = browser$6.Cipher = createCipher;
11205
+ browser$6.createCipheriv = browser$6.Cipheriv = createCipheriv;
11206
+ browser$6.createDecipher = browser$6.Decipher = createDecipher;
11207
+ browser$6.createDecipheriv = browser$6.Decipheriv = createDecipheriv;
11208
+ browser$6.listCiphers = browser$6.getCiphers = getCiphers;
11209
+ var browser$4 = {};
11210
11210
  var bn$1 = { exports: {} };
11211
11211
  bn$1.exports;
11212
11212
  (function(module2) {
@@ -12789,7 +12789,7 @@ bn$1.exports;
12789
12789
  rws[i] = 0;
12790
12790
  }
12791
12791
  assert2(carry === 0);
12792
- assert2((carry & ~8191) === 0);
12792
+ assert2((carry & -8192) === 0);
12793
12793
  };
12794
12794
  FFTM.prototype.stub = function stub(N) {
12795
12795
  var ph = new Array(N);
@@ -13617,8 +13617,8 @@ bn$1.exports;
13617
13617
  p192: null,
13618
13618
  p25519: null
13619
13619
  };
13620
- function MPrime(name2, p) {
13621
- this.name = name2;
13620
+ function MPrime(name, p) {
13621
+ this.name = name;
13622
13622
  this.p = new BN2(p, 16);
13623
13623
  this.n = this.p.bitLength();
13624
13624
  this.k = new BN2(1).iushln(this.n).isub(this.p);
@@ -13751,21 +13751,21 @@ bn$1.exports;
13751
13751
  }
13752
13752
  return num;
13753
13753
  };
13754
- BN2._prime = function prime(name2) {
13755
- if (primes[name2]) return primes[name2];
13754
+ BN2._prime = function prime(name) {
13755
+ if (primes[name]) return primes[name];
13756
13756
  var prime2;
13757
- if (name2 === "k256") {
13757
+ if (name === "k256") {
13758
13758
  prime2 = new K256();
13759
- } else if (name2 === "p224") {
13759
+ } else if (name === "p224") {
13760
13760
  prime2 = new P224();
13761
- } else if (name2 === "p192") {
13761
+ } else if (name === "p192") {
13762
13762
  prime2 = new P192();
13763
- } else if (name2 === "p25519") {
13763
+ } else if (name === "p25519") {
13764
13764
  prime2 = new P25519();
13765
13765
  } else {
13766
- throw new Error("Unknown prime " + name2);
13766
+ throw new Error("Unknown prime " + name);
13767
13767
  }
13768
- primes[name2] = prime2;
13768
+ primes[name] = prime2;
13769
13769
  return prime2;
13770
13770
  };
13771
13771
  function Red(m) {
@@ -14448,7 +14448,7 @@ function requireDh() {
14448
14448
  }
14449
14449
  var hasRequiredBrowser$2;
14450
14450
  function requireBrowser$2() {
14451
- if (hasRequiredBrowser$2) return browser$5;
14451
+ if (hasRequiredBrowser$2) return browser$4;
14452
14452
  hasRequiredBrowser$2 = 1;
14453
14453
  var generatePrime2 = requireGeneratePrime();
14454
14454
  var primes = require$$1$1;
@@ -14481,9 +14481,9 @@ function requireBrowser$2() {
14481
14481
  }
14482
14482
  return new DH(prime, generator, true);
14483
14483
  }
14484
- browser$5.DiffieHellmanGroup = browser$5.createDiffieHellmanGroup = browser$5.getDiffieHellman = getDiffieHellman;
14485
- browser$5.createDiffieHellman = browser$5.DiffieHellman = createDiffieHellman;
14486
- return browser$5;
14484
+ browser$4.DiffieHellmanGroup = browser$4.createDiffieHellmanGroup = browser$4.getDiffieHellman = getDiffieHellman;
14485
+ browser$4.createDiffieHellman = browser$4.DiffieHellman = createDiffieHellman;
14486
+ return browser$4;
14487
14487
  }
14488
14488
  var readableBrowser = { exports: {} };
14489
14489
  var processNextickArgs = { exports: {} };
@@ -14814,7 +14814,7 @@ function require_stream_writable() {
14814
14814
  var util2 = Object.create(util$2);
14815
14815
  util2.inherits = inherits_browserExports;
14816
14816
  var internalUtil = {
14817
- deprecate: browser$b
14817
+ deprecate: browser$a
14818
14818
  };
14819
14819
  var Stream2 = streamBrowser;
14820
14820
  var Buffer2 = safeBufferExports.Buffer;
@@ -18457,8 +18457,8 @@ bn.exports;
18457
18457
  p192: null,
18458
18458
  p25519: null
18459
18459
  };
18460
- function MPrime(name2, p) {
18461
- this.name = name2;
18460
+ function MPrime(name, p) {
18461
+ this.name = name;
18462
18462
  this.p = new BN2(p, 16);
18463
18463
  this.n = this.p.bitLength();
18464
18464
  this.k = new BN2(1).iushln(this.n).isub(this.p);
@@ -18591,21 +18591,21 @@ bn.exports;
18591
18591
  }
18592
18592
  return num;
18593
18593
  };
18594
- BN2._prime = function prime(name2) {
18595
- if (primes[name2]) return primes[name2];
18594
+ BN2._prime = function prime(name) {
18595
+ if (primes[name]) return primes[name];
18596
18596
  var prime2;
18597
- if (name2 === "k256") {
18597
+ if (name === "k256") {
18598
18598
  prime2 = new K256();
18599
- } else if (name2 === "p224") {
18599
+ } else if (name === "p224") {
18600
18600
  prime2 = new P224();
18601
- } else if (name2 === "p192") {
18601
+ } else if (name === "p192") {
18602
18602
  prime2 = new P192();
18603
- } else if (name2 === "p25519") {
18603
+ } else if (name === "p25519") {
18604
18604
  prime2 = new P25519();
18605
18605
  } else {
18606
- throw new Error("Unknown prime " + name2);
18606
+ throw new Error("Unknown prime " + name);
18607
18607
  }
18608
- primes[name2] = prime2;
18608
+ primes[name] = prime2;
18609
18609
  return prime2;
18610
18610
  };
18611
18611
  function Red(m) {
@@ -18885,75 +18885,9 @@ function crt$2(msg, priv2) {
18885
18885
  crt$2.getr = getr;
18886
18886
  var browserifyRsa = crt$2;
18887
18887
  var elliptic = {};
18888
- const name$1 = "elliptic";
18889
18888
  const version$2 = "6.5.7";
18890
- const description$1 = "EC cryptography";
18891
- const main$1 = "lib/elliptic.js";
18892
- const files = [
18893
- "lib"
18894
- ];
18895
- const scripts$1 = {
18896
- lint: "eslint lib test",
18897
- "lint:fix": "npm run lint -- --fix",
18898
- unit: "istanbul test _mocha --reporter=spec test/index.js",
18899
- test: "npm run lint && npm run unit",
18900
- version: "grunt dist && git add dist/"
18901
- };
18902
- const repository$1 = {
18903
- type: "git",
18904
- url: "git@github.com:indutny/elliptic"
18905
- };
18906
- const keywords$1 = [
18907
- "EC",
18908
- "Elliptic",
18909
- "curve",
18910
- "Cryptography"
18911
- ];
18912
- const author = "Fedor Indutny <fedor@indutny.com>";
18913
- const license$1 = "MIT";
18914
- const bugs = {
18915
- url: "https://github.com/indutny/elliptic/issues"
18916
- };
18917
- const homepage = "https://github.com/indutny/elliptic";
18918
- const devDependencies$1 = {
18919
- brfs: "^2.0.2",
18920
- coveralls: "^3.1.0",
18921
- eslint: "^7.6.0",
18922
- grunt: "^1.2.1",
18923
- "grunt-browserify": "^5.3.0",
18924
- "grunt-cli": "^1.3.2",
18925
- "grunt-contrib-connect": "^3.0.0",
18926
- "grunt-contrib-copy": "^1.0.0",
18927
- "grunt-contrib-uglify": "^5.0.0",
18928
- "grunt-mocha-istanbul": "^5.0.2",
18929
- "grunt-saucelabs": "^9.0.1",
18930
- istanbul: "^0.4.5",
18931
- mocha: "^8.0.1"
18932
- };
18933
- const dependencies = {
18934
- "bn.js": "^4.11.9",
18935
- brorand: "^1.1.0",
18936
- "hash.js": "^1.0.0",
18937
- "hmac-drbg": "^1.0.1",
18938
- inherits: "^2.0.4",
18939
- "minimalistic-assert": "^1.0.1",
18940
- "minimalistic-crypto-utils": "^1.0.1"
18941
- };
18942
18889
  const require$$0 = {
18943
- name: name$1,
18944
- version: version$2,
18945
- description: description$1,
18946
- main: main$1,
18947
- files,
18948
- scripts: scripts$1,
18949
- repository: repository$1,
18950
- keywords: keywords$1,
18951
- author,
18952
- license: license$1,
18953
- bugs,
18954
- homepage,
18955
- devDependencies: devDependencies$1,
18956
- dependencies
18890
+ version: version$2
18957
18891
  };
18958
18892
  var utils$l = {};
18959
18893
  var utils$k = {};
@@ -19096,9 +19030,9 @@ var utils$k = {};
19096
19030
  return jsf;
19097
19031
  }
19098
19032
  utils2.getJSF = getJSF2;
19099
- function cachedProperty2(obj, name2, computer) {
19100
- var key2 = "_" + name2;
19101
- obj.prototype[name2] = function cachedProperty3() {
19033
+ function cachedProperty2(obj, name, computer) {
19034
+ var key2 = "_" + name;
19035
+ obj.prototype[name] = function cachedProperty3() {
19102
19036
  return this[key2] !== void 0 ? this[key2] : this[key2] = computer.call(this);
19103
19037
  };
19104
19038
  }
@@ -22898,13 +22832,13 @@ function requireSecp256k1() {
22898
22832
  assert2(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O");
22899
22833
  }
22900
22834
  curves2.PresetCurve = PresetCurve;
22901
- function defineCurve(name2, options2) {
22902
- Object.defineProperty(curves2, name2, {
22835
+ function defineCurve(name, options2) {
22836
+ Object.defineProperty(curves2, name, {
22903
22837
  configurable: true,
22904
22838
  enumerable: true,
22905
22839
  get: function() {
22906
22840
  var curve2 = new PresetCurve(options2);
22907
- Object.defineProperty(curves2, name2, {
22841
+ Object.defineProperty(curves2, name, {
22908
22842
  configurable: true,
22909
22843
  enumerable: true,
22910
22844
  value: curve2
@@ -23728,7 +23662,7 @@ EDDSA.prototype.encodePoint = function encodePoint(point5) {
23728
23662
  EDDSA.prototype.decodePoint = function decodePoint3(bytes) {
23729
23663
  bytes = utils.parseBytes(bytes);
23730
23664
  var lastIx = bytes.length - 1;
23731
- var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~128);
23665
+ var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & -129);
23732
23666
  var xIsOdd = (bytes[lastIx] & 128) !== 0;
23733
23667
  var y = utils.intFromLE(normed);
23734
23668
  return this.curve.pointFromY(y, xIsOdd);
@@ -23791,8 +23725,8 @@ function requireVmBrowserify() {
23791
23725
  var defineProp = function() {
23792
23726
  try {
23793
23727
  Object.defineProperty({}, "_", {});
23794
- return function(obj, name2, value) {
23795
- Object.defineProperty(obj, name2, {
23728
+ return function(obj, name, value) {
23729
+ Object.defineProperty(obj, name, {
23796
23730
  writable: true,
23797
23731
  enumerable: false,
23798
23732
  configurable: true,
@@ -23800,8 +23734,8 @@ function requireVmBrowserify() {
23800
23734
  });
23801
23735
  };
23802
23736
  } catch (e) {
23803
- return function(obj, name2, value) {
23804
- obj[name2] = value;
23737
+ return function(obj, name, value) {
23738
+ obj[name] = value;
23805
23739
  };
23806
23740
  }
23807
23741
  }();
@@ -23895,10 +23829,10 @@ function requireVmBrowserify() {
23895
23829
  }
23896
23830
  return res;
23897
23831
  };
23898
- forEach(Object_keys(Script.prototype), function(name2) {
23899
- exports[name2] = Script[name2] = function(code) {
23832
+ forEach(Object_keys(Script.prototype), function(name) {
23833
+ exports[name] = Script[name] = function(code) {
23900
23834
  var s2 = Script(code);
23901
- return s2[name2].apply(s2, [].slice.call(arguments, 1));
23835
+ return s2[name].apply(s2, [].slice.call(arguments, 1));
23902
23836
  };
23903
23837
  });
23904
23838
  exports.isContext = function(context) {
@@ -23927,11 +23861,11 @@ function requireApi() {
23927
23861
  var asn12 = requireAsn1();
23928
23862
  var inherits2 = inherits_browserExports;
23929
23863
  var api2 = exports2;
23930
- api2.define = function define2(name2, body) {
23931
- return new Entity(name2, body);
23864
+ api2.define = function define2(name, body) {
23865
+ return new Entity(name, body);
23932
23866
  };
23933
- function Entity(name2, body) {
23934
- this.name = name2;
23867
+ function Entity(name, body) {
23868
+ this.name = name;
23935
23869
  this.body = body;
23936
23870
  this.decoders = {};
23937
23871
  this.encoders = {};
@@ -25591,7 +25525,7 @@ var findProc = /Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:2
25591
25525
  var startRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m;
25592
25526
  var fullRegex = /^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m;
25593
25527
  var evp = evp_bytestokey;
25594
- var ciphers$1 = browser$6;
25528
+ var ciphers$1 = browser$5;
25595
25529
  var Buffer$6 = safeBufferExports$1.Buffer;
25596
25530
  var fixProc$1 = function(okey, password) {
25597
25531
  var key2 = okey.toString();
@@ -25620,8 +25554,8 @@ var fixProc$1 = function(okey, password) {
25620
25554
  var asn1 = asn1$3;
25621
25555
  var aesid = require$$1;
25622
25556
  var fixProc = fixProc$1;
25623
- var ciphers = browser$6;
25624
- var compat = browser$8;
25557
+ var ciphers = browser$5;
25558
+ var compat = browser$7;
25625
25559
  var Buffer$5 = safeBufferExports$1.Buffer;
25626
25560
  function decrypt$1(data, password) {
25627
25561
  var salt = data.algorithm.decrypt.kde.kdeparams.salt;
@@ -25733,7 +25667,7 @@ function requireSign() {
25733
25667
  if (hasRequiredSign) return sign.exports;
25734
25668
  hasRequiredSign = 1;
25735
25669
  var Buffer2 = safeBufferExports$1.Buffer;
25736
- var createHmac2 = browser$9;
25670
+ var createHmac2 = browser$8;
25737
25671
  var crt2 = browserifyRsa;
25738
25672
  var EC = requireElliptic().ec;
25739
25673
  var BN2 = bnExports;
@@ -25971,13 +25905,13 @@ function requireVerify() {
25971
25905
  verify_1 = verify4;
25972
25906
  return verify_1;
25973
25907
  }
25974
- var browser$4;
25908
+ var browser$3;
25975
25909
  var hasRequiredBrowser$1;
25976
25910
  function requireBrowser$1() {
25977
- if (hasRequiredBrowser$1) return browser$4;
25911
+ if (hasRequiredBrowser$1) return browser$3;
25978
25912
  hasRequiredBrowser$1 = 1;
25979
25913
  var Buffer2 = safeBufferExports$1.Buffer;
25980
- var createHash3 = browser$a;
25914
+ var createHash3 = browser$9;
25981
25915
  var stream = readableBrowserExports;
25982
25916
  var inherits2 = inherits_browserExports;
25983
25917
  var sign5 = requireSign();
@@ -26044,22 +25978,22 @@ function requireBrowser$1() {
26044
25978
  function createVerify(algorithm) {
26045
25979
  return new Verify(algorithm);
26046
25980
  }
26047
- browser$4 = {
25981
+ browser$3 = {
26048
25982
  Sign: createSign,
26049
25983
  Verify: createVerify,
26050
25984
  createSign,
26051
25985
  createVerify
26052
25986
  };
26053
- return browser$4;
25987
+ return browser$3;
26054
25988
  }
26055
- var browser$3;
25989
+ var browser$2;
26056
25990
  var hasRequiredBrowser;
26057
25991
  function requireBrowser() {
26058
- if (hasRequiredBrowser) return browser$3;
25992
+ if (hasRequiredBrowser) return browser$2;
26059
25993
  hasRequiredBrowser = 1;
26060
25994
  var elliptic2 = requireElliptic();
26061
25995
  var BN2 = bnExports$1;
26062
- browser$3 = function createECDH(curve2) {
25996
+ browser$2 = function createECDH(curve2) {
26063
25997
  return new ECDH(curve2);
26064
25998
  };
26065
25999
  var aliases = {
@@ -26169,10 +26103,10 @@ function requireBrowser() {
26169
26103
  return buf.toString(enc);
26170
26104
  }
26171
26105
  }
26172
- return browser$3;
26106
+ return browser$2;
26173
26107
  }
26174
- var browser$2 = {};
26175
- var createHash$2 = browser$a;
26108
+ var browser$1 = {};
26109
+ var createHash$2 = browser$9;
26176
26110
  var Buffer$4 = safeBufferExports$1.Buffer;
26177
26111
  var mgf$2 = function(seed, len) {
26178
26112
  var t = Buffer$4.alloc(0);
@@ -26205,7 +26139,7 @@ function withPublic$2(paddedMsg, key2) {
26205
26139
  var withPublic_1 = withPublic$2;
26206
26140
  var parseKeys$1 = parseAsn1;
26207
26141
  var randomBytes = browserExports;
26208
- var createHash$1 = browser$a;
26142
+ var createHash$1 = browser$9;
26209
26143
  var mgf$1 = mgf$2;
26210
26144
  var xor$1 = xor$2;
26211
26145
  var BN$1 = bnExports$1;
@@ -26294,7 +26228,7 @@ var mgf = mgf$2;
26294
26228
  var xor = xor$2;
26295
26229
  var BN = bnExports$1;
26296
26230
  var crt = browserifyRsa;
26297
- var createHash = browser$a;
26231
+ var createHash = browser$9;
26298
26232
  var withPublic = withPublic_1;
26299
26233
  var Buffer$1 = safeBufferExports$1.Buffer;
26300
26234
  var privateDecrypt = function privateDecrypt2(privateKey, enc, reverse) {
@@ -26398,8 +26332,8 @@ function compare(a, b) {
26398
26332
  exports2.publicDecrypt = function publicDecrypt(key2, buf) {
26399
26333
  return exports2.privateDecrypt(key2, buf, true);
26400
26334
  };
26401
- })(browser$2);
26402
- var browser$1 = {};
26335
+ })(browser$1);
26336
+ var browser = {};
26403
26337
  function oldBrowser() {
26404
26338
  throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11");
26405
26339
  }
@@ -26432,11 +26366,11 @@ function assertSize(size, offset, length) {
26432
26366
  }
26433
26367
  }
26434
26368
  if (crypto$1 && crypto$1.getRandomValues || !globals.process$1.browser) {
26435
- browser$1.randomFill = randomFill;
26436
- browser$1.randomFillSync = randomFillSync;
26369
+ browser.randomFill = randomFill;
26370
+ browser.randomFillSync = randomFillSync;
26437
26371
  } else {
26438
- browser$1.randomFill = oldBrowser;
26439
- browser$1.randomFillSync = oldBrowser;
26372
+ browser.randomFill = oldBrowser;
26373
+ browser.randomFillSync = oldBrowser;
26440
26374
  }
26441
26375
  function randomFill(buf, offset, size, cb) {
26442
26376
  if (!Buffer.isBuffer(buf) && !(buf instanceof commonjsGlobal.Uint8Array)) {
@@ -26500,8 +26434,8 @@ function requireCryptoBrowserify() {
26500
26434
  if (hasRequiredCryptoBrowserify) return cryptoBrowserify;
26501
26435
  hasRequiredCryptoBrowserify = 1;
26502
26436
  cryptoBrowserify.randomBytes = cryptoBrowserify.rng = cryptoBrowserify.pseudoRandomBytes = cryptoBrowserify.prng = browserExports;
26503
- cryptoBrowserify.createHash = cryptoBrowserify.Hash = browser$a;
26504
- cryptoBrowserify.createHmac = cryptoBrowserify.Hmac = browser$9;
26437
+ cryptoBrowserify.createHash = cryptoBrowserify.Hash = browser$9;
26438
+ cryptoBrowserify.createHmac = cryptoBrowserify.Hmac = browser$8;
26505
26439
  var algos$1 = algos;
26506
26440
  var algoKeys = Object.keys(algos$1);
26507
26441
  var hashes = [
@@ -26516,10 +26450,10 @@ function requireCryptoBrowserify() {
26516
26450
  cryptoBrowserify.getHashes = function() {
26517
26451
  return hashes;
26518
26452
  };
26519
- var p = browser$8;
26453
+ var p = browser$7;
26520
26454
  cryptoBrowserify.pbkdf2 = p.pbkdf2;
26521
26455
  cryptoBrowserify.pbkdf2Sync = p.pbkdf2Sync;
26522
- var aes2 = browser$7;
26456
+ var aes2 = browser$6;
26523
26457
  cryptoBrowserify.Cipher = aes2.Cipher;
26524
26458
  cryptoBrowserify.createCipher = aes2.createCipher;
26525
26459
  cryptoBrowserify.Cipheriv = aes2.Cipheriv;
@@ -26542,12 +26476,12 @@ function requireCryptoBrowserify() {
26542
26476
  cryptoBrowserify.createVerify = sign5.createVerify;
26543
26477
  cryptoBrowserify.Verify = sign5.Verify;
26544
26478
  cryptoBrowserify.createECDH = requireBrowser();
26545
- var publicEncrypt3 = browser$2;
26479
+ var publicEncrypt3 = browser$1;
26546
26480
  cryptoBrowserify.publicEncrypt = publicEncrypt3.publicEncrypt;
26547
26481
  cryptoBrowserify.privateEncrypt = publicEncrypt3.privateEncrypt;
26548
26482
  cryptoBrowserify.publicDecrypt = publicEncrypt3.publicDecrypt;
26549
26483
  cryptoBrowserify.privateDecrypt = publicEncrypt3.privateDecrypt;
26550
- var rf = browser$1;
26484
+ var rf = browser;
26551
26485
  cryptoBrowserify.randomFill = rf.randomFill;
26552
26486
  cryptoBrowserify.randomFillSync = rf.randomFillSync;
26553
26487
  cryptoBrowserify.createCredentials = function() {
@@ -26572,89 +26506,13 @@ function requireCryptoBrowserify() {
26572
26506
  };
26573
26507
  return cryptoBrowserify;
26574
26508
  }
26575
- const name = "dotenv";
26576
26509
  const version$1 = "16.4.5";
26577
- const description = "Loads environment variables from .env file";
26578
- const main = "lib/main.js";
26579
- const types = "lib/main.d.ts";
26580
- const exports$1 = {
26581
- ".": {
26582
- types: "./lib/main.d.ts",
26583
- require: "./lib/main.js",
26584
- "default": "./lib/main.js"
26585
- },
26586
- "./config": "./config.js",
26587
- "./config.js": "./config.js",
26588
- "./lib/env-options": "./lib/env-options.js",
26589
- "./lib/env-options.js": "./lib/env-options.js",
26590
- "./lib/cli-options": "./lib/cli-options.js",
26591
- "./lib/cli-options.js": "./lib/cli-options.js",
26592
- "./package.json": "./package.json"
26593
- };
26594
- const scripts = {
26595
- "dts-check": "tsc --project tests/types/tsconfig.json",
26596
- lint: "standard",
26597
- "lint-readme": "standard-markdown",
26598
- pretest: "npm run lint && npm run dts-check",
26599
- test: "tap tests/*.js --100 -Rspec",
26600
- "test:coverage": "tap --coverage-report=lcov",
26601
- prerelease: "npm test",
26602
- release: "standard-version"
26603
- };
26604
- const repository = {
26605
- type: "git",
26606
- url: "git://github.com/motdotla/dotenv.git"
26607
- };
26608
- const funding = "https://dotenvx.com";
26609
- const keywords = [
26610
- "dotenv",
26611
- "env",
26612
- ".env",
26613
- "environment",
26614
- "variables",
26615
- "config",
26616
- "settings"
26617
- ];
26618
- const readmeFilename = "README.md";
26619
- const license = "BSD-2-Clause";
26620
- const devDependencies = {
26621
- "@definitelytyped/dtslint": "^0.0.133",
26622
- "@types/node": "^18.11.3",
26623
- decache: "^4.6.1",
26624
- sinon: "^14.0.1",
26625
- standard: "^17.0.0",
26626
- "standard-markdown": "^7.1.0",
26627
- "standard-version": "^9.5.0",
26628
- tap: "^16.3.0",
26629
- tar: "^6.1.11",
26630
- typescript: "^4.8.4"
26631
- };
26632
- const engines = {
26633
- node: ">=12"
26634
- };
26635
- const browser = {
26636
- fs: false
26637
- };
26638
26510
  const require$$4 = {
26639
- name,
26640
- version: version$1,
26641
- description,
26642
- main,
26643
- types,
26644
- exports: exports$1,
26645
- scripts,
26646
- repository,
26647
- funding,
26648
- keywords,
26649
- readmeFilename,
26650
- license,
26651
- devDependencies,
26652
- engines,
26653
- browser
26511
+ version: version$1
26654
26512
  };
26655
26513
  const fs = empty_1;
26656
26514
  const path = pathBrowserify;
26657
- const os = browser$d;
26515
+ const os = browser$c;
26658
26516
  const crypto = requireCryptoBrowserify();
26659
26517
  const packageJson = require$$4;
26660
26518
  const version = packageJson.version;
@@ -26905,15 +26763,15 @@ const DotenvModule = {
26905
26763
  parse: parse$1,
26906
26764
  populate
26907
26765
  };
26908
- main$2.exports.configDotenv = DotenvModule.configDotenv;
26909
- main$2.exports._configVault = DotenvModule._configVault;
26910
- main$2.exports._parseVault = DotenvModule._parseVault;
26911
- main$2.exports.config = DotenvModule.config;
26912
- main$2.exports.decrypt = DotenvModule.decrypt;
26913
- main$2.exports.parse = DotenvModule.parse;
26914
- main$2.exports.populate = DotenvModule.populate;
26915
- main$2.exports = DotenvModule;
26916
- var mainExports = main$2.exports;
26766
+ main.exports.configDotenv = DotenvModule.configDotenv;
26767
+ main.exports._configVault = DotenvModule._configVault;
26768
+ main.exports._parseVault = DotenvModule._parseVault;
26769
+ main.exports.config = DotenvModule.config;
26770
+ main.exports.decrypt = DotenvModule.decrypt;
26771
+ main.exports.parse = DotenvModule.parse;
26772
+ main.exports.populate = DotenvModule.populate;
26773
+ main.exports = DotenvModule;
26774
+ var mainExports = main.exports;
26917
26775
  const options = {};
26918
26776
  if (globals.process$1.env.DOTENV_CONFIG_ENCODING != null) {
26919
26777
  options.encoding = globals.process$1.env.DOTENV_CONFIG_ENCODING;
@@ -31991,6 +31849,13 @@ const createWriter = ({
31991
31849
  args: paramsToArray({ params: options2.args, abiFunction: fn }),
31992
31850
  account: walletClient.account
31993
31851
  });
31852
+ const getTransactionData = (params) => {
31853
+ return viem.encodeFunctionData({
31854
+ abi,
31855
+ functionName: fn.name,
31856
+ args: paramsToArray({ params, abiFunction: fn })
31857
+ });
31858
+ };
31994
31859
  const func = async (options2) => {
31995
31860
  const { request } = await simulate(options2);
31996
31861
  const hash3 = await walletClient.writeContract(request);
@@ -32027,6 +31892,7 @@ const createWriter = ({
32027
31892
  };
32028
31893
  };
32029
31894
  func.simulate = simulate;
31895
+ func.getTransactionData = getTransactionData;
32030
31896
  return [fn.name, func];
32031
31897
  })
32032
31898
  );
@@ -32107,9 +31973,9 @@ const HeadersInitToPlainObject = (headers) => {
32107
31973
  if (headers instanceof Headers) {
32108
31974
  oHeaders = HeadersInstanceToPlainObject(headers);
32109
31975
  } else if (Array.isArray(headers)) {
32110
- headers.forEach(([name2, value]) => {
32111
- if (name2 && value !== void 0) {
32112
- oHeaders[name2] = value;
31976
+ headers.forEach(([name, value]) => {
31977
+ if (name && value !== void 0) {
31978
+ oHeaders[name] = value;
32113
31979
  }
32114
31980
  });
32115
31981
  } else if (headers) {
@@ -32392,8 +32258,8 @@ class GraphQLError extends Error {
32392
32258
  function undefinedIfEmpty(array) {
32393
32259
  return array === void 0 || array.length === 0 ? void 0 : array;
32394
32260
  }
32395
- function syntaxError(source, position, description2) {
32396
- return new GraphQLError(`Syntax Error: ${description2}`, {
32261
+ function syntaxError(source, position, description) {
32262
+ return new GraphQLError(`Syntax Error: ${description}`, {
32397
32263
  source,
32398
32264
  positions: [position]
32399
32265
  });
@@ -33302,9 +33168,9 @@ function formatArray(array, seenValues) {
33302
33168
  function getObjectTag(object) {
33303
33169
  const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
33304
33170
  if (tag === "Object" && typeof object.constructor === "function") {
33305
- const name2 = object.constructor.name;
33306
- if (typeof name2 === "string" && name2 !== "") {
33307
- return name2;
33171
+ const name = object.constructor.name;
33172
+ if (typeof name === "string" && name !== "") {
33173
+ return name;
33308
33174
  }
33309
33175
  }
33310
33176
  return tag;
@@ -33347,13 +33213,13 @@ spurious results.`);
33347
33213
  }
33348
33214
  );
33349
33215
  class Source {
33350
- constructor(body, name2 = "GraphQL request", locationOffset = {
33216
+ constructor(body, name = "GraphQL request", locationOffset = {
33351
33217
  line: 1,
33352
33218
  column: 1
33353
33219
  }) {
33354
33220
  typeof body === "string" || devAssert(false, `Body must be a string. Received: ${inspect(body)}.`);
33355
33221
  this.body = body;
33356
- this.name = name2;
33222
+ this.name = name;
33357
33223
  this.locationOffset = locationOffset;
33358
33224
  this.locationOffset.line > 0 || devAssert(
33359
33225
  false,
@@ -33493,14 +33359,14 @@ class Parser {
33493
33359
  });
33494
33360
  }
33495
33361
  const operation = this.parseOperationType();
33496
- let name2;
33362
+ let name;
33497
33363
  if (this.peek(TokenKind.NAME)) {
33498
- name2 = this.parseName();
33364
+ name = this.parseName();
33499
33365
  }
33500
33366
  return this.node(start, {
33501
33367
  kind: Kind.OPERATION_DEFINITION,
33502
33368
  operation,
33503
- name: name2,
33369
+ name,
33504
33370
  variableDefinitions: this.parseVariableDefinitions(),
33505
33371
  directives: this.parseDirectives(false),
33506
33372
  selectionSet: this.parseSelectionSet()
@@ -33587,17 +33453,17 @@ class Parser {
33587
33453
  const start = this._lexer.token;
33588
33454
  const nameOrAlias = this.parseName();
33589
33455
  let alias;
33590
- let name2;
33456
+ let name;
33591
33457
  if (this.expectOptionalToken(TokenKind.COLON)) {
33592
33458
  alias = nameOrAlias;
33593
- name2 = this.parseName();
33459
+ name = this.parseName();
33594
33460
  } else {
33595
- name2 = nameOrAlias;
33461
+ name = nameOrAlias;
33596
33462
  }
33597
33463
  return this.node(start, {
33598
33464
  kind: Kind.FIELD,
33599
33465
  alias,
33600
- name: name2,
33466
+ name,
33601
33467
  arguments: this.parseArguments(false),
33602
33468
  directives: this.parseDirectives(false),
33603
33469
  selectionSet: this.peek(TokenKind.BRACE_L) ? this.parseSelectionSet() : void 0
@@ -33615,11 +33481,11 @@ class Parser {
33615
33481
  */
33616
33482
  parseArgument(isConst = false) {
33617
33483
  const start = this._lexer.token;
33618
- const name2 = this.parseName();
33484
+ const name = this.parseName();
33619
33485
  this.expectToken(TokenKind.COLON);
33620
33486
  return this.node(start, {
33621
33487
  kind: Kind.ARGUMENT,
33622
- name: name2,
33488
+ name,
33623
33489
  value: this.parseValueLiteral(isConst)
33624
33490
  });
33625
33491
  }
@@ -33814,11 +33680,11 @@ class Parser {
33814
33680
  */
33815
33681
  parseObjectField(isConst) {
33816
33682
  const start = this._lexer.token;
33817
- const name2 = this.parseName();
33683
+ const name = this.parseName();
33818
33684
  this.expectToken(TokenKind.COLON);
33819
33685
  return this.node(start, {
33820
33686
  kind: Kind.OBJECT_FIELD,
33821
- name: name2,
33687
+ name,
33822
33688
  value: this.parseValueLiteral(isConst)
33823
33689
  });
33824
33690
  }
@@ -33906,7 +33772,7 @@ class Parser {
33906
33772
  */
33907
33773
  parseSchemaDefinition() {
33908
33774
  const start = this._lexer.token;
33909
- const description2 = this.parseDescription();
33775
+ const description = this.parseDescription();
33910
33776
  this.expectKeyword("schema");
33911
33777
  const directives = this.parseConstDirectives();
33912
33778
  const operationTypes = this.many(
@@ -33916,7 +33782,7 @@ class Parser {
33916
33782
  );
33917
33783
  return this.node(start, {
33918
33784
  kind: Kind.SCHEMA_DEFINITION,
33919
- description: description2,
33785
+ description,
33920
33786
  directives,
33921
33787
  operationTypes
33922
33788
  });
@@ -33940,14 +33806,14 @@ class Parser {
33940
33806
  */
33941
33807
  parseScalarTypeDefinition() {
33942
33808
  const start = this._lexer.token;
33943
- const description2 = this.parseDescription();
33809
+ const description = this.parseDescription();
33944
33810
  this.expectKeyword("scalar");
33945
- const name2 = this.parseName();
33811
+ const name = this.parseName();
33946
33812
  const directives = this.parseConstDirectives();
33947
33813
  return this.node(start, {
33948
33814
  kind: Kind.SCALAR_TYPE_DEFINITION,
33949
- description: description2,
33950
- name: name2,
33815
+ description,
33816
+ name,
33951
33817
  directives
33952
33818
  });
33953
33819
  }
@@ -33958,16 +33824,16 @@ class Parser {
33958
33824
  */
33959
33825
  parseObjectTypeDefinition() {
33960
33826
  const start = this._lexer.token;
33961
- const description2 = this.parseDescription();
33827
+ const description = this.parseDescription();
33962
33828
  this.expectKeyword("type");
33963
- const name2 = this.parseName();
33829
+ const name = this.parseName();
33964
33830
  const interfaces = this.parseImplementsInterfaces();
33965
33831
  const directives = this.parseConstDirectives();
33966
33832
  const fields = this.parseFieldsDefinition();
33967
33833
  return this.node(start, {
33968
33834
  kind: Kind.OBJECT_TYPE_DEFINITION,
33969
- description: description2,
33970
- name: name2,
33835
+ description,
33836
+ name,
33971
33837
  interfaces,
33972
33838
  directives,
33973
33839
  fields
@@ -33999,16 +33865,16 @@ class Parser {
33999
33865
  */
34000
33866
  parseFieldDefinition() {
34001
33867
  const start = this._lexer.token;
34002
- const description2 = this.parseDescription();
34003
- const name2 = this.parseName();
33868
+ const description = this.parseDescription();
33869
+ const name = this.parseName();
34004
33870
  const args = this.parseArgumentDefs();
34005
33871
  this.expectToken(TokenKind.COLON);
34006
33872
  const type2 = this.parseTypeReference();
34007
33873
  const directives = this.parseConstDirectives();
34008
33874
  return this.node(start, {
34009
33875
  kind: Kind.FIELD_DEFINITION,
34010
- description: description2,
34011
- name: name2,
33876
+ description,
33877
+ name,
34012
33878
  arguments: args,
34013
33879
  type: type2,
34014
33880
  directives
@@ -34030,8 +33896,8 @@ class Parser {
34030
33896
  */
34031
33897
  parseInputValueDef() {
34032
33898
  const start = this._lexer.token;
34033
- const description2 = this.parseDescription();
34034
- const name2 = this.parseName();
33899
+ const description = this.parseDescription();
33900
+ const name = this.parseName();
34035
33901
  this.expectToken(TokenKind.COLON);
34036
33902
  const type2 = this.parseTypeReference();
34037
33903
  let defaultValue;
@@ -34041,8 +33907,8 @@ class Parser {
34041
33907
  const directives = this.parseConstDirectives();
34042
33908
  return this.node(start, {
34043
33909
  kind: Kind.INPUT_VALUE_DEFINITION,
34044
- description: description2,
34045
- name: name2,
33910
+ description,
33911
+ name,
34046
33912
  type: type2,
34047
33913
  defaultValue,
34048
33914
  directives
@@ -34054,16 +33920,16 @@ class Parser {
34054
33920
  */
34055
33921
  parseInterfaceTypeDefinition() {
34056
33922
  const start = this._lexer.token;
34057
- const description2 = this.parseDescription();
33923
+ const description = this.parseDescription();
34058
33924
  this.expectKeyword("interface");
34059
- const name2 = this.parseName();
33925
+ const name = this.parseName();
34060
33926
  const interfaces = this.parseImplementsInterfaces();
34061
33927
  const directives = this.parseConstDirectives();
34062
33928
  const fields = this.parseFieldsDefinition();
34063
33929
  return this.node(start, {
34064
33930
  kind: Kind.INTERFACE_TYPE_DEFINITION,
34065
- description: description2,
34066
- name: name2,
33931
+ description,
33932
+ name,
34067
33933
  interfaces,
34068
33934
  directives,
34069
33935
  fields
@@ -34075,15 +33941,15 @@ class Parser {
34075
33941
  */
34076
33942
  parseUnionTypeDefinition() {
34077
33943
  const start = this._lexer.token;
34078
- const description2 = this.parseDescription();
33944
+ const description = this.parseDescription();
34079
33945
  this.expectKeyword("union");
34080
- const name2 = this.parseName();
33946
+ const name = this.parseName();
34081
33947
  const directives = this.parseConstDirectives();
34082
33948
  const types2 = this.parseUnionMemberTypes();
34083
33949
  return this.node(start, {
34084
33950
  kind: Kind.UNION_TYPE_DEFINITION,
34085
- description: description2,
34086
- name: name2,
33951
+ description,
33952
+ name,
34087
33953
  directives,
34088
33954
  types: types2
34089
33955
  });
@@ -34102,15 +33968,15 @@ class Parser {
34102
33968
  */
34103
33969
  parseEnumTypeDefinition() {
34104
33970
  const start = this._lexer.token;
34105
- const description2 = this.parseDescription();
33971
+ const description = this.parseDescription();
34106
33972
  this.expectKeyword("enum");
34107
- const name2 = this.parseName();
33973
+ const name = this.parseName();
34108
33974
  const directives = this.parseConstDirectives();
34109
33975
  const values = this.parseEnumValuesDefinition();
34110
33976
  return this.node(start, {
34111
33977
  kind: Kind.ENUM_TYPE_DEFINITION,
34112
- description: description2,
34113
- name: name2,
33978
+ description,
33979
+ name,
34114
33980
  directives,
34115
33981
  values
34116
33982
  });
@@ -34132,13 +33998,13 @@ class Parser {
34132
33998
  */
34133
33999
  parseEnumValueDefinition() {
34134
34000
  const start = this._lexer.token;
34135
- const description2 = this.parseDescription();
34136
- const name2 = this.parseEnumValueName();
34001
+ const description = this.parseDescription();
34002
+ const name = this.parseEnumValueName();
34137
34003
  const directives = this.parseConstDirectives();
34138
34004
  return this.node(start, {
34139
34005
  kind: Kind.ENUM_VALUE_DEFINITION,
34140
- description: description2,
34141
- name: name2,
34006
+ description,
34007
+ name,
34142
34008
  directives
34143
34009
  });
34144
34010
  }
@@ -34163,15 +34029,15 @@ class Parser {
34163
34029
  */
34164
34030
  parseInputObjectTypeDefinition() {
34165
34031
  const start = this._lexer.token;
34166
- const description2 = this.parseDescription();
34032
+ const description = this.parseDescription();
34167
34033
  this.expectKeyword("input");
34168
- const name2 = this.parseName();
34034
+ const name = this.parseName();
34169
34035
  const directives = this.parseConstDirectives();
34170
34036
  const fields = this.parseInputFieldsDefinition();
34171
34037
  return this.node(start, {
34172
34038
  kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,
34173
- description: description2,
34174
- name: name2,
34039
+ description,
34040
+ name,
34175
34041
  directives,
34176
34042
  fields
34177
34043
  });
@@ -34257,14 +34123,14 @@ class Parser {
34257
34123
  const start = this._lexer.token;
34258
34124
  this.expectKeyword("extend");
34259
34125
  this.expectKeyword("scalar");
34260
- const name2 = this.parseName();
34126
+ const name = this.parseName();
34261
34127
  const directives = this.parseConstDirectives();
34262
34128
  if (directives.length === 0) {
34263
34129
  throw this.unexpected();
34264
34130
  }
34265
34131
  return this.node(start, {
34266
34132
  kind: Kind.SCALAR_TYPE_EXTENSION,
34267
- name: name2,
34133
+ name,
34268
34134
  directives
34269
34135
  });
34270
34136
  }
@@ -34278,7 +34144,7 @@ class Parser {
34278
34144
  const start = this._lexer.token;
34279
34145
  this.expectKeyword("extend");
34280
34146
  this.expectKeyword("type");
34281
- const name2 = this.parseName();
34147
+ const name = this.parseName();
34282
34148
  const interfaces = this.parseImplementsInterfaces();
34283
34149
  const directives = this.parseConstDirectives();
34284
34150
  const fields = this.parseFieldsDefinition();
@@ -34287,7 +34153,7 @@ class Parser {
34287
34153
  }
34288
34154
  return this.node(start, {
34289
34155
  kind: Kind.OBJECT_TYPE_EXTENSION,
34290
- name: name2,
34156
+ name,
34291
34157
  interfaces,
34292
34158
  directives,
34293
34159
  fields
@@ -34303,7 +34169,7 @@ class Parser {
34303
34169
  const start = this._lexer.token;
34304
34170
  this.expectKeyword("extend");
34305
34171
  this.expectKeyword("interface");
34306
- const name2 = this.parseName();
34172
+ const name = this.parseName();
34307
34173
  const interfaces = this.parseImplementsInterfaces();
34308
34174
  const directives = this.parseConstDirectives();
34309
34175
  const fields = this.parseFieldsDefinition();
@@ -34312,7 +34178,7 @@ class Parser {
34312
34178
  }
34313
34179
  return this.node(start, {
34314
34180
  kind: Kind.INTERFACE_TYPE_EXTENSION,
34315
- name: name2,
34181
+ name,
34316
34182
  interfaces,
34317
34183
  directives,
34318
34184
  fields
@@ -34327,7 +34193,7 @@ class Parser {
34327
34193
  const start = this._lexer.token;
34328
34194
  this.expectKeyword("extend");
34329
34195
  this.expectKeyword("union");
34330
- const name2 = this.parseName();
34196
+ const name = this.parseName();
34331
34197
  const directives = this.parseConstDirectives();
34332
34198
  const types2 = this.parseUnionMemberTypes();
34333
34199
  if (directives.length === 0 && types2.length === 0) {
@@ -34335,7 +34201,7 @@ class Parser {
34335
34201
  }
34336
34202
  return this.node(start, {
34337
34203
  kind: Kind.UNION_TYPE_EXTENSION,
34338
- name: name2,
34204
+ name,
34339
34205
  directives,
34340
34206
  types: types2
34341
34207
  });
@@ -34349,7 +34215,7 @@ class Parser {
34349
34215
  const start = this._lexer.token;
34350
34216
  this.expectKeyword("extend");
34351
34217
  this.expectKeyword("enum");
34352
- const name2 = this.parseName();
34218
+ const name = this.parseName();
34353
34219
  const directives = this.parseConstDirectives();
34354
34220
  const values = this.parseEnumValuesDefinition();
34355
34221
  if (directives.length === 0 && values.length === 0) {
@@ -34357,7 +34223,7 @@ class Parser {
34357
34223
  }
34358
34224
  return this.node(start, {
34359
34225
  kind: Kind.ENUM_TYPE_EXTENSION,
34360
- name: name2,
34226
+ name,
34361
34227
  directives,
34362
34228
  values
34363
34229
  });
@@ -34371,7 +34237,7 @@ class Parser {
34371
34237
  const start = this._lexer.token;
34372
34238
  this.expectKeyword("extend");
34373
34239
  this.expectKeyword("input");
34374
- const name2 = this.parseName();
34240
+ const name = this.parseName();
34375
34241
  const directives = this.parseConstDirectives();
34376
34242
  const fields = this.parseInputFieldsDefinition();
34377
34243
  if (directives.length === 0 && fields.length === 0) {
@@ -34379,7 +34245,7 @@ class Parser {
34379
34245
  }
34380
34246
  return this.node(start, {
34381
34247
  kind: Kind.INPUT_OBJECT_TYPE_EXTENSION,
34382
- name: name2,
34248
+ name,
34383
34249
  directives,
34384
34250
  fields
34385
34251
  });
@@ -34392,18 +34258,18 @@ class Parser {
34392
34258
  */
34393
34259
  parseDirectiveDefinition() {
34394
34260
  const start = this._lexer.token;
34395
- const description2 = this.parseDescription();
34261
+ const description = this.parseDescription();
34396
34262
  this.expectKeyword("directive");
34397
34263
  this.expectToken(TokenKind.AT);
34398
- const name2 = this.parseName();
34264
+ const name = this.parseName();
34399
34265
  const args = this.parseArgumentDefs();
34400
34266
  const repeatable = this.expectOptionalKeyword("repeatable");
34401
34267
  this.expectKeyword("on");
34402
34268
  const locations = this.parseDirectiveLocations();
34403
34269
  return this.node(start, {
34404
34270
  kind: Kind.DIRECTIVE_DEFINITION,
34405
- description: description2,
34406
- name: name2,
34271
+ description,
34272
+ name,
34407
34273
  arguments: args,
34408
34274
  repeatable,
34409
34275
  locations
@@ -34446,9 +34312,9 @@ class Parser {
34446
34312
  */
34447
34313
  parseDirectiveLocation() {
34448
34314
  const start = this._lexer.token;
34449
- const name2 = this.parseName();
34450
- if (Object.prototype.hasOwnProperty.call(DirectiveLocation, name2.value)) {
34451
- return name2;
34315
+ const name = this.parseName();
34316
+ if (Object.prototype.hasOwnProperty.call(DirectiveLocation, name.value)) {
34317
+ return name;
34452
34318
  }
34453
34319
  throw this.unexpected(start);
34454
34320
  }
@@ -34958,8 +34824,8 @@ const printDocASTReducer = {
34958
34824
  leave: ({ selections }) => block(selections)
34959
34825
  },
34960
34826
  Field: {
34961
- leave({ alias, name: name2, arguments: args, directives, selectionSet }) {
34962
- const prefix = wrap("", alias, ": ") + name2;
34827
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
34828
+ const prefix = wrap("", alias, ": ") + name;
34963
34829
  let argsLine = prefix + wrap("(", join(args, ", "), ")");
34964
34830
  if (argsLine.length > MAX_LINE_LENGTH) {
34965
34831
  argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
@@ -34968,11 +34834,11 @@ const printDocASTReducer = {
34968
34834
  }
34969
34835
  },
34970
34836
  Argument: {
34971
- leave: ({ name: name2, value }) => name2 + ": " + value
34837
+ leave: ({ name, value }) => name + ": " + value
34972
34838
  },
34973
34839
  // Fragments
34974
34840
  FragmentSpread: {
34975
- leave: ({ name: name2, directives }) => "..." + name2 + wrap(" ", join(directives, " "))
34841
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
34976
34842
  },
34977
34843
  InlineFragment: {
34978
34844
  leave: ({ typeCondition, directives, selectionSet }) => join(
@@ -34986,9 +34852,9 @@ const printDocASTReducer = {
34986
34852
  )
34987
34853
  },
34988
34854
  FragmentDefinition: {
34989
- leave: ({ name: name2, typeCondition, variableDefinitions, directives, selectionSet }) => (
34855
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
34990
34856
  // or removed in the future.
34991
- `fragment ${name2}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
34857
+ `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
34992
34858
  )
34993
34859
  },
34994
34860
  // Value
@@ -35017,15 +34883,15 @@ const printDocASTReducer = {
35017
34883
  leave: ({ fields }) => "{" + join(fields, ", ") + "}"
35018
34884
  },
35019
34885
  ObjectField: {
35020
- leave: ({ name: name2, value }) => name2 + ": " + value
34886
+ leave: ({ name, value }) => name + ": " + value
35021
34887
  },
35022
34888
  // Directive
35023
34889
  Directive: {
35024
- leave: ({ name: name2, arguments: args }) => "@" + name2 + wrap("(", join(args, ", "), ")")
34890
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
35025
34891
  },
35026
34892
  // Type
35027
34893
  NamedType: {
35028
- leave: ({ name: name2 }) => name2
34894
+ leave: ({ name }) => name
35029
34895
  },
35030
34896
  ListType: {
35031
34897
  leave: ({ type: type2 }) => "[" + type2 + "]"
@@ -35035,19 +34901,19 @@ const printDocASTReducer = {
35035
34901
  },
35036
34902
  // Type System Definitions
35037
34903
  SchemaDefinition: {
35038
- leave: ({ description: description2, directives, operationTypes }) => wrap("", description2, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
34904
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
35039
34905
  },
35040
34906
  OperationTypeDefinition: {
35041
34907
  leave: ({ operation, type: type2 }) => operation + ": " + type2
35042
34908
  },
35043
34909
  ScalarTypeDefinition: {
35044
- leave: ({ description: description2, name: name2, directives }) => wrap("", description2, "\n") + join(["scalar", name2, join(directives, " ")], " ")
34910
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
35045
34911
  },
35046
34912
  ObjectTypeDefinition: {
35047
- leave: ({ description: description2, name: name2, interfaces, directives, fields }) => wrap("", description2, "\n") + join(
34913
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
35048
34914
  [
35049
34915
  "type",
35050
- name2,
34916
+ name,
35051
34917
  wrap("implements ", join(interfaces, " & ")),
35052
34918
  join(directives, " "),
35053
34919
  block(fields)
@@ -35056,19 +34922,19 @@ const printDocASTReducer = {
35056
34922
  )
35057
34923
  },
35058
34924
  FieldDefinition: {
35059
- leave: ({ description: description2, name: name2, arguments: args, type: type2, directives }) => wrap("", description2, "\n") + name2 + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type2 + wrap(" ", join(directives, " "))
34925
+ leave: ({ description, name, arguments: args, type: type2, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type2 + wrap(" ", join(directives, " "))
35060
34926
  },
35061
34927
  InputValueDefinition: {
35062
- leave: ({ description: description2, name: name2, type: type2, defaultValue, directives }) => wrap("", description2, "\n") + join(
35063
- [name2 + ": " + type2, wrap("= ", defaultValue), join(directives, " ")],
34928
+ leave: ({ description, name, type: type2, defaultValue, directives }) => wrap("", description, "\n") + join(
34929
+ [name + ": " + type2, wrap("= ", defaultValue), join(directives, " ")],
35064
34930
  " "
35065
34931
  )
35066
34932
  },
35067
34933
  InterfaceTypeDefinition: {
35068
- leave: ({ description: description2, name: name2, interfaces, directives, fields }) => wrap("", description2, "\n") + join(
34934
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
35069
34935
  [
35070
34936
  "interface",
35071
- name2,
34937
+ name,
35072
34938
  wrap("implements ", join(interfaces, " & ")),
35073
34939
  join(directives, " "),
35074
34940
  block(fields)
@@ -35077,22 +34943,22 @@ const printDocASTReducer = {
35077
34943
  )
35078
34944
  },
35079
34945
  UnionTypeDefinition: {
35080
- leave: ({ description: description2, name: name2, directives, types: types2 }) => wrap("", description2, "\n") + join(
35081
- ["union", name2, join(directives, " "), wrap("= ", join(types2, " | "))],
34946
+ leave: ({ description, name, directives, types: types2 }) => wrap("", description, "\n") + join(
34947
+ ["union", name, join(directives, " "), wrap("= ", join(types2, " | "))],
35082
34948
  " "
35083
34949
  )
35084
34950
  },
35085
34951
  EnumTypeDefinition: {
35086
- leave: ({ description: description2, name: name2, directives, values }) => wrap("", description2, "\n") + join(["enum", name2, join(directives, " "), block(values)], " ")
34952
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
35087
34953
  },
35088
34954
  EnumValueDefinition: {
35089
- leave: ({ description: description2, name: name2, directives }) => wrap("", description2, "\n") + join([name2, join(directives, " ")], " ")
34955
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
35090
34956
  },
35091
34957
  InputObjectTypeDefinition: {
35092
- leave: ({ description: description2, name: name2, directives, fields }) => wrap("", description2, "\n") + join(["input", name2, join(directives, " "), block(fields)], " ")
34958
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
35093
34959
  },
35094
34960
  DirectiveDefinition: {
35095
- leave: ({ description: description2, name: name2, arguments: args, repeatable, locations }) => wrap("", description2, "\n") + "directive @" + name2 + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
34961
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
35096
34962
  },
35097
34963
  SchemaExtension: {
35098
34964
  leave: ({ directives, operationTypes }) => join(
@@ -35101,13 +34967,13 @@ const printDocASTReducer = {
35101
34967
  )
35102
34968
  },
35103
34969
  ScalarTypeExtension: {
35104
- leave: ({ name: name2, directives }) => join(["extend scalar", name2, join(directives, " ")], " ")
34970
+ leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
35105
34971
  },
35106
34972
  ObjectTypeExtension: {
35107
- leave: ({ name: name2, interfaces, directives, fields }) => join(
34973
+ leave: ({ name, interfaces, directives, fields }) => join(
35108
34974
  [
35109
34975
  "extend type",
35110
- name2,
34976
+ name,
35111
34977
  wrap("implements ", join(interfaces, " & ")),
35112
34978
  join(directives, " "),
35113
34979
  block(fields)
@@ -35116,10 +34982,10 @@ const printDocASTReducer = {
35116
34982
  )
35117
34983
  },
35118
34984
  InterfaceTypeExtension: {
35119
- leave: ({ name: name2, interfaces, directives, fields }) => join(
34985
+ leave: ({ name, interfaces, directives, fields }) => join(
35120
34986
  [
35121
34987
  "extend interface",
35122
- name2,
34988
+ name,
35123
34989
  wrap("implements ", join(interfaces, " & ")),
35124
34990
  join(directives, " "),
35125
34991
  block(fields)
@@ -35128,10 +34994,10 @@ const printDocASTReducer = {
35128
34994
  )
35129
34995
  },
35130
34996
  UnionTypeExtension: {
35131
- leave: ({ name: name2, directives, types: types2 }) => join(
34997
+ leave: ({ name, directives, types: types2 }) => join(
35132
34998
  [
35133
34999
  "extend union",
35134
- name2,
35000
+ name,
35135
35001
  join(directives, " "),
35136
35002
  wrap("= ", join(types2, " | "))
35137
35003
  ],
@@ -35139,10 +35005,10 @@ const printDocASTReducer = {
35139
35005
  )
35140
35006
  },
35141
35007
  EnumTypeExtension: {
35142
- leave: ({ name: name2, directives, values }) => join(["extend enum", name2, join(directives, " "), block(values)], " ")
35008
+ leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
35143
35009
  },
35144
35010
  InputObjectTypeExtension: {
35145
- leave: ({ name: name2, directives, fields }) => join(["extend input", name2, join(directives, " "), block(fields)], " ")
35011
+ leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
35146
35012
  }
35147
35013
  };
35148
35014
  function join(maybeArray, separator = "") {
@@ -35355,8 +35221,8 @@ const createFetcher = (method) => async (params) => {
35355
35221
  initResolved = initNew;
35356
35222
  }
35357
35223
  if (searchParams) {
35358
- searchParams.forEach((value, name2) => {
35359
- url.searchParams.append(name2, value);
35224
+ searchParams.forEach((value, name) => {
35225
+ url.searchParams.append(name, value);
35360
35226
  });
35361
35227
  }
35362
35228
  const $fetch = params.fetch ?? fetch;
@@ -35636,7 +35502,6 @@ const createConfig = (props) => {
35636
35502
  };
35637
35503
  const deposit = async (config2, { args: { id, amount }, ...writeOptions }, options2 = {}) => {
35638
35504
  const cluster = await config2.api.getCluster({ id });
35639
- console.log("cluster:", cluster);
35640
35505
  if (!cluster) {
35641
35506
  throw new Error("Cluster not found");
35642
35507
  }
@@ -35732,18 +35597,16 @@ const registerValidators = async (config2, { args: { keyshares, depositAmount =
35732
35597
  });
35733
35598
  const snapshot = cluster ? globals.getClusterSnapshot(cluster) : globals.createEmptyCluster();
35734
35599
  if (shares.length === 1) {
35735
- return config2.contract.ssv.write.registerValidator(
35736
- {
35737
- args: {
35738
- amount: depositAmount,
35739
- cluster: snapshot,
35740
- operatorIds: operatorIds.map(BigInt),
35741
- publicKey: shares[0].publicKey,
35742
- sharesData: shares[0].sharesData
35743
- },
35744
- ...writeOptions
35745
- }
35746
- );
35600
+ return config2.contract.ssv.write.registerValidator({
35601
+ args: {
35602
+ amount: depositAmount,
35603
+ cluster: snapshot,
35604
+ operatorIds: operatorIds.map(BigInt),
35605
+ publicKey: shares[0].publicKey,
35606
+ sharesData: shares[0].sharesData
35607
+ },
35608
+ ...writeOptions
35609
+ });
35747
35610
  }
35748
35611
  return config2.contract.ssv.write.bulkRegisterValidator({
35749
35612
  args: {
@@ -35756,6 +35619,43 @@ const registerValidators = async (config2, { args: { keyshares, depositAmount =
35756
35619
  ...writeOptions
35757
35620
  });
35758
35621
  };
35622
+ const registerValidatorsRawData = async (config2, { args: { keyshares, depositAmount = 0n } }) => {
35623
+ const shares = keyshares.map((share) => {
35624
+ return globals.isKeySharesItem(share) ? share.payload : share;
35625
+ });
35626
+ const operatorIds = shares[0].operatorIds;
35627
+ const clusterSize = operatorIds.length;
35628
+ const limit = globals.registerValidatorsByClusterSizeLimits[clusterSize];
35629
+ if (!limit) {
35630
+ throw new Error(
35631
+ `Invalid number of operators in keyshares: ${clusterSize}, should be one of: ${Object.keys(globals.registerValidatorsByClusterSizeLimits).join(", ")}`
35632
+ );
35633
+ }
35634
+ if (shares.length > limit) {
35635
+ throw new Error(`You can't register more than ${limit} validators in a single transaction`);
35636
+ }
35637
+ const clusterId = globals.createClusterId(config2.walletClient.account.address, operatorIds);
35638
+ const cluster = await config2.api.getCluster({
35639
+ id: clusterId
35640
+ });
35641
+ const snapshot = cluster ? globals.getClusterSnapshot(cluster) : globals.createEmptyCluster();
35642
+ if (shares.length === 1) {
35643
+ return config2.contract.ssv.write.registerValidator.getTransactionData({
35644
+ amount: depositAmount,
35645
+ cluster: snapshot,
35646
+ operatorIds: operatorIds.map(BigInt),
35647
+ publicKey: shares[0].publicKey,
35648
+ sharesData: shares[0].sharesData
35649
+ });
35650
+ }
35651
+ return config2.contract.ssv.write.bulkRegisterValidator.getTransactionData({
35652
+ cluster: snapshot,
35653
+ amount: depositAmount,
35654
+ operatorIds: operatorIds.map(BigInt),
35655
+ publicKeys: shares.map((share) => share.publicKey),
35656
+ sharesData: shares.map((share) => share.sharesData)
35657
+ });
35658
+ };
35759
35659
  const ssvKeys$1 = new ssvKeys$2.SSVKeys();
35760
35660
  const validateSharesPostRegistration = async (config2, args) => {
35761
35661
  const receipt = await config2.publicClient.waitForTransactionReceipt({
@@ -35861,6 +35761,7 @@ const createClusterManager = (config2) => ({
35861
35761
  setFeeRecipient: setFeeRecipient.bind(null, config2),
35862
35762
  exitValidators: exitValidators.bind(null, config2),
35863
35763
  registerValidators: registerValidators.bind(null, config2),
35764
+ registerValidatorsRawData: registerValidatorsRawData.bind(null, config2),
35864
35765
  validateSharesPostRegistration: validateSharesPostRegistration.bind(
35865
35766
  null,
35866
35767
  config2