@@ -2,21 +2,12 @@ import { z } from "zod";
2
2
import { hexStringSchema } from "../general.js" ;
3
3
import { aztecAddressSchema , bufferSchema , frNumberSchema , frSchema } from "./utils.js" ;
4
4
5
- export const noteEncryptedLogEntrySchema = z . object ( {
6
- data : bufferSchema ,
7
- } ) ;
8
-
9
- export const encryptedLogEntrySchema = z . object ( {
10
- data : bufferSchema ,
11
- maskedContractAddress : frSchema ,
12
- } ) ;
13
-
14
5
export const unencryptedLogEntrySchema = z . object ( {
15
6
data : bufferSchema ,
16
7
contractAddress : aztecAddressSchema ,
17
8
} ) ;
18
9
19
- const logsSchema = ( logEntrySchema : typeof noteEncryptedLogEntrySchema | typeof encryptedLogEntrySchema | typeof unencryptedLogEntrySchema ) =>
10
+ const logsSchema = ( logEntrySchema : typeof unencryptedLogEntrySchema ) =>
20
11
z . object ( {
21
12
functionLogs : z . array (
22
13
z . object ( {
@@ -72,16 +63,11 @@ export const chicmozL2TxEffectSchema = z.object({
72
63
publicDataWrites : z . array (
73
64
z . object ( { leafSlot : frSchema , value : frSchema } ) ,
74
65
) ,
75
- noteEncryptedLogsLength : frNumberSchema ,
76
- encryptedLogsLength : frNumberSchema ,
77
66
unencryptedLogsLength : frNumberSchema ,
78
- noteEncryptedLogs : logsSchema ( noteEncryptedLogEntrySchema ) ,
79
- encryptedLogs : logsSchema ( encryptedLogEntrySchema ) ,
67
+ privateLogs : z . array ( z . array ( frSchema ) ) ,
80
68
unencryptedLogs : logsSchema ( unencryptedLogEntrySchema ) ,
81
69
} ) ;
82
70
83
- export type NoteEncryptedLogEntry = z . infer < typeof noteEncryptedLogEntrySchema > ;
84
- export type EncryptedLogEntry = z . infer < typeof encryptedLogEntrySchema > ;
85
71
export type UnencryptedLogEntry = z . infer < typeof unencryptedLogEntrySchema > ;
86
72
87
73
export type ChicmozL2PendingTx = z . infer < typeof chicmozL2PendingTxSchema > ;
0 commit comments