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()
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.