Skip to main content

smplx_sdk/program/
arguments.rs

1use dyn_clone::DynClone;
2use simplicityhl::Arguments;
3
4/// An interface for structs capable of generating static argument mapping for Simplicity programs.
5/// See the `include_simc!()` macro, which generates automatic `ArgumentsTrait` implementation.
6pub trait ArgumentsTrait: DynClone {
7    /// Compiles and returns the bound `Arguments` dict required to instantiate a program.
8    fn build_arguments(&self) -> Arguments;
9}
10
11dyn_clone::clone_trait_object!(ArgumentsTrait);