ox 1.8.1 → 1.8.3
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 +35 -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 +2 -2
- package/dist/core/Transaction.d.ts.map +1 -1
- package/dist/core/Transaction.js.map +1 -1
- package/dist/core/TransactionRequest.d.ts +5 -5
- package/dist/core/TransactionRequest.d.ts.map +1 -1
- package/dist/core/TransactionRequest.js +3 -3
- package/dist/core/TransactionRequest.js.map +1 -1
- package/dist/core/TxEnvelope.d.ts +3 -1
- package/dist/core/TxEnvelope.d.ts.map +1 -1
- package/dist/core/TxEnvelope.js +9 -1
- package/dist/core/TxEnvelope.js.map +1 -1
- package/dist/core/TxEnvelopeEip8141.d.ts +4 -4
- package/dist/core/TxEnvelopeEip8141.js +8 -8
- package/dist/core/TxEnvelopeEip8141.js.map +1 -1
- 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 +49 -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 +447 -265
- package/dist/zod/RpcSchema.d.ts.map +1 -1
- package/dist/zod/Transaction.d.ts +98 -74
- package/dist/zod/Transaction.d.ts.map +1 -1
- package/dist/zod/Transaction.js +4 -4
- package/dist/zod/Transaction.js.map +1 -1
- package/dist/zod/TransactionEnvelope.d.ts +50 -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 +29 -21
- package/dist/zod/TransactionRequest.d.ts.map +1 -1
- package/dist/zod/TransactionRequest.js +3 -3
- package/dist/zod/TransactionRequest.js.map +1 -1
- package/dist/zod/TxEnvelopeEip8141.d.ts +37 -25
- package/dist/zod/TxEnvelopeEip8141.d.ts.map +1 -1
- package/dist/zod/internal/rpcSchemas/Eth.d.ts +449 -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 +49 -21
- package/dist/zod/internal/rpcSchemas/Wallet.d.ts.map +1 -1
- package/dist/zod/tempo/RpcSchemaTempo.d.ts +64 -48
- package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -1
- package/dist/zod/tempo/Transaction.d.ts +49 -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 +35 -24
- package/src/core/TransactionRequest.ts +9 -7
- package/src/core/TxEnvelope.ts +9 -1
- package/src/core/TxEnvelopeEip8141.ts +8 -8
- 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.ts +1 -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 +3 -2
- package/src/core/_test/TxEnvelopeEip8141.test-d.ts +2 -2
- package/src/core/_test/TxEnvelopeEip8141.test.ts +92 -53
- package/src/core/_test/index.test.ts +1 -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 +4 -4
- package/src/zod/TransactionRequest.ts +3 -3
- 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.test.ts +3 -3
- 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>>>;
|
|
@@ -53,10 +53,14 @@ export declare const TransactionEnvelope: z.ZodMiniUnion<readonly [z.ZodMiniCode
|
|
|
53
53
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
54
54
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
55
55
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
56
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
57
|
-
scheme: z.
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
57
|
+
scheme: z.ZodMiniEnum<{
|
|
58
|
+
"0x1": "0x1";
|
|
59
|
+
"0x0": "0x0";
|
|
60
|
+
"0x2": "0x2";
|
|
61
|
+
}>;
|
|
62
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
63
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
60
64
|
}, z.core.$strip>>>;
|
|
61
65
|
type: z.ZodMiniLiteral<"0x6">;
|
|
62
66
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -191,10 +195,10 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
191
195
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
192
196
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
193
197
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
194
|
-
|
|
195
|
-
flags: z.
|
|
196
|
-
mode: z.
|
|
197
|
-
|
|
198
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
199
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
200
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
201
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
198
202
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
199
203
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
200
204
|
}, z.core.$strip>>>;
|
|
@@ -204,10 +208,14 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
204
208
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
205
209
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
206
210
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
207
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
208
|
-
scheme: z.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
212
|
+
scheme: z.ZodMiniEnum<{
|
|
213
|
+
"0x1": "0x1";
|
|
214
|
+
"0x0": "0x0";
|
|
215
|
+
"0x2": "0x2";
|
|
216
|
+
}>;
|
|
217
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
218
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
211
219
|
}, z.core.$strip>>>;
|
|
212
220
|
type: z.ZodMiniLiteral<"0x6">;
|
|
213
221
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -215,6 +223,7 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
215
223
|
chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
|
|
216
224
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
217
225
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
226
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
218
227
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
219
228
|
approveExecution: "approveExecution";
|
|
220
229
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -222,7 +231,6 @@ export declare const TransactionEnvelopeToRpc: z.ZodMiniUnion<readonly [z.ZodMin
|
|
|
222
231
|
atomicBatch: "atomicBatch";
|
|
223
232
|
none: "none";
|
|
224
233
|
}>]>>;
|
|
225
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
226
234
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
227
235
|
verify: "verify";
|
|
228
236
|
default: "default";
|
|
@@ -360,10 +368,10 @@ export declare const Signed: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniOb
|
|
|
360
368
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
361
369
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
362
370
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
363
|
-
|
|
364
|
-
flags: z.
|
|
365
|
-
mode: z.
|
|
366
|
-
|
|
371
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
372
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
373
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
374
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
367
375
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
368
376
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
369
377
|
}, z.core.$strip>>>;
|
|
@@ -373,10 +381,14 @@ export declare const Signed: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodMiniOb
|
|
|
373
381
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
374
382
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
375
383
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
376
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
377
|
-
scheme: z.
|
|
378
|
-
|
|
379
|
-
|
|
384
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
385
|
+
scheme: z.ZodMiniEnum<{
|
|
386
|
+
"0x1": "0x1";
|
|
387
|
+
"0x0": "0x0";
|
|
388
|
+
"0x2": "0x2";
|
|
389
|
+
}>;
|
|
390
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
391
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
380
392
|
}, z.core.$strip>>>;
|
|
381
393
|
type: z.ZodMiniLiteral<"0x6">;
|
|
382
394
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -511,10 +523,10 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
511
523
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
512
524
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
513
525
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
514
|
-
|
|
515
|
-
flags: z.
|
|
516
|
-
mode: z.
|
|
517
|
-
|
|
526
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
527
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
528
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
529
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
518
530
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
519
531
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
520
532
|
}, z.core.$strip>>>;
|
|
@@ -524,10 +536,14 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
524
536
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
525
537
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
526
538
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
527
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
528
|
-
scheme: z.
|
|
529
|
-
|
|
530
|
-
|
|
539
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
540
|
+
scheme: z.ZodMiniEnum<{
|
|
541
|
+
"0x1": "0x1";
|
|
542
|
+
"0x0": "0x0";
|
|
543
|
+
"0x2": "0x2";
|
|
544
|
+
}>;
|
|
545
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
546
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
531
547
|
}, z.core.$strip>>>;
|
|
532
548
|
type: z.ZodMiniLiteral<"0x6">;
|
|
533
549
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -535,6 +551,7 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
535
551
|
chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
|
|
536
552
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
537
553
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
554
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
538
555
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
539
556
|
approveExecution: "approveExecution";
|
|
540
557
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -542,7 +559,6 @@ export declare const SignedToRpc: z.ZodMiniUnion<readonly [z.ZodMiniCodec<z.ZodM
|
|
|
542
559
|
atomicBatch: "atomicBatch";
|
|
543
560
|
none: "none";
|
|
544
561
|
}>]>>;
|
|
545
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
546
562
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
547
563
|
verify: "verify";
|
|
548
564
|
default: "default";
|
|
@@ -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;AAoB7B,wCAAwC;AACxC,eAAO,MAAM,IAAI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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>>>;
|
|
@@ -35,10 +35,14 @@ export declare const TransactionRequest: z.ZodMiniObject<{
|
|
|
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
37
|
signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
38
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
39
|
-
scheme: z.
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
39
|
+
scheme: z.ZodMiniEnum<{
|
|
40
|
+
"0x1": "0x1";
|
|
41
|
+
"0x0": "0x0";
|
|
42
|
+
"0x2": "0x2";
|
|
43
|
+
}>;
|
|
44
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
45
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
42
46
|
}, 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
47
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
44
48
|
type: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -67,15 +71,16 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
67
71
|
chainId: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNumberFormat]>>>;
|
|
68
72
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
69
73
|
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
|
-
|
|
74
|
+
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
75
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
76
|
+
flags: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
77
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
78
|
+
stateGas: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
75
79
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
76
|
-
value: z.ZodMiniTemplateLiteral<`0x${string}
|
|
80
|
+
value: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
77
81
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
78
82
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
83
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
79
84
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
80
85
|
approveExecution: "approveExecution";
|
|
81
86
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -83,7 +88,6 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
83
88
|
atomicBatch: "atomicBatch";
|
|
84
89
|
none: "none";
|
|
85
90
|
}>]>>;
|
|
86
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
87
91
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
88
92
|
verify: "verify";
|
|
89
93
|
default: "default";
|
|
@@ -102,10 +106,14 @@ export declare const TransactionRequestToRpc: z.ZodMiniObject<{
|
|
|
102
106
|
maxPriorityFeePerGas: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
|
|
103
107
|
nonce: z.ZodMiniOptional<z.ZodMiniCodec<z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumberFormat]>>>;
|
|
104
108
|
signatures: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniCodec<z.ZodMiniObject<{
|
|
105
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
106
|
-
scheme: z.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
110
|
+
scheme: z.ZodMiniEnum<{
|
|
111
|
+
"0x1": "0x1";
|
|
112
|
+
"0x0": "0x0";
|
|
113
|
+
"0x2": "0x2";
|
|
114
|
+
}>;
|
|
115
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
116
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
109
117
|
}, 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
118
|
to: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniNull]>>;
|
|
111
119
|
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":"AASA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAyB7B,kCAAkC;AAClC,eAAO,MAAM,kBAAkB
|
|
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,7 +2,7 @@
|
|
|
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
8
|
import * as z_Number from './Number.js';
|
|
@@ -29,9 +29,9 @@ const type = z.codec(z.string(), z.string(), {
|
|
|
29
29
|
encode: (value) => toRpcType[value] ?? value,
|
|
30
30
|
});
|
|
31
31
|
/** Transaction request schema. */
|
|
32
|
-
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_FrameRequest.FrameRequest));
|
|
33
33
|
/** Encode-only transaction request schema accepting numberish `toRpc` inputs. */
|
|
34
|
-
export const TransactionRequestToRpc = z.object(fields(z_Uint.UintToRpc, z_Number.NumberToRpc, z_Authorization.ListSignedToRpc,
|
|
34
|
+
export const TransactionRequestToRpc = z.object(fields(z_Uint.UintToRpc, z_Number.NumberToRpc, z_Authorization.ListSignedToRpc, z_FrameRequest.FrameRequestToRpc));
|
|
35
35
|
function fields(uint, num, authorizationList, frame) {
|
|
36
36
|
return {
|
|
37
37
|
accessList: z.optional(z_AccessList.AccessList),
|
|
@@ -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
|
+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,CAAC,KAAK,CAAC,GAAG,CAAC;QAC5B,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,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"}
|
|
@@ -23,10 +23,10 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
23
23
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
24
24
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
25
25
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
26
|
-
|
|
27
|
-
flags: z.
|
|
28
|
-
mode: z.
|
|
29
|
-
|
|
26
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
27
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
28
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
29
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
30
30
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
31
31
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
32
32
|
}, z.core.$strip>>>;
|
|
@@ -36,10 +36,14 @@ export declare const Rpc: z.ZodMiniObject<{
|
|
|
36
36
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
37
37
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
38
38
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
39
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
40
|
-
scheme: z.
|
|
41
|
-
|
|
42
|
-
|
|
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}`>]>>;
|
|
43
47
|
}, z.core.$strip>>>;
|
|
44
48
|
type: z.ZodMiniLiteral<"0x6">;
|
|
45
49
|
}, z.core.$strip>;
|
|
@@ -49,10 +53,10 @@ export declare const TxEnvelopeEip8141: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
49
53
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
50
54
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
51
55
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
52
|
-
|
|
53
|
-
flags: z.
|
|
54
|
-
mode: z.
|
|
55
|
-
|
|
56
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
57
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
58
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
59
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
56
60
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
57
61
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
58
62
|
}, z.core.$strip>>>;
|
|
@@ -62,10 +66,14 @@ export declare const TxEnvelopeEip8141: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
62
66
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
63
67
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
64
68
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
65
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
66
|
-
scheme: z.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
70
|
+
scheme: z.ZodMiniEnum<{
|
|
71
|
+
"0x1": "0x1";
|
|
72
|
+
"0x0": "0x0";
|
|
73
|
+
"0x2": "0x2";
|
|
74
|
+
}>;
|
|
75
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
76
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
69
77
|
}, z.core.$strip>>>;
|
|
70
78
|
type: z.ZodMiniLiteral<"0x6">;
|
|
71
79
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -91,10 +99,10 @@ export declare const TxEnvelopeEip8141ToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
91
99
|
chainId: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
92
100
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
93
101
|
data: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
94
|
-
|
|
95
|
-
flags: z.
|
|
96
|
-
mode: z.
|
|
97
|
-
|
|
102
|
+
executionGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
103
|
+
flags: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
104
|
+
mode: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
105
|
+
stateGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
98
106
|
target: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniTemplateLiteral<`0x${string}`>>>;
|
|
99
107
|
value: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
100
108
|
}, z.core.$strip>>>;
|
|
@@ -104,10 +112,14 @@ export declare const TxEnvelopeEip8141ToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
104
112
|
maxPriorityFeePerGas: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
105
113
|
nonce: z.ZodMiniTemplateLiteral<`0x${string}`>;
|
|
106
114
|
signatures: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
107
|
-
msg: z.ZodMiniTemplateLiteral<`0x${string}
|
|
108
|
-
scheme: z.
|
|
109
|
-
|
|
110
|
-
|
|
115
|
+
msg: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
116
|
+
scheme: z.ZodMiniEnum<{
|
|
117
|
+
"0x1": "0x1";
|
|
118
|
+
"0x0": "0x0";
|
|
119
|
+
"0x2": "0x2";
|
|
120
|
+
}>;
|
|
121
|
+
signature: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
122
|
+
signer: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"0x">, z.ZodMiniTemplateLiteral<`0x${string}`>]>>;
|
|
111
123
|
}, z.core.$strip>>>;
|
|
112
124
|
type: z.ZodMiniLiteral<"0x6">;
|
|
113
125
|
}, z.core.$strip>, z.ZodMiniObject<{
|
|
@@ -115,6 +127,7 @@ export declare const TxEnvelopeEip8141ToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
115
127
|
chainId: z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>;
|
|
116
128
|
frames: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniObject<{
|
|
117
129
|
data: z.ZodMiniOptional<z.ZodMiniTemplateLiteral<`0x${string}`>>;
|
|
130
|
+
executionGas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
118
131
|
flags: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
119
132
|
approveExecution: "approveExecution";
|
|
120
133
|
approveExecutionAndPayment: "approveExecutionAndPayment";
|
|
@@ -122,7 +135,6 @@ export declare const TxEnvelopeEip8141ToRpc: z.ZodMiniCodec<z.ZodMiniObject<{
|
|
|
122
135
|
atomicBatch: "atomicBatch";
|
|
123
136
|
none: "none";
|
|
124
137
|
}>]>>;
|
|
125
|
-
gas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniTemplateLiteral<`0x${string}`>, z.ZodMiniBigInt<bigint>, z.ZodMiniNumber<number>]>>;
|
|
126
138
|
mode: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniNumber<number>, z.ZodMiniEnum<{
|
|
127
139
|
verify: "verify";
|
|
128
140
|
default: "default";
|
|
@@ -1 +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
|
|
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"}
|