@obolnetwork/obol-sdk 2.11.7 → 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.
@@ -118,13 +118,13 @@ export declare const requestWithdrawalFromOVM: ({ ovmAddress, pubKeys, amounts,
118
118
  txHash: string;
119
119
  }>;
120
120
  /**
121
- * Deposits to OVM contract using multicall3 for batch operations
121
+ * Deposits to OVM contract by sending individual transactions for each deposit.
122
122
  * @param ovmAddress - The address of the OVM contract
123
123
  * @param deposits - Array of deposit objects with all required parameters
124
124
  * @param signer - The signer to use for the transaction
125
125
  * @returns Promise that resolves to an array of transaction hashes
126
126
  */
127
- export declare const depositWithMulticall3: ({ ovmAddress, deposits, signer, chainId, }: {
127
+ export declare const depositOVM: ({ ovmAddress, deposits, signer, }: {
128
128
  ovmAddress: string;
129
129
  deposits: Array<{
130
130
  pubkey: string;
@@ -134,7 +134,6 @@ export declare const depositWithMulticall3: ({ ovmAddress, deposits, signer, cha
134
134
  amount: string;
135
135
  }>;
136
136
  signer: SignerType;
137
- chainId: number;
138
137
  }) => Promise<{
139
138
  txHashes: string[];
140
139
  }>;
@@ -22,6 +22,8 @@ export declare class ObolSplits {
22
22
  * **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
23
23
  * and not pushed to version control.
24
24
  *
25
+ * **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
26
+ *
25
27
  * @param {OVMRewardsSplitPayload} payload - Data needed to deploy OVM and SplitV2
26
28
  * @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
27
29
  * @throws Will throw an error if the splitter configuration is not supported or deployment fails
@@ -40,6 +42,8 @@ export declare class ObolSplits {
40
42
  * **⚠️ Important:** If you're storing the private key in an `.env` file, ensure it is securely managed
41
43
  * and not pushed to version control.
42
44
  *
45
+ * **📌 Note:** The Obol Validator Manager (OVM) feature is only enabled on Hoodi on launchpad.
46
+ *
43
47
  * @param {OVMTotalSplitPayload} payload - Data needed to deploy OVM and SplitV2
44
48
  * @returns {Promise<ClusterValidator>} OVM address as withdrawal address and splitter as fee recipient
45
49
  * @throws Will throw an error if the splitter configuration is not supported or deployment fails
@@ -77,9 +81,9 @@ export declare class ObolSplits {
77
81
  txHash: string;
78
82
  }>;
79
83
  /**
80
- * Deposits to OVM contract using multicall3 for batch operations.
84
+ * Deposits to OVM contract by sending individual transactions for each deposit.
81
85
  *
82
- * This method allows depositing to an OVM contract using multicall3 for efficient batch processing.
86
+ * This method allows depositing to an OVM contract. Each deposit is sent as a separate transaction
83
87
  * Each deposit includes validator public key, withdrawal credentials, signature, deposit data root, and amount.
84
88
  *
85
89
  * @remarks
@@ -87,7 +91,7 @@ export declare class ObolSplits {
87
91
  * and not pushed to version control.
88
92
  *
89
93
  * @param {OVMDepositPayload} payload - Data needed to deposit to OVM
90
- * @returns {Promise<{txHashes: string[]}>} Array of transaction hashes for all batches
94
+ * @returns {Promise<{txHashes: string[]}>} Array of transaction hashes, one for each deposit
91
95
  * @throws Will throw an error if the signer is not provided, OVM address is invalid, or the deposit fails
92
96
  *
93
97
  * An example of how to use deposit:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-sdk",
3
- "version": "2.11.7",
3
+ "version": "2.11.9",
4
4
  "description": "A package for creating Distributed Validators using the Obol API.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/obolnetwork/obol-sdk/issues"