Crate arb_stylus

Crate arb_stylus 

Source
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§

cache
config
env
error
evm_api
evm_api_impl
host
ink
meter
middleware
native
pages
pricing
run

Constants§

STYLUS_DISCRIMINANT
Prefix bytes that identify a Stylus WASM program in contract bytecode.

Functions§

is_stylus_program
Returns true if the bytecode is a Stylus WASM program.
strip_stylus_prefix
Strips the 4-byte Stylus prefix from contract bytecode.