@obolnetwork/obol-sdk 2.11.7 → 2.11.8
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 +18 -41
- package/dist/browser/src/index.js.map +1 -1
- package/dist/cjs/src/index.js +18 -41
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/esm/src/index.js +18 -41
- package/dist/esm/src/index.js.map +1 -1
- package/dist/types/src/splits/splitHelpers.d.ts +2 -3
- package/dist/types/src/splits/splits.d.ts +3 -3
- package/package.json +1 -1
|
@@ -118,13 +118,13 @@ export declare const requestWithdrawalFromOVM: ({ ovmAddress, pubKeys, amounts,
|
|
|
118
118
|
txHash: string;
|
|
119
119
|
}>;
|
|
120
120
|
/**
|
|
121
|
-
* Deposits to OVM contract
|
|
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
|
|
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
|
}>;
|
|
@@ -77,9 +77,9 @@ export declare class ObolSplits {
|
|
|
77
77
|
txHash: string;
|
|
78
78
|
}>;
|
|
79
79
|
/**
|
|
80
|
-
* Deposits to OVM contract
|
|
80
|
+
* Deposits to OVM contract by sending individual transactions for each deposit.
|
|
81
81
|
*
|
|
82
|
-
* This method allows depositing to an OVM contract
|
|
82
|
+
* This method allows depositing to an OVM contract. Each deposit is sent as a separate transaction
|
|
83
83
|
* Each deposit includes validator public key, withdrawal credentials, signature, deposit data root, and amount.
|
|
84
84
|
*
|
|
85
85
|
* @remarks
|
|
@@ -87,7 +87,7 @@ export declare class ObolSplits {
|
|
|
87
87
|
* and not pushed to version control.
|
|
88
88
|
*
|
|
89
89
|
* @param {OVMDepositPayload} payload - Data needed to deposit to OVM
|
|
90
|
-
* @returns {Promise<{txHashes: string[]}>} Array of transaction hashes for
|
|
90
|
+
* @returns {Promise<{txHashes: string[]}>} Array of transaction hashes, one for each deposit
|
|
91
91
|
* @throws Will throw an error if the signer is not provided, OVM address is invalid, or the deposit fails
|
|
92
92
|
*
|
|
93
93
|
* An example of how to use deposit:
|