Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STP module constraints (new specification) #12

Merged
merged 5 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions stp/columns.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
(module stp)

(defcolumns
STAMP
CT
CT_MAX
(INSTRUCTION_TYPE :BOOLEAN)
(CALL_CAN_TRANSFER_VALUE :BOOLEAN)
;;
GAS_ACTUAL
GAS_MXP
GAS_COST
GAS_STIPEND
;;
GAS_HI
GAS_LO
VAL_HI
VAL_LO
;;
(TO_EXISTS :BOOLEAN)
(TO_WARM :BOOLEAN)
(OUT_OF_GAS_EXCEPTION :BOOLEAN)
;;
(ABORT :BOOLEAN)
CALL_STACK_DEPTH
FROM_BALANCE
TO_NONCE
(TO_HAS_CODE :BOOLEAN)
;;
(WCP_FLAG :BOOLEAN)
(MOD_FLAG :BOOLEAN)
(EXOGENOUS_MODULE_INSTRUCTION :BYTE)
ARG_1_HI
ARG_1_LO
ARG_2_LO
RES_LO
;; TODO find solution for this hack
ZERO
)

(defalias
INST_TYPE INSTRUCTION_TYPE
CCTV CALL_CAN_TRANSFER_VALUE
CSD CALL_STACK_DEPTH
OOGX OUT_OF_GAS_EXCEPTION
EXO_INST EXOGENOUS_MODULE_INSTRUCTION
)
Loading