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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.4.1] — 2026-04-25
4
+
5
+ ### Changed
6
+ - `estimateBatch` JSDoc updated to reflect snake_case field names (`total_gas`, `inner_gas`) aligning with `shell-chain v0.18.1` wire format.
7
+
3
8
  ## [0.4.0] — 2026-05-16
4
9
 
5
10
  ### Added
@@ -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 `totalGas`, `perInner`, and breakdown fields.
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.totalGas, 16);
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 `totalGas`, `perInner`, and breakdown fields.
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.totalGas, 16);
189
+ * const totalGas = parseInt(estimate.total_gas, 16);
190
190
  * ```
191
191
  */
192
192
  async estimateBatch(request) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shell-sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "TypeScript SDK for Shell Chain — build quantum-safe dApps before Q-Day.",
5
5
  "license": "MIT",
6
6
  "type": "module",