Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::chain::wasm_config Struct Reference

#include <wasm_config.hpp>

Public Member Functions

void validate () const
 

Public Attributes

std::uint32_t max_mutable_global_bytes
 
std::uint32_t max_table_elements
 
std::uint32_t max_section_elements
 
std::uint32_t max_linear_memory_init
 
std::uint32_t max_func_local_bytes
 
std::uint32_t max_nested_structures
 
std::uint32_t max_symbol_bytes
 
std::uint32_t max_module_bytes
 
std::uint32_t max_code_bytes
 
std::uint32_t max_pages
 
std::uint32_t max_call_depth
 

Detailed Description

Definition at line 9 of file wasm_config.hpp.

Member Function Documentation

◆ validate()

void wasm_config::validate ( ) const

Definition at line 6 of file wasm_config.cpp.

6 {
7 SYS_ASSERT(max_section_elements >= 4, action_validate_exception, "max_section_elements cannot be less than 4");
8 SYS_ASSERT(max_func_local_bytes >= 8, action_validate_exception, "max_func_local_bytes cannot be less than 8");
9 SYS_ASSERT(max_nested_structures >= 1, action_validate_exception, "max_nested_structures cannot be less than 1");
10 SYS_ASSERT(max_symbol_bytes >= 32, action_validate_exception, "max_symbol_bytes cannot be less than 32");
11 SYS_ASSERT(max_module_bytes >= 256, action_validate_exception, "max_module_bytes cannot be less than 256");
12 SYS_ASSERT(max_code_bytes >= 32, action_validate_exception, "max_code_bytes cannot be less than 32");
13 SYS_ASSERT(max_pages >= 1, action_validate_exception, "max_pages cannot be less than 1");
14 SYS_ASSERT(max_call_depth >= 2, action_validate_exception, "max_call_depth cannot be less than 2");
15}
#define SYS_ASSERT(expr, exc_type, FORMAT,...)
Definition exceptions.hpp:7
key Invalid authority Invalid transaction Invalid block ID Invalid packed transaction Invalid chain ID Invalid symbol Signature type is not a currently activated type Block can not be found Unlinkable block Block does not guarantee concurrent execution without conflicts Block exhausted allowed resources Block is from the future Block is not signed by expected producer Block includes an ill formed protocol feature activation extension Block includes an ill formed additional block signature extension Error decompressing transaction Transaction should have at least one required authority Expired Transaction Invalid Reference Block Duplicate deferred transaction The transaction can not be found Transaction is too big Invalid transaction extension Transaction includes disallowed Transaction exceeded transient resource limit action_validate_exception
std::uint32_t max_symbol_bytes
std::uint32_t max_func_local_bytes
std::uint32_t max_section_elements
std::uint32_t max_nested_structures
std::uint32_t max_module_bytes
Here is the caller graph for this function:

Member Data Documentation

◆ max_call_depth

std::uint32_t sysio::chain::wasm_config::max_call_depth

Definition at line 20 of file wasm_config.hpp.

◆ max_code_bytes

std::uint32_t sysio::chain::wasm_config::max_code_bytes

Definition at line 18 of file wasm_config.hpp.

◆ max_func_local_bytes

std::uint32_t sysio::chain::wasm_config::max_func_local_bytes

Definition at line 14 of file wasm_config.hpp.

◆ max_linear_memory_init

std::uint32_t sysio::chain::wasm_config::max_linear_memory_init

Definition at line 13 of file wasm_config.hpp.

◆ max_module_bytes

std::uint32_t sysio::chain::wasm_config::max_module_bytes

Definition at line 17 of file wasm_config.hpp.

◆ max_mutable_global_bytes

std::uint32_t sysio::chain::wasm_config::max_mutable_global_bytes

Definition at line 10 of file wasm_config.hpp.

◆ max_nested_structures

std::uint32_t sysio::chain::wasm_config::max_nested_structures

Definition at line 15 of file wasm_config.hpp.

◆ max_pages

std::uint32_t sysio::chain::wasm_config::max_pages

Definition at line 19 of file wasm_config.hpp.

◆ max_section_elements

std::uint32_t sysio::chain::wasm_config::max_section_elements

Definition at line 12 of file wasm_config.hpp.

◆ max_symbol_bytes

std::uint32_t sysio::chain::wasm_config::max_symbol_bytes

Definition at line 16 of file wasm_config.hpp.

◆ max_table_elements

std::uint32_t sysio::chain::wasm_config::max_table_elements

Definition at line 11 of file wasm_config.hpp.


The documentation for this struct was generated from the following files: