-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
33 lines (28 loc) · 1.59 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from enum import IntEnum
SYSTEM_LOG_SIZE = 88
COMMIT_BATCHES_SELECTOR = "0x701f58c5"
# function commitBatches(
# StoredBatchInfo calldata _lastCommittedBatchData,
# CommitBatchInfo[] calldata _newBatchesData
# )
SYSTEM_LOG_SENDERS = {
"0000000000000000000000000000000000008001": "Bootloader",
"000000000000000000000000000000000000800b": "System context",
"0000000000000000000000000000000000008008": "L1 messenger",
"0000000000000000000000000000000000008011": "Pubdata Chunk Publisher"
}
SYSTEM_LOG_KEYS = {
"0000000000000000000000000000000000000000000000000000000000000000": "L2_TO_L1_LOGS_TREE_ROOT_KEY",
"0000000000000000000000000000000000000000000000000000000000000001": "TOTAL_L2_TO_L1_PUBDATA_KEY",
"0000000000000000000000000000000000000000000000000000000000000002": "STATE_DIFF_HASH_KEY",
"0000000000000000000000000000000000000000000000000000000000000003": "PACKED_BATCH_AND_L2_BLOCK_TIMESTAMP_KEY",
"0000000000000000000000000000000000000000000000000000000000000004": "PREV_BATCH_HASH_KEY",
"0000000000000000000000000000000000000000000000000000000000000005": "CHAINED_PRIORITY_TXN_HASH_KEY",
"0000000000000000000000000000000000000000000000000000000000000006": "NUMBER_OF_LAYER_1_TXS_KEY",
"0000000000000000000000000000000000000000000000000000000000000007": "BLOB_ONE_HASH_KEY",
"0000000000000000000000000000000000000000000000000000000000000008": "BLOB_TWO_HASH_KEY",
"0000000000000000000000000000000000000000000000000000000000000009": "EXPECTED_SYSTEM_CONTRACT_UPGRADE_TX_HASH_KEY",
}
class PubdataSource(IntEnum):
CALLDATA = 0
BLOBS = 1