Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 34 additions & 49 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineChain, parseGwei, decodeEventLog } from "viem";
import { i as isObjectLike$1, b as baseGetTag, a as isObject, c as configArgsSchema, s as stringifyBigints, d as isUndefined, t as tryCatch$1 } from "./try-catch-Cen4ib23.js";
import { i as isObjectLike$1, b as baseGetTag, a as isObject, c as configArgsSchema, s as stringifyBigints, d as isUndefined, t as tryCatch$1 } from "./try-catch-DGs45pp3.js";
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
function getAugmentedNamespace(n) {
if (Object.prototype.hasOwnProperty.call(n, "__esModule")) return n;
Expand Down Expand Up @@ -288,7 +288,6 @@ function fromByteArray(uint8) {
return parts.join("");
}
var ieee754 = {};
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
var e, m;
var eLen = nBytes * 8 - mLen - 1;
Expand Down Expand Up @@ -366,12 +365,6 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
}
buffer2[offset + i2 - d] |= s * 128;
};
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
(function(exports2) {
const base64 = base64Js;
const ieee754$1 = ieee754;
Expand Down Expand Up @@ -1940,7 +1933,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
function numberIsNaN(obj) {
return obj !== obj;
}
const hexSliceLookupTable = function() {
const hexSliceLookupTable = (function() {
const alphabet = "0123456789abcdef";
const table = new Array(256);
for (let i2 = 0; i2 < 16; ++i2) {
Expand All @@ -1950,7 +1943,7 @@ ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
}
}
return table;
}();
})();
function defineBigIntMethod(fn) {
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
}
Expand Down Expand Up @@ -2533,7 +2526,6 @@ function requireDist() {
return parts.join("");
}
var ieee7542 = {};
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
ieee7542.read = function(buffer3, offset, isLE, mLen, nBytes) {
var e, m;
var eLen = nBytes * 8 - mLen - 1;
Expand Down Expand Up @@ -2611,12 +2603,6 @@ function requireDist() {
}
buffer3[offset + i3 - d] |= s * 128;
};
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
(function(exports3) {
const base64 = base64Js2;
const ieee754$1 = ieee7542;
Expand Down Expand Up @@ -4185,7 +4171,7 @@ function requireDist() {
function numberIsNaN(obj) {
return obj !== obj;
}
const hexSliceLookupTable = function() {
const hexSliceLookupTable = (function() {
const alphabet = "0123456789abcdef";
const table = new Array(256);
for (let i3 = 0; i3 < 16; ++i3) {
Expand All @@ -4195,7 +4181,7 @@ function requireDist() {
}
}
return table;
}();
})();
function defineBigIntMethod(fn) {
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
}
Expand Down Expand Up @@ -4225,7 +4211,6 @@ function requireDist() {
})(dist);
return dist;
}
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var hasRequiredSafeBuffer$1;
function requireSafeBuffer$1() {
if (hasRequiredSafeBuffer$1) return safeBuffer$1.exports;
Expand Down Expand Up @@ -4748,7 +4733,7 @@ function requireShams$1() {
return true;
}
var obj = {};
var sym = Symbol("test");
var sym = /* @__PURE__ */ Symbol("test");
var symObj = Object(sym);
if (typeof sym === "string") {
return false;
Expand Down Expand Up @@ -4871,7 +4856,7 @@ function requireHasSymbols() {
if (typeof origSymbol("foo") !== "symbol") {
return false;
}
if (typeof Symbol("bar") !== "symbol") {
if (typeof /* @__PURE__ */ Symbol("bar") !== "symbol") {
return false;
}
return hasSymbolSham();
Expand Down Expand Up @@ -5020,7 +5005,7 @@ function requireGetIntrinsic() {
var throwTypeError = function() {
throw new $TypeError();
};
var ThrowTypeError = $gOPD ? function() {
var ThrowTypeError = $gOPD ? (function() {
try {
arguments.callee;
return throwTypeError;
Expand All @@ -5031,7 +5016,7 @@ function requireGetIntrinsic() {
return throwTypeError;
}
}
}() : throwTypeError;
})() : throwTypeError;
var hasSymbols2 = requireHasSymbols()();
var hasProto2 = /* @__PURE__ */ requireHasProto()();
var getProto = Object.getPrototypeOf || (hasProto2 ? function(x) {
Expand Down Expand Up @@ -5533,9 +5518,9 @@ function requireIsArguments() {
}
return value !== null && typeof value === "object" && typeof value.length === "number" && value.length >= 0 && $toString(value) !== "[object Array]" && $toString(value.callee) === "[object Function]";
};
var supportsStandardArguments = function() {
var supportsStandardArguments = (function() {
return isStandardArguments(arguments);
}();
})();
isStandardArguments.isLegacyArguments = isLegacyArguments;
isArguments = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
return isArguments;
Expand Down Expand Up @@ -6613,7 +6598,7 @@ function requireUtil$1() {
function hasOwnProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? Symbol("util.promisify.custom") : void 0;
var kCustomPromisifiedSymbol = typeof Symbol !== "undefined" ? /* @__PURE__ */ Symbol("util.promisify.custom") : void 0;
exports2.promisify = function promisify(original) {
if (typeof original !== "function")
throw new TypeError('The "original" argument must be of type Function');
Expand Down Expand Up @@ -6786,7 +6771,7 @@ function requireBuffer_list() {
function copyBuffer(src, target, offset) {
Buffer2.prototype.copy.call(src, target, offset);
}
buffer_list = /* @__PURE__ */ function() {
buffer_list = /* @__PURE__ */ (function() {
function BufferList2() {
_classCallCheck(this, BufferList2);
this.head = null;
Expand Down Expand Up @@ -6948,7 +6933,7 @@ function requireBuffer_list() {
}
}]);
return BufferList2;
}();
})();
return buffer_list;
}
var destroy_1$1;
Expand Down Expand Up @@ -7062,13 +7047,13 @@ function requireErrorsBrowser() {
return message(arg1, arg2, arg3);
}
}
var NodeError = /* @__PURE__ */ function(_Base) {
var NodeError = /* @__PURE__ */ (function(_Base) {
_inheritsLoose(NodeError2, _Base);
function NodeError2(arg1, arg2, arg3) {
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
}
return NodeError2;
}(Base);
})(Base);
NodeError.prototype.name = Base.name;
NodeError.prototype.code = code2;
codes[code2] = NodeError;
Expand Down Expand Up @@ -8121,13 +8106,13 @@ function requireAsync_iterator() {
return (hint === "string" ? String : Number)(input);
}
var finished = requireEndOfStream();
var kLastResolve = Symbol("lastResolve");
var kLastReject = Symbol("lastReject");
var kError = Symbol("error");
var kEnded = Symbol("ended");
var kLastPromise = Symbol("lastPromise");
var kHandlePromise = Symbol("handlePromise");
var kStream = Symbol("stream");
var kLastResolve = /* @__PURE__ */ Symbol("lastResolve");
var kLastReject = /* @__PURE__ */ Symbol("lastReject");
var kError = /* @__PURE__ */ Symbol("error");
var kEnded = /* @__PURE__ */ Symbol("ended");
var kLastPromise = /* @__PURE__ */ Symbol("lastPromise");
var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise");
var kStream = /* @__PURE__ */ Symbol("stream");
function createIterResult(value, done) {
return {
value,
Expand Down Expand Up @@ -8891,11 +8876,11 @@ function require_stream_readable$1() {
});
for (var i2 in stream) {
if (this[i2] === void 0 && typeof stream[i2] === "function") {
this[i2] = /* @__PURE__ */ function methodWrap(method) {
this[i2] = /* @__PURE__ */ (function methodWrap(method) {
return function methodWrapReturnFunction() {
return stream[method].apply(stream, arguments);
};
}(i2);
})(i2);
}
}
for (var n = 0; n < kProxyEvents.length; n++) {
Expand Down Expand Up @@ -12864,7 +12849,7 @@ function requireAes() {
return [t0, t1, t2, t3];
}
var RCON = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54];
var G = function() {
var G = (function() {
var d = new Array(256);
for (var j = 0; j < 256; j++) {
if (j < 128) {
Expand Down Expand Up @@ -12910,7 +12895,7 @@ function requireAes() {
SUB_MIX,
INV_SUB_MIX
};
}();
})();
function AES(key2) {
this._key = asUInt32Array(key2);
this._reset();
Expand Down Expand Up @@ -17028,7 +17013,7 @@ function requireBufferList() {
function copyBuffer(src, target, offset) {
src.copy(target, offset);
}
module.exports = function() {
module.exports = (function() {
function BufferList2() {
_classCallCheck(this, BufferList2);
this.head = null;
Expand Down Expand Up @@ -17082,7 +17067,7 @@ function requireBufferList() {
return ret;
};
return BufferList2;
}();
})();
if (util2 && util2.inspect && util2.inspect.custom) {
module.exports.prototype[util2.inspect.custom] = function() {
var obj = util2.inspect({ length: this.length });
Expand Down Expand Up @@ -18229,11 +18214,11 @@ function require_stream_readable() {
});
for (var i2 in stream) {
if (this[i2] === void 0 && typeof stream[i2] === "function") {
this[i2] = /* @__PURE__ */ function(method) {
this[i2] = /* @__PURE__ */ (function(method) {
return function() {
return stream[method].apply(stream, arguments);
};
}(i2);
})(i2);
}
}
for (var n = 0; n < kProxyEvents.length; n++) {
Expand Down Expand Up @@ -18808,7 +18793,7 @@ function requireBn() {
};
if (typeof Symbol !== "undefined" && typeof Symbol.for === "function") {
try {
BN.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect2;
BN.prototype[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = inspect2;
} catch (e) {
BN.prototype.inspect = inspect2;
}
Expand Down Expand Up @@ -26293,7 +26278,7 @@ function requireVmBrowserify() {
fn(xs[i2], i2, xs);
}
};
var defineProp = function() {
var defineProp = (function() {
try {
Object.defineProperty({}, "_", {});
return function(obj, name, value) {
Expand All @@ -26309,7 +26294,7 @@ function requireVmBrowserify() {
obj[name] = value;
};
}
}();
})();
var globals = [
"Array",
"Boolean",
Expand Down
5 changes: 3 additions & 2 deletions dist/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { e as defineProperty, f as baseAssignValue, g as assignValue, a as isObject, h as isArrayLike, j as isIndex, k as eq, l as isPrototype, m as arrayLikeKeys, i as isObjectLike, b as baseGetTag, n as getPrototype, o as isBuffer, p as isTypedArray, q as isArray, r as cloneBuffer, u as cloneTypedArray, v as isArguments, w as isFunction, x as initCloneObject, S as Stack } from "./try-catch-Cen4ib23.js";
import { C, B, y, z, A, F, c, D, E, s, t } from "./try-catch-Cen4ib23.js";
import { e as defineProperty, f as baseAssignValue, g as assignValue, a as isObject, h as isArrayLike, j as isIndex, k as eq, l as isPrototype, m as arrayLikeKeys, i as isObjectLike, b as baseGetTag, n as getPrototype, o as isBuffer, p as isTypedArray, q as isArray, r as cloneBuffer, u as cloneTypedArray, v as isArguments, w as isFunction, x as initCloneObject, S as Stack } from "./try-catch-DGs45pp3.js";
import { C, B, y, z, A, F, c, D, E, s, t } from "./try-catch-DGs45pp3.js";
import { isAddress, formatUnits, decodeAbiParameters } from "viem";
function identity(value) {
return value;
Expand Down Expand Up @@ -374,6 +374,7 @@ class KeysharesValidationError extends Error {
super(KeysharesValidationErrorsMessages[code]);
this.code = code;
}
code;
}
const validateConsistentOperatorIds = (keyshares) => {
const operatorIds = sortNumbers(keyshares[0].payload.operatorIds);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"rollup-plugin-typescript2": "0.36.0",
"semantic-release": "24.2.7",
"typescript": "5.8.3",
"vite": "7.0.4",
"vite": "7.3.2",
"vite-plugin-dts": "4.5.4",
"vite-plugin-glob": "0.3.2",
"vite-plugin-node-polyfills": "0.24.0",
Expand Down
Loading