@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.
@@ -92,7 +92,7 @@ import { v4 as uuidv4 } from "uuid";
92
92
  // package.json
93
93
  var package_default = {
94
94
  name: "@obolnetwork/obol-sdk",
95
- version: "2.11.8",
95
+ version: "2.11.9",
96
96
  description: "A package for creating Distributed Validators using the Obol API.",
97
97
  bugs: {
98
98
  url: "https://github.com/obolnetwork/obol-sdk/issues"
@@ -632,7 +632,7 @@ var isContractAvailable = (contractAddress, provider, bytecode) => __async(null,
632
632
  if (bytecode) {
633
633
  return !!code2 && code2 === bytecode;
634
634
  }
635
- return !!code2 && code2 !== "0x" && code2 !== "0x0";
635
+ return !!code2 && code2 !== "0x" && code2 !== "0x0" && !code2.startsWith("0xef0100");
636
636
  });
637
637
  var getProvider = (chainId, rpcUrl) => {
638
638
  const resolvedRpcUrl = rpcUrl != null ? rpcUrl : PROVIDER_MAP[chainId];
@@ -12496,7 +12496,9 @@ var validateEOASignature = ({
12496
12496
  try {
12497
12497
  const sig = ethers2.Signature.from(token);
12498
12498
  const digest2 = TypedDataUtils.eip712Hash(data, SignTypedDataVersion.V4);
12499
- return ethers2.recoverAddress(digest2, sig).toLowerCase() === address.toLocaleLowerCase();
12499
+ const recovered = ethers2.getAddress(ethers2.recoverAddress(digest2, sig));
12500
+ const normalizedAddress = ethers2.getAddress(address);
12501
+ return recovered === normalizedAddress;
12500
12502
  } catch (err) {
12501
12503
  console.error(`validate EOA Signature error: ${err}`);
12502
12504
  throw err;
@@ -17223,6 +17225,8 @@ var ObolSplits = class {
17223
17225
  * **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
17224
17226
  * and not pushed to version control.
17225
17227
  *
17228
+ * **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
17229
+ *
17226
17230
  * @param {OVMRewardsSplitPayload} payload - Data needed to deploy OVM and SplitV2
17227
17231
  * @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
17228
17232
  * @throws Will throw an error if the splitter configuration is not supported or deployment fails
@@ -17359,6 +17363,8 @@ var ObolSplits = class {
17359
17363
  * **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
17360
17364
  * and not pushed to version control.
17361
17365
  *
17366
+ * **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
17367
+ *
17362
17368
  * @param {OVMTotalSplitPayload} payload - Data needed to deploy OVM and SplitV2
17363
17369
  * @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
17364
17370
  * @throws Will throw an error if the splitter configuration is not supported or deployment fails