@obolnetwork/obol-sdk 2.11.5 → 2.11.7

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.
@@ -1,8 +1,8 @@
1
- import { type SignerType, type ProviderType } from '../types.js';
1
+ import { type SignerType } from '../types.js';
2
2
  /**
3
3
  * Helper function to submit withdrawal request for EOA
4
4
  */
5
- export declare function submitEOAWithdrawalRequest({ pubkey, allocation, withdrawalAddress, withdrawalContractAddress, requiredFee, chainId, signer, provider, }: {
5
+ export declare function submitEOAWithdrawalRequest({ pubkey, allocation, withdrawalAddress, withdrawalContractAddress, requiredFee, chainId, signer, }: {
6
6
  pubkey: string;
7
7
  allocation: number;
8
8
  withdrawalAddress: string;
@@ -10,7 +10,6 @@ export declare function submitEOAWithdrawalRequest({ pubkey, allocation, withdra
10
10
  requiredFee: string;
11
11
  chainId: number;
12
12
  signer: SignerType;
13
- provider: ProviderType;
14
13
  }): Promise<{
15
14
  txHash: string | null;
16
15
  }>;
@@ -104,6 +104,7 @@ export declare const deployOVMAndSplitV2: ({ ovmArgs, rewardRecipients, isReward
104
104
  * @param ovmAddress - The address of the OVM contract
105
105
  * @param pubKeys - Array of validator public keys in bytes format
106
106
  * @param amounts - Array of withdrawal amounts in wei (uint64)
107
+ * @param withdrawalFees - Total withdrawal fees in wei
107
108
  * @param signer - The signer to use for the transaction
108
109
  * @returns Promise that resolves to the transaction hash
109
110
  */
@@ -67,7 +67,8 @@ export declare class ObolSplits {
67
67
  * const result = await client.splits.requestWithdrawal({
68
68
  * ovmAddress: '0x1234567890123456789012345678901234567890',
69
69
  * pubKeys: ['0x123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456'],
70
- * amounts: ['32000000000'] // 32 ETH in gwei
70
+ * amounts: ['32000000000'], // 32 ETH in gwei
71
+ * withdrawalFees: '1000000000000000' // Total fees in wei
71
72
  * });
72
73
  * console.log('Withdrawal requested:', result.txHash);
73
74
  * ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obolnetwork/obol-sdk",
3
- "version": "2.11.5",
3
+ "version": "2.11.7",
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"
@@ -21,10 +21,10 @@
21
21
  "npm:publish:next": "npm publish --tag next",
22
22
  "release": "release-it",
23
23
  "release:dry": "release-it --dry-run --no-npm",
24
- "lint": "eslint \"{src}/**/*.{js,ts}\" --fix",
24
+ "lint": "eslint ./src --ext .ts,.js --fix",
25
25
  "lint-ci": "eslint ./src --ext .ts,.js",
26
26
  "prettier-ci": "prettier --check ./src --ext .ts,.js",
27
- "prettier": "prettier --write \"{src}/**/*.{js,ts}\"",
27
+ "prettier": "prettier --write \"src/**/*.{js,ts}\"",
28
28
  "docs": "typedoc"
29
29
  },
30
30
  "main": "./dist/cjs/src/index.js",