Expand description
Stylus WASM smart contract runtime.
Provides the execution pipeline for Stylus programs: WASM compilation and caching, ink metering, host I/O functions, and EVM interop.
Re-exports§
pub use cache::InitCache;pub use config::CompileConfig;pub use config::StylusConfig;pub use evm_api::EvmApi;pub use evm_api_impl::StylusEvmApi;pub use ink::Gas;pub use ink::Ink;pub use meter::MachineMeter;pub use meter::MeteredMachine;pub use meter::STYLUS_ENTRY_POINT;pub use native::NativeInstance;pub use run::RunProgram;
Modules§
Constants§
- STYLUS_
DISCRIMINANT - Prefix bytes that identify a Stylus WASM program in contract bytecode.
Functions§
- is_
stylus_ program - Returns
trueif the bytecode is a Stylus WASM program. - strip_
stylus_ prefix - Strips the 4-byte Stylus prefix from contract bytecode.