Struct vm::WasmCosts[][src]

pub struct WasmCosts {
    pub regular: u32,
    pub div: u32,
    pub mul: u32,
    pub mem: u32,
    pub static_u256: u32,
    pub static_address: u32,
    pub initial_mem: u32,
    pub grow_mem: u32,
    pub memcpy: u32,
    pub max_stack_height: u32,
    pub opcodes_mul: u32,
    pub opcodes_div: u32,
}

Wasm cost table

Fields

Default opcode cost

Div operations multiplier.

Div operations multiplier.

Memory (load/store) operations multiplier.

General static query of U256 value from env-info

General static query of Address value from env-info

Memory stipend. Amount of free memory (in 64kb pages) each contract can use for stack.

Grow memory cost, per page (64kb)

Memory copy cost, per byte

Max stack height (native WebAssembly stack limiter)

Cost of wasm opcode is calculated as TABLE_ENTRY_COST * opcodes_mul / opcodes_div

Cost of wasm opcode is calculated as TABLE_ENTRY_COST * opcodes_mul / opcodes_div

Trait Implementations

impl Default for WasmCosts
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for WasmCosts

impl Sync for WasmCosts