Skip to main content

Crate thruput_sys

Crate thruput_sys 

Source
Expand description

§thruput-sys

Low-level FFI bindings to the Thruput test executor, the native library that thruput-native-exec runs contracts on. The bindings are generated from the executor’s C headers with bindgen; the build script fetches and links the library itself.

This crate is an implementation detail of thruput-native-exec. Use that crate, or thruput-sdk’s dev feature, instead.

Structs§

CreateDBResult
FFIDataBuffer
FFIRv32StackUsage
FFISerializedAddressAndKey
FFISerializedAuthClaimData
FFISerializedInvocation
FFISerializedSignedTransaction
FFISourceAuthData
ForeignHostFnResult
ForeignInvokeResult
ForeignTracedInvokeResult
ForeignTryCommitResult
GetCostModelResult
GetNetworkConfigResult
GetRv32StackUsageResult
GetSnapshotStorageItemResult
OpenRuntimeContextResult
OpenSyscallHandlerResult
VerifyAuthResult
VerifyAuthResultFromDBResult
VerifyContractResult

Enums§

FFIErrorCode
FFILogLevel

Constants§

TEST_FFI_VERSION_MAJOR
TEST_FFI_VERSION_MINOR
TEST_FFI_VERSION_PATCH

Functions§

abort_transaction⚠
advance_new_block⚠
close_runtime_context⚠
close_syscall_handler⚠
create_db⚠
do_verify_contract⚠
enable_syscall_logging⚠
finish_mock_invocation_frame⚠
free_db⚠
get_cost_model⚠
get_network_config⚠
get_rv32_stack_usage⚠
get_snapshot_storage_item⚠
mock_syscall_entrypoint⚠
open_mock_invocation_frame⚠
open_mocked_syscall_handler⚠
open_runtime_context⚠
open_syscall_handler⚠
pop_context⚠
push_context⚠
register_new_contract⚠
root_invoke⚠
setup_create_contract⚠
setup_deploy_contract⚠
setup_grant_contract_storage_tokens⚠
try_commit_transaction⚠
verify_signed_transaction_auth⚠
verify_signed_transaction_auth_from_db⚠

Type Aliases§

ForeignEntryPoint