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/_esm/index.js CHANGED
@@ -795,7 +795,7 @@ export * as AesGcm from './core/AesGcm.js';
795
795
  * A signature can be attached to an Authorization using {@link ox#Authorization.(from:function)}:
796
796
  *
797
797
  * ```ts twoslash
798
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
798
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
799
799
  *
800
800
  * const authorization = Authorization.from({
801
801
  * address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
@@ -810,7 +810,7 @@ export * as AesGcm from './core/AesGcm.js';
810
810
  *
811
811
  * const authorization_signed = Authorization.from(authorization, { signature }) // [!code focus]
812
812
  *
813
- * const envelope = TransactionEnvelopeEip7702.from({
813
+ * const envelope = TxEnvelopeEip7702.from({
814
814
  * authorizationList: [authorization_signed],
815
815
  * chainId: 1,
816
816
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2405,33 +2405,101 @@ export * as StateOverrides from './core/StateOverrides.js';
2405
2405
  * @category Execution Spec
2406
2406
  */
2407
2407
  export * as Transaction from './core/Transaction.js';
2408
+ /**
2409
+ * 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)
2410
+ *
2411
+ * @example
2412
+ * ### Converting from RPC Format
2413
+ *
2414
+ * Receipts can be converted from RPC format using {@link ox#TransactionReceipt.(fromRpc:function)}:
2415
+ *
2416
+ * ```ts twoslash
2417
+ * import 'ox/window'
2418
+ * import { TransactionReceipt } from 'ox'
2419
+ *
2420
+ * const receipt = await window.ethereum!
2421
+ * .request({
2422
+ * method: 'eth_getTransactionReceipt',
2423
+ * params: [
2424
+ * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
2425
+ * ],
2426
+ * })
2427
+ * .then(TransactionReceipt.fromRpc) // [!code hl]
2428
+ * // @log: {
2429
+ * // @log: blobGasPrice: 270441n,
2430
+ * // @log: blobGasUsed: 4919n,
2431
+ * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
2432
+ * // @log: blockNumber: 19868015n,
2433
+ * // @log: contractAddress: null,
2434
+ * // @log: cumulativeGasUsed: 533781n,
2435
+ * // @log: effectiveGasPrice: 9062804489n,
2436
+ * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
2437
+ * // @log: gasUsed: 175034n,
2438
+ * // @log: logs: [],
2439
+ * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
2440
+ * // @log: root: undefined,
2441
+ * // @log: status: "success",
2442
+ * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
2443
+ * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
2444
+ * // @log: transactionIndex: 2,
2445
+ * // @log: type: "eip1559",
2446
+ * // @log: }
2447
+ * ```
2448
+ *
2449
+ * @category Execution Spec
2450
+ */
2451
+ export * as TransactionReceipt from './core/TransactionReceipt.js';
2452
+ /**
2453
+ * 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)
2454
+ *
2455
+ * @example
2456
+ * ```ts twoslash
2457
+ * import 'ox/window'
2458
+ * import { Provider, TransactionRequest, Value } from 'ox'
2459
+ *
2460
+ * const provider = Provider.from(window.ethereum!)
2461
+ *
2462
+ * const request = TransactionRequest.toRpc({ // [!code focus]
2463
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code focus]
2464
+ * value: Value.fromEther('0.01'), // [!code focus]
2465
+ * }) // [!code focus]
2466
+ *
2467
+ * const hash = await provider.request({
2468
+ * method: 'eth_sendTransaction',
2469
+ * params: [request],
2470
+ * })
2471
+ * ```
2472
+ *
2473
+ * @category Execution Spec
2474
+ */
2475
+ export * as TransactionRequest from './core/TransactionRequest.js';
2408
2476
  /**
2409
2477
  * Errors & Types for working with Transaction Envelopes.
2410
2478
  *
2411
2479
  * :::note
2412
2480
  * Refer to the following modules for specific Transaction Envelope types:
2413
- * - [`TransactionEnvelopeLegacy`](/api/TransactionEnvelopeLegacy)
2414
- * - [`TransactionEnvelopeEip1559`](/api/TransactionEnvelopeEip1559)
2415
- * - [`TransactionEnvelopeEip2930`](/api/TransactionEnvelopeEip2930)
2416
- * - [`TransactionEnvelopeEip4844`](/api/TransactionEnvelopeEip4844)
2417
- * - [`TransactionEnvelopeEip7702`](/api/TransactionEnvelopeEip7702)
2481
+ * - [`TxEnvelopeLegacy`](/api/TxEnvelopeLegacy)
2482
+ * - [`TxEnvelopeEip1559`](/api/TxEnvelopeEip1559)
2483
+ * - [`TxEnvelopeEip2930`](/api/TxEnvelopeEip2930)
2484
+ * - [`TxEnvelopeEip4844`](/api/TxEnvelopeEip4844)
2485
+ * - [`TxEnvelopeEip7702`](/api/TxEnvelopeEip7702)
2418
2486
  * :::
2419
2487
  *
2420
2488
  * @category Transaction Envelopes
2421
2489
  */
2422
- export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2490
+ export * as TransactionEnvelope from './core/TxEnvelope.js';
2423
2491
  /**
2424
2492
  * Utility functions for working with [EIP-1559 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-1559)
2425
2493
  *
2426
2494
  * @example
2427
2495
  * ### Instantiating
2428
2496
  *
2429
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip1559.(from:function)}:
2497
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip1559.(from:function)}:
2430
2498
  *
2431
2499
  * ```ts twoslash
2432
- * import { TransactionEnvelopeEip1559, Value } from 'ox'
2500
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2433
2501
  *
2434
- * const envelope = TransactionEnvelopeEip1559.from({
2502
+ * const envelope = TxEnvelopeEip1559.from({
2435
2503
  * chainId: 1,
2436
2504
  * maxFeePerGas: Value.fromGwei('10'),
2437
2505
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2451,12 +2519,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2451
2519
  * @example
2452
2520
  * ### Signing
2453
2521
  *
2454
- * 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)}:
2522
+ * 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)}:
2455
2523
  *
2456
2524
  * ```ts twoslash
2457
- * import { Secp256k1, TransactionEnvelopeEip1559 } from 'ox'
2525
+ * import { Secp256k1, TxEnvelopeEip1559 } from 'ox'
2458
2526
  *
2459
- * const envelope = TransactionEnvelopeEip1559.from({
2527
+ * const envelope = TxEnvelopeEip1559.from({
2460
2528
  * chainId: 1,
2461
2529
  * nonce: 0n,
2462
2530
  * gasPrice: 1000000000n,
@@ -2466,22 +2534,22 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2466
2534
  * })
2467
2535
  *
2468
2536
  * const signature = Secp256k1.sign({ // [!code focus]
2469
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope), // [!code focus]
2537
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope), // [!code focus]
2470
2538
  * privateKey: '0x...' // [!code focus]
2471
2539
  * }) // [!code focus]
2472
2540
  *
2473
- * const envelope_signed = TransactionEnvelopeEip1559.from(envelope, { signature })
2541
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, { signature })
2474
2542
  * ```
2475
2543
  *
2476
2544
  * @example
2477
2545
  * ### Serializing
2478
2546
  *
2479
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip1559.(serialize:function)}:
2547
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip1559.(serialize:function)}:
2480
2548
  *
2481
2549
  * ```ts twoslash
2482
- * import { TransactionEnvelopeEip1559, Value } from 'ox'
2550
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2483
2551
  *
2484
- * const envelope = TransactionEnvelopeEip1559.from({
2552
+ * const envelope = TxEnvelopeEip1559.from({
2485
2553
  * chainId: 1,
2486
2554
  * maxFeePerGas: Value.fromGwei('10'),
2487
2555
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2489,7 +2557,7 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2489
2557
  * value: Value.fromEther('1'),
2490
2558
  * })
2491
2559
  *
2492
- * const serialized = TransactionEnvelopeEip1559.serialize(envelope) // [!code focus]
2560
+ * const serialized = TxEnvelopeEip1559.serialize(envelope) // [!code focus]
2493
2561
  * ```
2494
2562
  *
2495
2563
  * @example
@@ -2500,10 +2568,10 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2500
2568
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2501
2569
  *
2502
2570
  * ```ts twoslash
2503
- * import { RpcTransport, TransactionEnvelopeEip1559, Secp256k1, Value } from 'ox'
2571
+ * import { RpcTransport, TxEnvelopeEip1559, Secp256k1, Value } from 'ox'
2504
2572
  *
2505
2573
  * // Construct the Envelope.
2506
- * const envelope = TransactionEnvelopeEip1559.from({
2574
+ * const envelope = TxEnvelopeEip1559.from({
2507
2575
  * chainId: 1,
2508
2576
  * maxFeePerGas: Value.fromGwei('10'),
2509
2577
  * maxPriorityFeePerGas: Value.fromGwei('1'),
@@ -2514,12 +2582,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2514
2582
  *
2515
2583
  * // Sign over the Envelope.
2516
2584
  * const signature = Secp256k1.sign({
2517
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope),
2585
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2518
2586
  * privateKey: '0x...',
2519
2587
  * })
2520
2588
  *
2521
2589
  * // Serialize the Envelope with the Signature. // [!code focus]
2522
- * const serialized = TransactionEnvelopeEip1559.serialize(envelope, { // [!code focus]
2590
+ * const serialized = TxEnvelopeEip1559.serialize(envelope, { // [!code focus]
2523
2591
  * signature // [!code focus]
2524
2592
  * }) // [!code focus]
2525
2593
  *
@@ -2532,20 +2600,20 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2532
2600
  * ```
2533
2601
  *
2534
2602
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2535
- * {@link ox#TransactionEnvelopeEip1559.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2603
+ * {@link ox#TxEnvelopeEip1559.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2536
2604
  * This means you can skip the ceremony of manually filling & signing the Transaction.
2537
2605
  *
2538
2606
  * ```ts twoslash
2539
2607
  * import 'ox/window'
2540
- * import { Provider, TransactionEnvelopeEip1559, Value } from 'ox'
2608
+ * import { Provider, TxEnvelopeEip1559, Value } from 'ox'
2541
2609
  *
2542
- * const envelope = TransactionEnvelopeEip1559.from({
2610
+ * const envelope = TxEnvelopeEip1559.from({
2543
2611
  * chainId: 1,
2544
2612
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2545
2613
  * value: Value.fromEther('1.5'),
2546
2614
  * })
2547
2615
  *
2548
- * const envelope_rpc = TransactionEnvelopeEip1559.toRpc(envelope)
2616
+ * const envelope_rpc = TxEnvelopeEip1559.toRpc(envelope)
2549
2617
  *
2550
2618
  * const provider = Provider.from(window.ethereum)
2551
2619
  * const hash = await provider.request({
@@ -2557,12 +2625,12 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2557
2625
  * @example
2558
2626
  * ### Computing Hashes
2559
2627
  *
2560
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip1559.(hash:function)}:
2628
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip1559.(hash:function)}:
2561
2629
  *
2562
2630
  * ```ts twoslash
2563
- * import { Secp256k1, TransactionEnvelopeEip1559, Value } from 'ox'
2631
+ * import { Secp256k1, TxEnvelopeEip1559, Value } from 'ox'
2564
2632
  *
2565
- * const envelope = TransactionEnvelopeEip1559.from({
2633
+ * const envelope = TxEnvelopeEip1559.from({
2566
2634
  * chainId: 1,
2567
2635
  * nonce: 0n,
2568
2636
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2574,31 +2642,31 @@ export * as TransactionEnvelope from './core/TransactionEnvelope.js';
2574
2642
  * })
2575
2643
  *
2576
2644
  * const signature = Secp256k1.sign({
2577
- * payload: TransactionEnvelopeEip1559.getSignPayload(envelope),
2645
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2578
2646
  * privateKey: '0x...'
2579
2647
  * })
2580
2648
  *
2581
- * const envelope_signed = TransactionEnvelopeEip1559.from(envelope, { signature })
2649
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, { signature })
2582
2650
  *
2583
- * const hash = TransactionEnvelopeEip1559.hash(envelope_signed) // [!code focus]
2651
+ * const hash = TxEnvelopeEip1559.hash(envelope_signed) // [!code focus]
2584
2652
  * ```
2585
2653
  *
2586
2654
  * @category Transaction Envelopes
2587
2655
  */
2588
- export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.js';
2656
+ export * as TxEnvelopeEip1559 from './core/TxEnvelopeEip1559.js';
2589
2657
  /**
2590
2658
  * Utility functions for working with [EIP-2930 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-2930)
2591
2659
  *
2592
2660
  * @example
2593
2661
  * ### Instantiating
2594
2662
  *
2595
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip2930.(from:function)}:
2663
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip2930.(from:function)}:
2596
2664
  *
2597
2665
  * ```ts twoslash
2598
2666
  * // @noErrors
2599
- * import { TransactionEnvelopeEip2930, Value } from 'ox'
2667
+ * import { TxEnvelopeEip2930, Value } from 'ox'
2600
2668
  *
2601
- * const envelope = TransactionEnvelopeEip2930.from({
2669
+ * const envelope = TxEnvelopeEip2930.from({
2602
2670
  * chainId: 1,
2603
2671
  * accessList: [...],
2604
2672
  * gasPrice: Value.fromGwei('10'),
@@ -2610,12 +2678,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2610
2678
  * @example
2611
2679
  * ### Signing
2612
2680
  *
2613
- * 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)}:
2681
+ * 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)}:
2614
2682
  *
2615
2683
  * ```ts twoslash
2616
- * import { Secp256k1, TransactionEnvelopeEip2930 } from 'ox'
2684
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2617
2685
  *
2618
- * const envelope = TransactionEnvelopeEip2930.from({
2686
+ * const envelope = TxEnvelopeEip2930.from({
2619
2687
  * chainId: 1,
2620
2688
  * nonce: 0n,
2621
2689
  * gasPrice: 1000000000n,
@@ -2624,7 +2692,7 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2624
2692
  * value: 1000000000000000000n,
2625
2693
  * })
2626
2694
  *
2627
- * const payload = TransactionEnvelopeEip2930.getSignPayload(envelope) // [!code focus]
2695
+ * const payload = TxEnvelopeEip2930.getSignPayload(envelope) // [!code focus]
2628
2696
  * // @log: '0x...'
2629
2697
  *
2630
2698
  * const signature = Secp256k1.sign({ payload, privateKey: '0x...' })
@@ -2633,12 +2701,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2633
2701
  * @example
2634
2702
  * ### Serializing
2635
2703
  *
2636
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip2930.(serialize:function)}:
2704
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip2930.(serialize:function)}:
2637
2705
  *
2638
2706
  * ```ts twoslash
2639
- * import { Secp256k1, TransactionEnvelopeEip2930, Value } from 'ox'
2707
+ * import { Secp256k1, TxEnvelopeEip2930, Value } from 'ox'
2640
2708
  *
2641
- * const envelope = TransactionEnvelopeEip2930.from({
2709
+ * const envelope = TxEnvelopeEip2930.from({
2642
2710
  * chainId: 1,
2643
2711
  * nonce: 0n,
2644
2712
  * gasPrice: 1000000000n,
@@ -2647,7 +2715,7 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2647
2715
  * value: 1000000000000000000n,
2648
2716
  * })
2649
2717
  *
2650
- * const serialized = TransactionEnvelopeEip2930.serialize(envelope) // [!code focus]
2718
+ * const serialized = TxEnvelopeEip2930.serialize(envelope) // [!code focus]
2651
2719
  * ```
2652
2720
  *
2653
2721
  * @example
@@ -2658,10 +2726,10 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2658
2726
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2659
2727
  *
2660
2728
  * ```ts twoslash
2661
- * import { RpcTransport, TransactionEnvelopeEip2930, Secp256k1, Value } from 'ox'
2729
+ * import { RpcTransport, TxEnvelopeEip2930, Secp256k1, Value } from 'ox'
2662
2730
  *
2663
2731
  * // Construct the Envelope.
2664
- * const envelope = TransactionEnvelopeEip2930.from({
2732
+ * const envelope = TxEnvelopeEip2930.from({
2665
2733
  * accessList: [],
2666
2734
  * chainId: 1,
2667
2735
  * gasPrice: Value.fromGwei('10'),
@@ -2672,12 +2740,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2672
2740
  *
2673
2741
  * // Sign over the Envelope.
2674
2742
  * const signature = Secp256k1.sign({
2675
- * payload: TransactionEnvelopeEip2930.getSignPayload(envelope),
2743
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2676
2744
  * privateKey: '0x...',
2677
2745
  * })
2678
2746
  *
2679
2747
  * // Serialize the Envelope with the Signature. // [!code focus]
2680
- * const serialized = TransactionEnvelopeEip2930.serialize(envelope, { // [!code focus]
2748
+ * const serialized = TxEnvelopeEip2930.serialize(envelope, { // [!code focus]
2681
2749
  * signature // [!code focus]
2682
2750
  * }) // [!code focus]
2683
2751
  *
@@ -2690,21 +2758,21 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2690
2758
  * ```
2691
2759
  *
2692
2760
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2693
- * {@link ox#TransactionEnvelopeEip2930.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2761
+ * {@link ox#TxEnvelopeEip2930.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2694
2762
  * This means you can skip the ceremony of manually filling & signing the Transaction.
2695
2763
  *
2696
2764
  * ```ts twoslash
2697
2765
  * import 'ox/window'
2698
- * import { Provider, TransactionEnvelopeEip2930, Value } from 'ox'
2766
+ * import { Provider, TxEnvelopeEip2930, Value } from 'ox'
2699
2767
  *
2700
- * const envelope = TransactionEnvelopeEip2930.from({
2768
+ * const envelope = TxEnvelopeEip2930.from({
2701
2769
  * accessList: [],
2702
2770
  * chainId: 1,
2703
2771
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2704
2772
  * value: Value.fromEther('1.5'),
2705
2773
  * })
2706
2774
  *
2707
- * const envelope_rpc = TransactionEnvelopeEip2930.toRpc(envelope)
2775
+ * const envelope_rpc = TxEnvelopeEip2930.toRpc(envelope)
2708
2776
  *
2709
2777
  * const provider = Provider.from(window.ethereum)
2710
2778
  * const hash = await provider.request({
@@ -2716,12 +2784,12 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2716
2784
  * @example
2717
2785
  * ### Computing Hashes
2718
2786
  *
2719
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip2930.(hash:function)}:
2787
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip2930.(hash:function)}:
2720
2788
  *
2721
2789
  * ```ts twoslash
2722
- * import { Secp256k1, TransactionEnvelopeEip2930 } from 'ox'
2790
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2723
2791
  *
2724
- * const envelope = TransactionEnvelopeEip2930.from({
2792
+ * const envelope = TxEnvelopeEip2930.from({
2725
2793
  * chainId: 1,
2726
2794
  * nonce: 0n,
2727
2795
  * gasPrice: 1000000000n,
@@ -2732,18 +2800,18 @@ export * as TransactionEnvelopeEip1559 from './core/TransactionEnvelopeEip1559.j
2732
2800
  * })
2733
2801
  *
2734
2802
  * const signature = Secp256k1.sign({
2735
- * payload: TransactionEnvelopeEip2930.getSignPayload(envelope),
2803
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2736
2804
  * privateKey: '0x...'
2737
2805
  * })
2738
2806
  *
2739
- * const envelope_signed = TransactionEnvelopeEip2930.from(envelope, { signature })
2807
+ * const envelope_signed = TxEnvelopeEip2930.from(envelope, { signature })
2740
2808
  *
2741
- * const hash = TransactionEnvelopeEip2930.hash(envelope_signed) // [!code focus]
2809
+ * const hash = TxEnvelopeEip2930.hash(envelope_signed) // [!code focus]
2742
2810
  * ```
2743
2811
  *
2744
2812
  * @category Transaction Envelopes
2745
2813
  */
2746
- export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.js';
2814
+ export * as TxEnvelopeEip2930 from './core/TxEnvelopeEip2930.js';
2747
2815
  /**
2748
2816
  * Utility functions for working with [EIP-4844 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-4844)
2749
2817
  *
@@ -2761,17 +2829,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2761
2829
  * @example
2762
2830
  * ### Instantiating
2763
2831
  *
2764
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip4844.(from:function)}:
2832
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip4844.(from:function)}:
2765
2833
  *
2766
2834
  * ```ts twoslash
2767
2835
  * // @noErrors
2768
- * import { Blobs, Hex, TransactionEnvelopeEip4844, Value } from 'ox'
2836
+ * import { Blobs, Hex, TxEnvelopeEip4844, Value } from 'ox'
2769
2837
  * import { kzg } from './kzg'
2770
2838
  *
2771
2839
  * const blobs = Blobs.from(Hex.fromString('Hello World!'))
2772
2840
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2773
2841
  *
2774
- * const envelope = TransactionEnvelopeEip4844.from({
2842
+ * const envelope = TxEnvelopeEip4844.from({
2775
2843
  * chainId: 1,
2776
2844
  * blobVersionedHashes,
2777
2845
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2785,18 +2853,18 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2785
2853
  * @example
2786
2854
  * ### Signing
2787
2855
  *
2788
- * 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)}:
2856
+ * 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)}:
2789
2857
  *
2790
2858
  * ```ts twoslash
2791
2859
  * // @noErrors
2792
- * import { Blobs, Secp256k1, TransactionEnvelopeEip4844 } from 'ox'
2860
+ * import { Blobs, Secp256k1, TxEnvelopeEip4844 } from 'ox'
2793
2861
  * import { kzg } from './kzg'
2794
2862
  *
2795
2863
  * const blobs = Blobs.from('0xdeadbeef')
2796
2864
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2797
2865
  * const sidecars = Blobs.toSidecars(blobs, { kzg })
2798
2866
  *
2799
- * const envelope = TransactionEnvelopeEip4844.from({
2867
+ * const envelope = TxEnvelopeEip4844.from({
2800
2868
  * blobVersionedHashes,
2801
2869
  * chainId: 1,
2802
2870
  * nonce: 0n,
@@ -2808,11 +2876,11 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2808
2876
  * })
2809
2877
  *
2810
2878
  * const signature = Secp256k1.sign({ // [!code focus]
2811
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope), // [!code focus]
2879
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope), // [!code focus]
2812
2880
  * privateKey: '0x...' // [!code focus]
2813
2881
  * }) // [!code focus]
2814
2882
  *
2815
- * const envelope_signed = TransactionEnvelopeEip4844.from(envelope, {
2883
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, {
2816
2884
  * sidecars,
2817
2885
  * signature
2818
2886
  * })
@@ -2821,17 +2889,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2821
2889
  * @example
2822
2890
  * ### Serializing
2823
2891
  *
2824
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeEip4844.(serialize:function)}:
2892
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip4844.(serialize:function)}:
2825
2893
  *
2826
2894
  * ```ts twoslash
2827
2895
  * // @noErrors
2828
- * import { Blobs, TransactionEnvelopeEip4844 } from 'ox'
2896
+ * import { Blobs, TxEnvelopeEip4844 } from 'ox'
2829
2897
  * import { kzg } from './kzg'
2830
2898
  *
2831
2899
  * const blobs = Blobs.from('0xdeadbeef')
2832
2900
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2833
2901
  *
2834
- * const envelope = TransactionEnvelopeEip4844.from({
2902
+ * const envelope = TxEnvelopeEip4844.from({
2835
2903
  * blobVersionedHashes,
2836
2904
  * chainId: 1,
2837
2905
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2841,7 +2909,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2841
2909
  * value: Value.fromEther('1'),
2842
2910
  * })
2843
2911
  *
2844
- * const serialized = TransactionEnvelopeEip4844.serialize(envelope) // [!code focus]
2912
+ * const serialized = TxEnvelopeEip4844.serialize(envelope) // [!code focus]
2845
2913
  * ```
2846
2914
  *
2847
2915
  * @example
@@ -2853,7 +2921,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2853
2921
  *
2854
2922
  * ```ts twoslash
2855
2923
  * // @noErrors
2856
- * import { Blobs, RpcTransport, TransactionEnvelopeEip4844, Secp256k1, Value } from 'ox'
2924
+ * import { Blobs, RpcTransport, TxEnvelopeEip4844, Secp256k1, Value } from 'ox'
2857
2925
  * import { kzg } from './kzg'
2858
2926
  *
2859
2927
  * // Compute the Blob Versioned Hashes.
@@ -2862,7 +2930,7 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2862
2930
  * const sidecars = Blobs.toSidecars(blobs, { kzg })
2863
2931
  *
2864
2932
  * // Construct the Envelope.
2865
- * const envelope = TransactionEnvelopeEip4844.from({
2933
+ * const envelope = TxEnvelopeEip4844.from({
2866
2934
  * chainId: 1,
2867
2935
  * blobVersionedHashes,
2868
2936
  * maxFeePerBlobGas: Value.fromGwei('3'),
@@ -2875,12 +2943,12 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2875
2943
  *
2876
2944
  * // Sign over the Envelope.
2877
2945
  * const signature = Secp256k1.sign({
2878
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope),
2946
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
2879
2947
  * privateKey: '0x...',
2880
2948
  * })
2881
2949
  *
2882
2950
  * // Serialize the Envelope with the Signature. // [!code focus]
2883
- * const serialized = TransactionEnvelopeEip4844.serialize(envelope, { // [!code focus]
2951
+ * const serialized = TxEnvelopeEip4844.serialize(envelope, { // [!code focus]
2884
2952
  * sidecars, // [!code focus]
2885
2953
  * signature // [!code focus]
2886
2954
  * }) // [!code focus]
@@ -2896,17 +2964,17 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2896
2964
  * @example
2897
2965
  * ### Computing Hashes
2898
2966
  *
2899
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeEip4844.(hash:function)}:
2967
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip4844.(hash:function)}:
2900
2968
  *
2901
2969
  * ```ts twoslash
2902
2970
  * // @noErrors
2903
- * import { Blobs, Secp256k1, TransactionEnvelopeEip4844, Value } from 'ox'
2971
+ * import { Blobs, Secp256k1, TxEnvelopeEip4844, Value } from 'ox'
2904
2972
  * import { kzg } from './kzg'
2905
2973
  *
2906
2974
  * const blobs = Blobs.from('0xdeadbeef')
2907
2975
  * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, { kzg })
2908
2976
  *
2909
- * const envelope = TransactionEnvelopeEip4844.from({
2977
+ * const envelope = TxEnvelopeEip4844.from({
2910
2978
  * blobVersionedHashes,
2911
2979
  * chainId: 1,
2912
2980
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2915,28 +2983,28 @@ export * as TransactionEnvelopeEip2930 from './core/TransactionEnvelopeEip2930.j
2915
2983
  * })
2916
2984
  *
2917
2985
  * const signature = Secp256k1.sign({
2918
- * payload: TransactionEnvelopeEip4844.getSignPayload(envelope),
2986
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
2919
2987
  * privateKey: '0x...'
2920
2988
  * })
2921
2989
  *
2922
- * const envelope_signed = TransactionEnvelopeEip4844.from(envelope, { signature })
2990
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, { signature })
2923
2991
  *
2924
- * const hash = TransactionEnvelopeEip4844.hash(envelope_signed) // [!code focus]
2992
+ * const hash = TxEnvelopeEip4844.hash(envelope_signed) // [!code focus]
2925
2993
  * ```
2926
2994
  *
2927
2995
  * @category Transaction Envelopes
2928
2996
  */
2929
- export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.js';
2997
+ export * as TxEnvelopeEip4844 from './core/TxEnvelopeEip4844.js';
2930
2998
  /**
2931
2999
  * Utility functions for working with [EIP-7702 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-7702)
2932
3000
  *
2933
3001
  * @example
2934
3002
  * ### Instantiating
2935
3003
  *
2936
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeEip7702.(from:function)}:
3004
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip7702.(from:function)}:
2937
3005
  *
2938
3006
  * ```ts twoslash
2939
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
3007
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
2940
3008
  *
2941
3009
  * const authorization = Authorization.from({
2942
3010
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -2951,7 +3019,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2951
3019
  *
2952
3020
  * const authorizationList = [Authorization.from(authorization, { signature })]
2953
3021
  *
2954
- * const envelope = TransactionEnvelopeEip7702.from({ // [!code focus]
3022
+ * const envelope = TxEnvelopeEip7702.from({ // [!code focus]
2955
3023
  * authorizationList, // [!code focus]
2956
3024
  * chainId: 1, // [!code focus]
2957
3025
  * maxFeePerGas: Value.fromGwei('10'), // [!code focus]
@@ -2970,10 +3038,10 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2970
3038
  * @example
2971
3039
  * ### Signing
2972
3040
  *
2973
- * 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)}:
3041
+ * 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)}:
2974
3042
  *
2975
3043
  * ```ts twoslash
2976
- * import { Authorization, Secp256k1, TransactionEnvelopeEip7702, Value } from 'ox'
3044
+ * import { Authorization, Secp256k1, TxEnvelopeEip7702, Value } from 'ox'
2977
3045
  *
2978
3046
  * const authorization = Authorization.from({
2979
3047
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -2988,7 +3056,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2988
3056
  *
2989
3057
  * const authorizationList = [Authorization.from(authorization, { signature: signature_auth })]
2990
3058
  *
2991
- * const envelope = TransactionEnvelopeEip7702.from({
3059
+ * const envelope = TxEnvelopeEip7702.from({
2992
3060
  * authorizationList,
2993
3061
  * chainId: 1,
2994
3062
  * maxFeePerGas: Value.fromGwei('10'),
@@ -2998,11 +3066,11 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
2998
3066
  * })
2999
3067
  *
3000
3068
  * const signature = Secp256k1.sign({ // [!code focus]
3001
- * payload: TransactionEnvelopeEip7702.getSignPayload(envelope), // [!code focus]
3069
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope), // [!code focus]
3002
3070
  * privateKey: '0x...', // [!code focus]
3003
3071
  * })
3004
3072
  *
3005
- * const envelope_signed = TransactionEnvelopeEip7702.from(envelope, { signature })
3073
+ * const envelope_signed = TxEnvelopeEip7702.from(envelope, { signature })
3006
3074
  * ```
3007
3075
  *
3008
3076
  * @example
@@ -3013,7 +3081,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3013
3081
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3014
3082
  *
3015
3083
  * ```ts twoslash
3016
- * import { Authorization, RpcTransport, TransactionEnvelopeEip7702, Secp256k1, Value } from 'ox'
3084
+ * import { Authorization, RpcTransport, TxEnvelopeEip7702, Secp256k1, Value } from 'ox'
3017
3085
  *
3018
3086
  * const authorization = Authorization.from({
3019
3087
  * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
@@ -3028,7 +3096,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3028
3096
  *
3029
3097
  * const authorizationList = [Authorization.from(authorization, { signature: signature_auth })]
3030
3098
  *
3031
- * const envelope = TransactionEnvelopeEip7702.from({
3099
+ * const envelope = TxEnvelopeEip7702.from({
3032
3100
  * authorizationList,
3033
3101
  * chainId: 1,
3034
3102
  * maxFeePerGas: Value.fromGwei('10'),
@@ -3039,12 +3107,12 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3039
3107
  * })
3040
3108
  *
3041
3109
  * const signature = Secp256k1.sign({
3042
- * payload: TransactionEnvelopeEip7702.getSignPayload(envelope),
3110
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope),
3043
3111
  * privateKey: '0x...',
3044
3112
  * })
3045
3113
  *
3046
3114
  * // Serialize the Envelope with the Signature. // [!code focus]
3047
- * const serialized = TransactionEnvelopeEip7702.serialize(envelope, { // [!code focus]
3115
+ * const serialized = TxEnvelopeEip7702.serialize(envelope, { // [!code focus]
3048
3116
  * signature // [!code focus]
3049
3117
  * }) // [!code focus]
3050
3118
  *
@@ -3058,7 +3126,7 @@ export * as TransactionEnvelopeEip4844 from './core/TransactionEnvelopeEip4844.j
3058
3126
  *
3059
3127
  * @category Transaction Envelopes
3060
3128
  */
3061
- export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.js';
3129
+ export * as TxEnvelopeEip7702 from './core/TxEnvelopeEip7702.js';
3062
3130
  /**
3063
3131
  * Utility functions for working
3064
3132
  * with **Legacy Transaction Envelopes**.
@@ -3066,12 +3134,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3066
3134
  * @example
3067
3135
  * ### Instantiating
3068
3136
  *
3069
- * Transaction Envelopes can be instantiated using {@link ox#TransactionEnvelopeLegacy.(from:function)}:
3137
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeLegacy.(from:function)}:
3070
3138
  *
3071
3139
  * ```ts twoslash
3072
- * import { TransactionEnvelopeLegacy, Value } from 'ox'
3140
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3073
3141
  *
3074
- * const envelope = TransactionEnvelopeLegacy.from({
3142
+ * const envelope = TxEnvelopeLegacy.from({
3075
3143
  * gasPrice: Value.fromGwei('10'),
3076
3144
  * to: '0x0000000000000000000000000000000000000000',
3077
3145
  * value: Value.fromEther('1'),
@@ -3081,13 +3149,13 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3081
3149
  * * @example
3082
3150
  * ### Signing
3083
3151
  *
3084
- * 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)}:
3152
+ * 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)}:
3085
3153
  *
3086
3154
  * ```ts twoslash
3087
3155
  * // @noErrors
3088
- * import { Secp256k1, TransactionEnvelopeLegacy } from 'ox'
3156
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3089
3157
  *
3090
- * const envelope = TransactionEnvelopeLegacy.from({
3158
+ * const envelope = TxEnvelopeLegacy.from({
3091
3159
  * nonce: 0n,
3092
3160
  * gasPrice: 1000000000n,
3093
3161
  * gas: 21000n,
@@ -3096,29 +3164,29 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3096
3164
  * })
3097
3165
  *
3098
3166
  * const signature = Secp256k1.sign({ // [!code focus]
3099
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope), // [!code focus]
3167
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope), // [!code focus]
3100
3168
  * privateKey: '0x...' // [!code focus]
3101
3169
  * }) // [!code focus]
3102
3170
  *
3103
- * const envelope_signed = TransactionEnvelopeLegacy.from(envelope, { signature })
3171
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, { signature })
3104
3172
  * ```
3105
3173
  *
3106
3174
  * @example
3107
3175
  * ### Serializing
3108
3176
  *
3109
- * Transaction Envelopes can be serialized using {@link ox#TransactionEnvelopeLegacy.(serialize:function)}:
3177
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeLegacy.(serialize:function)}:
3110
3178
  *
3111
3179
  * ```ts twoslash
3112
- * import { TransactionEnvelopeLegacy, Value } from 'ox'
3180
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3113
3181
  *
3114
- * const envelope = TransactionEnvelopeLegacy.from({
3182
+ * const envelope = TxEnvelopeLegacy.from({
3115
3183
  * chainId: 1,
3116
3184
  * gasPrice: Value.fromGwei('10'),
3117
3185
  * to: '0x0000000000000000000000000000000000000000',
3118
3186
  * value: Value.fromEther('1'),
3119
3187
  * })
3120
3188
  *
3121
- * const serialized = TransactionEnvelopeLegacy.serialize(envelope) // [!code focus]
3189
+ * const serialized = TxEnvelopeLegacy.serialize(envelope) // [!code focus]
3122
3190
  * ```
3123
3191
  *
3124
3192
  * @example
@@ -3129,10 +3197,10 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3129
3197
  * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3130
3198
  *
3131
3199
  * ```ts twoslash
3132
- * import { RpcTransport, TransactionEnvelopeLegacy, Secp256k1, Value } from 'ox'
3200
+ * import { RpcTransport, TxEnvelopeLegacy, Secp256k1, Value } from 'ox'
3133
3201
  *
3134
3202
  * // Construct the Envelope.
3135
- * const envelope = TransactionEnvelopeLegacy.from({
3203
+ * const envelope = TxEnvelopeLegacy.from({
3136
3204
  * chainId: 1,
3137
3205
  * gasPrice: Value.fromGwei('10'),
3138
3206
  * nonce: 69n,
@@ -3142,12 +3210,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3142
3210
  *
3143
3211
  * // Sign over the Envelope.
3144
3212
  * const signature = Secp256k1.sign({
3145
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope),
3213
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3146
3214
  * privateKey: '0x...',
3147
3215
  * })
3148
3216
  *
3149
3217
  * // Serialize the Envelope with the Signature. // [!code focus]
3150
- * const serialized = TransactionEnvelopeLegacy.serialize(envelope, { // [!code focus]
3218
+ * const serialized = TxEnvelopeLegacy.serialize(envelope, { // [!code focus]
3151
3219
  * signature // [!code focus]
3152
3220
  * }) // [!code focus]
3153
3221
  *
@@ -3160,20 +3228,20 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3160
3228
  * ```
3161
3229
  *
3162
3230
  * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
3163
- * {@link ox#TransactionEnvelopeLegacy.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
3231
+ * {@link ox#TxEnvelopeLegacy.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
3164
3232
  * This means you can skip the ceremony of manually filling & signing the Transaction.
3165
3233
  *
3166
3234
  * ```ts twoslash
3167
3235
  * import 'ox/window'
3168
- * import { Provider, TransactionEnvelopeLegacy, Value } from 'ox'
3236
+ * import { Provider, TxEnvelopeLegacy, Value } from 'ox'
3169
3237
  *
3170
- * const envelope = TransactionEnvelopeLegacy.from({
3238
+ * const envelope = TxEnvelopeLegacy.from({
3171
3239
  * chainId: 1,
3172
3240
  * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3173
3241
  * value: Value.fromEther('1.5'),
3174
3242
  * })
3175
3243
  *
3176
- * const envelope_rpc = TransactionEnvelopeLegacy.toRpc(envelope)
3244
+ * const envelope_rpc = TxEnvelopeLegacy.toRpc(envelope)
3177
3245
  *
3178
3246
  * const provider = Provider.from(window.ethereum)
3179
3247
  * const hash = await provider.request({
@@ -3185,12 +3253,12 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3185
3253
  * @example
3186
3254
  * ### Computing Hashes
3187
3255
  *
3188
- * Transaction Hashes can be computed using {@link ox#TransactionEnvelopeLegacy.(hash:function)}:
3256
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeLegacy.(hash:function)}:
3189
3257
  *
3190
3258
  * ```ts twoslash
3191
- * import { Secp256k1, TransactionEnvelopeLegacy } from 'ox'
3259
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3192
3260
  *
3193
- * const envelope = TransactionEnvelopeLegacy.from({
3261
+ * const envelope = TxEnvelopeLegacy.from({
3194
3262
  * chainId: 1,
3195
3263
  * nonce: 0n,
3196
3264
  * gasPrice: 1000000000n,
@@ -3201,86 +3269,18 @@ export * as TransactionEnvelopeEip7702 from './core/TransactionEnvelopeEip7702.j
3201
3269
  * })
3202
3270
  *
3203
3271
  * const signature = Secp256k1.sign({
3204
- * payload: TransactionEnvelopeLegacy.getSignPayload(envelope),
3272
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3205
3273
  * privateKey: '0x...'
3206
3274
  * })
3207
3275
  *
3208
- * const envelope_signed = TransactionEnvelopeLegacy.from(envelope, { signature })
3276
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, { signature })
3209
3277
  *
3210
- * const hash = TransactionEnvelopeLegacy.hash(envelope_signed) // [!code focus]
3278
+ * const hash = TxEnvelopeLegacy.hash(envelope_signed) // [!code focus]
3211
3279
  * ```
3212
3280
  *
3213
3281
  * @category Transaction Envelopes
3214
3282
  */
3215
- export * as TransactionEnvelopeLegacy from './core/TransactionEnvelopeLegacy.js';
3216
- /**
3217
- * 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)
3218
- *
3219
- * @example
3220
- * ### Converting from RPC Format
3221
- *
3222
- * Receipts can be converted from RPC format using {@link ox#TransactionReceipt.(fromRpc:function)}:
3223
- *
3224
- * ```ts twoslash
3225
- * import 'ox/window'
3226
- * import { TransactionReceipt } from 'ox'
3227
- *
3228
- * const receipt = await window.ethereum!
3229
- * .request({
3230
- * method: 'eth_getTransactionReceipt',
3231
- * params: [
3232
- * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
3233
- * ],
3234
- * })
3235
- * .then(TransactionReceipt.fromRpc) // [!code hl]
3236
- * // @log: {
3237
- * // @log: blobGasPrice: 270441n,
3238
- * // @log: blobGasUsed: 4919n,
3239
- * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
3240
- * // @log: blockNumber: 19868015n,
3241
- * // @log: contractAddress: null,
3242
- * // @log: cumulativeGasUsed: 533781n,
3243
- * // @log: effectiveGasPrice: 9062804489n,
3244
- * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
3245
- * // @log: gasUsed: 175034n,
3246
- * // @log: logs: [],
3247
- * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
3248
- * // @log: root: undefined,
3249
- * // @log: status: "success",
3250
- * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
3251
- * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
3252
- * // @log: transactionIndex: 2,
3253
- * // @log: type: "eip1559",
3254
- * // @log: }
3255
- * ```
3256
- *
3257
- * @category Execution Spec
3258
- */
3259
- export * as TransactionReceipt from './core/TransactionReceipt.js';
3260
- /**
3261
- * 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)
3262
- *
3263
- * @example
3264
- * ```ts twoslash
3265
- * import 'ox/window'
3266
- * import { Provider, TransactionRequest, Value } from 'ox'
3267
- *
3268
- * const provider = Provider.from(window.ethereum!)
3269
- *
3270
- * const request = TransactionRequest.toRpc({ // [!code focus]
3271
- * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code focus]
3272
- * value: Value.fromEther('0.01'), // [!code focus]
3273
- * }) // [!code focus]
3274
- *
3275
- * const hash = await provider.request({
3276
- * method: 'eth_sendTransaction',
3277
- * params: [request],
3278
- * })
3279
- * ```
3280
- *
3281
- * @category Execution Spec
3282
- */
3283
- export * as TransactionRequest from './core/TransactionRequest.js';
3283
+ export * as TxEnvelopeLegacy from './core/TxEnvelopeLegacy.js';
3284
3284
  /**
3285
3285
  * Utility functions for working with [EIP-712 Typed Data](https://eips.ethereum.org/EIPS/eip-712)
3286
3286
  *