From e9bd5d5c2b9edb75ab44ff78e6d6762354c5705d Mon Sep 17 00:00:00 2001 From: Nitin Mittal Date: Sun, 17 Mar 2024 15:22:22 +0400 Subject: [PATCH] fix: global exit root proto file --- schemas/global_exit_root.proto | 12 +++++++++++- schemas/l1_state.proto | 20 -------------------- 2 files changed, 11 insertions(+), 21 deletions(-) delete mode 100644 schemas/l1_state.proto diff --git a/schemas/global_exit_root.proto b/schemas/global_exit_root.proto index b31c929..7b6d6a0 100644 --- a/schemas/global_exit_root.proto +++ b/schemas/global_exit_root.proto @@ -7,7 +7,17 @@ message ExitRoots { } message GlobalExitRoot { + message GlobalExitRootEvent { + uint64 rollupId = 1; + uint64 batchNumber = 2; + uint64 depositCount = 3; + string aggregator = 4; + string rollUpExitRoot = 5; + string globalExitRoot = 6; + ExitRoots exitRoots = 4; + } + uint64 blockNumber = 1; uint64 timestamp = 2; - repeated ExitRoots data = 3; + repeated GlobalExitRootEvent data = 3; } diff --git a/schemas/l1_state.proto b/schemas/l1_state.proto deleted file mode 100644 index 4a7c42a..0000000 --- a/schemas/l1_state.proto +++ /dev/null @@ -1,20 +0,0 @@ -package l1stateblockpackage; -syntax = "proto3"; - -message ExitRoots { - string mainnet = 1; - string rollUp = 2; -} - -message L1StateBlock { - message L1State { - uint64 batchNumber = 1; - string aggregator = 2; - bool isTrusted = 3; - ExitRoots exitRoots = 4; - } - - uint64 blockNumber = 1; - uint64 timestamp = 2; - repeated L1State data = 3; -}