pub trait ContractImpl {
    type Api;

    // Required method
    fn new_contract_impl(api: Self::Api) -> Self;
}
Expand description

Governs the instantiation process of contract implementation. Using a trait for the instantiation helps with code generation.

Required Associated Types§

Required Methods§

source

fn new_contract_impl(api: Self::Api) -> Self

Object Safety§

This trait is not object safe.

Implementors§