[−][src]Struct near_vm_logic::Config
Fields
runtime_fees: RuntimeFeesConfig
Fees for creating actions on runtime.
grow_mem_cost: u32
Gas cost of a growing memory by single page.
regular_op_cost: u32
Gas cost of a regular operation.
max_gas_burnt: Gas
Max amount of gas that can be used, excluding gas attached to promises.
max_stack_height: u32
How tall the stack is allowed to grow?
See https://wiki.parity.io/WebAssembly-StackHeight to find out how the stack frame cost is calculated.
initial_memory_pages: u32
The initial number of memory pages.
max_memory_pages: u32
What is the maximal memory pages amount is allowed to have for a contract.
registers_memory_limit: u64
Limit of memory used by registers.
max_register_size: u64
Maximum number of bytes that can be stored in a single register.
max_number_registers: u64
Maximum number of registers that can be used simultaneously.
max_number_logs: u64
Maximum number of log entries.
max_log_len: u64
Maximum length of a single log, in bytes.
Methods
impl Config
[src]
pub fn non_crypto_hash(&self) -> u64
[src]
Computes non-cryptographically-proof hash. The computation is fast but not cryptographically secure.
pub fn free() -> Self
[src]
Trait Implementations
impl Clone for Config
[src]
impl Default for Config
[src]
impl Debug for Config
[src]
impl Hash for Config
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'de> Deserialize<'de> for Config
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Config
[src]
Auto Trait Implementations
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
impl RefUnwindSafe for Config
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,