@ssv-labs/ssv-sdk 0.1.1 → 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.
- package/dist/{KeyShares-7biQfDev.js → KeyShares-B_4l2THg.js} +61 -24
- package/dist/{KeyShares-DEqBZits.mjs → KeyShares-ClzHwMUy.mjs} +61 -24
- package/dist/api/subgraph/index.d.ts +4 -4
- package/dist/config/chains.d.ts +8 -8
- package/dist/{globals-DlonCtsi.mjs → globals-CDOcDUnk.mjs} +3 -5
- package/dist/{globals-CkyOvtF5.js → globals-DsaKgq3v.js} +3 -5
- package/dist/keys.js +1 -1
- package/dist/keys.mjs +1 -1
- package/dist/libs/cluster/methods/deposit.d.ts +0 -1
- package/dist/libs/operator/index.d.ts +20 -20
- package/dist/libs/utils/index.d.ts +1 -1
- package/dist/main.js +3 -3
- package/dist/main.mjs +5 -5
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +1 -1
- package/package.json +22 -24
|
@@ -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
|
|
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
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
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
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
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
|
|
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
|
|
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,
|
|
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,
|
|
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
|
-
|
|
18956
|
-
const re2 =
|
|
18957
|
-
const safeRe =
|
|
18958
|
-
const src =
|
|
18959
|
-
const safeSrc =
|
|
18960
|
-
const t2 =
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
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
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
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
|
|
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
|
|
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*\\*");
|
|
@@ -32,7 +32,7 @@ export declare const getOperator: (client: GraphQLClient, args: GetOperatorQuery
|
|
|
32
32
|
id: string;
|
|
33
33
|
validatorCount: string;
|
|
34
34
|
isPrivate: boolean;
|
|
35
|
-
whitelistedContract: import('
|
|
35
|
+
whitelistedContract: import('viem').Address;
|
|
36
36
|
} | null>;
|
|
37
37
|
export declare const getOperators: (client: GraphQLClient, args: GetOperatorsQueryVariables) => Promise<{
|
|
38
38
|
publicKey: string;
|
|
@@ -40,13 +40,13 @@ export declare const getOperators: (client: GraphQLClient, args: GetOperatorsQue
|
|
|
40
40
|
id: string;
|
|
41
41
|
validatorCount: string;
|
|
42
42
|
isPrivate: boolean;
|
|
43
|
-
whitelistedContract: import('
|
|
43
|
+
whitelistedContract: import('viem').Address;
|
|
44
44
|
}[]>;
|
|
45
45
|
export declare const getValidators: (client: GraphQLClient, args: GetValidatorsQueryVariables) => Promise<{
|
|
46
|
-
id: import('
|
|
46
|
+
id: import('viem').Address;
|
|
47
47
|
}[]>;
|
|
48
48
|
export declare const getValidator: (client: GraphQLClient, args: GetValidatorQueryVariables) => Promise<{
|
|
49
|
-
id: import('
|
|
49
|
+
id: import('viem').Address;
|
|
50
50
|
} | null | undefined>;
|
|
51
51
|
export declare const getClusterBalance: (client: GraphQLClient, args: GetClusterBalanceQueryVariables) => Promise<import('../../graphql/graphql').GetClusterBalanceQuery>;
|
|
52
52
|
export declare const getQueries: (client: GraphQLClient) => {
|
package/dist/config/chains.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const hoodi: {
|
|
|
20
20
|
ensRegistry?: import('viem').ChainContract | undefined;
|
|
21
21
|
ensUniversalResolver?: import('viem').ChainContract | undefined;
|
|
22
22
|
multicall3?: import('viem').ChainContract | undefined;
|
|
23
|
-
|
|
23
|
+
erc6492Verifier?: import('viem').ChainContract | undefined;
|
|
24
24
|
} | undefined;
|
|
25
25
|
ensTlds?: readonly string[] | undefined;
|
|
26
26
|
id: 560048;
|
|
@@ -30,6 +30,7 @@ export declare const hoodi: {
|
|
|
30
30
|
readonly symbol: "ETH";
|
|
31
31
|
readonly decimals: 18;
|
|
32
32
|
};
|
|
33
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
33
34
|
rpcUrls: {
|
|
34
35
|
readonly default: {
|
|
35
36
|
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];
|
|
@@ -51,14 +52,11 @@ export declare const chains: {
|
|
|
51
52
|
readonly apiUrl: "https://api.etherscan.io/api";
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
|
-
blockTime
|
|
55
|
+
blockTime: 12000;
|
|
55
56
|
contracts: {
|
|
56
|
-
readonly ensRegistry: {
|
|
57
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
58
|
-
};
|
|
59
57
|
readonly ensUniversalResolver: {
|
|
60
|
-
readonly address: "
|
|
61
|
-
readonly blockCreated:
|
|
58
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
59
|
+
readonly blockCreated: 23085558;
|
|
62
60
|
};
|
|
63
61
|
readonly multicall3: {
|
|
64
62
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
@@ -73,6 +71,7 @@ export declare const chains: {
|
|
|
73
71
|
readonly symbol: "ETH";
|
|
74
72
|
readonly decimals: 18;
|
|
75
73
|
};
|
|
74
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
76
75
|
rpcUrls: {
|
|
77
76
|
readonly default: {
|
|
78
77
|
readonly http: readonly ["https://eth.merkle.io"];
|
|
@@ -106,7 +105,7 @@ export declare const chains: {
|
|
|
106
105
|
ensRegistry?: import('viem').ChainContract | undefined;
|
|
107
106
|
ensUniversalResolver?: import('viem').ChainContract | undefined;
|
|
108
107
|
multicall3?: import('viem').ChainContract | undefined;
|
|
109
|
-
|
|
108
|
+
erc6492Verifier?: import('viem').ChainContract | undefined;
|
|
110
109
|
} | undefined;
|
|
111
110
|
ensTlds?: readonly string[] | undefined;
|
|
112
111
|
id: 560048;
|
|
@@ -116,6 +115,7 @@ export declare const chains: {
|
|
|
116
115
|
readonly symbol: "ETH";
|
|
117
116
|
readonly decimals: 18;
|
|
118
117
|
};
|
|
118
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
119
119
|
rpcUrls: {
|
|
120
120
|
readonly default: {
|
|
121
121
|
readonly http: readonly ["https://rpc.hoodi.ethpandaops.io"];
|
|
@@ -59,6 +59,7 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
59
59
|
id: 1,
|
|
60
60
|
name: "Ethereum",
|
|
61
61
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
62
|
+
blockTime: 12e3,
|
|
62
63
|
rpcUrls: {
|
|
63
64
|
default: {
|
|
64
65
|
http: ["https://eth.merkle.io"]
|
|
@@ -72,12 +73,9 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
75
|
contracts: {
|
|
75
|
-
ensRegistry: {
|
|
76
|
-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
|
|
77
|
-
},
|
|
78
76
|
ensUniversalResolver: {
|
|
79
|
-
address: "
|
|
80
|
-
blockCreated:
|
|
77
|
+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
|
|
78
|
+
blockCreated: 23085558
|
|
81
79
|
},
|
|
82
80
|
multicall3: {
|
|
83
81
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
|
@@ -60,6 +60,7 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
60
60
|
id: 1,
|
|
61
61
|
name: "Ethereum",
|
|
62
62
|
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
|
|
63
|
+
blockTime: 12e3,
|
|
63
64
|
rpcUrls: {
|
|
64
65
|
default: {
|
|
65
66
|
http: ["https://eth.merkle.io"]
|
|
@@ -73,12 +74,9 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
73
74
|
}
|
|
74
75
|
},
|
|
75
76
|
contracts: {
|
|
76
|
-
ensRegistry: {
|
|
77
|
-
address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
|
|
78
|
-
},
|
|
79
77
|
ensUniversalResolver: {
|
|
80
|
-
address: "
|
|
81
|
-
blockCreated:
|
|
78
|
+
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee",
|
|
79
|
+
blockCreated: 23085558
|
|
82
80
|
},
|
|
83
81
|
multicall3: {
|
|
84
82
|
address: "0xca11bde05977b3631167028862be2a173976ca11",
|
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-
|
|
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
|
@@ -22,9 +22,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
22
22
|
accessList?: import('viem').AccessList | undefined;
|
|
23
23
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
24
24
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
25
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
25
26
|
blockTag?: import('viem').BlockTag | undefined;
|
|
26
27
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
27
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
28
28
|
dataSuffix?: `0x${string}` | undefined;
|
|
29
29
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
30
30
|
eventName: "AdminChanged";
|
|
@@ -314,9 +314,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
314
314
|
accessList?: import('viem').AccessList | undefined;
|
|
315
315
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
316
316
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
317
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
317
318
|
blockTag?: import('viem').BlockTag | undefined;
|
|
318
319
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
319
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
320
320
|
dataSuffix?: `0x${string}` | undefined;
|
|
321
321
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperator">;
|
|
322
322
|
getTransactionData: (props: {
|
|
@@ -344,9 +344,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
344
344
|
accessList?: import('viem').AccessList | undefined;
|
|
345
345
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
346
346
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
347
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
347
348
|
blockTag?: import('viem').BlockTag | undefined;
|
|
348
349
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
349
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
350
350
|
dataSuffix?: `0x${string}` | undefined;
|
|
351
351
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
352
352
|
eventName: "AdminChanged";
|
|
@@ -637,9 +637,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
637
637
|
accessList?: import('viem').AccessList | undefined;
|
|
638
638
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
639
639
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
640
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
640
641
|
blockTag?: import('viem').BlockTag | undefined;
|
|
641
642
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
642
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
643
643
|
dataSuffix?: `0x${string}` | undefined;
|
|
644
644
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsWhitelists">;
|
|
645
645
|
getTransactionData: (props: {
|
|
@@ -667,9 +667,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
667
667
|
accessList?: import('viem').AccessList | undefined;
|
|
668
668
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
669
669
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
670
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
670
671
|
blockTag?: import('viem').BlockTag | undefined;
|
|
671
672
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
672
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
673
673
|
dataSuffix?: `0x${string}` | undefined;
|
|
674
674
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
675
675
|
eventName: "AdminChanged";
|
|
@@ -960,9 +960,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
960
960
|
accessList?: import('viem').AccessList | undefined;
|
|
961
961
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
962
962
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
963
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
963
964
|
blockTag?: import('viem').BlockTag | undefined;
|
|
964
965
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
965
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
966
966
|
dataSuffix?: `0x${string}` | undefined;
|
|
967
967
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperatorsWhitelists">;
|
|
968
968
|
getTransactionData: (props: {
|
|
@@ -989,9 +989,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
989
989
|
accessList?: import('viem').AccessList | undefined;
|
|
990
990
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
991
991
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
992
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
992
993
|
blockTag?: import('viem').BlockTag | undefined;
|
|
993
994
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
994
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
995
995
|
dataSuffix?: `0x${string}` | undefined;
|
|
996
996
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
997
997
|
eventName: "AdminChanged";
|
|
@@ -1281,9 +1281,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1281
1281
|
accessList?: import('viem').AccessList | undefined;
|
|
1282
1282
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1283
1283
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1284
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1284
1285
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1285
1286
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1286
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1287
1287
|
dataSuffix?: `0x${string}` | undefined;
|
|
1288
1288
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsPrivateUnchecked">;
|
|
1289
1289
|
getTransactionData: (props: {
|
|
@@ -1309,9 +1309,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1309
1309
|
accessList?: import('viem').AccessList | undefined;
|
|
1310
1310
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1311
1311
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1312
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1312
1313
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1313
1314
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1314
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1315
1315
|
dataSuffix?: `0x${string}` | undefined;
|
|
1316
1316
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
1317
1317
|
eventName: "AdminChanged";
|
|
@@ -1601,9 +1601,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1601
1601
|
accessList?: import('viem').AccessList | undefined;
|
|
1602
1602
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1603
1603
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1604
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1604
1605
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1605
1606
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1606
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1607
1607
|
dataSuffix?: `0x${string}` | undefined;
|
|
1608
1608
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "setOperatorsPublicUnchecked">;
|
|
1609
1609
|
getTransactionData: (props: {
|
|
@@ -1631,9 +1631,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1631
1631
|
accessList?: import('viem').AccessList | undefined;
|
|
1632
1632
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1633
1633
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1634
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1634
1635
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1635
1636
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1636
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1637
1637
|
dataSuffix?: `0x${string}` | undefined;
|
|
1638
1638
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
1639
1639
|
eventName: "AdminChanged";
|
|
@@ -1924,9 +1924,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1924
1924
|
accessList?: import('viem').AccessList | undefined;
|
|
1925
1925
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1926
1926
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1927
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1927
1928
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1928
1929
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1929
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1930
1930
|
dataSuffix?: `0x${string}` | undefined;
|
|
1931
1931
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "removeOperatorsWhitelists">;
|
|
1932
1932
|
getTransactionData: (props: {
|
|
@@ -1954,9 +1954,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
1954
1954
|
accessList?: import('viem').AccessList | undefined;
|
|
1955
1955
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
1956
1956
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
1957
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1957
1958
|
blockTag?: import('viem').BlockTag | undefined;
|
|
1958
1959
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
1959
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
1960
1960
|
dataSuffix?: `0x${string}` | undefined;
|
|
1961
1961
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
1962
1962
|
eventName: "AdminChanged";
|
|
@@ -2247,9 +2247,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2247
2247
|
accessList?: import('viem').AccessList | undefined;
|
|
2248
2248
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2249
2249
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2250
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2250
2251
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2251
2252
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2252
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2253
2253
|
dataSuffix?: `0x${string}` | undefined;
|
|
2254
2254
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "declareOperatorFee">;
|
|
2255
2255
|
getTransactionData: (props: {
|
|
@@ -2276,9 +2276,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2276
2276
|
accessList?: import('viem').AccessList | undefined;
|
|
2277
2277
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2278
2278
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2279
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2279
2280
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2280
2281
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2281
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2282
2282
|
dataSuffix?: `0x${string}` | undefined;
|
|
2283
2283
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
2284
2284
|
eventName: "AdminChanged";
|
|
@@ -2568,9 +2568,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2568
2568
|
accessList?: import('viem').AccessList | undefined;
|
|
2569
2569
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2570
2570
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2571
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2571
2572
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2572
2573
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2573
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2574
2574
|
dataSuffix?: `0x${string}` | undefined;
|
|
2575
2575
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "executeOperatorFee">;
|
|
2576
2576
|
getTransactionData: (props: {
|
|
@@ -2596,9 +2596,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2596
2596
|
accessList?: import('viem').AccessList | undefined;
|
|
2597
2597
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2598
2598
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2599
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2599
2600
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2600
2601
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2601
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2602
2602
|
dataSuffix?: `0x${string}` | undefined;
|
|
2603
2603
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
2604
2604
|
eventName: "AdminChanged";
|
|
@@ -2888,9 +2888,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2888
2888
|
accessList?: import('viem').AccessList | undefined;
|
|
2889
2889
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2890
2890
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2891
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2891
2892
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2892
2893
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2893
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2894
2894
|
dataSuffix?: `0x${string}` | undefined;
|
|
2895
2895
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "cancelDeclaredOperatorFee">;
|
|
2896
2896
|
getTransactionData: (props: {
|
|
@@ -2917,9 +2917,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
2917
2917
|
accessList?: import('viem').AccessList | undefined;
|
|
2918
2918
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
2919
2919
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
2920
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2920
2921
|
blockTag?: import('viem').BlockTag | undefined;
|
|
2921
2922
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
2922
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
2923
2923
|
dataSuffix?: `0x${string}` | undefined;
|
|
2924
2924
|
}): import('../../contract-interactions/types').WriteReturnType<{
|
|
2925
2925
|
eventName: "AdminChanged";
|
|
@@ -3210,9 +3210,9 @@ export declare const createOperatorManager: (config: ConfigReturnType) => {
|
|
|
3210
3210
|
accessList?: import('viem').AccessList | undefined;
|
|
3211
3211
|
sidecars?: readonly import('viem').BlobSidecar<`0x${string}`>[] | undefined;
|
|
3212
3212
|
authorizationList?: import('viem').AuthorizationList<number, boolean> | undefined;
|
|
3213
|
+
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
3213
3214
|
blockTag?: import('viem').BlockTag | undefined;
|
|
3214
3215
|
stateOverride?: import('viem').StateOverride | undefined;
|
|
3215
|
-
blockOverrides?: import('viem').BlockOverrides<bigint, number> | undefined;
|
|
3216
3216
|
dataSuffix?: `0x${string}` | undefined;
|
|
3217
3217
|
}) => import('viem').SimulateContractReturnType<import('../../contract-interactions/types').SupportedAbis, "reduceOperatorFee">;
|
|
3218
3218
|
getTransactionData: (props: {
|
|
@@ -12,7 +12,7 @@ export declare const createUtils: (config: ConfigReturnType) => {
|
|
|
12
12
|
nonce: number;
|
|
13
13
|
}) => Promise<import('../ssv-keys/KeyShares/KeySharesData/KeySharesPayload').KeySharesPayload[]>;
|
|
14
14
|
validateKeysharesJSON: ({ account, operators, keyshares, }: {
|
|
15
|
-
account: import('
|
|
15
|
+
account: import('viem').Address;
|
|
16
16
|
operators: Pick<import('../../types/operator').Operator, "id" | "publicKey">[];
|
|
17
17
|
keyshares: string | object;
|
|
18
18
|
}) => Promise<import('../ssv-keys').KeySharesItem[]>;
|
package/dist/main.js
CHANGED
|
@@ -4,11 +4,11 @@ const require$$0 = require("fs");
|
|
|
4
4
|
const require$$1 = require("path");
|
|
5
5
|
const require$$2 = require("os");
|
|
6
6
|
const crypto$1 = require("crypto");
|
|
7
|
-
const globals = require("./globals-
|
|
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-
|
|
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:
|
|
4281
|
+
clusterOwner: config2.walletClient.account.address,
|
|
4282
4282
|
operatorIds: cluster.operatorIds.map(BigInt)
|
|
4283
4283
|
},
|
|
4284
4284
|
...writeOptions
|
package/dist/main.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import require$$0 from "fs";
|
|
|
2
2
|
import require$$1 from "path";
|
|
3
3
|
import require$$2 from "os";
|
|
4
4
|
import crypto$1 from "crypto";
|
|
5
|
-
import { E as decodeOperatorPublicKey, s as stringifyBigints, F as tryCatch, G as configArgsSchema, H as contracts, I as paid_graph_endpoints, J as graph_endpoints, L as rest_endpoints, j as getClusterSnapshot$1, m as isKeySharesItem, M as registerValidatorsByClusterSizeLimits, g as createClusterId, k as createEmptyCluster, r as roundOperatorFee, N as globals, b as bigintMax, t as ensureNoKeysharesErrors, p as ensureValidatorsUniqueness, q as validateConsistentOperatorPublicKeys, v as validateConsistentOperatorIds, C as sortNumbers, o as KeysharesValidationError, K as KeysharesValidationErrors } from "./globals-
|
|
6
|
-
import { Q, P, O, R } from "./globals-
|
|
5
|
+
import { E as decodeOperatorPublicKey, s as stringifyBigints, F as tryCatch, G as configArgsSchema, H as contracts, I as paid_graph_endpoints, J as graph_endpoints, L as rest_endpoints, j as getClusterSnapshot$1, m as isKeySharesItem, M as registerValidatorsByClusterSizeLimits, g as createClusterId, k as createEmptyCluster, r as roundOperatorFee, N as globals, b as bigintMax, t as ensureNoKeysharesErrors, p as ensureValidatorsUniqueness, q as validateConsistentOperatorPublicKeys, v as validateConsistentOperatorIds, C as sortNumbers, o as KeysharesValidationError, K as KeysharesValidationErrors } from "./globals-CDOcDUnk.mjs";
|
|
6
|
+
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-
|
|
11
|
-
import { O as O2, c, b } from "./KeyShares-
|
|
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:
|
|
4281
|
+
clusterOwner: config2.walletClient.account.address,
|
|
4282
4282
|
operatorIds: cluster.operatorIds.map(BigInt)
|
|
4283
4283
|
},
|
|
4284
4284
|
...writeOptions
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const globals = require("./globals-
|
|
3
|
+
const globals = require("./globals-DsaKgq3v.js");
|
|
4
4
|
const waitForTransaction = async (config, fn) => {
|
|
5
5
|
const hash = await fn;
|
|
6
6
|
return config.publicClient.waitForTransactionReceipt({ hash });
|
package/dist/utils.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o, K, n, _, l, e, d, x, b, a, c, f, G, g, k, E, t, p, y, A, z, j, D, i, h, m, B, u, w, r, C, s, F, v, q } from "./globals-
|
|
1
|
+
import { o, K, n, _, l, e, d, x, b, a, c, f, G, g, k, E, t, p, y, A, z, j, D, i, h, m, B, u, w, r, C, s, F, v, q } from "./globals-CDOcDUnk.mjs";
|
|
2
2
|
const waitForTransaction = async (config, fn) => {
|
|
3
3
|
const hash = await fn;
|
|
4
4
|
return config.publicClient.waitForTransactionReceipt({ hash });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssv-labs/ssv-sdk",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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",
|
|
@@ -65,53 +65,52 @@
|
|
|
65
65
|
"@graphql-codegen/typescript": "4.1.6",
|
|
66
66
|
"@graphql-codegen/typescript-graphql-request": "6.3.0",
|
|
67
67
|
"@graphql-codegen/typescript-operations": "4.6.1",
|
|
68
|
-
"@nomicfoundation/hardhat-toolbox": "
|
|
68
|
+
"@nomicfoundation/hardhat-toolbox": "6.0.0",
|
|
69
69
|
"@nomicfoundation/hardhat-viem": "2.0.6",
|
|
70
70
|
"@openzeppelin/contracts": "4.9.6",
|
|
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": "
|
|
74
|
+
"@release-it/conventional-changelog": "10.0.2",
|
|
75
75
|
"@rollup/plugin-alias": "5.1.1",
|
|
76
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
76
|
+
"@rollup/plugin-commonjs": "28.0.9",
|
|
77
77
|
"@rollup/plugin-json": "6.1.0",
|
|
78
|
-
"@rollup/plugin-node-resolve": "
|
|
78
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
79
79
|
"@rollup/plugin-terser": "0.4.4",
|
|
80
80
|
"@rollup/plugin-typescript": "11.1.6",
|
|
81
|
-
"@rollup/rollup-darwin-x64": "4.44.2",
|
|
82
81
|
"@types/eslint-plugin-prettier": "3.1.3",
|
|
83
82
|
"@types/lodash-es": "4.17.12",
|
|
84
|
-
"@types/node": "
|
|
85
|
-
"@types/node-forge": "1.3.
|
|
83
|
+
"@types/node": "22.17.0",
|
|
84
|
+
"@types/node-forge": "1.3.14",
|
|
86
85
|
"@types/semver": "7.7.0",
|
|
87
86
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
88
87
|
"@typescript-eslint/parser": "7.18.0",
|
|
89
88
|
"@vitest/coverage-v8": "1.6.1",
|
|
90
89
|
"@vitest/ui": "1.6.1",
|
|
91
90
|
"commitizen": "4.3.1",
|
|
92
|
-
"concurrently": "9.2.
|
|
93
|
-
"cz-git": "1.
|
|
91
|
+
"concurrently": "9.2.1",
|
|
92
|
+
"cz-git": "1.12.0",
|
|
94
93
|
"eslint": "8.57.1",
|
|
95
|
-
"eslint-config-prettier": "9.1.
|
|
96
|
-
"eslint-plugin-prettier": "5.5.
|
|
94
|
+
"eslint-config-prettier": "9.1.2",
|
|
95
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
97
96
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
98
|
-
"hardhat": "2.
|
|
97
|
+
"hardhat": "2.27.2",
|
|
99
98
|
"husky": "9.1.7",
|
|
100
99
|
"lint-staged": "15.5.2",
|
|
101
100
|
"prettier": "3.6.2",
|
|
102
|
-
"release-it": "
|
|
103
|
-
"rollup": "4.
|
|
101
|
+
"release-it": "19.0.6",
|
|
102
|
+
"rollup": "4.53.3",
|
|
104
103
|
"rollup-plugin-delete": "2.2.0",
|
|
105
|
-
"rollup-plugin-dts": "6.
|
|
104
|
+
"rollup-plugin-dts": "6.3.0",
|
|
106
105
|
"rollup-plugin-tsconfig-paths": "1.5.2",
|
|
107
106
|
"rollup-plugin-typescript2": "0.36.0",
|
|
108
107
|
"semantic-release": "23.1.1",
|
|
109
108
|
"semver": "7.7.2",
|
|
110
109
|
"typescript": "5.8.3",
|
|
111
|
-
"vite": "5.4.
|
|
110
|
+
"vite": "5.4.21",
|
|
112
111
|
"vite-plugin-dts": "4.5.4",
|
|
113
112
|
"vite-plugin-glob": "0.3.2",
|
|
114
|
-
"vite-plugin-node-polyfills": "0.
|
|
113
|
+
"vite-plugin-node-polyfills": "0.24.0",
|
|
115
114
|
"vitest": "1.6.1"
|
|
116
115
|
},
|
|
117
116
|
"config": {
|
|
@@ -123,16 +122,15 @@
|
|
|
123
122
|
"node": ">=22"
|
|
124
123
|
},
|
|
125
124
|
"dependencies": {
|
|
126
|
-
"@esbuild/darwin-x64": "0.21.5",
|
|
127
125
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
128
|
-
"@safe-global/protocol-kit": "
|
|
126
|
+
"@safe-global/protocol-kit": "5.2.22",
|
|
129
127
|
"abitype": "^1.0.6",
|
|
130
128
|
"bls-eth-wasm": "^1.4.0",
|
|
131
|
-
"class-validator": "
|
|
129
|
+
"class-validator": "0.14.3",
|
|
132
130
|
"dotenv": "^16.4.5",
|
|
133
|
-
"graphql-request": "
|
|
131
|
+
"graphql-request": "7.3.5",
|
|
134
132
|
"lodash-es": "^4.17.21",
|
|
135
|
-
"node-forge": "
|
|
133
|
+
"node-forge": "1.3.3",
|
|
136
134
|
"scrypt-js": "^3.0.1",
|
|
137
135
|
"tslib": "^2.8.1",
|
|
138
136
|
"viem": "^2.21.30",
|