Crate sapio

Source
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 a FinishOrFunc 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 static fn() -> 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: