• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
          • Correctness
          • Definition
            • Initialization
            • Transitions
            • States
              • Committees
              • System-states
              • Certificates
              • Messages
              • Transactions
                • Transaction
                  • Transaction-fix
                  • Transaction-case
                  • Transaction-equiv
                  • Transactionp
                  • Transaction-bond
                    • Transaction-bond->validator
                    • Transaction-bond->stake
                    • Make-transaction-bond
                      • Change-transaction-bond
                    • Transaction-unbond
                    • Transaction-other
                    • Transaction-kind
                  • Transaction-list
                • Proposals
                • Validator-states
                • Blocks
                • Addresses
              • Events
              • Reachability
            • Library-extensions
          • Aleovm
          • Leo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Transaction-bond

    Make-transaction-bond

    Basic constructor macro for transaction-bond structures.

    Syntax
    (make-transaction-bond [:validator <validator>] 
                           [:stake <stake>]) 
    

    This is the usual way to construct transaction-bond structures. It simply conses together a structure with the specified fields.

    This macro generates a new transaction-bond structure from scratch. See also change-transaction-bond, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-transaction-bond

    (defmacro make-transaction-bond (&rest args)
      (std::make-aggregate 'transaction-bond
                           args '((:validator) (:stake))
                           'make-transaction-bond
                           nil))

    Function: transaction-bond

    (defun transaction-bond (validator stake)
      (declare (xargs :guard (and (addressp validator)
                                  (posp stake))))
      (declare (xargs :guard t))
      (let ((__function__ 'transaction-bond))
        (declare (ignorable __function__))
        (b* ((validator (mbe :logic (address-fix validator)
                             :exec validator))
             (stake (mbe :logic (pos-fix stake)
                         :exec stake)))
          (cons :bond (list validator stake)))))