ox 1.8.1 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/dist/core/Frame.d.ts +23 -20
- package/dist/core/Frame.d.ts.map +1 -1
- package/dist/core/Frame.js +28 -23
- package/dist/core/Frame.js.map +1 -1
- package/dist/core/FrameReceipt.d.ts +23 -14
- package/dist/core/FrameReceipt.d.ts.map +1 -1
- package/dist/core/FrameReceipt.js +15 -11
- package/dist/core/FrameReceipt.js.map +1 -1
- package/dist/core/FrameRequest.d.ts +50 -0
- package/dist/core/FrameRequest.d.ts.map +1 -0
- package/dist/core/FrameRequest.js +59 -0
- package/dist/core/FrameRequest.js.map +1 -0
- package/dist/core/FrameSignature.d.ts +17 -16
- package/dist/core/FrameSignature.d.ts.map +1 -1
- package/dist/core/FrameSignature.js +38 -21
- package/dist/core/FrameSignature.js.map +1 -1
- package/dist/core/Siwe.d.ts.map +1 -1
- package/dist/core/Siwe.js +3 -3
- package/dist/core/Siwe.js.map +1 -1
- package/dist/core/Transaction.d.ts +7 -4
- package/dist/core/Transaction.d.ts.map +1 -1
- package/dist/core/Transaction.js +8 -0
- package/dist/core/Transaction.js.map +1 -1
- package/dist/core/TransactionRequest.d.ts +8 -5
- package/dist/core/TransactionRequest.d.ts.map +1 -1
- package/dist/core/TransactionRequest.js +11 -3
- package/dist/core/TransactionRequest.js.map +1 -1
- package/dist/core/TxEnvelope.d.ts +4 -2
- package/dist/core/TxEnvelope.d.ts.map +1 -1
- package/dist/core/TxEnvelope.js +11 -2
- package/dist/core/TxEnvelope.js.map +1 -1
- package/dist/core/TxEnvelopeEip8141.d.ts +22 -11
- package/dist/core/TxEnvelopeEip8141.d.ts.map +1 -1
- package/dist/core/TxEnvelopeEip8141.js +45 -16
- package/dist/core/TxEnvelopeEip8141.js.map +1 -1
- package/dist/core/internal/frameNonce.d.ts +10 -0
- package/dist/core/internal/frameNonce.d.ts.map +1 -0
- package/dist/core/internal/frameNonce.js +45 -0
- package/dist/core/internal/frameNonce.js.map +1 -0
- package/dist/core/internal/rpcSchemas/eth.d.ts +16 -4
- package/dist/core/internal/rpcSchemas/eth.d.ts.map +1 -1
- package/dist/index.d.ts +21 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/dist/zod/Block.d.ts +52 -37
- package/dist/zod/Block.d.ts.map +1 -1
- package/dist/zod/Frame.d.ts +14 -14
- package/dist/zod/Frame.js +5 -5
- package/dist/zod/Frame.js.map +1 -1
- package/dist/zod/FrameReceipt.d.ts +42 -2
- package/dist/zod/FrameReceipt.d.ts.map +1 -1
- package/dist/zod/FrameReceipt.js +11 -1
- package/dist/zod/FrameReceipt.js.map +1 -1
- package/dist/zod/FrameRequest.d.ts +40 -0
- package/dist/zod/FrameRequest.d.ts.map +1 -0
- package/dist/zod/FrameRequest.js +37 -0
- package/dist/zod/FrameRequest.js.map +1 -0
- package/dist/zod/FrameSignature.d.ts +21 -13
- package/dist/zod/FrameSignature.d.ts.map +1 -1
- package/dist/zod/FrameSignature.js +10 -7
- package/dist/zod/FrameSignature.js.map +1 -1
- package/dist/zod/RpcSchema.d.ts +470 -265
- package/dist/zod/RpcSchema.d.ts.map +1 -1
- package/dist/zod/Transaction.d.ts +104 -74
- package/dist/zod/Transaction.d.ts.map +1 -1
- package/dist/zod/Transaction.js +22 -15
- package/dist/zod/Transaction.js.map +1 -1
- package/dist/zod/TransactionEnvelope.d.ts +60 -34
- package/dist/zod/TransactionEnvelope.d.ts.map +1 -1
- package/dist/zod/TransactionReceipt.d.ts +42 -2
- package/dist/zod/TransactionReceipt.d.ts.map +1 -1
- package/dist/zod/TransactionRequest.d.ts +31 -21
- package/dist/zod/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/TransactionRequest.js +10 -4
- package/dist/zod/TransactionRequest.js.map +1 -1
- package/dist/zod/TxEnvelopeEip8141.d.ts +44 -25
- package/dist/zod/TxEnvelopeEip8141.d.ts.map +1 -1
- package/dist/zod/TxEnvelopeEip8141.js +2 -0
- package/dist/zod/TxEnvelopeEip8141.js.map +1 -1
- package/dist/zod/internal/Frame.d.ts +8 -0
- package/dist/zod/internal/Frame.d.ts.map +1 -1
- package/dist/zod/internal/Frame.js +29 -0
- package/dist/zod/internal/Frame.js.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.d.ts +472 -267
- package/dist/zod/internal/rpcSchemas/Eth.d.ts.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.js +9 -0
- package/dist/zod/internal/rpcSchemas/Eth.js.map +1 -1
- package/dist/zod/internal/rpcSchemas/Wallet.d.ts +51 -21
- package/dist/zod/internal/rpcSchemas/Wallet.d.ts.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +68 -48
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +52 -37
- package/dist/zod/tempo/Transaction.d.ts.map +1 -1
- package/dist/zod/z.d.ts +1 -0
- package/dist/zod/z.d.ts.map +1 -1
- package/dist/zod/z.js +1 -0
- package/dist/zod/z.js.map +1 -1
- package/package.json +11 -1
- package/src/core/Frame.ts +41 -33
- package/src/core/FrameReceipt.ts +30 -16
- package/src/core/FrameRequest.ts +78 -0
- package/src/core/FrameSignature.ts +64 -34
- package/src/core/Siwe.ts +21 -13
- package/src/core/Transaction.ts +52 -24
- package/src/core/TransactionRequest.ts +21 -7
- package/src/core/TxEnvelope.ts +16 -3
- package/src/core/TxEnvelopeEip8141.ts +69 -21
- package/src/core/_test/AbiConstructor.test.ts +2 -0
- package/src/core/_test/Frame.test-d.ts +16 -7
- package/src/core/_test/Frame.test.ts +52 -24
- package/src/core/_test/FrameReceipt.test.ts +15 -9
- package/src/core/_test/FrameRequest.test-d.ts +16 -0
- package/src/core/_test/FrameRequest.test.ts +41 -0
- package/src/core/_test/FrameRpc.test.ts +131 -0
- package/src/core/_test/FrameSignature.test-d.ts +20 -0
- package/src/core/_test/FrameSignature.test.ts +132 -11
- package/src/core/_test/RpcSchema.test-d.ts +45 -0
- package/src/core/_test/Siwe.test.ts +147 -0
- package/src/core/_test/TransactionEnvelope.test-d.ts +27 -0
- package/src/core/_test/TransactionEnvelope.test.ts +27 -1
- package/src/core/_test/TransactionReceipt.test.ts +32 -6
- package/src/core/_test/TransactionRequest.test-d.ts +10 -1
- package/src/core/_test/TransactionRequest.test.ts +31 -2
- package/src/core/_test/TxEnvelopeEip8141.test-d.ts +29 -2
- package/src/core/_test/TxEnvelopeEip8141.test.ts +548 -55
- package/src/core/_test/index.test.ts +1 -0
- package/src/core/internal/frameNonce.ts +61 -0
- package/src/core/internal/rpcSchemas/eth.ts +13 -4
- package/src/index.ts +22 -5
- package/src/version.ts +1 -1
- package/src/zod/Frame.ts +5 -5
- package/src/zod/FrameReceipt.ts +11 -1
- package/src/zod/FrameRequest.ts +46 -0
- package/src/zod/FrameSignature.ts +10 -7
- package/src/zod/Transaction.ts +46 -27
- package/src/zod/TransactionRequest.ts +33 -18
- package/src/zod/TxEnvelopeEip8141.ts +2 -0
- package/src/zod/_test/Frame.test.ts +13 -11
- package/src/zod/_test/FrameReceipt.test.ts +11 -4
- package/src/zod/_test/FrameRequest.test-d.ts +15 -0
- package/src/zod/_test/FrameRequest.test.ts +44 -0
- package/src/zod/_test/FrameSignature.test.ts +73 -9
- package/src/zod/_test/RpcSchema.test.ts +106 -0
- package/src/zod/_test/TransactionRequest.test.ts +61 -0
- package/src/zod/_test/TxEnvelopeEip8141.nonce.test.ts +174 -0
- package/src/zod/_test/TxEnvelopeEip8141.test-d.ts +29 -0
- package/src/zod/_test/TxEnvelopeEip8141.test.ts +3 -3
- package/src/zod/internal/Frame.ts +45 -0
- package/src/zod/internal/rpcSchemas/Eth.ts +20 -0
- package/src/zod/z.ts +1 -0
|
@@ -40,10 +40,10 @@ export declare const TransactionEnvelope: z.ZodMiniUnion<readonly [z.ZodMiniCode
|
|
|
40
40
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
41
41
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
42
42
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
43
|
-
|
|
44
|
-
flags: z.
|
|
45
|
-
mode: z.
|
|
46
|
-
|
|
43
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
44
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
45
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
46
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
47
47
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
48
48
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
49
49
|
}, z.core.$strip>>>;
|
|
@@ -52,11 +52,16 @@ export declare const TransactionEnvelope: z.ZodMiniUnion<readonly [z.ZodMiniCode
|
|
|
52
52
|
maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
53
53
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
54
54
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
55
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
55
56
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
56
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
57
|
-
scheme: z.
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
58
|
+
scheme: z.ZodMiniEnum<{
|
|
59
|
+
"0x1": "0x1";
|
|
60
|
+
"0x0": "0x0";
|
|
61
|
+
"0x2": "0x2";
|
|
62
|
+
}>;
|
|
63
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
64
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
60
65
|
}, z.core.$strip>>>;
|
|
61
66
|
type: z.ZodMiniLiteral<"0x6">;
|
|
62
67
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -67,6 +72,7 @@ export declare const TransactionEnvelope: z.ZodMiniUnion<readonly [z.ZodMiniCode
|
|
|
67
72
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
68
73
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
69
74
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
75
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniBigInt<bigint>>>>;
|
|
70
76
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
71
77
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
72
78
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -191,10 +197,10 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
191
197
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
192
198
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
193
199
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
194
|
-
|
|
195
|
-
flags: z.
|
|
196
|
-
mode: z.
|
|
197
|
-
|
|
200
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
201
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
202
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
203
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
198
204
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
199
205
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
200
206
|
}, z.core.$strip>>>;
|
|
@@ -203,11 +209,16 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
203
209
|
maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
204
210
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
205
211
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
212
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
206
213
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
207
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
208
|
-
scheme: z.
|
|
209
|
-
|
|
210
|
-
|
|
214
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
215
|
+
scheme: z.ZodMiniEnum<{
|
|
216
|
+
"0x1": "0x1";
|
|
217
|
+
"0x0": "0x0";
|
|
218
|
+
"0x2": "0x2";
|
|
219
|
+
}>;
|
|
220
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
221
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
211
222
|
}, z.core.$strip>>>;
|
|
212
223
|
type: z.ZodMiniLiteral<"0x6">;
|
|
213
224
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -215,6 +226,7 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
215
226
|
chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
|
|
216
227
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
217
228
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
229
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
218
230
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
219
231
|
approveExecution: "approveExecution";
|
|
220
232
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -222,7 +234,6 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
222
234
|
atomicBatch: "atomicBatch";
|
|
223
235
|
none: "none";
|
|
224
236
|
}>]>>;
|
|
225
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
226
237
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
227
238
|
verify: "verify";
|
|
228
239
|
default: "default";
|
|
@@ -236,6 +247,7 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
236
247
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
237
248
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
238
249
|
nonce: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
250
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>>>;
|
|
239
251
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
240
252
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
241
253
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -360,10 +372,10 @@ export declare const Signed: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniOb
|
|
|
360
372
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
361
373
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
362
374
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
363
|
-
|
|
364
|
-
flags: z.
|
|
365
|
-
mode: z.
|
|
366
|
-
|
|
375
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
376
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
377
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
378
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
367
379
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
368
380
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
369
381
|
}, z.core.$strip>>>;
|
|
@@ -372,11 +384,16 @@ export declare const Signed: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniOb
|
|
|
372
384
|
maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
373
385
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
374
386
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
387
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
375
388
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
376
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
377
|
-
scheme: z.
|
|
378
|
-
|
|
379
|
-
|
|
389
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
390
|
+
scheme: z.ZodMiniEnum<{
|
|
391
|
+
"0x1": "0x1";
|
|
392
|
+
"0x0": "0x0";
|
|
393
|
+
"0x2": "0x2";
|
|
394
|
+
}>;
|
|
395
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
396
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
380
397
|
}, z.core.$strip>>>;
|
|
381
398
|
type: z.ZodMiniLiteral<"0x6">;
|
|
382
399
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -387,6 +404,7 @@ export declare const Signed: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniOb
|
|
|
387
404
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
388
405
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
389
406
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
407
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniBigInt<bigint>>>>;
|
|
390
408
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
391
409
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
392
410
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -511,10 +529,10 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
511
529
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
512
530
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
513
531
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
514
|
-
|
|
515
|
-
flags: z.
|
|
516
|
-
mode: z.
|
|
517
|
-
|
|
532
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
533
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
534
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
535
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
518
536
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
519
537
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
520
538
|
}, z.core.$strip>>>;
|
|
@@ -523,11 +541,16 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
523
541
|
maxFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
524
542
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
525
543
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
544
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>>;
|
|
526
545
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
527
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
528
|
-
scheme: z.
|
|
529
|
-
|
|
530
|
-
|
|
546
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
547
|
+
scheme: z.ZodMiniEnum<{
|
|
548
|
+
"0x1": "0x1";
|
|
549
|
+
"0x0": "0x0";
|
|
550
|
+
"0x2": "0x2";
|
|
551
|
+
}>;
|
|
552
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
553
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
531
554
|
}, z.core.$strip>>>;
|
|
532
555
|
type: z.ZodMiniLiteral<"0x6">;
|
|
533
556
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -535,6 +558,7 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
535
558
|
chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
|
|
536
559
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
537
560
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
561
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
538
562
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
539
563
|
approveExecution: "approveExecution";
|
|
540
564
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -542,7 +566,6 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
542
566
|
atomicBatch: "atomicBatch";
|
|
543
567
|
none: "none";
|
|
544
568
|
}>]>>;
|
|
545
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
546
569
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
547
570
|
verify: "verify";
|
|
548
571
|
default: "default";
|
|
@@ -556,6 +579,7 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
556
579
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
557
580
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
558
581
|
nonce: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
582
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>>>;
|
|
559
583
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
560
584
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
561
585
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -685,6 +709,7 @@ export declare const SignedDecoded: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
|
|
|
685
709
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
686
710
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
687
711
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
712
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniBigInt<bigint>>>>;
|
|
688
713
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
689
714
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
690
715
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -812,6 +837,7 @@ export declare const serialized: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${st
|
|
|
812
837
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
813
838
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
814
839
|
nonce: z.ZodMiniOptional<z.ZodMiniBigInt<bigint>>;
|
|
840
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniBigInt<bigint>>>>;
|
|
815
841
|
sender: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
816
842
|
sidecars: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
817
843
|
blobs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionEnvelope.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,mBAAmB,MAAM,2BAA2B,CAAA;AAiBhE,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAejB,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAetB,CAAA;AAEF,8CAA8C;AAC9C,eAAO,MAAM,UAAU,yCAAY,CAAA;AAwEnC,kDAAkD;AAClD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAexB,CAAA;AAEF,mFAAmF;AACnF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAIrB,CAAA"}
|
|
@@ -14,19 +14,39 @@ export declare const TransactionReceipt: z.ZodMiniObject<{
|
|
|
14
14
|
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>;
|
|
15
15
|
frameReceipts: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
16
16
|
executionGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
17
|
+
gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
17
18
|
logs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
18
19
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
20
|
+
blockHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
21
|
+
blockNumber: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
22
|
+
blockTimestamp: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
19
23
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
24
|
+
logIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
25
|
+
removed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
26
|
topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
27
|
+
transactionHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
28
|
+
transactionIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
21
29
|
}, z.core.$strip>>>;
|
|
22
30
|
stateGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
23
|
-
status: z.
|
|
31
|
+
status: z.ZodMiniEnum<{
|
|
32
|
+
"0x1": "0x1";
|
|
33
|
+
"0x0": "0x0";
|
|
34
|
+
"0x2": "0x2";
|
|
35
|
+
}>;
|
|
24
36
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
37
|
+
executionGasUsed: z.ZodMiniBigInt<bigint>;
|
|
25
38
|
gasUsed: z.ZodMiniBigInt<bigint>;
|
|
26
39
|
logs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
27
40
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
41
|
+
blockHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
42
|
+
blockNumber: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
43
|
+
blockTimestamp: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
28
44
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
45
|
+
logIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
46
|
+
removed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
29
47
|
topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
48
|
+
transactionHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
49
|
+
transactionIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
30
50
|
}, z.core.$strip>>>;
|
|
31
51
|
stateGasUsed: z.ZodMiniBigInt<bigint>;
|
|
32
52
|
status: z.ZodMiniEnum<{
|
|
@@ -69,24 +89,44 @@ export declare const TransactionReceiptToRpc: z.ZodMiniObject<{
|
|
|
69
89
|
effectiveGasPrice: z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>;
|
|
70
90
|
frameReceipts: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
71
91
|
executionGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
92
|
+
gasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
72
93
|
logs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
73
94
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
95
|
+
blockHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
96
|
+
blockNumber: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
97
|
+
blockTimestamp: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
74
98
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
99
|
+
logIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
100
|
+
removed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
75
101
|
topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
102
|
+
transactionHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
103
|
+
transactionIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
76
104
|
}, z.core.$strip>>>;
|
|
77
105
|
stateGasUsed: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
78
|
-
status: z.
|
|
106
|
+
status: z.ZodMiniEnum<{
|
|
107
|
+
"0x1": "0x1";
|
|
108
|
+
"0x0": "0x0";
|
|
109
|
+
"0x2": "0x2";
|
|
110
|
+
}>;
|
|
79
111
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
80
112
|
logs: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
81
113
|
address: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
114
|
+
blockHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
115
|
+
blockNumber: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
116
|
+
blockTimestamp: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
82
117
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
118
|
+
logIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
119
|
+
removed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
83
120
|
topics: z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
121
|
+
transactionHash: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
122
|
+
transactionIndex: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
84
123
|
}, z.core.$strip>>>;
|
|
85
124
|
status: z.ZodMiniEnum<{
|
|
86
125
|
reverted: "reverted";
|
|
87
126
|
skipped: "skipped";
|
|
88
127
|
success: "success";
|
|
89
128
|
}>;
|
|
129
|
+
executionGasUsed: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>;
|
|
90
130
|
gasUsed: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>;
|
|
91
131
|
stateGasUsed: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>;
|
|
92
132
|
}, z.core.$strip>>>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionReceipt.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionReceipt.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AA8B7B,yCAAyC;AACzC,eAAO,MAAM,MAAM,mLAOlB,CAAA;AAED,uCAAuC;AACvC,eAAO,MAAM,IAAI,kEAGf,CAAA;AAEF,kCAAkC;AAClC,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"TransactionReceipt.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionReceipt.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AA8B7B,yCAAyC;AACzC,eAAO,MAAM,MAAM,mLAOlB,CAAA;AAED,uCAAuC;AACvC,eAAO,MAAM,IAAI,kEAGf,CAAA;AAEF,kCAAkC;AAClC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE9B,CAAA;AAED,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOnC,CAAA"}
|
|
@@ -18,13 +18,13 @@ export declare const TransactionRequest: z.ZodMiniObject<{
|
|
|
18
18
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat>>;
|
|
19
19
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
20
20
|
frames: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
21
|
-
data: z.ZodMiniTemplateLiteral<`0x${string}
|
|
22
|
-
|
|
23
|
-
flags: z.
|
|
24
|
-
mode: z.
|
|
25
|
-
|
|
21
|
+
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
22
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
23
|
+
flags: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
24
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
25
|
+
stateGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
26
26
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
27
|
-
value: z.ZodMiniTemplateLiteral<`0x${string}
|
|
27
|
+
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
28
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>>>>>>>;
|
|
29
29
|
from: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
30
30
|
gas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
@@ -34,11 +34,16 @@ export declare const TransactionRequest: z.ZodMiniObject<{
|
|
|
34
34
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
35
35
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
36
36
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>>>;
|
|
37
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>, z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniBigInt<bigint>>>>>;
|
|
37
38
|
signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
38
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
39
|
-
scheme: z.
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
40
|
+
scheme: z.ZodMiniEnum<{
|
|
41
|
+
"0x1": "0x1";
|
|
42
|
+
"0x0": "0x0";
|
|
43
|
+
"0x2": "0x2";
|
|
44
|
+
}>;
|
|
45
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
46
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
42
47
|
}, 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>>>>>>;
|
|
43
48
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
44
49
|
type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -67,15 +72,16 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
67
72
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat]>>>;
|
|
68
73
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
69
74
|
frames: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
70
|
-
data: z.ZodMiniTemplateLiteral<`0x${string}
|
|
71
|
-
|
|
72
|
-
flags: z.
|
|
73
|
-
mode: z.
|
|
74
|
-
|
|
75
|
+
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
76
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
77
|
+
flags: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
78
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
79
|
+
stateGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
75
80
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
76
|
-
value: z.ZodMiniTemplateLiteral<`0x${string}
|
|
81
|
+
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
77
82
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
78
83
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
84
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
79
85
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
80
86
|
approveExecution: "approveExecution";
|
|
81
87
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -83,7 +89,6 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
83
89
|
atomicBatch: "atomicBatch";
|
|
84
90
|
none: "none";
|
|
85
91
|
}>]>>;
|
|
86
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
87
92
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
88
93
|
verify: "verify";
|
|
89
94
|
default: "default";
|
|
@@ -101,11 +106,16 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
101
106
|
maxFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
|
|
102
107
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
|
|
103
108
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
|
|
109
|
+
nonceKeys: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniTemplateLiteral<`0x${string}`>>>, z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>>>;
|
|
104
110
|
signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
105
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
106
|
-
scheme: z.
|
|
107
|
-
|
|
108
|
-
|
|
111
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
112
|
+
scheme: z.ZodMiniEnum<{
|
|
113
|
+
"0x1": "0x1";
|
|
114
|
+
"0x0": "0x0";
|
|
115
|
+
"0x2": "0x2";
|
|
116
|
+
}>;
|
|
117
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
118
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
109
119
|
}, 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>>>>>>;
|
|
110
120
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
111
121
|
type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionRequest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionRequest.d.ts","sourceRoot":"","sources":["../../src/zod/TransactionRequest.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAyB7B,kCAAkC;AAClC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUsB,CAAA;AAErD,iFAAiF;AACjF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAUiB,CAAA"}
|
|
@@ -2,9 +2,10 @@
|
|
|
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
|
|
5
|
+
import * as z_FrameRequest from './FrameRequest.js';
|
|
6
6
|
import * as z_FrameSignature from './FrameSignature.js';
|
|
7
7
|
import * as z_Hex from './Hex.js';
|
|
8
|
+
import { nonceKeys, nonceKeysToRpc, validNonce } from './internal/Frame.js';
|
|
8
9
|
import * as z_Number from './Number.js';
|
|
9
10
|
import * as z_Uint from './Uint.js';
|
|
10
11
|
import * as z from 'zod/mini';
|
|
@@ -29,10 +30,14 @@ const type = z.codec(z.string(), z.string(), {
|
|
|
29
30
|
encode: (value) => toRpcType[value] ?? value,
|
|
30
31
|
});
|
|
31
32
|
/** Transaction request schema. */
|
|
32
|
-
export const TransactionRequest = z
|
|
33
|
+
export const TransactionRequest = z
|
|
34
|
+
.object(fields(z_Uint.Uint, z_Number.Number, z_Authorization.ListSigned, z_FrameRequest.FrameRequest, nonceKeys))
|
|
35
|
+
.check(z.refine(validNonce, 'Invalid keyed nonce'));
|
|
33
36
|
/** Encode-only transaction request schema accepting numberish `toRpc` inputs. */
|
|
34
|
-
export const TransactionRequestToRpc = z
|
|
35
|
-
|
|
37
|
+
export const TransactionRequestToRpc = z
|
|
38
|
+
.object(fields(z_Uint.UintToRpc, z_Number.NumberToRpc, z_Authorization.ListSignedToRpc, z_FrameRequest.FrameRequestToRpc, nonceKeysToRpc))
|
|
39
|
+
.check(z.refine(validNonce, 'Invalid keyed nonce'));
|
|
40
|
+
function fields(uint, num, authorizationList, frame, keys) {
|
|
36
41
|
return {
|
|
37
42
|
accessList: z.optional(z_AccessList.AccessList),
|
|
38
43
|
authorizationList: z.optional(authorizationList),
|
|
@@ -49,6 +54,7 @@ function fields(uint, num, authorizationList, frame) {
|
|
|
49
54
|
maxFeePerGas: z.optional(uint),
|
|
50
55
|
maxPriorityFeePerGas: z.optional(uint),
|
|
51
56
|
nonce: z.optional(uint),
|
|
57
|
+
nonceKeys: z.optional(keys),
|
|
52
58
|
signatures: z.optional(z.readonly(z.array(z_FrameSignature.FrameSignature))),
|
|
53
59
|
to: z.optional(z.union([z_Address.Address, z.null()])),
|
|
54
60
|
type: z.optional(type),
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"TransactionRequest.js","sourceRoot":"","sources":["../../src/zod/Transaction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