ox 1.7.5 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/core/Frame.d.ts +290 -0
  3. package/dist/core/Frame.d.ts.map +1 -0
  4. package/dist/core/Frame.js +306 -0
  5. package/dist/core/Frame.js.map +1 -0
  6. package/dist/core/FrameReceipt.d.ts +92 -0
  7. package/dist/core/FrameReceipt.d.ts.map +1 -0
  8. package/dist/core/FrameReceipt.js +72 -0
  9. package/dist/core/FrameReceipt.js.map +1 -0
  10. package/dist/core/FrameSignature.d.ts +357 -0
  11. package/dist/core/FrameSignature.d.ts.map +1 -0
  12. package/dist/core/FrameSignature.js +411 -0
  13. package/dist/core/FrameSignature.js.map +1 -0
  14. package/dist/core/Transaction.d.ts +29 -4
  15. package/dist/core/Transaction.d.ts.map +1 -1
  16. package/dist/core/Transaction.js +25 -4
  17. package/dist/core/Transaction.js.map +1 -1
  18. package/dist/core/TransactionReceipt.d.ts +13 -4
  19. package/dist/core/TransactionReceipt.d.ts.map +1 -1
  20. package/dist/core/TransactionReceipt.js +14 -0
  21. package/dist/core/TransactionReceipt.js.map +1 -1
  22. package/dist/core/TransactionRequest.d.ts +15 -7
  23. package/dist/core/TransactionRequest.d.ts.map +1 -1
  24. package/dist/core/TransactionRequest.js +47 -1
  25. package/dist/core/TransactionRequest.js.map +1 -1
  26. package/dist/core/TxEnvelope.d.ts +35 -21
  27. package/dist/core/TxEnvelope.d.ts.map +1 -1
  28. package/dist/core/TxEnvelope.js +46 -6
  29. package/dist/core/TxEnvelope.js.map +1 -1
  30. package/dist/core/TxEnvelopeEip8141.d.ts +341 -0
  31. package/dist/core/TxEnvelopeEip8141.d.ts.map +1 -0
  32. package/dist/core/TxEnvelopeEip8141.js +484 -0
  33. package/dist/core/TxEnvelopeEip8141.js.map +1 -0
  34. package/dist/core/internal/curves.d.ts +2 -0
  35. package/dist/core/internal/curves.d.ts.map +1 -1
  36. package/dist/core/internal/curves.js +2 -0
  37. package/dist/core/internal/curves.js.map +1 -1
  38. package/dist/index.d.ts +73 -0
  39. package/dist/index.d.ts.map +1 -1
  40. package/dist/index.js +73 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/tempo/Transaction.d.ts +2 -0
  43. package/dist/tempo/Transaction.d.ts.map +1 -1
  44. package/dist/tempo/TransactionReceipt.d.ts +2 -0
  45. package/dist/tempo/TransactionReceipt.d.ts.map +1 -1
  46. package/dist/zod/Block.d.ts +123 -0
  47. package/dist/zod/Block.d.ts.map +1 -1
  48. package/dist/zod/Frame.d.ts +73 -0
  49. package/dist/zod/Frame.d.ts.map +1 -0
  50. package/dist/zod/Frame.js +74 -0
  51. package/dist/zod/Frame.js.map +1 -0
  52. package/dist/zod/FrameReceipt.d.ts +50 -0
  53. package/dist/zod/FrameReceipt.d.ts.map +1 -0
  54. package/dist/zod/FrameReceipt.js +37 -0
  55. package/dist/zod/FrameReceipt.js.map +1 -0
  56. package/dist/zod/FrameSignature.d.ts +63 -0
  57. package/dist/zod/FrameSignature.d.ts.map +1 -0
  58. package/dist/zod/FrameSignature.js +66 -0
  59. package/dist/zod/FrameSignature.js.map +1 -0
  60. package/dist/zod/RpcSchema.d.ts +806 -11
  61. package/dist/zod/RpcSchema.d.ts.map +1 -1
  62. package/dist/zod/Transaction.d.ts +252 -0
  63. package/dist/zod/Transaction.d.ts.map +1 -1
  64. package/dist/zod/Transaction.js +54 -0
  65. package/dist/zod/Transaction.js.map +1 -1
  66. package/dist/zod/TransactionEnvelope.d.ts +233 -4
  67. package/dist/zod/TransactionEnvelope.d.ts.map +1 -1
  68. package/dist/zod/TransactionEnvelope.js +9 -0
  69. package/dist/zod/TransactionEnvelope.js.map +1 -1
  70. package/dist/zod/TransactionReceipt.d.ts +48 -0
  71. package/dist/zod/TransactionReceipt.d.ts.map +1 -1
  72. package/dist/zod/TransactionReceipt.js +8 -3
  73. package/dist/zod/TransactionReceipt.js.map +1 -1
  74. package/dist/zod/TransactionRequest.d.ts +50 -2
  75. package/dist/zod/TransactionRequest.d.ts.map +1 -1
  76. package/dist/zod/TransactionRequest.js +10 -4
  77. package/dist/zod/TransactionRequest.js.map +1 -1
  78. package/dist/zod/TxEnvelopeEip8141.d.ts +166 -0
  79. package/dist/zod/TxEnvelopeEip8141.d.ts.map +1 -0
  80. package/dist/zod/TxEnvelopeEip8141.js +76 -0
  81. package/dist/zod/TxEnvelopeEip8141.js.map +1 -0
  82. package/dist/zod/internal/Frame.d.ts +4 -0
  83. package/dist/zod/internal/Frame.d.ts.map +1 -0
  84. package/dist/zod/internal/Frame.js +17 -0
  85. package/dist/zod/internal/Frame.js.map +1 -0
  86. package/dist/zod/internal/rpcSchemas/Eth.d.ts +842 -11
  87. package/dist/zod/internal/rpcSchemas/Eth.d.ts.map +1 -1
  88. package/dist/zod/internal/rpcSchemas/Wallet.d.ts +56 -2
  89. package/dist/zod/internal/rpcSchemas/Wallet.d.ts.map +1 -1
  90. package/dist/zod/tempo/RpcSchemaTempo.d.ts +140 -0
  91. package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
  92. package/dist/zod/tempo/Transaction.d.ts +123 -0
  93. package/dist/zod/tempo/Transaction.d.ts.map +1 -1
  94. package/dist/zod/z.d.ts +4 -0
  95. package/dist/zod/z.d.ts.map +1 -1
  96. package/dist/zod/z.js +4 -0
  97. package/dist/zod/z.js.map +1 -1
  98. package/package.json +41 -1
  99. package/src/core/Frame.ts +442 -0
  100. package/src/core/FrameReceipt.ts +117 -0
  101. package/src/core/FrameSignature.ts +593 -0
  102. package/src/core/Transaction.ts +82 -5
  103. package/src/core/TransactionReceipt.ts +41 -3
  104. package/src/core/TransactionRequest.ts +71 -4
  105. package/src/core/TxEnvelope.ts +159 -90
  106. package/src/core/TxEnvelopeEip8141.ts +714 -0
  107. package/src/core/_test/Frame.test-d.ts +108 -0
  108. package/src/core/_test/Frame.test.ts +280 -0
  109. package/src/core/_test/FrameReceipt.test.ts +86 -0
  110. package/src/core/_test/FrameSignature.test-d.ts +93 -0
  111. package/src/core/_test/FrameSignature.test.ts +554 -0
  112. package/src/core/_test/Transaction.test.ts +33 -0
  113. package/src/core/_test/TransactionEnvelope.test-d.ts +74 -0
  114. package/src/core/_test/TransactionEnvelope.test.ts +107 -0
  115. package/src/core/_test/TransactionReceipt.test.ts +59 -0
  116. package/src/core/_test/TransactionRequest.test-d.ts +50 -0
  117. package/src/core/_test/TransactionRequest.test.ts +88 -1
  118. package/src/core/_test/TxEnvelopeEip8141.test-d.ts +44 -0
  119. package/src/core/_test/TxEnvelopeEip8141.test.ts +1775 -0
  120. package/src/core/_test/curves.test.ts +6 -1
  121. package/src/core/_test/index.test.ts +4 -0
  122. package/src/core/internal/curves.ts +4 -0
  123. package/src/index.ts +77 -0
  124. package/src/version.ts +1 -1
  125. package/src/zod/Frame.ts +82 -0
  126. package/src/zod/FrameReceipt.ts +48 -0
  127. package/src/zod/FrameSignature.ts +78 -0
  128. package/src/zod/Transaction.ts +63 -0
  129. package/src/zod/TransactionEnvelope.ts +33 -0
  130. package/src/zod/TransactionReceipt.ts +14 -3
  131. package/src/zod/TransactionRequest.ts +18 -3
  132. package/src/zod/TxEnvelopeEip8141.ts +102 -0
  133. package/src/zod/_test/Frame.test-d.ts +41 -0
  134. package/src/zod/_test/Frame.test.ts +57 -0
  135. package/src/zod/_test/FrameReceipt.test.ts +75 -0
  136. package/src/zod/_test/FrameSignature.test.ts +94 -0
  137. package/src/zod/_test/TxEnvelopeEip8141.test.ts +116 -0
  138. package/src/zod/internal/Frame.ts +26 -0
  139. package/src/zod/z.ts +4 -0
@@ -17,14 +17,29 @@ export declare const TransactionRequest: z.ZodMiniObject<{
17
17
  blobs: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
18
18
  chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
19
19
  data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
20
- input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
20
+ frames: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
21
+ data: z.ZodMiniTemplateLiteral<`0x${string}`>;
22
+ executionGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
23
+ flags: z.ZodMiniNumber<number>;
24
+ mode: z.ZodMiniNumber<number>;
25
+ stateGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
26
+ target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
27
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
28
+ }, z.core.$strip>, z.ZodMiniType<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>, z.core.$ZodTypeInternals<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>>>>>>>;
21
29
  from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
22
30
  gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
23
31
  gasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
32
+ input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
24
33
  maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
25
34
  maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
26
35
  maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
27
36
  nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
37
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
38
+ msg: z.ZodMiniTemplateLiteral<`0x${string}`>;
39
+ scheme: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>]>;
40
+ signature: z.ZodMiniTemplateLiteral<`0x${string}`>;
41
+ signer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
42
+ }, z.core.$strip>, z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>>;
28
43
  to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
29
44
  type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
30
45
  value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
@@ -51,14 +66,47 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
51
66
  blobs: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
52
67
  chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat]>>>;
53
68
  data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
54
- input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
69
+ frames: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
70
+ data: z.ZodMiniTemplateLiteral<`0x${string}`>;
71
+ executionGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
72
+ flags: z.ZodMiniNumber<number>;
73
+ mode: z.ZodMiniNumber<number>;
74
+ stateGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
75
+ target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
76
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
77
+ }, z.core.$strip>, z.ZodMiniObject<{
78
+ data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
79
+ flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
80
+ approveExecution: "approveExecution";
81
+ approveExecutionAndPayment: "approveExecutionAndPayment";
82
+ approvePayment: "approvePayment";
83
+ atomicBatch: "atomicBatch";
84
+ none: "none";
85
+ }>]>>;
86
+ gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
87
+ mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
88
+ verify: "verify";
89
+ default: "default";
90
+ sender: "sender";
91
+ }>]>>;
92
+ stateGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
93
+ to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
94
+ value: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
95
+ }, z.core.$strip>>>>>;
55
96
  from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
56
97
  gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
57
98
  gasPrice: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
99
+ input: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
58
100
  maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
59
101
  maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
60
102
  maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
61
103
  nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
104
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
105
+ msg: z.ZodMiniTemplateLiteral<`0x${string}`>;
106
+ scheme: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>]>;
107
+ signature: z.ZodMiniTemplateLiteral<`0x${string}`>;
108
+ signer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
109
+ }, z.core.$strip>, z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>>;
62
110
  to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
63
111
  type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
64
112
  value: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionRequest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAuB7B,kCAAkC;AAClC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAA;AAED,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMnC,CAAA"}
1
+ {"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionRequest.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAyB7B,kCAAkC;AAClC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO9B,CAAA;AAED,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOnC,CAAA"}
@@ -2,6 +2,8 @@
2
2
  import * as z_AccessList from './AccessList.js';
3
3
  import * as z_Address from './Address.js';
4
4
  import * as z_Authorization from './Authorization.js';
5
+ import * as z_Frame from './Frame.js';
6
+ import * as z_FrameSignature from './FrameSignature.js';
5
7
  import * as z_Hex from './Hex.js';
6
8
  import * as z_Number from './Number.js';
7
9
  import * as z_Uint from './Uint.js';
@@ -12,6 +14,7 @@ const fromRpcType = {
12
14
  '0x2': 'eip1559',
13
15
  '0x3': 'eip4844',
14
16
  '0x4': 'eip7702',
17
+ '0x6': 'eip8141',
15
18
  };
16
19
  const toRpcType = {
17
20
  legacy: '0x0',
@@ -19,16 +22,17 @@ const toRpcType = {
19
22
  eip1559: '0x2',
20
23
  eip4844: '0x3',
21
24
  eip7702: '0x4',
25
+ eip8141: '0x6',
22
26
  };
23
27
  const type = z.codec(z.string(), z.string(), {
24
28
  decode: (value) => fromRpcType[value] ?? value,
25
29
  encode: (value) => toRpcType[value] ?? value,
26
30
  });
27
31
  /** Transaction request schema. */
28
- export const TransactionRequest = z.object(fields(z_Uint.Uint, z_Number.Number, z_Authorization.ListSigned));
32
+ export const TransactionRequest = z.object(fields(z_Uint.Uint, z_Number.Number, z_Authorization.ListSigned, z_Frame.Frame));
29
33
  /** Encode-only transaction request schema accepting numberish `toRpc` inputs. */
30
- export const TransactionRequestToRpc = z.object(fields(z_Uint.UintToRpc, z_Number.NumberToRpc, z_Authorization.ListSignedToRpc));
31
- function fields(uint, num, authorizationList) {
34
+ export const TransactionRequestToRpc = z.object(fields(z_Uint.UintToRpc, z_Number.NumberToRpc, z_Authorization.ListSignedToRpc, z_Frame.FrameToRpc));
35
+ function fields(uint, num, authorizationList, frame) {
32
36
  return {
33
37
  accessList: z.optional(z_AccessList.AccessList),
34
38
  authorizationList: z.optional(authorizationList),
@@ -36,14 +40,16 @@ function fields(uint, num, authorizationList) {
36
40
  blobs: z.optional(z.readonly(z.array(z_Hex.Hex))),
37
41
  chainId: z.optional(num),
38
42
  data: z.optional(z_Hex.Hex),
39
- input: z.optional(z_Hex.Hex),
43
+ frames: z.optional(z.readonly(z.array(frame))),
40
44
  from: z.optional(z_Address.Address),
41
45
  gas: z.optional(uint),
42
46
  gasPrice: z.optional(uint),
47
+ input: z.optional(z_Hex.Hex),
43
48
  maxFeePerBlobGas: z.optional(uint),
44
49
  maxFeePerGas: z.optional(uint),
45
50
  maxPriorityFeePerGas: z.optional(uint),
46
51
  nonce: z.optional(uint),
52
+ signatures: z.optional(z.readonly(z.array(z_FrameSignature.FrameSignature))),
47
53
  to: z.optional(z.union([z_Address.Address, z.null()])),
48
54
  type: z.optional(type),
49
55
  value: z.optional(uint),
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../src/zod/TransactionRequest.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,YAAY,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,eAAe,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAA;AACnC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;IAChB,KAAK,EAAE,SAAS;C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AI,CAAC;QAClC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC9B,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACvB,UAAU,EAAE,CAAC,CAAC,QAAQ,CACpB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CACrD;QACD,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QACtD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC;QACxB,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC;KACnB,CAAA;AACH,CAAC"}
@@ -0,0 +1,166 @@
1
+ import * as z from 'zod/mini';
2
+ /** Decoded EIP-8141 envelope schema. */
3
+ export declare const Decoded: z.ZodMiniObject<{
4
+ blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
5
+ chainId: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniBigInt<bigint>]>;
6
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>, z.core.$ZodTypeInternals<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>>>>>;
7
+ maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
8
+ maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
9
+ maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
10
+ nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
11
+ sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
12
+ sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
13
+ blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
14
+ commitments: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
15
+ cellProofs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
16
+ }, z.core.$strip>>;
17
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>;
18
+ type: z.ZodMiniLiteral<"eip8141">;
19
+ }, z.core.$strip>;
20
+ /** RPC EIP-8141 envelope schema. */
21
+ export declare const Rpc: z.ZodMiniObject<{
22
+ blobVersionedHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
23
+ chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
24
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
25
+ data: z.ZodMiniTemplateLiteral<`0x${string}`>;
26
+ executionGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
27
+ flags: z.ZodMiniNumber<number>;
28
+ mode: z.ZodMiniNumber<number>;
29
+ stateGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
30
+ target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
31
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
32
+ }, z.core.$strip>>>;
33
+ from: z.ZodMiniTemplateLiteral<`0x${string}`>;
34
+ maxFeePerBlobGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
35
+ maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
36
+ maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
37
+ nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
38
+ signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
39
+ msg: z.ZodMiniTemplateLiteral<`0x${string}`>;
40
+ scheme: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>]>;
41
+ signature: z.ZodMiniTemplateLiteral<`0x${string}`>;
42
+ signer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
43
+ }, z.core.$strip>>>;
44
+ type: z.ZodMiniLiteral<"0x6">;
45
+ }, z.core.$strip>;
46
+ /** Codec between RPC and decoded EIP-8141 envelopes. */
47
+ export declare const TxEnvelopeEip8141: z.ZodMiniCodec<z.ZodMiniObject<{
48
+ blobVersionedHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
49
+ chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
50
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
51
+ data: z.ZodMiniTemplateLiteral<`0x${string}`>;
52
+ executionGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
53
+ flags: z.ZodMiniNumber<number>;
54
+ mode: z.ZodMiniNumber<number>;
55
+ stateGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
56
+ target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
57
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
58
+ }, z.core.$strip>>>;
59
+ from: z.ZodMiniTemplateLiteral<`0x${string}`>;
60
+ maxFeePerBlobGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
61
+ maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
62
+ maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
63
+ nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
64
+ signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
65
+ msg: z.ZodMiniTemplateLiteral<`0x${string}`>;
66
+ scheme: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>]>;
67
+ signature: z.ZodMiniTemplateLiteral<`0x${string}`>;
68
+ signer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
69
+ }, z.core.$strip>>>;
70
+ type: z.ZodMiniLiteral<"0x6">;
71
+ }, z.core.$strip>, z.ZodMiniObject<{
72
+ blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
73
+ chainId: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniBigInt<bigint>]>;
74
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>, z.core.$ZodTypeInternals<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>>>>>;
75
+ maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
76
+ maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
77
+ maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
78
+ nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
79
+ sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
80
+ sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
81
+ blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
82
+ commitments: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
83
+ cellProofs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
84
+ }, z.core.$strip>>;
85
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>;
86
+ type: z.ZodMiniLiteral<"eip8141">;
87
+ }, z.core.$strip>>;
88
+ /** Encode-only EIP-8141 envelope codec accepting numberish values. */
89
+ export declare const TxEnvelopeEip8141ToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
90
+ blobVersionedHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
91
+ chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
92
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
93
+ data: z.ZodMiniTemplateLiteral<`0x${string}`>;
94
+ executionGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
95
+ flags: z.ZodMiniNumber<number>;
96
+ mode: z.ZodMiniNumber<number>;
97
+ stateGasLimit: z.ZodMiniTemplateLiteral<`0x${string}`>;
98
+ target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
99
+ value: z.ZodMiniTemplateLiteral<`0x${string}`>;
100
+ }, z.core.$strip>>>;
101
+ from: z.ZodMiniTemplateLiteral<`0x${string}`>;
102
+ maxFeePerBlobGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
103
+ maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
104
+ maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
105
+ nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
106
+ signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
107
+ msg: z.ZodMiniTemplateLiteral<`0x${string}`>;
108
+ scheme: z.ZodMiniUnion<readonly [z.ZodMiniLiteral<0>, z.ZodMiniLiteral<1>, z.ZodMiniLiteral<2>]>;
109
+ signature: z.ZodMiniTemplateLiteral<`0x${string}`>;
110
+ signer: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
111
+ }, z.core.$strip>>>;
112
+ type: z.ZodMiniLiteral<"0x6">;
113
+ }, z.core.$strip>, z.ZodMiniObject<{
114
+ blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
115
+ chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
116
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
117
+ data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
118
+ flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
119
+ approveExecution: "approveExecution";
120
+ approveExecutionAndPayment: "approveExecutionAndPayment";
121
+ approvePayment: "approvePayment";
122
+ atomicBatch: "atomicBatch";
123
+ none: "none";
124
+ }>]>>;
125
+ gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
126
+ mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
127
+ verify: "verify";
128
+ default: "default";
129
+ sender: "sender";
130
+ }>]>>;
131
+ stateGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
132
+ to: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
133
+ value: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
134
+ }, z.core.$strip>>>;
135
+ maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
136
+ maxFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
137
+ maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
138
+ nonce: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
139
+ sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
140
+ sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
141
+ blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
142
+ commitments: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
143
+ cellProofs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
144
+ }, z.core.$strip>>;
145
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>;
146
+ type: z.ZodMiniLiteral<"eip8141">;
147
+ }, z.core.$strip>>;
148
+ /** Codec between serialized and decoded EIP-8141 envelopes. */
149
+ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniObject<{
150
+ blobVersionedHashes: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
151
+ chainId: z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniBigInt<bigint>]>;
152
+ frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>, z.core.$ZodTypeInternals<import("../core/Frame.js").Frame<bigint>, import("../core/Frame.js").Frame<bigint>>>>>;
153
+ maxFeePerBlobGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
154
+ maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
155
+ maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
156
+ nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
157
+ sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
158
+ sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
159
+ blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
160
+ commitments: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
161
+ cellProofs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
162
+ }, z.core.$strip>>;
163
+ signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniType<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature, z.core.$ZodTypeInternals<import("../core/FrameSignature.js").FrameSignature, import("../core/FrameSignature.js").FrameSignature>>>>>;
164
+ type: z.ZodMiniLiteral<"eip8141">;
165
+ }, z.core.$strip>>;
166
+ //# sourceMappingURL=TxEnvelopeEip8141.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TxEnvelopeEip8141.d.ts","sourceRoot":"","sources":["../../src/zod/TxEnvelopeEip8141.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,wCAAwC;AACxC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;iBAI4D,CAAA;AAEhF,oCAAoC;AACpC,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;iBAsBb,CAAA;AAEH,wDAAwD;AACxD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG5B,CAAA;AAEF,sEAAsE;AACtE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwBlC,CAAA;AAED,+DAA+D;AAC/D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;kBAMrB,CAAA"}
@@ -0,0 +1,76 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as core_TxEnvelopeEip8141 from '../core/TxEnvelopeEip8141.js';
3
+ import * as z_Address from './Address.js';
4
+ import * as z_Frame from './Frame.js';
5
+ import * as z_FrameSignature from './FrameSignature.js';
6
+ import * as z_Hex from './Hex.js';
7
+ import * as z_TxEnvelopeEip4844 from './TxEnvelopeEip4844.js';
8
+ import * as z from 'zod/mini';
9
+ /** Decoded EIP-8141 envelope schema. */
10
+ export const Decoded = z
11
+ .object(fields(z.bigint(), z.union([z.number(), z.bigint()]), z_Frame.Decoded))
12
+ .check(z.refine(core_TxEnvelopeEip8141.validate, 'Invalid frame transaction'));
13
+ /** RPC EIP-8141 envelope schema. */
14
+ export const Rpc = z
15
+ .object({
16
+ blobVersionedHashes: z.readonly(z.array(z_Hex.Hex)),
17
+ chainId: z_Hex.Hex,
18
+ frames: z.readonly(z.array(z_Frame.Rpc)),
19
+ from: z_Address.Address,
20
+ maxFeePerBlobGas: z_Hex.Hex,
21
+ maxFeePerGas: z_Hex.Hex,
22
+ maxPriorityFeePerGas: z_Hex.Hex,
23
+ nonce: z_Hex.Hex,
24
+ signatures: z.readonly(z.array(z_FrameSignature.Rpc)),
25
+ type: z.literal('0x6'),
26
+ })
27
+ .check(z.refine((value) => {
28
+ try {
29
+ core_TxEnvelopeEip8141.fromRpc(value);
30
+ return true;
31
+ }
32
+ catch {
33
+ return false;
34
+ }
35
+ }, 'Invalid frame transaction'));
36
+ /** Codec between RPC and decoded EIP-8141 envelopes. */
37
+ export const TxEnvelopeEip8141 = z.codec(Rpc, Decoded, {
38
+ decode: core_TxEnvelopeEip8141.fromRpc,
39
+ encode: core_TxEnvelopeEip8141.toRpc,
40
+ });
41
+ /** Encode-only EIP-8141 envelope codec accepting numberish values. */
42
+ export const TxEnvelopeEip8141ToRpc = z.codec(Rpc, z
43
+ .object(fields(z.union([z_Hex.Hex, z.bigint(), z.number()]), z.union([z_Hex.Hex, z.bigint(), z.number()]), z_Frame.DecodedToRpc))
44
+ .check(z.refine((value) => {
45
+ try {
46
+ core_TxEnvelopeEip8141.fromRpc(core_TxEnvelopeEip8141.toRpc(value));
47
+ return true;
48
+ }
49
+ catch {
50
+ return false;
51
+ }
52
+ }, 'Invalid frame transaction')), {
53
+ decode: core_TxEnvelopeEip8141.fromRpc,
54
+ encode: core_TxEnvelopeEip8141.toRpc,
55
+ });
56
+ /** Codec between serialized and decoded EIP-8141 envelopes. */
57
+ export const serialized = z.codec(z_Hex.Hex, Decoded, {
58
+ decode: (value) => core_TxEnvelopeEip8141.deserialize(value),
59
+ encode: core_TxEnvelopeEip8141.serialize,
60
+ });
61
+ function fields(uint, num, frame) {
62
+ return {
63
+ blobVersionedHashes: z.optional(z.readonly(z.array(z_Hex.Hex))),
64
+ chainId: num,
65
+ frames: z.readonly(z.array(frame)),
66
+ maxFeePerBlobGas: z.optional(uint),
67
+ maxFeePerGas: z.optional(uint),
68
+ maxPriorityFeePerGas: z.optional(uint),
69
+ nonce: z.optional(uint),
70
+ sender: z_Address.Address,
71
+ sidecars: z.optional(z_TxEnvelopeEip4844.Sidecars),
72
+ signatures: z.optional(z.readonly(z.array(z_FrameSignature.Decoded))),
73
+ type: z.literal('eip8141'),
74
+ };
75
+ }
76
+ //# sourceMappingURL=TxEnvelopeEip8141.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TxEnvelopeEip8141.js","sourceRoot":"","sources":["../../src/zod/TxEnvelopeEip8141.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,sBAAsB,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,SAAS,MAAM,cAAc,CAAA;AACzC,OAAO,KAAK,OAAO,MAAM,YAAY,CAAA;AACrC,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,mBAAmB,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,wCAAwC;AACxC,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC;KACrB,MAAM,CACL,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,E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,CAAC,GAAG,CAAC,CAAC,CAAC;QAC/D,OAAO,EAAE,GAAG;QACZ,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAClC,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAClC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC9B,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QACvB,MAAM,EAAE,SAAS,CAAC,OAAO;QACzB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC,QAAQ,CAAC;QAClD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;QACrE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;KAC3B,CAAA;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as z from 'zod/mini';
2
+ export declare const chainId: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniNumberFormat, z.ZodMiniBigInt<bigint>]>>;
3
+ export declare const chainIdToRpc: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat, z.ZodMiniBigInt<bigint>]>>;
4
+ //# sourceMappingURL=Frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Frame.d.ts","sourceRoot":"","sources":["../../../src/zod/internal/Frame.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,OAAO,oIAUnB,CAAA;AAED,eAAO,MAAM,YAAY,6KAOxB,CAAA"}
@@ -0,0 +1,17 @@
1
+ /* eslint-disable jsdoc-js/require-jsdoc, jsdoc-js/require-description, jsdoc-js/require-example */
2
+ import * as Hex from '../../core/Hex.js';
3
+ import * as Quantity from '../../core/internal/quantity.js';
4
+ import { quantityHex, uintBigint, uintNumber } from './Integer.js';
5
+ import * as z from 'zod/mini';
6
+ export const chainId = z.codec(quantityHex(), z.union([uintNumber(), uintBigint()]), {
7
+ decode(value) {
8
+ const id = Hex.toBigInt(value);
9
+ return id <= BigInt(Number.MAX_SAFE_INTEGER) ? Number(id) : id;
10
+ },
11
+ encode: (value) => Hex.fromNumber(value),
12
+ });
13
+ export const chainIdToRpc = z.codec(quantityHex(), z.union([quantityHex(), uintNumber(), uintBigint()]), {
14
+ decode: (value) => z.decode(chainId, value),
15
+ encode: (value) => Quantity.fromNumberish(value),
16
+ });
17
+ //# sourceMappingURL=Frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Frame.js","sourceRoot":"","sources":["../../../src/zod/internal/Frame.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAA;AACxC,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAClE,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAC5B,WAAW,EAAE,EACb,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EACrC;IACE,MAAM,CAAC,KAAK;QACV,MAAM,EAAE,GAAG,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;QAC9B,OAAO,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAChE,CAAC;IACD,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC;CACzC,CACF,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CACjC,WAAW,EAAE,EACb,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,EACpD;IACE,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC;IAC3C,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC;CACjD,CACF,CAAA"}