1
2
3
4
5
6
7
8
use alloc::boxed::Box;

/// CallableContract is the means by which the debugger calls methods in the contract.
pub trait CallableContract<A> {
    fn call(&self, fn_name: &[u8]) -> bool;

    fn into_api(self: Box<Self>) -> A;
}