@obolnetwork/obol-sdk 2.11.5-rc.2 → 2.11.6
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 +12 -8
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +5 -7
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +12 -8
- package/dist/esm/src/index.js.map +1 -1
- package/dist/types/src/eoa/eoaHelpers.d.ts +2 -3
- package/package.json +1 -1
|
@@ -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.
|
|
95
|
+
version: "2.11.6",
|
|
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"
|
|
@@ -13477,7 +13477,13 @@ var eoaDepositPayloadSchema = {
|
|
|
13477
13477
|
};
|
|
13478
13478
|
|
|
13479
13479
|
// src/splits/splitHelpers.ts
|
|
13480
|
-
import {
|
|
13480
|
+
import {
|
|
13481
|
+
Contract,
|
|
13482
|
+
Interface,
|
|
13483
|
+
parseEther,
|
|
13484
|
+
ZeroAddress as ZeroAddress2,
|
|
13485
|
+
getAddress as toChecksumAddress
|
|
13486
|
+
} from "ethers";
|
|
13481
13487
|
|
|
13482
13488
|
// src/abi/OWR.ts
|
|
13483
13489
|
var OWRFactoryContract = {
|
|
@@ -16044,7 +16050,7 @@ var deployOVMContract = (_0) => __async(null, [_0], function* ({
|
|
|
16044
16050
|
throw new Error("Failed to extract OVM address from transaction logs");
|
|
16045
16051
|
}
|
|
16046
16052
|
const ovmAddress = "0x" + ovmAddressLog.slice(26, 66);
|
|
16047
|
-
return ovmAddress;
|
|
16053
|
+
return toChecksumAddress(ovmAddress);
|
|
16048
16054
|
} catch (error) {
|
|
16049
16055
|
throw new Error(
|
|
16050
16056
|
`Failed to deploy OVM contract: ${(_c = error.message) != null ? _c : "OVM deployment failed"}`
|
|
@@ -17544,11 +17550,10 @@ function submitEOAWithdrawalRequest(_0) {
|
|
|
17544
17550
|
withdrawalContractAddress,
|
|
17545
17551
|
requiredFee,
|
|
17546
17552
|
chainId,
|
|
17547
|
-
signer
|
|
17548
|
-
provider
|
|
17553
|
+
signer
|
|
17549
17554
|
}) {
|
|
17550
17555
|
if (!withdrawalAddress) throw new Error("No withdrawal address provided");
|
|
17551
|
-
if (
|
|
17556
|
+
if (allocation === void 0 || allocation === null) throw new Error("No allocation provided");
|
|
17552
17557
|
const amountInGwei = BigInt(Math.floor(Number(allocation) * ETHER_TO_GWEI));
|
|
17553
17558
|
const data = `0x${pubkey.slice(2)}${amountInGwei.toString(16).padStart(16, "0")}`;
|
|
17554
17559
|
const tx = yield signer.sendTransaction({
|
|
@@ -17665,8 +17670,7 @@ var EOA = class {
|
|
|
17665
17670
|
withdrawalContractAddress: chainConfig.EOA_WITHDRAWAL_CONTRACT.address,
|
|
17666
17671
|
requiredFee: validatedPayload.requiredFee,
|
|
17667
17672
|
chainId: this.chainId,
|
|
17668
|
-
signer: this.signer
|
|
17669
|
-
provider: this.provider
|
|
17673
|
+
signer: this.signer
|
|
17670
17674
|
});
|
|
17671
17675
|
});
|
|
17672
17676
|
}
|