Basic constructor macro for event-commit structures.
(make-event-commit [:validator <validator>])
This is the usual way to construct event-commit structures. It simply conses together a structure with the specified fields.
This macro generates a new event-commit structure from scratch. See also change-event-commit, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-event-commit (&rest args) (std::make-aggregate 'event-commit args '((:validator)) 'make-event-commit nil))
Function:
(defun event-commit (validator) (declare (xargs :guard (addressp validator))) (declare (xargs :guard t)) (let ((__function__ 'event-commit)) (declare (ignorable __function__)) (b* ((validator (mbe :logic (address-fix validator) :exec validator))) (cons :commit (list validator)))))