odra-core 2.7.1

Core of the Odra Framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// The contract trait.
pub trait OdraContract {
    /// The host reference type.
    #[cfg(not(target_arch = "wasm32"))]
    type HostRef: crate::host::HostRef
        + crate::host::EntryPointsCallerProvider
        + crate::contract_def::HasIdent;
    /// The contract reference type.
    type ContractRef: crate::contract_env::ContractRef;
    /// The init args type.
    #[cfg(not(target_arch = "wasm32"))]
    type InitArgs: crate::host::InitArgs;

    /// The upgrade args type.
    #[cfg(not(target_arch = "wasm32"))]
    type UpgradeArgs: crate::host::UpgradeArgs;
}