@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/esm/src/index.js
CHANGED
|
@@ -89,7 +89,7 @@ import { v4 as uuidv4 } from "uuid";
|
|
|
89
89
|
// package.json
|
|
90
90
|
var package_default = {
|
|
91
91
|
name: "@obolnetwork/obol-sdk",
|
|
92
|
-
version: "2.11.
|
|
92
|
+
version: "2.11.9",
|
|
93
93
|
description: "A package for creating Distributed Validators using the Obol API.",
|
|
94
94
|
bugs: {
|
|
95
95
|
url: "https://github.com/obolnetwork/obol-sdk/issues"
|
|
@@ -629,7 +629,7 @@ var isContractAvailable = (contractAddress, provider, bytecode) => __async(null,
|
|
|
629
629
|
if (bytecode) {
|
|
630
630
|
return !!code2 && code2 === bytecode;
|
|
631
631
|
}
|
|
632
|
-
return !!code2 && code2 !== "0x" && code2 !== "0x0";
|
|
632
|
+
return !!code2 && code2 !== "0x" && code2 !== "0x0" && !code2.startsWith("0xef0100");
|
|
633
633
|
});
|
|
634
634
|
var getProvider = (chainId, rpcUrl) => {
|
|
635
635
|
const resolvedRpcUrl = rpcUrl != null ? rpcUrl : PROVIDER_MAP[chainId];
|
|
@@ -11685,7 +11685,9 @@ var validateEOASignature = ({
|
|
|
11685
11685
|
try {
|
|
11686
11686
|
const sig = ethers2.Signature.from(token);
|
|
11687
11687
|
const digest2 = TypedDataUtils.eip712Hash(data, SignTypedDataVersion.V4);
|
|
11688
|
-
|
|
11688
|
+
const recovered = ethers2.getAddress(ethers2.recoverAddress(digest2, sig));
|
|
11689
|
+
const normalizedAddress = ethers2.getAddress(address);
|
|
11690
|
+
return recovered === normalizedAddress;
|
|
11689
11691
|
} catch (err) {
|
|
11690
11692
|
console.error(`validate EOA Signature error: ${err}`);
|
|
11691
11693
|
throw err;
|
|
@@ -16412,6 +16414,8 @@ var ObolSplits = class {
|
|
|
16412
16414
|
* **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
|
|
16413
16415
|
* and not pushed to version control.
|
|
16414
16416
|
*
|
|
16417
|
+
* **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
|
|
16418
|
+
*
|
|
16415
16419
|
* @param {OVMRewardsSplitPayload} payload - Data needed to deploy OVM and SplitV2
|
|
16416
16420
|
* @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
|
|
16417
16421
|
* @throws Will throw an error if the splitter configuration is not supported or deployment fails
|
|
@@ -16548,6 +16552,8 @@ var ObolSplits = class {
|
|
|
16548
16552
|
* **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
|
|
16549
16553
|
* and not pushed to version control.
|
|
16550
16554
|
*
|
|
16555
|
+
* **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
|
|
16556
|
+
*
|
|
16551
16557
|
* @param {OVMTotalSplitPayload} payload - Data needed to deploy OVM and SplitV2
|
|
16552
16558
|
* @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
|
|
16553
16559
|
* @throws Will throw an error if the splitter configuration is not supported or deployment fails
|