@ssv-labs/ssv-sdk 0.1.2 → 0.1.3

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.
@@ -2737,6 +2737,7 @@ asn1$8.Type = {
2737
2737
  GENERALIZEDTIME: 24,
2738
2738
  BMPSTRING: 30
2739
2739
  };
2740
+ asn1$8.maxDepth = 256;
2740
2741
  asn1$8.create = function(tagClass, type, constructed, value, options) {
2741
2742
  if (forge$w.util.isArray(value)) {
2742
2743
  var tmp = [];
@@ -2878,6 +2879,9 @@ asn1$8.fromDer = function(bytes, options) {
2878
2879
  if (!("decodeBitStrings" in options)) {
2879
2880
  options.decodeBitStrings = true;
2880
2881
  }
2882
+ if (!("maxDepth" in options)) {
2883
+ options.maxDepth = asn1$8.maxDepth;
2884
+ }
2881
2885
  if (typeof bytes === "string") {
2882
2886
  bytes = forge$w.util.createBuffer(bytes);
2883
2887
  }
@@ -2892,6 +2896,9 @@ asn1$8.fromDer = function(bytes, options) {
2892
2896
  return value;
2893
2897
  };
2894
2898
  function _fromDer(bytes, remaining, depth, options) {
2899
+ if (depth >= options.maxDepth) {
2900
+ throw new Error("ASN.1 parsing error: Max depth exceeded.");
2901
+ }
2895
2902
  var start;
2896
2903
  _checkBufferLength(bytes, remaining, 2);
2897
2904
  var b1 = bytes.getByte();
@@ -3067,6 +3074,9 @@ asn1$8.oidToDer = function(oid) {
3067
3074
  last = true;
3068
3075
  valueBytes = [];
3069
3076
  value = parseInt(values[i], 10);
3077
+ if (value > 4294967295) {
3078
+ throw new Error("OID value too large; max is 32-bits.");
3079
+ }
3070
3080
  do {
3071
3081
  b = value & 127;
3072
3082
  value = value >>> 7;
@@ -3091,8 +3101,11 @@ asn1$8.derToOid = function(bytes) {
3091
3101
  oid = Math.floor(b / 40) + "." + b % 40;
3092
3102
  var value = 0;
3093
3103
  while (bytes.length() > 0) {
3104
+ if (value > 70368744177663) {
3105
+ throw new Error("OID value too large; max is 53-bits.");
3106
+ }
3094
3107
  b = bytes.getByte();
3095
- value = value << 7;
3108
+ value = value * 128;
3096
3109
  if (b & 128) {
3097
3110
  value += b & 127;
3098
3111
  } else {
@@ -3253,19 +3266,40 @@ asn1$8.validate = function(obj, v, capture, errors) {
3253
3266
  if (v.value && forge$w.util.isArray(v.value)) {
3254
3267
  var j = 0;
3255
3268
  for (var i = 0; rval && i < v.value.length; ++i) {
3256
- rval = v.value[i].optional || false;
3257
- if (obj.value[j]) {
3258
- rval = asn1$8.validate(obj.value[j], v.value[i], capture, errors);
3259
- if (rval) {
3260
- ++j;
3261
- } else if (v.value[i].optional) {
3269
+ var schemaItem = v.value[i];
3270
+ rval = !!schemaItem.optional;
3271
+ var objChild = obj.value[j];
3272
+ if (!objChild) {
3273
+ if (!schemaItem.optional) {
3274
+ rval = false;
3275
+ if (errors) {
3276
+ errors.push("[" + v.name + '] Missing required element. Expected tag class "' + schemaItem.tagClass + '", type "' + schemaItem.type + '"');
3277
+ }
3278
+ }
3279
+ continue;
3280
+ }
3281
+ var schemaHasTag = typeof schemaItem.tagClass !== "undefined" && typeof schemaItem.type !== "undefined";
3282
+ if (schemaHasTag && (objChild.tagClass !== schemaItem.tagClass || objChild.type !== schemaItem.type)) {
3283
+ if (schemaItem.optional) {
3262
3284
  rval = true;
3285
+ continue;
3286
+ } else {
3287
+ rval = false;
3288
+ if (errors) {
3289
+ errors.push("[" + v.name + "] Tag mismatch. Expected (" + schemaItem.tagClass + "," + schemaItem.type + "), got (" + objChild.tagClass + "," + objChild.type + ")");
3290
+ }
3291
+ break;
3263
3292
  }
3264
3293
  }
3265
- if (!rval && errors) {
3266
- errors.push(
3267
- "[" + v.name + '] Tag class "' + v.tagClass + '", type "' + v.type + '" expected value length "' + v.value.length + '", got "' + obj.value.length + '"'
3268
- );
3294
+ var childRval = asn1$8.validate(objChild, schemaItem, capture, errors);
3295
+ if (childRval) {
3296
+ ++j;
3297
+ rval = true;
3298
+ } else if (schemaItem.optional) {
3299
+ rval = true;
3300
+ } else {
3301
+ rval = false;
3302
+ break;
3269
3303
  }
3270
3304
  }
3271
3305
  }
@@ -7173,7 +7207,7 @@ var digestInfoValidator = {
7173
7207
  constructed: false,
7174
7208
  capture: "algorithmIdentifier"
7175
7209
  }, {
7176
- // NULL paramters
7210
+ // NULL parameters
7177
7211
  name: "DigestInfo.DigestAlgorithm.parameters",
7178
7212
  tagClass: asn1$7.Class.UNIVERSAL,
7179
7213
  type: asn1$7.Type.NULL,
@@ -7686,7 +7720,7 @@ pki$4.setRsaPublicKey = pki$4.rsa.setPublicKey = function(n, e) {
7686
7720
  if (oid === forge$h.oids.md2 || oid === forge$h.oids.md5) {
7687
7721
  if (!("parameters" in capture)) {
7688
7722
  throw new Error(
7689
- "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters."
7723
+ "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters."
7690
7724
  );
7691
7725
  }
7692
7726
  }
@@ -11517,6 +11551,7 @@ var pfxValidator = {
11517
11551
  capture: "macAlgorithm"
11518
11552
  }, {
11519
11553
  name: "PFX.macData.mac.digestAlgorithm.parameters",
11554
+ optional: true,
11520
11555
  tagClass: asn1$3.Class.UNIVERSAL,
11521
11556
  captureAsn1: "macAlgorithmParameters"
11522
11557
  }]
@@ -11795,6 +11830,8 @@ p12.pkcs12FromAsn1 = function(obj, strict, password) {
11795
11830
  if (macValue.getBytes() !== capture.macDigest) {
11796
11831
  throw new Error("PKCS#12 MAC could not be verified. Invalid password?");
11797
11832
  }
11833
+ } else if (Array.isArray(obj.value) && obj.value.length > 2) {
11834
+ throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");
11798
11835
  }
11799
11836
  _decodeAuthenticatedSafe(pfx, data.value, strict, password);
11800
11837
  return pfx;
@@ -17609,7 +17646,7 @@ class Threshold {
17609
17646
  }
17610
17647
  }
17611
17648
  var scrypt = { exports: {} };
17612
- (function(module2, exports2) {
17649
+ (function(module2, exports$1) {
17613
17650
  (function(root) {
17614
17651
  const MAX_VALUE = 2147483647;
17615
17652
  function SHA256(m) {
@@ -18945,19 +18982,19 @@ var constants = {
18945
18982
  MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1
18946
18983
  };
18947
18984
  var re$1 = { exports: {} };
18948
- (function(module2, exports2) {
18985
+ (function(module2, exports$1) {
18949
18986
  const {
18950
18987
  MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2,
18951
18988
  MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH2,
18952
18989
  MAX_LENGTH: MAX_LENGTH2
18953
18990
  } = constants;
18954
18991
  const debug2 = debug_1;
18955
- exports2 = module2.exports = {};
18956
- const re2 = exports2.re = [];
18957
- const safeRe = exports2.safeRe = [];
18958
- const src = exports2.src = [];
18959
- const safeSrc = exports2.safeSrc = [];
18960
- const t2 = exports2.t = {};
18992
+ exports$1 = module2.exports = {};
18993
+ const re2 = exports$1.re = [];
18994
+ const safeRe = exports$1.safeRe = [];
18995
+ const src = exports$1.src = [];
18996
+ const safeSrc = exports$1.safeSrc = [];
18997
+ const t2 = exports$1.t = {};
18961
18998
  let R = 0;
18962
18999
  const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
18963
19000
  const safeRegexReplacements = [
@@ -19010,18 +19047,18 @@ var re$1 = { exports: {} };
19010
19047
  createToken("COERCERTLFULL", src[t2.COERCEFULL], true);
19011
19048
  createToken("LONETILDE", "(?:~>?)");
19012
19049
  createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true);
19013
- exports2.tildeTrimReplace = "$1~";
19050
+ exports$1.tildeTrimReplace = "$1~";
19014
19051
  createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`);
19015
19052
  createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`);
19016
19053
  createToken("LONECARET", "(?:\\^)");
19017
19054
  createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true);
19018
- exports2.caretTrimReplace = "$1^";
19055
+ exports$1.caretTrimReplace = "$1^";
19019
19056
  createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`);
19020
19057
  createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`);
19021
19058
  createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`);
19022
19059
  createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`);
19023
19060
  createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true);
19024
- exports2.comparatorTrimReplace = "$1$2$3";
19061
+ exports$1.comparatorTrimReplace = "$1$2$3";
19025
19062
  createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`);
19026
19063
  createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`);
19027
19064
  createToken("STAR", "(<|>)?=?\\s*\\*");
@@ -2736,6 +2736,7 @@ asn1$8.Type = {
2736
2736
  GENERALIZEDTIME: 24,
2737
2737
  BMPSTRING: 30
2738
2738
  };
2739
+ asn1$8.maxDepth = 256;
2739
2740
  asn1$8.create = function(tagClass, type, constructed, value, options) {
2740
2741
  if (forge$w.util.isArray(value)) {
2741
2742
  var tmp = [];
@@ -2877,6 +2878,9 @@ asn1$8.fromDer = function(bytes, options) {
2877
2878
  if (!("decodeBitStrings" in options)) {
2878
2879
  options.decodeBitStrings = true;
2879
2880
  }
2881
+ if (!("maxDepth" in options)) {
2882
+ options.maxDepth = asn1$8.maxDepth;
2883
+ }
2880
2884
  if (typeof bytes === "string") {
2881
2885
  bytes = forge$w.util.createBuffer(bytes);
2882
2886
  }
@@ -2891,6 +2895,9 @@ asn1$8.fromDer = function(bytes, options) {
2891
2895
  return value;
2892
2896
  };
2893
2897
  function _fromDer(bytes, remaining, depth, options) {
2898
+ if (depth >= options.maxDepth) {
2899
+ throw new Error("ASN.1 parsing error: Max depth exceeded.");
2900
+ }
2894
2901
  var start;
2895
2902
  _checkBufferLength(bytes, remaining, 2);
2896
2903
  var b1 = bytes.getByte();
@@ -3066,6 +3073,9 @@ asn1$8.oidToDer = function(oid) {
3066
3073
  last = true;
3067
3074
  valueBytes = [];
3068
3075
  value = parseInt(values[i], 10);
3076
+ if (value > 4294967295) {
3077
+ throw new Error("OID value too large; max is 32-bits.");
3078
+ }
3069
3079
  do {
3070
3080
  b = value & 127;
3071
3081
  value = value >>> 7;
@@ -3090,8 +3100,11 @@ asn1$8.derToOid = function(bytes) {
3090
3100
  oid = Math.floor(b / 40) + "." + b % 40;
3091
3101
  var value = 0;
3092
3102
  while (bytes.length() > 0) {
3103
+ if (value > 70368744177663) {
3104
+ throw new Error("OID value too large; max is 53-bits.");
3105
+ }
3093
3106
  b = bytes.getByte();
3094
- value = value << 7;
3107
+ value = value * 128;
3095
3108
  if (b & 128) {
3096
3109
  value += b & 127;
3097
3110
  } else {
@@ -3252,19 +3265,40 @@ asn1$8.validate = function(obj, v, capture, errors) {
3252
3265
  if (v.value && forge$w.util.isArray(v.value)) {
3253
3266
  var j = 0;
3254
3267
  for (var i = 0; rval && i < v.value.length; ++i) {
3255
- rval = v.value[i].optional || false;
3256
- if (obj.value[j]) {
3257
- rval = asn1$8.validate(obj.value[j], v.value[i], capture, errors);
3258
- if (rval) {
3259
- ++j;
3260
- } else if (v.value[i].optional) {
3268
+ var schemaItem = v.value[i];
3269
+ rval = !!schemaItem.optional;
3270
+ var objChild = obj.value[j];
3271
+ if (!objChild) {
3272
+ if (!schemaItem.optional) {
3273
+ rval = false;
3274
+ if (errors) {
3275
+ errors.push("[" + v.name + '] Missing required element. Expected tag class "' + schemaItem.tagClass + '", type "' + schemaItem.type + '"');
3276
+ }
3277
+ }
3278
+ continue;
3279
+ }
3280
+ var schemaHasTag = typeof schemaItem.tagClass !== "undefined" && typeof schemaItem.type !== "undefined";
3281
+ if (schemaHasTag && (objChild.tagClass !== schemaItem.tagClass || objChild.type !== schemaItem.type)) {
3282
+ if (schemaItem.optional) {
3261
3283
  rval = true;
3284
+ continue;
3285
+ } else {
3286
+ rval = false;
3287
+ if (errors) {
3288
+ errors.push("[" + v.name + "] Tag mismatch. Expected (" + schemaItem.tagClass + "," + schemaItem.type + "), got (" + objChild.tagClass + "," + objChild.type + ")");
3289
+ }
3290
+ break;
3262
3291
  }
3263
3292
  }
3264
- if (!rval && errors) {
3265
- errors.push(
3266
- "[" + v.name + '] Tag class "' + v.tagClass + '", type "' + v.type + '" expected value length "' + v.value.length + '", got "' + obj.value.length + '"'
3267
- );
3293
+ var childRval = asn1$8.validate(objChild, schemaItem, capture, errors);
3294
+ if (childRval) {
3295
+ ++j;
3296
+ rval = true;
3297
+ } else if (schemaItem.optional) {
3298
+ rval = true;
3299
+ } else {
3300
+ rval = false;
3301
+ break;
3268
3302
  }
3269
3303
  }
3270
3304
  }
@@ -7172,7 +7206,7 @@ var digestInfoValidator = {
7172
7206
  constructed: false,
7173
7207
  capture: "algorithmIdentifier"
7174
7208
  }, {
7175
- // NULL paramters
7209
+ // NULL parameters
7176
7210
  name: "DigestInfo.DigestAlgorithm.parameters",
7177
7211
  tagClass: asn1$7.Class.UNIVERSAL,
7178
7212
  type: asn1$7.Type.NULL,
@@ -7685,7 +7719,7 @@ pki$4.setRsaPublicKey = pki$4.rsa.setPublicKey = function(n, e) {
7685
7719
  if (oid === forge$h.oids.md2 || oid === forge$h.oids.md5) {
7686
7720
  if (!("parameters" in capture)) {
7687
7721
  throw new Error(
7688
- "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters."
7722
+ "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters."
7689
7723
  );
7690
7724
  }
7691
7725
  }
@@ -11516,6 +11550,7 @@ var pfxValidator = {
11516
11550
  capture: "macAlgorithm"
11517
11551
  }, {
11518
11552
  name: "PFX.macData.mac.digestAlgorithm.parameters",
11553
+ optional: true,
11519
11554
  tagClass: asn1$3.Class.UNIVERSAL,
11520
11555
  captureAsn1: "macAlgorithmParameters"
11521
11556
  }]
@@ -11794,6 +11829,8 @@ p12.pkcs12FromAsn1 = function(obj, strict, password) {
11794
11829
  if (macValue.getBytes() !== capture.macDigest) {
11795
11830
  throw new Error("PKCS#12 MAC could not be verified. Invalid password?");
11796
11831
  }
11832
+ } else if (Array.isArray(obj.value) && obj.value.length > 2) {
11833
+ throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");
11797
11834
  }
11798
11835
  _decodeAuthenticatedSafe(pfx, data.value, strict, password);
11799
11836
  return pfx;
@@ -17608,7 +17645,7 @@ class Threshold {
17608
17645
  }
17609
17646
  }
17610
17647
  var scrypt = { exports: {} };
17611
- (function(module, exports) {
17648
+ (function(module, exports$1) {
17612
17649
  (function(root) {
17613
17650
  const MAX_VALUE = 2147483647;
17614
17651
  function SHA256(m) {
@@ -18944,19 +18981,19 @@ var constants = {
18944
18981
  MAX_SAFE_INTEGER: MAX_SAFE_INTEGER$1
18945
18982
  };
18946
18983
  var re$1 = { exports: {} };
18947
- (function(module, exports) {
18984
+ (function(module, exports$1) {
18948
18985
  const {
18949
18986
  MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2,
18950
18987
  MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH2,
18951
18988
  MAX_LENGTH: MAX_LENGTH2
18952
18989
  } = constants;
18953
18990
  const debug2 = debug_1;
18954
- exports = module.exports = {};
18955
- const re2 = exports.re = [];
18956
- const safeRe = exports.safeRe = [];
18957
- const src = exports.src = [];
18958
- const safeSrc = exports.safeSrc = [];
18959
- const t2 = exports.t = {};
18991
+ exports$1 = module.exports = {};
18992
+ const re2 = exports$1.re = [];
18993
+ const safeRe = exports$1.safeRe = [];
18994
+ const src = exports$1.src = [];
18995
+ const safeSrc = exports$1.safeSrc = [];
18996
+ const t2 = exports$1.t = {};
18960
18997
  let R = 0;
18961
18998
  const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
18962
18999
  const safeRegexReplacements = [
@@ -19009,18 +19046,18 @@ var re$1 = { exports: {} };
19009
19046
  createToken("COERCERTLFULL", src[t2.COERCEFULL], true);
19010
19047
  createToken("LONETILDE", "(?:~>?)");
19011
19048
  createToken("TILDETRIM", `(\\s*)${src[t2.LONETILDE]}\\s+`, true);
19012
- exports.tildeTrimReplace = "$1~";
19049
+ exports$1.tildeTrimReplace = "$1~";
19013
19050
  createToken("TILDE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAIN]}$`);
19014
19051
  createToken("TILDELOOSE", `^${src[t2.LONETILDE]}${src[t2.XRANGEPLAINLOOSE]}$`);
19015
19052
  createToken("LONECARET", "(?:\\^)");
19016
19053
  createToken("CARETTRIM", `(\\s*)${src[t2.LONECARET]}\\s+`, true);
19017
- exports.caretTrimReplace = "$1^";
19054
+ exports$1.caretTrimReplace = "$1^";
19018
19055
  createToken("CARET", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAIN]}$`);
19019
19056
  createToken("CARETLOOSE", `^${src[t2.LONECARET]}${src[t2.XRANGEPLAINLOOSE]}$`);
19020
19057
  createToken("COMPARATORLOOSE", `^${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]})$|^$`);
19021
19058
  createToken("COMPARATOR", `^${src[t2.GTLT]}\\s*(${src[t2.FULLPLAIN]})$|^$`);
19022
19059
  createToken("COMPARATORTRIM", `(\\s*)${src[t2.GTLT]}\\s*(${src[t2.LOOSEPLAIN]}|${src[t2.XRANGEPLAIN]})`, true);
19023
- exports.comparatorTrimReplace = "$1$2$3";
19060
+ exports$1.comparatorTrimReplace = "$1$2$3";
19024
19061
  createToken("HYPHENRANGE", `^\\s*(${src[t2.XRANGEPLAIN]})\\s+-\\s+(${src[t2.XRANGEPLAIN]})\\s*$`);
19025
19062
  createToken("HYPHENRANGELOOSE", `^\\s*(${src[t2.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t2.XRANGEPLAINLOOSE]})\\s*$`);
19026
19063
  createToken("STAR", "(<|>)?=?\\s*\\*");
package/dist/keys.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const KeyShares = require("./KeyShares-7biQfDev.js");
3
+ const KeyShares = require("./KeyShares-B_4l2THg.js");
4
4
  exports.KeyShares = KeyShares.KeyShares;
5
5
  exports.KeySharesItem = KeyShares.KeySharesItem;
6
6
  exports.OperatorPublicKeyError = KeyShares.OperatorPublicKeyError;
package/dist/keys.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { a, K, O, c, S, b } from "./KeyShares-DEqBZits.mjs";
1
+ import { a, K, O, c, S, b } from "./KeyShares-ClzHwMUy.mjs";
2
2
  export {
3
3
  a as KeyShares,
4
4
  K as KeySharesItem,
@@ -3,7 +3,6 @@ import { SmartFnWriteOptions } from '../../../contract-interactions/types';
3
3
  type DepositProps = SmartFnWriteOptions<{
4
4
  id: string;
5
5
  amount: bigint;
6
- options?: DepositOptions;
7
6
  }>;
8
7
  type DepositOptions = {
9
8
  approve?: boolean;
package/dist/main.js CHANGED
@@ -8,7 +8,7 @@ const globals = require("./globals-DsaKgq3v.js");
8
8
  const lodashEs = require("lodash-es");
9
9
  const viem = require("viem");
10
10
  const graphqlRequest = require("graphql-request");
11
- const KeyShares = require("./KeyShares-7biQfDev.js");
11
+ const KeyShares = require("./KeyShares-B_4l2THg.js");
12
12
  var main = { exports: {} };
13
13
  const version$1 = "16.6.1";
14
14
  const require$$4 = {
@@ -4278,7 +4278,7 @@ const deposit = async (config2, { args: { id, amount }, ...writeOptions }, optio
4278
4278
  args: {
4279
4279
  amount,
4280
4280
  cluster: snapshot,
4281
- clusterOwner: process.env.OWNER_ADDRESS,
4281
+ clusterOwner: config2.walletClient.account.address,
4282
4282
  operatorIds: cluster.operatorIds.map(BigInt)
4283
4283
  },
4284
4284
  ...writeOptions
package/dist/main.mjs CHANGED
@@ -7,8 +7,8 @@ import { Q, P, O, R } from "./globals-CDOcDUnk.mjs";
7
7
  import { isUndefined, isEqual } from "lodash-es";
8
8
  import { decodeEventLog, encodeFunctionData, encodeAbiParameters, parseAbiParameters, isAddressEqual, zeroAddress } from "viem";
9
9
  import { GraphQLClient } from "graphql-request";
10
- import { S as SSVKeys, a as KeyShares, K as KeySharesItem } from "./KeyShares-DEqBZits.mjs";
11
- import { O as O2, c, b } from "./KeyShares-DEqBZits.mjs";
10
+ import { S as SSVKeys, a as KeyShares, K as KeySharesItem } from "./KeyShares-ClzHwMUy.mjs";
11
+ import { O as O2, c, b } from "./KeyShares-ClzHwMUy.mjs";
12
12
  var main = { exports: {} };
13
13
  const version$1 = "16.6.1";
14
14
  const require$$4 = {
@@ -4278,7 +4278,7 @@ const deposit = async (config2, { args: { id, amount }, ...writeOptions }, optio
4278
4278
  args: {
4279
4279
  amount,
4280
4280
  cluster: snapshot,
4281
- clusterOwner: process.env.OWNER_ADDRESS,
4281
+ clusterOwner: config2.walletClient.account.address,
4282
4282
  operatorIds: cluster.operatorIds.map(BigInt)
4283
4283
  },
4284
4284
  ...writeOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssv-labs/ssv-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "author": "SSV.Labs",
5
5
  "description": "ssv labs sdk",
6
6
  "keywords": [
@@ -55,7 +55,7 @@
55
55
  ]
56
56
  },
57
57
  "devDependencies": {
58
- "@0no-co/graphqlsp": "1.15.0",
58
+ "@0no-co/graphqlsp": "1.15.2",
59
59
  "@chainsafe/bls-keystore": "3.1.0",
60
60
  "@commitlint/cli": "19.8.1",
61
61
  "@commitlint/config-conventional": "19.8.1",
@@ -71,9 +71,9 @@
71
71
  "@openzeppelin/contracts-upgradeable": "4.9.6",
72
72
  "@openzeppelin/hardhat-upgrades": "3.9.1",
73
73
  "@parcel/watcher": "2.5.1",
74
- "@release-it/conventional-changelog": "10.0.1",
74
+ "@release-it/conventional-changelog": "10.0.2",
75
75
  "@rollup/plugin-alias": "5.1.1",
76
- "@rollup/plugin-commonjs": "28.0.6",
76
+ "@rollup/plugin-commonjs": "28.0.9",
77
77
  "@rollup/plugin-json": "6.1.0",
78
78
  "@rollup/plugin-node-resolve": "16.0.3",
79
79
  "@rollup/plugin-terser": "0.4.4",
@@ -81,27 +81,27 @@
81
81
  "@types/eslint-plugin-prettier": "3.1.3",
82
82
  "@types/lodash-es": "4.17.12",
83
83
  "@types/node": "22.17.0",
84
- "@types/node-forge": "1.3.13",
84
+ "@types/node-forge": "1.3.14",
85
85
  "@types/semver": "7.7.0",
86
86
  "@typescript-eslint/eslint-plugin": "7.18.0",
87
87
  "@typescript-eslint/parser": "7.18.0",
88
88
  "@vitest/coverage-v8": "1.6.1",
89
89
  "@vitest/ui": "1.6.1",
90
90
  "commitizen": "4.3.1",
91
- "concurrently": "9.2.0",
91
+ "concurrently": "9.2.1",
92
92
  "cz-git": "1.12.0",
93
93
  "eslint": "8.57.1",
94
94
  "eslint-config-prettier": "9.1.2",
95
95
  "eslint-plugin-prettier": "5.5.4",
96
96
  "eslint-plugin-unused-imports": "4.1.4",
97
- "hardhat": "2.27.0",
97
+ "hardhat": "2.27.2",
98
98
  "husky": "9.1.7",
99
99
  "lint-staged": "15.5.2",
100
100
  "prettier": "3.6.2",
101
101
  "release-it": "19.0.6",
102
- "rollup": "4.52.5",
102
+ "rollup": "4.53.3",
103
103
  "rollup-plugin-delete": "2.2.0",
104
- "rollup-plugin-dts": "6.2.1",
104
+ "rollup-plugin-dts": "6.3.0",
105
105
  "rollup-plugin-tsconfig-paths": "1.5.2",
106
106
  "rollup-plugin-typescript2": "0.36.0",
107
107
  "semantic-release": "23.1.1",
@@ -123,14 +123,14 @@
123
123
  },
124
124
  "dependencies": {
125
125
  "@graphql-typed-document-node/core": "^3.2.0",
126
- "@safe-global/protocol-kit": "^5.2.18",
126
+ "@safe-global/protocol-kit": "5.2.22",
127
127
  "abitype": "^1.0.6",
128
128
  "bls-eth-wasm": "^1.4.0",
129
- "class-validator": "^0.14.2",
129
+ "class-validator": "0.14.3",
130
130
  "dotenv": "^16.4.5",
131
- "graphql-request": "^7.2.0",
131
+ "graphql-request": "7.3.5",
132
132
  "lodash-es": "^4.17.21",
133
- "node-forge": "^1.3.1",
133
+ "node-forge": "1.3.3",
134
134
  "scrypt-js": "^3.0.1",
135
135
  "tslib": "^2.8.1",
136
136
  "viem": "^2.21.30",