Trait multiversx_sc::api::VMApi
source · pub trait VMApi: ManagedTypeApi + BlockchainApi + CallValueApi + CryptoApi + EndpointArgumentApi + EndpointFinishApi + ErrorApi + LogApi + SendApi + StorageReadApi + StorageWriteApi + PrintApi + CallTypeApi + StorageMapperApi + Clone + PartialEq + Eq + Send + Sync {
// Provided methods
fn external_view_init_override() -> bool { ... }
fn init_static() { ... }
}
Provided Methods§
sourcefn external_view_init_override() -> bool
fn external_view_init_override() -> bool
Slightly hacky way of overriding the constructor for external view contracts.
Only required for the tests, in production the meta crate makes sure to replace it.
TODO: find a more robust and maybe extendable solution.
fn init_static()
Object Safety§
This trait is not object safe.