@obolnetwork/obol-sdk 2.11.8 → 2.11.9
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/browser/src/index.js +9 -3
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +9 -3
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +9 -3
- package/dist/esm/src/index.js.map +1 -1
- package/dist/types/src/splits/splits.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/src/index.js
CHANGED
|
@@ -171,7 +171,7 @@ var import_uuid = require("uuid");
|
|
|
171
171
|
// package.json
|
|
172
172
|
var package_default = {
|
|
173
173
|
name: "@obolnetwork/obol-sdk",
|
|
174
|
-
version: "2.11.
|
|
174
|
+
version: "2.11.9",
|
|
175
175
|
description: "A package for creating Distributed Validators using the Obol API.",
|
|
176
176
|
bugs: {
|
|
177
177
|
url: "https://github.com/obolnetwork/obol-sdk/issues"
|
|
@@ -709,7 +709,7 @@ var isContractAvailable = (contractAddress, provider, bytecode) => __async(null,
|
|
|
709
709
|
if (bytecode) {
|
|
710
710
|
return !!code2 && code2 === bytecode;
|
|
711
711
|
}
|
|
712
|
-
return !!code2 && code2 !== "0x" && code2 !== "0x0";
|
|
712
|
+
return !!code2 && code2 !== "0x" && code2 !== "0x0" && !code2.startsWith("0xef0100");
|
|
713
713
|
});
|
|
714
714
|
var getProvider = (chainId, rpcUrl) => {
|
|
715
715
|
const resolvedRpcUrl = rpcUrl != null ? rpcUrl : PROVIDER_MAP[chainId];
|
|
@@ -11734,7 +11734,9 @@ var validateEOASignature = ({
|
|
|
11734
11734
|
try {
|
|
11735
11735
|
const sig = import_ethers2.ethers.Signature.from(token);
|
|
11736
11736
|
const digest2 = import_eth_sig_util.TypedDataUtils.eip712Hash(data, import_eth_sig_util.SignTypedDataVersion.V4);
|
|
11737
|
-
|
|
11737
|
+
const recovered = import_ethers2.ethers.getAddress(import_ethers2.ethers.recoverAddress(digest2, sig));
|
|
11738
|
+
const normalizedAddress = import_ethers2.ethers.getAddress(address);
|
|
11739
|
+
return recovered === normalizedAddress;
|
|
11738
11740
|
} catch (err) {
|
|
11739
11741
|
console.error(`validate EOA Signature error: ${err}`);
|
|
11740
11742
|
throw err;
|
|
@@ -16439,6 +16441,8 @@ var ObolSplits = class {
|
|
|
16439
16441
|
* **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
|
|
16440
16442
|
* and not pushed to version control.
|
|
16441
16443
|
*
|
|
16444
|
+
* **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
|
|
16445
|
+
*
|
|
16442
16446
|
* @param {OVMRewardsSplitPayload} payload - Data needed to deploy OVM and SplitV2
|
|
16443
16447
|
* @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
|
|
16444
16448
|
* @throws Will throw an error if the splitter configuration is not supported or deployment fails
|
|
@@ -16575,6 +16579,8 @@ var ObolSplits = class {
|
|
|
16575
16579
|
* **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
|
|
16576
16580
|
* and not pushed to version control.
|
|
16577
16581
|
*
|
|
16582
|
+
* **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
|
|
16583
|
+
*
|
|
16578
16584
|
* @param {OVMTotalSplitPayload} payload - Data needed to deploy OVM and SplitV2
|
|
16579
16585
|
* @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
|
|
16580
16586
|
* @throws Will throw an error if the splitter configuration is not supported or deployment fails
|