Kagome
Polkadot Runtime Engine in C++17
kagome::runtime::wavm Namespace Reference

Classes

class  CompartmentWrapper
 
struct  CompartmentWrapperImpl
 
class  CoreApiFactoryImpl
 
class  InstanceEnvironmentFactory
 
class  IntrinsicModule
 
class  IntrinsicModuleInstance
 
class  IntrinsicResolver
 
class  IntrinsicResolverImpl
 
class  MemoryImpl
 
struct  ModuleCache
 
class  ModuleFactoryImpl
 
class  ModuleImpl
 
class  ModuleInstanceImpl
 
struct  ModuleParams
 Global parameters for module instantiation. Currently contains only memory type that may be changed on new runtime compilation. More...
 
class  OneCodeProvider
 
class  OneModuleRepository
 
class  WavmExternalMemoryProvider
 
class  WavmInternalMemoryProvider
 

Functions

void pushBorrowedRuntimeInstance (std::shared_ptr< ModuleInstance > borrowed_runtime_instance)
 
void popBorrowedRuntimeInstance ()
 
std::shared_ptr< ModuleInstancepeekBorrowedRuntimeInstance ()
 
std::shared_ptr< host_api::HostApipeekHostApi ()
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_allocator_free_version_1, WAVM::I32 address)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_allocator_malloc_version_1, WAVM::I32 size)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_ed25519_generate_version_1, WAVM::I32 keytype, WAVM::I64 seed)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_ed25519_public_keys_version_1, WAVM::I32 key_type)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_ed25519_sign_version_1, WAVM::I32 key_type, WAVM::I32 key, WAVM::I64 msg_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_ed25519_verify_version_1, WAVM::I32 sig_data, WAVM::I64 msg, WAVM::I32 pubkey_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_finish_batch_verify_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_secp256k1_ecdsa_recover_version_1, WAVM::I32 sig, WAVM::I32 msg)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_secp256k1_ecdsa_recover_version_2, WAVM::I32 sig, WAVM::I32 msg)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_secp256k1_ecdsa_recover_compressed_version_1, WAVM::I32 sig, WAVM::I32 msg)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_secp256k1_ecdsa_recover_compressed_version_2, WAVM::I32 sig, WAVM::I32 msg)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_sr25519_generate_version_1, WAVM::I32 key_type, WAVM::I64 seed)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_sr25519_public_keys_version_1, WAVM::I32 key_type)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_sr25519_sign_version_1, WAVM::I32 key_type, WAVM::I32 key, WAVM::I64 msg_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_sr25519_verify_version_1, WAVM::I32 sig_data, WAVM::I64 msg, WAVM::I32 pubkey_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_sr25519_verify_version_2, WAVM::I32 sig_data, WAVM::I64 msg, WAVM::I32 pubkey_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_ecdsa_generate_version_1, WAVM::I32 key_type, WAVM::I64 seed)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_ecdsa_public_keys_version_1, WAVM::I32 key_type)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_ecdsa_sign_version_1, WAVM::I32 key_type, WAVM::I32 key, WAVM::I64 msg_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_crypto_ecdsa_sign_prehashed_version_1, WAVM::I32 key_type, WAVM::I32 key, WAVM::I64 msg_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_ecdsa_verify_version_1, WAVM::I32 sig_data, WAVM::I64 msg, WAVM::I32 pubkey_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_crypto_ecdsa_verify_prehashed_version_1, WAVM::I32 sig_data, WAVM::I64 msg, WAVM::I32 pubkey_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_crypto_start_batch_verify_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_trie_blake2_256_ordered_root_version_1, WAVM::I64 values_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_trie_blake2_256_ordered_root_version_2, WAVM::I64 values_data, WAVM::I32 state_version)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_misc_print_hex_version_1, WAVM::I64 values_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_misc_print_num_version_1, WAVM::I64 values_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_misc_print_utf8_version_1, WAVM::I64 values_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_misc_runtime_version_version_1, WAVM::I64 values_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_default_child_storage_clear_version_1, WAVM::I64 child_storage_key, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_default_child_storage_read_version_1, WAVM::I64 child_storage_key, WAVM::I64 key, WAVM::I64 value_out, WAVM::I32 offset)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_default_child_storage_exists_version_1, WAVM::I64 child_storage_key, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_default_child_storage_get_version_1, WAVM::I64 child_storage_key, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_default_child_storage_next_key_version_1, WAVM::I64 child_storage_key, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_default_child_storage_clear_prefix_version_1, WAVM::I64 child_storage_key, WAVM::I64 prefix)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_default_child_storage_root_version_1, WAVM::I64 child_storage_key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_default_child_storage_set_version_1, WAVM::I64 child_storage_key, WAVM::I64 key, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_default_child_storage_storage_kill_version_1, WAVM::I64 child_storage_key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_blake2_128_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_blake2_256_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_keccak_256_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_sha2_256_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_twox_128_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_twox_64_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_hashing_twox_256_version_1, WAVM::I64 data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_offchain_is_validator_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_submit_transaction_version_1, WAVM::I64 xt)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_network_state_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_timestamp_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_sleep_until_version_1, WAVM::I64 deadline)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_offchain_random_seed_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_local_storage_set_version_1, WAVM::I32 kind, WAVM::I64 key, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_local_storage_clear_version_1, WAVM::I32 kind, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_offchain_local_storage_compare_and_set_version_1, WAVM::I32 kind, WAVM::I64 key, WAVM::I64 expected, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_local_storage_get_version_1, WAVM::I32 kind, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_request_start_version_1, WAVM::I64 method, WAVM::I64 uri, WAVM::I64 meta)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_request_add_header_version_1, WAVM::I32 request_id, WAVM::I64 name, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_request_write_body_version_1, WAVM::I32 request_id, WAVM::I64 chunk, WAVM::I64 deadline)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_response_wait_version_1, WAVM::I64 ids, WAVM::I64 deadline)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_response_headers_version_1, WAVM::I32 request_id)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_offchain_http_response_read_body_version_1, WAVM::I32 request_id, WAVM::I64 buffer, WAVM::I64 deadline)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_set_authorized_nodes_version_1, WAVM::I64 nodes, WAVM::I32 authorized_only)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_index_set_version_1, WAVM::I64 key, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_offchain_index_clear_version_1, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_append_version_1, WAVM::I64 key, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_changes_root_version_1, WAVM::I64 parent_hash)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_clear_version_1, WAVM::I64 key_data)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_clear_prefix_version_1, WAVM::I64 prefix)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_clear_prefix_version_2, WAVM::I64 prefix, WAVM::I64 limit)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_commit_transaction_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_get_version_1, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_next_key_version_1, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_read_version_1, WAVM::I64 key, WAVM::I64 value_out, WAVM::I32 offset)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_rollback_transaction_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_root_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I64, ext_storage_root_version_2, WAVM::I32 state_version)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_set_version_1, WAVM::I64 key, WAVM::I64 value)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_storage_start_transaction_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_storage_exists_version_1, WAVM::I64 key)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (void, ext_logging_log_version_1, WAVM::I32 level, WAVM::I64 target, WAVM::I64 message)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION (WAVM::I32, ext_logging_max_level_version_1)
 
 WAVM_DEFINE_INTRINSIC_FUNCTION_STUB (void, ext_sandbox_instance_teardown_version_1, WAVM::I32) WAVM_DEFINE_INTRINSIC_FUNCTION_STUB(WAVM
 
void registerHostApiMethods (IntrinsicModule &module)
 

Variables

log::Logger logger
 
static thread_local std::stack< std::shared_ptr< ModuleInstance > > global_instances
 

Detailed Description

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0


Class Documentation

struct kagome::runtime::wavm::ModuleParams

Global parameters for module instantiation. Currently contains only memory type that may be changed on new runtime compilation.

Definition at line 18 of file module_params.hpp.

Collaboration diagram for kagome::runtime::wavm::ModuleParams:
Class Members
MemoryType intrinsicMemoryType

Function Documentation

std::shared_ptr< ModuleInstance > kagome::runtime::wavm::peekBorrowedRuntimeInstance ( )

Definition at line 28 of file intrinsic_functions.cpp.

std::shared_ptr< host_api::HostApi > kagome::runtime::wavm::peekHostApi ( )

Definition at line 33 of file intrinsic_functions.cpp.

void kagome::runtime::wavm::popBorrowedRuntimeInstance ( )

Definition at line 23 of file intrinsic_functions.cpp.

void kagome::runtime::wavm::pushBorrowedRuntimeInstance ( std::shared_ptr< ModuleInstance borrowed_runtime_instance)

Definition at line 18 of file intrinsic_functions.cpp.

void kagome::runtime::wavm::registerHostApiMethods ( IntrinsicModule module)

Definition at line 674 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_allocator_free_version_1  ,
WAVM::I32  address 
)

Definition at line 50 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_allocator_malloc_version_1  ,
WAVM::I32  size 
)

Definition at line 56 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_ed25519_generate_version_1  ,
WAVM::I32  keytype,
WAVM::I64  seed 
)

Definition at line 62 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_ed25519_public_keys_version_1  ,
WAVM::I32  key_type 
)

Definition at line 69 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_ed25519_sign_version_1  ,
WAVM::I32  key_type,
WAVM::I32  key,
WAVM::I64  msg_data 
)

Definition at line 75 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_ed25519_verify_version_1  ,
WAVM::I32  sig_data,
WAVM::I64  msg,
WAVM::I32  pubkey_data 
)

Definition at line 84 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_finish_batch_verify_version_1   
)

Definition at line 93 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_secp256k1_ecdsa_recover_version_1  ,
WAVM::I32  sig,
WAVM::I32  msg 
)

Definition at line 98 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_secp256k1_ecdsa_recover_version_2  ,
WAVM::I32  sig,
WAVM::I32  msg 
)

Definition at line 106 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_secp256k1_ecdsa_recover_compressed_version_1  ,
WAVM::I32  sig,
WAVM::I32  msg 
)

Definition at line 114 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_secp256k1_ecdsa_recover_compressed_version_2  ,
WAVM::I32  sig,
WAVM::I32  msg 
)

Definition at line 123 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_sr25519_generate_version_1  ,
WAVM::I32  key_type,
WAVM::I64  seed 
)

Definition at line 132 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_sr25519_public_keys_version_1  ,
WAVM::I32  key_type 
)

Definition at line 139 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_sr25519_sign_version_1  ,
WAVM::I32  key_type,
WAVM::I32  key,
WAVM::I64  msg_data 
)

Definition at line 145 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_sr25519_verify_version_1  ,
WAVM::I32  sig_data,
WAVM::I64  msg,
WAVM::I32  pubkey_data 
)

Definition at line 154 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_sr25519_verify_version_2  ,
WAVM::I32  sig_data,
WAVM::I64  msg,
WAVM::I32  pubkey_data 
)

Definition at line 163 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_ecdsa_generate_version_1  ,
WAVM::I32  key_type,
WAVM::I64  seed 
)

Definition at line 172 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_ecdsa_public_keys_version_1  ,
WAVM::I32  key_type 
)

Definition at line 179 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_ecdsa_sign_version_1  ,
WAVM::I32  key_type,
WAVM::I32  key,
WAVM::I64  msg_data 
)

Definition at line 185 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_crypto_ecdsa_sign_prehashed_version_1  ,
WAVM::I32  key_type,
WAVM::I32  key,
WAVM::I64  msg_data 
)

Definition at line 194 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_ecdsa_verify_version_1  ,
WAVM::I32  sig_data,
WAVM::I64  msg,
WAVM::I32  pubkey_data 
)

Definition at line 203 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_crypto_ecdsa_verify_prehashed_version_1  ,
WAVM::I32  sig_data,
WAVM::I64  msg,
WAVM::I32  pubkey_data 
)

Definition at line 212 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_crypto_start_batch_verify_version_1   
)

Definition at line 221 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_trie_blake2_256_ordered_root_version_1  ,
WAVM::I64  values_data 
)

Definition at line 226 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_trie_blake2_256_ordered_root_version_2  ,
WAVM::I64  values_data,
WAVM::I32  state_version 
)

Definition at line 233 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_misc_print_hex_version_1  ,
WAVM::I64  values_data 
)

Definition at line 241 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_misc_print_num_version_1  ,
WAVM::I64  values_data 
)

Definition at line 247 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_misc_print_utf8_version_1  ,
WAVM::I64  values_data 
)

Definition at line 253 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_misc_runtime_version_version_1  ,
WAVM::I64  values_data 
)

Definition at line 259 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_default_child_storage_clear_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key 
)

Definition at line 265 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_default_child_storage_read_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key,
WAVM::I64  value_out,
WAVM::I32  offset 
)

Definition at line 273 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_default_child_storage_exists_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key 
)

Definition at line 283 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_default_child_storage_get_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key 
)

Definition at line 291 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_default_child_storage_next_key_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key 
)

Definition at line 299 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_default_child_storage_clear_prefix_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  prefix 
)

Definition at line 307 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_default_child_storage_root_version_1  ,
WAVM::I64  child_storage_key 
)

Definition at line 316 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_default_child_storage_set_version_1  ,
WAVM::I64  child_storage_key,
WAVM::I64  key,
WAVM::I64  value 
)

Definition at line 323 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_default_child_storage_storage_kill_version_1  ,
WAVM::I64  child_storage_key 
)

Definition at line 332 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_blake2_128_version_1  ,
WAVM::I64  data 
)

Definition at line 340 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_blake2_256_version_1  ,
WAVM::I64  data 
)

Definition at line 346 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_keccak_256_version_1  ,
WAVM::I64  data 
)

Definition at line 352 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_sha2_256_version_1  ,
WAVM::I64  data 
)

Definition at line 358 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_twox_128_version_1  ,
WAVM::I64  data 
)

Definition at line 364 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_twox_64_version_1  ,
WAVM::I64  data 
)

Definition at line 370 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_hashing_twox_256_version_1  ,
WAVM::I64  data 
)

Definition at line 376 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_offchain_is_validator_version_1   
)

Definition at line 384 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_submit_transaction_version_1  ,
WAVM::I64  xt 
)

Definition at line 389 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_network_state_version_1   
)

Definition at line 395 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_timestamp_version_1   
)

Definition at line 400 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_sleep_until_version_1  ,
WAVM::I64  deadline 
)

Definition at line 404 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_offchain_random_seed_version_1   
)

Definition at line 410 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_local_storage_set_version_1  ,
WAVM::I32  kind,
WAVM::I64  key,
WAVM::I64  value 
)

Definition at line 415 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_local_storage_clear_version_1  ,
WAVM::I32  kind,
WAVM::I64  key 
)

Definition at line 424 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_offchain_local_storage_compare_and_set_version_1  ,
WAVM::I32  kind,
WAVM::I64  key,
WAVM::I64  expected,
WAVM::I64  value 
)

Definition at line 431 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_local_storage_get_version_1  ,
WAVM::I32  kind,
WAVM::I64  key 
)

Definition at line 442 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_request_start_version_1  ,
WAVM::I64  method,
WAVM::I64  uri,
WAVM::I64  meta 
)

Definition at line 449 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_request_add_header_version_1  ,
WAVM::I32  request_id,
WAVM::I64  name,
WAVM::I64  value 
)

Definition at line 458 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_request_write_body_version_1  ,
WAVM::I32  request_id,
WAVM::I64  chunk,
WAVM::I64  deadline 
)

Definition at line 467 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_response_wait_version_1  ,
WAVM::I64  ids,
WAVM::I64  deadline 
)

Definition at line 476 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_response_headers_version_1  ,
WAVM::I32  request_id 
)

Definition at line 484 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_offchain_http_response_read_body_version_1  ,
WAVM::I32  request_id,
WAVM::I64  buffer,
WAVM::I64  deadline 
)

Definition at line 491 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_set_authorized_nodes_version_1  ,
WAVM::I64  nodes,
WAVM::I32  authorized_only 
)

Definition at line 500 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_index_set_version_1  ,
WAVM::I64  key,
WAVM::I64  value 
)

Definition at line 508 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_offchain_index_clear_version_1  ,
WAVM::I64  key 
)

Definition at line 515 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_append_version_1  ,
WAVM::I64  key,
WAVM::I64  value 
)

Definition at line 523 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_changes_root_version_1  ,
WAVM::I64  parent_hash 
)

Definition at line 530 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_clear_version_1  ,
WAVM::I64  key_data 
)

Definition at line 536 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_clear_prefix_version_1  ,
WAVM::I64  prefix 
)

Definition at line 542 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_clear_prefix_version_2  ,
WAVM::I64  prefix,
WAVM::I64  limit 
)

Definition at line 548 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_commit_transaction_version_1   
)

Definition at line 555 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_get_version_1  ,
WAVM::I64  key 
)

Definition at line 560 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_next_key_version_1  ,
WAVM::I64  key 
)

Definition at line 566 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_read_version_1  ,
WAVM::I64  key,
WAVM::I64  value_out,
WAVM::I32  offset 
)

Definition at line 572 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_rollback_transaction_version_1   
)

Definition at line 580 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_root_version_1   
)

Definition at line 585 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I64  ,
ext_storage_root_version_2  ,
WAVM::I32  state_version 
)

Definition at line 589 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_set_version_1  ,
WAVM::I64  key,
WAVM::I64  value 
)

Definition at line 595 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_storage_start_transaction_version_1   
)

Definition at line 602 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_storage_exists_version_1  ,
WAVM::I64  key 
)

Definition at line 607 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( void  ,
ext_logging_log_version_1  ,
WAVM::I32  level,
WAVM::I64  target,
WAVM::I64  message 
)

Definition at line 613 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION ( WAVM::I32  ,
ext_logging_max_level_version_1   
)

Definition at line 621 of file intrinsic_functions.cpp.

kagome::runtime::wavm::WAVM_DEFINE_INTRINSIC_FUNCTION_STUB ( void  ,
ext_sandbox_instance_teardown_version_1  ,
WAVM::I32   
)

Definition at line 625 of file intrinsic_functions.cpp.

Variable Documentation

thread_local std::stack<std::shared_ptr<ModuleInstance> > kagome::runtime::wavm::global_instances
static

Definition at line 16 of file intrinsic_functions.cpp.

log::Logger kagome::runtime::wavm::logger

Definition at line 13 of file intrinsic_functions.cpp.