Module stacks_codec::clarity
source · Modules§
- Rusqlite is an ergonomic wrapper for using SQLite from Rust.
- The Clarity virtual machine
Macros§
- Borrowed from Andrew Poelstra’s rust-bitcoin
Structs§
- Environments pack a reference to the global context (which is basically the db), the current contract context, a call stack, the current sender, caller, and sponsor (if one exists). Essentially, the point of the Environment struct is to prevent all the eval functions from including all of these items in their method signatures individually. Because these different contexts can be mixed and matched (i.e., in a contract-call, you change contract context), a single “invocation” will end up creating multiple environment objects as context changes occur.
- A container for public keys (compressed secp256k1 public keys)
Enums§
Constants§
Traits§
- EvalHook defines an interface for hooks to execute during evaluation.
Functions§
- This function evaluates a list of expressions, sharing a global context. It returns the final evaluated result. Used for the initialization of a new contract.
- Do a “consolidated” STX transfer. If the ‘from’ principal has locked STX, and they have unlocked, then process the STX unlock and update its balance in addition to spending tokens out of it.