Skip to content

Commit b191efe

Browse files
committed
feat: remove guard, split per folder, keep same module name
1 parent 186c473 commit b191efe

File tree

669 files changed

+1387
-6418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

669 files changed

+1387
-6418
lines changed

Makefile

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@ BIN := bin
1111
BLAKE2f_MODEXP_DATA := blake2fmodexpdata
1212

1313
# constraints used in prod for LINEA, with linea block gas limit
14-
BLOCKDATALON := $(wildcard blockdata/blockdatalon/*.lisp) \
15-
$(wildcard blockdata/blockdatalon/processing/*.lisp) \
16-
$(wildcard blockdata/blockdatalon/processing/gaslimit/common.lisp) \
17-
$(wildcard blockdata/blockdatalon/processing/gaslimit/linea.lisp) \
18-
$(wildcard blockdata/blockdatalon/lookups/*.lisp)
19-
20-
BLOCKDATASHAN := $(wildcard blockdata/blockdatashan/*.lisp) \
21-
$(wildcard blockdata/blockdatashan/processing/*.lisp) \
22-
$(wildcard blockdata/blockdatashan/processing/gaslimit/common.lisp) \
23-
$(wildcard blockdata/blockdatashan/processing/gaslimit/linea.lisp) \
24-
$(wildcard blockdata/blockdatashan/lookups/*.lisp)
14+
BLOCKDATA := $(wildcard blockdata/*.lisp) \
15+
$(wildcard blockdata/processing/*.lisp) \
16+
$(wildcard blockdata/processing/gaslimit/common.lisp) \
17+
$(wildcard blockdata/processing/gaslimit/linea.lisp) \
18+
$(wildcard blockdata/lookups/*.lisp)
2519

2620
BLOCKHASH := blockhash
2721

@@ -35,7 +29,19 @@ EXP := exp
3529

3630
GAS := gas
3731

38-
HUB := hub
32+
HUB_LON := $(wildcard hub/london/*.lisp) \
33+
$(wildcard hub/london/**/*.lisp) \
34+
$(wildcard hub/london/**/**/*.lisp) \
35+
$(wildcard hub/london/**/**/**/*.lisp) \
36+
$(wildcard hub/london/**/**/**/**/*.lisp) \
37+
$(wildcard hub/london/**/**/**/**/**/*.lisp)
38+
39+
HUB_SHAN := $(wildcard hub/shanghai/*.lisp) \
40+
$(wildcard hub/shanghai/**/*.lisp) \
41+
$(wildcard hub/shanghai/**/**/*.lisp) \
42+
$(wildcard hub/shanghai/**/**/**/*.lisp) \
43+
$(wildcard hub/shanghai/**/**/**/**/*.lisp) \
44+
$(wildcard hub/shanghai/**/**/**/**/**/*.lisp)
3945

4046
LIBRARY := library
4147

@@ -49,7 +55,13 @@ MMIO := mmio
4955

5056
MXP := mxp
5157

52-
OOB := oob
58+
OOB_LON := $(wildcard oob/london/*.lisp) \
59+
$(wildcard oob/london/**/*.lisp) \
60+
$(wildcard oob/london/**/**/*.lisp)
61+
62+
OOB_SHAN := $(wildcard oob/shanghai/*.lisp) \
63+
$(wildcard oob/shanghai/**/*.lisp) \
64+
$(wildcard oob/shanghai/**/**/*.lisp)
5365

5466
RLP_ADDR := rlpaddr
5567

@@ -71,30 +83,30 @@ TABLES := reftables
7183

7284
TRM := trm
7385

74-
TXN_DATA := txndata
86+
TXN_DATA_LON := $(wildcard txndata/london/*.lisp) \
87+
$(wildcard txndata/london/**/*.lisp)
88+
89+
TXN_DATA_SHAN := $(wildcard txndata/shanghai/*.lisp) \
90+
$(wildcard txndata/shanghai/**/*.lisp)
7591

7692
WCP := wcp
7793

78-
# Corset is order sensitive - to compile, we load the constants first
79-
ZKEVM_MODULES := ${CONSTANTS} \
94+
ZKEVM_MODULES_COMMON := ${CONSTANTS} \
8095
${ALU} \
8196
${BIN} \
8297
${BLAKE2f_MODEXP_DATA} \
83-
${BLOCKDATALON} \
84-
${BLOCKDATASHAN} \
98+
${BLOCKDATA} \
8599
${BLOCKHASH} \
86100
${EC_DATA} \
87101
${EUC} \
88102
${EXP} \
89103
${GAS} \
90-
${HUB} \
91104
${LIBRARY} \
92105
${LOG_DATA} \
93106
${LOG_INFO} \
94107
${MMIO} \
95108
${MMU} \
96109
${MXP} \
97-
${OOB} \
98110
${RLP_ADDR} \
99111
${RLP_TXN} \
100112
${RLP_TXRCPT} \
@@ -105,8 +117,12 @@ ZKEVM_MODULES := ${CONSTANTS} \
105117
${STP} \
106118
${TABLES} \
107119
${TRM} \
108-
${TXN_DATA} \
109120
${WCP}
110121

122+
ZKEVM_MODULES_LON := ${ZKEVM_MODULES_COMMON} \
123+
${HUB_LON} \
124+
${OOB_LON} \
125+
${TXN_DATA_LON}
126+
111127
zkevm.bin: ${ZKEVM_MODULES}
112-
${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES}
128+
${GO_CORSET_COMPILE} -o $@ ${ZKEVM_MODULES_LON}

blockdata/blockdatashan/columns.lisp

Lines changed: 0 additions & 42 deletions
This file was deleted.

blockdata/blockdatashan/constants.lisp

Lines changed: 0 additions & 16 deletions
This file was deleted.

blockdata/blockdatashan/constraints.lisp

Lines changed: 0 additions & 87 deletions
This file was deleted.

blockdata/blockdatashan/lookups/blockdata_into_euc.lisp

Lines changed: 0 additions & 19 deletions
This file was deleted.

blockdata/blockdatashan/lookups/blockdata_into_txndata.lisp

Lines changed: 0 additions & 12 deletions
This file was deleted.

blockdata/blockdatashan/lookups/blockdata_into_wcp.lisp

Lines changed: 0 additions & 24 deletions
This file was deleted.

blockdata/blockdatashan/macros.lisp

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)