6 #ifndef KAGOME_HOST_API_HPP 7 #define KAGOME_HOST_API_HPP 29 virtual void reset() = 0;
80 virtual void ext_storage_clear_prefix_version_1(
137 virtual void ext_storage_append_version_1(
146 virtual void ext_storage_start_transaction_version_1() = 0;
152 virtual void ext_storage_rollback_transaction_version_1() = 0;
158 virtual void ext_storage_commit_transaction_version_1() = 0;
180 ext_trie_blake2_256_ordered_root_version_1(
185 ext_trie_blake2_256_ordered_root_version_2(
223 virtual void ext_crypto_start_batch_verify_version_1() = 0;
233 [[nodiscard]]
virtual int32_t
234 ext_crypto_finish_batch_verify_version_1() = 0;
258 ext_crypto_secp256k1_ecdsa_recover_compressed_version_1(
261 ext_crypto_secp256k1_ecdsa_recover_compressed_version_2(
352 [[nodiscard]]
virtual int32_t ext_crypto_sr25519_verify_version_1(
357 [[nodiscard]]
virtual int32_t ext_crypto_sr25519_verify_version_2(
427 [[nodiscard]]
virtual int32_t ext_crypto_ecdsa_verify_version_1(
450 [[nodiscard]]
virtual int32_t ext_crypto_ecdsa_verify_prehashed_version_1(
470 virtual void ext_misc_print_num_version_1(uint64_t value)
const = 0;
476 virtual void ext_misc_print_utf8_version_1(
483 ext_offchain_is_validator_version_1() = 0;
491 ext_offchain_network_state_version_1() = 0;
495 ext_offchain_timestamp_version_1() = 0;
498 virtual void ext_offchain_sleep_until_version_1(
503 ext_offchain_random_seed_version_1() = 0;
506 virtual void ext_offchain_local_storage_set_version_1(
512 virtual void ext_offchain_local_storage_clear_version_1(
518 ext_offchain_local_storage_compare_and_set_version_1(
545 ext_offchain_http_request_write_body_version_1(
562 ext_offchain_http_response_read_body_version_1(
568 virtual void ext_offchain_set_authorized_nodes_version_1(
586 virtual void ext_default_child_storage_set_version_1(
608 virtual void ext_default_child_storage_clear_version_1(
638 virtual void ext_default_child_storage_clear_prefix_version_1(
671 virtual uint32_t ext_default_child_storage_exists_version_1(
678 virtual void ext_default_child_storage_storage_kill_version_1(
683 #endif // KAGOME_HOST_API_HPP
uint32_t WasmSize
Size type is uint32_t because we are working in 32 bit address space.
uint32_t WasmOffset
Offset type is uint32_t because we are working in 32 bit address space.
uint64_t WasmSpan
combination of pointer and size, where less significant part represents wasm pointer, and most significant represents size
uint32_t WasmEnum
Enum value is uint32_t.
uint32_t WasmPointer
type of wasm memory is 32 bit integer