ox 0.14.47 → 0.14.49

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.
@@ -95,7 +95,7 @@ export type Type = typeof type
95
95
  *
96
96
  * TxEnvelopeEip8141.assert({
97
97
  * chainId: 1,
98
- * frames: [{ gas: 50_000n, mode: 'verify' }],
98
+ * frames: [{ executionGas: 50_000n, mode: 'verify' }],
99
99
  * sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
100
100
  * })
101
101
  * ```
@@ -151,7 +151,7 @@ export function assert(envelope: PartialBy<TxEnvelopeEip8141, 'type'>): void {
151
151
  }
152
152
  if (blobVersionedHashes.length === 0 && maxFeePerBlobGas !== 0n)
153
153
  throw new InvalidError('maxFeePerBlobGas must be zero without blobs.')
154
- let gas = 0n
154
+ let executionGas = 0n
155
155
  let stateGas = 0n
156
156
  let previousBatch = false
157
157
  let expiry = false
@@ -198,7 +198,7 @@ export function assert(envelope: PartialBy<TxEnvelopeEip8141, 'type'>): void {
198
198
  throw new InvalidError('Invalid or duplicate expiry verifier frame.')
199
199
  expiry = true
200
200
  }
201
- gas += frame.gas ?? 0n
201
+ executionGas += frame.executionGas ?? 0n
202
202
  stateGas += frame.stateGas ?? 0n
203
203
  count(frame.data ?? '0x')
204
204
  if (
@@ -215,10 +215,10 @@ export function assert(envelope: PartialBy<TxEnvelopeEip8141, 'type'>): void {
215
215
  count(payload)
216
216
  count(signature)
217
217
  }
218
- if (gas + stateGas >= 2n ** 64n)
218
+ if (executionGas + stateGas >= 2n ** 64n)
219
219
  throw new InvalidError('Combined frame gas must be less than 2^64.')
220
220
  if (
221
- intrinsic + tokens * 4n + gas > 16_777_216n ||
221
+ intrinsic + tokens * 4n + executionGas > 16_777_216n ||
222
222
  intrinsic + size * 64n > 16_777_216n
223
223
  )
224
224
  throw new InvalidError('Transaction execution gas exceeds 16777216.')
@@ -342,8 +342,8 @@ export declare namespace deserialize {
342
342
  * chainId: 1,
343
343
  * frames: [
344
344
  * {
345
+ * executionGas: 50_000n,
345
346
  * flags: 'approveExecutionAndPayment',
346
- * gas: 50_000n,
347
347
  * mode: 'verify'
348
348
  * }
349
349
  * ],
@@ -508,8 +508,8 @@ export declare namespace toRpc {
508
508
  * chainId: 1,
509
509
  * frames: [
510
510
  * {
511
+ * executionGas: 50_000n,
511
512
  * flags: 'approveExecutionAndPayment',
512
- * gas: 50_000n,
513
513
  * mode: 'verify'
514
514
  * }
515
515
  * ],
@@ -594,7 +594,7 @@ export declare namespace hash {
594
594
  *
595
595
  * const envelope = TxEnvelopeEip8141.from({
596
596
  * chainId: 1,
597
- * frames: [{ gas: 50_000n, mode: 'sender' }],
597
+ * frames: [{ executionGas: 50_000n, mode: 'sender' }],
598
598
  * sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
599
599
  * })
600
600
  * const serialized = TxEnvelopeEip8141.serialize(envelope)
package/index.ts CHANGED
@@ -1562,13 +1562,13 @@ export * as Filter from './core/Filter.js'
1562
1562
  * import { Frame } from 'ox'
1563
1563
  *
1564
1564
  * const frame = Frame.from({
1565
+ * executionGas: 50_000n,
1565
1566
  * flags: 'approveExecutionAndPayment',
1566
- * gas: 50_000n,
1567
1567
  * mode: 'verify'
1568
1568
  * })
1569
1569
  * ```
1570
1570
  *
1571
- * @category Transaction Envelopes
1571
+ * @category Frames (EIP-8141)
1572
1572
  */
1573
1573
  export * as Frame from './core/Frame.js'
1574
1574
  /**
@@ -1576,7 +1576,7 @@ export * as Frame from './core/Frame.js'
1576
1576
  *
1577
1577
  * Frame receipts include execution gas, state gas, logs, and execution status.
1578
1578
  *
1579
- * @category Execution Spec
1579
+ * @category Frames (EIP-8141)
1580
1580
  */
1581
1581
  export * as FrameReceipt from './core/FrameReceipt.js'
1582
1582
  /**
@@ -1598,7 +1598,7 @@ export * as FrameReceipt from './core/FrameReceipt.js'
1598
1598
  * // @log: { payload: '0x', scheme: 'arbitrary', signature: '0xaabb' }
1599
1599
  * ```
1600
1600
  *
1601
- * @category Transaction Envelopes
1601
+ * @category Frames (EIP-8141)
1602
1602
  */
1603
1603
  export * as FrameSignature from './core/FrameSignature.js'
1604
1604
  /**
@@ -3335,7 +3335,7 @@ export * as TxEnvelopeEip7702 from './core/TxEnvelopeEip7702.js'
3335
3335
  *
3336
3336
  * const envelope = TxEnvelopeEip8141.from({
3337
3337
  * chainId: 1,
3338
- * frames: [{ gas: 50_000n, mode: 'sender' }],
3338
+ * frames: [{ executionGas: 50_000n, mode: 'sender' }],
3339
3339
  * sender: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8'
3340
3340
  * })
3341
3341
  * ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ox",
3
3
  "description": "Ethereum Standard Library",
4
- "version": "0.14.47",
4
+ "version": "0.14.49",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
package/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** @internal */
2
- export const version = '0.14.47'
2
+ export const version = '0.14.49'