shell-sdk 0.4.0 → 0.4.1
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/CHANGELOG.md +5 -0
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/provider.d.ts
CHANGED
|
@@ -189,14 +189,14 @@ export declare class ShellProvider {
|
|
|
189
189
|
* Calls `shell_estimateBatch`.
|
|
190
190
|
*
|
|
191
191
|
* @param request - Batch estimate request with inner calls and optional paymaster.
|
|
192
|
-
* @returns Gas estimates including `
|
|
192
|
+
* @returns Gas estimates including `total_gas`, `per_inner`, and breakdown fields.
|
|
193
193
|
*
|
|
194
194
|
* @example
|
|
195
195
|
* ```typescript
|
|
196
196
|
* const estimate = await provider.estimateBatch({
|
|
197
197
|
* inner_calls: [{ to: "pq1…", value: "0x0", gas_limit: "0x5208" }],
|
|
198
198
|
* });
|
|
199
|
-
* const totalGas = parseInt(estimate.
|
|
199
|
+
* const totalGas = parseInt(estimate.total_gas, 16);
|
|
200
200
|
* ```
|
|
201
201
|
*/
|
|
202
202
|
estimateBatch(request: ShellEstimateBatchRequest): Promise<ShellEstimateBatchResult>;
|
package/dist/provider.js
CHANGED
|
@@ -179,14 +179,14 @@ export class ShellProvider {
|
|
|
179
179
|
* Calls `shell_estimateBatch`.
|
|
180
180
|
*
|
|
181
181
|
* @param request - Batch estimate request with inner calls and optional paymaster.
|
|
182
|
-
* @returns Gas estimates including `
|
|
182
|
+
* @returns Gas estimates including `total_gas`, `per_inner`, and breakdown fields.
|
|
183
183
|
*
|
|
184
184
|
* @example
|
|
185
185
|
* ```typescript
|
|
186
186
|
* const estimate = await provider.estimateBatch({
|
|
187
187
|
* inner_calls: [{ to: "pq1…", value: "0x0", gas_limit: "0x5208" }],
|
|
188
188
|
* });
|
|
189
|
-
* const totalGas = parseInt(estimate.
|
|
189
|
+
* const totalGas = parseInt(estimate.total_gas, 16);
|
|
190
190
|
* ```
|
|
191
191
|
*/
|
|
192
192
|
async estimateBatch(request) {
|