ox 0.9.16 → 0.10.0

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.
Files changed (216) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +4 -4
  3. package/TxEnvelope/package.json +6 -0
  4. package/TxEnvelopeEip1559/package.json +6 -0
  5. package/TxEnvelopeEip2930/package.json +6 -0
  6. package/TxEnvelopeEip4844/package.json +6 -0
  7. package/TxEnvelopeEip7702/package.json +6 -0
  8. package/TxEnvelopeLegacy/package.json +6 -0
  9. package/_cjs/core/{TransactionEnvelope.js → TxEnvelope.js} +1 -1
  10. package/_cjs/core/TxEnvelope.js.map +1 -0
  11. package/_cjs/core/{TransactionEnvelopeEip1559.js → TxEnvelopeEip1559.js} +2 -2
  12. package/_cjs/core/TxEnvelopeEip1559.js.map +1 -0
  13. package/_cjs/core/{TransactionEnvelopeEip2930.js → TxEnvelopeEip2930.js} +2 -2
  14. package/_cjs/core/TxEnvelopeEip2930.js.map +1 -0
  15. package/_cjs/core/{TransactionEnvelopeEip4844.js → TxEnvelopeEip4844.js} +4 -4
  16. package/_cjs/core/TxEnvelopeEip4844.js.map +1 -0
  17. package/_cjs/core/{TransactionEnvelopeEip7702.js → TxEnvelopeEip7702.js} +4 -4
  18. package/_cjs/core/TxEnvelopeEip7702.js.map +1 -0
  19. package/_cjs/core/{TransactionEnvelopeLegacy.js → TxEnvelopeLegacy.js} +2 -2
  20. package/_cjs/core/TxEnvelopeLegacy.js.map +1 -0
  21. package/_cjs/core/WebAuthnP256.js +1 -1
  22. package/_cjs/core/WebAuthnP256.js.map +1 -1
  23. package/_cjs/erc8021/Attribution.js +36 -6
  24. package/_cjs/erc8021/Attribution.js.map +1 -1
  25. package/_cjs/index.docs.js +1 -0
  26. package/_cjs/index.docs.js.map +1 -1
  27. package/_cjs/index.js +7 -7
  28. package/_cjs/index.js.map +1 -1
  29. package/_cjs/tempo/AuthorizationTempo.js +101 -0
  30. package/_cjs/tempo/AuthorizationTempo.js.map +1 -0
  31. package/_cjs/tempo/KeyAuthorization.js +123 -0
  32. package/_cjs/tempo/KeyAuthorization.js.map +1 -0
  33. package/_cjs/tempo/PoolId.js +10 -0
  34. package/_cjs/tempo/PoolId.js.map +1 -0
  35. package/_cjs/tempo/SignatureEnvelope.js +394 -0
  36. package/_cjs/tempo/SignatureEnvelope.js.map +1 -0
  37. package/_cjs/tempo/Tick.js +77 -0
  38. package/_cjs/tempo/Tick.js.map +1 -0
  39. package/_cjs/tempo/TokenId.js +28 -0
  40. package/_cjs/tempo/TokenId.js.map +1 -0
  41. package/_cjs/tempo/TokenRole.js +26 -0
  42. package/_cjs/tempo/TokenRole.js.map +1 -0
  43. package/_cjs/tempo/Transaction.js +80 -0
  44. package/_cjs/tempo/Transaction.js.map +1 -0
  45. package/_cjs/tempo/TransactionReceipt.js +26 -0
  46. package/_cjs/tempo/TransactionReceipt.js.map +1 -0
  47. package/_cjs/tempo/TransactionRequest.js +53 -0
  48. package/_cjs/tempo/TransactionRequest.js.map +1 -0
  49. package/_cjs/tempo/TxEnvelopeTempo.js +267 -0
  50. package/_cjs/tempo/TxEnvelopeTempo.js.map +1 -0
  51. package/_cjs/tempo/index.js +15 -0
  52. package/_cjs/tempo/index.js.map +1 -0
  53. package/_cjs/version.js +1 -1
  54. package/_esm/core/Blobs.js +8 -8
  55. package/_esm/core/{TransactionEnvelope.js → TxEnvelope.js} +11 -11
  56. package/_esm/core/TxEnvelope.js.map +1 -0
  57. package/_esm/core/{TransactionEnvelopeEip1559.js → TxEnvelopeEip1559.js} +42 -42
  58. package/_esm/core/TxEnvelopeEip1559.js.map +1 -0
  59. package/_esm/core/{TransactionEnvelopeEip2930.js → TxEnvelopeEip2930.js} +43 -43
  60. package/_esm/core/TxEnvelopeEip2930.js.map +1 -0
  61. package/_esm/core/{TransactionEnvelopeEip4844.js → TxEnvelopeEip4844.js} +42 -42
  62. package/_esm/core/TxEnvelopeEip4844.js.map +1 -0
  63. package/_esm/core/{TransactionEnvelopeEip7702.js → TxEnvelopeEip7702.js} +40 -40
  64. package/_esm/core/TxEnvelopeEip7702.js.map +1 -0
  65. package/_esm/core/{TransactionEnvelopeLegacy.js → TxEnvelopeLegacy.js} +42 -42
  66. package/_esm/core/TxEnvelopeLegacy.js.map +1 -0
  67. package/_esm/core/WebAuthnP256.js +1 -1
  68. package/_esm/core/WebAuthnP256.js.map +1 -1
  69. package/_esm/erc8021/Attribution.js +58 -13
  70. package/_esm/erc8021/Attribution.js.map +1 -1
  71. package/_esm/index.docs.js +1 -0
  72. package/_esm/index.docs.js.map +1 -1
  73. package/_esm/index.js +192 -192
  74. package/_esm/index.js.map +1 -1
  75. package/_esm/tempo/AuthorizationTempo.js +664 -0
  76. package/_esm/tempo/AuthorizationTempo.js.map +1 -0
  77. package/_esm/tempo/KeyAuthorization.js +426 -0
  78. package/_esm/tempo/KeyAuthorization.js.map +1 -0
  79. package/_esm/tempo/PoolId.js +28 -0
  80. package/_esm/tempo/PoolId.js.map +1 -0
  81. package/_esm/tempo/SignatureEnvelope.js +660 -0
  82. package/_esm/tempo/SignatureEnvelope.js.map +1 -0
  83. package/_esm/tempo/Tick.js +147 -0
  84. package/_esm/tempo/Tick.js.map +1 -0
  85. package/_esm/tempo/TokenId.js +71 -0
  86. package/_esm/tempo/TokenId.js.map +1 -0
  87. package/_esm/tempo/TokenRole.js +40 -0
  88. package/_esm/tempo/TokenRole.js.map +1 -0
  89. package/_esm/tempo/Transaction.js +167 -0
  90. package/_esm/tempo/Transaction.js.map +1 -0
  91. package/_esm/tempo/TransactionReceipt.js +138 -0
  92. package/_esm/tempo/TransactionReceipt.js.map +1 -0
  93. package/_esm/tempo/TransactionRequest.js +99 -0
  94. package/_esm/tempo/TransactionRequest.js.map +1 -0
  95. package/_esm/tempo/TxEnvelopeTempo.js +607 -0
  96. package/_esm/tempo/TxEnvelopeTempo.js.map +1 -0
  97. package/_esm/tempo/index.js +298 -0
  98. package/_esm/tempo/index.js.map +1 -0
  99. package/_esm/version.js +1 -1
  100. package/_types/core/Blobs.d.ts +8 -8
  101. package/_types/core/{TransactionEnvelope.d.ts → TxEnvelope.d.ts} +11 -11
  102. package/_types/core/TxEnvelope.d.ts.map +1 -0
  103. package/_types/core/{TransactionEnvelopeEip1559.d.ts → TxEnvelopeEip1559.d.ts} +54 -54
  104. package/_types/core/TxEnvelopeEip1559.d.ts.map +1 -0
  105. package/_types/core/{TransactionEnvelopeEip2930.d.ts → TxEnvelopeEip2930.d.ts} +55 -55
  106. package/_types/core/TxEnvelopeEip2930.d.ts.map +1 -0
  107. package/_types/core/{TransactionEnvelopeEip4844.d.ts → TxEnvelopeEip4844.d.ts} +54 -54
  108. package/_types/core/TxEnvelopeEip4844.d.ts.map +1 -0
  109. package/_types/core/{TransactionEnvelopeEip7702.d.ts → TxEnvelopeEip7702.d.ts} +49 -49
  110. package/_types/core/TxEnvelopeEip7702.d.ts.map +1 -0
  111. package/_types/core/{TransactionEnvelopeLegacy.d.ts → TxEnvelopeLegacy.d.ts} +54 -54
  112. package/_types/core/TxEnvelopeLegacy.d.ts.map +1 -0
  113. package/_types/core/WebAuthnP256.d.ts +1 -1
  114. package/_types/core/WebAuthnP256.d.ts.map +1 -1
  115. package/_types/erc8021/Attribution.d.ts +20 -6
  116. package/_types/erc8021/Attribution.d.ts.map +1 -1
  117. package/_types/index.d.ts +192 -192
  118. package/_types/index.d.ts.map +1 -1
  119. package/_types/index.docs.d.ts +1 -0
  120. package/_types/index.docs.d.ts.map +1 -1
  121. package/_types/tempo/AuthorizationTempo.d.ts +688 -0
  122. package/_types/tempo/AuthorizationTempo.d.ts.map +1 -0
  123. package/_types/tempo/KeyAuthorization.d.ts +437 -0
  124. package/_types/tempo/KeyAuthorization.d.ts.map +1 -0
  125. package/_types/tempo/PoolId.d.ts +33 -0
  126. package/_types/tempo/PoolId.d.ts.map +1 -0
  127. package/_types/tempo/SignatureEnvelope.d.ts +438 -0
  128. package/_types/tempo/SignatureEnvelope.d.ts.map +1 -0
  129. package/_types/tempo/Tick.d.ts +120 -0
  130. package/_types/tempo/Tick.d.ts.map +1 -0
  131. package/_types/tempo/TokenId.d.ts +55 -0
  132. package/_types/tempo/TokenId.d.ts.map +1 -0
  133. package/_types/tempo/TokenRole.d.ts +29 -0
  134. package/_types/tempo/TokenRole.d.ts.map +1 -0
  135. package/_types/tempo/Transaction.d.ts +208 -0
  136. package/_types/tempo/Transaction.d.ts.map +1 -0
  137. package/_types/tempo/TransactionReceipt.d.ts +165 -0
  138. package/_types/tempo/TransactionReceipt.d.ts.map +1 -0
  139. package/_types/tempo/TransactionRequest.d.ts +89 -0
  140. package/_types/tempo/TransactionRequest.d.ts.map +1 -0
  141. package/_types/tempo/TxEnvelopeTempo.d.ts +551 -0
  142. package/_types/tempo/TxEnvelopeTempo.d.ts.map +1 -0
  143. package/_types/tempo/index.d.ts +300 -0
  144. package/_types/tempo/index.d.ts.map +1 -0
  145. package/_types/version.d.ts +1 -1
  146. package/core/Blobs.ts +8 -8
  147. package/core/{TransactionEnvelope.ts → TxEnvelope.ts} +10 -10
  148. package/core/{TransactionEnvelopeEip1559.ts → TxEnvelopeEip1559.ts} +60 -69
  149. package/core/{TransactionEnvelopeEip2930.ts → TxEnvelopeEip2930.ts} +61 -72
  150. package/core/{TransactionEnvelopeEip4844.ts → TxEnvelopeEip4844.ts} +62 -71
  151. package/core/{TransactionEnvelopeEip7702.ts → TxEnvelopeEip7702.ts} +58 -67
  152. package/core/{TransactionEnvelopeLegacy.ts → TxEnvelopeLegacy.ts} +59 -68
  153. package/core/WebAuthnP256.ts +3 -1
  154. package/erc8021/Attribution.ts +77 -15
  155. package/index.docs.ts +1 -0
  156. package/index.ts +192 -195
  157. package/package.json +91 -31
  158. package/tempo/AuthorizationTempo/package.json +6 -0
  159. package/tempo/AuthorizationTempo.test.ts +1293 -0
  160. package/tempo/AuthorizationTempo.ts +884 -0
  161. package/tempo/KeyAuthorization/package.json +6 -0
  162. package/tempo/KeyAuthorization.test.ts +1373 -0
  163. package/tempo/KeyAuthorization.ts +622 -0
  164. package/tempo/PoolId/package.json +6 -0
  165. package/tempo/PoolId.test.ts +33 -0
  166. package/tempo/PoolId.ts +42 -0
  167. package/tempo/SignatureEnvelope/package.json +6 -0
  168. package/tempo/SignatureEnvelope.test.ts +1877 -0
  169. package/tempo/SignatureEnvelope.ts +973 -0
  170. package/tempo/Tick/package.json +6 -0
  171. package/tempo/Tick.test.ts +281 -0
  172. package/tempo/Tick.ts +186 -0
  173. package/tempo/TokenId/package.json +6 -0
  174. package/tempo/TokenId.test.ts +40 -0
  175. package/tempo/TokenId.ts +80 -0
  176. package/tempo/TokenRole/package.json +6 -0
  177. package/tempo/TokenRole.test.ts +16 -0
  178. package/tempo/TokenRole.ts +45 -0
  179. package/tempo/Transaction/package.json +6 -0
  180. package/tempo/Transaction.test.ts +523 -0
  181. package/tempo/Transaction.ts +339 -0
  182. package/tempo/TransactionReceipt/package.json +6 -0
  183. package/tempo/TransactionReceipt.ts +200 -0
  184. package/tempo/TransactionRequest/package.json +6 -0
  185. package/tempo/TransactionRequest.ts +160 -0
  186. package/tempo/TxEnvelopeTempo/package.json +6 -0
  187. package/tempo/TxEnvelopeTempo.test.ts +1371 -0
  188. package/tempo/TxEnvelopeTempo.ts +972 -0
  189. package/tempo/e2e.test.ts +1387 -0
  190. package/tempo/index.ts +308 -0
  191. package/tempo/package.json +6 -0
  192. package/version.ts +1 -1
  193. package/TransactionEnvelope/package.json +0 -6
  194. package/TransactionEnvelopeEip1559/package.json +0 -6
  195. package/TransactionEnvelopeEip2930/package.json +0 -6
  196. package/TransactionEnvelopeEip4844/package.json +0 -6
  197. package/TransactionEnvelopeEip7702/package.json +0 -6
  198. package/TransactionEnvelopeLegacy/package.json +0 -6
  199. package/_cjs/core/TransactionEnvelope.js.map +0 -1
  200. package/_cjs/core/TransactionEnvelopeEip1559.js.map +0 -1
  201. package/_cjs/core/TransactionEnvelopeEip2930.js.map +0 -1
  202. package/_cjs/core/TransactionEnvelopeEip4844.js.map +0 -1
  203. package/_cjs/core/TransactionEnvelopeEip7702.js.map +0 -1
  204. package/_cjs/core/TransactionEnvelopeLegacy.js.map +0 -1
  205. package/_esm/core/TransactionEnvelope.js.map +0 -1
  206. package/_esm/core/TransactionEnvelopeEip1559.js.map +0 -1
  207. package/_esm/core/TransactionEnvelopeEip2930.js.map +0 -1
  208. package/_esm/core/TransactionEnvelopeEip4844.js.map +0 -1
  209. package/_esm/core/TransactionEnvelopeEip7702.js.map +0 -1
  210. package/_esm/core/TransactionEnvelopeLegacy.js.map +0 -1
  211. package/_types/core/TransactionEnvelope.d.ts.map +0 -1
  212. package/_types/core/TransactionEnvelopeEip1559.d.ts.map +0 -1
  213. package/_types/core/TransactionEnvelopeEip2930.d.ts.map +0 -1
  214. package/_types/core/TransactionEnvelopeEip4844.d.ts.map +0 -1
  215. package/_types/core/TransactionEnvelopeEip7702.d.ts.map +0 -1
  216. package/_types/core/TransactionEnvelopeLegacy.d.ts.map +0 -1
package/_types/index.d.ts CHANGED
@@ -797,7 +797,7 @@ export * as AesGcm from './core/AesGcm.js';
797
797
  * A signature can be attached to an Authorization using {@link ox#Authorization.(from:function)}:
798
798
  *
799
799
  * ```ts twoslash
800
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
800
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
801
801
  *
802
802
  * const authorization = Authorization.from({
803
803
  * address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
@@ -812,7 +812,7 @@ export * as AesGcm from './core/AesGcm.js';
812
812
  *
813
813
  * const authorization_signed = Authorization.from(authorization, { signature }) // [!code focus]
814
814
  *
815
- * const envelope = TransactionEnvelopeEip7702.from({
815
+ * const envelope = TxEnvelopeEip7702.from({
816
816
  * authorizationList: [authorization_signed],
817
817
  * chainId: 1,
818
818
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2408,33 +2408,101 @@ export * as StateOverrides from './core/StateOverrides.js';
2408
2408
  * @category Execution Spec
2409
2409
  */
2410
2410
  export * as Transaction from './core/Transaction.js';
2411
+ /**
2412
+ * Utilities & types for working with **Transaction Receipts** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml)
2413
+ *
2414
+ * @example
2415
+ * ### Converting from RPC Format
2416
+ *
2417
+ * Receipts can be converted from RPC format using {@link ox#TransactionReceipt.(fromRpc:function)}:
2418
+ *
2419
+ * ```ts twoslash
2420
+ * import 'ox/window'
2421
+ * import { TransactionReceipt } from 'ox'
2422
+ *
2423
+ * const receipt = await window.ethereum!
2424
+ * .request({
2425
+ * method: 'eth_getTransactionReceipt',
2426
+ * params: [
2427
+ * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
2428
+ * ],
2429
+ * })
2430
+ * .then(TransactionReceipt.fromRpc) // [!code hl]
2431
+ * // @log: {
2432
+ * // @log: blobGasPrice: 270441n,
2433
+ * // @log: blobGasUsed: 4919n,
2434
+ * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
2435
+ * // @log: blockNumber: 19868015n,
2436
+ * // @log: contractAddress: null,
2437
+ * // @log: cumulativeGasUsed: 533781n,
2438
+ * // @log: effectiveGasPrice: 9062804489n,
2439
+ * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
2440
+ * // @log: gasUsed: 175034n,
2441
+ * // @log: logs: [],
2442
+ * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
2443
+ * // @log: root: undefined,
2444
+ * // @log: status: "success",
2445
+ * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
2446
+ * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
2447
+ * // @log: transactionIndex: 2,
2448
+ * // @log: type: "eip1559",
2449
+ * // @log: }
2450
+ * ```
2451
+ *
2452
+ * @category Execution Spec
2453
+ */
2454
+ export * as TransactionReceipt from './core/TransactionReceipt.js';
2455
+ /**
2456
+ * Utilities & types for working with **Transaction Requests** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/4aca1d7a3e5aab24c8f6437131289ad386944eaa/src/schemas/transaction.yaml#L358-L423)
2457
+ *
2458
+ * @example
2459
+ * ```ts twoslash
2460
+ * import 'ox/window'
2461
+ * import { Provider, TransactionRequest, Value } from 'ox'
2462
+ *
2463
+ * const provider = Provider.from(window.ethereum!)
2464
+ *
2465
+ * const request = TransactionRequest.toRpc({ // [!code focus]
2466
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code focus]
2467
+ * value: Value.fromEther('0.01'), // [!code focus]
2468
+ * }) // [!code focus]
2469
+ *
2470
+ * const hash = await provider.request({
2471
+ * method: 'eth_sendTransaction',
2472
+ * params: [request],
2473
+ * })
2474
+ * ```
2475
+ *
2476
+ * @category Execution Spec
2477
+ */
2478
+ export * as TransactionRequest from './core/TransactionRequest.js';
2411
2479
  /**
2412
2480
  * Errors & Types for working with Transaction Envelopes.
2413
2481
  *
2414
2482
  * :::note
2415
2483
  * Refer to the following modules for specific Transaction Envelope types:
2416
- * - [`TransactionEnvelopeLegacy`](/api/TransactionEnvelopeLegacy)
2417
- * - [`TransactionEnvelopeEip1559`](/api/TransactionEnvelopeEip1559)
2418
- * - [`TransactionEnvelopeEip2930`](/api/TransactionEnvelopeEip2930)
2419
- * - [`TransactionEnvelopeEip4844`](/api/TransactionEnvelopeEip4844)
2420
- * - [`TransactionEnvelopeEip7702`](/api/TransactionEnvelopeEip7702)
2484
+ * - [`TxEnvelopeLegacy`](/api/TxEnvelopeLegacy)
2485
+ * - [`TxEnvelopeEip1559`](/api/TxEnvelopeEip1559)
2486
+ * - [`TxEnvelopeEip2930`](/api/TxEnvelopeEip2930)
2487
+ * - [`TxEnvelopeEip4844`](/api/TxEnvelopeEip4844)
2488
+ * - [`TxEnvelopeEip7702`](/api/TxEnvelopeEip7702)
2421
2489
  * :::
2422
2490
  *
2423
2491
  * @category Transaction Envelopes
2424
2492
  */
2425
- export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2493
+ export * as TransactionEnvelope from './core/TxEnvelope.js';
2426
2494
  /**
2427
2495
  * Utility functions for working with [EIP-1559 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-1559)
2428
2496
  *
2429
2497
  * @example
2430
2498
  * ### Instantiating
2431
2499
  *
2432
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip1559.(from:function)}:
2500
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip1559.(from:function)}:
2433
2501
  *
2434
2502
  * ```ts twoslash
2435
- * import { TransactionEnvelopeEip1559, Value } from 'ox'
2503
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2436
2504
  *
2437
- * const envelope = TransactionEnvelopeEip1559.from({
2505
+ * const envelope = TxEnvelopeEip1559.from({
2438
2506
  * chainId: 1,
2439
2507
  * maxFeePerGas: Value.fromGwei('10'),
2440
2508
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2454,12 +2522,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2454
2522
  * @example
2455
2523
  * ### Signing
2456
2524
  *
2457
- * Transaction Envelopes can be signed using {@link ox#TransactionEnvelopeEip1559.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2525
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip1559.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2458
2526
  *
2459
2527
  * ```ts twoslash
2460
- * import { Secp256k1, TransactionEnvelopeEip1559 } from 'ox'
2528
+ * import { Secp256k1, TxEnvelopeEip1559 } from 'ox'
2461
2529
  *
2462
- * const envelope = TransactionEnvelopeEip1559.from({
2530
+ * const envelope = TxEnvelopeEip1559.from({
2463
2531
  * chainId: 1,
2464
2532
  * nonce: 0n,
2465
2533
  * gasPrice: 1000000000n,
@@ -2469,22 +2537,22 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2469
2537
  * })
2470
2538
  *
2471
2539
  * const signature = Secp256k1.sign({ // [!code focus]
2472
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope), // [!code focus]
2540
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope), // [!code focus]
2473
2541
  * privateKey: '0x...' // [!code focus]
2474
2542
  * }) // [!code focus]
2475
2543
  *
2476
- * const envelope_signed = TransactionEnvelopeEip1559.from(envelope, { signature })
2544
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, { signature })
2477
2545
  * ```
2478
2546
  *
2479
2547
  * @example
2480
2548
  * ### Serializing
2481
2549
  *
2482
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip1559.(serialize:function)}:
2550
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip1559.(serialize:function)}:
2483
2551
  *
2484
2552
  * ```ts twoslash
2485
- * import { TransactionEnvelopeEip1559, Value } from 'ox'
2553
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2486
2554
  *
2487
- * const envelope = TransactionEnvelopeEip1559.from({
2555
+ * const envelope = TxEnvelopeEip1559.from({
2488
2556
  * chainId: 1,
2489
2557
  * maxFeePerGas: Value.fromGwei('10'),
2490
2558
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2492,7 +2560,7 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2492
2560
  * value: Value.fromEther('1'),
2493
2561
  * })
2494
2562
  *
2495
- * const serialized = TransactionEnvelopeEip1559.serialize(envelope) // [!code focus]
2563
+ * const serialized = TxEnvelopeEip1559.serialize(envelope) // [!code focus]
2496
2564
  * ```
2497
2565
  *
2498
2566
  * @example
@@ -2503,10 +2571,10 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2503
2571
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2504
2572
  *
2505
2573
  * ```ts twoslash
2506
- * import { RpcTransport, TransactionEnvelopeEip1559, Secp256k1, Value } from 'ox'
2574
+ * import { RpcTransport, TxEnvelopeEip1559, Secp256k1, Value } from 'ox'
2507
2575
  *
2508
2576
  * // Construct the Envelope.
2509
- * const envelope = TransactionEnvelopeEip1559.from({
2577
+ * const envelope = TxEnvelopeEip1559.from({
2510
2578
  * chainId: 1,
2511
2579
  * maxFeePerGas: Value.fromGwei('10'),
2512
2580
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2517,12 +2585,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2517
2585
  *
2518
2586
  * // Sign over the Envelope.
2519
2587
  * const signature = Secp256k1.sign({
2520
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope),
2588
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2521
2589
  * privateKey: '0x...',
2522
2590
  * })
2523
2591
  *
2524
2592
  * // Serialize the Envelope with the Signature. // [!code focus]
2525
- * const serialized = TransactionEnvelopeEip1559.serialize(envelope, { // [!code focus]
2593
+ * const serialized = TxEnvelopeEip1559.serialize(envelope, { // [!code focus]
2526
2594
  * signature // [!code focus]
2527
2595
  * }) // [!code focus]
2528
2596
  *
@@ -2535,20 +2603,20 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2535
2603
  * ```
2536
2604
  *
2537
2605
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2538
- * {@link ox#TransactionEnvelopeEip1559.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2606
+ * {@link ox#TxEnvelopeEip1559.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2539
2607
  * This means you can skip the ceremony of manually filling & signing the Transaction.
2540
2608
  *
2541
2609
  * ```ts twoslash
2542
2610
  * import 'ox/window'
2543
- * import { Provider, TransactionEnvelopeEip1559, Value } from 'ox'
2611
+ * import { Provider, TxEnvelopeEip1559, Value } from 'ox'
2544
2612
  *
2545
- * const envelope = TransactionEnvelopeEip1559.from({
2613
+ * const envelope = TxEnvelopeEip1559.from({
2546
2614
  * chainId: 1,
2547
2615
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2548
2616
  * value: Value.fromEther('1.5'),
2549
2617
  * })
2550
2618
  *
2551
- * const envelope_rpc = TransactionEnvelopeEip1559.toRpc(envelope)
2619
+ * const envelope_rpc = TxEnvelopeEip1559.toRpc(envelope)
2552
2620
  *
2553
2621
  * const provider = Provider.from(window.ethereum)
2554
2622
  * const hash = await provider.request({
@@ -2560,12 +2628,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2560
2628
  * @example
2561
2629
  * ### Computing Hashes
2562
2630
  *
2563
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip1559.(hash:function)}:
2631
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip1559.(hash:function)}:
2564
2632
  *
2565
2633
  * ```ts twoslash
2566
- * import { Secp256k1, TransactionEnvelopeEip1559, Value } from 'ox'
2634
+ * import { Secp256k1, TxEnvelopeEip1559, Value } from 'ox'
2567
2635
  *
2568
- * const envelope = TransactionEnvelopeEip1559.from({
2636
+ * const envelope = TxEnvelopeEip1559.from({
2569
2637
  * chainId: 1,
2570
2638
  * nonce: 0n,
2571
2639
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2577,31 +2645,31 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2577
2645
  * })
2578
2646
  *
2579
2647
  * const signature = Secp256k1.sign({
2580
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope),
2648
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2581
2649
  * privateKey: '0x...'
2582
2650
  * })
2583
2651
  *
2584
- * const envelope_signed = TransactionEnvelopeEip1559.from(envelope, { signature })
2652
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, { signature })
2585
2653
  *
2586
- * const hash = TransactionEnvelopeEip1559.hash(envelope_signed) // [!code focus]
2654
+ * const hash = TxEnvelopeEip1559.hash(envelope_signed) // [!code focus]
2587
2655
  * ```
2588
2656
  *
2589
2657
  * @category Transaction Envelopes
2590
2658
  */
2591
- export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.js';
2659
+ export * as TxEnvelopeEip1559 from './core/TxEnvelopeEip1559.js';
2592
2660
  /**
2593
2661
  * Utility functions for working with [EIP-2930 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-2930)
2594
2662
  *
2595
2663
  * @example
2596
2664
  * ### Instantiating
2597
2665
  *
2598
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip2930.(from:function)}:
2666
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip2930.(from:function)}:
2599
2667
  *
2600
2668
  * ```ts twoslash
2601
2669
  * // @noErrors
2602
- * import { TransactionEnvelopeEip2930, Value } from 'ox'
2670
+ * import { TxEnvelopeEip2930, Value } from 'ox'
2603
2671
  *
2604
- * const envelope = TransactionEnvelopeEip2930.from({
2672
+ * const envelope = TxEnvelopeEip2930.from({
2605
2673
  * chainId: 1,
2606
2674
  * accessList: [...],
2607
2675
  * gasPrice: Value.fromGwei('10'),
@@ -2613,12 +2681,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2613
2681
  * @example
2614
2682
  * ### Signing
2615
2683
  *
2616
- * Transaction Envelopes can be signed using {@link ox#TransactionEnvelopeEip2930.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2684
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip2930.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2617
2685
  *
2618
2686
  * ```ts twoslash
2619
- * import { Secp256k1, TransactionEnvelopeEip2930 } from 'ox'
2687
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2620
2688
  *
2621
- * const envelope = TransactionEnvelopeEip2930.from({
2689
+ * const envelope = TxEnvelopeEip2930.from({
2622
2690
  * chainId: 1,
2623
2691
  * nonce: 0n,
2624
2692
  * gasPrice: 1000000000n,
@@ -2627,7 +2695,7 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2627
2695
  * value: 1000000000000000000n,
2628
2696
  * })
2629
2697
  *
2630
- * const payload = TransactionEnvelopeEip2930.getSignPayload(envelope) // [!code focus]
2698
+ * const payload = TxEnvelopeEip2930.getSignPayload(envelope) // [!code focus]
2631
2699
  * // @log: '0x...'
2632
2700
  *
2633
2701
  * const signature = Secp256k1.sign({ payload, privateKey: '0x...' })
@@ -2636,12 +2704,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2636
2704
  * @example
2637
2705
  * ### Serializing
2638
2706
  *
2639
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip2930.(serialize:function)}:
2707
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip2930.(serialize:function)}:
2640
2708
  *
2641
2709
  * ```ts twoslash
2642
- * import { Secp256k1, TransactionEnvelopeEip2930, Value } from 'ox'
2710
+ * import { Secp256k1, TxEnvelopeEip2930, Value } from 'ox'
2643
2711
  *
2644
- * const envelope = TransactionEnvelopeEip2930.from({
2712
+ * const envelope = TxEnvelopeEip2930.from({
2645
2713
  * chainId: 1,
2646
2714
  * nonce: 0n,
2647
2715
  * gasPrice: 1000000000n,
@@ -2650,7 +2718,7 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2650
2718
  * value: 1000000000000000000n,
2651
2719
  * })
2652
2720
  *
2653
- * const serialized = TransactionEnvelopeEip2930.serialize(envelope) // [!code focus]
2721
+ * const serialized = TxEnvelopeEip2930.serialize(envelope) // [!code focus]
2654
2722
  * ```
2655
2723
  *
2656
2724
  * @example
@@ -2661,10 +2729,10 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2661
2729
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2662
2730
  *
2663
2731
  * ```ts twoslash
2664
- * import { RpcTransport, TransactionEnvelopeEip2930, Secp256k1, Value } from 'ox'
2732
+ * import { RpcTransport, TxEnvelopeEip2930, Secp256k1, Value } from 'ox'
2665
2733
  *
2666
2734
  * // Construct the Envelope.
2667
- * const envelope = TransactionEnvelopeEip2930.from({
2735
+ * const envelope = TxEnvelopeEip2930.from({
2668
2736
  * accessList: [],
2669
2737
  * chainId: 1,
2670
2738
  * gasPrice: Value.fromGwei('10'),
@@ -2675,12 +2743,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2675
2743
  *
2676
2744
  * // Sign over the Envelope.
2677
2745
  * const signature = Secp256k1.sign({
2678
- * payload: TransactionEnvelopeEip2930.getSignPayload(envelope),
2746
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2679
2747
  * privateKey: '0x...',
2680
2748
  * })
2681
2749
  *
2682
2750
  * // Serialize the Envelope with the Signature. // [!code focus]
2683
- * const serialized = TransactionEnvelopeEip2930.serialize(envelope, { // [!code focus]
2751
+ * const serialized = TxEnvelopeEip2930.serialize(envelope, { // [!code focus]
2684
2752
  * signature // [!code focus]
2685
2753
  * }) // [!code focus]
2686
2754
  *
@@ -2693,21 +2761,21 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2693
2761
  * ```
2694
2762
  *
2695
2763
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2696
- * {@link ox#TransactionEnvelopeEip2930.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2764
+ * {@link ox#TxEnvelopeEip2930.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2697
2765
  * This means you can skip the ceremony of manually filling & signing the Transaction.
2698
2766
  *
2699
2767
  * ```ts twoslash
2700
2768
  * import 'ox/window'
2701
- * import { Provider, TransactionEnvelopeEip2930, Value } from 'ox'
2769
+ * import { Provider, TxEnvelopeEip2930, Value } from 'ox'
2702
2770
  *
2703
- * const envelope = TransactionEnvelopeEip2930.from({
2771
+ * const envelope = TxEnvelopeEip2930.from({
2704
2772
  * accessList: [],
2705
2773
  * chainId: 1,
2706
2774
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2707
2775
  * value: Value.fromEther('1.5'),
2708
2776
  * })
2709
2777
  *
2710
- * const envelope_rpc = TransactionEnvelopeEip2930.toRpc(envelope)
2778
+ * const envelope_rpc = TxEnvelopeEip2930.toRpc(envelope)
2711
2779
  *
2712
2780
  * const provider = Provider.from(window.ethereum)
2713
2781
  * const hash = await provider.request({
@@ -2719,12 +2787,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2719
2787
  * @example
2720
2788
  * ### Computing Hashes
2721
2789
  *
2722
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip2930.(hash:function)}:
2790
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip2930.(hash:function)}:
2723
2791
  *
2724
2792
  * ```ts twoslash
2725
- * import { Secp256k1, TransactionEnvelopeEip2930 } from 'ox'
2793
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2726
2794
  *
2727
- * const envelope = TransactionEnvelopeEip2930.from({
2795
+ * const envelope = TxEnvelopeEip2930.from({
2728
2796
  * chainId: 1,
2729
2797
  * nonce: 0n,
2730
2798
  * gasPrice: 1000000000n,
@@ -2735,18 +2803,18 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2735
2803
  * })
2736
2804
  *
2737
2805
  * const signature = Secp256k1.sign({
2738
- * payload: TransactionEnvelopeEip2930.getSignPayload(envelope),
2806
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2739
2807
  * privateKey: '0x...'
2740
2808
  * })
2741
2809
  *
2742
- * const envelope_signed = TransactionEnvelopeEip2930.from(envelope, { signature })
2810
+ * const envelope_signed = TxEnvelopeEip2930.from(envelope, { signature })
2743
2811
  *
2744
- * const hash = TransactionEnvelopeEip2930.hash(envelope_signed) // [!code focus]
2812
+ * const hash = TxEnvelopeEip2930.hash(envelope_signed) // [!code focus]
2745
2813
  * ```
2746
2814
  *
2747
2815
  * @category Transaction Envelopes
2748
2816
  */
2749
- export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.js';
2817
+ export * as TxEnvelopeEip2930 from './core/TxEnvelopeEip2930.js';
2750
2818
  /**
2751
2819
  * Utility functions for working with [EIP-4844 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-4844)
2752
2820
  *
@@ -2764,17 +2832,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2764
2832
  * @example
2765
2833
  * ### Instantiating
2766
2834
  *
2767
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip4844.(from:function)}:
2835
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip4844.(from:function)}:
2768
2836
  *
2769
2837
  * ```ts twoslash
2770
2838
  * // @noErrors
2771
- * import { Blobs, Hex, TransactionEnvelopeEip4844, Value } from 'ox'
2839
+ * import { Blobs, Hex, TxEnvelopeEip4844, Value } from 'ox'
2772
2840
  * import { kzg } from './kzg'
2773
2841
  *
2774
2842
  * const blobs = Blobs.from(Hex.fromString('Hello World!'))
2775
2843
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2776
2844
  *
2777
- * const envelope = TransactionEnvelopeEip4844.from({
2845
+ * const envelope = TxEnvelopeEip4844.from({
2778
2846
  * chainId: 1,
2779
2847
  * blobVersionedHashes,
2780
2848
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2788,18 +2856,18 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2788
2856
  * @example
2789
2857
  * ### Signing
2790
2858
  *
2791
- * Transaction Envelopes can be signed using {@link ox#TransactionEnvelopeEip4844.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2859
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip4844.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2792
2860
  *
2793
2861
  * ```ts twoslash
2794
2862
  * // @noErrors
2795
- * import { Blobs, Secp256k1, TransactionEnvelopeEip4844 } from 'ox'
2863
+ * import { Blobs, Secp256k1, TxEnvelopeEip4844 } from 'ox'
2796
2864
  * import { kzg } from './kzg'
2797
2865
  *
2798
2866
  * const blobs = Blobs.from('0xdeadbeef')
2799
2867
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2800
2868
  * const sidecars = Blobs.toSidecars(blobs, { kzg })
2801
2869
  *
2802
- * const envelope = TransactionEnvelopeEip4844.from({
2870
+ * const envelope = TxEnvelopeEip4844.from({
2803
2871
  * blobVersionedHashes,
2804
2872
  * chainId: 1,
2805
2873
  * nonce: 0n,
@@ -2811,11 +2879,11 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2811
2879
  * })
2812
2880
  *
2813
2881
  * const signature = Secp256k1.sign({ // [!code focus]
2814
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope), // [!code focus]
2882
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope), // [!code focus]
2815
2883
  * privateKey: '0x...' // [!code focus]
2816
2884
  * }) // [!code focus]
2817
2885
  *
2818
- * const envelope_signed = TransactionEnvelopeEip4844.from(envelope, {
2886
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, {
2819
2887
  * sidecars,
2820
2888
  * signature
2821
2889
  * })
@@ -2824,17 +2892,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2824
2892
  * @example
2825
2893
  * ### Serializing
2826
2894
  *
2827
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip4844.(serialize:function)}:
2895
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip4844.(serialize:function)}:
2828
2896
  *
2829
2897
  * ```ts twoslash
2830
2898
  * // @noErrors
2831
- * import { Blobs, TransactionEnvelopeEip4844 } from 'ox'
2899
+ * import { Blobs, TxEnvelopeEip4844 } from 'ox'
2832
2900
  * import { kzg } from './kzg'
2833
2901
  *
2834
2902
  * const blobs = Blobs.from('0xdeadbeef')
2835
2903
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2836
2904
  *
2837
- * const envelope = TransactionEnvelopeEip4844.from({
2905
+ * const envelope = TxEnvelopeEip4844.from({
2838
2906
  * blobVersionedHashes,
2839
2907
  * chainId: 1,
2840
2908
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2844,7 +2912,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2844
2912
  * value: Value.fromEther('1'),
2845
2913
  * })
2846
2914
  *
2847
- * const serialized = TransactionEnvelopeEip4844.serialize(envelope) // [!code focus]
2915
+ * const serialized = TxEnvelopeEip4844.serialize(envelope) // [!code focus]
2848
2916
  * ```
2849
2917
  *
2850
2918
  * @example
@@ -2856,7 +2924,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2856
2924
  *
2857
2925
  * ```ts twoslash
2858
2926
  * // @noErrors
2859
- * import { Blobs, RpcTransport, TransactionEnvelopeEip4844, Secp256k1, Value } from 'ox'
2927
+ * import { Blobs, RpcTransport, TxEnvelopeEip4844, Secp256k1, Value } from 'ox'
2860
2928
  * import { kzg } from './kzg'
2861
2929
  *
2862
2930
  * // Compute the Blob Versioned Hashes.
@@ -2865,7 +2933,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2865
2933
  * const sidecars = Blobs.toSidecars(blobs, { kzg })
2866
2934
  *
2867
2935
  * // Construct the Envelope.
2868
- * const envelope = TransactionEnvelopeEip4844.from({
2936
+ * const envelope = TxEnvelopeEip4844.from({
2869
2937
  * chainId: 1,
2870
2938
  * blobVersionedHashes,
2871
2939
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2878,12 +2946,12 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2878
2946
  *
2879
2947
  * // Sign over the Envelope.
2880
2948
  * const signature = Secp256k1.sign({
2881
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope),
2949
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
2882
2950
  * privateKey: '0x...',
2883
2951
  * })
2884
2952
  *
2885
2953
  * // Serialize the Envelope with the Signature. // [!code focus]
2886
- * const serialized = TransactionEnvelopeEip4844.serialize(envelope, { // [!code focus]
2954
+ * const serialized = TxEnvelopeEip4844.serialize(envelope, { // [!code focus]
2887
2955
  * sidecars, // [!code focus]
2888
2956
  * signature // [!code focus]
2889
2957
  * }) // [!code focus]
@@ -2899,17 +2967,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2899
2967
  * @example
2900
2968
  * ### Computing Hashes
2901
2969
  *
2902
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip4844.(hash:function)}:
2970
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip4844.(hash:function)}:
2903
2971
  *
2904
2972
  * ```ts twoslash
2905
2973
  * // @noErrors
2906
- * import { Blobs, Secp256k1, TransactionEnvelopeEip4844, Value } from 'ox'
2974
+ * import { Blobs, Secp256k1, TxEnvelopeEip4844, Value } from 'ox'
2907
2975
  * import { kzg } from './kzg'
2908
2976
  *
2909
2977
  * const blobs = Blobs.from('0xdeadbeef')
2910
2978
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2911
2979
  *
2912
- * const envelope = TransactionEnvelopeEip4844.from({
2980
+ * const envelope = TxEnvelopeEip4844.from({
2913
2981
  * blobVersionedHashes,
2914
2982
  * chainId: 1,
2915
2983
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2918,28 +2986,28 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2918
2986
  * })
2919
2987
  *
2920
2988
  * const signature = Secp256k1.sign({
2921
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope),
2989
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
2922
2990
  * privateKey: '0x...'
2923
2991
  * })
2924
2992
  *
2925
- * const envelope_signed = TransactionEnvelopeEip4844.from(envelope, { signature })
2993
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, { signature })
2926
2994
  *
2927
- * const hash = TransactionEnvelopeEip4844.hash(envelope_signed) // [!code focus]
2995
+ * const hash = TxEnvelopeEip4844.hash(envelope_signed) // [!code focus]
2928
2996
  * ```
2929
2997
  *
2930
2998
  * @category Transaction Envelopes
2931
2999
  */
2932
- export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.js';
3000
+ export * as TxEnvelopeEip4844 from './core/TxEnvelopeEip4844.js';
2933
3001
  /**
2934
3002
  * Utility functions for working with [EIP-7702 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-7702)
2935
3003
  *
2936
3004
  * @example
2937
3005
  * ### Instantiating
2938
3006
  *
2939
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip7702.(from:function)}:
3007
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip7702.(from:function)}:
2940
3008
  *
2941
3009
  * ```ts twoslash
2942
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
3010
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
2943
3011
  *
2944
3012
  * const authorization = Authorization.from({
2945
3013
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -2954,7 +3022,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2954
3022
  *
2955
3023
  * const authorizationList = [Authorization.from(authorization, { signature })]
2956
3024
  *
2957
- * const envelope = TransactionEnvelopeEip7702.from({ // [!code focus]
3025
+ * const envelope = TxEnvelopeEip7702.from({ // [!code focus]
2958
3026
  * authorizationList, // [!code focus]
2959
3027
  * chainId: 1, // [!code focus]
2960
3028
  * maxFeePerGas: Value.fromGwei('10'), // [!code focus]
@@ -2973,10 +3041,10 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2973
3041
  * @example
2974
3042
  * ### Signing
2975
3043
  *
2976
- * Transaction Envelopes can be signed using {@link ox#TransactionEnvelopeEip7702.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3044
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip7702.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2977
3045
  *
2978
3046
  * ```ts twoslash
2979
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
3047
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
2980
3048
  *
2981
3049
  * const authorization = Authorization.from({
2982
3050
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -2991,7 +3059,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2991
3059
  *
2992
3060
  * const authorizationList = [Authorization.from(authorization, { signature: signature_auth })]
2993
3061
  *
2994
- * const envelope = TransactionEnvelopeEip7702.from({
3062
+ * const envelope = TxEnvelopeEip7702.from({
2995
3063
  * authorizationList,
2996
3064
  * chainId: 1,
2997
3065
  * maxFeePerGas: Value.fromGwei('10'),
@@ -3001,11 +3069,11 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3001
3069
  * })
3002
3070
  *
3003
3071
  * const signature = Secp256k1.sign({ // [!code focus]
3004
- * payload: TransactionEnvelopeEip7702.getSignPayload(envelope), // [!code focus]
3072
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope), // [!code focus]
3005
3073
  * privateKey: '0x...', // [!code focus]
3006
3074
  * })
3007
3075
  *
3008
- * const envelope_signed = TransactionEnvelopeEip7702.from(envelope, { signature })
3076
+ * const envelope_signed = TxEnvelopeEip7702.from(envelope, { signature })
3009
3077
  * ```
3010
3078
  *
3011
3079
  * @example
@@ -3016,7 +3084,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3016
3084
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3017
3085
  *
3018
3086
  * ```ts twoslash
3019
- * import { Authorization, RpcTransport, TransactionEnvelopeEip7702, Secp256k1, Value } from 'ox'
3087
+ * import { Authorization, RpcTransport, TxEnvelopeEip7702, Secp256k1, Value } from 'ox'
3020
3088
  *
3021
3089
  * const authorization = Authorization.from({
3022
3090
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -3031,7 +3099,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3031
3099
  *
3032
3100
  * const authorizationList = [Authorization.from(authorization, { signature: signature_auth })]
3033
3101
  *
3034
- * const envelope = TransactionEnvelopeEip7702.from({
3102
+ * const envelope = TxEnvelopeEip7702.from({
3035
3103
  * authorizationList,
3036
3104
  * chainId: 1,
3037
3105
  * maxFeePerGas: Value.fromGwei('10'),
@@ -3042,12 +3110,12 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3042
3110
  * })
3043
3111
  *
3044
3112
  * const signature = Secp256k1.sign({
3045
- * payload: TransactionEnvelopeEip7702.getSignPayload(envelope),
3113
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope),
3046
3114
  * privateKey: '0x...',
3047
3115
  * })
3048
3116
  *
3049
3117
  * // Serialize the Envelope with the Signature. // [!code focus]
3050
- * const serialized = TransactionEnvelopeEip7702.serialize(envelope, { // [!code focus]
3118
+ * const serialized = TxEnvelopeEip7702.serialize(envelope, { // [!code focus]
3051
3119
  * signature // [!code focus]
3052
3120
  * }) // [!code focus]
3053
3121
  *
@@ -3061,7 +3129,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3061
3129
  *
3062
3130
  * @category Transaction Envelopes
3063
3131
  */
3064
- export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.js';
3132
+ export * as TxEnvelopeEip7702 from './core/TxEnvelopeEip7702.js';
3065
3133
  /**
3066
3134
  * Utility functions for working
3067
3135
  * with **Legacy Transaction Envelopes**.
@@ -3069,12 +3137,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3069
3137
  * @example
3070
3138
  * ### Instantiating
3071
3139
  *
3072
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeLegacy.(from:function)}:
3140
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeLegacy.(from:function)}:
3073
3141
  *
3074
3142
  * ```ts twoslash
3075
- * import { TransactionEnvelopeLegacy, Value } from 'ox'
3143
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3076
3144
  *
3077
- * const envelope = TransactionEnvelopeLegacy.from({
3145
+ * const envelope = TxEnvelopeLegacy.from({
3078
3146
  * gasPrice: Value.fromGwei('10'),
3079
3147
  * to: '0x0000000000000000000000000000000000000000',
3080
3148
  * value: Value.fromEther('1'),
@@ -3084,13 +3152,13 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3084
3152
  * * @example
3085
3153
  * ### Signing
3086
3154
  *
3087
- * Transaction Envelopes can be signed using {@link ox#TransactionEnvelopeLegacy.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3155
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeLegacy.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3088
3156
  *
3089
3157
  * ```ts twoslash
3090
3158
  * // @noErrors
3091
- * import { Secp256k1, TransactionEnvelopeLegacy } from 'ox'
3159
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3092
3160
  *
3093
- * const envelope = TransactionEnvelopeLegacy.from({
3161
+ * const envelope = TxEnvelopeLegacy.from({
3094
3162
  * nonce: 0n,
3095
3163
  * gasPrice: 1000000000n,
3096
3164
  * gas: 21000n,
@@ -3099,29 +3167,29 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3099
3167
  * })
3100
3168
  *
3101
3169
  * const signature = Secp256k1.sign({ // [!code focus]
3102
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope), // [!code focus]
3170
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope), // [!code focus]
3103
3171
  * privateKey: '0x...' // [!code focus]
3104
3172
  * }) // [!code focus]
3105
3173
  *
3106
- * const envelope_signed = TransactionEnvelopeLegacy.from(envelope, { signature })
3174
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, { signature })
3107
3175
  * ```
3108
3176
  *
3109
3177
  * @example
3110
3178
  * ### Serializing
3111
3179
  *
3112
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeLegacy.(serialize:function)}:
3180
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeLegacy.(serialize:function)}:
3113
3181
  *
3114
3182
  * ```ts twoslash
3115
- * import { TransactionEnvelopeLegacy, Value } from 'ox'
3183
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3116
3184
  *
3117
- * const envelope = TransactionEnvelopeLegacy.from({
3185
+ * const envelope = TxEnvelopeLegacy.from({
3118
3186
  * chainId: 1,
3119
3187
  * gasPrice: Value.fromGwei('10'),
3120
3188
  * to: '0x0000000000000000000000000000000000000000',
3121
3189
  * value: Value.fromEther('1'),
3122
3190
  * })
3123
3191
  *
3124
- * const serialized = TransactionEnvelopeLegacy.serialize(envelope) // [!code focus]
3192
+ * const serialized = TxEnvelopeLegacy.serialize(envelope) // [!code focus]
3125
3193
  * ```
3126
3194
  *
3127
3195
  * @example
@@ -3132,10 +3200,10 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3132
3200
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3133
3201
  *
3134
3202
  * ```ts twoslash
3135
- * import { RpcTransport, TransactionEnvelopeLegacy, Secp256k1, Value } from 'ox'
3203
+ * import { RpcTransport, TxEnvelopeLegacy, Secp256k1, Value } from 'ox'
3136
3204
  *
3137
3205
  * // Construct the Envelope.
3138
- * const envelope = TransactionEnvelopeLegacy.from({
3206
+ * const envelope = TxEnvelopeLegacy.from({
3139
3207
  * chainId: 1,
3140
3208
  * gasPrice: Value.fromGwei('10'),
3141
3209
  * nonce: 69n,
@@ -3145,12 +3213,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3145
3213
  *
3146
3214
  * // Sign over the Envelope.
3147
3215
  * const signature = Secp256k1.sign({
3148
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope),
3216
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3149
3217
  * privateKey: '0x...',
3150
3218
  * })
3151
3219
  *
3152
3220
  * // Serialize the Envelope with the Signature. // [!code focus]
3153
- * const serialized = TransactionEnvelopeLegacy.serialize(envelope, { // [!code focus]
3221
+ * const serialized = TxEnvelopeLegacy.serialize(envelope, { // [!code focus]
3154
3222
  * signature // [!code focus]
3155
3223
  * }) // [!code focus]
3156
3224
  *
@@ -3163,20 +3231,20 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3163
3231
  * ```
3164
3232
  *
3165
3233
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
3166
- * {@link ox#TransactionEnvelopeLegacy.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
3234
+ * {@link ox#TxEnvelopeLegacy.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
3167
3235
  * This means you can skip the ceremony of manually filling & signing the Transaction.
3168
3236
  *
3169
3237
  * ```ts twoslash
3170
3238
  * import 'ox/window'
3171
- * import { Provider, TransactionEnvelopeLegacy, Value } from 'ox'
3239
+ * import { Provider, TxEnvelopeLegacy, Value } from 'ox'
3172
3240
  *
3173
- * const envelope = TransactionEnvelopeLegacy.from({
3241
+ * const envelope = TxEnvelopeLegacy.from({
3174
3242
  * chainId: 1,
3175
3243
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3176
3244
  * value: Value.fromEther('1.5'),
3177
3245
  * })
3178
3246
  *
3179
- * const envelope_rpc = TransactionEnvelopeLegacy.toRpc(envelope)
3247
+ * const envelope_rpc = TxEnvelopeLegacy.toRpc(envelope)
3180
3248
  *
3181
3249
  * const provider = Provider.from(window.ethereum)
3182
3250
  * const hash = await provider.request({
@@ -3188,12 +3256,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3188
3256
  * @example
3189
3257
  * ### Computing Hashes
3190
3258
  *
3191
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeLegacy.(hash:function)}:
3259
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeLegacy.(hash:function)}:
3192
3260
  *
3193
3261
  * ```ts twoslash
3194
- * import { Secp256k1, TransactionEnvelopeLegacy } from 'ox'
3262
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3195
3263
  *
3196
- * const envelope = TransactionEnvelopeLegacy.from({
3264
+ * const envelope = TxEnvelopeLegacy.from({
3197
3265
  * chainId: 1,
3198
3266
  * nonce: 0n,
3199
3267
  * gasPrice: 1000000000n,
@@ -3204,86 +3272,18 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3204
3272
  * })
3205
3273
  *
3206
3274
  * const signature = Secp256k1.sign({
3207
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope),
3275
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3208
3276
  * privateKey: '0x...'
3209
3277
  * })
3210
3278
  *
3211
- * const envelope_signed = TransactionEnvelopeLegacy.from(envelope, { signature })
3279
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, { signature })
3212
3280
  *
3213
- * const hash = TransactionEnvelopeLegacy.hash(envelope_signed) // [!code focus]
3281
+ * const hash = TxEnvelopeLegacy.hash(envelope_signed) // [!code focus]
3214
3282
  * ```
3215
3283
  *
3216
3284
  * @category Transaction Envelopes
3217
3285
  */
3218
- export * as TransactionEnvelopeLegacy from './core/TransactionEnvelopeLegacy.js';
3219
- /**
3220
- * Utilities & types for working with **Transaction Receipts** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml)
3221
- *
3222
- * @example
3223
- * ### Converting from RPC Format
3224
- *
3225
- * Receipts can be converted from RPC format using {@link ox#TransactionReceipt.(fromRpc:function)}:
3226
- *
3227
- * ```ts twoslash
3228
- * import 'ox/window'
3229
- * import { TransactionReceipt } from 'ox'
3230
- *
3231
- * const receipt = await window.ethereum!
3232
- * .request({
3233
- * method: 'eth_getTransactionReceipt',
3234
- * params: [
3235
- * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
3236
- * ],
3237
- * })
3238
- * .then(TransactionReceipt.fromRpc) // [!code hl]
3239
- * // @log: {
3240
- * // @log: blobGasPrice: 270441n,
3241
- * // @log: blobGasUsed: 4919n,
3242
- * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
3243
- * // @log: blockNumber: 19868015n,
3244
- * // @log: contractAddress: null,
3245
- * // @log: cumulativeGasUsed: 533781n,
3246
- * // @log: effectiveGasPrice: 9062804489n,
3247
- * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
3248
- * // @log: gasUsed: 175034n,
3249
- * // @log: logs: [],
3250
- * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
3251
- * // @log: root: undefined,
3252
- * // @log: status: "success",
3253
- * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
3254
- * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
3255
- * // @log: transactionIndex: 2,
3256
- * // @log: type: "eip1559",
3257
- * // @log: }
3258
- * ```
3259
- *
3260
- * @category Execution Spec
3261
- */
3262
- export * as TransactionReceipt from './core/TransactionReceipt.js';
3263
- /**
3264
- * Utilities & types for working with **Transaction Requests** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/4aca1d7a3e5aab24c8f6437131289ad386944eaa/src/schemas/transaction.yaml#L358-L423)
3265
- *
3266
- * @example
3267
- * ```ts twoslash
3268
- * import 'ox/window'
3269
- * import { Provider, TransactionRequest, Value } from 'ox'
3270
- *
3271
- * const provider = Provider.from(window.ethereum!)
3272
- *
3273
- * const request = TransactionRequest.toRpc({ // [!code focus]
3274
- * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code focus]
3275
- * value: Value.fromEther('0.01'), // [!code focus]
3276
- * }) // [!code focus]
3277
- *
3278
- * const hash = await provider.request({
3279
- * method: 'eth_sendTransaction',
3280
- * params: [request],
3281
- * })
3282
- * ```
3283
- *
3284
- * @category Execution Spec
3285
- */
3286
- export * as TransactionRequest from './core/TransactionRequest.js';
3286
+ export * as TxEnvelopeLegacy from './core/TxEnvelopeLegacy.js';
3287
3287
  /**
3288
3288
  * Utility functions for working with [EIP-712 Typed Data](https://eips.ethereum.org/EIPS/eip-712)
3289
3289
  *