Expand description
The Sapio Compiler Core Crate. Sapio is used to create multi-transaction Bitcoin Smart Contracts.
Re-exports§
pub use contract::Context;
pub use sapio_base;
pub use sapio_macros;
pub use schemars;
Modules§
- contract
- Functionality comprising the language base, macros, and compiler internals.
- template
- utilities for building Bitcoin transaction templates up programmatically
- util
- Basic functionality / structs for Sapio
Macros§
- decl_
compile_ if - declares a compile_if function for a trait interface.
- decl_
continuation - The finish macro is used to define a
FinishFunc
or aFinishOrFunc
formats for calling are: - decl_
guard - The guard macro is used to define a
Guard
. Guards may be cached or uncached. formats for calling are: - decl_
then - The then macro is used to define a
ThenFunc
formats for calling are: - declare
- The declare macro is used to declare the list of pathways in a Contract trait impl. formats for calling are:
- is_
web_ api_ type - Generates a type tag for WebAPI Enabled/Disabled
- web_api
- Internal Helper for finish! macro, not to be used directly.
Attribute Macros§
- compile_
if - The compile_if macro is used to define a
ConditionallyCompileIf
. formats for calling are: - continuation
- The
continuation
macro generates a staticfn() -> Option<FinishOrFunc>
method for a given impl. - guard
- The guard macro is used to define a
Guard
. Guards may be cached or uncached. formats for calling are: - then
- The then macro is used to define a
ThenFunction
. formats for calling are: